/* Shared presentation. Radix Colors 3.0.0, locally hosted. No runtime behavior. */
html:root[data-ws-design],html:root[data-ws-design] body {
  --bg:var(--slate-2)!important;
  --surface:#fff!important;--surface-raised:var(--slate-1)!important;--surface-muted:var(--slate-3)!important;
  --ink:var(--slate-12)!important;--text:var(--slate-12)!important;
  --soft:var(--slate-11)!important;--muted:var(--slate-11)!important;
  --text-2:var(--slate-11)!important;--text-3:var(--slate-11)!important;
  --text-muted:var(--slate-11)!important;--text-dim:var(--slate-11)!important;
  --accent:var(--indigo-9)!important;--accent-soft:var(--indigo-3)!important;--accent-soft-strong:var(--indigo-5)!important;
  --line:var(--slate-6)!important;--border:var(--slate-6)!important;
  --line-soft:var(--slate-4)!important;--border-soft:var(--slate-4)!important;--fill:var(--slate-3)!important;
  --success:var(--teal-11)!important;--success-soft:var(--teal-3)!important;
  --danger:var(--ruby-11)!important;--red:var(--ruby-11)!important;--red-soft:var(--ruby-3)!important;
  --caution-text:var(--amber-12)!important;--caution-soft:var(--amber-3)!important;
  --green-text:var(--teal-11)!important;
  --face:var(--slate-1)!important;--face-low:var(--slate-3)!important;--digit:var(--indigo-12)!important;
  --signature-ink:var(--indigo-12)!important;--shadow:#1f2d5c18!important;
  --ws-nav-active:var(--indigo-11)!important;--ws-nav-stroke:var(--indigo-9)!important;
  --ws-nav-menu-surface:var(--surface)!important;--ws-nav-menu-ink:var(--ink)!important;
  --ws-nav-menu-border:var(--line)!important;--ws-nav-menu-shadow:0 12px 40px #1f2d5c16!important;
  --ws-shadow:0 2px 6px #1f2d5c03,0 12px 32px #1f2d5c05;
  --ws-font:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif;
  color-scheme:light;
}
html:root[data-ws-design][data-theme=dark],html:root[data-ws-design][data-theme=dark] body {
  --bg:var(--slate-1)!important;--surface:var(--slate-2)!important;
  --surface-raised:var(--slate-3)!important;--surface-muted:var(--slate-3)!important;
  --ws-shadow:0 10px 32px #00000016;--shadow:#00000040!important;
  color-scheme:dark;
}
html:root[data-ws-design] {background:var(--bg);font-family:var(--ws-font);-webkit-font-smoothing:antialiased}
html:root[data-ws-design] body {color:var(--ink)!important;font-family:var(--ws-font);background:var(--bg)!important}
html:root[data-ws-design] body::before {background:radial-gradient(ellipse at 50% 0%,var(--indigo-2),transparent 65%),var(--bg);opacity:1}
html:root[data-ws-design][data-theme=dark] body::before {background:radial-gradient(ellipse at 50% 0%,var(--indigo-2),transparent 65%),var(--bg)!important;opacity:1!important}
html:root[data-ws-design][data-theme=dark] body::after {background:transparent!important}
html:root[data-ws-design] :is(button,input,select,textarea) {font-family:var(--ws-font)}
html:root[data-ws-design] :is(button,a,input,select,textarea):focus-visible {outline:2px solid var(--indigo-8)!important;outline-offset:4px}
html:root[data-ws-design] :is(input[type=checkbox],input[type=radio],input[type=range]) {accent-color:var(--indigo-9)}
html:root[data-ws-design] :is(.image-heading h1,.event-title,.transfer-intro h1,.article h1) {color:var(--indigo-12);font-weight:600;letter-spacing:-.025em;line-height:1.4}

/* One header and menu treatment, with the existing keyboard/mobile navigation. */
html:root[data-ws-design] body .concept-header {height:64px!important;padding:0 max(32px,calc((100vw - 1264px)/2))!important;background:color-mix(in srgb,var(--surface) 86%,transparent)!important;color:var(--ink)!important;border-bottom:1px solid var(--line);backdrop-filter:blur(20px)}
html:root[data-ws-design] body .concept-header .concept-brand {font-size:20px!important;font-weight:600;letter-spacing:1px!important;color:var(--indigo-12);gap:9px!important}
html:root[data-ws-design] body .concept-header .concept-brand svg {width:27px!important;height:27px!important;filter:none!important}
html:root[data-ws-design] body .concept-header .concept-nav {gap:24px!important}
html:root[data-ws-design] body .concept-header .nav-group>button {font-family:var(--ws-font);color:var(--soft);opacity:1;letter-spacing:0;min-width:70px!important}
html:root[data-ws-design] body .concept-header .nav-group>button .nav-label {font-size:13px!important;font-weight:400;letter-spacing:0!important}
html:root[data-ws-design] body .concept-header .nav-group.active>button {color:var(--indigo-11)!important}
html:root[data-ws-design] body .concept-header .nav-group.active .nav-label {font-weight:600}
html:root[data-ws-design] body .concept-header .nav-group.active>button:after,html:root[data-ws-design] .nav-label:after {display:none!important}
html:root[data-ws-design] body .concept-header .nav-group>button:hover {color:var(--indigo-11);background:transparent}
html:root[data-ws-design] body .concept-header :is(.nav-menu,.nav-submenu) {border-radius:15px!important;background:var(--surface)!important;border:1px solid var(--line)!important;box-shadow:var(--ws-nav-menu-shadow)!important;padding:6px!important;top:48px!important}
html:root[data-ws-design] body .concept-header .nav-menu a {min-height:44px!important;font-size:13px!important;border-radius:9px;letter-spacing:0!important}
html:root[data-ws-design] body .concept-header :is(.nav-menu a:hover,.nav-menu a[aria-current],.nav-submenu-trigger:hover) {background:var(--indigo-3)!important;color:var(--indigo-11)!important}
html:root[data-ws-design] body .concept-header .global-theme {border:0!important;background:var(--slate-3)!important;color:var(--soft)!important;border-radius:50%;width:40px;min-width:44px;min-height:44px;padding:0!important}
html:root[data-ws-design] .global-theme span {display:none}
html:root[data-ws-design] :is(.home-controls,.imm-controls) {color:var(--soft)!important;text-shadow:none!important}
html:root[data-ws-design] :is(.home-controls,.imm-controls) button {border-radius:12px;letter-spacing:0}
html:root[data-ws-design] :is(.home-controls,.imm-controls) button:hover {background:var(--indigo-3);color:var(--indigo-11)}
html:root[data-ws-design] :is(.site-footnote,.seo-footer,.site-meta) {color:var(--soft);text-shadow:none}

/* Shared dialogs, fields and segmented controls. */
html:root[data-ws-design] body :is(dialog,.record-drawer,.event-popover,.tool-switcher-menu) {background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:24px!important;box-shadow:0 24px 80px #00000026!important}
html:root[data-ws-design] dialog::backdrop {background:#00000040!important;backdrop-filter:blur(10px)}
html:root[data-ws-design] dialog h2 {font-family:var(--ws-font);font-weight:600;letter-spacing:-.02em}
html:root[data-ws-design] :is(dialog input:not([type=checkbox]):not([type=radio]):not([type=range]),dialog select,.code-field input,.image-tool-page input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),.image-tool-page select,.image-tool-page textarea) {background:var(--slate-2)!important;border:1px solid var(--slate-7)!important;color:var(--ink)!important;border-radius:12px;min-height:44px}
html:root[data-ws-design] :is(dialog input:focus,.code-field input:focus,.image-tool-page input:focus,.image-tool-page select:focus) {border-color:var(--indigo-8)!important;box-shadow:0 0 0 3px var(--indigo-4)}
html:root[data-ws-design] :is(.display-row,.display-range,.display-sync) {border-color:var(--line)}
html:root[data-ws-design] :is(.theme-options,.catalog-filters,.json-mode-control,.test-tabs) {background:var(--indigo-3);border-radius:13px;padding:4px;gap:4px}
html:root[data-ws-design] :is(.theme-options button,.catalog-filters button,.json-mode-control button,.test-tabs a) {border:0!important;border-radius:10px!important;color:var(--soft);min-height:44px;font-size:13px}
html:root[data-ws-design] :is(.theme-options [aria-pressed=true],.catalog-filters [aria-pressed=true],.json-mode-control .active,.test-tabs [aria-current]) {background:var(--indigo-9)!important;color:#fff!important;box-shadow:0 1px 4px #1f2d5c12}
html:root[data-ws-design] :is(.image-tool-page .image-primary,.primary-button,.dialog-actions .primary,.event-actions .primary,.chrono-actions #btnStart,.date-form-actions button[type=submit]) {background:var(--indigo-9)!important;color:#fff!important;border-color:transparent!important;border-radius:22px!important;min-height:44px;box-shadow:none}
html:root[data-ws-design] :is(.image-tool-page .image-primary,.primary-button,.dialog-actions .primary,.event-actions .primary,.chrono-actions #btnStart):hover {background:#3358d4!important;color:#fff!important}
html:root[data-ws-design] :is(.quiet-button,.record-link,.reaction-multi,.sj-reset) {background:var(--slate-3)!important;border-color:var(--line)!important;color:var(--ink)!important;border-radius:22px;min-height:44px}
html:root[data-ws-design] :is(.theme-options [aria-pressed=true],.catalog-filters [aria-pressed=true]):hover {background:#3358d4!important;color:#fff!important}

/* Clocks keep their proportions and animation; only their materials change. */
html[data-ws-page=home] body {grid-template-rows:64px 1fr 88px}
html:root[data-ws-design] .time-row,html:root[data-ws-design] #countDays {color:var(--indigo-12)!important;text-shadow:none!important}
html:root[data-ws-design] .time-row #seconds {color:var(--indigo-11)!important}
html:root[data-ws-design] :is(.date-row,.calendar-line,.season-line) {color:var(--soft)!important}
html:root[data-ws-design] .minute-rail {color:var(--indigo-9)}
html:root[data-ws-design] .home-dial-face {fill:var(--surface);stroke:var(--indigo-8)}
html:root[data-ws-design] .home-dial-shadow {fill:var(--indigo-3);stroke:var(--indigo-6)}
html:root[data-ws-design] .home-hour-hand {stroke:var(--indigo-12)}
html:root[data-ws-design] .home-minute-hand {stroke:var(--indigo-11)}
html:root[data-ws-design] .home-second-hand {stroke:var(--ruby-9)}
html:root[data-ws-design] .home-dial-pin {fill:var(--indigo-9)}
html:root[data-ws-design] .home-dial-pin-ring {fill:var(--surface)}
html:root[data-ws-design] .flap {border-color:var(--slate-6);color:var(--digit);filter:none!important;box-shadow:0 2px 0 var(--slate-7),0 14px 32px #1f2d5c0b}
html:root[data-ws-design] .flap .half.top {background:var(--face)!important}
html:root[data-ws-design] .flap .half.bottom {background:var(--face-low)!important}
html:root[data-ws-design] .flap:after {background:var(--slate-7);box-shadow:0 1px 0 var(--slate-1)}
html:root[data-ws-design] .flap.small {color:var(--indigo-11)!important}
html:root[data-ws-design] .hinge {background:var(--slate-8)!important}
html:root[data-ws-design] body[data-mode=digital] .flap .half {background:transparent!important}
html:root[data-ws-design] :is(.record-drawer .laps-row,.record-labels) {border-color:var(--line)}
html:root[data-ws-design] .count-heading h2 {font-weight:600;letter-spacing:-.025em}
html:root[data-ws-design] .count-date-line {color:var(--soft)}
html:root[data-ws-design] body[data-occasion] .count-redesign {text-shadow:none!important}
/* Occasion artwork is intentional content and remains visible in light mode. */
html:root[data-ws-design]:not([data-theme=dark]) body[data-occasion=national]::before {background:linear-gradient(#f5f5f720,#f5f5f720),url('/assets/national-dawn.png') center/cover}
html:root[data-ws-design]:not([data-theme=dark]) body[data-occasion=moon]::before {background:linear-gradient(#f5f5f720,#f5f5f720),url('/assets/midautumn-lake.png') center/cover}

/* Calendar and event clocks. */
html:root[data-ws-design] body .calendar-redesign .cal-card {background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:24px!important;box-shadow:var(--ws-shadow)!important}
html:root[data-ws-design] .calendar-redesign .cal-grid {background:var(--slate-2);border-color:var(--line);border-radius:16px}
html:root[data-ws-design] .calendar-redesign .cal-day {border-radius:12px}
html:root[data-ws-design] .calendar-redesign .cal-day:not(.selected):hover {background:var(--indigo-3)!important;box-shadow:none}
html:root[data-ws-design] .calendar-redesign .cal-day.cal-weekend {background:var(--slate-3)!important}
html:root[data-ws-design] .calendar-redesign .cal-day.cal-holiday {background:var(--ruby-3)!important}
html:root[data-ws-design] .calendar-redesign .cal-day.cal-holiday :is(.d,.l) {color:var(--ruby-11)!important}
html:root[data-ws-design] .calendar-redesign .cal-day.selected {background:var(--indigo-9)!important}
html:root[data-ws-design] .calendar-redesign .cal-day.selected :is(.d,.l) {color:#fff!important}
html:root[data-ws-design] .calendar-redesign .cal-day.dim .d {color:var(--slate-10)}
html:root[data-ws-design] :is(.cal-nav,.cal-today) {background:var(--indigo-3);color:var(--indigo-11);border-radius:11px;min-height:44px}
html:root[data-ws-design] :is(.calendar-selected,.cal-week,.cal-vac,.calendar-inspector) {border-color:var(--line)}
html:root[data-ws-design] .date-number {color:var(--indigo-12)!important}
html:root[data-ws-design] .exam-redesign {--exam-paper:var(--surface);--exam-ink:var(--ink);--exam-muted:var(--soft);--exam-green:var(--indigo-11);--exam-tint:var(--indigo-3);--exam-border:var(--indigo-6);--exam-shadow:#1f2d5c0b}
html:root[data-ws-design] .exam-redesign .exam-card {background:linear-gradient(125deg,var(--indigo-2),var(--surface));box-shadow:var(--ws-shadow);border-radius:28px}
html:root[data-ws-design] .event-title {font-size:30px}
html:root[data-ws-design] .event-card {background:var(--surface);border:1px solid var(--line);border-radius:28px;box-shadow:var(--ws-shadow)}
html:root[data-ws-design] .event-tabs {background:var(--indigo-3);border-radius:14px;padding:4px}
html:root[data-ws-design] .event-tabs [aria-pressed=true] {background:var(--indigo-9);color:#fff}

/* Tools: the same surfaces, with restrained category colors. */
html:root[data-ws-design] .image-heading h1 {font-size:30px}
html:root[data-ws-design] .image-main {margin-top:30px}
html:root[data-ws-design] .image-tool-nav {gap:8px 16px}
html:root[data-ws-design] .image-tool-nav a {padding:0 14px;border-radius:12px;color:var(--soft)}
html:root[data-ws-design] .image-tool-nav a[aria-current] {background:var(--indigo-3);color:var(--indigo-11)}
html:root[data-ws-design] .catalog-controls {margin-bottom:26px}
html:root[data-ws-design] .catalog-filters {width:fit-content;flex-wrap:wrap}
html:root[data-ws-design] .catalog-sections .image-category-card {padding:22px 20px;border-radius:22px;background:var(--surface);border-color:var(--line);box-shadow:var(--ws-shadow);transition:background .18s,border-color .18s}
html:root[data-ws-design] .catalog-sections .image-category-card:hover {background:var(--indigo-2);border-color:var(--indigo-8)}
html:root[data-ws-design] .catalog-sections .image-category-card[data-tool-type=gif]:hover {background:var(--violet-2);border-color:var(--violet-8)}
html:root[data-ws-design] .catalog-sections .image-category-card[data-tool-type=pdf]:hover {background:var(--ruby-2);border-color:var(--ruby-8)}
html:root[data-ws-design] .image-drop {background:var(--indigo-2);border-color:var(--indigo-7);border-radius:24px;min-height:216px}
html:root[data-ws-design] .image-drop.dragging {background:var(--indigo-3);border-color:var(--indigo-9)}
html:root[data-ws-design] .image-options {padding:22px;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:var(--ws-shadow)}
html:root[data-ws-design] .image-preview {border:1px solid var(--line);border-radius:22px}
html:root[data-ws-design] .image-file.selected .file-select {background:var(--indigo-3);border-radius:12px}
html:root[data-ws-design] .tool-switcher summary {background:var(--surface);border-color:var(--line);border-radius:12px;min-height:44px}
html:root[data-ws-design] .tool-switcher-menu a:hover {background:var(--indigo-3);color:var(--indigo-11)}
html:root[data-ws-design] .image-process-actions #downloadAll {border-radius:22px}
html:root[data-ws-design] :is(.image-next-step,.target-presets button) {border-color:var(--line);background:var(--surface);border-radius:12px}

/* JSON and file transfer use the same workbench and field materials. */
html:root[data-ws-design] .json-workbench {
  --surface:var(--slate-2);--surface-muted:var(--slate-3);--text:var(--slate-12);
  --text-muted:var(--slate-11);--text-dim:var(--slate-11);--border:var(--slate-6);--border-soft:var(--slate-5);
  --fill:var(--slate-3);--accent:var(--indigo-11);--accent-soft:var(--indigo-3);--accent-soft-strong:var(--indigo-5);
  --success:var(--teal-11);--red:var(--ruby-11);--red-soft:var(--ruby-3);
  background:var(--surface);border-color:var(--line);border-radius:24px;box-shadow:var(--ws-shadow)
}
html:root[data-ws-design] .json-workbench .json-code-shell {background:var(--surface)!important}
html:root[data-ws-design] .json-workbench .json-editor-head {background:var(--slate-3);border-color:var(--line)}
html:root[data-ws-design] .json-workbench .json-tool-button {color:var(--ink);border-radius:12px;min-height:44px}
html:root[data-ws-design] :is(.join-card,.room-panel,.rules-card) {background:var(--surface)!important;border-color:var(--line)!important;border-radius:24px;box-shadow:var(--ws-shadow)!important}
html:root[data-ws-design] .transfer-intro h1 {font-size:30px;letter-spacing:-.025em}
html:root[data-ws-design] :is(.ttl-badge,.capacity-grid,.upload-box,.file-visual) {background:var(--indigo-3)!important;border-color:var(--indigo-6)!important;color:var(--indigo-11)!important}
html:root[data-ws-design] .drop-zone {background:var(--indigo-2)!important;border-color:var(--indigo-7)!important;border-radius:20px}
html:root[data-ws-design] .drop-zone:hover,html:root[data-ws-design] .drop-zone.dragging {background:var(--indigo-3)!important;border-color:var(--indigo-9)!important}
html:root[data-ws-design] .file-actions a {background:var(--indigo-9)!important;color:#fff!important}
html:root[data-ws-design] :is(.meter i,.progress i) {background:var(--indigo-9)}

/* Article presentation. */
html:root[data-ws-design] body.ws-legacy.ws-wechat {background:var(--bg)!important}
html:root[data-ws-design][data-ws-page=article] body.ws-legacy>main {width:min(984px,calc(100% - 48px));margin:32px auto 48px}
html:root[data-ws-design][data-ws-page=article] body .article {background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:24px;padding:42px 52px;box-shadow:var(--ws-shadow)!important;color:var(--ink)}
html:root[data-ws-design] .article h1 {font-size:30px;font-weight:600}
html:root[data-ws-design] .article h2 {font-weight:600;letter-spacing:-.025em}
html:root[data-ws-design] .article :is(.meta,.article-meta) {color:var(--soft)}
html:root[data-ws-design] .article :is(a,.article-list-item a) {color:var(--indigo-11)}
html:root[data-ws-design] .article :is(blockquote,.callout) {background:var(--indigo-3);border-color:var(--indigo-7);color:var(--indigo-12);border-radius:12px}
html:root[data-ws-design] .article :is(th,pre,code) {background:var(--slate-3);color:var(--ink);border-color:var(--line)}
html:root[data-ws-design] .article :is(td,th,.article-list-item) {border-color:var(--line)}
html:root[data-ws-design] :is(.brand-stats) {border-color:var(--line);border-radius:24px;background:var(--surface);box-shadow:var(--ws-shadow)}

/* Test states keep their meaning: green is the reaction signal. */
html:root[data-ws-design] :is(.reaction-stage,.sj-stage) {background:var(--surface)!important;border-color:var(--line);border-radius:28px;box-shadow:var(--ws-shadow)}
html:root[data-ws-design] .reaction-stage.waiting {background:var(--ruby-9)!important;border-color:var(--ruby-8)!important;color:#fff!important}
html:root[data-ws-design] .reaction-stage.ready {background:#008573!important;border-color:var(--teal-8)!important;color:#fff!important}
html:root[data-ws-design] .reaction-stage.early {background:var(--amber-3)!important;border-color:var(--amber-7)!important;color:var(--amber-12)!important}
html:root[data-ws-design] .reaction-stage.waiting .reaction-hint,html:root[data-ws-design] .reaction-stage.ready .reaction-hint {color:#fff}
html:root[data-ws-design] .sj-stage.flag {background:var(--ruby-3)!important;border-color:var(--ruby-7)}
html:root[data-ws-design] .sj-stage.ok {border-color:var(--teal-7)}
html:root[data-ws-design] .flag {color:var(--ruby-11)}

@media(max-width:760px) {
  html:root[data-ws-design] body .concept-header {height:auto!important;min-height:104px;padding:8px 16px 0!important}
  html:root[data-ws-design] body .concept-header .concept-brand {font-size:17px!important;letter-spacing:1px!important}
  html:root[data-ws-design] body .concept-header .concept-brand svg {width:24px!important;height:24px!important}
  html:root[data-ws-design] body .concept-header .concept-nav {gap:12px!important}
  html:root[data-ws-design] body .concept-header .nav-group>button {min-width:60px!important;min-height:44px!important}
  html:root[data-ws-design] body .concept-header .nav-group>button .nav-label {font-size:13px!important}
  html:root[data-ws-design] body .concept-header .nav-menu {top:48px!important;border-radius:14px!important}
  html[data-ws-page=home] body {grid-template-rows:104px 1fr 80px}
}
@media(max-width:700px) {
  html:root[data-ws-design] .image-heading h1,html:root[data-ws-design] .event-title,html:root[data-ws-design] .transfer-intro h1 {font-size:26px}
  html:root[data-ws-design] .image-main {margin-top:22px}
  html:root[data-ws-design] .image-options {padding:20px}
  html:root[data-ws-design] .catalog-sections .image-category-card {padding:18px 15px;border-radius:18px}
  html:root[data-ws-design] .catalog-sections .image-category-card h3 {font-size:14px}
  html:root[data-ws-design] body .calendar-redesign .cal-card {border-radius:20px!important}
  html:root[data-ws-design][data-ws-page=article] body.ws-legacy>main {width:calc(100% - 28px);margin:20px auto 32px}
  html:root[data-ws-design][data-ws-page=article] body .article {padding:26px 22px;border-radius:22px}
  html:root[data-ws-design] .article h1 {font-size:25px}
  html:root[data-ws-design] :is(.theme-options button,.catalog-filters button) {font-size:12px;padding-left:13px;padding-right:13px}
}
@media(prefers-reduced-motion:reduce) {
  html:root[data-ws-design] *,html:root[data-ws-design] *::before,html:root[data-ws-design] *::after {transition:none!important;scroll-behavior:auto!important}
}

/* Numeral accents are shared even where old scene rules carried !important. */
html:root[data-ws-design] body .time-row #seconds {color:var(--indigo-11)!important}
html:root[data-ws-design] body .date-row {color:var(--soft)!important}
html:root[data-ws-design][data-theme=dark] body .time-row #seconds {color:var(--indigo-11)!important}
html:root[data-ws-design] body.exam-redesign {--exam-paper:var(--surface);--exam-ink:var(--ink);--exam-muted:var(--soft);--exam-green:var(--indigo-11);--exam-tint:var(--indigo-3);--exam-border:var(--indigo-6)}
html:root[data-ws-design] .catalog-section[data-category=image] .catalog-section-heading h2 {color:var(--indigo-11)}
html:root[data-ws-design] .catalog-section[data-category=gif] .catalog-section-heading h2 {color:var(--violet-11)}
html:root[data-ws-design] .catalog-section[data-category=pdf] .catalog-section-heading h2 {color:var(--ruby-11)}

html[data-ws-page=error] body {min-height:100svh;display:grid;place-content:center;text-align:center;margin:0}
html[data-ws-page=error] h1 {font-size:32px;color:var(--indigo-12);letter-spacing:-.03em}
html[data-ws-page=error] a {display:inline-flex;align-items:center;min-height:44px;padding:0 20px;border-radius:22px;background:var(--indigo-9);color:#fff;text-decoration:none;font-size:14px}
/* Reading pages no longer inherit the old floating-card top offset. */
html:root[data-ws-design][data-ws-page=article] body .article {margin:0;max-width:none;width:100%}
/* Five top-level sections remain comfortably tappable on narrow screens. */
@media(max-width:760px) {
 html:root[data-ws-design] body .concept-header .nav-group>button {min-width:52px!important}
 html:root[data-ws-design] body .concept-header .nav-group:nth-child(-n+2) .nav-menu {left:0!important;right:auto!important}
 html:root[data-ws-design] body .concept-header .nav-group:nth-child(n+3) .nav-menu {left:auto!important;right:0!important}
}
@media(max-width:370px) {
 html:root[data-ws-design] body .concept-header .concept-nav {gap:8px!important}
 html:root[data-ws-design] body .concept-header .nav-group>button {min-width:48px!important}
 html:root[data-ws-design] body .concept-header .nav-group>button .nav-label {font-size:12px!important}
}

/* Page surfaces follow the shared theme; there is no background picker. */
html:root[data-ws-design] :is(.home-controls,.imm-controls) {justify-content:flex-end}
