/* Prime Health refinement: one semantic system, unchanged clinical control structure. */
html {text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%}
body {font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.006em}
body :is(h1,h2,h3,h4) {text-wrap:balance;letter-spacing:-.025em}
body :is(button,.button) {min-height:var(--refine-control-height);border-radius:var(--refine-radius);font-weight:560;line-height:1.35;box-shadow:inset 0 1px var(--refine-highlight),0 1px 2px var(--refine-shadow);transition:background-color .14s,border-color .14s,box-shadow .14s;cursor:pointer}
body :is(button,.button):hover:not(:disabled) {border-color:color-mix(in srgb,var(--studio-accent) 55%,var(--studio-line));box-shadow:inset 0 1px var(--refine-highlight),0 2px 5px var(--refine-shadow)}
body :is(button,.button):active:not(:disabled) {box-shadow:inset 0 1px 3px var(--refine-shadow);transform:translateY(1px)}
body :is(button,.button):disabled {cursor:not-allowed;opacity:.58;box-shadow:none;transform:none}
body :is(button,.button)[aria-pressed=true],body button[aria-selected=true] {font-weight:700;border-color:var(--studio-accent);background:var(--studio-selected);color:var(--studio-accent);box-shadow:inset 0 0 0 1px var(--studio-accent)}
body :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible {outline:3px solid var(--studio-focus);outline-offset:3px}
body :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {font:inherit;border-radius:11px;background:var(--studio-raised);border-color:var(--studio-line);color:var(--studio-ink);box-shadow:inset 0 1px 2px var(--refine-shadow);max-width:100%}
body :is(input,textarea)::placeholder {color:var(--studio-muted);opacity:.9}
body :is(input,select,textarea):disabled {opacity:.65;box-shadow:none}
body :is(input,select,textarea)[aria-invalid=true] {border-color:var(--studio-danger);box-shadow:inset 0 0 0 1px var(--studio-danger)}
body :is(button.primary,.button.primary,.ci-primary,.directory-primary,.provider-primary) {background:var(--studio-accent);color:var(--refine-primary-ink);border-color:var(--studio-accent);font-weight:680;box-shadow:inset 0 1px #fff3,0 2px 5px var(--refine-shadow)}
body :is(button.primary,.button.primary,.ci-primary,.directory-primary,.provider-primary):hover:not(:disabled) {background:color-mix(in srgb,var(--studio-accent) 92%,var(--studio-ink));color:var(--refine-primary-ink)}
body summary {min-height:44px;align-content:center;line-height:1.4;cursor:pointer}
body :is(.warning,.ct-error,.directory-hold,[role=alert]) {border-radius:12px;line-height:1.5}
body [role=alert]:empty {padding:0;border:0}
.studio-ready .patient-demographic-line {font-size:13px;line-height:1.5;gap:4px 12px}
.studio-ready .clinical-mode-bar {background:transparent;border:0;border-radius:0;padding:0;gap:8px}
.studio-ready .ct-source-bar {box-shadow:none;background:var(--studio-surface);border-bottom-color:var(--studio-line)}
.studio-ready .ct-menu-grid,.studio-ready .ct-macro-grid {gap:9px}
.studio-ready .ct-menu-grid .ct-menu-button,.studio-ready .ct-macro-grid .ct-menu-button {min-height:58px;border-radius:13px!important;background:linear-gradient(180deg,var(--studio-surface),var(--studio-raised))!important;box-shadow:inset 0 1px var(--refine-highlight),inset 0 -1px var(--refine-shadow),0 2px 4px var(--refine-shadow)!important;border-color:var(--studio-line)!important;line-height:1.4;font-weight:620;padding:11px 13px!important}
.studio-ready .ct-menu-grid .ct-menu-button:hover,.studio-ready .ct-macro-grid .ct-menu-button:hover {transform:none;border-color:var(--studio-accent)!important;background:var(--studio-selected)!important}
.studio-ready .ct-menu-grid .ct-menu-button:active,.studio-ready .ct-macro-grid .ct-menu-button:active {transform:translateY(1px);box-shadow:inset 0 1px 4px var(--refine-shadow)!important}
.studio-ready .soap {line-height:1.7;font-size:15px}
.studio-ready .soap h3 {font-size:17px}
.provider-hero {box-shadow:none;border:0;border-bottom:1px solid var(--studio-line);border-radius:0;background:transparent;padding:12px 0}
.provider-hero h1 {font-size:28px;font-weight:700;line-height:1.2;margin:0 0 8px}
.provider-kicker {font-size:11px;letter-spacing:.11em}
.provider-metric {box-shadow:none;border:0;border-right:1px solid var(--studio-line);border-radius:0;background:transparent;padding:8px 12px;gap:10px}
.provider-metric strong {font-size:24px;font-weight:700;margin:0}
.provider-metric span:not(.provider-metric-icon) {font-size:12px;line-height:1.4}
.provider-arrivals,.provider-focus>section {box-shadow:none;padding:14px}
.provider-patient {border-radius:0;background:transparent}
.provider-patient-heading h3 {font-size:16px;font-weight:700}
.provider-patient-status dt {font-size:12px;text-transform:none;letter-spacing:0;margin-bottom:3px}
.provider-patient-status dd {font-size:13px;line-height:1.4}
.provider-state {font-size:11px;font-weight:620}
.provider-recent strong {font-size:13px}
.provider-recent small {font-size:11px}
.directory-app {max-width:1320px;margin-inline:auto}
.directory-heading {gap:16px;margin-bottom:0}
.directory-heading h1 {font-size:clamp(25px,3vw,35px);line-height:1.15;font-weight:720}
.directory-section {border-radius:19px;box-shadow:var(--studio-shadow);background:var(--studio-surface);padding:22px}
.directory-section h2 {font-size:21px;font-weight:680}
.directory-section-heading {gap:14px}
.directory-workspace button {font-size:13px;min-height:44px;line-height:1.4}
.directory-workspace label {font-size:13px;line-height:1.5;font-weight:600}
.directory-workspace .directory-hint {font-size:12px;line-height:1.6}
.directory-details {border-radius:13px;background:var(--studio-raised);box-shadow:none}
.directory-details>summary {padding:8px 12px;min-height:44px;font-size:13px;font-weight:650;line-height:1.45}
.directory-queue-row {background:var(--studio-surface);border-radius:16px;box-shadow:0 1px 2px var(--refine-shadow)}
.directory-queue-person strong {font-size:16px;font-weight:700}
.directory-queue-person>span {font-size:12px;line-height:1.5}
.directory-queue-row dt {font-size:10px;font-weight:650;letter-spacing:.04em}
.directory-queue-row dd {font-size:13px;line-height:1.45}
.directory-badge {font-size:11px;font-weight:650;padding:5px 9px;box-shadow:none}
.directory-counts>span {border-radius:12px;box-shadow:none;background:var(--studio-raised)}
.directory-counts strong {font-size:21px}
.directory-recorded code {display:block;font-size:clamp(18px,3vw,27px);font-weight:700;letter-spacing:.05em;overflow-wrap:anywhere;padding-block:9px}
.checkin-page {max-width:960px;padding-top:20px}
.patient-app-brand {max-width:960px;padding-block:18px;min-height:84px}
.trip-welcome-copy strong {letter-spacing:.015em}
.trip-lettering {line-height:1.2;text-wrap:balance}
.registered-entry {max-width:680px;margin:16px auto 0;padding:clamp(24px,4vw,42px);border-radius:24px;box-shadow:var(--studio-shadow)}
.registered-entry h1 {font-size:clamp(27px,4vw,38px);line-height:1.16;margin:9px 0 14px;font-weight:720;max-width:18ch}
.registered-entry>p {line-height:1.6;max-width:58ch}
.registered-entry form {display:grid;gap:18px;margin:26px 0 18px}
.registered-entry form label {display:grid;gap:8px;font-size:14px;font-weight:650}
.registered-entry input {min-height:54px;padding:12px 15px;font-size:19px;width:100%}
.registered-entry form button {min-height:52px;font-size:16px}
.registered-patients {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px;margin:24px 0}
.registered-patients>article {padding:22px;border:1px solid var(--studio-line);border-radius:18px;background:var(--studio-raised)}
.registered-patients h2 {font-size:21px;margin:0 0 9px}
.registered-patients p {font-size:14px;color:var(--studio-muted)}
.registered-patients button {width:100%;margin-top:10px}
.checkin-heading h1 {font-size:20px;font-weight:700}
.checkin-scope {box-shadow:none;border-radius:0;padding:0;border:0;background:transparent;margin:0}.checkin-scope summary{min-height:36px;align-content:center;font-size:13px;color:var(--studio-muted);cursor:pointer}.checkin-scope p{font-size:14px;line-height:1.5}
.checkin-state-row {font-size:12px}
.ci-tap-panel {padding:clamp(16px,2vw,24px);border-radius:var(--studio-radius-panel);box-shadow:var(--studio-shadow);background:var(--studio-surface)}
.ci-tap-panel .ci-top {align-items:flex-start;border-bottom:1px solid var(--studio-line);padding-bottom:10px;margin-bottom:10px}
.ci-tap-panel .ci-top h2 {font-size:clamp(20px,2.5vw,25px);font-weight:700}
.ci-tap-panel .ci-question {padding:18px 0 20px;border-bottom:1px solid var(--studio-line);background:transparent!important}
.ci-tap-panel .ci-question:last-of-type {border-bottom:0}
.ci-tap-panel .ci-question h3 {font-size:clamp(19px,2.3vw,23px);font-weight:660;line-height:1.4;margin-bottom:11px}
.ci-tap-panel .ci-context:empty {display:none}
.ci-tap-panel .ci-selection-help {font-size:13px;color:var(--studio-muted);margin:6px 0 14px}
.ci-tap-panel .ci-choices {gap:9px}
.ci-tap-panel .ci-choices button {min-height:50px;flex-basis:145px;padding:12px 14px;font-size:15px;line-height:1.4;border-radius:13px}
.ci-tap-panel .ci-choices button[aria-pressed=true] {font-weight:720;box-shadow:inset 0 -3px var(--studio-accent),inset 0 0 0 1px var(--studio-accent)}
.ci-tap-panel .ci-numbers {grid-template-columns:repeat(6,minmax(0,1fr));max-width:600px}
.ci-tap-panel .ci-numbers button {font-size:18px;padding:10px 7px}
.ci-tap-panel .ci-alternatives {gap:6px;border-top:0;padding-top:0;margin:14px 0 6px}
.ci-tap-panel .ci-alternatives button {font-size:13px!important;min-height:44px;padding:8px 11px;background:var(--studio-raised);box-shadow:none}
.ci-tap-panel :is([data-tap-other],[data-tap-clear]) {font-size:13px;min-height:44px;background:transparent;box-shadow:none;border-color:transparent;color:var(--studio-accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.ci-tap-panel textarea {min-height:84px;resize:vertical}
.ci-tap-panel .ci-navigation {position:static;margin-top:12px;padding:16px 0 4px;background:var(--studio-surface);gap:9px}
.ci-tap-panel .ci-navigation button {min-height:48px;font-size:15px}
.ci-review-list>article {padding:18px 0;border-bottom:1px solid var(--studio-line)}
.ci-review-list h3 {font-size:17px;margin:0 0 8px}
.ci-review-list p {line-height:1.6;white-space:pre-wrap}
.symptom-continuity {border-radius:21px;box-shadow:var(--studio-shadow)}
.symptom-continuity h2 {font-size:clamp(21px,2.5vw,27px);font-weight:680}
.symptom-continuity-groups>section {border-radius:15px;background:var(--studio-raised)}
.symptom-continuity button {font-size:14px;min-height:46px}
.trip-laugh {box-shadow:none;border-color:var(--studio-line);background:var(--studio-raised)}
@media(min-width:761px) and (max-width:1100px) {
 .studio-ready .patient-demographic-line {font-size:13px;white-space:normal}
}
@media(max-width:760px) {
 .provider-hero {padding:22px}
 .directory-section {padding:18px}
 .directory-queue-row {padding:16px}
 .directory-heading h1 {font-size:27px}
 .patient-app-brand {padding:14px 16px}
 .checkin-page {padding:12px 12px 30px}
 .registered-entry {margin-top:8px;padding:26px 22px}
 .registered-entry input {font-size:18px}
 .ci-tap-panel .ci-navigation {flex-wrap:wrap}
 .ci-tap-panel .ci-navigation button {flex:1 1 100px}
 .ci-tap-panel .ci-choices button {flex-basis:130px;font-size:15px}
 .ci-tap-panel .ci-numbers {grid-template-columns:repeat(4,minmax(0,1fr))}
 .checkin-family-toolbar {flex-wrap:wrap;gap:8px}
 .checkin-family-toolbar button {flex:1 1 160px;min-height:46px}
 .symptom-continuity-heading {display:block}
}
@media(max-width:480px) {
 .registered-entry {padding:24px 18px}
 .ci-tap-panel {padding:20px 17px}
 .ci-tap-panel .ci-choices button {flex-basis:110px}
}
@media(prefers-reduced-motion:reduce) {
 html {scroll-behavior:auto!important}
 body :is(button,.button,.studio-drawer,.ct-menu-button) {animation:none!important;transition:none!important;transform:none!important}
}
@media print {
 html,body {background:#fff!important;color:#000!important}
 body :is(button,.button,.identity,.plan-card) {box-shadow:none!important}
 .registered-entry,.ci-tap-panel {box-shadow:none!important;background:#fff!important}
}
/* A short visual viewport reflows instead of squeezing the clinical task away. */
/* Small line glyphs stay crisp without bundling a proprietary icon font. */
.studio-ready .plan-open-symbol {position:relative;width:13px;height:13px;font-size:0;display:block}
.studio-ready .plan-open-symbol::before {content:"";position:absolute;width:8px;height:8px;top:1px;right:1px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor}
.studio-ready .plan-open-symbol::after {content:"";position:absolute;width:11px;height:1.5px;right:1px;top:5px;background:currentColor;transform:rotate(-45deg);transform-origin:center}
.studio-ready .ct-source-bar .ct-breadcrumb,.studio-ready .ct-source-bar .ct-breadcrumb>* {color:var(--studio-accent)}
.studio-ready .ct-menu-tools button {color:var(--studio-accent);background:var(--studio-surface)}
/* Shared touch controls retain a generous target even in dense task bars. */.studio-ready .patient-benefit-button {min-height:44px}
@media(max-height:600px) {
 /* The compact header still identifies the local encounter while the
    software keyboard or a short window reduces the visual viewport. */
}
/* Keep every task action reachable without a tall wrapped bar on compact
   layouts or when the software keyboard reduces the visual viewport. */
html,body {background:var(--studio-bg);color:var(--studio-ink)}
.trip-laugh [data-joke-next] span {position:relative;display:inline-block;width:12px;height:12px;font-size:0;vertical-align:middle}
.trip-laugh [data-joke-next] span::before {content:"";position:absolute;width:7px;height:7px;top:1px;right:1px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor}
.trip-laugh [data-joke-next] span::after {content:"";position:absolute;width:10px;height:1.5px;right:1px;top:5px;background:currentColor;transform:rotate(-45deg)}
@media(max-height:600px) {
 .studio-ready #error {order:3}
}
/* Compact card summaries use complete lines; full plans open from the whole card. */
.preview-source-actions {margin:8px 0 18px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.preview-source-actions>summary {font-size:12px;color:var(--studio-muted);font-weight:600;min-height:44px;padding:5px 0}
.preview-source-actions .actions {gap:7px;flex-wrap:wrap;margin:6px 0}
.preview-source-actions button {font-size:12px;min-height:44px;background:var(--studio-raised);box-shadow:none}
@media print {.preview-source-actions {display:none!important}}

/* Keep the compact Studio rail vertical; the legacy mobile shell uses a horizontal nav. */

/* Keep the full keyboard focus indicator inside horizontally scrolling task controls. */

/* Feedback and controls share a footer without overlapping the current task. */
/* A compact stacked wordmark makes room for the full selected appearance mode. */
@media(max-width:480px) {
 /* Let the private music title yield space to the appearance and account controls. */
 .has-private-music .app-top .top-right {flex:1 1 0;min-width:0}
 .has-private-music .app-top .trip-provider {flex:1 1 0;min-width:44px}
 .has-private-music .app-top .top-right>label {min-width:110px}
 .has-private-music .app-top .studio-appearance {width:135px;min-width:135px;max-width:135px;flex-basis:135px}
 .has-private-music .app-top #logout {min-width:44px}
}

/* Recover tablet task space from repeated chrome, keeping every control at touch size. */
@media(min-width:761px) and (max-width:1100px) and (min-height:601px) {
 .studio-ready .clinical-mode-bar {padding:0;gap:6px;margin-bottom:6px}
 .studio-ready .clinical-mode-bar>div {padding:2px;gap:2px}
 .studio-ready .clinical-mode-bar button {padding:8px;font-size:12px;min-height:44px}
 .studio-ready .ct-workbench {padding:0}
 .studio-ready .ct-source-bar {padding:2px 8px;min-height:48px}
 .studio-ready .ct-source-bar>label {margin:0}
 .studio-ready .ct-menu-tools {padding:5px 0;gap:8px}
 .studio-ready .ct-search-label {margin:0;min-width:0}
}
@media(min-width:950px) and (max-width:1100px) and (min-height:601px) {
 .studio-ready .clinical-mode-bar {flex-wrap:nowrap}
 .studio-ready .clinical-mode-bar>span {flex:0 1 180px;min-width:0}
 .studio-ready .clinical-mode-bar>div {flex:1 0 auto}
}
/* At roomy desktop heights, two summary lines fit by reducing card chrome. */

/* Short landscape windows use the existing complete Plans overview rather than clipped cards. */

/* Human-readable audit trail with exact immutable metadata available in place. */
.audit-event{padding:14px 0;border-bottom:1px solid var(--studio-line);font-size:14px}
.audit-event header{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.audit-event time,.audit-event p{font-size:13px;color:var(--studio-muted)}
.audit-event p{margin:6px 0;overflow-wrap:anywhere}
.audit-event details{padding:0;border:0;background:transparent;margin:0}
.audit-event summary{min-height:32px;align-content:center;font-size:13px;cursor:pointer}
.audit-event dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 12px;font-size:13px}
.audit-event dd{margin:0;overflow-wrap:anywhere}
