/* Hermes app shell and page layouts. Load after components.css. */

.shell { display: flex; gap: 18px; padding: 18px; min-height: 100dvh; align-items: flex-start; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-5); padding: 4px 6px 48px; }

/* ---- sidebar ---- */
.sidebar {
  width: var(--sidebar-w); min-width: var(--sidebar-w);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
  position: sticky; top: 18px; height: calc(100dvh - 36px);
  display: flex; flex-direction: column; padding: 20px 14px 14px; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; display: block; }
.brand-word { font-family: var(--font-serif); font-size: 22px; font-weight: 500; line-height: 1; letter-spacing: -0.005em; }
.brand-sub { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.nav-label { font: 500 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); padding: 10px 12px 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-control);
  font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none;
  position: relative;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-item:hover { background: var(--surface-raised); color: var(--ink); }
.nav-item:active { transform: scale(0.985); }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item.is-active { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.nav-item.is-active::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; background: var(--accent); border-radius: 0 3px 3px 0;
}
.nav-item .badge { margin-left: auto; background: var(--accent); color: var(--on-accent); padding: 3px 8px; }
.nav-item .nav-short { display: none; }
.nav-item.nav-about { display: none; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.foot-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-control); font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: none; }
.foot-link:hover { background: var(--surface-raised); color: var(--ink); }
.foot-link svg { width: 15px; height: 15px; }
.foot-meta { font-size: 11.5px; color: var(--faint); padding: 8px 10px 2px; line-height: 1.45; }

/* ---- top bar ---- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; min-height: 40px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.account {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); font-size: 13px;
}
.account-name { font-weight: 600; }
.account-id { color: var(--muted); font-variant-numeric: tabular-nums; }
.account-platform { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.chip-sandbox {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 11px/1 var(--font-sans); color: var(--muted);
  padding: 5px 9px; border-radius: var(--radius-pill); background: var(--surface-raised); border: 1px solid var(--border);
  text-decoration: none;
}
.chip-sandbox:hover { color: var(--ink); border-color: var(--divider); }
.chip-sandbox .dot { width: 6px; height: 6px; background: var(--muted); }
.asof { font-size: 12.5px; color: var(--muted); }

/* ---- page head ---- */
.page-head { display: flex; flex-direction: column; gap: 8px; max-width: 880px; }
.page-head h1 { font-family: var(--font-display); font-weight: 300; font-size: 40px; line-height: 1.12; letter-spacing: -0.01em; }
.page-head .lede { font-size: 16px; color: var(--muted); max-width: 72ch; }
.section-title { font-family: var(--font-serif); font-size: 21px; font-weight: 500; }
.filters { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.filters .field { min-width: 160px; }
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.spacer { flex: 1; }
.empty { padding: 32px; text-align: center; color: var(--muted); font-size: 14px; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.note svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.link { text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow svg { width: 13px; height: 13px; }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
.hr { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---- stat tiles ---- */
.tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.tile-value { font-size: 30px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.tile-value small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.tile-foot { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.delta { font-weight: 600; font-variant-numeric: tabular-nums; display: inline-flex; gap: 3px; align-items: center; }
.delta--good { color: var(--positive-ink); }
.delta--bad { color: var(--negative-ink); }
.delta--flat { color: var(--muted); }

/* ---- charts ---- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font-sans); font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .label-strong { fill: var(--ink); font-weight: 600; font-size: 13px; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.key-line { width: 14px; height: 2px; border-radius: 1px; display: inline-block; }
.key-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.key-rect { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.key-band { width: 14px; height: 10px; border-radius: 2px; display: inline-block; background: var(--surface-raised); border: 1px solid var(--border); }
.tooltip {
  position: absolute; pointer-events: none; z-index: 20;
  background: var(--ink); color: #FFFFFF; border-radius: var(--radius-control);
  padding: 8px 10px; font-size: 12px; line-height: 1.45; min-width: 120px;
  box-shadow: var(--shadow-hover); opacity: 0; transition: opacity var(--dur-fast) var(--ease);
  transform: translate(-50%, calc(-100% - 10px));
}
.tooltip.is-on { opacity: 1; }
.tooltip .tt-head { color: #D6D6D2; font-size: 11px; margin-bottom: 3px; }
.tooltip .tt-row { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.tooltip .tt-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tooltip .tt-note { color: #D6D6D2; font-size: 11px; margin-top: 3px; white-space: normal; max-width: 220px; }

/* ---- loop health ---- */
.health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.health-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-5); }
.health-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.health-item .v { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.health-item .s { font-size: 12.5px; color: var(--muted); }
.run-strip { display: flex; gap: 3px; margin-top: var(--space-4); align-items: flex-end; }
.run-cell { flex: 1; height: 18px; border-radius: 3px; background: var(--chart-ink); position: relative; min-width: 4px; }
.run-cell.failed { background: var(--negative); }
.run-cell.resumed { background: var(--warning); }
.run-cell.running { background: var(--divider); }
.run-strip-legend { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 6px; }

/* ---- funnel ---- */
.funnel { display: flex; flex-direction: column; gap: 2px; }
.funnel-row { display: grid; grid-template-columns: 240px 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 7px 0; }
.funnel-row + .funnel-row { border-top: 1px solid var(--border); }
.funnel-label { font-size: 13.5px; font-weight: 500; }
.funnel-label small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.funnel-n { font-size: 15px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.funnel-bar { display: flex; height: 14px; gap: 2px; align-items: stretch; }
.funnel-bar i { display: block; height: 100%; border-radius: 0 3px 3px 0; min-width: 2px; }
.funnel-bar i:not(:last-child) { border-radius: 0; }
.funnel-bar i:first-child { border-radius: 0; }
.funnel-bar i:last-child { border-radius: 0 3px 3px 0; }
.funnel-split { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.funnel-split span { display: inline-flex; align-items: center; gap: 6px; }
.funnel-split b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- events ---- */
.events { display: flex; flex-direction: column; }
.event { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; align-items: start; }
.event + .event { border-top: 1px solid var(--border); }
.event-icon { width: 28px; height: 28px; border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center; background: var(--surface-raised); color: var(--ink); }
.event-icon svg { width: 14px; height: 14px; }
.event-icon.neg { background: var(--negative-soft); color: var(--negative-ink); }
.event-icon.warn { background: var(--warning-soft); color: var(--warning-ink); }
.event-icon.pos { background: var(--positive-soft); color: var(--positive-ink); }
.event-title { font-size: 14px; font-weight: 600; }
.event-detail { font-size: 13px; color: var(--muted); margin-top: 2px; }
.event-when { font-size: 12px; color: var(--faint); white-space: nowrap; text-align: right; }

/* ---- decision cards ---- */
.dcard { padding: 0; overflow: hidden; }
.dcard-head { display: flex; align-items: flex-start; gap: var(--space-3); padding: 18px 22px 14px; flex-wrap: wrap; }
.dcard-title { font-family: var(--font-serif); font-size: 19px; font-weight: 500; line-height: 1.3; flex: 1; min-width: 260px; }
.dcard-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 6px; font-family: var(--font-sans); }
details.dcard > summary { display: block; }
details.dcard > summary:hover .dcard-title { text-decoration: underline; text-underline-offset: 3px; }
details.dcard:not([open]) .dcard-head { padding-bottom: 16px; }
.dcard-toggle::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin: -3px 0 0 6px; transition: transform var(--dur) var(--ease); }
details.dcard[open] .dcard-toggle::after { transform: rotate(-135deg); margin-top: 3px; }
.dcard-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.dcol { padding: 16px 22px 18px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dcol + .dcol { border-left: 1px solid var(--border); }
.dcol .kicker { margin-bottom: 2px; }
.dcol p { font-size: 14px; line-height: 1.55; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); white-space: nowrap; }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.checks li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; }
.checks svg { width: 14px; height: 14px; margin-top: 3px; }
.checks .ok svg { color: var(--positive); }
.checks .bad svg { color: var(--negative); }
.checks .name { font-weight: 600; }
.checks .detail { color: var(--muted); }
.verdict-box { border: 1px solid var(--border); border-radius: var(--radius-control); padding: 10px 12px; background: var(--surface-raised); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.verdict-box ul { margin: 0; padding-left: 18px; color: var(--ink); }
.verdict-box li { margin: 2px 0; }
.dcard-foot { display: flex; align-items: center; gap: var(--space-3); padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-raised); flex-wrap: wrap; }
.dcard-foot .note { flex: 1; min-width: 220px; }
.evidence-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 3px 0; border-bottom: 1px dashed var(--border); }
.evidence-row:last-child { border-bottom: 0; }
.evidence-row span:first-child { color: var(--muted); }
.evidence-row span:last-child { font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }

/* ---- trace timeline ---- */
.summary-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0; }
.summary-strip > div { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.summary-strip > div + div { border-left: 1px solid var(--border); }
.summary-strip .v { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; position: relative; padding-bottom: 22px; }
.step::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--border); }
.step:last-child::before { display: none; }
.step-node {
  width: 40px; height: 40px; border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink); position: relative; z-index: 1;
}
.step-node svg { width: 17px; height: 17px; }
.step-node.done { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step-node.fail { background: var(--negative-soft); border-color: var(--negative); color: var(--negative-ink); }
.step-node.wait { background: var(--surface); border-style: dashed; color: var(--muted); }
.step-body { min-width: 0; }
.step-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 8px 0 10px; }
.step-title { font-family: var(--font-serif); font-size: 19px; font-weight: 500; }
.step-when { font-size: 12.5px; color: var(--muted); }
.mcp-list { display: flex; flex-direction: column; gap: 8px; }
.mcp { border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); }
.mcp summary { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; }
.mcp summary .tool { font-family: var(--font-mono); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.mcp summary .meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.mcp summary svg { width: 14px; height: 14px; }
.mcp .ok-ico { color: var(--positive); }
.mcp .err-ico { color: var(--negative); }
.mcp-body { padding: 0 12px 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mcp-body .kicker { margin-bottom: 4px; }
.mcp[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.diff { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.diff-side { border: 1px solid var(--border); border-radius: var(--radius-control); padding: 10px 12px; font-size: 13px; background: var(--surface); }
.diff-side.after { border-color: var(--ink); }
.diff-arrow { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.diff-arrow svg { width: 16px; height: 16px; }
.reads { margin-top: 12px; }

/* ---- outcomes ---- */
.ci-cell { min-width: 220px; }
.verdict-bar { display: flex; height: 10px; gap: 2px; width: 100%; min-width: 120px; }
.verdict-bar i { display: block; height: 100%; }
.verdict-bar i:first-child { border-radius: 3px 0 0 3px; }
.verdict-bar i:last-child { border-radius: 0 3px 3px 0; }
.verdict-bar i:only-child { border-radius: 3px; }
.range { position: relative; height: 6px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-pill); min-width: 120px; }
.range i { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); border: 2px solid var(--surface); transform: translate(-50%, -50%); }
.range b { position: absolute; top: 50%; width: 2px; height: 12px; background: var(--faint); transform: translate(-50%, -50%); }
.recal { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; }
.recal + .recal { border-top: 1px solid var(--border); }
.recal-move { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.recal-move svg { width: 16px; height: 16px; color: var(--muted); }

/* ---- about ---- */
.prose { font-size: 15.5px; line-height: 1.65; max-width: 72ch; display: flex; flex-direction: column; gap: 12px; }
.prose h3 { font-family: var(--font-serif); font-size: 20px; margin-top: 8px; }
.prose ul { margin: 0; padding-left: 20px; }
.prose li { margin: 4px 0; }
.loop-diagram { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: stage; }
.loop-stage { border: 1px solid var(--border); border-radius: var(--radius-control); padding: 12px 14px; background: var(--surface); position: relative; }
.loop-stage .n { font: 500 11px/1 var(--font-mono); color: var(--muted); letter-spacing: 0.08em; }
.loop-stage h4 { margin: 6px 0 4px; font-size: 15px; font-weight: 600; }
.loop-stage p { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.loop-return { margin-top: 12px; border: 1px dashed var(--divider); border-radius: var(--radius-control); padding: 10px 14px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.loop-return svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink); }
.arch svg { width: 100%; height: auto; display: block; }
.arch text { font-family: var(--font-sans); }

/* ---- responsive ---- */
@media (max-width: 1180px) {
  .grid-4, .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel-row { grid-template-columns: 180px 60px minmax(0, 1fr); }
  .dcard-body { grid-template-columns: minmax(0, 1fr); }
  .dcol + .dcol { border-left: 0; border-top: 1px solid var(--border); }
  .summary-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-strip > div:nth-child(4) { border-left: 0; }
  .summary-strip > div:nth-child(n+4) { border-top: 1px solid var(--border); }
  .loop-diagram { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
}
@media (max-width: 768px) {
  .shell { padding: 12px 12px 84px; display: block; }
  .main { padding: 0; gap: var(--space-4); }
  .sidebar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; min-width: 0; height: auto;
    border-radius: 0; border-width: 1px 0 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); flex-direction: row; z-index: 50;
  }
  .brand, .nav-label, .sidebar-foot { display: none; }
  .nav { flex-direction: row; width: 100%; justify-content: space-around; gap: 0; }
  .nav-item { flex-direction: column; gap: 3px; padding: 6px 4px; font-size: 10.5px; flex: 1; text-align: center; min-width: 0; }
  .nav-item .nav-long { display: none; }
  .nav-item .nav-short { display: inline; }
  .nav-item.is-active::before { display: none; }
  .nav-item .badge { position: absolute; top: 0; right: 50%; margin: 0 -22px 0 0; padding: 2px 5px; font-size: 10px; }
  .nav-item.nav-about { display: flex; }
  .page-head h1 { font-size: 30px; }
  .grid-4, .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 16px; }
  .card--flush { padding: 0; }
  .card--flush .card-head { padding: 16px 16px 0; }
  .tile-value { font-size: 24px; }
  .funnel-row { grid-template-columns: minmax(0, 1fr) 52px; gap: 8px; }
  .funnel-row .funnel-viz { grid-column: 1 / -1; }
  .card.summary-strip { padding: 0; }
  .summary-strip > div:last-child { grid-column: 1 / -1; }
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-strip > div { border-left: 0 !important; border-top: 1px solid var(--border); }
  .summary-strip > div:nth-child(-n+2) { border-top: 0; }
  .summary-strip > div:nth-child(even) { border-left: 1px solid var(--border) !important; }
  .mcp-body { grid-template-columns: minmax(0, 1fr); }
  .mcp summary { grid-template-columns: 20px minmax(0, 1fr); }
  .mcp summary .meta { grid-column: 2; white-space: normal; }
  .mcp summary .tool { overflow-wrap: normal; word-break: normal; }
  .diff { grid-template-columns: minmax(0, 1fr); }
  .diff-arrow { transform: rotate(90deg); height: 20px; }
  .step { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .step-node { width: 32px; height: 32px; }
  .step::before { left: 15px; top: 32px; }
  .loop-diagram { grid-template-columns: minmax(0, 1fr); }
  .recal { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .account-id, .account-platform { display: none; }
  .event { grid-template-columns: 28px minmax(0, 1fr); }
  .event-when { grid-column: 2; text-align: left; }
  .dcard-head, .dcol, .dcard-foot { padding-left: 16px; padding-right: 16px; }
}

/* incremental lift: simulator ground truth is always marked as such */
.key-diamond { width: 9px; height: 9px; background: var(--chart-2); transform: rotate(45deg); display: inline-block; margin: 0 3px; }
.truth-panel { border-style: dashed; border-color: var(--divider); background: var(--surface-raised); }
.truth-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.truth-label svg { width: 14px; height: 14px; }
.big-number { font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; margin: 4px 0; font-variant-numeric: tabular-nums; }
.badge--ink svg { stroke: var(--on-accent); }
.lift-strip { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 16px; align-items: center; }
@media (max-width: 900px) { .lift-strip { grid-template-columns: minmax(0, 1fr); } }
