/* Self-hosted Fontsource 5.3.0 subsets: Latin, Latin Extended and Cyrillic. */
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url("../fonts/manrope-cyrillic-400-normal.woff2") format("woff2");
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url("../fonts/manrope-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url("../fonts/manrope-cyrillic-600-normal.woff2") format("woff2");
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url("../fonts/manrope-latin-ext-600-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url("../fonts/manrope-cyrillic-700-normal.woff2") format("woff2");
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url("../fonts/manrope-latin-ext-700-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url("../fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2");
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url("../fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url("../fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2");
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url("../fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
    color-scheme: light;
    --ds-ink: #0d0d0d;
    --ds-ink-soft: #202020;
    --ds-mint: #a7d9c6;
    --ds-mint-hover: #92cbb5;
    --ds-warm: #fdf1e1;
    --ds-field: #fefaf1;
    --ds-paper: #fff;
    --ds-muted: #626863;
    --ds-line: #e5e1da;
    --ds-error: #7b343c;
    --ds-error-surface: #fff3f2;
    --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-ui: "Manrope", "Segoe UI", sans-serif;
    font-family: var(--font-ui);
    color: var(--ds-ink-soft);
    background: #f4f2ed;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body { margin: 0; }

button,
input,
textarea { font: inherit; }

button {
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid var(--ds-mint);
    border-radius: 999px;
    color: var(--ds-ink);
    background: var(--ds-mint);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, transform 100ms ease;
}

button:hover:not(:disabled) {
    border-color: var(--ds-mint-hover);
    background: var(--ds-mint-hover);
}

button:active:not(:disabled) { transform: translateY(1px); }

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--ds-ink);
    outline-offset: 3px;
}

button:disabled {
    cursor: not-allowed;
    opacity: .48;
}

button.is-loading {
    cursor: progress;
    opacity: .82;
}

button.is-loading::after {
    content: " ···";
    letter-spacing: .12em;
}

button.secondary {
    color: var(--ds-ink-soft);
    border-color: #bbb8b1;
    background: transparent;
}

button.secondary:hover:not(:disabled) {
    border-color: var(--ds-ink);
    background: var(--ds-warm);
}

button.compact {
    min-height: 42px;
    padding: 9px 18px;
    font-size: 14px;
}

label {
    display: block;
    margin: 20px 0 8px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    color: var(--ds-ink);
    border: 1px solid #cfc9bd;
    border-radius: 12px;
    background: var(--ds-field);
}

textarea {
    min-height: 168px;
    resize: vertical;
    line-height: 1.55;
}

.lomvia-page {
    min-height: 100vh;
    background: #f4f2ed;
}

.section-kicker {
    margin: 0 0 8px;
    color: #687069;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
}

.clinic-brand img {
    display: block;
    width: auto;
    max-width: 100%;
}

.clinic-brand--horizontal img { height: 52px; }
.clinic-brand--result img { height: 42px; }
.clinic-brand--login img { height: 58px; }

.clinic-wordmark {
    display: inline-flex;
    flex-direction: column;
    color: var(--ds-ink);
    font: 600 28px/1 var(--font-heading);
}

.clinic-wordmark small {
    margin-bottom: 4px;
    font: 700 9px/1 var(--font-ui);
    letter-spacing: .22em;
}

.clinic-wordmark--light { color: #fff; }

.powered-by {
    margin-top: 44px;
    color: #858b86;
    font-size: 11px;
    letter-spacing: .08em;
    text-align: center;
}

.powered-by--dark { color: rgba(255, 255, 255, .38); }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.is-hidden { display: none !important; }

/* Tenant-bound staff cases */

.cases-page {
    padding: 30px 24px;
    background: linear-gradient(180deg, #f8f6f1 0, #f2f0eb 100%);
}

.cases-shell {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.cases-header,
.case-card__heading,
.cases-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cases-header h1 {
    margin: 0;
    color: var(--ds-ink);
    font: 600 clamp(42px, 6vw, 68px)/1 var(--font-heading);
}

.cases-total,
.case-card time {
    color: var(--ds-muted);
    font-size: 14px;
}

.cases-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ds-line);
}

.cases-tabs a,
.case-action,
.cases-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 17px;
    color: var(--ds-ink);
    border: 1px solid #c7c2b9;
    border-radius: 999px;
    background: var(--ds-paper);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.cases-tabs a[aria-current="page"],
.case-action--primary {
    border-color: var(--ds-mint);
    background: var(--ds-mint);
}

.cases-tabs a:focus-visible,
.case-action:focus-visible,
.cases-pagination a:focus-visible {
    outline: 3px solid var(--ds-ink);
    outline-offset: 3px;
}

.cases-notice {
    padding: 14px 17px;
    border: 1px solid #9bc8b7;
    border-radius: 12px;
    background: #eff8f3;
}

.cases-list { display: grid; gap: 14px; }

.case-card,
.cases-empty {
    margin: 0;
    padding: 22px;
    border: 1px solid var(--ds-line);
    border-radius: 16px;
    background: var(--ds-paper);
}

.case-card__id {
    margin: 0 0 5px;
    color: var(--ds-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}

.case-card h2 {
    margin: 0;
    color: var(--ds-ink);
    font-size: 21px;
}

.case-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
}

.case-contact div {
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--ds-field);
}

.case-contact dt {
    margin-bottom: 4px;
    color: var(--ds-muted);
    font-size: 12px;
    font-weight: 700;
}

.case-contact dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.case-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--ds-line);
}

.cases-pagination { margin-top: 22px; }

/* Reception */

.reception-page {
    padding: 30px 24px;
    background: linear-gradient(180deg, #f8f6f1 0, #f2f0eb 100%);
}

.reception-shell {
    width: min(1180px, 100%);
    min-height: calc(100vh - 60px);
    margin: 0 auto;
    padding: 28px 36px 20px;
    border: 1px solid rgba(13, 13, 13, .08);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 50px rgba(13, 13, 13, .055);
}

.clinic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ds-line);
}

.clinic-utilities {
    display: flex;
    align-items: center;
    gap: 12px;
}

.device-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    color: #31594a;
    background: #eff8f4;
    font-size: 13px;
    font-weight: 700;
}

.device-availability__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5a9d83;
}

.device-availability.is-busy {
    color: #765126;
    background: var(--ds-warm);
}

.device-availability.is-busy .device-availability__dot { background: #b27c3d; }

.icon-button,
.utility-button {
    min-width: 42px;
    min-height: 42px;
    margin: 0;
    padding: 8px;
    color: #5d625e;
    border-color: transparent;
    background: transparent;
}

.icon-button {
    display: inline-grid;
    place-items: center;
}

.icon-button:hover:not(:disabled),
.utility-button:hover:not(:disabled) {
    color: var(--ds-ink);
    border-color: var(--ds-line);
    background: #f7f5f0;
}

.utility-button { padding-inline: 14px; font-size: 13px; }

.schedule-view { padding: 46px 0 24px; }

.schedule-heading h1,
.login-shell h1 {
    margin: 0;
    color: var(--ds-ink);
    font: 600 clamp(38px, 5vw, 52px)/1.02 var(--font-heading);
}

.schedule-date {
    min-height: 24px;
    margin: 10px 0 0;
    color: var(--ds-muted);
    font-size: 16px;
}

.lomvia-status {
    min-height: 22px;
    margin: 16px 0;
    color: #5f6862;
    font-size: 14px;
}

.appointment-list {
    display: grid;
    gap: 12px;
}

.appointment {
    display: grid;
    grid-template-columns: 84px minmax(260px, 1fr) minmax(220px, auto);
    align-items: center;
    gap: 24px;
    padding: 22px 24px;
    border: 1px solid var(--ds-line);
    border-radius: 16px;
    background: var(--ds-paper);
}

.appointment-time {
    color: var(--ds-ink);
    font: 600 30px/1 var(--font-heading);
}

.appointment-details h2 {
    margin: 0;
    color: var(--ds-ink);
    font-size: 19px;
    line-height: 1.25;
}

.appointment-service {
    margin: 6px 0 0;
    color: #373b38;
    font-size: 15px;
}

.appointment-meta {
    margin: 8px 0 0;
    color: var(--ds-muted);
    font-size: 13px;
}

.appointment-workflow {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.appointment-actions { display: flex; justify-content: flex-end; }

.intake-status {
    margin: 0;
    color: #646a66;
    font-size: 13px;
    font-weight: 700;
}

.intake-status--completed { color: #31594a; }
.intake-status--active,
.intake-status--assigned { color: #765126; }

/* Structured result */

.result-panel { padding: 4px 0 30px; }

.result-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ds-line);
}

.result-header {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(460px, 1.2fr);
    gap: 44px;
    padding: 42px 0 34px;
}

.result-header h2 {
    margin: 0;
    color: var(--ds-ink);
    font: 600 clamp(38px, 5vw, 56px)/1 var(--font-heading);
}

.result-service {
    margin: 12px 0 0;
    color: var(--ds-muted);
    font-size: 17px;
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--ds-line);
    border-radius: 14px;
    background: var(--ds-line);
}

.result-summary div {
    min-height: 86px;
    padding: 17px 18px;
    background: #faf9f6;
}

.result-summary span,
.result-summary strong { display: block; }

.result-summary span {
    margin-bottom: 6px;
    color: var(--ds-muted);
    font-size: 12px;
}

.result-summary strong {
    color: var(--ds-ink-soft);
    font-size: 14px;
}

.result-content {
    padding-top: 26px;
    border-top: 1px solid var(--ds-line);
}

.result-content h3 {
    margin: 0 0 18px;
    color: var(--ds-ink);
    font: 600 30px/1.1 var(--font-heading);
}

.result-answers {
    margin: 0;
    border-top: 1px solid var(--ds-line);
}

.result-row {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
    gap: 28px;
    padding: 18px 4px;
    border-bottom: 1px solid var(--ds-line);
}

.result-row dt {
    color: #505651;
    font-size: 14px;
    font-weight: 600;
}

.result-row dd {
    margin: 0;
    color: var(--ds-ink);
    line-height: 1.55;
    white-space: pre-wrap;
}

/* Login */

.reception-login-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(480px, 100%);
    padding: 42px;
    border: 1px solid var(--ds-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(13, 13, 13, .06);
}

.clinic-brand--login { margin-bottom: 40px; }
.login-shell form button { width: 100%; margin-top: 26px; }

/* Dialog */

.confirmation-dialog {
    width: min(480px, calc(100% - 32px));
    padding: 0;
    border: 0;
    border-radius: 20px;
    color: var(--ds-ink-soft);
    background: #fff;
    box-shadow: 0 30px 90px rgba(13, 13, 13, .24);
}

.confirmation-dialog::backdrop { background: rgba(13, 13, 13, .48); }

.dialog-content { padding: 32px; }

.dialog-content h2 {
    margin: 0;
    color: var(--ds-ink);
    font: 600 36px/1 var(--font-heading);
}

.dialog-content > p:not(.section-kicker) { margin: 16px 0 0; line-height: 1.6; }

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
}

/* Tablet / patient mode */

.lomvia-tablet-page {
    min-height: 100dvh;
    color: #fff;
    background: var(--ds-ink);
}

.lomvia-tablet {
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: min(1180px, 100%);
    min-height: 100dvh;
    margin: 0 auto;
    padding: max(30px, env(safe-area-inset-top)) max(48px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(48px, env(safe-area-inset-left));
}

.tablet-brand img {
    display: block;
    width: auto;
    height: 76px;
}

.lomvia-tablet[data-view="idle"],
.lomvia-tablet[data-view="welcome"] {
    grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
}

.lomvia-tablet[data-view="idle"] .tablet-brand,
.lomvia-tablet[data-view="welcome"] .tablet-brand {
    align-self: end;
    justify-self: center;
    margin-bottom: clamp(24px, 4vh, 40px);
}

.lomvia-tablet[data-view="idle"] .tablet-brand img,
.lomvia-tablet[data-view="welcome"] .tablet-brand img {
    height: clamp(152px, 16vw, 184px);
}

.lomvia-tablet[data-view="idle"] .tablet-content,
.lomvia-tablet[data-view="welcome"] .tablet-content {
    align-self: start;
    margin-block: 0;
    text-align: center;
}

.lomvia-tablet[data-view="idle"] .tablet-content > h1,
.lomvia-tablet[data-view="welcome"] .tablet-content > h1,
.lomvia-tablet[data-view="idle"] .tablet-state,
.lomvia-tablet[data-view="welcome"] .tablet-state,
.lomvia-tablet[data-view="welcome"] .welcome-support {
    margin-inline: auto;
}

.lomvia-tablet[data-view="idle"] > .powered-by,
.lomvia-tablet[data-view="welcome"] > .powered-by {
    align-self: end;
}

.tablet-content {
    align-self: center;
    width: min(790px, 100%);
    margin: 26px auto;
}

.tablet-content > h1 {
    max-width: 760px;
    margin: 0 0 26px;
    color: #fff;
    font: 500 clamp(48px, 6.2vw, 78px)/1.02 var(--font-heading);
    letter-spacing: -.025em;
}

.lomvia-tablet[data-view="intake"] .tablet-content > h1,
.lomvia-tablet[data-view="completion"] .tablet-content > h1 {
    display: none;
}

.tablet-state { max-width: 650px; }

.tablet-message,
.welcome-support {
    color: rgba(255, 255, 255, .74);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.6;
}

.tablet-message:empty,
.welcome-support:empty { display: none; }

.welcome-support { max-width: 590px; margin: 0 0 30px; }

.tablet-state button { min-width: 180px; }

.activation-form {
    max-width: 520px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .045);
}

.activation-form input { margin-bottom: 6px; }

.intake-panel { width: min(780px, 100%); }

.intake-progress {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .52);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.intake-intro { display: none; }

.intake-field {
    margin: 0;
    padding: 0;
    border: 0;
}

.intake-field + .intake-field {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.intake-field label,
.intake-field legend {
    margin: 0 0 22px;
    color: #fff;
    font: 500 clamp(34px, 4.4vw, 54px)/1.08 var(--font-heading);
    letter-spacing: -.018em;
}

.intake-field textarea {
    min-height: 178px;
    font-size: 18px;
}

.intake-choice {
    display: grid;
    gap: 10px;
}

.intake-field .choice-option {
    display: flex !important;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    margin: 0 !important;
    padding: 14px 17px;
    color: #0d0d0d;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--ds-field);
    font-size: 17px !important;
    cursor: pointer;
}

.choice-option:hover { border-color: rgba(167, 217, 198, .9); }

.choice-option:has(input:checked) {
    border-color: var(--ds-mint);
    background: #eff8f3;
    box-shadow: inset 4px 0 0 var(--ds-mint);
}

.choice-option:focus-within {
    outline: 3px solid var(--ds-mint);
    outline-offset: 3px;
}

.choice-option input {
    width: 22px;
    min-height: 22px;
    margin: 0;
    accent-color: #4e8872;
}

.required-marker { color: var(--ds-mint); }

.field-error {
    margin: 10px 0 0;
    padding-left: 14px;
    color: #ffd4d0;
    border-left: 3px solid #c9797f;
    font-size: 15px;
    font-weight: 600;
}

.intake-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 34px;
}

.intake-actions button { min-width: 150px; }

.lomvia-tablet button.secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, .34);
}

.lomvia-tablet button.secondary:hover:not(:disabled) {
    color: #fff;
    border-color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .07);
}

.lomvia-tablet button:focus-visible,
.lomvia-tablet input:focus-visible,
.lomvia-tablet textarea:focus-visible {
    outline-color: var(--ds-mint);
}

.completion-panel { max-width: 680px; }

.completion-check {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    color: var(--ds-ink);
    border-radius: 50%;
    background: var(--ds-mint);
    font-size: 24px;
    font-weight: 700;
}

.completion-panel p {
    margin: 0;
    color: #fff;
    font: 500 clamp(38px, 5vw, 60px)/1.12 var(--font-heading);
}

.lomvia-error {
    margin: 18px 0 0;
    padding: 13px 15px;
    color: var(--ds-error);
    border: 1px solid #d7aeb0;
    border-radius: 10px;
    background: var(--ds-error-surface);
    line-height: 1.45;
}

.lomvia-tablet .lomvia-error {
    color: #ffe2df;
    border-color: rgba(220, 139, 145, .65);
    background: rgba(123, 52, 60, .24);
}

@media (max-width: 820px) {
    .reception-page { padding: 16px; }
    .reception-shell { min-height: calc(100vh - 32px); padding: 24px; }
    .appointment { grid-template-columns: 74px minmax(0, 1fr); }
    .appointment-workflow { grid-column: 2; justify-items: start; }
    .result-header { grid-template-columns: 1fr; gap: 28px; }
    .lomvia-tablet { padding-inline: 34px; }
}

@media (max-width: 640px) {
    .cases-page { padding: 18px 14px; }
    .cases-header,
    .case-card__heading { align-items: flex-start; flex-direction: column; }
    .case-contact { grid-template-columns: 1fr; }
    .case-actions,
    .case-action { width: 100%; }
    .clinic-header,
    .result-toolbar { align-items: flex-start; }
    .clinic-utilities { flex-wrap: wrap; justify-content: flex-end; }
    .device-availability { order: 3; }
    .appointment { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
    .appointment-workflow { grid-column: auto; justify-items: stretch; }
    .appointment-actions,
    .appointment-actions button { width: 100%; }
    .result-toolbar { flex-direction: column; }
    .result-summary { grid-template-columns: 1fr; }
    .result-row { grid-template-columns: 1fr; gap: 8px; }
    .dialog-actions { flex-direction: column-reverse; }
    .dialog-actions button { width: 100%; }
    .login-shell { padding: 30px 22px; }
    .lomvia-tablet { padding: 24px 20px 18px; }
    .tablet-brand img { height: 60px; }
    .lomvia-tablet[data-view="idle"] .tablet-brand img,
    .lomvia-tablet[data-view="welcome"] .tablet-brand img { height: 132px; }
    .intake-actions { flex-direction: column-reverse; }
    .intake-actions button { width: 100%; }
}

@media (max-height: 760px) and (min-width: 700px) {
    .lomvia-tablet { padding-top: 24px; }
    .tablet-brand img { height: 58px; }
    .lomvia-tablet[data-view="idle"] .tablet-brand img,
    .lomvia-tablet[data-view="welcome"] .tablet-brand img { height: 128px; }
    .tablet-content { margin-block: 18px; }
    .lomvia-tablet[data-view="idle"] .tablet-content,
    .lomvia-tablet[data-view="welcome"] .tablet-content { margin-block: 0; }
    .tablet-content > h1 { margin-bottom: 18px; font-size: clamp(42px, 5vw, 62px); }
    .intake-field label,
    .intake-field legend { margin-bottom: 16px; font-size: clamp(32px, 4vw, 46px); }
    .choice-option { min-height: 52px; padding-block: 11px; }
    .intake-actions { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    button { transition: none; }
}
