/* um-audit. The design system is the landing page's (its styles.css): the same neutrals,
   status colours, pastel swatches, radii, card shadow and type, in its light theme. Colour
   never carries a state alone: every outcome also has a mark and a word. */

@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  --bg: #fafafa; --surface: #ffffff; --surface-2: #f3f3f4;
  --ink: #1b1b1b; --ink-2: #5d5c5c; --ink-3: #8f8e94; --ink-4: #d4d4d8;
  --line: #00000012; --line-2: #00000024; --hl: #ffffffe6; --shade: #0000000f;
  --lilac: #d9c6f7; --teal: #a6e8ec; --peach: #ffcfa6; --lime: #d3ea8f; --pink: #efb6d8; --sky: #b5d5fc; --mint: #b9ecd0;
  --lilac-d: #9b7be6; --teal-d: #2fb5bf; --peach-d: #f39a55; --lime-d: #8fb82a; --pink-d: #dc6fae; --sky-d: #5c9ef0;
  --pass: #2bac76; --fail: #e5484d; --unknown: #d9822b; --info: #0b84fe; --violet: #7c5cff;
  --pass-ink: #13784f; --fail-ink: #c42f35; --unknown-ink: #a35a12; --info-ink: #0a6ad0; --violet-ink: #5b3fd6;
  /* chart marks: the pass green one step deeper so it stays apart from the fail red for
     red-green colour blindness (validated: deutan ΔE 7.7, with gaps, order and labels) */
  --mark-pass: #1f9467; --mark-fail: #e5484d; --mark-unknown: #d9822b; --mark-unknown-bg: #fbe6cf;
  --r-chip: 6px; --r-sm: 10px; --r-card: 16px; --r-panel: 24px;
  --ui: cubic-bezier(.2, .9, .2, 1); --spring: cubic-bezier(.2, 1.35, .4, 1);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --side-w: 232px;
  color-scheme: light;
}
:root {
  --card: inset 0 1px 0 var(--hl), 0 0 0 1px var(--line), 0 1px 2px var(--shade), 0 8px 24px -6px var(--shade);
  --ring: 0 0 0 1px var(--line);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--lilac); color: #1b1b1b; }
a { color: inherit; text-decoration: none; }
main a:not(.btn):not(.task-line):not(.seg-btn):not(.sort):not(.tasks-cell):not(.task-link):not(.chip), .link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; transition: text-decoration-color .2s var(--ui); }
main a:not(.btn):not(.task-line):not(.seg-btn):not(.sort):not(.chip):hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
h1:focus, main:focus, article:focus, aside:focus { outline: none; }
article:focus-visible, aside:focus-visible { outline: 2px solid var(--violet); }
h1, h2, h3 { margin: 0; font-weight: 500; color: var(--ink); text-wrap: balance; }
h3 { font-size: 14px; }
main h1 { font-size: 26px; line-height: 1.15; letter-spacing: -.03em; }
main h2 { font-size: 16px; letter-spacing: -.015em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
code, pre, kbd, .mono { font-family: var(--mono); font-size: .92em; }
.small { font-size: 12px; }
.muted { color: var(--ink-3); }
.quiet { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.bad { color: var(--fail-ink); font-weight: 500; }
.label { color: var(--ink-2); font-weight: 500; }
.lede { color: var(--ink-2); font-size: 14px; max-width: 62ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); }
ul.plain { list-style: none; padding: 0; margin: 0; }
kbd { border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 .3em; background: var(--surface-2); font-size: 12px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- shell: sidebar and main */

.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.shell.bare { display: block; }
.side { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 18px; height: 100vh; padding: 18px 12px 14px;
  border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 35%, var(--surface)); font-size: 13px; color: var(--ink-2); }
.side-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.side-top > div { min-width: 0; flex: 1; }
.side-org { padding: 0 10px 6px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-head { display: flex; align-items: center; gap: 9px; padding: 2px 8px; min-width: 0; color: var(--ink); font-weight: 500; }
.org-mark { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 7px; background: var(--ink); color: var(--bg); }
.org-mark .mark { width: 14px; height: 14px; }
.project-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-wrap { position: relative; display: flex; align-items: center; min-width: 0; flex: 1; }
.side .project-pick { appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; height: 30px; padding: 0 24px 0 6px; margin-left: -6px; border: 0; border-radius: 8px; background: transparent; font-weight: 500; color: var(--ink); cursor: pointer; text-overflow: ellipsis; }
.side .project-pick { box-shadow: none; background-image: none; }
.side .project-pick:hover { background: var(--surface-2); box-shadow: none; }
.chev { position: absolute; right: 8px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border: solid var(--ink-3); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
.side-nav { display: grid; gap: 18px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 32px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); transition: background-color .15s var(--ui), color .15s var(--ui); }
.side-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.side-nav a.on { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line), 0 1px 2px var(--shade); }
.count { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); font: 400 11px/18px var(--mono); text-align: center; color: var(--ink-2); }
.side-nav a.on .count { background: var(--surface-2); }
.side-label { padding: 0 10px 6px; font-size: 12px; color: var(--ink-3); }
.side-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.side-out { border: 0; background: none; padding: 4px 0; color: var(--ink-2); cursor: pointer; font-size: 12px; }
.side-out:hover { color: var(--ink); }
.menu-btn { display: none; }

main { min-width: 0; padding: 26px clamp(16px, 3.2vw, 44px) 72px; }
.shell.bare main { padding: 0 16px; }
.view { display: grid; gap: 16px; max-width: 1120px; }
.view > * { min-width: 0; }

/* ---------------------------------------------------------------- type and small pieces */

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 12px; color: var(--ink-3); min-width: 0; }
.crumbs > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.crumbs .sep { opacity: .6; }
main .crumbs a { color: var(--ink-3); text-decoration: none; }
main .crumbs a:hover { color: var(--ink); }
.page-title { margin-top: -6px; font-size: 26px; line-height: 1.15; font-weight: 500; letter-spacing: -.03em; overflow-wrap: anywhere; }
.page-title .quiet { font-weight: 400; }
.task-title { font-size: 22px; letter-spacing: -.025em; max-width: 46ch; line-height: 1.25; }
.page-title.mono, .mono-title { font-family: var(--sans); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -4px; }
.quiet-line { margin-top: -6px; color: var(--ink-3); font-size: 13px; max-width: 72ch; }
.count-line { font-size: 12px; color: var(--ink-2); }
.foot-note { font-size: 12px; color: var(--ink-3); }
.filter-note { font-size: 13px; color: var(--ink-2); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--ink-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip.mono { font-family: var(--mono); font-size: 11.5px; }
.chip .dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.chip-pass { color: var(--pass-ink); background: color-mix(in srgb, var(--pass) 14%, var(--surface)); }
.chip-fail { color: var(--fail-ink); background: color-mix(in srgb, var(--fail) 12%, var(--surface)); }
.chip-unknown { color: var(--unknown-ink); background: color-mix(in srgb, var(--unknown) 13%, var(--surface)); }
.chip-info { color: var(--info-ink); background: color-mix(in srgb, var(--info) 11%, var(--surface)); }
.chip-warn { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.chip-ink { height: 20px; padding: 0 8px; background: var(--ink); color: var(--bg); font-size: 11px; }
.chip-outcome { padding-left: 7px; font-weight: 500; }
.omark { width: 13px; height: 13px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips .chip { height: 22px; padding: 0 8px; font-size: 11.5px; }

/* keys: a small mark of an outcome's colour and shape, always beside its word */
.key { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 3px; vertical-align: -1px; }
.key-pass { background: var(--mark-pass); }
.key-fail { background: var(--mark-fail); }
.key-unknown { background: repeating-linear-gradient(45deg, var(--mark-unknown) 0 2px, var(--mark-unknown-bg) 2px 4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mark-unknown) 40%, transparent); }
.sw { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px #00000012; }
.sw-lilac { background: var(--lilac); fill: var(--lilac); } .sw-teal { background: var(--teal); fill: var(--teal); } .sw-peach { background: var(--peach); fill: var(--peach); }
.sw-lime { background: var(--lime); fill: var(--lime); } .sw-pink { background: var(--pink); fill: var(--pink); } .sw-sky { background: var(--sky); fill: var(--sky); }
.sw-mint { background: var(--mint); fill: var(--mint); } .sw-none { background: var(--surface-2); fill: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------------------------------------------------------------- cards */

.card { min-width: 0; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--card); }
.card-pad { padding: 16px 18px 18px; display: grid; gap: 12px; align-content: start; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 22px; }
.card-label, .card > h2:not([class]), .card > summary.card-label { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.card > h2:not([class]) { margin-bottom: -2px; }
.card > h3 { font-size: 13px; font-weight: 500; color: var(--ink); }
.card-note { font-size: 13px; color: var(--ink-2); max-width: 62ch; }
.card-note.muted { color: var(--ink-3); }
/* a quiet danger zone (Settings, "Delete this project"): a thin red edge, nothing louder */
.card-danger { box-shadow: var(--card), inset 3px 0 0 var(--fail); }
.card-danger > h2:not([class]) { color: var(--fail-ink); }
.card-danger .field label b { font-weight: 500; color: var(--ink); }
.card-links { font-size: 13px; color: var(--ink-3); }
.aside-link { font-size: 12px; }
.card-list { display: grid; }
.card-list > .card-head { padding: 14px 18px 8px; }
.card-list .pad { padding: 0 18px 16px; }
.card-table { overflow: hidden; }
.card-table > .card-head { padding: 14px 18px 4px; }
.card-chart { padding: 16px 18px 14px; display: grid; gap: 10px; }
.panes { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.panes-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts-row { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; }
.facts-row dt { color: var(--ink-3); margin-bottom: 2px; }
.facts-row dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* label and value rows, figures right-aligned in mono */
.measure { display: grid; grid-template-columns: 1fr auto; gap: 9px 16px; margin: 0; font-size: 13px; color: var(--ink-2); }
.measure dt { min-width: 0; }
.measure dd { margin: 0; font: 400 12.5px var(--mono); text-align: right; color: var(--ink); }
.measure dd.plain-dd { font: 400 13px/1.45 var(--sans); text-align: left; grid-column: 1 / -1; margin-top: -5px; color: var(--ink); }
.measure dd.gated { font-family: var(--sans); font-style: italic; color: var(--ink-3); }
.small-measure { padding-top: 12px; border-top: 1px solid var(--line); grid-template-columns: auto 1fr; }
.small-measure dd { text-align: left; overflow-wrap: anywhere; }

/* headline numbers */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; }
.tile { min-width: 0; padding: 14px 18px 16px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--card); }
.tile dt { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }
.tile dd { margin: 0; }
.tile-value { margin-top: 6px !important; font-size: 30px; line-height: 1.05; font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.tile-note { margin-top: 6px !important; font-size: 12px; color: var(--ink-3); }

/* ---------------------------------------------------------------- chart */

.controls { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--surface-2); }
.seg-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; color: var(--ink-2); transition: background-color .15s var(--ui), color .15s var(--ui); }
.seg-btn:hover { color: var(--ink); }
.seg-btn.on { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line), 0 1px 2px var(--shade); }
.chart-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.chart { position: relative; }
.chart-plot { width: 100%; min-height: 232px; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg:focus-visible { outline-offset: 4px; }
.gridline { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.axis { stroke: var(--line-2); stroke-width: 1; shape-rendering: crispEdges; }
.tick { font: 400 10.5px var(--mono); fill: var(--ink-3); }
.seg-pass { fill: var(--mark-pass); }
.seg-fail { fill: var(--mark-fail); }
.hatch-bg { fill: var(--mark-unknown-bg); }
.hatch-fg { fill: var(--mark-unknown); }
.hit { fill: transparent; }
.slot.on .hit { fill: var(--ink); fill-opacity: .045; }
.ribbon { stroke: none; }
.ribbon-text { font: 500 10.5px var(--mono); fill: #1b1b1b; }
.tip-card { position: absolute; left: 0; top: 0; z-index: 4; min-width: 148px; padding: 10px 12px; border-radius: 12px; pointer-events: none;
  background: #1b1b1b; color: #f4f4f6; font-size: 12px; box-shadow: 0 14px 34px -10px #00000073, inset 0 1px 0 #ffffff1a;
  transform: translate(var(--tx, 0), var(--ty, 0)); }
.tip-card.left { transform: translate(calc(var(--tx, 0px) - 100%), var(--ty, 0)); }
.tip-title { margin-bottom: 6px; font-weight: 500; }
.tip-key { display: flex; align-items: center; gap: 6px; margin: 6px 0 2px; color: #c9c9cf; font-family: var(--mono); font-size: 11.5px; }
.tip-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; line-height: 1.7; }
.tip-row b { font: 400 12px var(--mono); }
.tip-row.muted { display: block; color: #a6a6ae; }
.as-table > summary { width: max-content; font-size: 12px; color: var(--ink-3); cursor: pointer; }
.as-table > summary:hover { color: var(--ink); }
.as-table .table-wrap { margin-top: 10px; max-height: 320px; overflow: auto; }

/* stacked share bar and meter */
.stack { display: flex; gap: 2px; width: 100%; min-width: 72px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.stack i { display: block; flex: 0 0 auto; width: var(--w, 0); height: 100%; }
.stack-pass { background: var(--mark-pass); }
.stack-fail { background: var(--mark-fail); }
.stack-unknown { background: repeating-linear-gradient(45deg, var(--mark-unknown) 0 2px, var(--mark-unknown-bg) 2px 4px); }
.meter { display: block; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; width: var(--w, 0); height: 100%; border-radius: inherit; background: var(--ink); opacity: .82; }

/* ---------------------------------------------------------------- lists */

.task-lines { list-style: none; margin: 0; padding: 0 6px 8px; }
.task-line { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink); transition: background-color .15s var(--ui); }
.task-line:hover { background: var(--surface-2); }
.tl-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.tl-text.mono { font-size: 12px; color: var(--ink-2); }
.tl-meta { display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.fm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fm-list li { display: grid; gap: 6px; min-width: 0; }
.fm-title { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); }
.fm-meta .chip { height: 20px; font-size: 11px; padding: 0 8px; }
.fm-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fm-card-title { font-size: 16px; line-height: 1.35; letter-spacing: -.015em; overflow-wrap: anywhere; max-width: 72ch; }
.fm-numbers { display: grid; grid-template-columns: auto auto minmax(0, 1fr) minmax(80px, 200px); align-items: end; gap: 10px 32px; }
.num-big { font-size: 22px; line-height: 1; letter-spacing: -.02em; }
.num-label { margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.fm-seen .num-label { margin: 0 0 3px; }
.fm-numbers .meter { align-self: center; }
details.examples { border-top: 1px solid var(--line); padding-top: 10px; }
details.examples > summary { font-size: 13px; color: var(--ink-2); cursor: pointer; width: max-content; max-width: 100%; }
details.examples > summary:hover { color: var(--ink); }
.finding-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.finding-list li { display: grid; gap: 3px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 13px; }
.f-head { font-size: 13px; }
.f-head strong { font-weight: 500; }
.signal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.signal-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.opinions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opinion { display: grid; gap: 6px; align-content: start; justify-items: start; padding: 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.op-who { font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.op-note { font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.request-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; letter-spacing: -.005em; }
.empty-card { padding: 28px 28px 26px; gap: 14px; }
.empty-lede { font-size: 18px; letter-spacing: -.02em; line-height: 1.35; max-width: 40ch; }
.holds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0; }
.holds > div { padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.holds dt { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; }
.holds .n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); font-size: 11px; color: var(--ink-2); }
.holds dd { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }

/* ---------------------------------------------------------------- causes (slice 8) */

/* a layer: its own pastel, never another layer's, always beside the layer's word */
.chip-layer { color: var(--ink); background: color-mix(in srgb, var(--chip-sw, var(--surface-2)) 42%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chip-sw, var(--ink-4)) 70%, transparent); padding-left: 8px; }
.layer-lime { --chip-sw: var(--lime); } .layer-sky { --chip-sw: var(--sky); } .layer-lilac { --chip-sw: var(--lilac); }
.layer-peach { --chip-sw: var(--peach); } .layer-teal { --chip-sw: var(--teal); } .layer-mint { --chip-sw: var(--mint); }
.layer-pink { --chip-sw: var(--pink); } .layer-none { --chip-sw: var(--surface-2); }
.chip-layer .sw { width: 8px; height: 8px; box-shadow: inset 0 0 0 1px #00000024; }
.fm-meta .chip-layer { padding-left: 7px; }
.chip-cause { display: flex; width: max-content; max-width: 100%; height: 22px; margin-top: 7px; padding: 0 9px 0 7px; font-size: 11.5px; gap: 5px; transition: box-shadow .15s var(--ui); }
.chip-cause:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.chip-layer-word { flex: none; font-weight: 500; }
.chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile-value.gated { font-size: 18px; font-style: italic; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.filters-causes { align-items: flex-end; }
.filters .segmented { padding: 4px; }
.th-sub { display: block; margin-top: 2px; font: 400 10.5px var(--mono); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.tile-date .tile-value { font-size: 22px; margin-top: 10px !important; }
.card-diagnosis .diag-check { align-self: start; }
.field-label { font-size: 12px; color: var(--ink-2); }
.causes .c-cause { min-width: 18rem; max-width: 30rem; }
.desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: 12px; line-height: 1.45; color: var(--ink-3); font-weight: 400; }
.causes .c-layer, .causes .c-n, .causes .c-share, .causes .c-time { white-space: nowrap; }
.causes .c-bars { width: 1%; }
.cell-unit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vbars { display: block; overflow: visible; }
.vbars-big { max-width: 100%; height: auto; }
.vbar-mark { fill: var(--ink); fill-opacity: .78; transition: fill-opacity .12s var(--ui); }
.vbar.zero .vbar-mark { fill: var(--ink-4); fill-opacity: 1; }
.vbar:hover .vbar-mark { fill-opacity: 1; }
.tick-ink { fill: var(--ink-2); }
.vbars-wrap { min-height: 130px; }
.quiet-head { margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.groups { display: grid; gap: 12px; }
.groups .quiet-line { margin-top: -4px; }
.card > h3.card-sub { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.rename:empty { display: none; }
.rename-form { padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--card); max-width: 52rem; }
.field-grow { flex: 1 1 20rem; }
.field-grow input { width: 100%; }
.rename-form .field-actions { padding-bottom: 20px; }
.cause-desc { margin-top: -4px; font-size: 15px; line-height: 1.5; }
.example-lines li { border-bottom: 1px solid var(--line); padding: 2px 0 4px; }
.example-lines li:last-child { border-bottom: 0; }
.example-cause { padding: 0 12px 8px 116px; font-size: 13px; color: var(--ink-2); max-width: 76ch; }
.cause-pick { max-width: 18rem; }

/* the diagnosis of a failed task */
.card-diagnosis { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 18px; }
.card-diagnosis > .card-head, .card-diagnosis > p { grid-column: 1 / -1; }
.diag-body { display: grid; gap: 12px; align-content: start; min-width: 0; }
.diag-cause { font-size: 15px; line-height: 1.55; letter-spacing: -.005em; overflow-wrap: anywhere; }
.diag-check { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.step-links { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.entry.entry.is-step { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent), inset 3px 0 0 var(--ink); }
.badge.badge-step { color: var(--bg); background: var(--ink); }

/* cases (slice 13): the Cases card on a cause's page, and a case's page */
.ready-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.holds .set-count { margin-top: 4px; font-size: 18px; letter-spacing: -.02em; color: var(--ink); }
.marks { display: inline-flex; gap: 3px; white-space: nowrap; }
.chip-mark { width: 20px; height: 20px; padding: 0; justify-content: center; }
.chip-mark.not-counted { opacity: .4; box-shadow: inset 0 0 0 1px var(--line-2); }
.cases .c-set, .cases .c-status, .cases .c-runs, .cases .c-time { width: 1%; white-space: nowrap; }
.cases td.c-request { width: 100%; max-width: 1px; }
.card-cases > * { min-width: 0; }
.one-line { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.steps > li { display: grid; gap: 4px; min-width: 0; }
.rerun .notice { padding: 8px 12px; }

/* fixes and versions (slice 15): the lists, a fix's report card, the cause's Fixes card, versions */
.fixes .c-verdict, .fixes .c-state, .fixes .c-rate, .fixes .c-time, .fixes .c-change { white-space: nowrap; }
.fixes .c-change { width: 11rem; } .fixes .c-verdict { width: 14rem; } .fixes .c-rate { width: 7rem; } .fixes .c-time { width: 8rem; }
.fixes .c-cause { min-width: 14rem; }
.fixes td.c-rate { font-family: var(--mono); font-size: 12px; }
.fixes-compact .c-change { width: auto; } .fixes-compact .c-state { width: 10rem; }
.why { display: block; margin-top: 3px; font-size: 12px; line-height: 1.45; color: var(--ink-2); max-width: 46ch; white-space: normal; }
.pad-list { padding: 4px 18px 16px; }
.card-fixes > * { min-width: 0; }
.card-fixes .fixes .c-change { width: auto; }
.rejected { margin-top: 6px; display: grid; gap: 4px; color: var(--ink-2); }
.change-block { padding: 10px 12px; border-radius: 8px; background: var(--surface-2); font-size: 13.5px; }
.change-block.added { box-shadow: inset 3px 0 0 var(--pass); background: color-mix(in srgb, var(--pass) 6%, var(--surface)); }
.change-block.removed { box-shadow: inset 3px 0 0 var(--ink-4); color: var(--ink-2); }
.tool-name { font-size: 13px; font-weight: 500; }
.tool-diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tool-diff > div { display: grid; gap: 4px; align-content: start; min-width: 0; }
.why-line { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.why-line p { max-width: 72ch; }
.tiles-fix .tile { box-shadow: inset 0 0 0 1px var(--line); }
.tiles-fix .tile-value { font-size: 24px; white-space: nowrap; }
.tile-bad { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fail) 35%, transparent) !important; }
.tile-bad .tile-value { color: var(--fail-ink); }
.sets th[scope="row"] { font-weight: 500; }
.sets .quiet-row { color: var(--ink-3); }
.sets td.strong { font-weight: 500; color: var(--ink); }
.measure-wide { grid-template-columns: 1fr auto; }
.broken-list, .example-cases { display: grid; gap: 8px; }
.example-cases li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 10px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.ex-runs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.arrow { color: var(--ink-3); }
.card-decision { box-shadow: var(--card), inset 3px 0 0 var(--ink); }
.card-decision textarea { max-width: 44rem; }
.view-part { display: grid; gap: 14px; }
.ver-now { align-items: stretch; }
.ver-big { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.ver-pct { font-size: 22px; }
.meter-rollout { height: 8px; }
.meter-rollout i { background: var(--info); opacity: 1; }
.rollout-controls { margin-top: 2px; }
button.seg-btn { border: 0; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
button.seg-btn:disabled { cursor: default; }
.made .c-added { min-width: 16rem; }
.made .sub { white-space: normal; }
.made .c-act { width: 1%; white-space: nowrap; text-align: right; }

/* ---------------------------------------------------------------- tables */

.table-wrap { position: relative; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { padding-top: 12px; padding-bottom: 8px; font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
tbody tr:last-child > * { border-bottom: none; }
tbody tr { transition: background-color .12s var(--ui); }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
tbody th { font-weight: 400; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num, td.mono { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.finding-list li > button, .finding-list li > .link-btn { justify-self: start; }
.card-head > .stack { width: 180px; min-width: 120px; flex: 0 1 180px; }
.table.compact th, .table.compact td { padding-top: 6px; padding-bottom: 6px; }
.sort { color: inherit; display: inline-flex; gap: 2px; }
.sort:hover { color: var(--ink); }
th.num .sort { justify-content: flex-end; }
.sort-mark { color: var(--ink-4); font-size: .9em; }
th[aria-sort="ascending"] .sort-mark, th[aria-sort="descending"] .sort-mark { color: var(--ink); }
tr.current { background: color-mix(in srgb, var(--violet) 5%, var(--surface)); }
.tasks .c-outcome { width: 1%; }
.tasks .c-task { min-width: 18rem; max-width: 34rem; }
.task-link { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
.task-link:hover { text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.task-link.mono { font-size: 12px; }
.sub { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34rem; }
.source { font-size: 12.5px; color: var(--ink); }
.source-none { color: var(--ink-3); }
.source-person { font-weight: 500; }
.c-signals { min-width: 10rem; }
.c-version, .c-time { white-space: nowrap; }
.versions .c-bar { width: 26%; min-width: 120px; }
.ver-cell { display: inline-flex; align-items: center; gap: 8px; }
.share { display: block; font-size: 11px; color: var(--ink-3); }
.tasks-cell { display: inline-flex; align-items: center; gap: 6px; min-width: 96px; color: var(--ink-2); }
.tasks-cell .stack { width: 64px; min-width: 64px; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pager-count { font-size: 12px; color: var(--ink-2); font-family: var(--mono); }
.pager-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------------------------------------------------------------- forms and buttons */

input[type="text"], input[type="search"], input[type="password"], input[type="email"], select, textarea {
  height: 34px; max-width: 100%; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px var(--shade); transition: box-shadow .15s var(--ui);
}
select { padding-right: 28px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 15px) 15px, calc(100% - 11px) 15px; background-size: 4px 4px; background-repeat: no-repeat; }
textarea { height: auto; padding: 8px 10px; width: 100%; resize: vertical; }
input:hover, select:hover, textarea:hover { box-shadow: 0 0 0 1px var(--ink-4), 0 1px 2px var(--shade); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--violet), 0 0 0 4px color-mix(in srgb, var(--violet) 18%, transparent); }
.filters, .inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 12px; color: var(--ink-2); }
.filters select { min-width: 9.5rem; }
.field-actions { flex-direction: row; align-items: center; gap: 10px; }
.hint { font-size: 12px; color: var(--ink-3); }
.form-error { color: var(--fail-ink); font-size: 13px; }
.form-error:empty { display: none; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); font: 500 13px/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: transform .4s var(--spring), background-color .2s var(--ui), color .2s var(--ui), box-shadow .2s var(--ui); }
.btn:hover { box-shadow: 0 0 0 1px var(--ink-4), 0 1px 2px var(--shade); }
.btn:active { transform: scale(.97); transition: transform 90ms ease-in; }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: inset 0 1px 0 #ffffff29, 0 1px 2px #0000002e; }
.btn-primary:hover { box-shadow: inset 0 1px 0 #ffffff29, 0 1px 2px #0000002e, 0 8px 20px -8px #00000059; }
.btn-ghost { background: var(--surface); }
.btn-quiet { background: transparent; box-shadow: none; color: var(--ink-2); padding: 0 10px; }
.btn-quiet:hover { color: var(--ink); background: var(--surface-2); box-shadow: none; }
.btn-small { height: 28px; padding: 0 12px; font-size: 12px; }
.btn-danger { color: var(--fail-ink); }
.btn-danger:not(:disabled):hover { box-shadow: 0 0 0 1px var(--fail), 0 1px 2px var(--shade); }
.btn:disabled, .btn.disabled { opacity: .45; cursor: default; pointer-events: none; }
.btn-label { min-width: 84px; padding: 0 16px 0 14px; }
.btn-label.pressed { background: var(--ink); color: var(--bg); box-shadow: inset 0 1px 0 #ffffff29, 0 1px 2px #0000002e; }
.btn-label.pressed::after { content: ""; width: 5px; height: 9px; margin: -3px 0 0 2px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.btn-useful, .btn-noise { min-width: 84px; }
.btn-useful.pressed, .btn-noise.pressed { background: var(--ink); color: var(--bg); }
.decide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.link-btn { border: 0; background: none; padding: 2px 0; color: var(--ink-2); font-size: 13px; text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }

/* ---------------------------------------------------------------- states */

.state { display: grid; gap: 8px; justify-items: start; padding: 22px 24px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--card); color: var(--ink-2); font-size: 13px; }
.state-title { color: var(--ink); font-size: 16px; font-weight: 500; letter-spacing: -.015em; }
.state-loading { background: transparent; box-shadow: none; padding: 8px 0; }
.state-loading .state-title { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.state-error { box-shadow: var(--card), inset 3px 0 0 var(--fail); }
.state-warn, .notice-warn { box-shadow: var(--card), inset 3px 0 0 var(--unknown); }
.notice { display: grid; gap: 6px; padding: 14px 18px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 13px; color: var(--ink-2); }
.notice h2, .notice .state-title { font-size: 14px; color: var(--ink); }
.notice-error { box-shadow: 0 0 0 1px var(--line), inset 3px 0 0 var(--fail); }
.notice.notice-warn { box-shadow: 0 0 0 1px var(--line), inset 3px 0 0 var(--unknown); }

/* not available: words, with the reason on hover and focus */
.na { position: relative; color: var(--ink-3); font-style: italic; border-bottom: 1px dotted var(--ink-4); cursor: help; white-space: nowrap; font-family: var(--sans); }
.na .tip { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.na:hover .tip, .na:focus .tip { clip: auto; width: max-content; max-width: min(20rem, 80vw); height: auto; overflow: visible; white-space: normal;
  left: 0; top: 100%; margin-top: 6px; z-index: 5; padding: 8px 10px; font-style: normal; font-size: 12px; text-align: left;
  background: #1b1b1b; color: #f4f4f6; border-radius: 10px; box-shadow: 0 14px 34px -10px #00000073; }
.num .na:hover .tip, .num .na:focus .tip { left: auto; right: 0; }

/* the dark toast */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; min-height: 44px; max-width: min(420px, calc(100vw - 40px)); padding: 10px 16px 10px 12px; border-radius: 14px;
  background: #1b1b1b; color: #f4f4f6; font-size: 13px; box-shadow: 0 14px 34px -10px #00000073, inset 0 1px 0 #ffffff1a; pointer-events: auto;
  animation: toast-in .6s var(--spring) both; }
.toast.out { opacity: 0; translate: 0 8px; transition: opacity .3s var(--ui), translate .3s var(--ui); }
.tk { position: relative; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--pass); }
.tk::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes toast-in { from { opacity: 0; translate: 0 14px; scale: .95; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* ---------------------------------------------------------------- session, timeline, grading (kept from before, restyled) */

.facts-card > summary { cursor: pointer; width: max-content; }
.facts-card > summary:hover { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 0 28px; margin: 0; }
.fact { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); min-width: 0; font-size: 13px; }
.fact dt { color: var(--ink-3); min-width: 8rem; }
.fact dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.fact .na { white-space: normal; }
.timeline { gap: 10px; }
.turn { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.turn-head { font-size: 13px; font-weight: 500; }
.entry { display: grid; gap: 6px; min-width: 0; padding: 10px 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.entry.role-user { box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--ink); }
.entry.is-steer { background: color-mix(in srgb, var(--violet) 5%, var(--surface)); box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--violet); }
.entry.role-toolResult { margin-left: 22px; background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.entry.has-finding { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--unknown) 45%, transparent), inset 3px 0 0 var(--unknown); }
.entry-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.entry-head .muted { font-size: 11.5px; }
.role { font-weight: 500; }
.card-timeline .entry + .entry { margin-top: 0; }
.text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--sans); font-size: 13px; line-height: 1.55; }
.text.code, .text.stderr { padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font: 400 12px/1.65 var(--mono); }
.text.stderr { box-shadow: inset 3px 0 0 var(--fail); }
.call, .result { display: grid; gap: 4px; }
.call-head { overflow-wrap: anywhere; font-size: 12.5px; }
.result-failed { padding-left: 10px; box-shadow: inset 2px 0 0 var(--fail); }
.result-cut { padding-left: 10px; box-shadow: inset 2px 0 0 var(--unknown); }
.finding-note { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--unknown) 9%, var(--surface)); font-size: 13px; }
details.copied { padding: 8px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); font-size: 13px; }
details.copied[open] { color: var(--ink); }
details summary { cursor: pointer; }
.cut-note { margin-top: 2px; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 11px; font-weight: 500; white-space: nowrap; vertical-align: 1px; }
.badge-useful, .badge-ok { color: var(--pass-ink); background: color-mix(in srgb, var(--pass) 14%, var(--surface)); }
.badge-noise { color: var(--violet-ink); background: color-mix(in srgb, var(--violet) 12%, var(--surface)); }
.badge-ungraded { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.badge-failed { color: var(--fail-ink); background: color-mix(in srgb, var(--fail) 12%, var(--surface)); }
.badge-cut, .badge-finding { color: var(--unknown-ink); background: color-mix(in srgb, var(--unknown) 13%, var(--surface)); }
.badge-steer { color: var(--violet-ink); background: color-mix(in srgb, var(--violet) 12%, var(--surface)); }
.badge-copied { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs { display: flex; gap: 2px; padding: 2px; width: max-content; max-width: 100%; border-radius: 999px; background: var(--surface-2); }
.tab { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; color: var(--ink-2); }
.tab.active { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line), 0 1px 2px var(--shade); }
.exports { font-size: 12px; color: var(--ink-3); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 12px; margin: 0; }
.card-value { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.progress { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.progress-text { font-variant-numeric: tabular-nums; font-size: 13px; }
progress { width: 12rem; max-width: 100%; height: 6px; accent-color: var(--ink); }
.save-status { min-height: 1.4em; color: var(--ink-3); font-size: 13px; }
.grade-card { display: grid; gap: 10px; padding: 20px 22px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--card); max-width: 52rem; }
.claim-big { font-size: 18px; line-height: 1.4; letter-spacing: -.015em; font-weight: 500; }
.text.evidence { padding-left: 12px; box-shadow: inset 2px 0 0 var(--ink-4); font-size: 14px; }
.grade-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.context .entry { font-size: 12.5px; }
.context-target { box-shadow: inset 0 0 0 2px var(--violet); }
.check-picker { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 10px 14px; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.check-picker legend { padding: 0 4px; font-size: 12px; color: var(--ink-2); }
.check-picker .check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.chip.chip-filter, p.chip { height: auto; min-height: 28px; padding: 4px 12px; white-space: normal; }
td.claim { min-width: 16rem; max-width: 34rem; }
.evidence-preview { margin-top: 2px; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }

/* settings and snippets */
.snippets { display: grid; gap: 0; }
.snippet-item { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.snippet-item > summary { font-weight: 500; }
.snippet-item h3 { font-size: 13px; }
.snippet-row { display: flex; gap: 8px; align-items: flex-start; }
.snippet { flex: 1; min-width: 0; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font: 400 12px/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.secret { font-size: 13px; }
.inline-form .form-error { flex-basis: 100%; }

/* login */
.login { display: grid; gap: 22px; justify-items: center; max-width: 380px; margin: 0 auto; padding: clamp(64px, 14vh, 140px) 0 64px; text-align: center; }
.login-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; letter-spacing: -.015em; }
.login-title { display: grid; font-size: 34px; line-height: 1.05; letter-spacing: -.045em; font-weight: 400; }
.login-card { width: 100%; padding: 20px; text-align: left; }
.login-form { display: grid; gap: 14px; }
.login-form input { width: 100%; height: 40px; }
.login-form .btn { height: 40px; width: 100%; }

/* ---------------------------------------------------------------- narrow screens */

@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panes, .grid-2, .card-diagnosis { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .side { position: sticky; top: 0; z-index: 30; height: auto; gap: 0; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
  .side-top { align-items: center; }
  .side-org { padding: 0 0 2px 41px; font-size: 10px; }
  .side-head { padding: 0; }
  .menu-btn { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
  .menu-btn:hover { background: var(--surface-2); }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 1.5px; border-radius: 2px; background: var(--ink); }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -5px; } .menu-icon::after { top: 5px; }
  .side-nav, .side-foot { display: none; }
  .side.open .side-nav { display: grid; padding: 12px 0 6px; }
  .side.open .side-foot { display: flex; padding: 10px 10px 4px; }
  main { padding: 18px 16px 64px; }
  .page-title { font-size: 22px; }
  .task-title { font-size: 19px; }
  .tiles { gap: 10px; }
  .tile { padding: 12px 14px 14px; }
  .tile-value { font-size: 24px; }
  .card-pad { padding: 14px 14px 16px; }
  .card-chart { padding: 14px 12px 12px; }
  .opinions, .holds { grid-template-columns: minmax(0, 1fr); }
  .task-line { grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; padding: 9px 10px; }
  .tl-meta { grid-column: 2; }
  .tl-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .fm-numbers { grid-template-columns: auto auto minmax(0, 1fr); }
  .fm-numbers .meter { grid-column: 1 / -1; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters select, .filters input { width: 100%; min-width: 0; }
  .snippet-row { flex-direction: column; }
  .fact { flex-direction: column; gap: 0; }
  .facts { grid-template-columns: 1fr; }
  .entry.role-toolResult { margin-left: 8px; }
  .toasts { left: 12px; right: 12px; bottom: 12px; justify-items: stretch; }
  /* the tasks table becomes a list of cards: outcome and time on top, then the request, then the rest */
  .tasks thead { display: none; }
  .tasks, .tasks tbody { display: block; }
  .tasks tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "o v t" "k k k" "s g g"; gap: 6px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tasks tr:last-child { border-bottom: 0; }
  .tasks td, .tasks th { display: block; padding: 0 !important; border: 0; min-width: 0; max-width: none; }
  .tasks .c-outcome { grid-area: o; width: auto; }
  .tasks .c-version { grid-area: v; align-self: center; color: var(--ink-3); }
  .tasks .c-time { grid-area: t; align-self: center; color: var(--ink-3); }
  .tasks .c-task { grid-area: k; }
  .tasks .c-source { grid-area: s; align-self: center; font-size: 12px; }
  .tasks .c-source .sub { display: inline; margin-left: 6px; }
  .tasks .c-signals { grid-area: g; justify-self: end; min-width: 0; }
  .tasks .c-signals .chips { justify-content: flex-end; }
  .pager { justify-content: center; }
  /* the causes table becomes cards too: the cause, then its layer and bars, then the numbers */
  .tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tiles-3 .tile { padding: 10px 12px 12px; }
  .tiles-3 .tile-value { font-size: 22px; }
  .tiles-3 .tile dt { font-size: 11.5px; line-height: 1.3; min-height: 2.6em; align-items: flex-start; }
  .tiles-3 .tile-note { font-size: 11px; }
  .causes thead { display: none; }
  .causes, .causes tbody { display: block; }
  .causes tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "c c c" "l b b" "n s t"; align-items: center; gap: 8px 12px; padding: 14px; border-bottom: 1px solid var(--line); }
  .causes tr:last-child { border-bottom: 0; }
  .causes td, .causes th { display: block; padding: 0 !important; border: 0; min-width: 0; max-width: none; width: auto; }
  .causes .c-cause { grid-area: c; }
  .causes .c-layer { grid-area: l; }
  .causes .c-bars { grid-area: b; justify-self: end; width: auto; }
  .causes .vbars { flex: none; }
  .causes .c-n { grid-area: n; text-align: left; }
  .causes .c-share { grid-area: s; text-align: left; color: var(--ink-2); }
  .causes .c-time { grid-area: t; color: var(--ink-3); }
  .causes .cell-unit { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-family: var(--sans); }
  .example-cause { padding-left: 12px; }
  /* the cases table becomes a list too: set, status and reruns, then the request, then the time */
  .cases thead { display: none; }
  .cases, .cases tbody { display: block; }
  .cases tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "s t r" "q q q" "w w w"; align-items: center; gap: 6px 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .cases tr:last-child { border-bottom: 0; }
  .cases td { display: block; padding: 0 !important; border: 0; min-width: 0; width: auto !important; max-width: none !important; }
  .cases .c-set { grid-area: s; } .cases .c-status { grid-area: t; } .cases .c-runs { grid-area: r; justify-self: end; }
  .cases .c-request { grid-area: q; } .cases .c-time { grid-area: w; color: var(--ink-3); }
  .cause-pick { max-width: none; }
  /* the fixes tables become lists: the cause, then the change and verdict, then the rates */
  .fixes thead { display: none; }
  .fixes, .fixes tbody { display: block; }
  .fixes tr { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "c c" "k v" "h o" "t s"; align-items: center; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .fixes tr:last-child { border-bottom: 0; }
  .fixes td { display: block; padding: 0 !important; border: 0; min-width: 0; max-width: none; width: auto !important; text-align: left; }
  .fixes .c-cause { grid-area: c; } .fixes .c-change { grid-area: k; } .fixes .c-verdict { grid-area: v; justify-self: end; }
  .fixes .c-rate { grid-area: h; } .fixes .c-ctrl { grid-area: o; justify-self: end; text-align: right; }
  .fixes .c-time { grid-area: t; justify-self: end; color: var(--ink-3); } .fixes .c-state { grid-area: s; }
  .fixes-compact tr { grid-template-areas: "k v" "h t" "s s"; }
  .fixes .c-time { justify-self: start; }
  .fixes .cell-unit { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-family: var(--sans); color: var(--ink-3); }
  .sets th, .sets td { padding: 8px 6px; }
  .sets thead th { white-space: normal; font-size: 10px; vertical-align: bottom; }
  .tool-diff { grid-template-columns: minmax(0, 1fr); }
  .tiles-fix .tile-value { font-size: 20px; }
  .made thead { display: none; }
  .made, .made tbody { display: block; }
  .made tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "v s" "a a" "t n" "x x"; align-items: center; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .made tr:last-child { border-bottom: 0; }
  .made td, .made th { display: block; padding: 0 !important; border: 0; min-width: 0 !important; width: auto !important; text-align: left; }
  .made .c-ver { grid-area: v; } .made .c-st { grid-area: s; justify-self: end; } .made .c-added { grid-area: a; }
  .made .c-time { grid-area: t; color: var(--ink-3); } .made .c-n { grid-area: n; justify-self: end; }
  .made .c-act { grid-area: x; } .made .c-act:empty { display: none; }
  .made .cell-unit { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-family: var(--sans); color: var(--ink-3); }
}
/* ---------------------------------------------------------------- upload box (slice 16) */

.card-upload { gap: 10px; }
.drop { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "i t" "i h"; align-items: center; gap: 2px 14px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); cursor: pointer; transition: background-color .15s var(--ui), border-color .15s var(--ui); }
.drop:hover, .drop.over { border-color: var(--violet); background: color-mix(in srgb, var(--lilac) 22%, var(--surface)); }
.drop:focus-within { outline: 2px solid var(--violet); outline-offset: 2px; }
.drop.busy { opacity: .6; cursor: progress; }
.drop-icon { grid-area: i; position: relative; width: 32px; height: 32px; border-radius: 9px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 1px 2px var(--shade); }
.drop-icon::before { content: ""; position: absolute; left: 15px; top: 9px; width: 2px; height: 14px; border-radius: 1px; background: var(--ink-2); }
.drop-icon::after { content: ""; position: absolute; left: 11.5px; top: 10px; width: 7px; height: 7px; border: solid var(--ink-2); border-width: 2px 0 0 2px; transform: rotate(45deg); }
.drop-text { grid-area: t; font-size: 13px; color: var(--ink-2); }
.drop-text b { font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.drop-hint { grid-area: h; font-size: 12px; color: var(--ink-3); }
.upload-lines { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.upload-lines:empty { display: none; }
.upload-line { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: start; gap: 10px; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.upload-line .chip { justify-self: start; height: 22px; }
.upload-text { padding-top: 1px; }
.upload-after:empty { display: none; }
/* ---------------------------------------------------------------- Connect (slice 17) */

.step-n { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 10.5px; letter-spacing: 0; vertical-align: 1px; }
.harness-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.step-body { display: grid; gap: 10px; min-width: 0; }
.keep > * + * { margin-top: 10px; }
.keep > summary { width: max-content; max-width: 100%; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.keep > summary:hover { color: var(--ink); }
.snippet-tall { max-height: 320px; overflow: auto; }
.arrival { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- slice 18: people, logins, activity */

/* login and the invite page */
.login-lede { font-size: 13.5px; color: var(--ink-2); text-align: left; }
.login .login-lede { text-align: center; max-width: 34ch; }
.login-card .login-lede { text-align: left; margin-bottom: -2px; }
.login-below { display: flex; justify-content: center; min-height: 22px; margin-top: -8px; font-size: 13px; }
.login-links { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; }
.login-switch { color: var(--ink-3); text-decoration-color: var(--line-2); }
.login-switch:hover { color: var(--ink); }
.dot-sep { color: var(--ink-4); }
.login-form .hint { line-height: 1.4; }
.rule.ok { color: var(--pass-ink); }
.rule.ok::before { content: ""; display: inline-block; width: 4px; height: 8px; margin: 0 7px 1px 2px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
/* the address beside a password field, there for password managers only */
input.visually-hidden { width: 1px !important; height: 1px !important; padding: 0 !important; box-shadow: none !important; }
.who-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0 0 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.who-box dt { color: var(--ink-3); }
.who-plain { background: none; padding: 0; max-width: 34rem; gap: 8px 24px; }
.who-box dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

/* the sidebar's foot: organisation, person and role, then Account and Log out */
.side-foot { flex-direction: column; align-items: stretch; gap: 8px; }
.side-foot .who { display: grid; gap: 1px; min-width: 0; }
.who-org { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-name { font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-role { font-size: 12px; color: var(--ink-3); }
.foot-links { display: flex; align-items: center; gap: 14px; }
.side-link { padding: 4px 0; color: var(--ink-2); font-size: 12px; }
.side-link:hover, .side-link.on { color: var(--ink); }
.side-link.on { font-weight: 500; }

/* forms in cards */
.stack-form { display: grid; gap: 12px; max-width: 34rem; }
.stack-form input[type="password"], .stack-form input[type="email"], .stack-form input[type="text"] { width: 100%; }
.add-person { max-width: 44rem; }
.form-grid { gap: 12px; }
.form-grid input { width: 100%; }
.scope { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; }
.scope legend { padding: 0 0 5px; font-size: 12px; color: var(--ink-2); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); cursor: pointer; }
.check input { margin: 0; accent-color: var(--ink); }
.check-list { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 4px 0 0 24px; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.page-actions .quiet-line { margin: 0; }

/* people */
.people .c-person { min-width: 13rem; }
.person-name { font-weight: 500; color: var(--ink); }
.people .marks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.people .c-projects { max-width: 16rem; color: var(--ink-2); }
.people tr.current > * { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.c-act { text-align: right; white-space: nowrap; }
.m-label { display: none; }
.card-edit { gap: 14px; }
.edit-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.edit-head h2 { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.edit-head .quiet { color: var(--ink-3); font-weight: 400; font-size: 13px; }
.edit-part { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.edit-actions { padding-top: 12px; border-top: 1px solid var(--line); }
.snippet-wrap { word-break: break-all; }
.invite-link { font-size: 12.5px; }
.notice > .link-btn, .card-factor > .link-btn { justify-self: start; }

/* the account and the second factor */
.steps { display: grid; gap: 16px; margin: 0; padding-left: 20px; }
.steps > li { display: grid; gap: 8px; padding-left: 4px; }
.steps > li::marker { color: var(--ink-3); font-weight: 500; }
.step-title { font-weight: 500; color: var(--ink); }
.secret-key { font-size: 15px; letter-spacing: .06em; }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 6px 14px; margin: 0; padding: 12px 14px 12px 36px;
  border-radius: 10px; background: var(--surface-2); font: 400 13.5px/1.6 var(--mono); color: var(--ink); }
.recovery-codes li::marker { color: var(--ink-3); font-size: 11px; }
.forced { display: grid; gap: 16px; }
.view-narrow { max-width: 760px; margin: 0 auto; padding-top: clamp(16px, 6vh, 64px); }
.forced-out { text-align: center; }
.decided-by { color: var(--ink-2); }
.card-decision .decided-by { font-size: 13px; }

/* activity */
.card-activity { gap: 0; padding-top: 6px; padding-bottom: 10px; }
.activity-list { list-style: none; margin: 0; padding: 0; }
.act { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.act:last-child { border-bottom: 0; }
.act-who { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--surface-2); font-size: 11px; font-weight: 500; color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); }
.act-none { background: color-mix(in srgb, var(--fail) 10%, var(--surface)); color: var(--fail-ink); }
.act-body { display: grid; gap: 2px; min-width: 0; padding-top: 4px; }
.act-text { font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }
.act-text a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.act-time { padding-top: 6px; color: var(--ink-3); white-space: nowrap; }
.act-login_failed .act-text { color: var(--fail-ink); }
.more { display: flex; justify-content: center; padding: 12px 0 2px; }
.filter-clear { align-self: center; font-size: 13px; margin: 0; }

@media (max-width: 760px) {
  .side.open .side-foot { flex-direction: column; align-items: stretch; }
  .act { grid-template-columns: 28px minmax(0, 1fr); }
  .act-time { grid-column: 2; padding-top: 0; }
  .people thead { display: none; }
  .people tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .people th, .people td { display: block; padding: 0; border: 0; }
  .people .c-person { grid-column: 1; min-width: 0; }
  .people .c-act { grid-column: 2; grid-row: 1; }
  .people td:not(.c-act) { grid-column: 1 / -1; font-size: 12.5px; }
  .people .m-label { display: inline; font-family: var(--sans); color: var(--ink-3); }
  .page-actions .btn { width: 100%; }
}

/* --- slice 20: the loop run on its own (Settings, the Overview line, the automatic mark) */
.chip-auto { height: 20px; padding: 0 8px; color: var(--violet-ink); background: color-mix(in srgb, var(--violet) 11%, var(--surface)); font-size: 11.5px; vertical-align: middle; }
.sub .chip-auto, .small .chip-auto { margin-right: 6px; }
.auto-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: -4px 0 18px; font-size: 13px; color: var(--ink-2); }
.auto-line .auto-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--ink-4); }
.auto-line.auto-on .auto-dot { background: var(--violet); }
.auto-line.auto-busy .auto-dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 18%, transparent); animation: auto-pulse 1.6s var(--ui) infinite; }
.auto-line .auto-text { color: var(--ink); }
.auto-line .auto-sep { color: var(--ink-4); }
@keyframes auto-pulse { 50% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--violet) 10%, transparent); } }
.auto-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 16px 28px; align-items: start; margin-top: 14px; }
.auto-choices { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.auto-choice { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .15s var(--ui), background-color .15s var(--ui); }
.auto-choice:hover { box-shadow: 0 0 0 1px var(--ink-4); }
.auto-choice:has(input:checked) { background: var(--surface-2); box-shadow: 0 0 0 1px var(--ink-3); }
.auto-choice:has(input:disabled) { cursor: default; }
.auto-choice:has(input:disabled:not(:checked)) { opacity: .62; }
.auto-choice input { margin: 2px 0 0; accent-color: var(--ink); }
.auto-choice-text { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--ink-2); }
.auto-choice-label { font-weight: 500; color: var(--ink); font-size: 14px; }
.auto-cost { font-size: 12px; color: var(--ink-3); }
.auto-budget { padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 13px; color: var(--ink-2); display: grid; gap: 6px; }
.auto-budget-title { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.form-status { font-size: 13px; color: var(--pass-ink); }
.form-status:empty { display: none; }
.card-auto .form-actions + p, .card-auto form > p.small { margin-top: 12px; }
@media (max-width: 760px) {
  .auto-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .auto-line.auto-busy .auto-dot { animation: none; }
}
