:root {
    --bg: #0a0a0b;
    --surface: #111113;
    --sidebar: #0d0d0f;
    --border: #26262a;
    --border-strong: #3f3f46;
    --text: #ededf0;
    --muted: #a1a1aa;
    --faint: #8b8b94;
    --hover: #17171a;
    --active: #1f1f24;
    --blue: #60a5fa;
    --violet: #a78bfa;
    --amber: #fbbf24;
    --green: #34d399;
    --red: #f87171;
    --r: 10px;
    --r-sm: 6px;
    --sidebar-w: 240px;
    --font: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  }
  * { box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.45;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.006em;
  }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
  :focus-visible { outline: 2px solid var(--faint); outline-offset: 1px; border-radius: 4px; }
  svg { flex: none; }

  .app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0,1fr); height: 100vh; height: 100dvh; }

  /* ── sidebar ─────────────────────────────────────────────── */
  .sidebar {
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column; min-height: 0;
    padding: 10px 8px 8px;
  }
  .ws {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 4px 10px;
  }
  .ws-avatar {
    width: 24px; height: 24px; border-radius: 6px;
    background: #ededf0; color: #0a0a0b;
    display: grid; place-items: center;
    font-size: 11px; font-weight: 600; letter-spacing: 0;
  }
  .ws-name { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 3px; }
  .ws-name .chev { color: var(--faint); }
  .ws-actions { margin-left: auto; display: flex; gap: 2px; }
  .icon-btn {
    width: 26px; height: 26px; border-radius: var(--r-sm);
    display: grid; place-items: center; color: var(--muted);
  }
  .icon-btn:hover { background: var(--hover); color: var(--text); }

  .nav { overflow-y: auto; min-height: 0; flex: 1; padding-bottom: 8px; }
  .nav-item {
    width: 100%; display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; border-radius: 4px;
    font-size: 13.5px; color: #cfcfd6; text-align: left;
  }
  .nav-item:hover { background: var(--hover); }
  .nav-item[aria-current="page"] { background: var(--active); color: var(--text); font-weight: 500; }
  .nav-item svg { color: var(--muted); }
  .nav-item[aria-current="page"] svg { color: var(--text); }
  .nav-item .badge {
    margin-left: auto; font-size: 11px; font-variant-numeric: tabular-nums;
    color: #d4d4d8; background: #26262a; border-radius: 999px; padding: 1px 6px;
    font-weight: 500;
  }
  .nav-item .badge.warn { background: rgba(251,191,36,.14); color: #fbbf24; }
  .nav-label {
    font-size: 11.5px; color: var(--faint); font-weight: 500;
    padding: 14px 10px 5px;
  }
  .nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
  .nav-dot.live { background: var(--green); }
  .sidebar-foot {
    border-top: 1px solid var(--border);
    padding: 9px 6px 2px; display: flex; align-items: center; gap: 7px;
    font-size: 11.5px; color: var(--muted);
  }
  .led { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }

  /* ── main ────────────────────────────────────────────────── */
  .main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
  .page-head {
    display: flex; align-items: center; gap: 8px;
    height: 48px; padding: 0 16px; border-bottom: 1px solid var(--border);
    flex: none;
  }
  .page-head h1 { font-size: 14px; font-weight: 500; margin: 0; }
  .page-head .head-icon { color: var(--muted); display: grid; place-items: center; }
  .page-head .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

  .btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 30px; padding: 0 11px; border-radius: var(--r-sm);
    font-size: 13px; font-weight: 500; white-space: nowrap;
    border: 1px solid var(--border); background: var(--bg); color: var(--text);
  }
  .btn:hover { background: var(--hover); }
  .btn.primary { background: #ededf0; border-color: #ededf0; color: #0a0a0b; }
  .btn.primary:hover { background: #ffffff; }
  .btn.ghost { border-color: transparent; color: var(--muted); }
  .btn.ghost:hover { background: var(--hover); color: var(--text); }

  .toolbar {
    display: flex; align-items: center; gap: 6px;
    height: 44px; padding: 0 16px; border-bottom: 1px solid var(--border);
    flex: none;
  }
  .tool {
    display: inline-flex; align-items: center; gap: 6px;
    height: 28px; padding: 0 9px; border-radius: var(--r-sm);
    font-size: 13px; color: #cfcfd6;
  }
  .tool:hover { background: var(--hover); }
  .tool.icon { padding: 0; width: 28px; justify-content: center; color: var(--muted); }
  .toolbar .spacer { flex: 1; }
  .live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding-right: 4px; }

  .content { flex: 1; min-height: 0; overflow: auto; }
  .view { display: none; }
  .view.on { display: block; }

  /* ── board ───────────────────────────────────────────────── */
  #view-board.on {
    display: flex; flex-direction: column;
    height: calc(100vh - 92px);
    height: calc(100dvh - 92px);
  }
  .board {
    display: flex; gap: 0; align-items: stretch;
    flex: 1; min-height: 0;
    overflow-x: auto;
  }
  .col {
    flex: 1 1 0; min-width: 286px;
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column; height: 100%;
  }
  .col:last-child { border-right: 0; }
  .col-head {
    display: flex; align-items: center; gap: 7px;
    padding: 14px 16px 10px; flex: none;
  }
  .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
  .dot.needs { background: var(--amber); }
  .dot.running { background: var(--blue); }
  .dot.review { background: var(--violet); }
  .dot.done { background: var(--green); }
  .col-name { font-size: 13.5px; font-weight: 500; }
  .col-count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
  .col-add { margin-left: auto; color: var(--faint); width: 22px; height: 22px; border-radius: 4px; display: grid; place-items: center; }
  .col-add:hover { background: var(--hover); color: var(--text); }
  .col-body { flex: 1; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
  .col-foot {
    border-top: 1px solid var(--border);
    padding: 10px 16px; display: flex; justify-content: space-between;
    font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
    flex: none;
  }

  .card {
    text-align: left; width: 100%;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: 12px;
    display: flex; flex-direction: column; gap: 7px;
    transition: border-color .12s ease, box-shadow .12s ease;
  }
  .card:hover { border-color: var(--border-strong); box-shadow: 0 1px 2px rgba(0,0,0,.5); }
  .card[aria-pressed="true"] { border-color: #6b6b75; box-shadow: 0 0 0 1px #6b6b75 inset; }
  .card-title { font-size: 13px; font-weight: 500; line-height: 1.35; }
  .card-meta { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
  .card-meta svg { width: 13px; height: 13px; color: var(--faint); }
  .card-meta .amount { font-variant-numeric: tabular-nums; color: #cfcfd6; }
  .card-foot { display: flex; align-items: center; gap: 7px; margin-top: 2px; }
  .av {
    width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
    font-size: 8.5px; font-weight: 600; color: #fff; flex: none;
    background: #cfcfd6;
  }
  .card-foot .who { font-size: 12px; color: #cfcfd6; }
  .card-foot .age { margin-left: auto; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
  .card-foot .spend { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

  .col-empty {
    border: 1px dashed var(--border); border-radius: var(--r);
    padding: 14px; font-size: 12.5px; color: var(--faint); text-align: center;
  }

  /* ── generic surfaces for the other views ────────────────── */
  .pad { padding: 20px 24px 32px; max-width: 1240px; }
  .stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 22px; }
  .stat { border: 1px solid var(--border); border-radius: var(--r); padding: 14px; }
  .stat .k { font-size: 12px; color: var(--muted); }
  .stat .v { font-size: 24px; font-weight: 500; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
  .stat .s { font-size: 11.5px; color: var(--faint); margin-top: 4px; }
  .sec { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; }
  .sec h2 { font-size: 13px; font-weight: 500; margin: 0; }
  .sec .hint { font-size: 12px; color: var(--faint); }
  .sec .more { margin-left: auto; font-size: 12px; color: var(--muted); }
  .panel { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); }

  .row-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; border-bottom: 1px solid var(--border);
    font-size: 12.5px;
  }
  .row-item:last-child { border-bottom: 0; }
  .row-item:hover { background: #16161a; }
  .row-item .grow { min-width: 0; flex: 1; }
  .row-item .t { color: var(--text); }
  .row-item .s { color: var(--faint); font-size: 11.5px; margin-top: 1px; }
  .chip {
    display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid var(--border); border-radius: 999px;
    padding: 1px 8px; font-size: 11px; color: var(--muted); white-space: nowrap;
  }
  .chip.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10.5px; }
  .chip.amber { background: rgba(251,191,36,.10); border-color: rgba(251,191,36,.32); color: #fbbf24; }
  .chip.green { background: rgba(52,211,153,.10); border-color: rgba(52,211,153,.30); color: #34d399; }
  .chip.red { background: rgba(248,113,113,.10); border-color: rgba(248,113,113,.30); color: #f87171; }

  .table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
  .table th {
    text-align: left; font-weight: 500; font-size: 11.5px; color: var(--muted);
    padding: 9px 14px; border-bottom: 1px solid var(--border); background: #16161a;
  }
  .table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: #cfcfd6; }
  .table tr:last-child td { border-bottom: 0; }
  .table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
  .table td.name { color: var(--text); font-weight: 500; }
  .bar-track { height: 6px; border-radius: 999px; background: #26262a; overflow: hidden; min-width: 120px; }
  .bar-fill { height: 100%; border-radius: 999px; background: #6b6b75; }

  /* coach */
  .coach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 10px; }
  .coach { border: 1px solid var(--border); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
  .coach-top { display: flex; align-items: flex-start; gap: 8px; }
  .coach-name { font-size: 13px; font-weight: 500; }
  .coach-when { font-size: 11.5px; color: var(--faint); margin-top: 1px; }
  .verdict { margin-left: auto; font-size: 11px; font-weight: 500; border-radius: 999px; padding: 2px 8px; border: 1px solid transparent; }
  .verdict.strong { background: rgba(52,211,153,.10); color: #34d399; border-color: rgba(52,211,153,.30); }
  .verdict.adjust { background: rgba(251,191,36,.10); color: #fbbf24; border-color: rgba(251,191,36,.32); }
  .verdict.focus  { background: rgba(248,113,113,.10); color: #f87171; border-color: rgba(248,113,113,.30); }
  .scores { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 16px; }
  .score-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
  .score-row span { flex: 1; white-space: nowrap; }
  .segs { display: flex; gap: 2px; }
  .segs i { width: 11px; height: 3px; border-radius: 2px; background: #2c2c31; display: block; }
  .segs i.on.good { background: var(--green); }
  .segs i.on.mid { background: var(--amber); }
  .segs i.on.low { background: var(--red); opacity: .8; }
  .change { border-top: 1px solid var(--border); padding-top: 9px; }
  .change b { font-size: 12px; font-weight: 500; display: block; }
  .change q { display: block; font-size: 11.5px; color: var(--faint); margin-top: 3px; font-style: italic; }
  .change .fix { font-size: 11.5px; color: #cfcfd6; margin-top: 4px; }
  .change .fix::before { content: "→ "; color: var(--faint); }
  .coach-trend { display: flex; align-items: center; gap: 10px; }
  .coach-trend svg { flex: 1; height: 22px; }
  .coach-trend .meta { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }

  /* reports */
  .reports { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 18px; align-items: start; }
  .brief-list { display: grid; gap: 2px; }
  .brief-item { text-align: left; padding: 8px 10px; border-radius: var(--r-sm); color: #cfcfd6; }
  .brief-item:hover { background: var(--hover); }
  .brief-item[aria-current="true"] { background: var(--active); color: var(--text); }
  .brief-date { font-size: 12.5px; font-weight: 500; }
  .brief-sub { font-size: 11px; color: var(--faint); margin-top: 1px; }
  .brief { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
  .brief-head { padding: 16px; border-bottom: 1px solid var(--border); }
  .brief-title { font-size: 14px; font-weight: 500; }
  .brief-meta { font-size: 12px; color: var(--faint); margin-top: 2px; }
  .brief-body { padding: 16px; display: grid; gap: 20px; }
  .metric-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
  .metric { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 11px 12px; }
  .metric .k { font-size: 11.5px; color: var(--muted); }
  .metric .v { font-size: 19px; font-weight: 500; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
  .metric .v small { font-size: 11px; color: var(--faint); font-weight: 400; margin-left: 3px; }
  .metric .s { font-size: 11px; color: var(--faint); margin-top: 3px; }
  .metric.bad .v { color: #f87171; }
  .metric.warn .v { color: #fbbf24; }
  .metric.good .v { color: #34d399; }
  .prio-group h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 500; margin: 0 0 7px; }
  .prio { display: grid; grid-template-columns: 16px minmax(0,1fr) auto; gap: 9px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
  .prio:last-child { border-bottom: 0; }
  .prio .mark { font-size: 11px; text-align: center; }
  .prio .mark.done { color: var(--green); }
  .prio .mark.no { color: var(--red); }
  .prio .mark.wait { color: var(--amber); }
  .prio .mark.today { color: var(--blue); }
  .prio .ev { color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
  .prio .slip { font-size: 10.5px; color: #fbbf24; background: rgba(251,191,36,.10); border: 1px solid rgba(251,191,36,.32); border-radius: 999px; padding: 0 7px; }
  .inputs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
  .input-card { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 11px; }
  .input-card .k { font-size: 11px; color: var(--muted); }
  .input-card .v { font-size: 12px; color: #cfcfd6; margin-top: 5px; line-height: 1.5; }

  /* stream */
  .channels { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-bottom: 18px; }
  .chan { text-align: left; border: 1px solid var(--border); border-radius: var(--r); padding: 11px 12px; }
  .chan:hover { background: #16161a; border-color: var(--border-strong); }
  .chan[aria-pressed="true"] { border-color: #6b6b75; background: var(--hover); }
  .chan-name { font-size: 12.5px; font-weight: 500; }
  .chan-meta { font-size: 11.5px; color: var(--faint); margin-top: 3px; }
  .post { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .post:last-child { border-bottom: 0; }
  .post-head { display: flex; align-items: baseline; gap: 7px; font-size: 12.5px; }
  .post-head b { font-weight: 500; }
  .post-head .time { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
  .post-body { font-size: 12.5px; color: #cfcfd6; margin-top: 2px; }
  .post-body code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; background: #1b1b1f; border: 1px solid var(--border); border-radius: 4px; padding: 1px 4px; }
  .code-line { display: block; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; background: #fafafa; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 7px 9px; margin-top: 6px; overflow-x: auto; white-space: pre; }

  /* ── detail sheet ────────────────────────────────────────── */
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.62); opacity: 0; pointer-events: none; transition: opacity .18s ease; z-index: 40; }
  .scrim.on { opacity: 1; pointer-events: auto; }
  .sheet {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 94vw);
    background: var(--surface); border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform .22s cubic-bezier(.22,.61,.36,1);
    z-index: 41; display: flex; flex-direction: column;
  }
  .sheet.open { transform: none; box-shadow: -16px 0 40px rgba(0,0,0,.55); }
  .sheet-head { padding: 16px; border-bottom: 1px solid var(--border); }
  .sheet-top { display: flex; align-items: center; gap: 8px; }
  .sheet-title { font-size: 15px; font-weight: 500; line-height: 1.35; margin: 0; }
  .sheet-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .sheet-body { padding: 16px; overflow-y: auto; flex: 1; }
  .sheet-foot { border-top: 1px solid var(--border); padding: 12px 16px; display: flex; gap: 8px; }
  .sheet-foot .btn.primary { flex: 1; justify-content: center; }
  .kv { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 6px 12px; font-size: 12.5px; }
  .kv dt { color: var(--faint); }
  .kv dd { margin: 0; color: #cfcfd6; }
  .sheet-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 500; margin: 20px 0 8px; }
  .sheet-note { font-size: 12.5px; color: #cfcfd6; line-height: 1.55; }
  .tool-row {
    display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--border); border-radius: var(--r-sm);
    padding: 7px 10px; margin-top: 8px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--muted);
    white-space: nowrap; overflow: hidden;
  }
  .tool-row .t-name { color: var(--text); }
  .tool-row .t-res { margin-left: auto; color: #34d399; }
  .tool-row .t-res.wait { color: #fbbf24; }

  /* ── responsive ──────────────────────────────────────────── */
  @media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .metric-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  }
  @media (max-width: 860px) {
    .app { grid-template-columns: minmax(0,1fr); }
    .sidebar { position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 50; transform: translateX(-100%); transition: transform .22s ease; }
    .sidebar.open { transform: none; }
    .menu-btn { display: inline-flex !important; }
    #view-board.on { height: auto; }
    .board { display: block; flex: none; height: auto; overflow: visible; }
    .col { width: auto; min-width: 0; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
    .col-body { overflow: visible; }
    .channels { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .reports { grid-template-columns: minmax(0,1fr); }
    .inputs { grid-template-columns: minmax(0,1fr); }
    .scores { grid-template-columns: minmax(0,1fr); }
  }
  .menu-btn { display: none; }
  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
  }

/* ── dark surfaces ─────────────────────────────────────────── */
/* The page is near-black; anything with a border reads as a raised surface. */
.stat,
.coach,
.metric,
.input-card,
.chan,
.brief,
.code-line,
.tool-row { background: var(--surface); }
.btn { background: var(--surface); }
.code-line { background: #17171a; }
.table th { background: #151518; }
.col-empty { background: rgba(255,255,255,.015); }

/* ── evidence ──────────────────────────────────────────────── */
.evidence { font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.evidence.pass { background: rgba(52,211,153,.12); color: #34d399; border-color: rgba(52,211,153,.30); }
.evidence.fail,
.evidence.missing { background: rgba(248,113,113,.12); color: #f87171; border-color: rgba(248,113,113,.30); }
.evidence.outdated { background: rgba(251,191,36,.12); color: #fbbf24; border-color: rgba(251,191,36,.30); }
.evidence-table .table td { font-size: 12px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--muted); }
.link { color: var(--blue); font-size: 12.5px; padding: 0; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ── review-sheet corrections ──────────────────────────────── */
.btn[hidden] { display: none; }
.evidence-table .table { table-layout: fixed; width: 100%; }
.evidence-table .table th:nth-child(1), .evidence-table .table td:nth-child(1) { width: 46%; }
.evidence-table .table th:nth-child(2), .evidence-table .table td:nth-child(2) { width: 34%; }
.evidence-table .table th:nth-child(3), .evidence-table .table td:nth-child(3) { width: 20%; }
.evidence-table .table td, .evidence-table .table th { overflow-wrap: anywhere; }
.sheet-note.feedback { border: 1px solid var(--border); background: var(--hover); border-radius: var(--r-sm); padding: 8px 10px; margin-bottom: 12px; }

/* ── repeated-attempt exception ────────────────────────────── */
.exception {
  font-size: 11.5px; color: var(--amber);
  background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.22);
  border-radius: 6px; padding: 5px 7px; margin-top: 1px;
}
.attempt { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.attempt:last-child { border-bottom: 0; }
.attempt .at { color: var(--faint); font-variant-numeric: tabular-nums; }
.attempt .out { color: var(--red); font-size: 11.5px; }
.attempt .out.pass { color: var(--green); }

/* ── collision strip ───────────────────────────────────────── */
.collision { border-bottom: 1px solid rgba(251,191,36,.22); background: rgba(251,191,36,.05); padding: 7px 16px; display: grid; gap: 6px; }
.collision-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; min-width: 0; }
.collision-row .resource { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; color: var(--text); }
.collision-row .workers { color: var(--muted); }
.collision-row .consequence { color: var(--faint); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collision-row .link { margin-left: auto; }

/* ── since-last-checked digest ─────────────────────────────── */
#digest { padding: 18px 20px 28px; max-width: 860px; }
.digest-summary { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.digest-summary b { color: var(--text); font-weight: 500; }
.digest-row { display: grid; grid-template-columns: 70px 90px minmax(0,1fr) auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.digest-row:last-child { border-bottom: 0; }
.digest-row .when { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--faint); }
.digest-row .kind { font-size: 11px; color: var(--muted); }
.digest-row .kind.blocker { color: var(--amber); }
.digest-row .kind.outcome { color: var(--green); }
.digest-row .change { color: var(--faint); font-size: 11.5px; }
.digest-empty { font-size: 13px; color: var(--faint); padding: 8px 0; }
.tool[hidden] { display: none; }

/* ── attention budget ──────────────────────────────────────── */
#session { border-bottom: 1px solid var(--border); background: var(--surface); padding: 12px 16px; }
.session-head { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.session-head b { color: var(--text); font-weight: 500; }
.session-head .link + .link { margin-left: 6px; }
.session-row { display: grid; grid-template-columns: 56px minmax(0,1fr) auto auto; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.session-row:last-of-type { border-bottom: 0; }
.session-row .mins { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--faint); }
.session-row .unblocks { font-size: 11px; color: var(--green); }
.session-deferred { font-size: 11.5px; color: var(--faint); margin-top: 6px; }
