/* Bark OS components for the rebuilt pages (2026-10-16). Taken from the design mock (docs/mockups/platform/css/platform.css on
   branch website-redesign): panels, controls, tables, pills, dialogs, kanban. Loaded AFTER bark.css by pages that were rebuilt
   to the mock; the pages not yet rebuilt keep using bark-lists.css instead. Global input styles are on purpose. */
:root {
  --charcoal: #2A2829;
  --charcoal-2: #373435;
  --charcoal-3: #4C4849;
  --stone: #E0E0DB;
  --stone-2: #CFCFC7;
  --paper: #F7F6F2;
  --paper-2: #EDECE6;
  --ink: #1F1D1E;
  --muted: #5F5B57;
  --on-dark: #F2F1EC;
  --on-dark-muted: #B9B5AF;

  --brass: #A07F2E;
  --brass-ink: #6B5313;
  --brass-tint: #EFE4C2;

  --accept: #2F6B4F;   --accept-tint: #DCEBE3;
  --kennel: #6E5413;   --kennel-tint: #F0E4BF;
  --reject: #A33A32;   --reject-tint: #F3DAD6;
  --report: #3E5C7A;   --report-tint: #DBE4EE;

  --s1: #2A2829; --s2: #A07F2E; --s3: #3E5C7A; --s4: #5F7A4B; --s5: #A33A32;

  --serif: 'Libre Caslon Display', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter Tight', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --rail: 232px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
body { font: 14px/1.45 var(--sans); color: var(--ink); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
body { background: var(--stone); }
.content { padding: 24px 32px 56px; display: grid; gap: 20px; align-content: start; }
@media (max-width: 899px) { .content { padding-left: 16px; padding-right: 16px; } }
.toast { z-index: 100; }
[hidden] { display: none !important; }

/* ---------- panels ---------- */
.panel { background: var(--paper); border: 1px solid var(--stone-2); border-radius: 10px; min-width: 0; }
.panel > .head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--stone-2); flex-wrap: wrap; }
.panel > .head h2 { font: 400 24px/1.2 var(--serif); }
.panel > .head .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel > .body { padding: 18px; }
.panel > .body.flush { padding: 0; }
.panel .sub { color: var(--muted); }
.cols { display: grid; gap: 20px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.cols > * { grid-column: span 12; min-width: 0; }
@media (min-width: 1100px) {
  .c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } .c-9 { grid-column: span 9; }
}
.stack { display: grid; gap: 14px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; }
.kv-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px; }
.kv-3 > div > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.kv-3 > div > b { font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 8px;
  background: var(--paper); color: var(--ink); border: 1px solid var(--stone-2); font-weight: 500; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 120ms var(--ease), border-color 120ms var(--ease), transform 120ms var(--ease);
}
.btn:hover { background: var(--paper-2); border-color: #b7b7ae; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--charcoal); color: var(--on-dark); border-color: var(--charcoal); }
.btn.primary:hover { background: var(--charcoal-2); }
.btn.accept { background: var(--accept); color: #fff; border-color: var(--accept); }
.btn.accept:hover { background: #285a42; }
.btn.accept.soft { background: var(--paper); color: var(--ink); border-color: var(--stone-2); }
.btn.accept.soft:hover { background: var(--paper-2); border-color: #b7b7ae; }
.btn.danger { background: var(--paper); color: var(--reject); border-color: #d9aaa5; }
.btn.danger:hover { background: var(--reject-tint); }
.btn.report { background: var(--paper); color: var(--report); border-color: #aebfd2; }
.btn.report:hover { background: var(--report-tint); }
.band .btn { background: var(--charcoal-2); color: var(--on-dark); border-color: var(--charcoal-3); }
.band .btn:hover { background: var(--charcoal-3); }
.band .btn.primary { background: var(--paper); color: var(--charcoal); border-color: var(--paper); }
.band .btn.primary:hover { background: #fff; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; }
.btn.icon { width: 34px; padding: 0; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: inherit; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], select, textarea {
  height: 34px; width: 100%; background: #fff; border: 1px solid var(--stone-2); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; color: var(--ink);
}
textarea { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #b7b7ae; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
input[type=checkbox], input[type=radio] { accent-color: var(--charcoal); width: 16px; height: 16px; margin: 0; }
label.field { display: grid; gap: 6px; font-weight: 500; font-size: 13px; }
label.field .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--stone-2); }
.toolbar > * { flex: 0 0 auto; }
.toolbar input[type=search], .toolbar input[type=text] { width: 240px; }
.toolbar select { width: auto; min-width: 140px; }
.toolbar .grow { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--stone-2); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { height: 32px; padding: 0 12px; background: none; border: 0; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--stone-2); }
.seg button[aria-pressed="true"] { background: var(--charcoal); color: var(--on-dark); }
.seg button:hover:not([aria-pressed="true"]) { background: var(--paper-2); }

.tabs { display: flex; gap: 4px; padding: 0 18px; border-bottom: 1px solid var(--stone-2); overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 12px 11px; cursor: pointer; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brass); }
.tabs button .chip { margin-left: 6px; }
.tabpanel[hidden] { display: none; }

kbd.key {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; background: #fff; border: 1px solid var(--stone-2);
  border-bottom-width: 2px; font: 600 12px var(--sans); color: var(--ink);
}

/* ---------- chips ---------- */
.chip { font-family: var(--sans); display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--paper-2); color: var(--muted); border: 1px solid var(--stone-2); }
.chip.live { background: var(--accept-tint); color: var(--accept); border-color: #b9d3c5; }
.chip.preview { background: var(--report-tint); color: var(--report); border-color: #b3c4d6; }
.chip.proposal { background: var(--brass-tint); color: var(--brass-ink); border-color: #d6c383; }
.band .chip.live { background: #2f4a3c; color: #bfe3cf; border-color: #3c5d4b; }
.band .chip.preview { background: #33475b; color: #c5d8ec; border-color: #46607a; }
.band .chip.proposal { background: #4a4126; color: #ecdca5; border-color: #6a5c32; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.review { background: var(--paper-2); color: var(--muted); border: 1px solid var(--stone-2); }
.pill.accepted { background: var(--accept-tint); color: var(--accept); }
.pill.kennel { background: var(--kennel-tint); color: var(--kennel); }
.pill.rejected { background: var(--reject-tint); color: var(--reject); }
.pill.reported { background: var(--report-tint); color: var(--report); }
.pill.ok { background: var(--accept-tint); color: var(--accept); }
.pill.warn { background: var(--kennel-tint); color: var(--kennel); }
.pill.bad { background: var(--reject-tint); color: var(--reject); }
.pill.info { background: var(--report-tint); color: var(--report); }
.pill.neutral { background: var(--paper-2); color: var(--muted); border: 1px solid var(--stone-2); }
.fit { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--accept); white-space: nowrap; }
.fit.no { color: var(--muted); font-weight: 500; }
.fit svg { flex: none; }

/* ---------- tables ---------- */
.tblwrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); background: var(--paper-2); padding: 9px 14px; border-bottom: 1px solid var(--stone-2); white-space: nowrap; position: sticky; top: 0; }
.tbl th.num { text-align: right; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid #e4e3dc; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background 100ms var(--ease); }
.tbl tbody tr:hover { background: #f1f0ea; }
.tbl tr.click { cursor: pointer; }
.tbl td .main { font-weight: 600; }
.tbl td .sub { color: var(--muted); font-size: 12px; }
.tbl .pad-l { padding-left: 18px; } .tbl .pad-r { padding-right: 18px; }
.pager { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--stone-2); color: var(--muted); font-size: 13px; }
.pager .spacer { flex: 1; }
.bar { display: inline-block; height: 8px; border-radius: 4px; background: var(--charcoal); vertical-align: middle; }
.bar.b0 { background: var(--stone-2); }
.bar.b2 { background: var(--brass); } .bar.b3 { background: var(--report); } .bar.b4 { background: var(--s4); } .bar.b5 { background: var(--reject); }
.empty { padding: 40px 18px; text-align: center; color: var(--muted); }
.empty h3 { font: 400 20px var(--serif); color: var(--ink); margin-bottom: 6px; }

/* ---------- key/legend rows, lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 12px 18px; border-bottom: 1px solid #e4e3dc; display: flex; gap: 12px; align-items: baseline; }
.list > li:last-child { border-bottom: 0; }
.list .when { color: var(--muted); font-size: 12px; min-width: 92px; flex: none; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 12px 18px; border-bottom: 1px solid #e4e3dc; }
.timeline > li:last-child { border-bottom: 0; }
.timeline .when { color: var(--muted); font-size: 12px; padding-top: 2px; }
.callout { background: var(--paper-2); border: 1px solid var(--stone-2); border-radius: 8px; padding: 12px 14px; color: var(--muted); font-size: 13px; }
.callout b { color: var(--ink); }
.callout.warn { background: var(--kennel-tint); border-color: #dac98f; color: #5b4510; }
.callout.proposal { background: var(--brass-tint); border-color: #d6c383; color: var(--brass-ink); }
.callout.info { background: var(--report-tint); border-color: #b3c4d6; color: #2c4560; }

/* ---------- dialog / toast ---------- */
dialog { border: 0; border-radius: 12px; padding: 0; background: var(--paper); color: var(--ink); width: min(560px, calc(100vw - 32px)); box-shadow: 0 24px 60px -12px rgba(31, 29, 30, 0.45), 0 4px 12px rgba(31, 29, 30, 0.18); }
dialog::backdrop { background: rgba(42, 40, 41, 0.55); }
dialog form { display: grid; }
dialog .dhead { padding: 18px 20px 12px; }
dialog .dhead h2 { font: 400 24px/1.2 var(--serif); }
dialog .dhead p { color: var(--muted); margin-top: 4px; }
dialog .dbody { padding: 4px 20px 18px; display: grid; gap: 14px; }
dialog .dfoot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--stone-2); background: var(--paper-2); border-radius: 0 0 12px 12px; }
dialog.wide { width: min(720px, calc(100vw - 32px)); }
.radios { display: grid; gap: 8px; }
.radios label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--stone-2); border-radius: 8px; cursor: pointer; background: #fff; }
.radios label:hover { border-color: #b7b7ae; }
.radios label:has(input:checked) { border-color: var(--charcoal); background: var(--paper-2); }
.radios input { margin-top: 2px; }
.radios .t { font-weight: 600; }
.radios .d { color: var(--muted); font-size: 12.5px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--charcoal); color: var(--on-dark); padding: 10px 16px; border-radius: 8px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); z-index: 100; box-shadow: 0 8px 24px rgba(31, 29, 30, 0.35); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.spotlight { width: min(620px, calc(100vw - 32px)); margin-top: 12vh; }
.spotlight input { height: 48px; border: 0; border-bottom: 1px solid var(--stone-2); border-radius: 12px 12px 0 0; font-size: 16px; padding: 0 18px; background: var(--paper); }
.spotlight input:focus-visible { outline: none; border-color: var(--brass); }
.spotlight .res { max-height: 52vh; overflow: auto; padding: 8px; }
.spotlight .res h3 { font: 600 11px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 6px; }
.spotlight .res a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; text-decoration: none; }
.spotlight .res a[aria-selected="true"], .spotlight .res a:hover { background: var(--paper-2); }
.spotlight .res a .sub { color: var(--muted); font-size: 12px; margin-left: auto; }
.spotlight .hint { padding: 10px 18px; border-top: 1px solid var(--stone-2); color: var(--muted); font-size: 12px; display: flex; gap: 14px; }

/* ---------- charts ---------- */
.chart text { font: 500 11px var(--sans); fill: var(--muted); }
.chart .axis { stroke: var(--stone-2); }
.chart .grid { stroke: #e4e3dc; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: 272px; gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: var(--paper-2); border: 1px solid var(--stone-2); border-radius: 10px; min-width: 0; }
.col > h3 { padding: 12px 14px 8px; font: 600 13px var(--sans); display: flex; gap: 8px; align-items: baseline; }
.col > h3 .n { color: var(--muted); font-weight: 500; }
.col > .sum { padding: 0 14px 10px; color: var(--muted); font-size: 12px; }
.col .cards { padding: 0 10px 10px; display: grid; gap: 8px; }
.card { background: var(--paper); border: 1px solid var(--stone-2); border-radius: 8px; padding: 10px 12px; }
.card a.t { font-weight: 600; text-decoration: none; }
.card a.t:hover { text-decoration: underline; }
.card .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.card .row { display: flex; gap: 6px; margin-top: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- review ---------- */
.review-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .review-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.deal-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--stone-2); }
.deal-head h2 { font: 400 28px/1.15 var(--serif); }
.deal-head .meta { color: var(--muted); margin-top: 4px; display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); border-bottom: 1px solid var(--stone-2); }
.figures > div { padding: 14px 20px; border-right: 1px solid var(--stone-2); }
.figures > div:last-child { border-right: 0; }
.figures span { display: block; color: var(--muted); font-size: 12px; }
.figures b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.prose { max-width: 70ch; }
.prose p + p { margin-top: 10px; }
.decide { position: sticky; top: 16px; display: grid; gap: 10px; }
.decide .grp { padding: 14px 16px; display: grid; gap: 8px; }
.decide .grp h3 { font: 600 12px var(--sans); color: var(--muted); margin-bottom: 2px; }
.decide .btn { justify-content: space-between; width: 100%; height: 38px; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.reasons .btn { height: 32px; font-size: 12px; justify-content: flex-start; padding: 0 8px; gap: 6px; }
.progress { color: var(--muted); font-size: 12px; }

/* ---------- misc ---------- */
.avatar { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--charcoal); color: var(--on-dark); font-size: 11px; font-weight: 600; flex: none; }
.avatar.lg { width: 34px; height: 34px; font-size: 13px; }
.who { display: inline-flex; align-items: center; gap: 8px; }
pre.json { margin: 0; padding: 14px 16px; background: #fff; border: 1px solid var(--stone-2); border-radius: 8px; overflow: auto; font: 12px/1.5 ui-monospace, 'SF Mono', Menlo, monospace; max-height: 320px; }
.slide { aspect-ratio: 16 / 9; background: var(--charcoal); color: var(--on-dark); border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--charcoal-3); }
.slide.light { background: var(--stone); color: var(--ink); border-color: var(--stone-2); }
.slide h4 { font: 400 20px/1.15 var(--serif); }
.slide p { font-size: 11.5px; opacity: 0.85; }
.slide .tag { font-size: 10px; opacity: 0.7; }
.notfound { padding: 60px 20px; text-align: center; }
.notfound h2 { font: 400 28px var(--serif); margin-bottom: 8px; }

/* ---------- review: decision rail, fit meters, skim, completion ---------- */
.decide .why { font-size: 12px; color: var(--muted); margin: -2px 0 2px; }
.decide .why b { color: var(--reject); font-weight: 600; }
.reasons-more { display: grid; gap: 10px; margin-top: 4px; }
.reasons-more[hidden] { display: none; }
.reasons-more h4 { font: 600 11px var(--sans); color: var(--muted); margin-bottom: 6px; }
.reasons .btn:disabled { opacity: 0.35; }
.fitlist { display: grid; gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.fitrow { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; }
.fitrow .lbl { font-weight: 500; }
.fitrow .val { font-variant-numeric: tabular-nums; font-size: 13px; text-align: right; white-space: nowrap; }
.fitrow .val.bad { color: var(--reject); font-weight: 600; } .fitrow .val.ok { color: var(--accept); font-weight: 600; }
.meter { position: relative; height: 10px; background: var(--paper-2); border: 1px solid var(--stone-2); border-radius: 6px; }
.meter > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--accept); }
.meter.bad > i { background: var(--reject); }
.meter > u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--charcoal); text-decoration: none; }
.fitnote { grid-column: 2 / 4; font-size: 12px; color: var(--muted); margin-top: -2px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accept-tint); color: var(--accept); }
.tag.bad { background: var(--reject-tint); color: var(--reject); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 8px; background: var(--reject-tint); color: #7a2a24; font-size: 13px; }
.alert svg { flex: none; margin-top: 1px; }
.alert button { margin-left: auto; }
.skim { list-style: none; margin: 0; padding: 0; }
.skim h3 { font: 600 12px var(--sans); color: var(--muted); padding: 10px 18px; background: var(--paper-2); border-bottom: 1px solid var(--stone-2); }
.skim li.row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 4px 18px; align-items: center; padding: 11px 18px; border-bottom: 1px solid #e4e3dc; cursor: pointer; position: relative; }
.skim li.row[aria-selected="true"] { background: var(--brass-tint); outline: 2px solid var(--brass); outline-offset: -2px; }
.skim li.row .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skim li.row .s { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skim li.row .fit { justify-self: end; }
.modebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.modebar .order { color: var(--muted); font-size: 12.5px; }
.done { display: grid; justify-items: center; gap: 6px; padding: 36px 20px 40px; text-align: center; }
.done svg.scene { width: min(360px, 100%); height: auto; margin-bottom: 6px; }
.done h3 { font: 400 28px/1.15 var(--serif); color: var(--ink); text-wrap: balance; }
.done p { color: var(--muted); max-width: 52ch; }
.done .recap { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 10px 0 4px; }
.mbar, .mbar-space { display: none; }
@keyframes tail { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }
.provenance { display: flex; align-items: stretch; gap: 0; margin: 0 18px; padding: 18px 0 0; flex-wrap: wrap; }
.pv { flex: 1 1 150px; min-width: 0; padding: 10px 14px; background: var(--paper-2); border: 1px solid var(--stone-2); border-radius: 8px; }
.pv span { display: block; color: var(--muted); font-size: 12px; }
.pv b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv small { color: var(--muted); font-size: 12px; }
.pvarrow { align-self: center; color: var(--muted); padding: 0 6px; display: inline-flex; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu .pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--paper); border: 1px solid var(--stone-2); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; min-width: 190px; box-shadow: 0 12px 30px -8px rgba(31, 29, 30, 0.3); }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.tbl th[aria-sort="ascending"] button::after { content: '↑'; } .tbl th[aria-sort="descending"] button::after { content: '↓'; }
.tbl td .main.trunc { display: block; max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl td .why { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 1px; }
.pill.check { background: var(--reject-tint); color: var(--reject); margin-left: 6px; }
.funnel { display: grid; gap: 18px; }
.funnel .lead { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 6px; }
.funnel .lead b { font-weight: 600; }
.seg-bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--stone-2); gap: 2px; }
.seg-bar > i { display: block; min-width: 3px; }
.seg-key { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 16px; margin-top: 10px; }
.seg-key div { font-size: 13px; } .seg-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.seg-key b { font-variant-numeric: tabular-nums; font-weight: 600; } .seg-key span { color: var(--muted); font-size: 12px; display: block; margin-left: 16px; }
.backlog { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 18px; }
.backlog p { font-size: 15px; }
.keys { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; align-items: center; }
.keys h3 { grid-column: 1 / -1; font: 600 12px var(--sans); color: var(--muted); margin-top: 6px; }



@media (max-width: 899px) { .tbl th, .tbl td { padding: 9px 10px; } .figures > div { border-right: 0; border-bottom: 1px solid var(--stone-2); } .fitrow { grid-template-columns: minmax(0, 1fr) auto; } .fitrow .meter, .fitnote { grid-column: 1 / -1; } }
@media (pointer: coarse), (max-width: 899px) { .btn, .seg button, input[type=text], input[type=search], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], select { min-height: 44px; } .btn.sm { min-height: 40px; } .reasons .btn { height: 44px; } }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes grow { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes up { from { transform: scaleY(0); } }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
@keyframes leave { 0% { opacity: 1; transform: none; box-shadow: 0 0 0 0 var(--tint); } 25% { box-shadow: 0 0 0 2px var(--tint); } 100% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.985); box-shadow: 0 0 0 2px var(--tint); } }
dialog[open] { animation: dlg-in 240ms var(--ease); }
dialog[open]::backdrop { animation: fade 240ms var(--ease); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; } .ghost { display: none; } }
