/* AMD Reviews — design tokens + components. Light only. */
:root {
  color-scheme: light;
  --ground: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --border: #e3e8ed;
  --border-strong: #cdd5dd;
  --navy: #0d2f4c;          /* brand fill + headings */
  --navy-2: #163f63;
  --navy-tint: #e9eff5;
  --navy-tint-2: #d6e1ec;
  --green: #99cc00;         /* brand FILL only, never text */
  --green-tint: #eef7d6;
  --green-ink: #4f7a00;     /* text-safe green (AA on white) */
  --green-deep: #2f6b00;
  --ink: #16212b;
  --ink-2: #48494a;         /* brand gray, body text */
  --ink-3: #6b7480;
  --ink-4: #98a2ad;
  --star-1: #b3261e; --star-2: #e07b39; --star-3: #8a8f98; --star-4: #7fb531; --star-5: #2f6b00;
  --danger: #b3261e; --danger-tint: #fbe9e7;
  --warn: #9a6a00;  --warn-tint: #fff4d6; --warn-fill: #e0a100;
  --ok: #2f6b00;    --ok-tint: #e8f3d9;
  --info: #1b5e9e;  --info-tint: #e6f0fa;
  --c1:#2a78d6; --c2:#eb6834; --c3:#1baf7a; --c4:#eda100; --c5:#e87ba4; --c6:#008300; --c7:#4a3aa7;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --shadow: 0 1px 2px rgba(13,47,76,.05), 0 6px 20px -8px rgba(13,47,76,.12);
  --nav-w: 232px; --top-h: 60px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 22px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
p { margin: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.xs { font-size: 11px; }
.hidden { display: none !important; }
.sr { position: absolute; left: -9999px; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: 100vh; }
.nav { position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 16px 12px; gap: 4px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 10px 18px; }
.brand-logo { width: 178px; height: auto; display: block; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--navy); display: grid; place-items: center; }
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-weight: 800; color: var(--navy); font-size: 15px; letter-spacing: -0.01em; line-height: 1.1; }
.brand-sub { font-size: 11px; color: var(--ink-3); }
.nav-group { font-size: 11px; color: var(--ink-4); font-weight: 600; padding: 14px 10px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { background: var(--navy-tint); color: var(--navy); font-weight: 700; }
.nav a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a .badge { margin-left: auto; }
.nav-foot { margin-top: auto; padding: 10px; font-size: 11px; color: var(--ink-4); border-top: 1px solid var(--border); }
.nav-foot b { color: var(--ink-3); }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--top-h); background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 28px; }
.topbar h1 { font-size: 18px; margin-right: 6px; }
.topbar .spacer { flex: 1; }
.filters { display: flex; gap: 8px; align-items: center; }
.content { padding: 24px 28px 48px; max-width: 1480px; }
.sample-banner { display: flex; align-items: center; gap: 10px; background: var(--warn-tint); color: var(--warn); border: 1px solid #f0dca0; border-radius: var(--r-sm); padding: 8px 12px; margin-bottom: 18px; font-size: 12px; font-weight: 600; }
.sample-banner .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn-fill); }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13px; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.accent { background: var(--green); border-color: var(--green); color: var(--navy); }
.btn.accent:hover { filter: brightness(.96); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--navy-tint); }
.btn.danger { color: var(--danger); border-color: #f0c2bd; }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.select, .input { height: 34px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); font-size: 13px; }
.select { padding-right: 28px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7480' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input.search { min-width: 240px; padding-left: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7480' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 10px center; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.seg button { height: 32px; padding: 0 12px; border: 0; background: transparent; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--navy-tint); color: var(--navy); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.toggle { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); border: 0; flex: none; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle.on { background: var(--green-deep); }
.toggle.on::after { transform: translateX(16px); }
textarea.input { height: auto; min-height: 96px; padding: 10px; width: 100%; resize: vertical; line-height: 1.5; }

/* ---------- Cards / layout ---------- */
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.cols-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.cols-6 { grid-template-columns: repeat(6, minmax(0,1fr)); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2 { flex: 1; }
.card-head .sub { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.card.flush .card-head { padding: 16px 20px 0; }
.section-gap { margin-top: 20px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }

/* Hero month band (the one bold element) */
.hero { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 22px 26px; display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr 1.2fr; gap: 20px; align-items: stretch; }
.hero .lab { font-size: 12px; color: #b9c9d9; font-weight: 600; }
.hero .big { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 38px; font-weight: 700; line-height: 1.05; margin-top: 4px; letter-spacing: -0.02em; }
.hero .big small { font-size: 16px; color: #b9c9d9; font-weight: 600; margin-left: 4px; }
.hero .delta { margin-top: 6px; font-size: 12px; font-weight: 600; }
.hero .delta.up { color: #c9ea6a; } .hero .delta.down { color: #ffb3a7; } .hero .delta.flat { color: #b9c9d9; }
.hero .cell + .cell { border-left: 1px solid rgba(255,255,255,.12); padding-left: 20px; }
.hero .title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.hero .title-sub { font-size: 12.5px; color: #b9c9d9; margin-top: 4px; max-width: 30ch; }
.hero .actions { margin-top: 14px; display: flex; gap: 8px; }
.hero .btn { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; }
.hero .btn.accent { background: var(--green); border-color: var(--green); color: var(--navy); }

/* KPI tile */
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .lab { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.kpi .val { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; line-height: 1.1; }
.kpi .val small { font-size: 13px; color: var(--ink-3); font-weight: 600; font-family: var(--font); }
.kpi .delta { font-size: 12px; font-weight: 600; }
.delta.up { color: var(--ok); } .delta.down { color: var(--danger); } .delta.flat { color: var(--ink-3); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-tint); color: var(--ok); }
.pill.warn { background: var(--warn-tint); color: var(--warn); }
.pill.danger { background: var(--danger-tint); color: var(--danger); }
.pill.info { background: var(--info-tint); color: var(--info); }
.pill.neutral { background: #eef1f4; color: var(--ink-3); }
.pill.navy { background: var(--navy-tint); color: var(--navy); }
.pill.nodot::before { display: none; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; font-family: var(--mono); }
.badge.navy { background: var(--navy); }

/* Stars */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars svg { width: 14px; height: 14px; }
.stars.lg svg { width: 18px; height: 18px; }
.stars .on { fill: #e0a100; } .stars .off { fill: #dfe4ea; }
.star-num { font-family: var(--mono); font-weight: 700; color: var(--navy); }
.src { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; font-weight: 800; color: #fff; }
.src.google { background: #fff; border: 1px solid var(--border-strong); }
.src.google svg { width: 11px; height: 11px; }
.src.yelp { background: #d32323; } .src.facebook { background: #1877f2; } .src.healthgrades { background: #5b4bd6; } .src.vitals { background: #7b3fa0; }

/* Tables */
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
.t th { text-align: left; font-size: 11.5px; color: var(--ink-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.t td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover { background: var(--surface-2); }
.t .r { text-align: right; }
.t td.r, .t th.r { font-variant-numeric: tabular-nums; }
.t td.num { font-family: var(--mono); }
.t tr.clickable { cursor: pointer; }
.t .bar { height: 8px; border-radius: 4px; background: var(--green); display: inline-block; vertical-align: middle; }
.t .bar-track { display: inline-block; width: 120px; height: 8px; border-radius: 4px; background: #edf0f3; vertical-align: middle; overflow: hidden; }
.t .bar-track .bar { display: block; height: 100%; }

/* Review card */
.review { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-tint); color: var(--navy); font-weight: 800; display: grid; place-items: center; font-size: 15px; position: relative; }
.avatar .src { position: absolute; right: -3px; bottom: -3px; }
.review .who { font-weight: 700; color: var(--ink); }
.review .meta { font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.review .text { margin-top: 6px; color: var(--ink-2); line-height: 1.5; }
.review .text.none { color: var(--ink-4); font-style: italic; }
.review .reply { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--green); background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: 12.5px; color: var(--ink-2); }
.review .reply b { color: var(--navy); }
.review .acts { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

/* Drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(13,47,76,.28); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 520px; max-width: 100vw; background: var(--surface); z-index: 41; box-shadow: -12px 0 40px -20px rgba(13,47,76,.35); transform: translateX(100%); transition: transform .18s ease-out; display: flex; flex-direction: column; }
body.drawer-open .drawer-bg { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { flex: 1; }
.drawer-body { padding: 20px; overflow: auto; flex: 1; }
.drawer-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; background: var(--surface-2); }
.close { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; }
.close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.2; fill: none; }

/* Details / disclosure */
details.why { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 10px; font-size: 12.5px; color: var(--ink-2); }
details.why summary { cursor: pointer; color: var(--ink-3); font-weight: 600; font-size: 12px; list-style: none; display: flex; align-items: center; gap: 6px; }
details.why summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .12s; }
details.why[open] summary::before { transform: rotate(45deg); }
details.why p { margin-top: 8px; max-width: 72ch; }

/* Callout */
.callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 12.5px; line-height: 1.5; }
.callout svg { width: 16px; height: 16px; flex: none; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 2; }
.callout.info { background: var(--info-tint); color: #17497a; }
.callout.warn { background: var(--warn-tint); color: #6d4b00; }
.callout.ok { background: var(--ok-tint); color: #245400; }
.callout.danger { background: var(--danger-tint); color: #8a1d16; }
.callout b { font-weight: 700; }

/* Charts */
.chart { width: 100%; display: block; overflow: visible; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--ink-3); }
.chart .axis line, .chart .grid line { stroke: var(--border); stroke-width: 1; }
.chart .lbl { font-family: var(--mono); font-size: 11px; fill: var(--ink-2); font-weight: 600; }
.chart .lbl.on { fill: #fff; }
.chart .line { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--navy); opacity: .06; }
.chart .dot { fill: #fff; stroke: var(--navy); stroke-width: 2; }
.chart .crosshair { stroke: var(--border-strong); stroke-dasharray: 3 3; }
.chart-wrap { position: relative; }
.tip { position: absolute; pointer-events: none; background: var(--navy); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 7px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .1s; z-index: 5; box-shadow: var(--shadow); }
.tip b { font-family: var(--mono); }
.tip.show { opacity: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.spark { width: 88px; height: 26px; display: inline-block; vertical-align: middle; }
.spark path { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark .fill { fill: var(--navy); opacity: .08; stroke: none; }
.hist { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; align-items: center; font-size: 12.5px; }
.hist .track { height: 10px; background: #edf0f3; border-radius: 5px; overflow: hidden; }
.hist .fill { height: 100%; border-radius: 5px; }
.hist .cnt { font-family: var(--mono); color: var(--ink-2); text-align: right; min-width: 54px; }
.hist .lab { font-weight: 700; color: var(--navy); display: flex; gap: 4px; align-items: center; }

/* Funnel */
.funnel { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; align-items: end; }
.funnel .step { display: flex; flex-direction: column; gap: 6px; }
.funnel .step .bar { background: var(--navy); border-radius: 6px 6px 3px 3px; min-height: 6px; position: relative; }
.funnel .step .bar.green { background: var(--green); }
.funnel .step .bar.red { background: var(--star-2); }
.funnel .step .v { font-family: var(--mono); font-weight: 700; color: var(--navy); font-size: 15px; }
.funnel .step .l { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.funnel .step .p { font-size: 11px; color: var(--ink-4); font-family: var(--mono); }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.kcol { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 10px; min-height: 200px; }
.kcol h3 { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-size: 13px; }
.kcol h3 .count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-3); font-weight: 600; }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 8px; cursor: pointer; box-shadow: 0 1px 2px rgba(13,47,76,.04); }
.kcard:hover { border-color: var(--border-strong); }
.kcard .t1 { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.kcard .txt { font-size: 12.5px; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kcard .t2 { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.sla { font-family: var(--mono); font-weight: 700; font-size: 11.5px; }
.sla.ok { color: var(--ok); } .sla.warn { color: var(--warn); } .sla.late { color: var(--danger); }

/* Listing tree */
.tree .clinic { border-bottom: 1px solid var(--border); }
.tree .clinic:last-child { border-bottom: 0; }
.tree .crow { display: grid; grid-template-columns: 26px 1.6fr 1fr 150px 110px 110px 130px 40px; gap: 12px; align-items: center; padding: 12px 20px; cursor: pointer; }
.tree .crow:hover { background: var(--surface-2); }
.tree .crow.child { grid-template-columns: 26px 1.6fr 1fr 150px 110px 110px 130px 40px; padding-left: 52px; border-top: 1px dashed var(--border); }
.tree .name { font-weight: 700; color: var(--ink); }
.tree .sub { font-size: 12px; color: var(--ink-3); }
.tree .head { display: grid; grid-template-columns: 26px 1.6fr 1fr 150px 110px 110px 130px 40px; gap: 12px; padding: 10px 20px; font-size: 11.5px; color: var(--ink-3); font-weight: 600; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.meter { display: inline-flex; align-items: center; gap: 8px; }
.meter .track { width: 64px; height: 6px; background: #edf0f3; border-radius: 3px; overflow: hidden; }
.meter .fill { height: 100%; background: var(--green); }
.meter .fill.low { background: var(--star-2); }
.meter .v { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.caret { width: 18px; height: 18px; stroke: var(--ink-4); fill: none; stroke-width: 2; transition: transform .12s; }
.open > .crow .caret { transform: rotate(90deg); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13px; opacity: 0; transition: all .18s; z-index: 60; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Timeline */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 6px 0; font-size: 12.5px; }
.tl li i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); margin-top: 4px; }
.tl li.done i { background: var(--green-deep); }
.tl li.now i { background: var(--navy); box-shadow: 0 0 0 3px var(--navy-tint); }
.tl .when { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }

/* Settings */
.setting { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.setting:last-child { border-bottom: 0; }
.setting .k { font-weight: 600; color: var(--ink); }
.setting .d { font-size: 12px; color: var(--ink-3); margin-top: 2px; max-width: 60ch; }
.conn { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.conn:last-child { border-bottom: 0; }
.conn .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-weight: 800; font-size: 12px; color: var(--navy); }

/* Empty */
.empty { text-align: center; padding: 36px 16px; color: var(--ink-3); }
.empty b { display: block; color: var(--navy); font-size: 14px; margin-bottom: 4px; }

/* Print */
@media print { .nav, .topbar, .sample-banner, .drawer, .drawer-bg { display: none !important; } .shell { display: block; } .content { padding: 0; max-width: none; } .card { break-inside: avoid; } }
@media (max-width: 1100px) { .cols-4, .cols-5, .cols-6 { grid-template-columns: repeat(2, minmax(0,1fr)); } .cols-3 { grid-template-columns: 1fr; } .hero { grid-template-columns: 1fr 1fr; } .kanban { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) { .shell { grid-template-columns: 1fr; } .nav { position: relative; height: auto; } .cols-2, .cols-4, .cols-5, .cols-6 { grid-template-columns: 1fr; } .content { padding: 16px; } .hero { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.t td .delta, .t td .pill { white-space: nowrap; }
