body:not(.workspace-active){
  color-scheme:light;--bg:#f7f9fa;--surface:#fff;--surface-2:#f2f6f7;--surface-3:#e9f1f4;--line:#cfd9de;--field-line:#aabac3;--ink:#18212a;--muted:#506271;--accent-text:#34748d;--primary:#b9dff0;--primary-ink:#102b3a;--focus:#34748d;
  background:var(--bg);color:var(--ink);min-height:100dvh;margin:0
}
body:not(.workspace-active) .account-topbar{max-width:none;margin:0;min-height:65px;padding:10px max(20px,6vw);border-bottom:1px solid var(--line);background:var(--bg)}
body:not(.workspace-active) .pariter-brand{display:inline-flex;gap:10px;align-items:center;color:var(--ink);font-size:26px;font-weight:650;letter-spacing:-.05em;text-decoration:none}
body:not(.workspace-active) .account-topbar :is(.brand,.edition,#workspace-sidebar-toggle){display:none!important}
body:not(.workspace-active) #account-main{max-width:470px;margin:clamp(12px,5vh,50px) auto;padding:0 22px 16px}
body:not(.workspace-active) #account-main>.panel{background:transparent;border:0;padding:0;margin:0;box-shadow:none}
body:not(.workspace-active) h1{font-size:clamp(30px,4vw,44px);line-height:1.1;letter-spacing:-.045em;margin:0 0 12px}
body:not(.workspace-active) #status{margin:0 0 14px;min-height:1em;font-size:14px}
body:not(.workspace-active) input:not([type=checkbox]),body:not(.workspace-active) select{background:white;border-radius:5px;font-size:16px;min-height:47px}
body:not(.workspace-active) button.primary,body:not(.workspace-active) #review-specialty{display:block;width:100%;border:1px solid #acd3e3;background:#b9dff0;color:#102b3a;font-weight:600;border-radius:5px;margin:18px 0 10px;min-height:47px}
body:not(.workspace-active) button:not(.primary):not(#review-specialty),body:not(.workspace-active) .entry-link{display:inline-flex;align-items:center;background:none;border:0;color:#29677f;text-decoration:underline;text-underline-offset:4px;padding:8px 0;margin:0 20px 0 0;min-height:44px;font-size:14px}
body:not(.workspace-active)>footer{max-width:470px;margin:20px auto;padding:15px 22px;color:#506271;font-size:12px}
body:not(.workspace-active) [hidden]{display:none!important}
@media(max-height:550px){body:not(.workspace-active) #account-main{margin-top:8px}body:not(.workspace-active) label{margin-top:10px}}
body:not(.workspace-active) a.entry-primary-link{display:flex;justify-content:center;background:#b9dff0;color:#102b3a;font-weight:600;border-radius:5px;margin:18px 0 8px;text-decoration:none;padding-inline:18px}

.pariter-brand .pacer-wordmark{display:block;width:clamp(128px,16vw,168px);height:auto;max-width:100%}

/* The signed-in views share the entry palette, including on devices in dark mode. */
:root:has(body.workspace-active), body.workspace-active {
  color-scheme: light;
  --bg: #f7f9fa;
  --surface: #fff;
  --surface-2: #f2f6f7;
  --surface-3: #e9f1f4;
  --ink: #18212a;
  --muted: #506271;
  --accent: #34748d;
  --accent-text: #29677f;
  --accent-soft: #e5f2f8;
  --primary: #b9dff0;
  --primary-hover: #a7d3e8;
  --primary-ink: #102b3a;
  --focus: #34748d;
  --field-line: #869ba6;
  --line: #cfd9de;
  --line-soft: #e4eaed;
  --warn: #88480f;
  --error: #ac3030;
  background: var(--bg);
  color: var(--ink);
}
body.workspace-active :is(.account-topbar, .workspace-sidebar) {
  background: var(--bg);
  border-color: var(--line);
}
body.workspace-active:not(.pariter-home) .account-topbar .brand { display: none; }
body.workspace-active:not(.pariter-home) .account-topbar .pariter-brand {
  display: inline-flex;
  flex: 0 1 146px;
  align-items: center;
  min-width: 0;
}
body.workspace-active :is(.training-progress, .training-lane, .compass-focus,
    .review-hero, .review-setup, .review-guide, .recall-card, .review-complete,
    .review-recovery, .personal-library-item, .library-detail, .card-dialog,
    .dashboard-item, .library-total, .dashboard-domain),
body.workspace-active #specialty-library-panel :is(.heading, .library-editor) {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: none;
}
body.workspace-active :is(.training-lane-action, .dashboard-action,
    .card-actions button, .review-ratings button, .workspace-tabs button[aria-pressed=true]) {
  color: var(--accent-text);
  background: var(--accent-soft);
  border-color: var(--line);
}
body.workspace-active .personal-library-item[aria-pressed=true] {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: inset 3px 0 var(--accent);
}
body.workspace-active .personal-library-item:hover,
body.workspace-active .review-ratings button:hover { background: var(--surface-3); }
body.workspace-active :is(.review-stat strong, .review-answer-text, .review-ratings strong,
    .library-detail .saved-library-text, .training-grade, .review-forecast-day strong) {
  color: var(--ink);
}
body.workspace-active :is(.workspace-page-heading .eyebrow, .review-secondary-counts,
    .review-stat span, .review-fields label, .review-step p, .review-session-top,
    .review-ratings span, .review-rating-panel > .small, .review-complete p,
    .review-recovery p, .card-dialog label, .library-state, .personal-library-item > .small,
    .training-lane-status, .training-domain-overview > summary, .review-maturity summary,
    .review-forecast figcaption, .review-forecast-day small),
body.workspace-active #specialty-library-panel .library-filters label { color: var(--muted); }
body.workspace-active :is(.review-text-action, .recall-answer > a, .review-step > span,
    .item-topic-links summary, .library-options button, .library-detail > a,
    .library-kind, .library-image-count, .library-detail h4),
body.workspace-active :is(#altura-review-panel, #specialty-library-panel) .eyebrow {
  color: var(--accent-text);
}
body.workspace-active .card-actions .danger-text { color: var(--error); }
body.workspace-active :is(.review-fields, .card-dialog) :is(input, select, textarea),
body.workspace-active #specialty-library-panel .library-filters :is(input, select) {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--field-line);
}
body.workspace-active .review-landscape { opacity: .14; }
body.workspace-active :is(.training-next, .training-skill, .training-practice-evidence) {
  border-color: var(--line);
}
@media (max-width: 760px) {
  body.workspace-active .account-topbar .pacer-wordmark { width: min(128px, 31vw); }
  body.workspace-active .pariter-case-dialog {
    width: calc(100% - 16px);
    padding: 16px;
    max-height: 94dvh;
  }
  body.workspace-active .pariter-case-dialog .pariter-field { aspect-ratio: 4 / 3; }
}
