/* Authoritative Prime Health semantic tokens. Component sheets consume these names. */
:root {
 --studio-bg:#f1eee7;--studio-shell:#e9e5dc;--studio-surface:#fffdf8;--studio-raised:#f7f3ec;--studio-overlay:#fffdf8;
 --studio-ink:#262b29;--studio-muted:#60645f;--studio-line:#d3cec2;--studio-accent:#75571d;--studio-selected:#f0e5cb;--studio-focus:#80601a;
 --studio-ok:#286347;--studio-ok-bg:#e8f3eb;--studio-warning:#80520e;--studio-warning-bg:#fff3da;
 --studio-danger:#a0343c;--studio-danger-bg:#ffeff0;--studio-info:#2e607f;--studio-info-bg:#eaf2f8;
 --studio-primary-ink:#fffdf5;--studio-shadow:0 1px 2px #25251c08,0 6px 20px #25251c07;--studio-overlay-shadow:-12px 0 48px #15191c26;
 --studio-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--studio-body-size:16px;--studio-meta-size:13px;
 --studio-radius-control:9px;--studio-radius-panel:18px;--studio-radius-drawer:22px;--studio-radius-chip:24px;
 --studio-space-1:4px;--studio-space-2:8px;--studio-space-3:12px;--studio-space-4:16px;--studio-space-6:24px;
 --studio-control-height:44px;--studio-motion-control:140ms;--studio-motion-panel:200ms;--studio-vh:100dvh;
 --brand-top:var(--studio-surface);--brand-bottom:var(--studio-raised);--brand-highlight:#ffffffa6;--brand-shadow:#25251c12;
 --brand-primary-ink:var(--studio-primary-ink);--brand-radius:var(--studio-radius-control);--brand-card-radius:var(--studio-radius-panel);--brand-shadow-soft:var(--studio-shadow);
 --refine-highlight:var(--brand-highlight);--refine-shadow:var(--brand-shadow);--refine-radius:var(--studio-radius-control);--refine-card:var(--studio-radius-panel);
 --refine-control-height:var(--studio-control-height);--refine-primary-ink:var(--studio-primary-ink);--refine-subtle:var(--studio-shell);
}
:root[data-appearance=dark] {
 --studio-bg:#15191c;--studio-shell:#1b2024;--studio-surface:#22282c;--studio-raised:#2b3237;--studio-overlay:#262d32;
 --studio-ink:#f2f0e8;--studio-muted:#bdc4c6;--studio-line:#4a555c;--studio-accent:#e7c98a;--studio-selected:#393427;--studio-focus:#f1d791;
 --studio-ok:#a1dbb7;--studio-ok-bg:#233a30;--studio-warning:#f4d19a;--studio-warning-bg:#3d3222;
 --studio-danger:#ffb2b8;--studio-danger-bg:#44292e;--studio-info:#b1d4eb;--studio-info-bg:#263b48;
 --studio-primary-ink:#252116;--studio-shadow:0 1px 2px #0002,0 6px 20px #0002;--studio-overlay-shadow:-12px 0 48px #0005;
 --brand-highlight:#ffffff0b;--brand-shadow:#0003;
}
/* Prime Health black, ivory and gold. Clinical semantic colors remain separate. */
:root{--anatomy-fill:#dfd8c8;--anatomy-edge:#8d8168;--anatomy-landmark:#8a7c61}
:root[data-appearance=dark]{--anatomy-fill:#4a4e43;--anatomy-edge:#c3b697;--anatomy-landmark:#c5b796}
.prime-owner-logo{display:inline-flex!important;flex-shrink:0;align-items:center;justify-content:center;width:48px!important;height:48px!important;padding:0!important;overflow:hidden;border:1px solid #ad9256!important;border-radius:50%!important;background:#090a09!important;box-shadow:0 2px 7px #0003,inset 0 1px #ebd6a9!important}.prime-owner-logo img{width:100%;height:100%;object-fit:contain;display:block}.app-top .wordmark{display:flex;align-items:center;gap:11px}.checkin-mark.prime-owner-logo,.checkin-hero-mark.prime-owner-logo{width:80px!important;height:80px!important;margin:0 auto 16px}.review-ready .prime-brand-mark.prime-owner-logo{width:42px!important;height:42px!important}.review-ready .ct-window-title{background:linear-gradient(135deg,var(--studio-surface),var(--studio-raised));border-bottom:1px solid var(--studio-line)}.ct-macro-grid .ct-menu-button,.ct-menu-grid .ct-menu-button{padding:13px 12px!important;min-height:65px;font-weight:600;line-height:1.35;letter-spacing:.05px}.ct-macro-grid .ct-folder-button,.ct-menu-grid .ct-folder-button{border-color:color-mix(in srgb,var(--studio-accent) 50%,var(--studio-line))!important;background:linear-gradient(155deg,color-mix(in srgb,var(--studio-selected) 60%,var(--studio-surface)),var(--studio-raised))!important}.ct-menu-button:hover,.native-flow-card button:hover,[data-bill-group]:hover{transform:translateY(-1px);box-shadow:inset 0 1px var(--brand-highlight),0 6px 12px var(--brand-shadow)!important}.ct-menu-button:active,.native-flow-card button:active{transform:translateY(1px);box-shadow:inset 0 2px 4px var(--brand-shadow)!important}.ct-menu-button:focus-visible{outline:3px solid var(--studio-focus)!important;outline-offset:3px}.review-ready .ct-soap-tabs button.active,[data-bill-group][aria-pressed=true]{background:linear-gradient(155deg,var(--studio-selected),var(--studio-raised))!important;color:var(--studio-accent)!important;border-color:var(--studio-accent)!important;box-shadow:inset 0 1px var(--brand-highlight),inset 0 -3px var(--studio-accent),0 2px 6px var(--brand-shadow)!important}.review-ready #review-plan-inspector article{background:linear-gradient(145deg,var(--studio-surface),var(--studio-raised));box-shadow:inset 0 1px var(--brand-highlight),0 3px 9px var(--brand-shadow);border-radius:17px!important}.review-ready .ct-window-body{background:radial-gradient(ellipse at 10% 0%,color-mix(in srgb,var(--studio-selected) 48%,transparent),transparent 70%),var(--studio-bg)}.provider-home-hero{background:linear-gradient(130deg,var(--studio-surface),var(--studio-selected))!important}.provider-home-hero h1{letter-spacing:-1.1px}.provider-home-metric,.provider-home-task{border-radius:20px!important;box-shadow:inset 0 1px var(--brand-highlight),0 3px 12px var(--brand-shadow)}
@media(prefers-reduced-motion:reduce){.ct-menu-button,.native-flow-card button,[data-bill-group]{transition:none!important;transform:none!important}}
.patient-app-brand{display:flex;align-items:center;gap:12px;max-width:940px;margin:0 auto;padding:16px 22px;color:var(--studio-ink)}.patient-app-brand strong{font-size:17px}.patient-app-brand small{display:block;color:var(--studio-muted);font-size:12px;margin-top:3px}.checkin-appearance{position:absolute;right:max(18px,calc((100vw - 940px)/2));top:22px;padding:0!important;font-size:11px}.checkin-appearance select{max-width:140px;min-height:34px}@media(max-width:540px){.patient-app-brand{padding:12px 16px}.patient-app-brand strong{font-size:14px}.patient-app-brand .prime-owner-logo{width:44px!important;height:44px!important}.checkin-appearance{position:static;display:block;text-align:right;padding:0 16px 6px!important}}
.billing-practice-fees{margin:12px 0;padding:12px;border:1px solid var(--studio-line);border-radius:14px;background:var(--studio-selected)}.billing-practice-fees small{display:block;font-size:11px;line-height:1.5;margin-bottom:8px}.billing-practice-fees label{font-size:12px;display:block}.billing-practice-fees select{display:block;width:100%;max-width:100%;margin:5px 0 8px;font-size:12px}

/* One shared role-independent appearance. Patient intake uses the same tokens. */
body button,body .button{border-radius:var(--brand-radius);box-shadow:inset 0 1px var(--brand-highlight),0 2px 5px var(--brand-shadow)}
body button.primary,body .button.primary,.composable-intake button.ci-primary{color:var(--brand-primary-ink);background:var(--studio-accent);border-color:var(--studio-accent);box-shadow:inset 0 1px #ffffff30,0 3px 9px var(--brand-shadow)}
body input:not([type=checkbox]):not([type=radio]),body select,body textarea{border-radius:12px}
.login-mark.prime-owner-logo{width:76px!important;height:76px!important;margin-bottom:18px}
.composable-intake{--ci-ink:var(--studio-ink);--ci-muted:var(--studio-muted);--ci-accent:var(--studio-accent);--ci-line:var(--studio-line);--ci-surface:var(--studio-surface)}
.checkin-card,.ci-panel{border-radius:var(--brand-card-radius);border:1px solid var(--studio-line);background:linear-gradient(145deg,var(--studio-surface),var(--studio-raised));box-shadow:inset 0 1px var(--brand-highlight),var(--studio-shadow)}
.checkin-eyebrow,.checkin-muted,.checkin-heading p:last-child,.checkin-state-row,.ci-eyebrow,.ci-entry-state,.checkin-family-list span,.checkin-family-list small{color:var(--studio-muted)}
.checkin-scope,.ci-context,.ci-baseline,.checkin-family-list>button{background:var(--studio-selected);border-color:var(--studio-line);color:var(--studio-ink)}
.checkin-scope span{color:var(--studio-muted)}
.composable-intake button,.checkin-intake button{border:1px solid var(--studio-line);border-radius:var(--brand-radius);color:var(--studio-ink);background:linear-gradient(155deg,var(--brand-top),var(--brand-bottom));box-shadow:inset 0 1px var(--brand-highlight),inset 0 -1px var(--brand-shadow),0 3px 7px var(--brand-shadow)}
.composable-intake button:hover,.checkin-intake button:hover{background:var(--studio-selected)}
.composable-intake button[aria-pressed=true],.composable-intake button[aria-current=step]{background:var(--studio-selected);border-color:var(--studio-accent);color:var(--studio-accent);box-shadow:inset 0 0 0 1px var(--studio-accent),0 2px 5px var(--brand-shadow)}
.composable-intake input,.composable-intake textarea{color:var(--studio-ink);background:var(--studio-raised);border-color:var(--studio-line)}
.composable-intake button:focus-visible,.composable-intake input:focus-visible,.composable-intake textarea:focus-visible{outline:3px solid var(--studio-focus);outline-offset:3px}
.composable-intake .ci-cancel{color:var(--studio-muted);background:transparent;box-shadow:none}
.ci-alternatives,.ci-navigation,.ci-overview{border-color:var(--studio-line)}
.checkin-message{color:var(--studio-ok);background:var(--studio-ok-bg);border-color:var(--studio-ok)}
.checkin-message.is-error,.ci-error{color:var(--studio-warning);background:var(--studio-warning-bg);border-color:var(--studio-warning)}
.directory-shell,.directory-card,.directory-recorded,.directory-issued,.directory-family{border-radius:var(--brand-card-radius);border-color:var(--studio-line)}
/* Front desk uses the same surfaces, controls and semantic status colors. */
.directory-workspace{--dir-ink:var(--studio-ink);--dir-muted:var(--studio-muted);--dir-line:var(--studio-line);--dir-blue:var(--studio-accent)}
.directory-section,.directory-selected,.directory-health,.directory-queue-row,.directory-table-wrap th,.directory-counts>span,.directory-proxy,.directory-workspace .directory-checks label,.directory-workspace .directory-checkbox,.directory-workspace [data-dir-form=review-change]{background:var(--studio-raised);color:var(--studio-ink);border-color:var(--studio-line)}
.directory-section{background:linear-gradient(145deg,var(--studio-surface),var(--studio-raised));border-radius:var(--brand-card-radius);box-shadow:inset 0 1px var(--brand-highlight),0 3px 9px var(--brand-shadow)}
.directory-health{background:var(--studio-selected)}
.directory-heading h1,.directory-section h2,.directory-queue-person strong,.directory-counts strong,.directory-workflow-step h3{color:var(--studio-ink)}
.directory-workspace label,.directory-eyebrow,.directory-health p,.directory-health small,.directory-queue-person>span,.directory-queue-row dt,.directory-contact-list,.directory-results span,.directory-results small{color:var(--studio-muted)}
.directory-workspace button,.directory-link-button{background:linear-gradient(155deg,var(--brand-top),var(--brand-bottom));color:var(--studio-ink);border-color:var(--studio-line);border-radius:var(--brand-radius);box-shadow:inset 0 1px var(--brand-highlight),0 3px 7px var(--brand-shadow)}
.directory-workspace input,.directory-workspace textarea,.directory-workspace select{background:var(--studio-raised);color:var(--studio-ink);border-color:var(--studio-line)}
.directory-workspace .directory-primary,.directory-workspace .directory-primary:hover{background:var(--studio-accent);color:var(--brand-primary-ink);border-color:var(--studio-accent)}
.directory-workspace button:hover,.directory-link-button:hover,.directory-workspace .directory-results>button{background:var(--studio-selected);color:var(--studio-ink);border-color:var(--studio-accent)}
.directory-details>summary{color:var(--studio-accent)}
.directory-badge{background:var(--studio-selected);color:var(--studio-ink);border-color:var(--studio-line)}
.directory-message,.directory-badge.good{background:var(--studio-ok-bg);color:var(--studio-ok);border-color:var(--studio-ok)}
.directory-message.is-error{background:var(--studio-danger-bg);color:var(--studio-danger);border-color:var(--studio-danger)}
.directory-import-warning,.directory-hold,.directory-badge.warn{background:var(--studio-warning-bg);color:var(--studio-warning);border-color:var(--studio-warning)}
.directory-workspace input[type=checkbox]{accent-color:var(--studio-accent)}
.directory-workspace button:focus-visible,.directory-workspace input:focus-visible,.directory-workspace select:focus-visible,.directory-workspace textarea:focus-visible,.directory-workspace summary:focus-visible{outline-color:var(--studio-focus)}
.directory-workflow-step,.directory-receipt,.directory-family li,.directory-table-wrap th,.directory-table-wrap td{border-color:var(--studio-line)}
body.studio-ready #logout.button{background:var(--studio-raised);color:var(--studio-ink)}
/* Shared clinical surfaces: neutral cards, gold selection and explicit labels. */
.therapy-workbench{--therapy-ink:var(--studio-ink);--therapy-muted:var(--studio-muted);--therapy-line:var(--studio-line);--therapy-blue:var(--studio-accent);font-family:inherit}.orthopedic-workbench{--ortho-ink:var(--studio-ink);--ortho-muted:var(--studio-muted);--ortho-line:var(--studio-line);--ortho-blue:var(--studio-accent);font-family:inherit}
.therapy-shell,.ortho-shell{background:var(--studio-surface);border:1px solid var(--studio-line);border-radius:19px;box-shadow:0 3px 12px var(--brand-shadow)}.therapy-header,.ortho-header{background:var(--studio-raised);border-color:var(--studio-line)}.therapy-status-panel,.therapy-target-panel,.therapy-application-panel,.therapy-preview,.therapy-entry-title,.therapy-entry-footer,.therapy-manual,.ortho-preview,.ortho-reference,.ortho-step,.ortho-entry-heading,.ortho-entry-footer{background:var(--studio-surface);color:var(--studio-ink);border-color:var(--studio-line)}.therapy-card-grid button,.therapy-choices button,.therapy-targets button,.ortho-choice-grid button,.ortho-suggestions button,.ortho-pain-choices button{background:linear-gradient(155deg,var(--studio-surface),var(--studio-raised));color:var(--studio-ink);border:1px solid var(--studio-line);border-radius:13px;box-shadow:inset 0 1px var(--brand-highlight),0 2px 5px var(--brand-shadow)}.therapy-card-grid button:hover,.therapy-choices button:hover,.therapy-targets button:hover,.ortho-choice-grid button:hover,.ortho-suggestions button:hover{border-color:var(--studio-accent)}.therapy-choices button[aria-pressed=true],.therapy-targets button[aria-pressed=true],.ortho-choice-grid button[aria-pressed=true],.ortho-suggestions button[aria-pressed=true],.ortho-pain-choices button[aria-pressed=true]{background:var(--studio-selected);border-color:var(--studio-accent);color:var(--studio-ink)}.therapy-workbench .therapy-primary,.orthopedic-workbench .ortho-primary{background:var(--studio-selected);border-color:var(--studio-accent);color:var(--studio-ink);font-weight:650}.therapy-workbench input,.therapy-workbench textarea,.therapy-workbench select{background:var(--studio-surface);border-color:var(--studio-line);color:var(--studio-ink);border-radius:11px}.therapy-card-grid button span,.therapy-targets button span,.ortho-help,.ortho-suggestions>span{color:var(--studio-muted)}

/* Excellence pass: shared hierarchy, quieter surfaces and complete control states. */
:root{--brand-space-1:4px;--brand-space-2:8px;--brand-space-3:12px;--brand-space-4:16px;--brand-space-6:24px;--brand-focus-ring:0 0 0 3px var(--studio-surface),0 0 0 5px var(--studio-focus)}
body{font-variant-numeric:tabular-nums}body button:disabled{opacity:.55;box-shadow:none;transform:none;cursor:not-allowed}body :is(button,input,select,textarea,summary,a):focus-visible{outline:2px solid var(--studio-focus);outline-offset:3px}body :is(button,summary){-webkit-tap-highlight-color:transparent}body button:active:not(:disabled){transform:translateY(1px)}.studio-ready .patient-heading{align-items:flex-start;min-width:0}.studio-ready .patient-heading>div{min-width:0}.studio-ready .patient-heading .avatar{margin-top:8px;flex-shrink:0;width:44px;height:48px;background:var(--studio-selected);color:var(--studio-accent)}.studio-ready .plan-number{display:grid;place-items:center;width:24px;height:24px;flex-shrink:0;font-size:10px;font-weight:650;border:1px solid var(--studio-line);border-radius:8px;background:var(--studio-raised);color:var(--studio-muted)}.studio-ready .plan-meta{font-size:10px;color:var(--studio-muted);line-height:1.3;min-width:0}.studio-ready .note-wording-tools{display:flex;flex-wrap:wrap;gap:6px;padding:10px 0}.studio-ready .note-wording-tools button{font-size:12px;background:var(--studio-raised);box-shadow:none}
@media(min-width:761px) and (max-height:850px){.studio-ready .plan-number{width:21px;height:21px}.studio-ready .plan-meta{font-size:9px}}
@media(prefers-reduced-motion:reduce){body *,body *::before,body *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}body button:active:not(:disabled){transform:none}}
/* Overview, history and rehabilitation share the same surfaces in both modes. */
body .chart-tile,body .outcome-card,body .rehab-empty,body .rehab-module,body .exercise-editor,body .patient-program,body .packet-picker{background:var(--studio-surface);color:var(--studio-ink);border:1px solid var(--studio-line);border-radius:14px;box-shadow:none}.chart-tile{padding:16px}.chart-tile .tile-heading,.chart-tile.blue .tile-heading,.chart-tile.violet .tile-heading,.chart-tile.green .tile-heading{background:var(--studio-raised);color:var(--studio-ink);border-color:var(--studio-line);padding:10px 14px}.chart-tile .tile-heading h3{font-size:13px}.chart-tile p,.exercise-summary p,.patient-program p,.rehab-empty p{font-size:13px;line-height:1.65;color:var(--studio-muted)}.chart-tile small,.outcome-card small,.patient-program small,.rehab-empty small{color:var(--studio-muted);font-size:11px}.chart-tile .tile-heading .button{background:var(--studio-surface);color:var(--studio-accent);min-height:36px;font-size:11px;box-shadow:none}.chart-grid{gap:14px}.chart-tile>h3{font-size:14px}.outcome-card p{font-size:13px;line-height:1.65}.outcome-number{color:var(--studio-accent);font-variant-numeric:tabular-nums}.patient-timeline{display:grid;gap:12px;margin-top:18px}.timeline-visit{padding:16px;border:1px solid var(--studio-line);border-radius:14px;background:var(--studio-surface)}.timeline-visit.current{border-left:3px solid var(--studio-accent);background:var(--studio-raised)}.timeline-visit>.section-heading{margin-bottom:8px}.timeline-visit>.section-heading>span{font-size:11px;color:var(--studio-muted)}.timeline-visit>small{font-size:11px}.timeline-visit p{font-size:13px;line-height:1.65}.timeline-visit details{padding:10px 0;border:0}.timeline-visit details>summary{font-size:12px;min-height:36px;color:var(--studio-accent)}.timeline-visit h4{font-size:13px;margin:18px 0 8px}.outcome-trend-table{overflow:auto}.outcome-trend-table th{font-size:11px;text-align:left;background:var(--studio-raised);padding:12px}.outcome-trend-table td{font-size:12px;padding:13px 12px;line-height:1.5}.outcome-trend-table small{display:block;font-size:11px;margin-top:4px}.studio-ready .chart-grid .button{min-height:38px}
/* The entire plan summary is a single large, keyboard-accessible detail target. */.studio-ready .plan-open-symbol{margin-left:auto;font-size:13px;color:var(--studio-muted);flex-shrink:0}@media(min-width:761px) and (max-height:850px){.studio-ready .plan-meta{font-size:9px}.studio-ready .plan-number{width:20px;height:20px;font-size:9px}}.studio-ready .ct-workbench{background:var(--studio-raised);color:var(--studio-ink);border-color:var(--studio-line)}.studio-ready .clinical-mode-bar>div{background:var(--studio-raised);border:1px solid var(--studio-line)}.studio-ready .clinical-mode-bar button{background:transparent;color:var(--studio-muted);box-shadow:none}.studio-ready .clinical-mode-bar button.selected{background:var(--studio-surface);color:var(--studio-accent);box-shadow:0 1px 3px var(--brand-shadow)}.studio-ready #clinical-complaint{background:var(--studio-raised);color:var(--studio-ink);border-color:var(--studio-line)}.studio-ready .ct-source-bar>label,.studio-ready .ct-search-label,.studio-ready .ct-menu-tools>span,.studio-ready .ct-breadcrumb,.studio-ready .ct-breadcrumb b{color:var(--studio-muted)}

/* Shared desk, patient forms and paperwork: quiet surfaces, clear next action. */
.directory-app{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:14px}
.directory-app>header,.directory-app>[data-directory-message],.directory-health-strip,.directory-selected,.directory-management{grid-column:1/-1}
.directory-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:4px 2px 0}.directory-heading h1{font-size:28px;margin:4px 0 7px;letter-spacing:-.035em}.directory-heading>button{flex-shrink:0}
.directory-health-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.directory-health-summary{padding:8px 12px;background:var(--studio-raised);border-radius:12px;font-size:12px;min-width:0}.directory-health-summary>span{gap:5px}.directory-health-summary small{font-size:10px;color:var(--studio-muted)}.directory-health-summary button{padding:6px 8px;font-size:11px;box-shadow:none;background:transparent;flex-shrink:0}.directory-health-summary .directory-badge{font-size:10px;padding:3px 7px}
.directory-app>[data-directory-message]:not(.is-error){padding:0 2px;background:transparent;border:0;border-radius:0;color:var(--studio-muted);font-size:11px;line-height:1.5}
.directory-section{padding:20px;box-shadow:var(--brand-shadow-soft)}.directory-section-heading{gap:12px;margin-bottom:8px}.directory-section h2{font-size:19px;letter-spacing:-.025em}.directory-section-heading>button{font-size:11px;min-height:40px;max-width:150px;box-shadow:none;background:var(--studio-raised)}.directory-queue-row{padding:16px;border-radius:14px;background:var(--studio-raised);box-shadow:none}.directory-queue-person{align-items:flex-start;flex-direction:column;gap:5px}.directory-queue-person strong{font-size:17px;letter-spacing:-.015em}.directory-queue-row dl{gap:13px 16px;margin:16px 0}.directory-queue-row dt{font-size:10px;text-transform:none;letter-spacing:0;font-weight:500}.directory-queue-row dd{font-size:12px;margin-top:3px;font-weight:550}.directory-queue-row .directory-actions{border-top:0;padding-top:0}.directory-workspace .directory-queue-row [data-dir-queue]{color:var(--studio-accent);font-weight:650;background:var(--studio-surface)}
.directory-workspace .directory-lookup [data-dir-form=search]{flex-direction:row;align-items:flex-end}.directory-lookup .directory-results{grid-template-columns:minmax(0,1fr);max-height:none;overflow:visible}.directory-lookup .directory-details{border-top:1px solid var(--studio-line);padding-top:10px}.directory-lookup .directory-three{grid-template-columns:1fr}.directory-selected{scroll-margin-top:18px;border-color:var(--studio-accent)}.directory-selected .directory-section-heading .directory-actions{margin:0}.directory-selected [data-dir-selected-title]{scroll-margin-top:20px}.directory-workflow-step{padding-top:22px;margin-top:24px}.directory-workflow-step h3{font-size:16px;letter-spacing:-.015em}.directory-management{margin:0;border-top:1px solid var(--studio-line);padding-top:10px}.directory-management>summary{color:var(--studio-muted)}
.checkin-page{padding-top:12px;max-width:960px}.checkin-heading{margin:4px 0 8px;padding-bottom:10px;border-bottom:1px solid var(--studio-line)}.checkin-heading .prime-owner-logo{width:52px!important;height:52px!important;margin:0!important}.checkin-heading h1{font-size:20px;letter-spacing:-.025em}.checkin-heading>button{box-shadow:none;font-size:12px;background:var(--studio-raised)}.checkin-scope{padding:12px 15px;border-radius:14px;background:var(--studio-raised)}.checkin-state-row{font-size:12px;padding:8px 2px}.checkin-card,.ci-panel{box-shadow:var(--brand-shadow-soft);background:var(--studio-surface)}.ci-panel{padding:clamp(20px,3vw,30px)}.ci-top h2{font-size:clamp(22px,2.7vw,27px);letter-spacing:-.025em}.ci-intro{font-size:14px;line-height:1.5;margin:8px 0 10px}.ci-progress-row{font-size:12px}.ci-overview summary{font-size:13px;color:var(--studio-muted)}.ci-question{padding:24px 0}.ci-question h3{letter-spacing:-.02em;line-height:1.4}.ci-step{font-size:12px}.composable-intake .ci-choices button{min-height:50px}.ci-alternatives button{box-shadow:none;background:var(--studio-raised);font-size:13px!important}.ci-navigation{padding-top:18px}.ci-navigation button{min-height:48px}.ci-notice{font-size:12px;line-height:1.65}.checkin-centered{margin:4vh auto}.checkin-centered h1{letter-spacing:-.025em}.checkin-family-list>button{min-height:110px;padding:18px;box-shadow:none}
.paperwork-shell{padding:22px;border-radius:20px;background:var(--studio-surface);box-shadow:var(--brand-shadow-soft)}.paperwork-shell>header{padding-bottom:16px;border-bottom:1px solid var(--studio-line);align-items:flex-start}.paperwork-shell h2{font-size:23px;letter-spacing:-.03em;line-height:1.3}.paperwork-shell h3{font-size:17px;letter-spacing:-.015em}.paperwork-shell h4{font-size:14px}.paperwork-shell p{line-height:1.65}.paperwork-layout{gap:20px}.paperwork-upload,.paperwork-current-title,.paperwork-review-confirm,.paperwork-manual,.paperwork-candidate{border-radius:14px}.paperwork-upload{background:var(--studio-raised)}.paperwork-shell label{font-size:12px;color:var(--studio-muted);line-height:1.5}.paperwork-shell button,.paperwork-original{border-radius:11px;font-size:13px;min-height:44px;box-shadow:inset 0 1px var(--brand-highlight)}.paperwork-shell button:hover:not(:disabled),.paperwork-original:hover{border-color:var(--studio-accent);background:var(--studio-selected)}.paperwork-documents>button{padding:14px;line-height:1.6}.paperwork-documents>button.selected{background:var(--studio-selected)}.paperwork-candidate{padding:18px;margin:12px 0}.paperwork-candidate blockquote{font-size:13px;line-height:1.7;border-radius:0 10px 10px 0}.paperwork-choice-row{gap:8px}.paperwork-cloud{box-shadow:none;background:var(--studio-raised);border-radius:14px}.paperwork-shell .paperwork-primary{color:var(--brand-primary-ink)!important}.paperwork-shell input[type=checkbox]{accent-color:var(--studio-accent)}
@media(max-width:1100px){.directory-app{grid-template-columns:minmax(0,1fr)}.directory-health-strip{grid-template-columns:minmax(0,1fr)}.directory-lookup .directory-results{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.directory-workspace .directory-lookup [data-dir-form=search]{flex-direction:row;align-items:flex-end}.directory-lookup .directory-three{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.directory-heading{align-items:flex-start;gap:10px}.directory-heading h1{font-size:25px}.directory-heading>button{font-size:12px;padding:9px 11px}.directory-section{padding:16px}.directory-section-heading{flex-wrap:wrap}.directory-section-heading>button{max-width:none}.directory-workspace .directory-lookup [data-dir-form=search]{flex-direction:row;align-items:flex-end}.directory-lookup .directory-three{grid-template-columns:1fr}.directory-health-summary{flex-wrap:wrap;gap:4px}.directory-health-summary button{margin-left:auto}.checkin-page{padding:10px 14px 36px}.checkin-heading h1{font-size:21px}.ci-panel{padding:20px 18px}.paperwork-shell{padding:16px}.paperwork-shell>header{gap:10px}.paperwork-shell h2{font-size:21px}}

html{background:var(--studio-bg)}body:has(.checkin-page){min-height:100svh;background:var(--studio-bg)}
/* Keep the first actual question within the tablet's working area. */
.composable-intake progress{appearance:none;height:7px;background:var(--studio-line);border-radius:8px;overflow:hidden}.composable-intake progress::-webkit-progress-bar{background:var(--studio-line);border-radius:8px}.composable-intake progress::-webkit-progress-value{background:var(--studio-accent);border-radius:8px}.composable-intake progress::-moz-progress-bar{background:var(--studio-accent);border-radius:8px}
@media(min-width:601px) and (max-height:850px){.patient-app-brand{padding-top:10px;padding-bottom:10px}.patient-app-brand .prime-owner-logo{width:62px!important;height:62px!important}.checkin-heading{margin:6px 0 10px;padding-bottom:10px}.checkin-heading h1{font-size:22px}.checkin-scope{flex-direction:row;align-items:center;gap:16px;padding:10px 14px;margin-bottom:8px}.checkin-scope strong{flex-shrink:0;font-size:12px}.checkin-scope span{font-size:11px}.checkin-state-row{padding:4px 2px;font-size:11px}.ci-panel{padding:20px 24px;margin-top:8px}.ci-top h2{font-size:23px;margin:3px 0}.ci-intro{margin:10px 0;font-size:13px}.composable-intake progress{margin:8px 0}.ci-overview{padding-bottom:4px}.ci-overview summary{min-height:36px;font-size:12px}.ci-question{padding:16px 0}.ci-question h3{font-size:23px;margin-bottom:12px}.ci-navigation{padding-top:12px}.ci-notice{margin:12px 0}}
