/* Calibre System 03. Pine and brass, paper and ink. Tokens first, then base, then components. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Geist Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/s3/fonts/geist.woff2") format("woff2-variations"), url("/s3/fonts/geist.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/s3/fonts/geist-mono.woff2") format("woff2-variations"), url("/s3/fonts/geist-mono.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4 Variable"; font-style: normal; font-display: swap; font-weight: 200 900; src: url("/s3/fonts/source-serif-4.woff2") format("woff2-variations"), url("/s3/fonts/source-serif-4.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4 Variable"; font-style: italic; font-display: swap; font-weight: 200 900; src: url("/s3/fonts/source-serif-4-italic.woff2") format("woff2-variations"), url("/s3/fonts/source-serif-4-italic.woff2") format("woff2"); }
/* Metric-matched fallbacks keep the layout still while the fonts arrive. */
@font-face { font-family: "Geist Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Serif Fallback"; src: local("Georgia"); size-adjust: 96%; ascent-override: 98%; descent-override: 28%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  --font-ui: "Geist Variable", "Geist Fallback", system-ui, sans-serif;
  --font-display: "Source Serif 4 Variable", "Serif Fallback", Georgia, serif;
  --font-mono: "Geist Mono Variable", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --paper: oklch(0.985 0.004 145);
  --surface: oklch(0.997 0.002 145);
  --surface-2: oklch(0.965 0.006 145);
  --ink: oklch(0.23 0.028 158);
  --ink-2: oklch(0.45 0.02 158);
  /* Spec value is 0.6. Raised to 0.52 so hints and meta text reach 4.5:1 on paper. */
  --ink-3: oklch(0.52 0.014 158);
  --line: oklch(0.9 0.008 150);
  --line-2: oklch(0.84 0.01 150);
  --pine: oklch(0.33 0.05 158);
  --pine-hover: oklch(0.38 0.055 158);
  --on-pine: oklch(0.985 0.004 145);
  --pine-soft: oklch(0.94 0.02 158);
  --brass: oklch(0.64 0.095 72);
  --brass-soft: oklch(0.95 0.03 80);
  --brass-ink: oklch(0.46 0.08 72);
  --v-applies: oklch(0.66 0.13 55);
  --v-clear: oklch(0.6 0.07 158);
  --v-insufficient: oklch(0.62 0.06 250);
  --v-none: oklch(0.8 0.006 150);
  --v-guided: oklch(0.64 0.095 72);
  --danger: oklch(0.55 0.16 28);
  --danger-soft: oklch(0.96 0.02 28);

  --shadow-float: 0 1px 1px oklch(0.2 0.02 158 / 0.04), 0 8px 24px -8px oklch(0.2 0.02 158 / 0.14);
  --scrim: oklch(0.2 0.02 158 / 0.36);

  --r-control: 8px; --r-card: 12px; --r-sheet: 20px; --r-pill: 999px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-press: 140ms; --t-hover: 200ms; --t-sheet: 280ms; --t-dial: 600ms;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 56px; --s-10: 72px; --s-11: 96px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: oklch(0.17 0.012 155); --surface: oklch(0.205 0.014 155); --surface-2: oklch(0.24 0.016 155);
    --ink: oklch(0.94 0.008 145); --ink-2: oklch(0.74 0.012 150); --ink-3: oklch(0.66 0.012 150);
    --line: oklch(0.3 0.014 155); --line-2: oklch(0.37 0.016 155);
    --pine: oklch(0.72 0.07 158); --pine-hover: oklch(0.78 0.07 158); --on-pine: oklch(0.17 0.012 155); --pine-soft: oklch(0.28 0.03 158);
    --brass: oklch(0.75 0.09 72); --brass-soft: oklch(0.3 0.04 72); --brass-ink: oklch(0.8 0.08 72);
    --v-applies: oklch(0.74 0.12 55); --v-clear: oklch(0.7 0.07 158); --v-insufficient: oklch(0.72 0.06 250); --v-none: oklch(0.4 0.01 150); --v-guided: oklch(0.75 0.09 72);
    --danger: oklch(0.7 0.14 28); --danger-soft: oklch(0.27 0.05 28);
    --shadow-float: 0 1px 1px oklch(0 0 0 / 0.3), 0 8px 24px -8px oklch(0 0 0 / 0.5);
    --scrim: oklch(0.05 0.01 155 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: oklch(0.17 0.012 155); --surface: oklch(0.205 0.014 155); --surface-2: oklch(0.24 0.016 155);
  --ink: oklch(0.94 0.008 145); --ink-2: oklch(0.74 0.012 150); --ink-3: oklch(0.66 0.012 150);
  --line: oklch(0.3 0.014 155); --line-2: oklch(0.37 0.016 155);
  --pine: oklch(0.72 0.07 158); --pine-hover: oklch(0.78 0.07 158); --on-pine: oklch(0.17 0.012 155); --pine-soft: oklch(0.28 0.03 158);
  --brass: oklch(0.75 0.09 72); --brass-soft: oklch(0.3 0.04 72); --brass-ink: oklch(0.8 0.08 72);
  --v-applies: oklch(0.74 0.12 55); --v-clear: oklch(0.7 0.07 158); --v-insufficient: oklch(0.72 0.06 250); --v-none: oklch(0.4 0.01 150); --v-guided: oklch(0.75 0.09 72);
  --danger: oklch(0.7 0.14 28); --danger-soft: oklch(0.27 0.05 28);
  --shadow-float: 0 1px 1px oklch(0 0 0 / 0.3), 0 8px 24px -8px oklch(0 0 0 / 0.5);
  --scrim: oklch(0.05 0.01 155 / 0.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font: 400 14px/1.5 var(--font-ui); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"], .plain { list-style: none; padding: 0; }
a { color: var(--pine); text-decoration-color: color-mix(in oklch, var(--pine) 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus:not(:focus-visible) { outline: none; }
::selection { background: color-mix(in oklch, var(--brass) 30%, transparent); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--pine); color: var(--on-pine); padding: 8px 14px; border-radius: var(--r-control); transition: transform var(--t-hover) var(--ease-out); }
.skip:focus { transform: translateY(72px); }

.serif, .display { font-family: var(--font-display); font-optical-sizing: auto; letter-spacing: -0.01em; }
.display { font-weight: 500; line-height: 1.15; text-wrap: balance; }
.h-48 { font-size: 48px; } .h-36 { font-size: 36px; } .h-28 { font-size: 28px; } .h-22 { font-size: 22px; } .h-18 { font-size: 18px; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "zero"; }
.eyebrow { font: 600 11px/1.3 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); }
.t-12 { font-size: 12px; } .t-13 { font-size: 13px; } .t-14 { font-size: 14px; } .t-16 { font-size: 16px; } .t-18 { font-size: 18px; }
.stack { display: flex; flex-direction: column; } .row { display: flex; align-items: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 40px; }
.wrap { flex-wrap: wrap; } .grow { flex: 1 1 auto; min-width: 0; } .end { margin-left: auto; }

/* ---------- Button ---------- */
.btn { --h: 36px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 14px; border-radius: var(--r-control); border: 1px solid transparent; font: 500 14px/1 var(--font-ui); white-space: nowrap; text-decoration: none; user-select: none; background: var(--surface); color: var(--ink); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out), opacity var(--t-hover) var(--ease-out); }
.btn:active:not(:disabled):not([aria-disabled="true"]) { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn-sm { --h: 30px; padding: 0 10px; font-size: 13px; gap: 6px; } .btn-lg { --h: 48px; padding: 0 22px; font-size: 16px; border-radius: 10px; }
.btn-primary { background: var(--pine); color: var(--on-pine); }
.btn-primary:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--pine-hover); }
.btn-secondary { background: var(--surface); border-color: var(--line-2); }
.btn-secondary:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in oklch, var(--danger) 45%, var(--line)); }
.btn-danger:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--danger-soft); }
.btn-block { width: 100%; }
.btn[data-loading="true"] { cursor: progress; }
.btn[data-loading="true"] > .btn-label { opacity: 0; }
.spinner { position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in oklch, currentColor 25%, transparent); border-top-color: currentColor; animation: spin 700ms linear infinite; }
.btn-lg .spinner { width: 20px; height: 20px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-control); border: 1px solid transparent; background: transparent; color: var(--ink-2); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out); }
.icon-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.icon-btn:active:not(:disabled) { transform: scale(0.94); }
.icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.icon-btn-lg { width: 44px; height: 44px; }
.icon-btn-outline { border-color: var(--line-2); background: var(--surface); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font: 500 13px/1.3 var(--font-ui); color: var(--ink); }
.field-hint { font-size: 13px; color: var(--ink-2); }
.field-error { font-size: 13px; color: var(--danger); display: flex; gap: 6px; align-items: center; }
.control { width: 100%; min-height: 36px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: var(--r-control); background: var(--surface); color: var(--ink); font: 400 14px/1.4 var(--font-ui); transition: border-color var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out); }
.control::placeholder { color: var(--ink-3); }
.control:hover:not(:disabled) { border-color: color-mix(in oklch, var(--ink) 30%, var(--line-2)); }
.control:focus-visible { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px color-mix(in oklch, var(--brass) 30%, transparent); }
.control:disabled { background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; }
.control[aria-invalid="true"] { border-color: var(--danger); }
textarea.control { resize: vertical; line-height: 1.5; min-height: 88px; }
input.control[type="number"], input.control.is-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.control-lg { min-height: 52px; font-size: 17px; padding: 12px 16px; border-radius: 12px; }
.control-wide { min-height: 168px; font: 400 20px/1.5 var(--font-display); letter-spacing: -0.005em; padding: 18px 20px; border-radius: 16px; }
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix > .control { padding-right: 44px; }
.input-affix > .affix { position: absolute; right: 12px; color: var(--ink-3); font-size: 13px; pointer-events: none; }

.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 20px; }
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.check-box { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: var(--on-pine); transition: background-color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out); }
.check-box svg { opacity: 0; transform: scale(0.6); transition: opacity var(--t-press) var(--ease-out), transform var(--t-hover) var(--ease-out); }
.check input:checked + .check-box { background: var(--pine); border-color: var(--pine); }
.check input:checked + .check-box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check-box { outline: 2px solid var(--brass); outline-offset: 2px; }
.check input:disabled + .check-box { opacity: 0.5; }
.check:has(input:disabled) { cursor: not-allowed; color: var(--ink-3); }

/* Choice chips: single select, large on phones */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 500 14px/1.2 var(--font-ui); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out); text-align: left; }
.chip:hover { background: var(--surface-2); }
.chip:active { transform: scale(0.97); }
.chip[aria-checked="true"] { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.chip-unsure { border-style: dashed; color: var(--ink-2); background: transparent; }
.chip-unsure[aria-checked="true"] { background: var(--brass-soft); border-color: var(--brass); border-style: solid; color: var(--ink); }
.chips-lg { flex-direction: column; gap: 10px; }
.chips-lg .chip { min-height: 56px; justify-content: flex-start; padding: 14px 20px; font-size: 17px; border-radius: 16px; width: 100%; }
.chips-lg .chip::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--surface); box-shadow: inset 0 0 0 4px var(--surface); transition: background-color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out); }
.chips-lg .chip[aria-checked="true"]::before { background: var(--on-pine); border-color: var(--on-pine); box-shadow: inset 0 0 0 4px var(--pine); }
.chips-lg .chip-unsure[aria-checked="true"]::before { background: var(--brass); border-color: var(--brass); box-shadow: inset 0 0 0 4px var(--brass-soft); }
.chips-lg .chip-unsure::before { border-style: dashed; }
@media (min-width: 640px) { .chips-lg.chips-row { flex-direction: row; flex-wrap: wrap; } .chips-lg.chips-row .chip { width: auto; } }

/* Segmented control */
.seg { display: inline-flex; padding: 2px; gap: 2px; background: var(--surface-2); border-radius: 10px; border: 1px solid var(--line); }
.seg-btn { min-height: 28px; padding: 4px 12px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-2); font: 500 13px/1.2 var(--font-ui); transition: background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out); }
.seg-btn:hover { color: var(--ink); }
.seg-btn:active { transform: scale(0.97); }
.seg-btn[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px oklch(0.2 0.02 158 / 0.06); }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s-5); }
.card-flush { padding: 0; overflow: hidden; }
.card-interactive { transition: border-color var(--t-hover) var(--ease-out), transform var(--t-hover) var(--ease-out); text-decoration: none; color: inherit; display: block; }
.card-interactive:hover { border-color: var(--line-2); transform: translateY(-1px); }
.card-interactive:active { transform: scale(0.99); }
.card-lg { border-radius: var(--r-sheet); padding: var(--s-6); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-title { font: 600 14px/1.3 var(--font-ui); }
.card-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.well { background: var(--surface-2); border-radius: var(--r-control); padding: 12px 14px; }
.well-brass { background: var(--brass-soft); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font: 500 12px/1 var(--font-ui); background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge-pine { background: var(--pine-soft); color: var(--ink); border-color: color-mix(in oklch, var(--pine) 25%, var(--line)); }
.badge-brass { background: var(--brass-soft); color: var(--ink); border-color: color-mix(in oklch, var(--brass) 40%, var(--line)); }
.badge-danger { background: var(--danger-soft); color: var(--ink); border-color: color-mix(in oklch, var(--danger) 40%, var(--line)); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.badge-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0; }

.stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-value { font: 500 28px/1.1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-value small { font-size: 14px; color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.stat-label { font-size: 13px; color: var(--ink-2); }
.stat-hint { font-size: 12px; color: var(--ink-3); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 56px 24px; max-width: 420px; margin: 0 auto; }
.empty-mark { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--pine); background: var(--pine-soft); }
.empty h2 { font: 500 22px/1.2 var(--font-display); letter-spacing: -0.01em; }
.empty p { color: var(--ink-2); max-width: 36ch; }

.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 6px; height: 14px; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--paper) 70%, transparent), transparent); transform: translateX(-100%); animation: shimmer 1.4s var(--ease-out) infinite; }
.skeleton-block { height: 88px; border-radius: var(--r-card); } .skeleton-circle { border-radius: 50%; }
@keyframes shimmer { to { transform: translateX(100%); } }

.progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 100%; background: var(--pine); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform var(--t-sheet) var(--ease-out); border-radius: inherit; }
.progress-lg { height: 6px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 0; background: transparent; color: var(--ink-2); font: 500 14px/1 var(--font-ui); transition: color var(--t-hover) var(--ease-out); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--pine); border-radius: 2px; }
.tab-count { font: 500 11px/1 var(--font-mono); color: var(--ink-3); background: var(--surface-2); padding: 3px 6px; border-radius: var(--r-pill); }

/* ---------- Verdicts ---------- */
.vpill { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px 0 8px; border-radius: var(--r-pill); font: 500 12px/1 var(--font-ui); white-space: nowrap; color: var(--ink); border: 1px solid color-mix(in oklch, var(--vc) 45%, var(--line)); background: color-mix(in oklch, var(--vc) 11%, var(--surface)); }
.vpill svg { flex: none; }
.vpill-sm { height: 20px; font-size: 11px; padding: 0 8px 0 6px; gap: 5px; }
[data-v="APPLIES"] { --vc: var(--v-applies); } [data-v="NO_TRIGGER_FOUND"] { --vc: var(--v-clear); }
[data-v="INSUFFICIENT_INFORMATION"] { --vc: var(--v-insufficient); } [data-v="NOT_EVALUATED"] { --vc: var(--v-none); }
[data-v="GUIDED_READING"] { --vc: var(--v-guided); } [data-v="other"] { --vc: var(--v-none); }
.vpill[data-v="other"] { font-family: var(--font-mono); font-size: 11px; }
.vpill[data-v="NOT_EVALUATED"], .vpill[data-v="other"] { color: var(--ink-2); }
.vglyph-stroke { stroke: var(--vc); } .vglyph-fill { fill: var(--vc); }

/* ---------- Reading dial and coverage ring ---------- */
.dial { position: relative; display: inline-block; line-height: 0; }
.dial svg { display: block; overflow: visible; }
.dial-seg { outline: none; cursor: default; }
.dial[data-interactive="true"] .dial-seg { cursor: pointer; }
.seg-shape { stroke: var(--vc); stroke-width: 1.75px; stroke-linejoin: round; fill: none; }
.sh-filled { fill: var(--vc); }
.sh-check { fill: color-mix(in oklch, var(--vc) 12%, var(--surface)); }
.sh-dashed { stroke-dasharray: 4 3; fill: color-mix(in oklch, var(--vc) 6%, transparent); }
.sh-half { fill: color-mix(in oklch, var(--vc) 10%, var(--surface)); }
.sh-half-fill { fill: var(--vc); stroke: none; }
.sh-hatched { stroke-width: 1.25px; stroke: color-mix(in oklch, var(--v-none) 65%, var(--ink-3)); }
.hatch-line { stroke: color-mix(in oklch, var(--v-none) 55%, var(--ink-3)); stroke-width: 1.6; }
.sh-tick { fill: none; stroke: var(--vc); stroke-width: 1.75px; stroke-linecap: round; stroke-linejoin: round; }
.own-dot { fill: var(--brass); }
.dial[data-size="small"] .seg-shape { stroke-width: 1.25px; } .dial[data-size="small"] .sh-dashed { stroke-dasharray: 3 2; }
.dial[data-size="tiny"] .seg-shape { stroke-width: 0.75px; } .dial[data-size="tiny"] .sh-dashed { stroke-dasharray: 1.5 1; }
.dial[data-size="tiny"] .sh-hatched { stroke-width: 0.75px; }
.ring-hatch { stroke: var(--brass); stroke-width: 1.7; }
.dial[data-interactive="true"] .dial-seg:hover .seg-shape, .dial .dial-seg:focus-visible .seg-shape, .dial-seg[data-selected="true"] .seg-shape { stroke-width: 2.5px; }
.dial-seg:focus-visible .seg-focus { stroke: var(--brass); opacity: 1; }
.seg-focus { fill: none; stroke: transparent; stroke-width: 2; opacity: 0; }
.dial-seg[data-selected="true"] .seg-focus { stroke: var(--ink); opacity: 0.9; }
.dial-seg .seg-hit { fill: transparent; }
.dial-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; line-height: 1.2; }
.dial-center-num { font: 500 44px/1 var(--font-mono); letter-spacing: -0.03em; }
.dial-center-label { font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.dial-tip { position: absolute; z-index: 30; min-width: 190px; max-width: 260px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-float); line-height: 1.4; font-size: 12px; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity var(--t-press) var(--ease-out), transform var(--t-hover) var(--ease-out); color: var(--ink); }
.dial-tip[data-show="true"] { opacity: 1; transform: none; }
.dial-tip b { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.dial-tip p { margin-top: 6px; color: var(--ink-2); }
/* First draw only: segments sweep in, 30 ms apart. */
.dial[data-sweep="true"] .dial-seg { opacity: 0; animation: seg-in 210ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 30ms); }
@keyframes seg-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.dial-seg { transform-box: view-box; transform-origin: 50% 50%; }
.dial[data-fade="true"] svg { animation: seg-swap var(--t-hover) var(--ease-out); }
@keyframes seg-swap { from { opacity: 0; } to { opacity: 1; } }

.ring { position: relative; display: inline-grid; place-items: center; line-height: 1; flex: none; }
.ring svg { display: block; transform: rotate(-90deg); }
.ring-track { stroke: var(--line-2); fill: none; }
.ring-a { stroke: var(--pine); fill: none; stroke-linecap: butt; }
.ring-u { fill: none; }
.ring-a, .ring-u { transition: stroke-dasharray var(--t-sheet) var(--ease-out), stroke-dashoffset var(--t-sheet) var(--ease-out); }
.ring-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring-value { font: 500 11px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ring-lg .ring-value { font-size: 30px; letter-spacing: -0.03em; color: var(--ink); }
.ring-sub { font-size: 12px; color: var(--ink-2); margin-top: 4px; }

/* ---------- Table ---------- */
.table-wrap { position: relative; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); max-height: var(--table-h, none); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th { position: sticky; top: 0; z-index: 2; text-align: left; font: 600 11px/1.3 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--t-press) var(--ease-out); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr[data-clickable="true"] { cursor: pointer; }
.table tbody tr:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; background: var(--surface-2); }
.table tbody tr[aria-selected="true"] { background: var(--pine-soft); }
.table .is-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.table-compact td { padding: 7px 14px; }

/* ---------- Overlays ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); opacity: 0; transition: opacity var(--t-sheet) var(--ease-out); }
.scrim[data-open="true"] { opacity: 1; }
.dialog { position: fixed; z-index: 61; left: 50%; top: 14vh; width: min(480px, calc(100vw - 32px)); max-height: 76vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sheet); box-shadow: var(--shadow-float); padding: 24px; opacity: 0; transform: translate(-50%, 8px) scale(0.98); transition: opacity var(--t-sheet) var(--ease-out), transform var(--t-sheet) var(--ease-out); }
.dialog[data-open="true"] { opacity: 1; transform: translate(-50%, 0); }
.dialog h2 { font: 500 22px/1.2 var(--font-display); letter-spacing: -0.01em; margin-bottom: 8px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.sheet { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-float); border-radius: var(--r-sheet) 0 0 var(--r-sheet); transform: translateX(24px); opacity: 0; transition: opacity var(--t-sheet) var(--ease-out), transform var(--t-sheet) var(--ease-out); }
.sheet[data-open="true"] { transform: none; opacity: 1; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font: 500 18px/1.2 var(--font-display); flex: 1; }
.sheet-body { flex: 1; overflow: auto; padding: 20px; }
@media (max-width: 640px) { .sheet { top: auto; width: 100vw; max-height: 92vh; border-radius: var(--r-sheet) var(--r-sheet) 0 0; border-left: 0; border-top: 1px solid var(--line); transform: translateY(24px); } }

.toaster { position: fixed; z-index: 80; left: 0; right: 0; bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; padding-bottom: env(safe-area-inset-bottom); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 460px; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: 12px; box-shadow: var(--shadow-float); font-size: 13px; animation: toast-in var(--t-sheet) var(--ease-out); }
.toast[data-tone="danger"] { background: var(--danger); color: var(--surface); }
.toast-x { display: inline-grid; place-items: center; background: transparent; border: 0; color: inherit; opacity: 0.7; width: 24px; height: 24px; border-radius: 6px; }
.toast-x:hover { opacity: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tip { position: fixed; z-index: 90; max-width: 260px; padding: 6px 9px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 12px; line-height: 1.35; pointer-events: none; animation: tip-in var(--t-press) var(--ease-out); }
@keyframes tip-in { from { opacity: 0; } to { opacity: 1; } }

/* Command palette */
.palette { position: fixed; z-index: 70; left: 50%; top: 12vh; width: min(600px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-float); overflow: hidden; transform: translateX(-50%); animation: palette-in var(--t-hover) var(--ease-out); }
@keyframes palette-in { from { opacity: 0; transform: translate(-50%, 6px) scale(0.985); } to { opacity: 1; transform: translateX(-50%); } }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.palette-input input { flex: 1; height: 52px; border: 0; background: transparent; font-size: 16px; outline: none; color: var(--ink); }
.palette-input input::placeholder { color: var(--ink-3); }
.palette-list { max-height: min(52vh, 420px); overflow: auto; padding: 6px; }
.palette-group { padding: 10px 10px 4px; }
.palette-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: 14px; color: var(--ink); }
.palette-item[aria-selected="true"] { background: var(--surface-2); }
.palette-item svg { color: var(--ink-3); flex: none; }
.palette-item .hint { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.palette-empty { padding: 28px; text-align: center; color: var(--ink-3); }
.palette-foot { display: flex; gap: 16px; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface); font: 500 11px/1 var(--font-mono); color: var(--ink-2); }

/* ---------- App shell (owner, desktop first) ---------- */
.app { --sidebar: 248px; min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); background: var(--paper); }
.app-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--paper); overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; text-decoration: none; color: var(--ink); }
.brand-mark { flex: none; width: 28px; height: 28px; color: var(--pine); }
.brand-name { font: 600 14px/1.2 var(--font-ui); } .brand-sub { font-size: 12px; color: var(--ink-3); }
.nav { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: var(--r-control); background: transparent; color: var(--ink-2); font: 500 14px/1 var(--font-ui); text-align: left; text-decoration: none; transition: background-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out); }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--pine-soft); color: var(--ink); }
.nav-item[aria-current="page"] svg { color: var(--pine); }
.nav-item .nav-count { margin-left: auto; font: 500 11px/1 var(--font-mono); color: var(--ink-3); }
.nav-group { padding: 16px 10px 6px; }
.side-foot { margin-top: auto; padding-top: 16px; }
.chip-licence { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 24px; background: color-mix(in oklch, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.search-btn { display: inline-flex; align-items: center; gap: 10px; height: 32px; min-width: 240px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-control); background: var(--surface); color: var(--ink-3); font-size: 13px; transition: border-color var(--t-hover) var(--ease-out); }
.search-btn:hover { border-color: color-mix(in oklch, var(--ink) 30%, var(--line-2)); }
.search-btn .kbd { margin-left: auto; }
.app-content { padding: 32px 24px 96px; max-width: 1280px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.page-title { font: 500 28px/1.15 var(--font-display); letter-spacing: -0.015em; }
.nav-toggle { display: none; }
.banner { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 13px; background: var(--brass-soft); color: var(--ink); border-bottom: 1px solid color-mix(in oklch, var(--brass) 35%, var(--line)); }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .app-side { position: fixed; z-index: 50; left: 0; top: 0; width: 280px; transform: translateX(-100%); visibility: hidden; transition: transform var(--t-sheet) var(--ease-out), visibility 0s linear var(--t-sheet); box-shadow: var(--shadow-float); }
  .app-side[data-open="true"] { transform: none; visibility: visible; transition-delay: 0s; }
  .nav-toggle { display: inline-grid; }
  .topbar { flex-wrap: wrap; height: auto; min-height: 52px; padding: 8px 12px; }
  .topbar > .row { max-width: 100%; flex-wrap: wrap; margin-left: auto; }
  .search-btn { min-width: 140px; flex: 1; }
  .app-content { padding: 24px 16px 80px; }
}

/* ---------- Phone shell (employee) ---------- */
.phone-page { min-height: 100vh; min-height: 100dvh; background: var(--paper); font-size: 17px; }
.phone { position: relative; max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; font-size: 17px; line-height: 1.5; }
.phone-top { position: sticky; top: 0; z-index: 10; background: var(--paper); }
.phone-top-row { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px 0 8px; }
.phone-title { font: 500 13px/1.2 var(--font-ui); color: var(--ink-3); flex: 1; text-align: center; }
.phone-top .progress { border-radius: 0; height: 2px; }
.phone-main { flex: 1; padding: 24px 20px 32px; display: flex; flex-direction: column; }
.phone-bar { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
.phone-bar > * { flex: 1; }
.phone-bar > .btn-ghost, .phone-bar > .btn-secondary { flex: 0 0 auto; }
.phone-q { font: 500 26px/1.22 var(--font-display); letter-spacing: -0.012em; text-wrap: balance; }
.phone-lead { font: 400 18px/1.5 var(--font-ui); color: var(--ink-2); }
.phone-screen { animation: screen-in var(--t-sheet) var(--ease-out); }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.disclosure { border-top: 1px solid var(--line); padding-top: 12px; }
.disclosure > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 14px; color: var(--ink-2); border-radius: 6px; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary svg { transition: transform var(--t-hover) var(--ease-out); }
.disclosure[open] > summary svg { transform: rotate(90deg); }
.disclosure > div { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* ---------- Start page ---------- */
.site { min-height: 100vh; background: var(--paper); }
.site-head { display: flex; align-items: center; gap: 12px; max-width: 1200px; margin: 0 auto; padding: 20px 24px; }
.site-main { max-width: 1200px; margin: 0 auto; padding: 0 24px 96px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding: 48px 0 72px; }
.hero h1 { font: 500 clamp(34px, 4.6vw, 52px)/1.08 var(--font-display); letter-spacing: -0.022em; text-wrap: balance; }
.hero-lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 48ch; margin-top: 20px; }
.hero-dial { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 28px 24px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.hero-case { max-width: 34ch; text-align: center; min-height: 3.6em; }
.hero-case q { font: italic 400 17px/1.45 var(--font-display); quotes: "\201C" "\201D"; }
.doors { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.door { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color var(--t-hover) var(--ease-out), transform var(--t-hover) var(--ease-out); }
.door:hover { border-color: var(--line-2); transform: translateY(-2px); }
.door:active { transform: scale(0.99); }
.door h2 { font: 500 24px/1.2 var(--font-display); letter-spacing: -0.01em; }
.door p { color: var(--ink-2); max-width: 44ch; }
.door .go { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--pine); }
.door-1 { grid-row: 1 / span 2; background: var(--pine); color: var(--on-pine); border-color: var(--pine); justify-content: space-between; padding: 36px; }
.door-1 h2 { font-size: 34px; } .door-1 p { color: color-mix(in oklch, var(--on-pine) 78%, transparent); font-size: 16px; }
.door-1 .go { color: var(--on-pine); }
.door-1 .eyebrow { color: color-mix(in oklch, var(--on-pine) 90%, transparent); }
.door-1:hover { border-color: var(--pine); }
.door-btn { text-align: left; cursor: pointer; font: inherit; }
.rulebooks { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 32px; flex-wrap: wrap; }
.rulebooks ul { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); flex: 1; min-width: 260px; }
.rulebooks li:last-child { color: var(--brass-ink); font-weight: 500; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 24px 0 48px; }
  .doors { grid-template-columns: minmax(0, 1fr); } .door-1 { grid-row: auto; }
  .site-head, .site-main { padding-left: 16px; padding-right: 16px; }
  .door-1 h2 { font-size: 28px; }
}

/* ---------- Owner overview pieces reused by others ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 900px) { .bento > * { grid-column: span 12; } }
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr); } }
.said { font: 400 19px/1.55 var(--font-display); letter-spacing: -0.003em; }
.said mark { background: color-mix(in oklch, var(--brass) 28%, transparent); color: inherit; padding: 1px 2px; border-radius: 3px; }
.sentence { font: 500 28px/1.3 var(--font-display); letter-spacing: -0.012em; text-wrap: pretty; }

/* ---------- Style guide ---------- */
.kit { max-width: 1120px; margin: 0 auto; padding: 32px 24px 128px; }
.kit-head { position: sticky; top: 0; z-index: 30; margin: 0 -24px; padding: 12px 24px; display: flex; align-items: center; gap: 12px; background: color-mix(in oklch, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.kit-section { padding-top: 64px; scroll-margin-top: 72px; }
.kit-section > h2 { font: 500 28px/1.15 var(--font-display); letter-spacing: -0.015em; margin-bottom: 4px; }
.kit-section > p.lead { color: var(--ink-2); margin-bottom: 24px; max-width: 64ch; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.swatch { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.swatch i { display: block; height: 56px; border-bottom: 1px solid var(--line); }
.swatch div { padding: 8px 10px; font: 500 12px/1.4 var(--font-mono); }
.swatch small { display: block; color: var(--ink-3); font-weight: 400; font-family: var(--font-ui); }
.demo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.demo + .demo, .bento + .demo, .kit-section > .demo + .demo { margin-top: 12px; }
.bento { margin-bottom: 12px; }
.kit-section > .demo:not(:first-of-type) { margin-top: 12px; }
.demo-label { font: 600 11px/1 var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); width: 100%; margin-bottom: 4px; }
.kit-toc { display: flex; gap: 4px; flex-wrap: wrap; margin: 24px 0 0; }
.kit-toc a { padding: 4px 10px; border-radius: var(--r-pill); font-size: 13px; text-decoration: none; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); }
.kit-toc a:hover { color: var(--ink); }
.phone-frame { width: 390px; max-width: 100%; border: 1px solid var(--line-2); border-radius: 32px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-float); }
.phone-frame .phone { min-height: 640px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .dial[data-sweep="true"] .dial-seg { opacity: 1; }
  .skeleton::after { display: none; }
  .btn:active, .chip:active, .icon-btn:active, .seg-btn:active { transform: none; }
}
@media print { .app-side, .topbar, .phone-bar { display: none !important; } }
@media (max-width: 600px) { .kit-head strong { display: none; } .kit-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } .kit { padding-left: 16px; padding-right: 16px; } .kit-head { margin: 0 -16px; padding: 12px 16px; } }

/* ==================== Owner workspace (System 03) ==================== */
.page-lead { margin-top: 6px; max-width: 64ch; font-size: 14px; }
.clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.block { display: block; }
.err-box { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 16px; border-radius: var(--r-control); background: var(--danger-soft); border: 1px solid color-mix(in oklch, var(--danger) 35%, var(--line)); font-size: 13px; }
.err-box[role="status"] { background: var(--brass-soft); border-color: color-mix(in oklch, var(--brass) 40%, var(--line)); }
.err-box svg { color: var(--danger); flex: none; }
.copyable { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.copyable code { font-size: 12px; background: var(--surface-2); padding: 3px 8px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.copyable-wide { display: flex; width: 100%; } .copyable-wide code { flex: 1; }
.reading-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.reading-foot .mono { color: var(--ink-2); }
.fieldset { border: 0; padding: 0; margin: 0; }
.link-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--pine); font: inherit; text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--pine) 40%, transparent); text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { text-decoration-color: currentColor; }
.spin-slow { animation: spin 1.6s linear infinite; }
.code { margin: 12px 0; padding: 12px; overflow: auto; max-height: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-control); font: 12px/1.5 var(--font-mono); }

/* Login */
.login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: start; padding-top: 32px; }
.login-intro { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; }
.login-dial { margin-top: 16px; }
.login-card { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) { .login { grid-template-columns: minmax(0, 1fr); gap: 32px; } .login-dial { display: none; } }

/* Overview bento */
.ov > .card { min-width: 0; }
.tile-hero { background: linear-gradient(160deg, var(--surface), color-mix(in oklch, var(--pine-soft) 60%, var(--surface))); }
.tile-headline { margin-top: 10px; text-wrap: balance; }
.tile-headline .num { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: -0.03em; }
.next-list { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.next-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--r-control); background: transparent; text-align: left; font-size: 14px; color: var(--ink); transition: background-color var(--t-hover) var(--ease-out); }
.next-item:hover { background: color-mix(in oklch, var(--surface) 70%, transparent); }
.next-item svg:first-child { color: var(--pine); flex: none; } .next-item svg:last-child { color: var(--ink-3); flex: none; transition: transform var(--t-hover) var(--ease-out); }
.next-item:hover svg:last-child { transform: translateX(3px); }
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mini-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 6px; border: 0; border-radius: var(--r-control); background: transparent; text-align: left; transition: background-color var(--t-press) var(--ease-out); }
.mini-row:hover { background: var(--surface-2); }
.mini-text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; gap: 1px; }
.exp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.exp-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 32px; align-items: center; gap: 12px; width: 100%; padding: 5px 6px; border: 0; border-radius: 8px; background: transparent; text-align: left; transition: background-color var(--t-press) var(--ease-out); }
.exp-row:hover { background: var(--surface-2); }
.exp-name { font-size: 13px; font-weight: 500; }
.exp-bar { display: flex; gap: 2px; height: 10px; }
.exp-bar i { min-width: 3px; border-radius: 3px; background: var(--vc); }
.exp-bar i[data-v="INSUFFICIENT_INFORMATION"] { background: color-mix(in oklch, var(--vc) 22%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--vc); }
.exp-bar i[data-v="NO_TRIGGER_FOUND"] { background: color-mix(in oklch, var(--vc) 22%, var(--surface)); }
.exp-bar i[data-v="GUIDED_READING"] { background: linear-gradient(90deg, var(--vc) 50%, color-mix(in oklch, var(--vc) 18%, var(--surface)) 50%); }
.exp-bar i[data-v="NOT_EVALUATED"], .lg[data-v="NOT_EVALUATED"], .lg-sq[data-v="NOT_EVALUATED"] { background: repeating-linear-gradient(45deg, color-mix(in oklch, var(--ink-3) 55%, transparent) 0 1.5px, transparent 1.5px 4px); }
.exp-n { font-size: 12px; color: var(--ink-2); text-align: right; }
.legend { margin: 14px 0 0; padding: 0; list-style: none; }
.lg { display: inline-block; width: 12px; height: 8px; border-radius: 3px; background: var(--vc, var(--ink-3)); }
.lg[data-v="INSUFFICIENT_INFORMATION"] { background: color-mix(in oklch, var(--vc) 22%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--vc); }
.lg[data-v="NO_TRIGGER_FOUND"] { background: color-mix(in oklch, var(--vc) 22%, var(--surface)); }
.lg[data-v="GUIDED_READING"] { background: linear-gradient(90deg, var(--vc) 50%, color-mix(in oklch, var(--vc) 18%, var(--surface)) 50%); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 20px; }
.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.activity li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.activity li:last-child { border-bottom: 0; } .activity svg { color: var(--ink-3); flex: none; }
.s-use.lg, .s-try.lg, .s-plan.lg { height: 10px; }

/* Company profile */
.subjects { margin-bottom: 16px; }
.subj-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.subj-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: var(--r-pill); background: var(--pine-soft); border: 1px solid color-mix(in oklch, var(--pine) 22%, var(--line)); font-size: 13px; }
.subj-type { font: 600 11px/1 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.subj-role { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--surface); color: var(--ink-2); }
.subj-chip .icon-btn { width: 26px; height: 26px; }
.profile-bar { position: sticky; top: 52px; z-index: 15; display: flex; align-items: center; gap: 10px; padding: 10px 16px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: color-mix(in oklch, var(--surface) 92%, transparent); backdrop-filter: blur(8px); font-size: 13px; }
.profile-progress { min-width: 60px; max-width: 220px; margin-left: auto; }
.profile { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.profile-side { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow: auto; padding-right: 4px; }
.profile-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.profile-big { display: grid; place-items: center; padding: 8px 0 20px; }
.book-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; color: var(--ink-2); transition: background-color var(--t-hover) var(--ease-out); }
.book-row:hover { background: var(--surface-2); }
.book-row[aria-current="true"] { background: var(--pine-soft); color: var(--ink); }
.book-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.elig-ok { color: var(--ink-3); } .elig-wait { color: var(--brass-ink); }
.profile-main { min-width: 0; }
.book-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.q-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.q-row { padding: 20px 8px 20px 12px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; border-radius: 4px; transition: background-color var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out); }
.q-row:hover { background: color-mix(in oklch, var(--surface-2) 55%, transparent); }
.q-row:focus-visible { outline: none; background: var(--surface-2); border-left-color: var(--brass); }
.q-row[data-state="answered"] { border-left-color: color-mix(in oklch, var(--pine) 55%, transparent); }
.q-row[data-state="unknown"] { border-left-color: var(--brass); }
.q-row[data-busy="true"] { opacity: 0.7; }
.q-main { display: flex; flex-direction: column; gap: 14px; }
.q-num { flex: none; width: 24px; padding-top: 3px; font-size: 11px; color: var(--ink-3); }
.q-text { font: 500 16px/1.45 var(--font-ui); max-width: 68ch; text-wrap: pretty; }
.q-guidance { font-size: 13px; color: var(--ink-2); max-width: 72ch; }
.q-cite { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--ink-3); }
.q-control { margin-left: 36px; }
.q-chips .field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.q-select { width: auto; max-width: 100%; min-width: 220px; }
.q-num-field { width: 180px; }
.q-meta { margin-left: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 28px; }
.linked { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.linked > summary { padding: 12px 16px; cursor: pointer; font-weight: 500; display: flex; gap: 8px; align-items: center; }
.linked .q-list { padding: 0 8px; }
@media (max-width: 1180px) { .profile { grid-template-columns: 250px minmax(0, 1fr); gap: 20px; } .profile-big .ring { transform: scale(0.8); } .q-control, .q-meta { margin-left: 0; } .q-num { display: none; } }
@media (max-width: 900px) { .profile { grid-template-columns: minmax(0, 1fr); } .profile-side { position: static; max-height: none; } .profile-big { display: none; } }
.q-meta .btn { white-space: normal; height: auto; min-height: 30px; padding-top: 5px; padding-bottom: 5px; text-align: left; line-height: 1.3; }

/* Cases */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field svg { position: absolute; left: 10px; color: var(--ink-3); pointer-events: none; }
.search-field .control { padding-left: 32px; width: 200px; min-height: 32px; }
.filter-select { width: auto; min-height: 32px; padding: 4px 30px 4px 10px; font-size: 13px; }
.case-cell { display: flex; flex-direction: column; min-width: 0; max-width: 520px; }
.case-title { font-weight: 500; font-size: 14px; }
.vtag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); padding: 2px 8px 2px 6px; border-radius: var(--r-pill); background: var(--surface-2); }
.vtag .vglyph { --vc: var(--v-applies); }
.vtag .vglyph[data-v="GUIDED_READING"] { --vc: var(--v-guided); }

/* Case detail */
.case-top { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.case-split { gap: 40px; }
.case-left { min-width: 0; }
@media (min-width: 1000px) { .case-left { position: sticky; top: 72px; max-height: calc(100vh - 96px); overflow: auto; padding-right: 8px; align-self: start; scrollbar-width: thin; } }
.words[data-picking="true"] .words-quote { cursor: text; outline: 2px dashed var(--brass); outline-offset: 6px; border-radius: 4px; }
.words-quote { margin: 0; white-space: pre-wrap; }
.facts { margin: 12px 0 0; display: flex; flex-direction: column; }
.fact { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.fact dt { color: var(--ink-3); } .fact dd { margin: 0; }
.quote { display: block; margin-top: 4px; font: italic 14px/1.4 var(--font-display); color: var(--ink-2); }
.rba { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.rba li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.routes { margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.is-stale .dial { opacity: 0.45; transition: opacity var(--t-hover) var(--ease-out); }
.reread { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 12px; margin-bottom: 12px; font-size: 13px; border-radius: var(--r-control); background: var(--brass-soft); }
.dial-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 8px 0 0; }
.dial-legend { justify-content: center; margin: 0; padding: 0; list-style: none; }
.book-card { padding: 0; scroll-margin-top: 72px; }
.book-card-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; background: transparent; text-align: left; border-radius: var(--r-card); }
.book-card-head:hover { background: var(--surface-2); }
.book-card .chev { color: var(--ink-3); transition: transform var(--t-hover) var(--ease-out); }
.book-card[data-open="true"] .chev { transform: rotate(180deg); }
.book-card[data-open="false"] { background: transparent; }
.book-card-body { padding: 0 16px 16px; }
.state-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); font-size: 12px; }
.state-chip[aria-pressed="true"] { background: var(--pine); color: var(--on-pine); border-color: var(--pine); }
.oblig { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-control); }
.oblig li { display: flex; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.oblig li:last-child { border-bottom: 0; } .state-tag { flex: none; white-space: nowrap; }
.asked { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.asked li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.keychip { padding: 2px 8px; border-radius: 6px; background: var(--surface-2); font-size: 12px; }

/* Own rulebook checks */
.pq { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); }
.pq-text { font-size: 14px; font-weight: 500; }
.els { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.el-row { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: var(--r-control); background: var(--surface-2); }
.el-row[data-picking="true"] { outline: 2px solid var(--brass); }
.el-text { display: flex; flex-direction: column; gap: 2px; }
.ev { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 10px; border-radius: 8px; background: color-mix(in oklch, var(--brass) 22%, var(--surface)); font: 15px/1.45 var(--font-display); }
.ev svg { flex: none; margin-top: 4px; color: var(--brass-ink); }
.sentences { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; }
.sentences button { width: 100%; padding: 7px 10px; text-align: left; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 13px; }
.sentences button:hover { border-color: var(--brass); }
.policy-result { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.pr-row { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-control); }
.pr-check { display: flex; gap: 12px; justify-content: space-between; margin-top: 6px; }
.trail-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.well .well, .well { font-size: 13px; }
.disclosure { border-top: 1px solid var(--line); padding-top: 12px; }

/* Your rulebook page */
.importer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 220px; padding: 24px; border: 1.5px dashed var(--line-2); border-radius: var(--r-card); color: var(--ink-3); transition: border-color var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out); }
.drop.is-drag { border-color: var(--pine); background: var(--pine-soft); }
.drop p { color: var(--ink); } .drop .muted { color: var(--ink-2); }
@media (max-width: 900px) { .importer { grid-template-columns: minmax(0, 1fr); } }
.cov-progress { margin-top: 16px; }
.rule-quote { margin: 12px 0; padding-left: 14px; border-left: 2px solid var(--brass); font-size: 16px; }
.rule-checks { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.rule-checks li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }

/* Exposure field */
.xf-wrap { overflow-x: auto; }
.xf { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; }
.xf-corner { width: 150px; }
.xf-col { height: 84px; padding: 0 0 8px; vertical-align: bottom; font: 600 11px/1 var(--font-ui); letter-spacing: 0.04em; color: var(--ink-2); text-align: center; }
.xf-col span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.xf-hours-h { text-align: left; padding: 0 0 8px 16px; vertical-align: bottom; font: 600 11px/1.2 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); width: 150px; }
.xf-team { text-align: left; font-weight: 500; font-size: 14px; padding: 4px 12px 4px 0; white-space: nowrap; }
.xf-team-name { display: block; }
.xf-cell { padding: 2px; text-align: center; }
.xf-btn { display: grid; place-items: center; width: 100%; min-width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; padding: 0; transition: background-color var(--t-press) var(--ease-out); }
button.xf-btn:hover { background: var(--surface-2); }
tbody tr:hover .xf-team-name { color: var(--pine); }
.xf-sq { display: block; border-radius: 30%; transition: transform var(--t-hover) var(--ease-out); }
button.xf-btn:hover .xf-sq { transform: scale(1.12); }
.xf-sq[data-v="APPLIES"] { background: color-mix(in oklch, var(--vc) 82%, var(--surface)); box-shadow: 0 0 0 1px var(--vc); }
.xf-sq[data-v="GUIDED_READING"] { background: linear-gradient(90deg, var(--vc) 50%, color-mix(in oklch, var(--vc) 14%, var(--surface)) 50%); box-shadow: 0 0 0 1.5px var(--vc); }
.xf-sq[data-v="INSUFFICIENT_INFORMATION"] { background: color-mix(in oklch, var(--vc) 14%, var(--surface)); border: 1.5px dashed var(--vc); }
.xf-sq[data-v="NO_TRIGGER_FOUND"] { background: color-mix(in oklch, var(--vc) 14%, var(--surface)); border: 1.5px solid var(--vc); }
.xf-sq[data-v="NOT_EVALUATED"] { background: repeating-linear-gradient(45deg, color-mix(in oklch, var(--ink-3) 55%, transparent) 0 1.5px, transparent 1.5px 4px); box-shadow: 0 0 0 1px var(--line-2); }
.xf-sq[data-v="other"], .xf-sq[data-v="none"] { background: var(--surface-2); border: 1px solid var(--line-2); }
.lg-sq { display: inline-block; width: 12px; height: 12px; border-radius: 30%; }
.lg-sq[data-v="APPLIES"] { background: color-mix(in oklch, var(--vc) 82%, var(--surface)); box-shadow: 0 0 0 1px var(--vc); }
.lg-sq[data-v="GUIDED_READING"] { background: linear-gradient(90deg, var(--vc) 50%, color-mix(in oklch, var(--vc) 14%, var(--surface)) 50%); box-shadow: 0 0 0 1.5px var(--vc); }
.lg-sq[data-v="INSUFFICIENT_INFORMATION"] { background: color-mix(in oklch, var(--vc) 14%, var(--surface)); border: 1.5px dashed var(--vc); }
.lg-sq[data-v="NO_TRIGGER_FOUND"] { background: color-mix(in oklch, var(--vc) 14%, var(--surface)); border: 1.5px solid var(--vc); }
.xf-hours { padding-left: 16px; white-space: nowrap; }
.xf-hours { display: table-cell; }
.xf-hbar { display: inline-block; width: 84px; height: 6px; margin-right: 10px; vertical-align: middle; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.xf-hbar i { display: block; height: 100%; background: var(--pine); border-radius: 4px; }
.xf-hidden { padding: 8px 4px; }
/* On a phone the line sits under the team name and wraps there, instead of being clipped at the far side of the scrolling table. */
.xf-hidden-th { display: none; }
@media (max-width: 640px) { .xf-hidden-th { display: block; white-space: normal; max-width: 150px; font-weight: 400; } .xf-hidden-td { display: none; } }
.xf tbody tr + tr .xf-team, .xf tbody tr + tr td { border-top: 1px solid color-mix(in oklch, var(--line) 60%, transparent); }

/* Board */
.board .steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.insight-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.insight { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; border-radius: var(--r-card); background: var(--surface-2); border-left: 3px solid var(--pine); }
.insight.risk, .insight.exposure { border-left-color: var(--v-applies); } .insight.value, .insight.opportunity { border-left-color: var(--brass); }
.insight-head { font: 500 17px/1.3 var(--font-display); }
.suggest { padding: 5px 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); font-size: 13px; color: var(--ink-2); text-align: left; transition: border-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out); }
.suggest:hover:not(:disabled) { border-color: var(--pine); color: var(--ink); } .suggest:disabled { opacity: 0.5; cursor: not-allowed; }
.ask-answer { margin-top: 16px; padding: 16px; border-radius: var(--r-card); background: var(--pine-soft); }
.answer-text { font: 400 18px/1.5 var(--font-display); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.kpis .card { display: flex; flex-direction: column; gap: 8px; }
.delta { display: inline-flex; align-items: center; gap: 3px; font: 500 12px/1 var(--font-mono); } .delta.up { color: var(--pine); } .delta.down { color: var(--danger); }
.num-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--ink) 30%, transparent); text-underline-offset: 3px; cursor: pointer; }
.num-link:hover { color: var(--pine); text-decoration-color: currentColor; }
.stat-value .num-link { font-size: inherit; }
.teamrow { display: flex; flex-direction: column; gap: 6px; }
.tag { padding: 2px 8px; border-radius: var(--r-pill); background: var(--brass-soft); font-size: 11px; }
.stackbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface-2); }
.s-use { background: var(--pine); } .s-try { background: var(--brass); } .s-plan { background: color-mix(in oklch, var(--ink-3) 45%, var(--surface)); }
.stackbar i { display: block; height: 100%; } .lg.s-use, .lg.s-try, .lg.s-plan { width: 12px; border-radius: 3px; }
.matrix { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 13px; }
.matrix th { text-align: left; font-weight: 500; color: var(--ink-2); } .matrix thead th { text-align: center; font: 600 11px/1 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.matrix td { text-align: center; padding: 12px 8px; border-radius: 8px; background: color-mix(in oklch, var(--brass) calc(var(--heat, 0.06) * 100%), var(--surface-2)); }
.cream { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cream li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); } .cream li:last-child { border-bottom: 0; }
.rank { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--pine-soft); font-size: 12px; }
.safe { margin-top: 4px; color: var(--brass-ink); }
.tally { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.tally li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.drill-row { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.board-link .board { max-width: 1120px; margin: 0 auto; }

/* People, assistants, settings */
.people-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.team-list { list-style: none; margin: 0; padding: 4px 0 8px; }
.team-list li { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--line); }
.links-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.conn-form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-top: 16px; }
@media (max-width: 900px) { .conn-form, .people-split { grid-template-columns: minmax(0, 1fr); } }
.conn-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; }
.conn-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.proposal { padding: 14px; border: 1px solid var(--line); border-radius: var(--r-control); display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.settings { max-width: 860px; }
.audit { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.audit li { display: grid; grid-template-columns: 130px 70px minmax(0, 1fr); gap: 12px; padding: 4px 0; word-break: break-word; }

.mono.t-12 { white-space: nowrap; }
.stat-value .num-link, .matrix .num-link, .kpis .num-link { font-family: var(--font-mono); }
.profile-bar { background: var(--surface); }
.matrix td { color: var(--ink); } .matrix .num-link, .matrix .num { color: var(--ink); }
