
html,body{background:var(--studio-bg);color:var(--studio-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*,*::before,*::after{box-sizing:border-box}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,input,select{min-height:44px}button,a,input,select,textarea,summary{scroll-margin:72px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--studio-focus);outline-offset:3px}
body .card,body details,body .fact,body .notice,body .receipt,body .editor,body .library-row,body .directory-recorded,body .directory-issued,body .directory-family,body .continuity-panel,body .outcome-history,body .native-flow-card,body .ct-macro-preview,body .ct-question,body .ct-menu-grid button,body .clinical-test-panel,body .billing-workbench,body .ct-source-bar,body .ct-care-links article{background:var(--studio-surface);color:var(--studio-ink);border-color:var(--studio-line)}
body input,body select,body textarea{background:var(--studio-raised);color:var(--studio-ink);border:1px solid var(--studio-line);border-radius:9px}body input::placeholder,body textarea::placeholder{color:var(--studio-muted);opacity:1}body button,body .button,body summary{color:var(--studio-ink)}body button,body .button{background:var(--studio-raised);border-color:var(--studio-line);border-radius:9px}body button.primary,body .button.primary{background:var(--studio-accent);color:var(--studio-bg)}body .muted,body small,body .meta,body .eyebrow,body [class$="-hint"]{color:var(--studio-muted)}body a{color:var(--studio-accent)}body .warning,body .ct-error,body .directory-hold,body #error,body [role=alert]{background:var(--studio-warning-bg);color:var(--studio-warning);border-color:var(--studio-warning)}body .success{background:var(--studio-ok-bg);color:var(--studio-ok)}body .active,body .selected,body [aria-selected=true],body [aria-pressed=true]{background:var(--studio-selected);color:var(--studio-accent);border-color:var(--studio-accent)}body button:disabled{opacity:.6;cursor:not-allowed}body .soap,body .preview-heading,body .ct-note-editor,body .ct-note-text,body table,body th,body td{color:var(--studio-ink);background:var(--studio-surface);border-color:var(--studio-line)}body .paperwork-original-page,body .paperwork-preview img{background:white;filter:none}
html.studio-root{height:var(--studio-vh);overflow:clip}body.studio-ready{height:var(--studio-vh);margin:0;overflow:clip}.studio-ready #error{grid-column:1/-1;max-height:78px;overflow:auto;margin:0;padding:8px}.studio-ready #next-step{display:none!important}.studio-ready [data-studio-group][hidden]{display:none!important}.studio-ready .studio-form label{display:block;margin:12px 0 5px;font-size:13px;color:var(--studio-muted)}.studio-ready .studio-form input,.studio-ready .studio-form select,.studio-ready .studio-form textarea{width:100%;padding:10px}.studio-ready .studio-form textarea{min-height:85px}.studio-ready .studio-form .actions{position:sticky;bottom:0;background:var(--studio-surface);padding:12px 0}.studio-ready .studio-plan-row{border-bottom:1px solid var(--studio-line);padding:12px 0}.studio-ready .studio-plan-row h3{font-size:15px}.studio-ready .studio-plan-row p{white-space:pre-wrap}
@media(prefers-reduced-motion:no-preference){button{transition:background-color .15s,border-color .15s}.studio-drawer{animation:studio-drawer-in .15s ease-out}@keyframes studio-drawer-in{from{transform:translateX(15px);opacity:.7}to{transform:none;opacity:1}}}
@media print{body.studio-ready{overflow:visible}.studio-ready #app,.studio-ready .shell,.studio-ready .workspace{display:block;height:auto}.sidebar,.app-top,.demo-banner,#studio-tools,#studio-actions,#plan-inspector,.savebar,.identity,#soap-tabs,#studio-drawer-backdrop{display:none!important}.studio-ready .studio-drawer{position:static;width:auto;height:auto;box-shadow:none}.studio-ready #panel{height:auto;overflow:visible}*{background:white!important;color:black!important;box-shadow:none!important}}.studio-ready #error{grid-row:3}

.checkin-card,.ci-shell,.ci-question,.ci-baseline,.checkin-family-card{background:var(--studio-surface)!important;color:var(--studio-ink)!important;border-color:var(--studio-line)!important}.checkin-appearance{display:block;text-align:right;padding:8px 16px;font-size:12px}.checkin-appearance select{min-height:36px;max-width:150px}.ci-shell button[aria-pressed="true"]{background:var(--studio-selected);color:var(--studio-accent)}

/* Bind retained clinical components to the same semantic palette. */
:root{--bg:var(--studio-bg);--ink:var(--studio-ink);--muted:var(--studio-muted);--line:var(--studio-line);--green:var(--studio-accent)}
body h1,body h2,body h3,body h4{color:var(--studio-ink)}
body button{border:1px solid var(--studio-line);box-shadow:none;padding:8px 12px}
.studio-ready .studio-form input[type=checkbox]{width:auto;min-height:24px;display:inline}
.studio-ready .studio-drawer .paperwork-layout{display:block}
.studio-ready .studio-drawer .paperwork-layout>aside{margin-bottom:12px}
.studio-ready .studio-drawer .paperwork-source-frame{max-height:55vh;overflow:auto}
:root[data-appearance=dark] .login{background:var(--studio-surface)}
:root[data-appearance=dark] .ct-section,:root[data-appearance=dark] .ct-folder,:root[data-appearance=dark] .ortho-shell,:root[data-appearance=dark] .ortho-header,:root[data-appearance=dark] .ortho-card,:root[data-appearance=dark] .ortho-result,:root[data-appearance=dark] .physical-shell,:root[data-appearance=dark] .billing-tabs,:root[data-appearance=dark] .native-flow-head,:root[data-appearance=dark] .directory-shell,:root[data-appearance=dark] .paperwork-shell,:root[data-appearance=dark] .paperwork-layout>aside,:root[data-appearance=dark] .paperwork-original,:root[data-appearance=dark] .paperwork-source-review{background:var(--studio-surface);color:var(--studio-ink);border-color:var(--studio-line)}
:root{--prime-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--prime-ink:var(--studio-ink);--prime-muted:var(--studio-muted);--prime-accent:var(--studio-accent);--prime-accent-deep:var(--studio-accent);--prime-line:var(--studio-line);--prime-surface:var(--studio-surface);--prime-pale:var(--studio-raised);--ct-line:var(--studio-line);--ct-blue:var(--studio-accent);--ct-folder:var(--studio-accent)}
:root[data-appearance] body input:not([type=checkbox]):not([type=radio]),:root[data-appearance] body select,:root[data-appearance] body textarea{background:var(--studio-raised);color:var(--studio-ink);border-color:var(--studio-line)}
:root[data-appearance=dark] #nav button,:root[data-appearance=dark] .sidebar-bottom,:root[data-appearance=dark] .sidebar .eyebrow,:root[data-appearance=dark] .soap-tabs button{color:var(--studio-muted)}
:root[data-appearance] #soap-tabs button.active{color:var(--studio-accent)}
:root[data-appearance=dark] .orthopedic-workbench button,:root[data-appearance=dark] .ct-workbench button,:root[data-appearance=dark] .native-flow-workbench button,:root[data-appearance=dark] .clinical-entry-workbench button,:root[data-appearance=dark] .physical-exam-workbench button,:root[data-appearance=dark] .therapy-workbench button,:root[data-appearance=dark] .directory-shell button,:root[data-appearance=dark] .paperwork-shell button{background:var(--studio-raised);color:var(--studio-ink);border-color:var(--studio-line)}
:root[data-appearance=dark] .orthopedic-workbench button[aria-selected=true],:root[data-appearance=dark] button.selected,:root[data-appearance=dark] button[aria-pressed=true],:root[data-appearance=dark] .ct-workbench button.selected{background:var(--studio-selected);color:var(--studio-accent);border-color:var(--studio-accent)}
:root[data-appearance=dark] .ortho-step,:root[data-appearance=dark] .ortho-preview,:root[data-appearance=dark] .ortho-reference,:root[data-appearance=dark] .ortho-entry-heading,:root[data-appearance=dark] .ortho-entry-footer,:root[data-appearance=dark] .ct-source-tree,:root[data-appearance=dark] .ct-editor-shell,:root[data-appearance=dark] .ct-window-title,:root[data-appearance=dark] .ct-patient-line,:root[data-appearance=dark] .ct-visit-toolbar,:root[data-appearance=dark] .ct-menu-tools,:root[data-appearance=dark] .ct-macro-footer,:root[data-appearance=dark] .ct-format-bar,:root[data-appearance=dark] .ct-spine-picker,:root[data-appearance=dark] .ct-note-editor,:root[data-appearance=dark] .clinical-mode-bar,:root[data-appearance=dark] .recovered-clinical,:root[data-appearance=dark] .cpt-guide,:root[data-appearance=dark] .billing-section,:root[data-appearance=dark] .billing-header,:root[data-appearance=dark] .billing-rows,:root[data-appearance=dark] .native-flow-card,:root[data-appearance=dark] .physical-exam-section,:root[data-appearance=dark] .clinical-entry-section,:root[data-appearance=dark] .ci-question,:root[data-appearance=dark] .ci-baseline{background:var(--studio-surface);color:var(--studio-ink);border-color:var(--studio-line)}
:root[data-appearance=dark] .ortho-test-card strong,:root[data-appearance=dark] .ortho-test-card small,:root[data-appearance=dark] .ortho-reference small,:root[data-appearance=dark] .ortho-header-count,:root[data-appearance=dark] .ortho-help,:root[data-appearance=dark] .ortho-muted,:root[data-appearance=dark] .ct-question-title,:root[data-appearance=dark] .ct-note-status,:root[data-appearance=dark] .ct-breadcrumb{color:var(--studio-muted)}
:root[data-appearance=dark] .ortho-error,:root[data-appearance=dark] .paperwork-error,:root[data-appearance=dark] .directory-error{background:var(--studio-warning-bg);color:var(--studio-warning);border-color:var(--studio-warning)}
:root[data-appearance=dark] .ortho-test-card span,:root[data-appearance=dark] .ortho-test-card em,:root[data-appearance=dark] .ortho-test-card>b,:root[data-appearance=dark] .ortho-region-tabs small{color:var(--studio-muted)}

.studio-ready #panel>details[data-studio-group]:not([hidden])[open]>summary{display:none}.studio-ready .ortho-region-tabs{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:7px}.studio-ready .ortho-region-tabs button{white-space:nowrap;flex-shrink:0}.studio-ready .ct-menu-hole{display:none}.studio-ready .ct-macro-grid .ct-menu-button{min-height:56px;border-radius:12px;font-weight:600}.studio-ready .ct-macro-grid{gap:9px}

/* Provider presentation owner. Clinical catalogs, facts and action handlers stay in their existing modules. */
body.studio-ready{margin:0;overflow:hidden;font-family:var(--studio-font);font-size:var(--studio-body-size)}
.studio-ready .demo-banner{position:fixed;inset:0 0 auto;height:26px;padding:4px 16px;background:var(--studio-shell);color:var(--studio-muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.studio-ready #app{position:fixed;top:26px;left:0;right:0;height:calc(var(--studio-vh) - 26px)}
.studio-ready .app-top{height:56px;padding:6px 20px;background:var(--studio-surface);border-bottom:1px solid var(--studio-line);gap:16px}
.studio-ready .wordmark{color:var(--studio-ink);letter-spacing:.08em;font-size:16px;white-space:nowrap}
.studio-ready .wordmark strong{color:var(--studio-ink)}
.studio-ready .wordmark>span:not(.prime-owner-logo){color:var(--studio-muted);font-size:13px;letter-spacing:0}
.studio-ready .top-right{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px;color:var(--studio-muted)}
.studio-ready .top-right .button{background:transparent;color:var(--studio-ink);margin:0;font-size:13px;min-height:40px;white-space:nowrap}
.studio-ready .studio-appearance{min-height:40px;padding:6px 10px;font-size:13px;max-width:145px}
.studio-ready .shell{height:calc(100% - 56px);min-height:0;display:grid;grid-template-columns:172px minmax(0,1fr)}
.studio-ready .sidebar{height:100%;overflow:auto;background:var(--studio-shell);border-right:1px solid var(--studio-line);padding:24px 12px;color:var(--studio-muted)}
.studio-ready .sidebar .eyebrow{font-size:11px;letter-spacing:.1em;color:var(--studio-muted)}
.studio-ready .sidebar nav button{display:flex;width:100%;gap:10px;margin:4px 0;padding:10px 12px;text-align:left;border:1px solid transparent;border-radius:10px;background:transparent;box-shadow:none;color:var(--studio-muted);font-size:14px;font-weight:560;line-height:1.4;white-space:normal}
.studio-ready .sidebar nav button:hover{background:var(--studio-raised);color:var(--studio-ink)}
.studio-ready .sidebar nav button.active{background:var(--studio-surface);color:var(--studio-ink);border-color:var(--studio-line);box-shadow:inset 3px 0 var(--studio-accent)}
.studio-ready .sidebar-bottom{position:static;margin-top:28px;font-size:12px;line-height:1.6;color:var(--studio-muted)}
.studio-ready .workspace{padding:16px;display:grid;grid-template-columns:minmax(0,1fr) 268px;grid-template-rows:auto auto auto auto auto minmax(0,1fr) auto;gap:8px 16px;min-width:0;min-height:0;overflow:hidden;background:var(--studio-bg)}
.studio-ready .workspace-heading{display:none}
.studio-ready .identity{grid-column:1;grid-row:1;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(120px,.85fr) minmax(140px,.9fr);gap:14px;align-items:start;margin:0;padding:12px 16px;min-height:0;border:1px solid var(--studio-line);border-radius:var(--studio-radius-panel);box-shadow:none;background:var(--studio-surface)}
.studio-ready .identity>div{min-width:0}.studio-ready .identity .identity-visit{grid-column:auto}
.studio-ready .identity .avatar{display:none}
.studio-ready .identity #patient{font-size:22px;line-height:1.2;font-weight:700;letter-spacing:-.035em;overflow-wrap:anywhere}
.studio-ready .identity small,.studio-ready .identity label{font-size:12px;font-weight:650;letter-spacing:.035em;color:var(--studio-muted)}
.studio-ready .identity strong{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.studio-ready .identity select{font-size:14px;width:100%;max-width:100%;min-height:40px;border-radius:var(--studio-radius-control)}
.studio-ready .identity #mapping{display:none}
.studio-ready .studio-context-line,.studio-ready #studio-encounter-reference{font-size:13px;line-height:1.5;color:var(--studio-muted);overflow-wrap:anywhere}
.studio-ready .patient-demographic-line{font-size:13px;line-height:1.5;gap:4px 10px}
.studio-ready #studio-salt-summary,.studio-ready .patient-benefit-button{padding:4px 0;min-height:30px;text-align:left;font-size:13px;border:0;background:transparent;color:var(--studio-accent);box-shadow:none}
.studio-ready #studio-visit-labels{margin:4px 0;font-size:12px}
.studio-ready .savebar{grid-column:1;grid-row:2;min-height:28px;padding:0 3px;margin:0;font-size:13px;color:var(--studio-muted);display:flex;gap:8px;justify-content:space-between;align-items:center}
.studio-ready .savebar>div{display:flex;gap:8px}.studio-ready .savebar button{font-size:12px;min-height:28px;padding:3px 8px;box-shadow:none}
.studio-ready .savebar .test-tools{display:none}
.studio-ready #soap-tabs{grid-column:1;grid-row:3;display:flex;gap:4px;margin:0;padding:4px;border:1px solid var(--studio-line);border-radius:12px;background:var(--studio-shell);overflow:auto}
.studio-ready #soap-tabs button{flex:1 0 auto;min-height:40px;padding:6px 10px;border:1px solid transparent;border-radius:8px;background:transparent;box-shadow:none;font-size:14px;font-weight:550;color:var(--studio-muted);white-space:nowrap}
.studio-ready #soap-tabs button.active{background:var(--studio-surface);border-color:var(--studio-line);color:var(--studio-ink);font-weight:700;box-shadow:inset 0 -2px var(--studio-accent)}
.studio-ready #soap-tabs small{font-size:11px}
.studio-ready #studio-tools{grid-column:1;grid-row:4;display:flex;align-items:center;gap:6px;min-height:44px;overflow-x:auto;padding:2px 0 4px;scroll-padding:8px}
.studio-ready #studio-tools button{flex-shrink:0;min-height:40px;padding:7px 11px;font-size:13px;white-space:nowrap;border-radius:var(--studio-radius-control);background:transparent;box-shadow:none}
.studio-ready #studio-tools button[aria-pressed=true]{background:var(--studio-surface);color:var(--studio-accent);border-color:var(--studio-accent);font-weight:650}
.studio-ready .content-grid,.studio-ready .content-grid.has-macros,.studio-ready .content-grid.wide{grid-column:1;grid-row:6;display:block;height:100%;min-height:0;min-width:0;margin:0;overflow:hidden}
.studio-ready #panel{height:100%;min-height:0;min-width:0;overflow:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;scroll-padding:20px;margin:0;padding:20px;border:1px solid var(--studio-line);border-radius:var(--studio-radius-panel);box-shadow:var(--studio-shadow);background:var(--studio-surface)}
.studio-ready #panel>details{margin-top:0}
.studio-ready #plan-inspector{grid-column:2;grid-row:1/7;min-height:0;overflow-y:auto;scroll-padding:8px;display:flex;flex-direction:column;gap:10px;padding:0 3px 2px 0}
.studio-ready .plan-card{position:relative;flex:0 0 auto;display:flex;flex-direction:column;gap:8px;min-height:0;padding:16px;border:1px solid var(--studio-line);border-radius:var(--studio-radius-panel);background:var(--studio-surface);box-shadow:none;isolation:isolate;overflow:visible}
.studio-ready .plan-card header{display:grid;grid-template-columns:22px minmax(0,1fr) 16px;align-items:start;gap:6px}
.studio-ready .plan-card h2{margin:0;font-size:14px;line-height:1.35;letter-spacing:-.015em;font-weight:680;color:var(--studio-ink)}
.studio-ready .plan-number,.studio-ready .plan-open-symbol{font-size:12px;color:var(--studio-muted);line-height:1.5}
.studio-ready .plan-card .plan-state{align-self:start;border-radius:var(--studio-radius-chip);padding:3px 8px;font-size:12px;font-weight:650;line-height:1.4;background:var(--studio-raised);color:var(--studio-muted)}
.studio-ready .plan-card[data-tone=approved] .plan-state,.studio-ready .plan-card[data-tone=confirmed] .plan-state{color:var(--studio-ok);background:var(--studio-ok-bg)}
.studio-ready .plan-card[data-tone=pending] .plan-state{color:var(--studio-warning);background:var(--studio-warning-bg)}
.studio-ready .plan-card p{margin:0;font-size:14px;line-height:1.5;display:block;overflow:visible;white-space:normal;overflow-wrap:anywhere}
.studio-ready .plan-card .plan-support,.studio-ready .plan-card .plan-meta{font-size:13px;line-height:1.45;color:var(--studio-muted)}
.studio-ready .plan-card footer{display:block;margin-top:4px}
.studio-ready .plan-card .plan-detail{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:var(--studio-radius-panel);box-shadow:none;background:transparent;transform:none}
.studio-ready .plan-card:has(.plan-detail:hover){border-color:var(--studio-accent)}

.studio-ready #studio-compact-plans{display:none}
.studio-ready #studio-actions{grid-column:1/-1;grid-row:7;display:flex;flex-direction:column;gap:6px;margin:0;padding:4px 0 0;min-width:0;background:var(--studio-bg)}
.studio-ready #studio-action-strip{display:flex;justify-content:space-between;gap:8px;min-width:0}
.studio-ready #studio-action-strip .actions{display:flex;flex-wrap:nowrap;gap:6px;margin:0;overflow-x:auto;min-width:0;padding:3px}
.studio-ready #studio-actions button{flex-shrink:0;min-height:42px;padding:8px 12px;font-size:13px;white-space:nowrap;border-radius:var(--studio-radius-control);box-shadow:none}
.studio-ready #studio-actions .studio-save{background:var(--studio-accent);color:var(--studio-primary-ink);border-color:var(--studio-accent);font-weight:700}
.studio-ready #error{max-height:100px;overflow:auto;margin:0;padding:10px;scroll-margin:12px}
.studio-ready #studio-feedback:empty{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.studio-ready #studio-feedback{margin:0;font-size:14px;padding:8px 12px;background:var(--studio-info-bg);color:var(--studio-info);border-radius:var(--studio-radius-control);max-height:88px;overflow:auto}
.studio-ready .workspace.studio-global{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
.studio-ready .workspace.studio-global .content-grid{grid-column:1/-1;grid-row:1}.studio-ready .workspace.studio-global #studio-actions{grid-row:2}
.studio-ready .studio-drawer{position:fixed;inset:0 0 0 auto;width:min(680px,95vw);height:var(--studio-vh);z-index:1001;display:flex;flex-direction:column;gap:16px;padding:24px;background:var(--studio-overlay);color:var(--studio-ink);box-shadow:var(--studio-overlay-shadow);border-left:1px solid var(--studio-line);border-radius:var(--studio-radius-drawer) 0 0 var(--studio-radius-drawer)}
.studio-ready .studio-drawer>header{display:flex;justify-content:space-between;align-items:start;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--studio-line)}
.studio-ready .studio-drawer>header h2{margin:4px 0;font-size:24px;letter-spacing:-.035em}
.studio-ready .studio-drawer>header button{min-height:44px;box-shadow:none}
.studio-ready .studio-drawer-content{min-height:0;overflow:auto;flex:1;scroll-padding:16px}
.studio-ready .studio-drawer .preview{display:block;padding:0;border:0;box-shadow:none;max-height:none;background:transparent}
.studio-ready #studio-drawer-backdrop{position:fixed;inset:0;background:#10161966;z-index:1000}
.studio-ready .studio-plan-row{padding:16px 0;border-bottom:1px solid var(--studio-line)}
.studio-ready .studio-plan-row h3{font-size:17px}.studio-ready .studio-plan-row p{white-space:pre-wrap;font-size:16px;line-height:1.6}
@media(max-width:1200px){.studio-ready .shell{grid-template-columns:172px minmax(0,1fr)}.studio-ready .workspace{grid-template-columns:minmax(0,1fr) 244px;padding:10px;gap:7px 10px}.studio-ready .sidebar{padding:18px 8px}.studio-ready .sidebar nav button{font-size:13px;padding:9px 8px;overflow-wrap:anywhere}.studio-ready .identity{padding:12px;gap:10px;grid-template-columns:minmax(0,1.4fr) minmax(110px,.9fr) minmax(120px,.9fr)}.studio-ready .identity #patient{font-size:19px}.studio-ready .plan-card{padding:12px;min-height:120px}.studio-ready .plan-card p{font-size:13px}.studio-ready .wordmark>span:not(.prime-owner-logo){display:none}.studio-ready .top-right{font-size:0}.studio-ready .top-right .button{font-size:12px}}
@media(max-width:1100px),(max-height:600px){.studio-ready .workspace{grid-template-columns:minmax(0,1fr)}.studio-ready #plan-inspector{grid-column:1;grid-row:5;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:0;overflow:visible}.studio-ready #plan-inspector .plan-card{min-height:44px;padding:6px;gap:3px;border-radius:10px}.studio-ready #plan-inspector .plan-card header{grid-template-columns:minmax(0,1fr) 12px;gap:3px}.studio-ready #plan-inspector .plan-number{display:none}.studio-ready #plan-inspector .plan-card h2{font-size:12px}.studio-ready #plan-inspector .plan-card p,.studio-ready #plan-inspector .plan-card footer{display:none}.studio-ready #plan-inspector .plan-state{font-size:11px;padding:2px 4px}.studio-ready #plan-inspector .plan-detail{border-radius:10px}.studio-ready #studio-compact-plans{display:block}.studio-ready .identity{padding:10px;gap:8px;grid-template-columns:minmax(0,1.5fr) minmax(105px,.9fr) minmax(110px,.9fr)}.studio-ready #studio-encounter-reference{font-size:12px}.studio-ready .studio-drawer{width:100%;border-radius:0}.studio-ready #studio-actions .studio-secondary{min-width:max-content}}
@media(max-width:1100px){.studio-ready .shell{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.studio-ready .sidebar{height:auto;padding:4px 8px;overflow:hidden;border-right:0;border-bottom:1px solid var(--studio-line)}.studio-ready .sidebar>.eyebrow,.studio-ready .sidebar-bottom,.studio-ready .nav-divider,.studio-ready .sidebar nav>.eyebrow{display:none}.studio-ready .sidebar nav{display:flex;overflow-x:auto;gap:4px}.studio-ready .sidebar nav button{width:auto;flex-shrink:0;min-height:40px;margin:0;white-space:nowrap}.studio-ready .nav-symbol{display:none}.studio-ready .app-top{padding:4px 10px;gap:8px}.studio-ready .wordmark{font-size:13px;letter-spacing:.03em}.studio-ready .top-right .button{font-size:12px;padding:5px 8px}.studio-ready .identity{grid-template-columns:minmax(0,1.5fr) minmax(100px,1fr)}.studio-ready .identity .identity-visit{grid-column:1/-1;display:flex;align-items:center;gap:8px}.studio-ready .identity select{width:100%;min-width:0}.studio-ready .identity #patient{font-size:18px}.studio-ready #soap-tabs button{font-size:13px;padding:6px}.studio-ready #soap-tabs small{display:none}.studio-ready #studio-action-strip{display:block}.studio-ready #studio-actions .actions+.actions{display:none}.studio-ready .studio-context-line{font-size:12px}.studio-ready #panel{padding:12px}.studio-ready .savebar{flex-wrap:wrap}.studio-ready #plan-inspector{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-height:600px) and (min-width:761px){.studio-ready .identity{grid-template-columns:minmax(0,1.6fr) minmax(130px,1fr) minmax(140px,1fr)}.studio-ready .identity #patient{font-size:17px}.studio-ready .identity #studio-visit-labels{display:none}.studio-ready .identity .patient-demographic-line{font-size:12px}.studio-ready .identity #studio-salt-summary{min-height:24px;padding:0}.studio-ready #studio-action-strip .actions+.actions{display:none}.studio-ready .sidebar-bottom{display:none}}
@media(prefers-reduced-motion:reduce){.studio-ready .studio-drawer{animation:none}.studio-ready button{transition:none;transform:none}}
/* Source library and preview typography consume the same semantic text colors. */
.studio-ready .sidebar #nav button{color:var(--studio-muted)}
.studio-ready .sidebar #nav button.active{color:var(--studio-ink);background:var(--studio-surface);border-color:var(--studio-line)}
.studio-ready #studio-drawer .soap,.studio-ready #studio-drawer .soap p,.studio-ready #studio-drawer .soap h3,.studio-ready #studio-drawer .soap h4{color:var(--studio-ink)}
.studio-ready #studio-drawer .soap{font-size:16px;line-height:1.7}
.studio-ready #studio-drawer .soap h3{font-size:18px;letter-spacing:-.02em}
.studio-ready .ct-menu-grid .ct-menu-button,.studio-ready .ct-macro-grid .ct-menu-button{border-radius:var(--studio-radius-control);background:var(--studio-raised);border-color:var(--studio-line);box-shadow:none;color:var(--studio-ink);font-size:14px;line-height:1.4;min-height:56px}
.studio-ready .app-top{min-width:0;max-width:100%}
.studio-ready .top-right{flex:1;min-width:0;overflow-x:auto;justify-content:flex-start;padding:3px}
.studio-ready .top-right .studio-appearance{min-width:130px;flex-shrink:0}
.studio-ready .identity .identity-service-date{display:block}
.studio-ready .identity #dos{display:block;white-space:nowrap;overflow-wrap:normal}
.studio-ready .identity #studio-encounter-reference{display:block;text-align:left;border:0;background:transparent;color:var(--studio-accent);padding:2px 0;min-height:28px;font-size:13px;box-shadow:none}
.studio-ready .patient-demographic-line{display:flex;flex-wrap:wrap;gap:2px 8px}
.studio-ready .patient-header-id,.studio-ready .patient-header-external{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-ready .studio-context-identifiers{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 16px;font-size:14px}
.studio-ready .studio-context-identifiers dd{margin:0;overflow-wrap:anywhere}
.studio-ready #studio-visit-labels .visit-context-chips{display:flex;flex-wrap:wrap}
@media(max-width:1100px){.studio-ready .identity{grid-template-columns:minmax(0,1.3fr) minmax(150px,1fr)}.studio-ready .identity .identity-visit{grid-column:1/-1;display:flex;align-items:center;gap:10px}.studio-ready .identity .identity-visit select{max-width:320px}.studio-ready .app-top .trip-provider{display:none}}
@media(max-width:760px){.studio-ready .sidebar{min-width:0}.studio-ready .sidebar nav{min-width:0}.studio-ready .wordmark{flex-shrink:0}.studio-ready .identity{grid-template-columns:minmax(0,1.2fr) minmax(125px,1fr)}.studio-ready .identity .patient-header-external{display:none}}
@media(max-height:600px){.studio-ready .identity{grid-template-columns:minmax(0,1.5fr) minmax(130px,1fr) minmax(130px,1fr)}.studio-ready .identity .identity-visit{display:block;grid-column:auto}.studio-ready .identity .patient-header-external{display:none}.studio-ready .identity .patient-header-id{font-size:12px}.studio-ready .identity #studio-salt-summary{font-size:12px}.studio-ready .identity .patient-benefit-button{font-size:12px}}
@media(max-width:480px){.studio-ready .identity{grid-template-columns:minmax(0,1fr) minmax(120px,.8fr)}.studio-ready .identity .identity-visit{display:flex;grid-column:1/-1}.studio-ready .identity .patient-header-id{display:none}.studio-ready .identity #studio-visit-labels{display:none}.studio-ready .identity #patient{font-size:17px}.studio-ready .identity .studio-context-line{font-size:12px}.studio-ready #soap-tabs button{flex:1 0 auto}.studio-ready .top-right{max-width:calc(100vw - 175px)}.studio-ready .top-right .studio-appearance{min-width:135px}.studio-ready #studio-actions{gap:4px}}
/* Short visual viewports reflow the task; never squeeze clinical input to zero. */
.studio-ready .identity #studio-encounter-reference{white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.studio-ready.studio-local-development .savebar .test-tools{display:block}
@media(max-height:600px),(max-width:600px){
 .studio-ready .workspace{display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior-y:contain;scroll-padding-block:var(--studio-sticky-context,200px) var(--studio-sticky-actions,110px);gap:7px;padding-bottom:8px}
 .studio-ready .workspace :is(button,input,select,textarea,summary){scroll-margin-block:4px}
 .studio-ready .identity{position:sticky;top:0;z-index:4;flex:0 0 auto;order:1;box-shadow:var(--studio-shadow)}
 .studio-ready .savebar{order:2;flex:0 0 auto}.studio-ready #soap-tabs{order:3;flex:0 0 auto}.studio-ready #studio-tools{order:4;flex:0 0 auto}
 .studio-ready #plan-inspector{order:5;flex:0 0 auto;overflow:visible}
 .studio-ready .content-grid,.studio-ready .content-grid.has-macros,.studio-ready .content-grid.wide{order:6;flex:0 0 auto;min-height:220px;height:auto;overflow:visible}
 .studio-ready #panel{height:auto;min-height:220px;overflow:visible;padding-bottom:110px}
 .studio-ready #studio-actions{order:7;position:sticky;bottom:0;z-index:5;flex:0 0 auto;padding:8px 3px;background:var(--studio-surface);border:1px solid var(--studio-line);border-radius:12px;box-shadow:0 -3px 12px var(--brand-shadow)}
}
@media(max-width:1100px),(max-height:600px){
 .studio-ready #studio-action-strip{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px;scroll-padding-inline:6px}
 .studio-ready #studio-action-strip .actions,.studio-ready #studio-action-strip .actions+.actions{display:contents}
 .studio-ready #studio-actions .studio-secondary{display:inline-flex}
 .studio-ready #studio-actions button:focus-visible{outline-offset:-4px}
 .studio-ready #studio-actions .studio-save:focus-visible{outline-color:var(--studio-primary-ink)}
}

.studio-ready .plan-card .plan-detail:focus-visible{outline-offset:-4px}
@media(max-width:360px){.studio-ready .top-right{max-width:calc(100vw - 80px)}}
/* Keep context and the account exit reachable above a reduced-height keyboard. */
.studio-ready .top-right #logout{position:sticky;right:0;z-index:2;margin-left:auto;background:var(--studio-surface);box-shadow:-6px 0 0 var(--studio-surface)}
@media(max-width:480px){.studio-ready .wordmark{font-size:12px;gap:4px}.studio-ready .identity .patient-benefit-button{display:block;max-width:100%;min-height:28px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.studio-ready .identity .patient-heading small{display:none}.studio-ready #studio-feedback{font-size:12px;line-height:1.4;padding:6px 8px}.studio-ready #studio-actions{padding-block:6px}}
@media(max-width:360px){.studio-ready .wordmark{font-size:0}.studio-ready .wordmark strong{display:none}}
.studio-ready #studio-feedback,.studio-ready #error{max-height:54px;overflow:auto}

@media(max-width:760px){.studio-ready .sidebar nav{padding:2px 8px;scroll-padding:8px}}

/* Submitted information leads the intake task; assignment stays available in place. */
.studio-ready .intake-source-review{margin-top:12px;padding:20px 0;border-top:1px solid var(--studio-line)}
.studio-ready .intake-source-review h3{font-size:22px;line-height:1.3;margin:8px 0 12px}
.studio-ready .intake-source-report{padding:16px 0;border-bottom:1px solid var(--studio-line)}
.studio-ready .intake-source-date{color:var(--studio-muted);font-size:13px;line-height:1.5}
.studio-ready .intake-source-prose{font-size:16px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.studio-ready .intake-source-report details{margin-top:16px;font-size:14px}
.studio-ready .intake-source-report pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
.studio-ready .intake-assignment-tools{margin-top:24px;padding-block:16px;border-top:1px solid var(--studio-line)}
.studio-ready .intake-assignment-tools>summary{font-size:16px;font-weight:650;min-height:44px;align-content:center;cursor:pointer}
@media(max-width:760px){.studio-ready .intake-source-review{padding-block:12px}.studio-ready .intake-source-review h3{font-size:20px}}

/* Compact summaries retain four distinct plans; detail stays in the existing drawer. */
@media(max-width:600px){.studio-ready #plan-inspector{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-ready #studio-action-strip{flex-wrap:nowrap;overflow-x:auto}.studio-ready #studio-actions .actions{display:contents}}
.studio-ready .studio-drawer-context{margin:6px 0 0;font-size:14px;line-height:1.5;color:var(--studio-muted);overflow-wrap:anywhere}

/* One clinical focal surface, followed by the same source-linked section routes. */
.studio-ready .chart-heading h2{margin:4px 0 16px;font-size:24px;letter-spacing:-.035em}
.studio-ready .chart-current{padding:20px 22px;background:var(--studio-raised);border-inline-start:3px solid var(--studio-accent);border-radius:0 var(--studio-radius-control) var(--studio-radius-control) 0}
.studio-ready .chart-current h3{font-size:20px;letter-spacing:-.025em;margin:8px 0}
.studio-ready .chart-current p{font-size:16px;line-height:1.65;margin:10px 0;white-space:pre-wrap}
.studio-ready .chart-clinical-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 0;border-bottom:1px solid var(--studio-line)}
.studio-ready .chart-clinical-row h3,.studio-ready .chart-follow-through h3{font-size:16px;margin:0 0 6px}
.studio-ready .chart-clinical-row p,.studio-ready .chart-follow-through p{font-size:15px;line-height:1.55;margin:0;color:var(--studio-muted)}
.studio-ready .chart-clinical-row button{flex-shrink:0;font-size:13px}
.studio-ready .chart-background{border:0;border-bottom:1px solid var(--studio-line);border-radius:0;padding:12px 0;margin:0}
.studio-ready .chart-background summary{min-height:44px;align-content:center;font-size:15px;font-weight:650}
.studio-ready .chart-follow-through{padding-block:18px}
@media(max-width:600px){.studio-ready .chart-current{padding:16px}.studio-ready .chart-clinical-row{align-items:flex-start;flex-direction:column;gap:10px}}

.studio-ready #studio-patient-detail-row{grid-column:1/-1;display:flex;align-items:center;gap:6px 18px;flex-wrap:wrap;border-top:1px solid var(--studio-line);padding-top:8px;min-width:0}
.studio-ready #studio-patient-detail-row .patient-demographic-line{flex:1 1 100%;margin:0;align-items:center}
.studio-ready .patient-demographic-line>span{font-size:13px;line-height:1.5}
.studio-ready .studio-external-identifiers{position:relative;padding:0;border:0;margin:0;background:transparent;border-radius:0}
.studio-ready .studio-external-identifiers summary{padding:0 4px;font-size:13px;min-height:24px;cursor:pointer;color:var(--studio-muted)}
.studio-ready .studio-external-identifiers>span{display:block;font-size:13px;white-space:normal;overflow-wrap:anywhere}
.studio-ready #studio-patient-detail-row #studio-context-line{flex:1 1 220px;font-size:13px}
.studio-ready #studio-patient-detail-row #studio-salt-summary{flex:0 1 auto;font-size:13px;min-height:32px;margin:0;padding:4px 8px}

.studio-ready .chart-report-preview p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:8px 0;line-height:1.55}
.studio-ready .chart-current .chart-preview-label{font-size:13px;color:var(--studio-muted);margin:8px 0}

@media(min-width:601px) and (max-width:1100px){.studio-ready .identity{grid-template-columns:minmax(0,1.5fr) minmax(140px,.85fr) minmax(140px,.85fr)}.studio-ready .identity .identity-visit{grid-column:3;grid-row:1}.studio-ready #studio-patient-detail-row{grid-column:1/-1;grid-row:2}}

/* Landscape tablets keep a compact rail; portrait gets the full-width task area. */
@media(min-width:960px) and (max-width:1100px) and (min-height:601px) and (orientation:landscape){
 .studio-ready .shell{grid-template-columns:172px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
 .studio-ready .sidebar{height:100%;overflow:auto;padding:18px 8px;border-right:1px solid var(--studio-line);border-bottom:0}
 .studio-ready .sidebar>.eyebrow,.studio-ready .sidebar nav>.eyebrow,.studio-ready .nav-divider{display:block}
 .studio-ready .sidebar nav{display:block;overflow:visible}.studio-ready .sidebar nav button{width:100%;margin:4px 0;white-space:normal}
}
.studio-ready #studio-encounter-reference{display:block;min-height:0;margin:3px 0;color:var(--studio-muted);font-size:13px}
.studio-ready #studio-feedback{padding:4px 8px;line-height:1.4}

.studio-ready #studio-patient-benefits{min-height:32px;margin:0;padding:4px 8px;font-size:13px}
@media(min-width:761px) and (min-height:601px){.studio-ready #studio-compact-plans{display:none}}

/* Compact persistent identity; complete IDs, SALT and coverage remain in Patient details. */
.studio-ready .studio-identity-readback{display:grid;gap:12px;font-size:15px;overflow-wrap:anywhere}
.studio-ready #studio-patient-detail-row{padding-top:6px;gap:6px 12px;flex-wrap:nowrap}
.studio-ready #studio-patient-detail-row .patient-demographic-line,.studio-ready #studio-patient-detail-row #studio-salt-summary,.studio-ready #studio-patient-detail-row #studio-patient-benefits{display:none}
.studio-ready #studio-patient-detail-row #studio-context-line{flex:1 1 auto;font-size:13px;line-height:1.4}
.studio-ready #studio-patient-details{display:inline-flex;flex-shrink:0;min-height:32px;padding:6px 10px;font-size:13px}
.studio-ready .identity #studio-encounter-reference{display:none}
.studio-ready .identity{padding:10px 14px;gap:6px 14px}
.studio-ready .identity #studio-visit-labels{display:none}.studio-ready .identity .patient-heading small{display:none}
.studio-ready .savebar{min-height:28px}
.studio-ready #panel{padding:14px 16px}
@media(max-height:600px){
 .studio-ready .identity{padding:6px 10px;gap:3px 10px;grid-template-columns:minmax(0,1.5fr) minmax(105px,.7fr) minmax(130px,.8fr)}
 .studio-ready .identity #patient{font-size:16px;line-height:1.2}
 .studio-ready .identity .patient-heading small,.studio-ready .identity #studio-visit-labels{display:none}
 .studio-ready #studio-patient-detail-row{padding:0;border:0;justify-content:flex-end}
 .studio-ready #studio-patient-detail-row #studio-context-line{display:none}
 .studio-ready #studio-patient-details{min-height:32px;padding:2px 8px;font-size:12px}
 .studio-ready #studio-actions{padding:4px;gap:3px}
 .studio-ready #studio-actions button{min-height:40px;padding:5px 10px}
}
@media(max-width:600px) and (min-height:601px){
 .studio-ready .identity{grid-template-columns:minmax(0,1fr) minmax(100px,.65fr)}
 .studio-ready .identity .identity-visit{grid-column:1/-1}
 .studio-ready #studio-patient-detail-row{flex-wrap:wrap}
 .studio-ready #studio-patient-detail-row #studio-context-line{flex-basis:60%}
}

@media(max-height:600px) and (min-width:601px){
 .studio-ready .identity{grid-template-columns:minmax(0,1fr) 115px minmax(140px,.65fr) auto;align-items:center}
 .studio-ready .identity .identity-service-date{grid-column:2;grid-row:1}
 .studio-ready .identity .identity-visit{grid-column:3;grid-row:1;display:block}
 .studio-ready #studio-patient-detail-row{display:flex;grid-column:4;grid-row:1}
 .studio-ready .identity .patient-heading .avatar{display:none}
}

@media print{html.studio-root,body.studio-ready{height:auto;overflow:visible}.studio-ready #app{position:static;height:auto}}
