/* Command Center v3 — Strict CSP Stylesheet (style-src 'self') */
:root {
  --bg: #F4F5F3;
  --alt: #F4F5F3;
  --surface: #FFFFFF;
  --border: rgba(20, 24, 27, 0.11);
  --hair: rgba(20, 24, 27, 0.11);
  --border-strong: rgba(20, 24, 27, 0.22);
  --ink: #14181B;
  --muted: #4F575D;
  --soft: #4F575D;
  --softer: #6C757C;
  --accent: #17748E;
  --accent-btn: #17748E;
  --petrol-text: #115D73;
  --purple-text: #115D73;
  --accent-hover: #125E73;
  --noir: #101518;
  --noir-2: #182025;
  --noir-3: #202B31;
  --noir-ink: #F4F6F6;
  --noir-soft: #9EAAB0;
  --noir-hair: rgba(244, 246, 246, 0.13);
  --gather: #D9EDF2;
  --interpret: #AAD4DF;
  --chase: #70B4C7;
  --decide: #3E90A8;
  --act: #17748E;
  --shadow-card: 0 1px 2px rgba(20, 20, 25, 0.04), 0 4px 12px -2px rgba(20, 20, 25, 0.04);
  --shadow-card-hover: 0 2px 4px rgba(20, 20, 25, 0.06), 0 10px 24px -4px rgba(20, 20, 25, 0.07);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Sora", "Inter", system-ui, -apple-system, sans-serif;
  --green: #2F9E6E;
  --blue: #3B82F6;
  --violet: #17748E;
  --red: #D64545;
  --amber: #D98A1C;
  --radius-card: 14px;
  --radius-pill: 999px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }


/* === today.html (page-today) === */
body.page-today {
      background: var(--bg);
      color: var(--ink);
      font-family: var(--font);
      font-size: 14px;
      line-height: 1.45;
      font-variant-numeric: tabular-nums;
      -webkit-font-smoothing: antialiased;
    }
body.page-today a { color: var(--accent); text-decoration: none; }
body.page-today .shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
body.page-today .sidebar {
      background: var(--surface);
      border-right: 1px solid var(--border);
      padding: 20px 16px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
body.page-today .brand { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
body.page-today .brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
body.page-today .workspace-switcher { display: flex; flex-direction: column; gap: 6px; }
body.page-today .ws-chip {
      display: flex; align-items: center; justify-content: space-between;
      padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border);
      font-size: 12px; font-weight: 500; background: var(--bg);
    }
body.page-today .ws-chip.active { background: var(--surface); border-color: var(--ink); font-weight: 600; }
body.page-today .ws-chip.disabled { color: var(--muted); opacity: 0.65; }
body.page-today .ws-soon { font-size: 11px; color: var(--muted); font-weight: 400; }
body.page-today .nav-group { display: flex; flex-direction: column; gap: 2px; }
body.page-today .nav-label {
      font-size: 11px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 0.04em; color: var(--muted); padding: 4px 10px;
    }
body.page-today .nav-item {
      display: flex; align-items: center; justify-content: space-between;
      padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 500;
    }
body.page-today .nav-item:hover { background: var(--bg); }
body.page-today .nav-item.active { background: var(--bg); font-weight: 600; }
body.page-today .nav-sub { padding-left: 22px; font-size: 13px; color: var(--muted); }
body.page-today .nav-badge {
      font-size: 11px; font-weight: 600; padding: 1px 8px;
      border-radius: var(--radius-pill); background: var(--surface);
      border: 1px solid var(--border); color: var(--ink);
    }
body.page-today .main { display: flex; flex-direction: column; min-width: 0; }
body.page-today .topbar {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 16px; padding: 22px 28px 18px; border-bottom: 1px solid var(--border);
      background: var(--surface); flex-wrap: wrap;
    }
body.page-today .page-title h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
body.page-today .page-title p { color: var(--muted); font-size: 13px; margin-top: 2px; }
body.page-today .topbar-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.page-today .search-box {
      display: flex; align-items: center; gap: 8px; background: var(--bg);
      border: 1px solid var(--border); border-radius: var(--radius-pill);
      padding: 6px 12px; width: 210px;
    }
body.page-today .search-box input {
      border: none; background: transparent; outline: none;
      color: var(--ink); font: inherit; font-size: 13px; width: 100%;
    }
body.page-today .period-toggle {
      display: inline-flex; background: var(--bg); border: 1px solid var(--border);
      border-radius: var(--radius-pill); padding: 2px;
    }
body.page-today .period-btn {
      border: none; background: transparent; color: var(--muted); font: inherit;
      font-size: 12px; font-weight: 500; padding: 4px 10px;
      border-radius: var(--radius-pill); cursor: pointer;
    }
body.page-today .period-btn.active { background: var(--surface); color: var(--ink); font-weight: 600; }
body.page-today .btn-primary-dark {
      background: var(--ink); color: var(--surface); border: 1px solid var(--ink);
      border-radius: var(--radius-pill); padding: 7px 14px; font: inherit;
      font-size: 13px; font-weight: 500; cursor: pointer;
    }
body.page-today .subbar {
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
    }
body.page-today .tab-radio { display: none; }
body.page-today .tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body.page-today .tab-label {
      display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
      border-radius: var(--radius-pill); border: 1px solid var(--border);
      background: var(--surface); color: var(--muted); font-size: 13px;
      font-weight: 500; cursor: pointer; user-select: none;
    }
body.page-today .tab-count {
      font-size: 11px; padding: 0 6px; border-radius: var(--radius-pill);
      background: var(--bg); color: var(--ink); font-weight: 600;
    }
body.page-today #tab-all:checked ~ .subbar label[for="tab-all"], body.page-today #tab-approval:checked ~ .subbar label[for="tab-approval"], body.page-today #tab-drafts:checked ~ .subbar label[for="tab-drafts"], body.page-today #tab-blocked:checked ~ .subbar label[for="tab-blocked"], body.page-today #tab-failed:checked ~ .subbar label[for="tab-failed"], body.page-today #tab-empty:checked ~ .subbar label[for="tab-empty"] {
      border-color: var(--ink); color: var(--ink); font-weight: 600;
    }
body.page-today .kbd-legend { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
body.page-today .kbd-item { display: inline-flex; align-items: center; gap: 4px; }
body.page-today kbd {
      font-family: var(--font); font-size: 11px; font-weight: 600; padding: 1px 6px;
      border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--ink);
    }
body.page-today #tab-approval:checked ~ .workspace-grid .decide-row:not(.cat-approval), body.page-today #tab-drafts:checked ~ .workspace-grid .decide-row:not(.cat-draft), body.page-today #tab-blocked:checked ~ .workspace-grid .decide-row:not(.cat-blocked), body.page-today #tab-failed:checked ~ .workspace-grid .decide-row:not(.cat-failed), body.page-today #tab-empty:checked ~ .workspace-grid .decide-row { display: none; }
body.page-today .empty-state { display: none; padding: 36px 24px; text-align: center; color: var(--muted); font-size: 14px; }
body.page-today #tab-empty:checked ~ .workspace-grid .empty-state { display: block; }
body.page-today .workspace-grid {
      display: grid; grid-template-columns: 1fr 400px; gap: 20px;
      padding: 20px 28px 32px; align-items: start;
    }
body.page-today .queue-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
body.page-today .decide-row {
      display: grid; grid-template-columns: 32px 1fr auto; align-items: center;
      gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border);
    }
body.page-today .decide-row:last-of-type { border-bottom: none; }
body.page-today .decide-row.selected { background: var(--bg); }
body.page-today .source-icon {
      width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border);
      background: var(--bg); display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 700; color: var(--ink);
    }
body.page-today .row-main { min-width: 0; }
body.page-today .row-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.page-today .row-title { font-weight: 600; font-size: 14px; color: var(--ink); }
body.page-today .row-age { font-size: 12px; color: var(--muted); }
body.page-today .row-why { color: var(--muted); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.page-today .row-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
body.page-today .pill {
      display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px;
      border-radius: var(--radius-pill); font-size: 11px; font-weight: 600;
      border: 1px solid var(--border); background: var(--surface); white-space: nowrap;
    }
body.page-today .dot { width: 6px; height: 6px; border-radius: var(--radius-pill); }
body.page-today .pill-approval { color: var(--amber); }
body.page-today .pill-approval .dot { background: var(--amber); }
body.page-today .pill-draft { color: var(--violet); }
body.page-today .pill-draft .dot { background: var(--violet); }
body.page-today .pill-blocked { color: var(--blue); }
body.page-today .pill-blocked .dot { background: var(--blue); }
body.page-today .pill-failed { color: var(--red); }
body.page-today .pill-failed .dot { background: var(--red); }
body.page-today .row-actions { display: flex; align-items: center; gap: 5px; }
body.page-today .btn {
      border: 1px solid var(--border); background: var(--surface); color: var(--ink);
      border-radius: var(--radius-pill); padding: 4px 10px; font: inherit;
      font-size: 12px; font-weight: 500; cursor: pointer;
    }
body.page-today .btn-accent { background: var(--accent); border-color: var(--accent); color: var(--surface); }
body.page-today .btn-quiet { color: var(--muted); }
body.page-today .detail-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); padding: 18px; display: flex;
      flex-direction: column; gap: 14px; position: sticky; top: 20px;
    }
body.page-today .detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
body.page-today .detail-kicker { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
body.page-today .detail-title { font-size: 15px; font-weight: 600; margin-top: 2px; }
body.page-today .stop-reason { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 12px; }
body.page-today .stop-reason strong { display: block; color: var(--ink); margin-bottom: 2px; }
body.page-today .stop-reason span { color: var(--muted); }
body.page-today .payload-box {
      border: 1px solid var(--border); border-radius: 10px; padding: 12px;
      background: var(--surface); font-size: 12.5px; display: flex; flex-direction: column; gap: 8px;
    }
body.page-today .payload-meta { font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 8px; display: flex; flex-direction: column; gap: 2px; }
body.page-today .redact { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--muted); }
body.page-today .detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; border-top: 1px solid var(--border); flex-wrap: wrap; }
@media (max-width: 1100px) {
body.page-today .workspace-grid { grid-template-columns: 1fr; }
body.page-today .detail-card { position: static; }
}
@media (max-width: 760px) {
body.page-today .shell { grid-template-columns: 1fr; }
body.page-today .sidebar { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 16px; gap: 12px; }
body.page-today .topbar, body.page-today .subbar, body.page-today .workspace-grid { padding-left: 16px; padding-right: 16px; }
body.page-today .topbar { flex-direction: column; align-items: stretch; }
body.page-today .search-box { width: 100%; }
body.page-today .kbd-legend { display: none; }
body.page-today .decide-row { grid-template-columns: 30px 1fr; gap: 10px; }
body.page-today .row-why { white-space: normal; }
body.page-today .row-right { grid-column: 1 / -1; justify-content: space-between; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--border); }
}
body.page-today .today-stack {
      display: flex; flex-direction: column; gap: 24px;
      padding: 20px 28px 32px;
    }
body.page-today .section-head {
      display: flex; align-items: baseline; justify-content: space-between;
      gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
    }
body.page-today .section-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
body.page-today .section-sub { font-size: 12px; color: var(--muted); }
body.page-today .card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); padding: 18px;
      display: flex; flex-direction: column; gap: 10px;
    }
body.page-today .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
body.page-today .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
body.page-today .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
body.page-today .gauge-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.page-today .gauge-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
body.page-today .gauge-metric { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
body.page-today .big-num { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
body.page-today .of-target { font-size: 13px; color: var(--muted); }
body.page-today .seg-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; height: 8px; }
body.page-today .seg { background: var(--bg); border: 1px solid var(--border); border-radius: 3px; }
body.page-today .seg.fill-green { background: var(--green); border-color: var(--green); }
body.page-today .seg.fill-blue { background: var(--blue); border-color: var(--blue); }
body.page-today .seg.fill-violet { background: var(--violet); border-color: var(--violet); }
body.page-today .seg.fill-amber { background: var(--amber); border-color: var(--amber); }
body.page-today .gauge-foot { font-size: 12.5px; color: var(--muted); }
body.page-today .funnel-rows { display: flex; flex-direction: column; gap: 14px; }
body.page-today .funnel-row { display: grid; grid-template-columns: 150px 1fr 140px; align-items: center; gap: 14px; }
body.page-today .funnel-stage { font-weight: 600; font-size: 13px; }
body.page-today .funnel-stage span { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }
body.page-today .funnel-tracks { display: flex; flex-direction: column; gap: 5px; }
body.page-today .bar-track { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill); height: 9px; overflow: hidden; }
body.page-today .bar-fill { height: 100%; border-radius: var(--radius-pill); }
body.page-today .bar-fill.this-wk { background: var(--blue); }
body.page-today .bar-fill.last-wk { background: var(--border); }
body.page-today .funnel-nums { text-align: right; font-size: 12.5px; }
body.page-today .funnel-nums strong { color: var(--ink); font-weight: 600; }
body.page-today .funnel-nums span { color: var(--muted); display: block; font-size: 11.5px; }
body.page-today .pipe-col {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); padding: 14px;
      display: flex; flex-direction: column; gap: 10px;
    }
body.page-today .pipe-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
body.page-today .pipe-name { font-size: 13px; font-weight: 600; }
body.page-today .pipe-sum { font-size: 12px; color: var(--muted); }
body.page-today .deal-card {
      background: var(--bg); border: 1px solid var(--border);
      border-radius: 10px; padding: 10px 12px;
      display: flex; flex-direction: column; gap: 5px;
    }
body.page-today .deal-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
body.page-today .deal-name { font-weight: 600; font-size: 13px; }
body.page-today .deal-val { font-size: 12px; font-weight: 600; color: var(--ink); }
body.page-today .deal-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
body.page-today .needs-card { justify-content: space-between; gap: 12px; }
body.page-today .needs-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
body.page-today .needs-title { font-size: 14px; font-weight: 600; }
body.page-today .needs-reason { font-size: 13px; color: var(--muted); }
body.page-today .needs-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
body.page-today .timeline-day { display: flex; flex-direction: column; gap: 8px; }
body.page-today .timeline-day + .timeline-day { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
body.page-today .day-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
body.page-today .tl-item { display: grid; grid-template-columns: 60px 14px 1fr auto; align-items: baseline; gap: 10px; font-size: 13px; padding: 3px 0; }
body.page-today .tl-time { font-size: 12px; color: var(--muted); }
body.page-today .tl-dot { width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--border); display: inline-block; }
body.page-today .tl-text strong { font-weight: 600; }
body.page-today .tl-tag { font-size: 11.5px; color: var(--muted); }
body.page-today .target-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
body.page-today .not-connected {
      display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px;
      border-radius: var(--radius-pill); border: 1px dashed var(--border);
      background: var(--bg); color: var(--muted); font-size: 11.5px; font-weight: 500;
    }
body.page-today .sys-strip {
      display: flex; align-items: center; justify-content: space-between;
      gap: 14px; padding: 10px 16px; background: var(--surface);
      border: 1px solid var(--border); border-radius: var(--radius-card);
      font-size: 12px; color: var(--muted); flex-wrap: wrap;
    }
body.page-today .sys-items { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
body.page-today .sys-item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
body.page-today .sys-item span { color: var(--muted); font-weight: 400; }
@media (max-width: 1100px) {
body.page-today .grid-3, body.page-today .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
body.page-today .today-stack { padding-left: 16px; padding-right: 16px; }
body.page-today .grid-3, body.page-today .grid-2, body.page-today .grid-4 { grid-template-columns: 1fr; }
body.page-today .funnel-row { grid-template-columns: 1fr; gap: 6px; }
body.page-today .funnel-nums { text-align: left; }
}

/* === decide.html (page-decide) === */
body.page-decide {
      background: var(--bg);
      color: var(--ink);
      font-family: var(--font);
      font-size: 14px;
      line-height: 1.45;
      font-variant-numeric: tabular-nums;
      -webkit-font-smoothing: antialiased;
    }
body.page-decide a { color: var(--accent); text-decoration: none; }
body.page-decide .shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
body.page-decide .sidebar {
      background: var(--surface);
      border-right: 1px solid var(--border);
      padding: 20px 16px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
body.page-decide .brand { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
body.page-decide .brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
body.page-decide .workspace-switcher { display: flex; flex-direction: column; gap: 6px; }
body.page-decide .ws-chip {
      display: flex; align-items: center; justify-content: space-between;
      padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border);
      font-size: 12px; font-weight: 500; background: var(--bg);
    }
body.page-decide .ws-chip.active { background: var(--surface); border-color: var(--ink); font-weight: 600; }
body.page-decide .ws-chip.disabled { color: var(--muted); opacity: 0.65; }
body.page-decide .ws-soon { font-size: 11px; color: var(--muted); font-weight: 400; }
body.page-decide .nav-group { display: flex; flex-direction: column; gap: 2px; }
body.page-decide .nav-label {
      font-size: 11px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 0.04em; color: var(--muted); padding: 4px 10px;
    }
body.page-decide .nav-item {
      display: flex; align-items: center; justify-content: space-between;
      padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 500;
    }
body.page-decide .nav-item:hover { background: var(--bg); }
body.page-decide .nav-item.active { background: var(--bg); font-weight: 600; }
body.page-decide .nav-sub { padding-left: 22px; font-size: 13px; color: var(--muted); }
body.page-decide .nav-badge {
      font-size: 11px; font-weight: 600; padding: 1px 8px;
      border-radius: var(--radius-pill); background: var(--surface);
      border: 1px solid var(--border); color: var(--ink);
    }
body.page-decide .main { display: flex; flex-direction: column; min-width: 0; }
body.page-decide .topbar {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 16px; padding: 22px 28px 18px; border-bottom: 1px solid var(--border);
      background: var(--surface); flex-wrap: wrap;
    }
body.page-decide .page-title h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
body.page-decide .page-title p { color: var(--muted); font-size: 13px; margin-top: 2px; }
body.page-decide .topbar-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.page-decide .search-box {
      display: flex; align-items: center; gap: 8px; background: var(--bg);
      border: 1px solid var(--border); border-radius: var(--radius-pill);
      padding: 6px 12px; width: 210px;
    }
body.page-decide .search-box input {
      border: none; background: transparent; outline: none;
      color: var(--ink); font: inherit; font-size: 13px; width: 100%;
    }
body.page-decide .period-toggle {
      display: inline-flex; background: var(--bg); border: 1px solid var(--border);
      border-radius: var(--radius-pill); padding: 2px;
    }
body.page-decide .period-btn {
      border: none; background: transparent; color: var(--muted); font: inherit;
      font-size: 12px; font-weight: 500; padding: 4px 10px;
      border-radius: var(--radius-pill); cursor: pointer;
    }
body.page-decide .period-btn.active { background: var(--surface); color: var(--ink); font-weight: 600; }
body.page-decide .btn-primary-dark {
      background: var(--ink); color: var(--surface); border: 1px solid var(--ink);
      border-radius: var(--radius-pill); padding: 7px 14px; font: inherit;
      font-size: 13px; font-weight: 500; cursor: pointer;
    }
body.page-decide .subbar {
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
    }
body.page-decide .tab-radio { display: none; }
body.page-decide .tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body.page-decide .tab-label {
      display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
      border-radius: var(--radius-pill); border: 1px solid var(--border);
      background: var(--surface); color: var(--muted); font-size: 13px;
      font-weight: 500; cursor: pointer; user-select: none;
    }
body.page-decide .tab-count {
      font-size: 11px; padding: 0 6px; border-radius: var(--radius-pill);
      background: var(--bg); color: var(--ink); font-weight: 600;
    }
body.page-decide #tab-all:checked ~ .subbar label[for="tab-all"], body.page-decide #tab-approval:checked ~ .subbar label[for="tab-approval"], body.page-decide #tab-drafts:checked ~ .subbar label[for="tab-drafts"], body.page-decide #tab-blocked:checked ~ .subbar label[for="tab-blocked"], body.page-decide #tab-failed:checked ~ .subbar label[for="tab-failed"], body.page-decide #tab-empty:checked ~ .subbar label[for="tab-empty"] {
      border-color: var(--ink); color: var(--ink); font-weight: 600;
    }
body.page-decide .kbd-legend { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
body.page-decide .kbd-item { display: inline-flex; align-items: center; gap: 4px; }
body.page-decide kbd {
      font-family: var(--font); font-size: 11px; font-weight: 600; padding: 1px 6px;
      border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--ink);
    }
body.page-decide #tab-approval:checked ~ .workspace-grid .decide-row:not(.cat-approval), body.page-decide #tab-drafts:checked ~ .workspace-grid .decide-row:not(.cat-draft), body.page-decide #tab-blocked:checked ~ .workspace-grid .decide-row:not(.cat-blocked), body.page-decide #tab-failed:checked ~ .workspace-grid .decide-row:not(.cat-failed), body.page-decide #tab-empty:checked ~ .workspace-grid .decide-row { display: none; }
body.page-decide .empty-state { display: none; padding: 36px 24px; text-align: center; color: var(--muted); font-size: 14px; }
body.page-decide #tab-empty:checked ~ .workspace-grid .empty-state { display: block; }
body.page-decide .workspace-grid {
      display: grid; grid-template-columns: 1fr 400px; gap: 20px;
      padding: 20px 28px 32px; align-items: start;
    }
body.page-decide .queue-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
body.page-decide .decide-row {
      display: grid; grid-template-columns: 32px 1fr auto; align-items: center;
      gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border);
    }
body.page-decide .decide-row:last-of-type { border-bottom: none; }
body.page-decide .decide-row.selected { background: var(--bg); }
body.page-decide .source-icon {
      width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border);
      background: var(--bg); display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 700; color: var(--ink);
    }
body.page-decide .row-main { min-width: 0; }
body.page-decide .row-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.page-decide .row-title { font-weight: 600; font-size: 14px; color: var(--ink); }
body.page-decide .row-age { font-size: 12px; color: var(--muted); }
body.page-decide .row-why { color: var(--muted); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.page-decide .row-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
body.page-decide .pill {
      display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px;
      border-radius: var(--radius-pill); font-size: 11px; font-weight: 600;
      border: 1px solid var(--border); background: var(--surface); white-space: nowrap;
    }
body.page-decide .dot { width: 6px; height: 6px; border-radius: var(--radius-pill); }
body.page-decide .pill-approval { color: var(--amber); }
body.page-decide .pill-approval .dot { background: var(--amber); }
body.page-decide .pill-draft { color: var(--violet); }
body.page-decide .pill-draft .dot { background: var(--violet); }
body.page-decide .pill-blocked { color: var(--blue); }
body.page-decide .pill-blocked .dot { background: var(--blue); }
body.page-decide .pill-failed { color: var(--red); }
body.page-decide .pill-failed .dot { background: var(--red); }
body.page-decide .row-actions { display: flex; align-items: center; gap: 5px; }
body.page-decide .btn {
      border: 1px solid var(--border); background: var(--surface); color: var(--ink);
      border-radius: var(--radius-pill); padding: 4px 10px; font: inherit;
      font-size: 12px; font-weight: 500; cursor: pointer;
    }
body.page-decide .btn-accent { background: var(--accent); border-color: var(--accent); color: var(--surface); }
body.page-decide .btn-quiet { color: var(--muted); }
body.page-decide .detail-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); padding: 18px; display: flex;
      flex-direction: column; gap: 14px; position: sticky; top: 20px;
    }
body.page-decide .detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
body.page-decide .detail-kicker { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
body.page-decide .detail-title { font-size: 15px; font-weight: 600; margin-top: 2px; }
body.page-decide .stop-reason { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 12px; }
body.page-decide .stop-reason strong { display: block; color: var(--ink); margin-bottom: 2px; }
body.page-decide .stop-reason span { color: var(--muted); }
body.page-decide .payload-box {
      border: 1px solid var(--border); border-radius: 10px; padding: 12px;
      background: var(--surface); font-size: 12.5px; display: flex; flex-direction: column; gap: 8px;
    }
body.page-decide .payload-meta { font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 8px; display: flex; flex-direction: column; gap: 2px; }
body.page-decide .redact { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--muted); }
body.page-decide .detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; border-top: 1px solid var(--border); flex-wrap: wrap; }
@media (max-width: 1100px) {
body.page-decide .workspace-grid { grid-template-columns: 1fr; }
body.page-decide .detail-card { position: static; }
}
@media (max-width: 760px) {
body.page-decide .shell { grid-template-columns: 1fr; }
body.page-decide .sidebar { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 16px; gap: 12px; }
body.page-decide .topbar, body.page-decide .subbar, body.page-decide .workspace-grid { padding-left: 16px; padding-right: 16px; }
body.page-decide .topbar { flex-direction: column; align-items: stretch; }
body.page-decide .search-box { width: 100%; }
body.page-decide .kbd-legend { display: none; }
body.page-decide .decide-row { grid-template-columns: 30px 1fr; gap: 10px; }
body.page-decide .row-why { white-space: normal; }
body.page-decide .row-right { grid-column: 1 / -1; justify-content: space-between; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--border); }
}

/* === work-accounts.html (page-accounts) === */
body.page-accounts {
      background: var(--bg);
      color: var(--ink);
      font-family: var(--font);
      font-size: 14px;
      line-height: 1.45;
      font-variant-numeric: tabular-nums;
      -webkit-font-smoothing: antialiased;
    }
body.page-accounts .shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
body.page-accounts .main { display: flex; flex-direction: column; min-width: 0; }
body.page-accounts .top-header { padding: 22px 28px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
body.page-accounts .header-title-block h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
body.page-accounts .header-subtitle { color: var(--muted); font-size: 13px; margin-top: 2px; }
body.page-accounts .header-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.page-accounts .search-box { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 6px 12px; width: 210px; color: var(--muted); font-size: 12px; }
body.page-accounts .search-box input { border: none; background: transparent; outline: none; color: var(--ink); font: inherit; font-size: 13px; width: 100%; }
body.page-accounts .period-toggle { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px; }
body.page-accounts .period-btn { padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; color: var(--muted); border: none; background: transparent; cursor: pointer; font-family: inherit; }
body.page-accounts .period-btn.active { background: var(--surface); color: var(--ink); font-weight: 600; }
body.page-accounts .btn-dark-primary { background: var(--ink); color: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius-pill); padding: 7px 14px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; white-space: nowrap; }
body.page-accounts .sub-tabs { display: flex; align-items: center; gap: 6px; padding: 10px 28px; border-bottom: 1px solid var(--border); background: var(--surface); overflow-x: auto; }
body.page-accounts .sub-tab { padding: 6px 12px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; border: 1px solid transparent; }
body.page-accounts .sub-tab.active { background: var(--bg); color: var(--ink); border-color: var(--border); font-weight: 600; }
body.page-accounts .content-body { padding: 22px 28px 36px; display: flex; flex-direction: column; gap: 20px; }
body.page-accounts .kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
body.page-accounts .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px 18px; }
body.page-accounts .kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 500; }
body.page-accounts .kpi-value-row { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 0 10px; }
body.page-accounts .kpi-num { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
body.page-accounts .kpi-target { font-size: 12px; color: var(--muted); }
body.page-accounts .seg-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; height: 6px; }
body.page-accounts .seg { background: var(--border); border-radius: var(--radius-pill); }
body.page-accounts .seg.fill-green { background: var(--green); }
body.page-accounts .seg.fill-blue { background: var(--blue); }
body.page-accounts .seg.fill-amber { background: var(--amber); }
body.page-accounts .seg.fill-violet { background: var(--violet); }
body.page-accounts .kpi-foot { margin-top: 8px; font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; }
body.page-accounts .work-split { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
body.page-accounts .table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
body.page-accounts .table-toolbar { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.page-accounts .filter-tabs { display: inline-flex; gap: 6px; flex-wrap: wrap; }
body.page-accounts .filter-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid var(--border); background: var(--bg); cursor: pointer; }
body.page-accounts .filter-pill.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
body.page-accounts .filter-count { font-size: 11px; opacity: 0.8; }
body.page-accounts .legend-inline { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
body.page-accounts .not-connected-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); padding: 3px 9px; border-radius: var(--radius-pill); border: 1px dashed var(--border); background: var(--bg); }
body.page-accounts .table-scroll { overflow-x: auto; }
body.page-accounts table { width: 100%; border-collapse: collapse; min-width: 780px; }
body.page-accounts th { text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg); white-space: nowrap; }
body.page-accounts td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 12.5px; }
body.page-accounts tr:last-child td { border-bottom: none; }
body.page-accounts tr.selected-row { background: var(--bg); }
body.page-accounts .co-name { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; }
body.page-accounts .co-region { font-size: 10px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0 5px; }
body.page-accounts .co-type { font-size: 11px; color: var(--muted); margin-top: 2px; }
body.page-accounts .contact-name { font-weight: 500; color: var(--ink); }
body.page-accounts .contact-role { font-size: 11px; color: var(--muted); }
body.page-accounts .stage-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; border: 1px solid var(--border); white-space: nowrap; }
body.page-accounts .dot { width: 6px; height: 6px; border-radius: var(--radius-pill); }
body.page-accounts .stage-guided { color: var(--violet); background: var(--surface); border-color: var(--violet); }
body.page-accounts .stage-guided .dot { background: var(--violet); }
body.page-accounts .stage-running { color: var(--blue); background: var(--surface); border-color: var(--blue); }
body.page-accounts .stage-running .dot { background: var(--blue); }
body.page-accounts .stage-stalled { color: var(--red); background: var(--surface); border-color: var(--red); }
body.page-accounts .stage-stalled .dot { background: var(--red); }
body.page-accounts .stage-converted { color: var(--green); background: var(--surface); border-color: var(--green); }
body.page-accounts .stage-converted .dot { background: var(--green); }
body.page-accounts .milestone-cell { margin-top: 6px; display: flex; align-items: center; gap: 6px; }
body.page-accounts .ms-track { display: inline-flex; align-items: center; }
body.page-accounts .ms-node { width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--border); border: 1px solid var(--border); }
body.page-accounts .ms-node.done { background: var(--green); border-color: var(--green); }
body.page-accounts .ms-node.current { background: var(--surface); border: 2px solid var(--violet); width: 8px; height: 8px; }
body.page-accounts .ms-node.alert { background: var(--surface); border: 2px solid var(--red); width: 8px; height: 8px; }
body.page-accounts .ms-line { width: 8px; height: 1.5px; background: var(--border); }
body.page-accounts .ms-line.done { background: var(--green); }
body.page-accounts .ms-caption { font-size: 11px; color: var(--muted); white-space: nowrap; }
body.page-accounts .owner-badge { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: var(--radius-pill); border: 1px solid var(--border); margin-right: 4px; background: var(--bg); }
body.page-accounts .owner-michel { border-color: var(--violet); color: var(--violet); background: var(--surface); }
body.page-accounts .row-menu-btn { border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 14px; padding: 2px 6px; border-radius: 6px; cursor: pointer; }
body.page-accounts .row-menu-btn:hover { border-color: var(--border); background: var(--bg); color: var(--ink); }
body.page-accounts .detail-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px; display: flex; flex-direction: column; gap: 16px; }
body.page-accounts .detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
body.page-accounts .detail-co { font-size: 15px; font-weight: 600; }
body.page-accounts .detail-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
body.page-accounts .section-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 8px; }
body.page-accounts .ms-list { display: flex; flex-direction: column; gap: 7px; }
body.page-accounts .ms-item { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
body.page-accounts .ms-item-left { display: flex; align-items: center; gap: 8px; }
body.page-accounts .ms-time { font-size: 11px; color: var(--muted); }
body.page-accounts .touch-list { display: flex; flex-direction: column; gap: 10px; }
body.page-accounts .touch-item { padding: 9px 11px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); font-size: 12px; }
body.page-accounts .touch-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 3px; font-weight: 500; }
body.page-accounts .next-action-box { padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
body.page-accounts .btn-accent-primary { background: var(--accent); color: var(--surface); border: none; border-radius: var(--radius-pill); padding: 9px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; text-align: center; width: 100%; }
body.page-accounts .telemetry-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding-top: 8px; border-top: 1px solid var(--border); color: var(--muted); }
@media (max-width: 1100px) {
body.page-accounts .work-split { grid-template-columns: 1fr; }
body.page-accounts .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
body.page-accounts .shell { grid-template-columns: 1fr; }
body.page-accounts .top-header { padding: 16px; flex-direction: column; }
body.page-accounts .header-controls, body.page-accounts .search-box { width: 100%; }
body.page-accounts .sub-tabs { padding: 8px 16px; }
body.page-accounts .content-body { padding: 16px; }
body.page-accounts .kpi-grid { grid-template-columns: 1fr; }
}

/* === work-pipeline.html (page-pipeline) === */
body.page-pipeline {
      background: var(--bg); color: var(--ink); font-family: var(--font);
      font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums;
      -webkit-font-smoothing: antialiased;
    }
body.page-pipeline a { color: var(--accent); text-decoration: none; }
body.page-pipeline .shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
body.page-pipeline .sidebar {
      background: var(--surface); border-right: 1px solid var(--border);
      padding: 20px 16px; display: flex; flex-direction: column; gap: 20px;
    }
body.page-pipeline .brand { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
body.page-pipeline .brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
body.page-pipeline .workspace-switcher { display: flex; flex-direction: column; gap: 6px; }
body.page-pipeline .ws-chip {
      display: flex; align-items: center; justify-content: space-between;
      padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border);
      font-size: 12px; font-weight: 500; background: var(--bg);
    }
body.page-pipeline .ws-chip.active { background: var(--surface); border-color: var(--ink); font-weight: 600; }
body.page-pipeline .ws-chip.disabled { color: var(--muted); opacity: 0.65; }
body.page-pipeline .ws-soon { font-size: 11px; color: var(--muted); font-weight: 400; }
body.page-pipeline .nav-group { display: flex; flex-direction: column; gap: 2px; }
body.page-pipeline .nav-label {
      font-size: 11px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 0.04em; color: var(--muted); padding: 4px 10px;
    }
body.page-pipeline .nav-item {
      display: flex; align-items: center; justify-content: space-between;
      padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 500;
    }
body.page-pipeline .nav-item:hover { background: var(--bg); }
body.page-pipeline .nav-item.active { background: var(--bg); font-weight: 600; }
body.page-pipeline .nav-badge {
      font-size: 11px; font-weight: 600; padding: 1px 8px;
      border-radius: var(--radius-pill); background: var(--surface);
      border: 1px solid var(--border); color: var(--ink);
    }
body.page-pipeline .main { display: flex; flex-direction: column; min-width: 0; }
body.page-pipeline .topbar {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 16px; padding: 22px 28px 18px; border-bottom: 1px solid var(--border);
      background: var(--surface); flex-wrap: wrap;
    }
body.page-pipeline .page-title h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
body.page-pipeline .page-title p { color: var(--muted); font-size: 13px; margin-top: 2px; }
body.page-pipeline .topbar-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.page-pipeline .search-box {
      display: flex; align-items: center; gap: 8px; background: var(--bg);
      border: 1px solid var(--border); border-radius: var(--radius-pill);
      padding: 6px 12px; width: 210px;
    }
body.page-pipeline .search-box input {
      border: none; background: transparent; outline: none;
      color: var(--ink); font: inherit; font-size: 13px; width: 100%;
    }
body.page-pipeline .period-toggle {
      display: inline-flex; background: var(--bg); border: 1px solid var(--border);
      border-radius: var(--radius-pill); padding: 2px;
    }
body.page-pipeline .period-btn {
      border: none; background: transparent; color: var(--muted); font: inherit;
      font-size: 12px; font-weight: 500; padding: 4px 10px;
      border-radius: var(--radius-pill); cursor: pointer;
    }
body.page-pipeline .period-btn.active { background: var(--surface); color: var(--ink); font-weight: 600; }
body.page-pipeline .btn-primary-dark {
      background: var(--ink); color: var(--surface); border: 1px solid var(--ink);
      border-radius: var(--radius-pill); padding: 7px 14px; font: inherit;
      font-size: 13px; font-weight: 500; cursor: pointer;
    }
body.page-pipeline .work-tabs {
      display: flex; align-items: center; gap: 6px; padding: 12px 28px;
      background: var(--surface); border-bottom: 1px solid var(--border);
      overflow-x: auto; flex-wrap: wrap;
    }
body.page-pipeline .work-tab {
      display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
      border-radius: var(--radius-pill); border: 1px solid transparent;
      color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap;
    }
body.page-pipeline .work-tab:hover { background: var(--bg); color: var(--ink); }
body.page-pipeline .work-tab.active { background: var(--bg); border-color: var(--ink); color: var(--ink); font-weight: 600; }
body.page-pipeline .pill {
      display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px;
      border-radius: var(--radius-pill); border: 1px solid var(--border);
      background: var(--surface); font-size: 11px; font-weight: 600; color: var(--ink); white-space: nowrap;
    }
body.page-pipeline .dot { width: 7px; height: 7px; border-radius: var(--radius-pill); display: inline-block; }
body.page-pipeline .chip-overdue-amber { border-color: var(--amber); color: var(--amber); background: var(--surface); }
body.page-pipeline .chip-overdue-amber .dot { background: var(--amber); }
body.page-pipeline .chip-overdue-red { border-color: var(--red); color: var(--red); background: var(--surface); }
body.page-pipeline .chip-overdue-red .dot { background: var(--red); }
body.page-pipeline .chip-ok { color: var(--muted); background: var(--bg); }
body.page-pipeline .not-connected {
      display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px;
      border-radius: var(--radius-pill); border: 1px dashed var(--border);
      background: var(--bg); font-size: 11px; font-weight: 500; color: var(--muted);
    }
body.page-pipeline .btn {
      border: 1px solid var(--border); background: var(--surface); color: var(--ink);
      border-radius: var(--radius-pill); padding: 5px 11px; font: inherit;
      font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap;
    }
body.page-pipeline .btn:hover { background: var(--bg); }
body.page-pipeline .btn-accent { background: var(--accent); border-color: var(--accent); color: var(--surface); }
body.page-pipeline .btn-accent:hover { background: var(--accent); opacity: 0.92; }
body.page-pipeline .content { padding: 22px 28px 36px; display: flex; flex-direction: column; gap: 20px; }
body.page-pipeline .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px; }
body.page-pipeline .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
body.page-pipeline .section-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
body.page-pipeline .section-sub { font-size: 12px; color: var(--muted); }
body.page-pipeline .kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
body.page-pipeline .kpi-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); padding: 16px; display: flex; flex-direction: column; gap: 10px;
    }
body.page-pipeline .kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.page-pipeline .kpi-label { font-size: 12px; font-weight: 500; color: var(--muted); }
body.page-pipeline .kpi-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
body.page-pipeline .kpi-value { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
body.page-pipeline .kpi-target {
      font-size: 12px; color: var(--muted); display: flex; align-items: center;
      justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding-top: 8px;
    }
body.page-pipeline .sparkline { width: 78px; height: 26px; flex-shrink: 0; }
body.page-pipeline .rev-layout { display: grid; grid-template-columns: 1fr 290px; gap: 16px; align-items: stretch; }
body.page-pipeline .bars-wrap {
      display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
      align-items: end; height: 168px; padding: 18px 8px 6px; border-bottom: 1px solid var(--border);
    }
body.page-pipeline .bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
body.page-pipeline .bar-val { font-size: 11px; font-weight: 600; color: var(--muted); }
body.page-pipeline .bar-fill { width: 100%; max-width: 52px; border-radius: 6px 6px 2px 2px; background: var(--bg); border: 1px solid var(--border); }
body.page-pipeline .bar-col.latest .bar-fill { background: var(--accent); border-color: var(--accent); }
body.page-pipeline .bar-col.latest .bar-val, body.page-pipeline .bar-col.latest .bar-month { color: var(--ink); font-weight: 600; }
body.page-pipeline .bar-month { font-size: 12px; color: var(--muted); padding-top: 4px; }
body.page-pipeline .source-card {
      background: var(--bg); border: 1px solid var(--border);
      border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px;
    }
body.page-pipeline .source-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; padding: 4px 0; border-bottom: 1px solid var(--border); }
body.page-pipeline .source-row:last-child { border-bottom: none; }
body.page-pipeline .board-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
body.page-pipeline .stage-col {
      background: var(--bg); border: 1px solid var(--border);
      border-radius: var(--radius-card); padding: 12px; display: flex; flex-direction: column; gap: 10px;
    }
body.page-pipeline .stage-header { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
body.page-pipeline .stage-name { font-size: 12px; font-weight: 600; }
body.page-pipeline .stage-sum { font-size: 11px; color: var(--muted); font-weight: 500; }
body.page-pipeline .deal-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 10px; padding: 10px 11px; display: flex; flex-direction: column; gap: 6px;
    }
body.page-pipeline .deal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
body.page-pipeline .deal-company { font-weight: 600; font-size: 13px; line-height: 1.25; }
body.page-pipeline .deal-value { font-weight: 600; font-size: 12px; color: var(--ink); white-space: nowrap; }
body.page-pipeline .deal-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
body.page-pipeline .bottom-grid { display: grid; grid-template-columns: 1fr 350px; gap: 16px; align-items: start; }
body.page-pipeline .table-wrap { overflow-x: auto; }
body.page-pipeline table { width: 100%; border-collapse: collapse; font-size: 13px; }
body.page-pipeline th {
      text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 0.04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border);
    }
body.page-pipeline td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
body.page-pipeline tr:last-child td { border-bottom: none; }
body.page-pipeline .td-company { font-weight: 600; }
body.page-pipeline .td-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
body.page-pipeline .signal-list { display: flex; flex-direction: column; gap: 10px; }
body.page-pipeline .signal-item { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
body.page-pipeline .signal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.page-pipeline .signal-tag { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); }
body.page-pipeline .signal-body { font-size: 12.5px; color: var(--ink); }
body.page-pipeline .signal-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); }
@media (max-width: 1180px) {
body.page-pipeline .kpi-grid, body.page-pipeline .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.page-pipeline .rev-layout, body.page-pipeline .bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
body.page-pipeline .shell, body.page-pipeline .kpi-grid, body.page-pipeline .board-grid { grid-template-columns: 1fr; }
body.page-pipeline .sidebar { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 16px; gap: 12px; }
body.page-pipeline .topbar, body.page-pipeline .work-tabs, body.page-pipeline .content { padding-left: 16px; padding-right: 16px; }
body.page-pipeline .topbar { flex-direction: column; align-items: stretch; }
body.page-pipeline .search-box { width: 100%; }
body.page-pipeline .bars-wrap { gap: 6px; height: 140px; }
body.page-pipeline th, body.page-pipeline td { padding: 8px 6px; font-size: 12px; }
}

/* === work-raise.html (page-raise) === */
body.page-raise {
      background: var(--bg); color: var(--ink); font-family: var(--font);
      font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums;
      -webkit-font-smoothing: antialiased;
    }
body.page-raise a { color: var(--accent); text-decoration: none; }
body.page-raise .shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
body.page-raise .sidebar {
      background: var(--surface); border-right: 1px solid var(--border);
      padding: 20px 16px; display: flex; flex-direction: column; gap: 20px;
    }
body.page-raise .brand { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
body.page-raise .brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
body.page-raise .workspace-switcher { display: flex; flex-direction: column; gap: 6px; }
body.page-raise .ws-chip {
      display: flex; align-items: center; justify-content: space-between;
      padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border);
      font-size: 12px; font-weight: 500; background: var(--bg);
    }
body.page-raise .ws-chip.active { background: var(--surface); border-color: var(--ink); font-weight: 600; }
body.page-raise .ws-chip.disabled { color: var(--muted); opacity: 0.65; }
body.page-raise .ws-soon { font-size: 11px; color: var(--muted); font-weight: 400; }
body.page-raise .dot { width: 7px; height: 7px; border-radius: var(--radius-pill); display: inline-block; flex-shrink: 0; }
body.page-raise .nav-group { display: flex; flex-direction: column; gap: 2px; }
body.page-raise .nav-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 4px 10px; }
body.page-raise .nav-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 500; }
body.page-raise .nav-item:hover { background: var(--bg); }
body.page-raise .nav-item.active { background: var(--bg); font-weight: 600; }
body.page-raise .nav-badge { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); color: var(--ink); }
body.page-raise .main { display: flex; flex-direction: column; min-width: 0; }
body.page-raise .topbar {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 16px; padding: 22px 28px 18px; border-bottom: 1px solid var(--border);
      background: var(--surface); flex-wrap: wrap;
    }
body.page-raise .page-title h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
body.page-raise .page-title p { color: var(--muted); font-size: 13px; margin-top: 2px; }
body.page-raise .topbar-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.page-raise .search-box {
      display: flex; align-items: center; gap: 8px; background: var(--bg);
      border: 1px solid var(--border); border-radius: var(--radius-pill);
      padding: 6px 12px; width: 220px;
    }
body.page-raise .search-box input { border: none; background: transparent; outline: none; color: var(--ink); font: inherit; font-size: 13px; width: 100%; }
body.page-raise .period-toggle { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px; }
body.page-raise .period-btn { border: none; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: var(--radius-pill); cursor: pointer; }
body.page-raise .period-btn.active { background: var(--surface); color: var(--ink); font-weight: 600; }
body.page-raise .btn-primary-dark { background: var(--ink); color: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius-pill); padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
body.page-raise .work-tabs {
      display: flex; align-items: center; gap: 6px; padding: 12px 28px;
      border-bottom: 1px solid var(--border); background: var(--surface); overflow-x: auto; flex-wrap: nowrap;
    }
body.page-raise .work-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: var(--radius-pill); border: 1px solid transparent; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
body.page-raise .work-tab:hover { color: var(--ink); background: var(--bg); }
body.page-raise .work-tab.active { background: var(--bg); border-color: var(--ink); color: var(--ink); font-weight: 600; }
body.page-raise .content { padding: 22px 28px 36px; display: flex; flex-direction: column; gap: 18px; }
body.page-raise .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px 20px; }
body.page-raise .pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border); font-size: 12px; font-weight: 500; background: var(--surface); color: var(--ink); white-space: nowrap; }
body.page-raise .pill-green { color: var(--green); }
body.page-raise .pill-blue { color: var(--blue); }
body.page-raise .pill-violet { color: var(--violet); }
body.page-raise .pill-amber { color: var(--amber); }
body.page-raise .pill-red { color: var(--red); }
body.page-raise .pill-muted { color: var(--muted); background: var(--bg); }
body.page-raise .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
body.page-raise .btn-accent { background: var(--accent); border-color: var(--accent); color: var(--surface); }
body.page-raise .goal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
body.page-raise .goal-kicker { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
body.page-raise .goal-headline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 3px; }
body.page-raise .goal-amount { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
body.page-raise .goal-target { font-size: 14px; color: var(--muted); }
body.page-raise .goal-bar-wrap { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
body.page-raise .segmented-bar { height: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill); display: flex; overflow: hidden; }
body.page-raise .seg-committed { width: 24%; background: var(--green); }
body.page-raise .seg-soft { width: 17%; background: var(--violet); }
body.page-raise .seg-convo { width: 29%; background: var(--blue); }
body.page-raise .milestones { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 11px; color: var(--muted); padding-top: 2px; }
body.page-raise .ms-tick { display: flex; flex-direction: column; align-items: flex-end; border-right: 1px solid var(--border); padding-right: 6px; }
body.page-raise .ms-tick:last-child { border-right: none; padding-right: 0; }
body.page-raise .ms-pct { font-weight: 600; color: var(--ink); }
body.page-raise .goal-breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
body.page-raise .bd-item { display: flex; flex-direction: column; gap: 2px; }
body.page-raise .bd-label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
body.page-raise .bd-val { font-size: 15px; font-weight: 600; }
body.page-raise .bd-sub { font-size: 11px; color: var(--muted); }
body.page-raise .funnel-strip { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
body.page-raise .funnel-step { padding: 14px 16px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
body.page-raise .funnel-step:last-child { border-right: none; }
body.page-raise .funnel-stage { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 500; color: var(--muted); }
body.page-raise .funnel-count { font-size: 20px; font-weight: 600; color: var(--ink); }
body.page-raise .funnel-meta { font-size: 11px; color: var(--muted); }
body.page-raise .workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; align-items: start; }
body.page-raise .left-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
body.page-raise .table-card { padding: 0; overflow: hidden; }
body.page-raise .table-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); gap: 12px; flex-wrap: wrap; }
body.page-raise .table-header h2 { font-size: 15px; font-weight: 600; }
body.page-raise .table-sub { font-size: 12px; color: var(--muted); }
body.page-raise .table-scroll { overflow-x: auto; }
body.page-raise table { width: 100%; border-collapse: collapse; text-align: left; }
body.page-raise th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg); white-space: nowrap; }
body.page-raise td { padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
body.page-raise tbody tr:last-child td { border-bottom: none; }
body.page-raise tbody tr:hover, body.page-raise tbody tr.selected { background: var(--bg); }
body.page-raise tbody tr.selected td:first-child { box-shadow: inset 3px 0 0 var(--ink); }
body.page-raise .inv-name { font-weight: 600; color: var(--ink); display: block; }
body.page-raise .inv-ticket { font-size: 11px; color: var(--muted); }
body.page-raise .row-menu { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: var(--radius-pill); width: 26px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; }
body.page-raise .qa-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
body.page-raise .qa-progress-bar { height: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; margin-bottom: 14px; display: flex; }
body.page-raise .qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
body.page-raise .qa-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font-size: 12.5px; background: var(--surface); }
body.page-raise .qa-item-left { display: flex; align-items: flex-start; gap: 8px; }
body.page-raise .qa-check { width: 15px; height: 15px; border-radius: 4px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
body.page-raise .qa-check.pass { border-color: var(--green); color: var(--green); }
body.page-raise .qa-check.gap { border-color: var(--amber); color: var(--amber); }
body.page-raise .detail-panel { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; }
body.page-raise .detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
body.page-raise .detail-title { font-size: 16px; font-weight: 600; margin-top: 2px; }
body.page-raise .detail-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; font-size: 12px; }
body.page-raise .meta-k { color: var(--muted); font-size: 11px; }
body.page-raise .meta-v { font-weight: 600; color: var(--ink); }
body.page-raise .thread-list { display: flex; flex-direction: column; gap: 8px; }
body.page-raise .msg-box { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
body.page-raise .msg-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); }
body.page-raise .msg-author { font-weight: 600; color: var(--ink); }
body.page-raise .draft-box { border: 1px solid var(--ink); border-radius: 10px; padding: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
body.page-raise .draft-header { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); }
body.page-raise .draft-subject { font-size: 12px; font-weight: 600; color: var(--ink); padding-bottom: 6px; border-bottom: 1px solid var(--border); }
body.page-raise .detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; border-top: 1px solid var(--border); }
@media (max-width: 1180px) {
body.page-raise .workspace-grid { grid-template-columns: 1fr; }
body.page-raise .detail-panel { position: static; }
}
@media (max-width: 760px) {
body.page-raise .shell { grid-template-columns: 1fr; }
body.page-raise .sidebar { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 16px; gap: 12px; }
body.page-raise .topbar, body.page-raise .work-tabs, body.page-raise .content { padding-left: 16px; padding-right: 16px; }
body.page-raise .topbar { flex-direction: column; align-items: stretch; }
body.page-raise .search-box { width: 100%; }
body.page-raise .goal-breakdown { grid-template-columns: repeat(2, 1fr); }
body.page-raise .funnel-strip, body.page-raise .qa-grid { grid-template-columns: 1fr; }
body.page-raise .funnel-step { border-right: none; border-bottom: 1px solid var(--border); }
body.page-raise .funnel-step:last-child { border-bottom: none; }
body.page-raise .milestones { font-size: 10px; }
}

/* === work-marketing.html (page-marketing) === */
body.page-marketing {
      background: var(--bg); color: var(--ink); font-family: var(--font);
      font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums;
      -webkit-font-smoothing: antialiased;
    }
body.page-marketing a { color: var(--accent); text-decoration: none; }
body.page-marketing .shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
body.page-marketing .sidebar {
      background: var(--surface); border-right: 1px solid var(--border);
      padding: 20px 16px; display: flex; flex-direction: column; gap: 20px;
    }
body.page-marketing .brand { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
body.page-marketing .brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
body.page-marketing .pill {
      display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500;
      padding: 2px 8px; border-radius: var(--radius-pill); border: 1px solid var(--border);
      background: var(--bg); color: var(--muted);
    }
body.page-marketing .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
body.page-marketing .workspace-switcher { display: flex; flex-direction: column; gap: 6px; }
body.page-marketing .ws-chip {
      display: flex; align-items: center; justify-content: space-between;
      padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border);
      font-size: 12px; font-weight: 500; background: var(--bg);
    }
body.page-marketing .ws-chip.active { background: var(--surface); border-color: var(--ink); font-weight: 600; }
body.page-marketing .ws-chip.disabled { color: var(--muted); opacity: 0.65; }
body.page-marketing .ws-soon { font-size: 11px; color: var(--muted); font-weight: 400; }
body.page-marketing .nav-group { display: flex; flex-direction: column; gap: 2px; }
body.page-marketing .nav-label {
      font-size: 11px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 0.04em; color: var(--muted); padding: 4px 10px;
    }
body.page-marketing .nav-item {
      display: flex; align-items: center; justify-content: space-between;
      padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 500;
    }
body.page-marketing .nav-item:hover { background: var(--bg); }
body.page-marketing .nav-item.active { background: var(--bg); font-weight: 600; }
body.page-marketing .nav-sub { padding-left: 22px; font-size: 13px; color: var(--muted); }
body.page-marketing .nav-sub.active { color: var(--ink); background: var(--bg); font-weight: 600; }
body.page-marketing .nav-badge {
      font-size: 11px; font-weight: 600; padding: 1px 8px;
      border-radius: var(--radius-pill); background: var(--surface);
      border: 1px solid var(--border); color: var(--ink);
    }
body.page-marketing .main { display: flex; flex-direction: column; min-width: 0; }
body.page-marketing .topbar {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 16px; padding: 22px 28px 18px; border-bottom: 1px solid var(--border);
      background: var(--surface); flex-wrap: wrap;
    }
body.page-marketing .page-title h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
body.page-marketing .page-title p { color: var(--muted); font-size: 13px; margin-top: 2px; }
body.page-marketing .topbar-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.page-marketing .search-box {
      display: flex; align-items: center; gap: 8px; background: var(--bg);
      border: 1px solid var(--border); border-radius: var(--radius-pill);
      padding: 6px 12px; width: 220px;
    }
body.page-marketing .search-box input {
      border: none; background: transparent; outline: none;
      color: var(--ink); font: inherit; font-size: 13px; width: 100%;
    }
body.page-marketing .period-toggle {
      display: inline-flex; background: var(--bg); border: 1px solid var(--border);
      border-radius: var(--radius-pill); padding: 2px;
    }
body.page-marketing .period-btn {
      border: none; background: transparent; color: var(--muted); font: inherit;
      font-size: 12px; font-weight: 500; padding: 4px 10px;
      border-radius: var(--radius-pill); cursor: pointer;
    }
body.page-marketing .period-btn.active { background: var(--surface); color: var(--ink); font-weight: 600; }
body.page-marketing .btn-primary-dark {
      background: var(--ink); color: var(--surface); border: 1px solid var(--ink);
      border-radius: var(--radius-pill); padding: 7px 14px; font: inherit;
      font-size: 13px; font-weight: 500; cursor: pointer;
    }
body.page-marketing .subbar {
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px; padding: 12px 28px; border-bottom: 1px solid var(--border);
      background: var(--surface); flex-wrap: wrap;
    }
body.page-marketing .subtabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body.page-marketing .subtab {
      display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
      border-radius: var(--radius-pill); border: 1px solid var(--border);
      background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 500;
    }
body.page-marketing .subtab.active { background: var(--surface); border-color: var(--ink); color: var(--ink); font-weight: 600; }
body.page-marketing .subtab-count {
      font-size: 11px; padding: 0 6px; border-radius: var(--radius-pill);
      background: var(--bg); border: 1px solid var(--border); color: var(--ink); font-weight: 600;
    }
body.page-marketing .subbar-note { font-size: 12px; color: var(--muted); }
body.page-marketing .page-body { padding: 22px 28px 32px; display: flex; flex-direction: column; gap: 20px; }
body.page-marketing .kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
body.page-marketing .kpi-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); padding: 16px;
      display: flex; flex-direction: column; gap: 10px;
    }
body.page-marketing .kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.page-marketing .kpi-label { font-size: 12px; color: var(--muted); font-weight: 500; }
body.page-marketing .kpi-value-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
body.page-marketing .kpi-num { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
body.page-marketing .kpi-target { font-size: 12px; color: var(--muted); }
body.page-marketing .seg-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; height: 6px; }
body.page-marketing .seg { background: var(--bg); border: 1px solid var(--border); border-radius: 2px; }
body.page-marketing .seg.fill-green { background: var(--green); border-color: var(--green); }
body.page-marketing .seg.fill-blue { background: var(--blue); border-color: var(--blue); }
body.page-marketing .seg.fill-violet { background: var(--violet); border-color: var(--violet); }
body.page-marketing .seg.fill-amber { background: var(--amber); border-color: var(--amber); }
body.page-marketing .workspace-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
body.page-marketing .queue-panel {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); overflow: hidden;
    }
body.page-marketing .panel-head {
      display: flex; align-items: center; justify-content: space-between;
      padding: 14px 18px; border-bottom: 1px solid var(--border); gap: 12px; flex-wrap: wrap;
    }
body.page-marketing .panel-head h2 { font-size: 15px; font-weight: 600; }
body.page-marketing .panel-sub { font-size: 12px; color: var(--muted); }
body.page-marketing .draft-list { display: flex; flex-direction: column; }
body.page-marketing .draft-row {
      display: grid; grid-template-columns: 32px 1fr auto; gap: 12px;
      padding: 13px 18px; border-bottom: 1px solid var(--border); align-items: start;
    }
body.page-marketing .draft-row:last-child { border-bottom: none; }
body.page-marketing .draft-row.selected { background: var(--bg); }
body.page-marketing .chan-icon {
      width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
      background: var(--surface); display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 600; color: var(--ink);
    }
body.page-marketing .draft-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
body.page-marketing .draft-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.page-marketing .draft-recipient { font-weight: 600; font-size: 13.5px; color: var(--ink); }
body.page-marketing .draft-tag {
      font-size: 11px; font-weight: 500; padding: 1px 7px;
      border-radius: var(--radius-pill); border: 1px solid var(--border);
      background: var(--surface); color: var(--muted);
    }
body.page-marketing .draft-age { font-size: 12px; color: var(--muted); margin-left: auto; }
body.page-marketing .draft-preview { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.page-marketing .draft-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
body.page-marketing .btn {
      border: 1px solid var(--border); background: var(--surface); color: var(--ink);
      border-radius: var(--radius-pill); padding: 5px 10px; font: inherit;
      font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap;
    }
body.page-marketing .btn-accent { background: var(--accent); border-color: var(--accent); color: var(--surface); }
body.page-marketing .btn-quiet { color: var(--muted); }
body.page-marketing .detail-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); padding: 18px;
      display: flex; flex-direction: column; gap: 14px;
    }
body.page-marketing .detail-header {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 12px;
    }
body.page-marketing .detail-kicker { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
body.page-marketing .detail-title { font-size: 16px; font-weight: 600; margin-top: 2px; }
body.page-marketing .context-box {
      background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
      padding: 11px 12px; font-size: 12.5px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px;
    }
body.page-marketing .ctx-item span { display: block; font-size: 11px; color: var(--muted); }
body.page-marketing .ctx-item strong { font-weight: 600; color: var(--ink); }
body.page-marketing .not-connected { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--amber); font-weight: 500; }
body.page-marketing .draft-body-box {
      border: 1px solid var(--border); border-radius: 10px; padding: 12px;
      background: var(--surface); font-size: 13px; display: flex; flex-direction: column; gap: 8px;
    }
body.page-marketing .draft-meta {
      font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border);
      padding-bottom: 8px; display: flex; flex-direction: column; gap: 2px;
    }
body.page-marketing .thread-box { display: flex; flex-direction: column; gap: 8px; }
body.page-marketing .thread-item { border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; background: var(--bg); font-size: 12px; }
body.page-marketing .thread-item-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-bottom: 3px; font-weight: 500; }
body.page-marketing .detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); flex-wrap: wrap; }
body.page-marketing .summary-strip {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); padding: 14px 18px;
      display: flex; flex-direction: column; gap: 12px;
    }
body.page-marketing .strip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
body.page-marketing .strip-title { font-size: 13px; font-weight: 600; }
body.page-marketing .strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
body.page-marketing .strip-item {
      border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px;
      background: var(--bg); display: flex; flex-direction: column; gap: 4px;
    }
body.page-marketing .strip-item-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
body.page-marketing .strip-name { font-size: 12px; font-weight: 600; color: var(--ink); }
body.page-marketing .strip-num { font-size: 20px; font-weight: 600; color: var(--ink); }
body.page-marketing .strip-desc { font-size: 12px; color: var(--muted); }
@media (max-width: 1120px) {
body.page-marketing .kpi-grid, body.page-marketing .strip-grid { grid-template-columns: repeat(2, 1fr); }
body.page-marketing .workspace-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
body.page-marketing .shell { grid-template-columns: 1fr; }
body.page-marketing .sidebar { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 16px; gap: 12px; }
body.page-marketing .topbar, body.page-marketing .subbar, body.page-marketing .page-body { padding-left: 14px; padding-right: 14px; }
body.page-marketing .topbar { flex-direction: column; align-items: stretch; }
body.page-marketing .search-box { width: 100%; }
body.page-marketing .kpi-grid, body.page-marketing .strip-grid, body.page-marketing .context-box { grid-template-columns: 1fr; }
body.page-marketing .draft-row { grid-template-columns: 32px 1fr; }
body.page-marketing .draft-preview { white-space: normal; }
body.page-marketing .draft-actions { grid-column: 1 / -1; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--border); }
}

/* === work-product.html (page-product) === */
body.page-product {
      background: var(--bg); color: var(--ink); font-family: var(--font);
      font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums;
      -webkit-font-smoothing: antialiased;
    }
body.page-product a { color: var(--accent); text-decoration: none; }
body.page-product .shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
body.page-product .sidebar {
      background: var(--surface); border-right: 1px solid var(--border);
      padding: 20px 16px; display: flex; flex-direction: column; gap: 20px;
    }
body.page-product .brand { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
body.page-product .brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
body.page-product .workspace-switcher { display: flex; flex-direction: column; gap: 6px; }
body.page-product .ws-chip {
      display: flex; align-items: center; justify-content: space-between;
      padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border);
      font-size: 12px; font-weight: 500; background: var(--bg);
    }
body.page-product .ws-chip.active { background: var(--surface); border-color: var(--ink); font-weight: 600; }
body.page-product .ws-chip.disabled { color: var(--muted); opacity: 0.65; }
body.page-product .ws-soon { font-size: 11px; color: var(--muted); font-weight: 400; }
body.page-product .dot { width: 7px; height: 7px; border-radius: var(--radius-pill); display: inline-block; flex-shrink: 0; }
body.page-product .nav-group { display: flex; flex-direction: column; gap: 2px; }
body.page-product .nav-label {
      font-size: 11px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 0.04em; color: var(--muted); padding: 4px 10px;
    }
body.page-product .nav-item {
      display: flex; align-items: center; justify-content: space-between;
      padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 500;
    }
body.page-product .nav-item:hover { background: var(--bg); }
body.page-product .nav-item.active { background: var(--bg); font-weight: 600; }
body.page-product .nav-sub.active { color: var(--ink); background: var(--bg); font-weight: 600; }
body.page-product .nav-badge {
      font-size: 11px; font-weight: 600; padding: 1px 8px;
      border-radius: var(--radius-pill); background: var(--surface);
      border: 1px solid var(--border); color: var(--ink);
    }
body.page-product .main { display: flex; flex-direction: column; min-width: 0; }
body.page-product .topbar {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 16px; padding: 22px 28px 18px; border-bottom: 1px solid var(--border);
      background: var(--surface); flex-wrap: wrap;
    }
body.page-product .page-title h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
body.page-product .page-title p { color: var(--muted); font-size: 13px; margin-top: 2px; }
body.page-product .topbar-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.page-product .search-box {
      display: flex; align-items: center; gap: 8px; background: var(--bg);
      border: 1px solid var(--border); border-radius: var(--radius-pill);
      padding: 6px 12px; width: 210px;
    }
body.page-product .search-box input {
      border: none; background: transparent; outline: none;
      color: var(--ink); font: inherit; font-size: 13px; width: 100%;
    }
body.page-product .period-toggle {
      display: inline-flex; background: var(--bg); border: 1px solid var(--border);
      border-radius: var(--radius-pill); padding: 2px;
    }
body.page-product .period-btn {
      border: none; background: transparent; color: var(--muted); font: inherit;
      font-size: 12px; font-weight: 500; padding: 4px 10px;
      border-radius: var(--radius-pill); cursor: pointer;
    }
body.page-product .period-btn.active { background: var(--surface); color: var(--ink); font-weight: 600; }
body.page-product .btn-primary-dark {
      background: var(--ink); color: var(--surface); border: 1px solid var(--ink);
      border-radius: var(--radius-pill); padding: 7px 14px; font: inherit;
      font-size: 13px; font-weight: 500; cursor: pointer;
    }
body.page-product .subbar {
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px; padding: 12px 28px; border-bottom: 1px solid var(--border);
      background: var(--surface); flex-wrap: wrap;
    }
body.page-product .subtabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.page-product .subtab {
      display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
      border-radius: var(--radius-pill); border: 1px solid var(--border);
      background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 500;
    }
body.page-product .subtab.active { background: var(--surface); border-color: var(--ink); color: var(--ink); font-weight: 600; }
body.page-product .subtab-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
body.page-product .content { padding: 22px 28px 32px; display: flex; flex-direction: column; gap: 20px; }
body.page-product .kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
body.page-product .kpi-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); padding: 16px;
      display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
    }
body.page-product .kpi-top, body.page-product .kpi-value-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
body.page-product .kpi-label { font-size: 12px; font-weight: 500; color: var(--muted); }
body.page-product .kpi-target { font-size: 11px; color: var(--muted); }
body.page-product .kpi-value { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
body.page-product .kpi-sub { font-size: 12px; color: var(--muted); }
body.page-product .seg-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; height: 6px; }
body.page-product .seg { border-radius: var(--radius-pill); background: var(--bg); border: 1px solid var(--border); }
body.page-product .seg.fill-green { background: var(--green); border-color: var(--green); }
body.page-product .seg.fill-violet { background: var(--violet); border-color: var(--violet); }
body.page-product .seg.fill-red { background: var(--red); border-color: var(--red); }
body.page-product .sparkline { width: 100%; height: 22px; display: block; }
body.page-product .workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
body.page-product .left-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
body.page-product .section-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); padding: 18px;
      display: flex; flex-direction: column; gap: 14px;
    }
body.page-product .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.page-product .section-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
body.page-product .section-note { font-size: 12px; color: var(--muted); }
body.page-product .board-grid { display: grid; grid-template-columns: repeat(5, minmax(156px, 1fr)); gap: 10px; overflow-x: auto; }
body.page-product .board-col {
      background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
      padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 156px;
    }
body.page-product .col-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; padding: 2px 4px; }
body.page-product .col-count {
      font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface);
      border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0 7px;
    }
body.page-product .task-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px;
    }
body.page-product .task-card.selected { border-color: var(--ink); }
body.page-product .task-title { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
body.page-product .task-chips { display: flex; align-items: center; justify-content: space-between; gap: 4px; flex-wrap: wrap; }
body.page-product .pill {
      display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px;
      border-radius: var(--radius-pill); border: 1px solid var(--border);
      background: var(--surface); font-size: 11px; font-weight: 500; color: var(--ink); white-space: nowrap;
    }
body.page-product .pill-muted { background: var(--bg); color: var(--muted); }
body.page-product .pill-green { color: var(--green); }
body.page-product .pill-blue { color: var(--blue); }
body.page-product .pill-violet { color: var(--violet); }
body.page-product .pill-amber { color: var(--amber); }
body.page-product .pill-red { color: var(--red); }
body.page-product .table-wrap { overflow-x: auto; }
body.page-product table.pr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
body.page-product .pr-table th {
      text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 0.04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border);
    }
body.page-product .pr-table td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
body.page-product .pr-table tr:last-child td { border-bottom: none; }
body.page-product .pr-title-cell { font-weight: 500; color: var(--ink); }
body.page-product .pr-num { color: var(--muted); font-weight: 400; margin-right: 6px; }
body.page-product .btn-review {
      display: inline-flex; align-items: center; justify-content: center;
      padding: 4px 12px; border-radius: var(--radius-pill); border: 1px solid var(--accent);
      background: var(--accent); color: var(--surface); font-size: 12px; font-weight: 500;
    }
body.page-product .detail-panel {
      background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
      padding: 18px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px;
    }
body.page-product .detail-head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
body.page-product .detail-kicker {
      display: flex; align-items: center; justify-content: space-between;
      font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
    }
body.page-product .detail-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
body.page-product .detail-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
body.page-product .timeline { display: flex; flex-direction: column; gap: 10px; }
body.page-product .tl-step { display: grid; grid-template-columns: 16px 1fr auto; align-items: baseline; gap: 8px; font-size: 12.5px; }
body.page-product .tl-marker { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--border); display: inline-block; }
body.page-product .tl-step.done .tl-marker { background: var(--green); }
body.page-product .tl-step.current .tl-marker { background: var(--blue); }
body.page-product .tl-label { font-weight: 500; }
body.page-product .tl-step.current .tl-label { font-weight: 600; color: var(--ink); }
body.page-product .tl-time { font-size: 11.5px; color: var(--muted); }
body.page-product .next-action-box {
      background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
      padding: 12px; display: flex; flex-direction: column; gap: 8px;
    }
body.page-product .next-action-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
body.page-product .next-action-text { font-size: 13px; font-weight: 500; color: var(--ink); }
body.page-product .btn-accent-full {
      width: 100%; text-align: center; padding: 8px 14px; border-radius: var(--radius-pill);
      border: 1px solid var(--accent); background: var(--accent); color: var(--surface); font-size: 13px; font-weight: 500;
    }
body.page-product .uat-strip {
      background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
      padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    }
body.page-product .uat-strip-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.page-product .uat-strip-title { font-size: 13px; font-weight: 600; }
body.page-product .uat-strip-sub { font-size: 12px; color: var(--muted); }
body.page-product .uat-metrics { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
body.page-product .uat-metric { display: flex; align-items: baseline; gap: 8px; padding-left: 16px; border-left: 1px solid var(--border); }
body.page-product .uat-metric:first-child { border-left: none; padding-left: 0; }
body.page-product .uat-num { font-size: 16px; font-weight: 600; }
body.page-product .uat-lbl { font-size: 12px; color: var(--muted); }
body.page-product .not-connected {
      font-size: 11px; font-weight: 500; color: var(--muted); padding: 2px 8px;
      border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--bg);
    }
@media (max-width: 1200px) {
body.page-product .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.page-product .workspace-grid { grid-template-columns: 1fr; }
body.page-product .detail-panel { position: static; }
}
@media (max-width: 760px) {
body.page-product .shell { grid-template-columns: 1fr; }
body.page-product .sidebar { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 16px; gap: 12px; }
body.page-product .topbar, body.page-product .subbar, body.page-product .content { padding-left: 16px; padding-right: 16px; }
body.page-product .topbar { flex-direction: column; align-items: stretch; }
body.page-product .search-box { width: 100%; }
body.page-product .kpi-grid, body.page-product .board-grid { grid-template-columns: 1fr; }
body.page-product .uat-metric { border-left: none; padding-left: 0; width: 100%; justify-content: space-between; }
}

/* === brain.html (page-brain) === */
body.page-brain {
      background: var(--bg);
      color: var(--ink);
      font-family: var(--font);
      font-size: 14px;
      line-height: 1.45;
      font-variant-numeric: tabular-nums;
      -webkit-font-smoothing: antialiased;
    }
body.page-brain a { color: var(--accent); text-decoration: none; }
body.page-brain .shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
body.page-brain .sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 20px 16px; display: flex; flex-direction: column; gap: 20px; }
body.page-brain .brand { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
body.page-brain .brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
body.page-brain .workspace-switcher { display: flex; flex-direction: column; gap: 6px; }
body.page-brain .ws-chip { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border); font-size: 12px; font-weight: 500; background: var(--bg); }
body.page-brain .ws-chip.active { background: var(--surface); border-color: var(--ink); font-weight: 600; }
body.page-brain .ws-chip.disabled { color: var(--muted); opacity: 0.65; }
body.page-brain .ws-soon { font-size: 11px; color: var(--muted); font-weight: 400; }
body.page-brain .nav-group { display: flex; flex-direction: column; gap: 2px; }
body.page-brain .nav-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 4px 10px; }
body.page-brain .nav-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 500; }
body.page-brain .nav-item:hover { background: var(--bg); }
body.page-brain .nav-item.active { background: var(--bg); font-weight: 600; }
body.page-brain .nav-sub { padding-left: 22px; font-size: 13px; color: var(--muted); }
body.page-brain .nav-badge { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); color: var(--ink); }
body.page-brain .main { display: flex; flex-direction: column; min-width: 0; }
body.page-brain .topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 28px 18px; border-bottom: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
body.page-brain .page-title h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
body.page-brain .page-title p { color: var(--muted); font-size: 13px; margin-top: 2px; }
body.page-brain .topbar-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.page-brain .search-box { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 6px 12px; width: 210px; }
body.page-brain .search-box input { border: none; background: transparent; outline: none; color: var(--ink); font: inherit; font-size: 13px; width: 100%; }
body.page-brain .period-toggle { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px; }
body.page-brain .period-btn { border: none; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: var(--radius-pill); cursor: pointer; }
body.page-brain .period-btn.active { background: var(--surface); color: var(--ink); font-weight: 600; }
body.page-brain .btn-primary-dark { background: var(--ink); color: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius-pill); padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
body.page-brain .pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; border: 1px solid var(--border); background: var(--surface); white-space: nowrap; }
body.page-brain .dot { width: 6px; height: 6px; border-radius: var(--radius-pill); display: inline-block; }
body.page-brain .subbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 28px; border-bottom: 1px solid var(--border); flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
body.page-brain .legend-group { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
body.page-brain .legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
body.page-brain .workspace-grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; padding: 20px 28px 32px; align-items: start; }
body.page-brain .map-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
body.page-brain .card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.page-brain .card-kicker {
      font-size: 11px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 0.04em; color: var(--muted);
    }
body.page-brain .card-title { font-size: 15px; font-weight: 600; margin-top: 2px; }
body.page-brain .map-scroll {
      width: 100%; overflow-x: auto; border: 1px solid var(--border);
      border-radius: 12px; background: var(--bg); padding: 12px;
    }
body.page-brain .flow-svg {
      display: block; width: 100%; min-width: 780px; height: auto;
      font-family: var(--font);
    }
body.page-brain .map-footer {
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px; padding-top: 10px; border-top: 1px solid var(--border);
      font-size: 12px; color: var(--muted); flex-wrap: wrap;
    }
body.page-brain .source-note {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 3px 10px; border-radius: var(--radius-pill);
      border: 1px solid var(--border); background: var(--bg); font-size: 11.5px;
    }
@keyframes flow-h60 {
      0% { transform: translateX(0); opacity: 0; }
      12% { opacity: 1; }
      88% { opacity: 1; }
      100% { transform: translateX(52px); opacity: 0; }
    }
@keyframes flow-h75 {
      0% { transform: translateX(0); opacity: 0; }
      12% { opacity: 1; }
      88% { opacity: 1; }
      100% { transform: translateX(68px); opacity: 0; }
    }
@keyframes flow-down-left {
      0% { transform: translate(0, 0); opacity: 0; }
      15% { opacity: 1; }
      85% { opacity: 1; }
      100% { transform: translate(-80px, 118px); opacity: 0; }
    }
@keyframes flow-down-right {
      0% { transform: translate(0, 0); opacity: 0; }
      15% { opacity: 1; }
      85% { opacity: 1; }
      100% { transform: translate(175px, 118px); opacity: 0; }
    }
body.page-brain .traffic-dot-short { animation: flow-h60 3.2s linear infinite; }
body.page-brain .traffic-dot-long { animation: flow-h75 3.6s linear infinite; }
body.page-brain .traffic-dot-fleet { animation: flow-down-left 4.2s linear infinite; }
body.page-brain .traffic-dot-spec { animation: flow-down-right 4.5s linear infinite; }
body.page-brain .delay-1 { animation-delay: -1.1s; }
body.page-brain .delay-2 { animation-delay: -2.2s; }
body.page-brain .stuck-dot { animation: none; }
@media (prefers-reduced-motion: reduce) {
body.page-brain .traffic-dot-short, body.page-brain .traffic-dot-long, body.page-brain .traffic-dot-fleet, body.page-brain .traffic-dot-spec {
        animation: none !important;
        opacity: 1 !important;
      }
body.page-brain .traffic-dot-short { transform: translateX(26px); }
body.page-brain .traffic-dot-long { transform: translateX(34px); }
body.page-brain .traffic-dot-fleet { transform: translate(-40px, 59px); }
body.page-brain .traffic-dot-spec { transform: translate(88px, 59px); }
body.page-brain .delay-1, body.page-brain .delay-2 { display: none; }
}
body.page-brain .side-stack { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
body.page-brain .panel-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); padding: 18px;
      display: flex; flex-direction: column; gap: 12px;
    }
body.page-brain .panel-header {
      display: flex; align-items: center; justify-content: space-between;
      gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
    }
body.page-brain .moving-list { display: flex; flex-direction: column; gap: 8px; list-style: none; }
body.page-brain .moving-item {
      border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
      background: var(--bg); display: flex; flex-direction: column; gap: 4px;
    }
body.page-brain .moving-item.stuck { background: var(--surface); border-color: var(--amber); }
body.page-brain .moving-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.page-brain .moving-what { font-weight: 600; font-size: 13px; color: var(--ink); }
body.page-brain .moving-dur {
      font-size: 11px; font-weight: 600; padding: 1px 7px;
      border-radius: var(--radius-pill); border: 1px solid var(--border);
      background: var(--surface); color: var(--muted); white-space: nowrap;
    }
body.page-brain .moving-dur.amber { color: var(--amber); border-color: var(--amber); }
body.page-brain .moving-route { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
body.page-brain .route-node { color: var(--ink); font-weight: 500; }
body.page-brain .metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
body.page-brain .metric-box {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); padding: 13px 12px;
      display: flex; flex-direction: column; gap: 4px;
    }
body.page-brain .metric-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
body.page-brain .metric-val { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
body.page-brain .metric-sub { font-size: 11.5px; color: var(--muted); }
@media (max-width: 1140px) {
body.page-brain .workspace-grid { grid-template-columns: 1fr; }
body.page-brain .side-stack { position: static; }
}
@media (max-width: 760px) {
body.page-brain .shell { grid-template-columns: 1fr; }
body.page-brain .sidebar { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 16px; gap: 12px; }
body.page-brain .topbar, body.page-brain .subbar, body.page-brain .workspace-grid { padding-left: 16px; padding-right: 16px; }
body.page-brain .topbar { flex-direction: column; align-items: stretch; }
body.page-brain .search-box { width: 100%; }
body.page-brain .metrics-grid { grid-template-columns: 1fr; }
}

/* === aria.html (page-aria) === */
body.page-aria {
      background: var(--bg); color: var(--ink); font-family: var(--font);
      font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums;
      -webkit-font-smoothing: antialiased;
    }
body.page-aria a { color: var(--accent); text-decoration: none; }
body.page-aria .shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
body.page-aria .sidebar {
      background: var(--surface); border-right: 1px solid var(--border);
      padding: 20px 16px; display: flex; flex-direction: column; gap: 20px;
    }
body.page-aria .brand { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
body.page-aria .brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
body.page-aria .workspace-switcher { display: flex; flex-direction: column; gap: 6px; }
body.page-aria .ws-chip {
      display: flex; align-items: center; justify-content: space-between;
      padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border);
      font-size: 12px; font-weight: 500; background: var(--bg);
    }
body.page-aria .ws-chip.active { background: var(--surface); border-color: var(--ink); font-weight: 600; }
body.page-aria .ws-chip.disabled { color: var(--muted); opacity: 0.65; }
body.page-aria .ws-soon { font-size: 11px; color: var(--muted); font-weight: 400; }
body.page-aria .nav-group { display: flex; flex-direction: column; gap: 2px; }
body.page-aria .nav-label {
      font-size: 11px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 0.04em; color: var(--muted); padding: 4px 10px;
    }
body.page-aria .nav-item {
      display: flex; align-items: center; justify-content: space-between;
      padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 500;
    }
body.page-aria .nav-item:hover { background: var(--bg); }
body.page-aria .nav-item.active { background: var(--bg); font-weight: 600; }
body.page-aria .nav-sub { padding-left: 22px; font-size: 13px; color: var(--muted); }
body.page-aria .nav-badge {
      font-size: 11px; font-weight: 600; padding: 1px 8px;
      border-radius: var(--radius-pill); background: var(--surface);
      border: 1px solid var(--border); color: var(--ink);
    }
body.page-aria .main { display: flex; flex-direction: column; min-width: 0; }
body.page-aria .topbar {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 16px; padding: 22px 28px 18px; border-bottom: 1px solid var(--border);
      background: var(--surface); flex-wrap: wrap;
    }
body.page-aria .page-title h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
body.page-aria .page-title p { color: var(--muted); font-size: 13px; margin-top: 2px; }
body.page-aria .topbar-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.page-aria .search-box {
      display: flex; align-items: center; gap: 8px; background: var(--bg);
      border: 1px solid var(--border); border-radius: var(--radius-pill);
      padding: 6px 12px; width: 220px;
    }
body.page-aria .search-box input {
      border: none; background: transparent; outline: none;
      color: var(--ink); font: inherit; font-size: 13px; width: 100%;
    }
body.page-aria .btn-primary-dark {
      background: var(--ink); color: var(--surface); border: 1px solid var(--ink);
      border-radius: var(--radius-pill); padding: 7px 14px; font: inherit;
      font-size: 13px; font-weight: 500; cursor: pointer;
    }
body.page-aria .pill {
      display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px;
      border-radius: var(--radius-pill); font-size: 11px; font-weight: 600;
      border: 1px solid var(--border); background: var(--surface); white-space: nowrap;
    }
body.page-aria .dot { width: 6px; height: 6px; border-radius: var(--radius-pill); }
body.page-aria .pill-active { color: var(--green); }
body.page-aria .pill-active .dot { background: var(--green); }
body.page-aria .pill-you { color: var(--amber); }
body.page-aria .pill-you .dot { background: var(--amber); }
body.page-aria .pill-someone { color: var(--blue); }
body.page-aria .pill-someone .dot { background: var(--blue); }
body.page-aria .pill-done { color: var(--muted); }
body.page-aria .pill-done .dot { background: var(--muted); }
body.page-aria .pill-via {
      font-size: 10.5px; padding: 1px 7px; color: var(--violet);
      border-color: var(--border); background: var(--bg); font-weight: 600;
    }
body.page-aria .area-chip {
      font-size: 11px; font-weight: 500; padding: 1px 7px;
      border-radius: var(--radius-pill); background: var(--bg);
      border: 1px solid var(--border); color: var(--muted);
    }
body.page-aria .btn {
      border: 1px solid var(--border); background: var(--surface); color: var(--ink);
      border-radius: var(--radius-pill); padding: 5px 12px; font: inherit;
      font-size: 12px; font-weight: 500; cursor: pointer;
    }
body.page-aria .btn-accent { background: var(--accent); border-color: var(--accent); color: var(--surface); }
body.page-aria .page-body { padding: 20px 28px 36px; display: flex; flex-direction: column; gap: 22px; }
body.page-aria .aria-grid {
      display: grid; grid-template-columns: 300px minmax(0, 1fr) 310px;
      gap: 18px; align-items: start;
    }
body.page-aria .card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); overflow: hidden;
    }
body.page-aria .card-head {
      display: flex; align-items: center; justify-content: space-between;
      gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border);
    }
body.page-aria .card-kicker {
      font-size: 11px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 0.04em; color: var(--muted);
    }
body.page-aria .topic-row {
      display: flex; flex-direction: column; gap: 6px;
      padding: 12px 15px; border-bottom: 1px solid var(--border); cursor: pointer;
    }
body.page-aria .topic-row:last-child { border-bottom: none; }
body.page-aria .topic-row:hover { background: var(--bg); }
body.page-aria .topic-row.selected { background: var(--bg); border-left: 3px solid var(--accent); padding-left: 12px; }
body.page-aria .topic-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
body.page-aria .topic-name { font-weight: 600; font-size: 13.5px; color: var(--ink); }
body.page-aria .topic-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body.page-aria .topic-waits { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.page-aria .thread-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
body.page-aria .thread-header {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
    }
body.page-aria .thread-title { font-size: 16px; font-weight: 600; }
body.page-aria .thread-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
body.page-aria .thread-stream { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
body.page-aria .msg { display: flex; flex-direction: column; gap: 5px; }
body.page-aria .msg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
body.page-aria .msg-sender { font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
body.page-aria .msg-time { color: var(--muted); font-size: 11.5px; }
body.page-aria .msg-bubble {
      border: 1px solid var(--border); border-radius: 12px;
      padding: 11px 14px; background: var(--bg); font-size: 13.5px;
    }
body.page-aria .msg.from-michel .msg-bubble { background: var(--surface); border-color: var(--ink); }
body.page-aria .route-line {
      display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
      gap: 8px; padding: 8px 12px; border-radius: 10px;
      background: var(--bg); border: 1px dashed var(--border);
      font-size: 12px; color: var(--muted);
    }
body.page-aria .route-line code {
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 11.5px; color: var(--ink); background: var(--surface);
      padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border);
    }
body.page-aria .agent-card {
      border: 1px solid var(--border); border-radius: 12px;
      background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 10px;
    }
body.page-aria .agent-card.outward-gate { border-color: var(--violet); }
body.page-aria .agent-card-head {
      display: flex; align-items: center; justify-content: space-between;
      gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
    }
body.page-aria .agent-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
body.page-aria .agent-table th, body.page-aria .agent-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
body.page-aria .agent-table th { color: var(--muted); font-weight: 500; font-size: 11.5px; }
body.page-aria .agent-table tr:last-child td { border-bottom: none; }
body.page-aria .outward-preview {
      background: var(--bg); border: 1px solid var(--border);
      border-radius: 9px; padding: 10px 12px; font-size: 12.5px; display: flex; flex-direction: column; gap: 4px;
    }
body.page-aria .card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
body.page-aria .composer-card {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); padding: 14px 16px;
      display: flex; flex-direction: column; gap: 12px;
    }
body.page-aria .to-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
body.page-aria .to-field { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 220px; }
body.page-aria .to-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
body.page-aria .to-select {
      font: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
      background: var(--bg); border: 1px solid var(--border);
      border-radius: var(--radius-pill); padding: 5px 12px; outline: none;
    }
body.page-aria .to-roster {
      display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
      background: var(--bg); border: 1px solid var(--border);
      border-radius: 10px; padding: 10px 12px; font-size: 12px;
    }
body.page-aria .roster-group { display: flex; flex-direction: column; gap: 3px; }
body.page-aria .roster-title { font-size: 11px; font-weight: 600; color: var(--muted); }
body.page-aria .roster-items { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; color: var(--ink); }
body.page-aria .composer-input {
      width: 100%; min-height: 68px; border: 1px solid var(--border);
      border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 13.5px;
      color: var(--ink); background: var(--surface); resize: vertical;
    }
body.page-aria .composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.page-aria .file-drop {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 6px 12px; border: 1px dashed var(--border);
      border-radius: var(--radius-pill); background: var(--bg);
      font-size: 12px; color: var(--muted); cursor: pointer;
    }
body.page-aria .context-card { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
body.page-aria .ctx-section { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
body.page-aria .ctx-section:last-child { border-bottom: none; padding-bottom: 0; }
body.page-aria .ctx-row {
      display: flex; align-items: center; justify-content: space-between;
      gap: 8px; padding: 7px 10px; border-radius: 9px;
      background: var(--bg); border: 1px solid var(--border); font-size: 12.5px;
    }
body.page-aria .ctx-row-main { display: flex; flex-direction: column; min-width: 0; }
body.page-aria .ctx-row-title { font-weight: 600; color: var(--ink); font-size: 12.5px; }
body.page-aria .ctx-row-sub { font-size: 11.5px; color: var(--muted); }
body.page-aria .not-connected { font-size: 11.5px; color: var(--amber); font-weight: 600; }
body.page-aria .bottom-frame {
      background: var(--surface); border: 1px solid var(--border);
      border-radius: var(--radius-card); padding: 14px 18px;
      display: flex; flex-direction: column; gap: 10px;
    }
body.page-aria .compact-composer {
      display: grid; grid-template-columns: auto 1fr auto auto;
      align-items: center; gap: 10px; background: var(--bg);
      border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px;
    }
body.page-aria .compact-input { border: none; background: transparent; font: inherit; font-size: 13px; color: var(--ink); outline: none; width: 100%; }
@media (max-width: 1180px) {
body.page-aria .aria-grid, body.page-aria .to-roster, body.page-aria .compact-composer { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
body.page-aria .shell { grid-template-columns: 1fr; }
body.page-aria .sidebar { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 16px; gap: 12px; }
body.page-aria .topbar, body.page-aria .page-body { padding-left: 14px; padding-right: 14px; }
body.page-aria .topbar { flex-direction: column; align-items: stretch; }
body.page-aria .search-box { width: 100%; }
body.page-aria .topic-waits { white-space: normal; }
}


/* === Shared Unified Sidebar Chrome === */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar .brand { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.sidebar .brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); }
.sidebar .workspace-switcher { display: flex; flex-direction: column; gap: 6px; padding: 0; background: transparent; border: none; }
.sidebar .ws-chip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  font-size: 12px; font-weight: 500; background: var(--bg); color: var(--ink);
}
.sidebar .ws-chip.active { background: var(--surface); border-color: var(--ink); font-weight: 600; color: var(--ink); }
.sidebar .ws-chip.disabled { color: var(--muted); opacity: 0.65; }
.sidebar .ws-soon { font-size: 11px; color: var(--muted); font-weight: 400; }
.sidebar .nav-group { display: flex; flex-direction: column; gap: 2px; }
.sidebar .nav-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--muted); padding: 4px 10px;
}
.sidebar .nav-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 500;
  font-size: 13.5px; text-decoration: none; border: 1px solid transparent;
}
.sidebar .nav-item:hover { background: var(--bg); }
.sidebar .nav-item.active { background: var(--bg); font-weight: 600; color: var(--ink); }
.sidebar .nav-item.nav-sub { padding-left: 22px; font-size: 13px; color: var(--muted); margin-top: 0; }
.sidebar .nav-item.nav-sub.active { color: var(--ink); background: var(--bg); font-weight: 600; }
.sidebar .nav-badge {
  font-size: 11px; font-weight: 600; padding: 1px 8px;
  border-radius: var(--radius-pill); background: var(--surface);
  border: 1px solid var(--border); color: var(--ink);
}


/* === Semantic & Utility Classes (Strict CSP Replacement) === */

.u-bg-amber { background: var(--amber); }

.u-bg-blue { background: var(--blue); }

.u-bg-border { background: var(--border); }

.u-bg-green { background: var(--green); }

.u-bg-muted { background: var(--muted); }

.u-bg-red { background: var(--red); }

.u-bg-violet { background: var(--violet); }

.u-border-ink-strong { border-color: var(--ink); font-weight: 600; }

.u-btn-send-lg { padding: 7px 16px; font-size: 13px; }

.u-flex-between-gap8-wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.u-flex-center-gap8-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.u-flex-gap6 { display: flex; gap: 6px; }

.u-flex-gap8 { display: flex; gap: 8px; }

.u-flex-gap8-wrap { display: flex; gap: 8px; flex-wrap: wrap; }

.u-h-10 { height: 10px; }

.u-h-45pct { height: 45%; }

.u-h-54pct { height: 54%; }

.u-h-62pct { height: 62%; }

.u-h-71pct { height: 71%; }

.u-h-78pct { height: 78%; }

.u-h-94pct { height: 94%; }

.u-inline-flex-gap6 { display: inline-flex; align-items: center; gap: 6px; }

.u-mb-0 { margin-bottom:0; }

.u-mb-6 { margin-bottom: 6px; }

.u-mt-auto { margin-top: auto; }

.u-nav-disabled { color:var(--muted);opacity:0.6;cursor:default; }

.u-pad-4-10 { padding: 4px 10px; }

.u-pill-amber-outline { color: var(--amber); border-color: var(--amber); }

.u-text-10 { font-size:10px; }

.u-text-12-med { font-size: 12px; font-weight: 500; }

.u-text-12-strong { font-size: 12px; font-weight: 600; }

.u-text-14-strong { font-weight: 600; font-size: 14px; }

.u-text-14-strong-mt2 { font-weight: 600; font-size: 14px; margin-top: 2px; }

.u-text-15-strong { font-size: 15px; font-weight: 600; }

.u-text-accent-med { color: var(--accent); font-weight: 500; }

.u-text-amber { color: var(--amber); }

.u-text-amber { color:var(--amber); }

.u-text-blue { color: var(--blue); }

.u-text-green { color: var(--green); }

.u-text-green { color:var(--green); }

.u-text-green-strong { color: var(--green); font-weight: 600; }

.u-text-ink { color: var(--ink); }

.u-text-ink-12 { font-size:12px;color:var(--ink); }

.u-text-muted-12 { color: var(--muted); font-size: 12px; }

.u-text-muted-12 { font-size: 12px; color: var(--muted); }

.u-text-muted-125-ml8 { font-size: 12.5px; color: var(--muted); margin-left: 8px; }

.u-text-muted-med { color: var(--muted); font-weight: 500; }

.u-text-muted-mt4 { color: var(--muted); margin-top: 4px; }

.u-text-red { color: var(--red); }

.u-text-red { color:var(--red); }

.u-text-right { text-align: right; }

.u-text-violet { color: var(--violet); }

.u-text-violet-strong { color:var(--violet);font-weight:600; }

.u-w-10pct { width: 10%; }

.u-w-18pct { width: 18%; }

.u-w-35pct { width: 35%; }

.u-w-45pct { width: 45%; }

.u-w-50pct-amber { width: 50%; background: var(--amber); }

.u-w-50pct-green { width: 50%; background: var(--green); }

.u-w-62pct-violet { width: 62.8%; background: var(--violet); }

.u-w-68pct { width: 68%; }

.u-w-79pct-green { width: 79%; background: var(--green); }

.u-w-84pct { width: 84%; }


/* === Command Center v3 Live Runtime & Auth UI === */
.cc-hidden { display: none !important; }
.cc-auth-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--bg);
  color: var(--ink); font: inherit; font-size: 12px; font-weight: 500;
  cursor: pointer;
}
.cc-auth-pill:hover { border-color: var(--ink); }
.cc-auth-pill.is-authed { background: var(--surface); border-color: var(--green); }
.cc-modal-backdrop {
  position: fixed; inset: 0; background: rgba(27, 27, 31, 0.42);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 16px;
}
.cc-modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 22px; width: 100%; max-width: 400px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 18px 40px rgba(27, 27, 31, 0.14);
}
.cc-modal h2 { font-size: 17px; font-weight: 600; }
.cc-modal p { font-size: 12.5px; color: var(--muted); }
.cc-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 500; }
.cc-field input, .cc-field textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
  font: inherit; font-size: 13px; color: var(--ink); background: var(--bg);
}
.cc-modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cc-status-msg { font-size: 12px; color: var(--muted); min-height: 16px; }
.cc-status-msg.is-error { color: var(--red); }
.cc-status-msg.is-ok { color: var(--green); }
.cc-toast {
  position: fixed; bottom: 20px; right: 20px; z-index: 1100;
  background: var(--ink); color: var(--surface);
  padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(27, 27, 31, 0.2);
}
.decide-row.is-decided, .needs-card.is-decided, .draft-row.is-decided {
  opacity: 0.48;
}

/* === Workspace Switcher Interactive Chips (All 3 Workspaces + All) === */
.sidebar .ws-chip {
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.sidebar .ws-chip:hover {
  border-color: var(--ink);
}
.sidebar .ws-count {
  font-size: 11px;
  font-weight: 600;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.sidebar .ws-chip.active .ws-count {
  color: var(--ink);
  border-color: var(--ink);
}

/* === Unified Content & Video Factory (work-marketing.html) === */
.factory-action-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 28px; border-bottom: 1px solid var(--border);
  background: var(--bg); flex-wrap: wrap;
}
.grok-dispatch-group {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 280px; flex-wrap: wrap;
}
.grok-select {
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 6px 12px; outline: none;
}
.grok-input {
  flex: 1; min-width: 220px; border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 6px 14px; font: inherit;
  font-size: 12.5px; color: var(--ink); background: var(--surface); outline: none;
}
.grok-input:focus, .grok-select:focus { border-color: var(--ink); }
.cf-tab-radio { display: none; }
.cf-tab-panel { display: none; flex-direction: column; gap: 18px; }
#cf-tab-social:checked ~ .subbar label[for="cf-tab-social"],
#cf-tab-radar:checked ~ .subbar label[for="cf-tab-radar"],
#cf-tab-video:checked ~ .subbar label[for="cf-tab-video"],
#cf-tab-memo:checked ~ .subbar label[for="cf-tab-memo"] {
  background: var(--surface); border-color: var(--ink); color: var(--ink); font-weight: 600;
}
#cf-tab-social:checked ~ .page-body #panel-social,
#cf-tab-radar:checked ~ .page-body #panel-radar,
#cf-tab-video:checked ~ .page-body #panel-video,
#cf-tab-memo:checked ~ .page-body #panel-memo {
  display: flex;
}
.hook-selector {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px;
}
.hook-btn {
  border: 1px solid var(--border); background: var(--bg); color: var(--muted);
  border-radius: var(--radius-pill); padding: 3px 10px; font: inherit;
  font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.hook-btn.active, .hook-btn:hover {
  border-color: var(--violet); color: var(--violet); background: var(--surface);
}
.teleprompter-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.teleprompter-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.script-step {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; font-size: 12.5px;
  display: flex; flex-direction: column; gap: 3px;
}
.script-step strong { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--violet); }

/* === Shared Page Layout for New Work Pages (page-launch, page-partners, page-seo) === */
body.page-launch .shell,
body.page-partners .shell,
body.page-seo .shell {
  display: grid; grid-template-columns: 236px 1fr; min-height: 100vh;
}
body.page-launch .main,
body.page-partners .main,
body.page-seo .main {
  display: flex; flex-direction: column; min-width: 0;
}
body.page-launch .topbar,
body.page-partners .topbar,
body.page-seo .topbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 22px 28px 18px; border-bottom: 1px solid var(--border);
  background: var(--surface); flex-wrap: wrap;
}
body.page-launch .page-title h1,
body.page-partners .page-title h1,
body.page-seo .page-title h1 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
}
body.page-launch .page-title p,
body.page-partners .page-title p,
body.page-seo .page-title p {
  color: var(--muted); font-size: 13px; margin-top: 2px;
}
body.page-launch .topbar-controls,
body.page-partners .topbar-controls,
body.page-seo .topbar-controls {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
body.page-launch .search-box,
body.page-partners .search-box,
body.page-seo .search-box {
  display: flex; align-items: center; gap: 8px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 6px 12px; width: 220px;
}
body.page-launch .search-box input,
body.page-partners .search-box input,
body.page-seo .search-box input {
  border: none; background: transparent; outline: none;
  color: var(--ink); font: inherit; font-size: 13px; width: 100%;
}
body.page-launch .period-toggle,
body.page-partners .period-toggle,
body.page-seo .period-toggle {
  display: inline-flex; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 2px;
}
body.page-launch .period-btn,
body.page-partners .period-btn,
body.page-seo .period-btn {
  border: none; background: transparent; color: var(--muted); font: inherit;
  font-size: 12px; font-weight: 500; padding: 4px 10px;
  border-radius: var(--radius-pill); cursor: pointer;
}
body.page-launch .period-btn.active,
body.page-partners .period-btn.active,
body.page-seo .period-btn.active {
  background: var(--surface); color: var(--ink); font-weight: 600;
}
body.page-launch .btn-primary-dark,
body.page-partners .btn-primary-dark,
body.page-seo .btn-primary-dark {
  background: var(--ink); color: var(--surface); border: 1px solid var(--ink);
  border-radius: var(--radius-pill); padding: 7px 14px; font: inherit;
  font-size: 13px; font-weight: 500; cursor: pointer;
}
body.page-launch .work-tabs,
body.page-partners .work-tabs,
body.page-seo .work-tabs {
  display: flex; align-items: center; gap: 6px; padding: 10px 28px;
  border-bottom: 1px solid var(--border); background: var(--surface); overflow-x: auto;
}
body.page-launch .work-tab,
body.page-partners .work-tab,
body.page-seo .work-tab {
  padding: 6px 12px; border-radius: var(--radius-pill); font-size: 12.5px;
  font-weight: 500; color: var(--muted); border: 1px solid transparent; white-space: nowrap;
}
body.page-launch .work-tab.active,
body.page-partners .work-tab.active,
body.page-seo .work-tab.active {
  background: var(--bg); color: var(--ink); border-color: var(--border); font-weight: 600;
}
body.page-launch .page-body,
body.page-partners .page-body,
body.page-seo .page-body {
  padding: 22px 28px 34px; display: flex; flex-direction: column; gap: 20px;
}
body.page-launch .kpi-grid,
body.page-partners .kpi-grid,
body.page-seo .kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
body.page-launch .card,
body.page-partners .card,
body.page-seo .card,
body.page-brain .card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
body.page-launch .kpi-top,
body.page-partners .kpi-top,
body.page-seo .kpi-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--muted); font-weight: 500;
}
body.page-launch .kpi-value-row,
body.page-partners .kpi-value-row,
body.page-seo .kpi-value-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
body.page-launch .kpi-num,
body.page-partners .kpi-num,
body.page-seo .kpi-num {
  font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink);
}
body.page-launch .kpi-target,
body.page-partners .kpi-target,
body.page-seo .kpi-target {
  font-size: 12px; color: var(--muted);
}
body.page-launch .seg-bar,
body.page-partners .seg-bar,
body.page-seo .seg-bar {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; height: 6px;
}
body.page-launch .seg,
body.page-partners .seg,
body.page-seo .seg {
  background: var(--bg); border: 1px solid var(--border); border-radius: 3px;
}
body.page-launch .seg.fill-green,
body.page-partners .seg.fill-green,
body.page-seo .seg.fill-green { background: var(--green); border-color: var(--green); }
body.page-launch .seg.fill-blue,
body.page-partners .seg.fill-blue,
body.page-seo .seg.fill-blue { background: var(--blue); border-color: var(--blue); }
body.page-launch .seg.fill-violet,
body.page-partners .seg.fill-violet,
body.page-seo .seg.fill-violet { background: var(--violet); border-color: var(--violet); }
body.page-launch .seg.fill-amber,
body.page-partners .seg.fill-amber,
body.page-seo .seg.fill-amber { background: var(--amber); border-color: var(--amber); }

body.page-launch .workspace-grid,
body.page-partners .workspace-grid,
body.page-seo .workspace-grid {
  display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; align-items: start;
}
body.page-launch .table-scroll,
body.page-partners .table-scroll,
body.page-seo .table-scroll,
body.page-brain .table-scroll {
  overflow-x: auto;
}
body.page-launch table,
body.page-partners table,
body.page-seo table,
body.page-brain table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
body.page-launch th,
body.page-partners th,
body.page-seo th,
body.page-brain th {
  text-align: left; font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 12px;
  border-bottom: 1px solid var(--border); background: var(--bg); white-space: nowrap;
}
body.page-launch td,
body.page-partners td,
body.page-seo td,
body.page-brain td {
  padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle;
}
body.page-launch tr:last-child td,
body.page-partners tr:last-child td,
body.page-seo tr:last-child td,
body.page-brain tr:last-child td {
  border-bottom: none;
}
body.page-launch tr.selected,
body.page-partners tr.selected,
body.page-seo tr.selected {
  background: var(--bg);
}
body.page-launch .pill,
body.page-partners .pill,
body.page-seo .pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px;
  border-radius: var(--radius-pill); font-size: 11px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); white-space: nowrap;
}
body.page-launch .dot,
body.page-partners .dot,
body.page-seo .dot {
  width: 6px; height: 6px; border-radius: var(--radius-pill); display: inline-block;
}
body.page-launch .btn,
body.page-partners .btn,
body.page-seo .btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  border-radius: var(--radius-pill); padding: 5px 11px; font: inherit;
  font-size: 12px; font-weight: 500; cursor: pointer;
}
body.page-launch .btn-accent,
body.page-partners .btn-accent,
body.page-seo .btn-accent {
  background: var(--accent); border-color: var(--accent); color: var(--surface);
}
body.page-launch .filter-tabs,
body.page-partners .filter-tabs,
body.page-seo .filter-tabs {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
body.page-launch .filter-pill,
body.page-partners .filter-pill,
body.page-seo .filter-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 500;
  color: var(--muted); border: 1px solid var(--border); background: var(--bg); cursor: pointer;
}
body.page-launch .filter-pill.active,
body.page-partners .filter-pill.active,
body.page-seo .filter-pill.active {
  background: var(--ink); color: var(--surface); border-color: var(--ink);
}

/* === Brain 4 Brains + 5 Functional Pipelines + 15 Cron Jobs === */
.brain-stack {
  padding: 20px 28px 34px; display: flex; flex-direction: column; gap: 20px;
}
.brain-grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.pipeline-grid-5 {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.brain-node-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 15px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.brain-node-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.brain-node-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.brain-node-role { font-size: 12px; color: var(--muted); }
.brain-node-meta { font-size: 11.5px; color: var(--ink); padding-top: 6px; border-top: 1px solid var(--border); }
@media (max-width: 1180px) {
  body.page-launch .kpi-grid, body.page-partners .kpi-grid, body.page-seo .kpi-grid,
  .brain-grid-4, .pipeline-grid-5, .teleprompter-grid { grid-template-columns: repeat(2, 1fr); }
  body.page-launch .workspace-grid, body.page-partners .workspace-grid, body.page-seo .workspace-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body.page-launch .shell, body.page-partners .shell, body.page-seo .shell { grid-template-columns: 1fr; }
  body.page-launch .kpi-grid, body.page-partners .kpi-grid, body.page-seo .kpi-grid,
  .brain-grid-4, .pipeline-grid-5, .teleprompter-grid { grid-template-columns: 1fr; }
}



/* === Honest Feed Status Pills & Empty Feed States === */
.feed-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
}
.feed-status-pill.is-empty {
  border-style: dashed;
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(217, 138, 28, 0.08);
}
.feed-status-pill.is-live {
  border-color: var(--green);
  color: var(--green);
  background: rgba(47, 158, 110, 0.08);
}
.empty-feed-state {
  padding: 22px 18px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.empty-feed-state strong {
  color: var(--ink);
  font-weight: 600;
}

/* === Interactive Live Brain Flow Visualization (brain.html) === */
.brain-flow-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 360px;
  gap: 18px;
  align-items: stretch;
}
.brain-flow-canvas-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FAF9F6;
  padding: 12px;
}
.brain-flow-svg {
  display: block;
  width: 100%;
  min-width: 780px;
  height: auto;
  font-family: var(--font);
  user-select: none;
}
@keyframes cc-flow-dash {
  to {
    stroke-dashoffset: -28;
  }
}
.flow-edge {
  fill: none;
  stroke: #D0CEC7;
  stroke-width: 1.75;
}
.flow-edge-active {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  animation: cc-flow-dash 1.6s linear infinite;
}
.flow-edge-green {
  stroke: var(--green);
}
.flow-edge-blue {
  stroke: var(--blue);
}
.flow-edge-amber {
  stroke: var(--amber);
}
@media (prefers-reduced-motion: reduce) {
  .flow-edge-active {
    animation: none !important;
  }
}
.brain-flow-node {
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.brain-flow-node rect.node-box {
  fill: #FFFFFF;
  stroke: #DEDCD5;
  stroke-width: 1.5;
  transition: stroke 0.15s ease, stroke-width 0.15s ease, fill 0.15s ease;
}
.brain-flow-node:hover rect.node-box {
  stroke: var(--ink);
  stroke-width: 2;
}
.brain-flow-node.is-selected rect.node-box {
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: #FDFCFF;
}
.brain-flow-node text.node-title {
  font-size: 11.5px;
  font-weight: 600;
  fill: #1B1B1F;
}
.brain-flow-node text.node-sub {
  font-size: 9.8px;
  font-weight: 500;
  fill: #6B6B76;
}
.brain-flow-node text.node-metric {
  font-size: 9.8px;
  font-weight: 600;
  fill: #1B1B1F;
}
.brain-flow-node circle.node-dot-healthy { fill: var(--green); }
.brain-flow-node circle.node-dot-busy { fill: var(--blue); }
.brain-flow-node circle.node-dot-attention { fill: var(--amber); }
.brain-flow-node circle.node-dot-idle { fill: #9CA3AF; }
.flow-layer-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: #8E8E99;
}
.brain-inspector-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inspector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.inspector-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.inspector-stat-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.inspector-stat-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.inspector-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
}
.inspector-event-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11.5px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
@media (max-width: 1180px) {
  .brain-flow-split {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   FLOOWED BRAND CANON: LIGHT-FIRST + NOIR COUNTERWEIGHT & WOW-FACTOR STUDIO
   ========================================================================= */

/* 1. Global Noir Counterweight Command Rail Sidebar (All 12 Pages) */
body[class*="page-"] .sidebar,
.sidebar {
  background: var(--noir);
  color: var(--noir-ink);
  border-right: 1px solid var(--noir-hair);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}
body[class*="page-"] .sidebar::before,
.sidebar::before {
  content: "";
  display: block;
  height: 3px;
  margin: -20px -16px 6px;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    var(--gather) 0 20%,
    var(--interpret) 20% 40%,
    var(--chase) 40% 60%,
    var(--decide) 60% 80%,
    var(--act) 80% 100%
  );
}
body[class*="page-"] .sidebar .brand-name,
.sidebar .brand-name {
  color: var(--noir-ink);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
}
body[class*="page-"] .sidebar .brand .pill,
.sidebar .brand .pill {
  background: rgba(23, 116, 142, 0.18);
  border-color: rgba(23, 116, 142, 0.45);
  color: #86C3D4;
  font-family: var(--mono);
  font-size: 10.5px;
}
body[class*="page-"] .sidebar .ws-chip,
.sidebar .ws-chip {
  background: var(--noir-2);
  border-color: var(--noir-hair);
  color: var(--noir-soft);
  transition: all 0.15s ease;
}
body[class*="page-"] .sidebar .ws-chip:hover,
.sidebar .ws-chip:hover {
  background: var(--noir-3);
  color: var(--noir-ink);
  border-color: rgba(255, 255, 255, 0.18);
}
body[class*="page-"] .sidebar .ws-chip.active,
.sidebar .ws-chip.active {
  background: rgba(23, 116, 142, 0.18);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(23, 116, 142, 0.28);
}
body[class*="page-"] .sidebar .ws-chip.active .ws-count,
.sidebar .ws-chip.active .ws-count {
  background: var(--accent);
  color: #FFFFFF;
}
body[class*="page-"] .sidebar .ws-count,
.sidebar .ws-count {
  background: var(--noir-3);
  color: var(--noir-soft);
  font-family: var(--mono);
}
body[class*="page-"] .sidebar .nav-label,
.sidebar .nav-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--noir-soft);
  opacity: 0.78;
}
body[class*="page-"] .sidebar .nav-item,
.sidebar .nav-item {
  color: #D4D5DF;
  border-radius: 9px;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}
body[class*="page-"] .sidebar .nav-item.nav-sub,
.sidebar .nav-item.nav-sub {
  color: var(--noir-soft);
}
body[class*="page-"] .sidebar .nav-item:hover,
.sidebar .nav-item:hover {
  background: var(--noir-2);
  color: #FFFFFF;
}
body[class*="page-"] .sidebar .nav-item.active,
.sidebar .nav-item.active {
  background: var(--noir-2);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent);
}
body[class*="page-"] .sidebar .nav-badge,
.sidebar .nav-badge {
  background: var(--noir-3);
  border-color: var(--noir-hair);
  color: var(--noir-ink);
  font-family: var(--mono);
}

/* 2. Global Light-First Studio Surface & Tactile Elevation */
body[class*="page-"] .topbar,
.topbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 25;
}
body[class*="page-"] .page-title h1,
.page-title h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}
body[class*="page-"] .card,
body[class*="page-"] .queue-card,
body[class*="page-"] .detail-card,
body[class*="page-"] .pipe-col,
body[class*="page-"] .panel-card,
body[class*="page-"] .brain-node-card,
.card {
  box-shadow: var(--shadow-card);
  border-color: var(--border);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
body[class*="page-"] .brain-node-card:hover,
.geo-pillar-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(23, 116, 142, 0.32);
  transform: translateY(-1px);
}
.card-kicker,
.detail-kicker,
.gauge-label {
  font-family: var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
body[class*="page-"] .btn-primary-dark,
.btn-primary-dark {
  background: var(--accent-btn);
  border-color: var(--accent-btn);
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(18, 94, 115, 0.25);
  transition: all 0.15s ease;
}
body[class*="page-"] .btn-primary-dark:hover,
.btn-primary-dark:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-0.5px);
}
body[class*="page-"] .search-box,
.search-box {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body[class*="page-"] .search-box:hover,
.search-box:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(23, 116, 142, 0.12);
}

@keyframes ccLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 158, 110, 0.35); }
  50% { box-shadow: 0 0 0 4px rgba(47, 158, 110, 0.08); }
}
.feed-status-pill.is-live {
  animation: ccLivePulse 2.8s infinite ease-in-out;
}

/* 3. Interactive Noir Neural Blueprint Stage on brain.html */
.brain-flow-canvas-wrap {
  background-color: var(--noir);
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid rgba(23, 116, 142, 0.34);
  border-radius: 14px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 32px -8px rgba(20, 20, 25, 0.28);
}
.interactive-topology-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--noir-hair);
}
.flow-filters,
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.flow-filters button,
.zoom-controls button {
  background: var(--noir-2);
  border: 1px solid var(--noir-hair);
  color: var(--noir-soft);
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.flow-filters button:hover,
.zoom-controls button:hover {
  background: var(--noir-3);
  color: var(--noir-ink);
  border-color: rgba(255, 255, 255, 0.22);
}
.flow-filters button.active {
  background: rgba(23, 116, 142, 0.22);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(23, 116, 142, 0.3);
}
.zoom-controls .btn-pulse-trace {
  background: rgba(23, 116, 142, 0.2);
  border-color: rgba(23, 116, 142, 0.5);
  color: #DDD6FE;
}
.zoom-controls .btn-pulse-trace:hover {
  background: var(--accent);
  color: #FFFFFF;
}
.brain-flow-canvas-wrap .flow-layer-label {
  fill: var(--noir-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
}
.brain-flow-canvas-wrap .flow-edge {
  stroke: rgba(255, 255, 255, 0.12);
}
.brain-flow-canvas-wrap . brain-flow-node rect.node-box,
.brain-flow-canvas-wrap .brain-flow-node rect.node-box {
  fill: #1C1C25;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.5;
}
.brain-flow-canvas-wrap .brain-flow-node:hover rect.node-box {
  fill: #242430;
  stroke: #86C3D4;
  stroke-width: 2;
}
.brain-flow-canvas-wrap .brain-flow-node.is-selected rect.node-box,
.brain-flow-canvas-wrap .brain-flow-node.is-highlighted rect.node-box {
  fill: #221E35;
  stroke: var(--accent);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 10px rgba(23, 116, 142, 0.42));
}
.brain-flow-canvas-wrap .brain-flow-node text.node-title {
  fill: #F4F4F7;
  font-family: var(--display);
}
.brain-flow-canvas-wrap .brain-flow-node text.node-sub {
  fill: #A3A4B1;
}
.brain-flow-canvas-wrap .brain-flow-node text.node-metric {
  fill: #86C3D4;
  font-family: var(--mono);
}
.brain-flow-canvas-wrap .brain-flow-node.is-dimmed {
  opacity: 0.24;
  transition: opacity 0.2s ease;
}
.brain-flow-canvas-wrap .flow-edge-active.is-dimmed,
.brain-flow-canvas-wrap .flow-edge.is-dimmed {
  opacity: 0.08;
}
@keyframes ccSignalPulseBurst {
  0% { stroke-width: 2.5; filter: drop-shadow(0 0 6px #17748E); }
  50% { stroke-width: 4; filter: drop-shadow(0 0 14px #86C3D4); }
  100% { stroke-width: 2.5; filter: drop-shadow(0 0 6px #17748E); }
}
.flow-edge-active.is-pulsing {
  animation: ccEdgeDash 0.45s linear infinite, ccSignalPulseBurst 0.9s ease-in-out infinite;
}
.signal-particle {
  fill: #86C3D4;
  filter: url(#cc-glow);
  pointer-events: none;
}
.signal-particle-amber {
  fill: #FCD34D;
}
.signal-particle-green {
  fill: #6EE7B7;
}
.connection-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.conn-chip {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.14s ease;
}
.conn-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(23, 116, 142, 0.06);
}
.inspector-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

/* 4. SEO, GEO, Insights & Grok SEO Bot Workbench (work-seo.html) */
.seo-grok-card {
  background: var(--noir);
  color: var(--noir-ink);
  border: 1px solid rgba(23, 116, 142, 0.38);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 28px -8px rgba(20, 20, 25, 0.22);
}
.seo-grok-card .card-kicker {
  color: var(--noir-soft);
}
.seo-grok-card h2 {
  color: var(--noir-ink);
  font-family: var(--display);
}
.seo-grok-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.seo-grok-presets button {
  background: var(--noir-2);
  border: 1px solid var(--noir-hair);
  color: #E4E4EC;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.seo-grok-presets button:hover {
  background: rgba(23, 116, 142, 0.22);
  border-color: var(--accent);
  color: #FFFFFF;
}
.seo-grok-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.seo-grok-input-row input {
  flex: 1;
  min-width: 240px;
  background: var(--noir-2);
  border: 1px solid var(--noir-hair);
  border-radius: 10px;
  padding: 9px 14px;
  color: #FFFFFF;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.seo-grok-input-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(23, 116, 142, 0.25);
}
.seo-grok-input-row select {
  background: var(--noir-2);
  border: 1px solid var(--noir-hair);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--noir-ink);
  font: inherit;
  font-size: 12.5px;
}
.seo-grok-queue-wrap {
  background: var(--noir-2);
  border: 1px solid var(--noir-hair);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.seo-grok-queue-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 150px;
  overflow-y: auto;
}
.grok-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}
.grok-queue-topic {
  flex: 1;
  color: var(--noir-ink);
  font-weight: 500;
}
.seo-workbench-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.seo-subtab {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.seo-subtab:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.seo-subtab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
  font-weight: 600;
}
.seo-panels .seo-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
}
.seo-panels .seo-panel.active {
  display: flex;
}
.geo-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.geo-pillar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.15s ease;
}
.u-mb-16 { margin-bottom: 16px; }
.hidden-drawer { display: none !important; }
.clickable-row {
  cursor: pointer;
  transition: background 0.14s ease;
}
.clickable-row:hover {
  background: rgba(23, 116, 142, 0.06);
}
.seo-preview-drawer {
  border: 1.5px solid var(--accent);
  background: #FAF8FF;
}

/* 5. Global Cmd+K Executive Command & Action Palette */
#cc-command-palette {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 25, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 11vh;
}
#cc-command-palette.is-open {
  display: flex;
}
.cp-modal {
  width: 640px;
  max-width: 92vw;
  background: var(--noir);
  border: 1px solid rgba(23, 116, 142, 0.45);
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--noir-ink);
}
.cp-input-wrap {
  padding: 16px 20px;
  border-bottom: 1px solid var(--noir-hair);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cp-cmd-badge {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: #86C3D4;
  background: rgba(23, 116, 142, 0.2);
  border: 1px solid rgba(23, 116, 142, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
}
.cp-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
}
.cp-input-wrap input::placeholder {
  color: var(--noir-soft);
}
.cp-results {
  max-height: 390px;
  overflow-y: auto;
  padding: 8px 0;
}
.cp-group {
  padding: 8px 20px 4px;
  font-size: 10.5px;
  font-family: var(--mono);
  color: var(--noir-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.cp-item {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.1s ease;
}
.cp-item.is-selected,
.cp-item:hover {
  background: rgba(23, 116, 142, 0.18);
}
.cp-item-icon {
  font-size: 15px;
  width: 22px;
  text-align: center;
}
.cp-item-text {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--noir-ink);
}
.cp-item-shortcut {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #86C3D4;
  background: var(--noir-3);
  border: 1px solid var(--noir-hair);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ==========================================================================
   6. Visual Audit Fixes (Readability, Contrast, Overlap & KPI Card Layout)
   & 4-Design Brain Visualisation Studio (Synapse / Orbital / Conveyor / Matrix)
   ========================================================================== */

/* 6.1 Global Contrast & Readability Fixes */
.sidebar .brand .pill {
  background: rgba(23, 116, 142, 0.35) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(134, 195, 212, 0.45);
}

.feed-status-pill.is-empty,
.pill-you,
.pill-amber {
  color: #8C3B00 !important;
  background: rgba(217, 138, 28, 0.16) !important;
  border-color: rgba(180, 83, 9, 0.32) !important;
}

.seo-grok-card .pill-violet {
  background: rgba(23, 116, 142, 0.28) !important;
  color: #D9EDF2 !important;
  border: 1px solid rgba(134, 195, 212, 0.45) !important;
}

.seo-grok-card .u-text-muted-12,
.seo-grok-card .grok-queue-empty {
  color: #C4C6D4 !important;
}

.seo-grok-card .feed-status-pill.is-live {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #6EE7B7 !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
}

/* 6.2 Today Page (.deal-mini-top spacing fix) */
.deal-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.deal-mini-top span {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(23, 116, 142, 0.12);
  color: var(--accent-ink);
  font-weight: 600;
}

/* 6.3 KPI Value Rows (Prevent multi-line cramping on Accounts, Partners, Raise) */
.kpi-val-row,
.kpi-value-row {
  display: flex;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
}
.kpi-val,
.kpi-value {
  font-size: 22px !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em;
}

/* 6.4 Aria Page (.to-bar select overlap & composer comfort) */
.to-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.to-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  min-width: 0;
}
.to-select {
  max-width: 100%;
  flex: 1;
  min-width: 180px;
  padding-right: 28px !important;
}

/* 6.5 Brain Page — Fix Dark Noir SVG Node Boxes (.node-box) & Firing Halos */
.page-brain .brain-flow-node rect.node-box {
  fill: #1D1E2B !important;
  stroke: rgba(134, 195, 212, 0.28) !important;
  stroke-width: 1.5px !important;
  transition: fill 0.18s ease, stroke 0.18s ease, filter 0.18s ease;
}
.page-brain .brain-flow-node:hover rect.node-box {
  fill: #182025 !important;
  stroke: #86C3D4 !important;
  stroke-width: 2px !important;
}
.page-brain .brain-flow-node.is-selected rect.node-box {
  fill: #142329 !important;
  stroke: #17748E !important;
  stroke-width: 2.4px !important;
  filter: drop-shadow(0 0 12px rgba(23, 116, 142, 0.5));
}
.page-brain .brain-flow-node.is-firing rect.node-box,
.page-brain .brain-flow-node.is-firing circle.orbital-core-circle {
  stroke: #86C3D4 !important;
  stroke-width: 2.8px !important;
  filter: drop-shadow(0 0 14px rgba(134, 195, 212, 0.65));
}
.page-brain .brain-flow-node text.node-title {
  fill: #F4F4F7 !important;
  font-family: var(--display);
  font-size: 12px !important;
  font-weight: 600 !important;
}
.page-brain .brain-flow-node text.node-sub {
  fill: #A3A4B1 !important;
  font-size: 10px !important;
}
.page-brain .brain-flow-node text.node-metric {
  fill: #86C3D4 !important;
  font-family: var(--mono);
  font-size: 10px !important;
  font-weight: 600 !important;
}

/* 6.6 4-Design Brain Switcher Bar & Live In-Flight Packet Ticker */
.brain-mode-switcher-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--noir);
  border: 1px solid rgba(23, 116, 142, 0.35);
  border-radius: 12px;
}
.brain-design-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.brain-view-tab {
  background: var(--noir-2);
  border: 1px solid var(--noir-hair);
  color: #D4D4DF;
  padding: 7px 12px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.brain-view-tab:hover {
  border-color: #86C3D4;
  color: #FFFFFF;
}
.brain-view-tab.active {
  background: var(--accent);
  border-color: #86C3D4;
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(23, 116, 142, 0.45);
}
.view-tab-num {
  font-family: var(--mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(20, 20, 25, 0.45);
  color: #86C3D4;
}
.brain-sim-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.sim-btn {
  background: var(--noir-2);
  border: 1px solid var(--noir-hair);
  color: #D4D4DF;
  padding: 6px 10px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.sim-btn:hover {
  border-color: #86C3D4;
  color: #FFFFFF;
}
.sim-btn.active {
  background: rgba(16, 185, 129, 0.22);
  border-color: #34D399;
  color: #6EE7B7;
}
.sim-btn.btn-pulse-trace {
  background: rgba(23, 116, 142, 0.25);
  border-color: rgba(134, 195, 212, 0.5);
  color: #D9EDF2;
}

.brain-live-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 8px 14px;
  background: #181822;
  border: 1px solid rgba(134, 195, 212, 0.28);
  border-radius: 10px;
  color: #F4F4F7;
  font-size: 12px;
}
.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6EE7B7;
  background: rgba(16, 185, 129, 0.14);
  padding: 3px 8px;
  border-radius: 999px;
}
.ticker-route {
  font-weight: 600;
  color: #86C3D4;
}
.ticker-payload {
  font-family: var(--mono);
  font-size: 11px;
  color: #86C3D4;
  background: rgba(23, 116, 142, 0.16);
  padding: 2px 8px;
  border-radius: 6px;
  flex: 1;
  min-width: 200px;
}
.ticker-phase {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #A3A4B1;
}

.brain-view-pane {
  width: 100%;
}
.brain-view-pane.cc-hidden {
  display: none !important;
}

/* Live SVG Floating Packet Pill */
.svg-packet-pill {
  fill: #141419;
  stroke: #86C3D4;
  stroke-width: 1.2px;
  rx: 6px;
}
.svg-packet-text {
  fill: #86C3D4;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
}

/* 6.7 Hybrid Central Brain Reactor Core & Orbital Conduits */
.orbital-ring {
  fill: none;
  stroke: rgba(134, 195, 212, 0.16);
  stroke-width: 1.2;
  stroke-dasharray: 6 6;
}
.orbital-ring-mid {
  stroke: rgba(23, 116, 142, 0.24);
  stroke-dasharray: 5 5;
}
.orbital-ring-inner {
  stroke: rgba(134, 195, 212, 0.30);
  stroke-dasharray: 4 4;
}
.brain-core-shell-halo {
  fill: rgba(23, 116, 142, 0.08);
  stroke: rgba(134, 195, 212, 0.36);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}
.brain-core-shell {
  fill: rgba(16, 21, 24, 0.82);
  stroke: rgba(23, 116, 142, 0.62);
  stroke-width: 2;
  filter: drop-shadow(0 0 22px rgba(23, 116, 142, 0.38));
}
.orbital-core-halo {
  fill: rgba(23, 116, 142, 0.22);
  stroke: #86C3D4;
  stroke-width: 1.4;
  stroke-dasharray: 3 3;
}
.orbital-core-circle {
  fill: #142329;
  stroke: #17748E;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 14px rgba(23, 116, 142, 0.65));
}
.page-brain .orbital-core-node text.node-sub {
  font-size: 9px !important;
  fill: #C4C6D6 !important;
}
.brain-core-emblem-title {
  fill: #86C3D4;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.brain-core-emblem-sub {
  fill: #D9EDF2;
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.page-brain .brain-flow-node rect.node-box-core {
  fill: #132026 !important;
  stroke: rgba(134, 195, 212, 0.58) !important;
  stroke-width: 1.8px;
}
.flow-edge-return {
  fill: none;
  stroke: rgba(134, 195, 212, 0.42);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}
.flow-edge-return.is-dimmed {
  opacity: 0.14;
}
.flow-edge-return.is-highlighted {
  stroke: #86C3D4;
  stroke-width: 2.2;
  opacity: 1;
}

/* 6.8 SEO & GEO 2026 5-Tab Operational Console, Accounts 4-Tab Console & Partners 6-KPI Strip */
body.page-seo .kpi-grid.kpi-grid-6,
body.page-accounts .kpi-grid.kpi-grid-6,
body.page-partners .kpi-grid.kpi-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 1180px) {
  body.page-seo .kpi-grid.kpi-grid-6,
  body.page-accounts .kpi-grid.kpi-grid-6,
  body.page-partners .kpi-grid.kpi-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  body.page-seo .kpi-grid.kpi-grid-6,
  body.page-accounts .kpi-grid.kpi-grid-6,
  body.page-partners .kpi-grid.kpi-grid-6 {
    grid-template-columns: 1fr;
  }
}
.account-row.is-selected {
  background: rgba(23, 116, 142, 0.08);
  border-color: var(--accent);
}
.seo-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.seo-filter-input,
.seo-filter-select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
  outline: none;
}
.seo-filter-input:focus,
.seo-filter-select:focus {
  border-color: var(--accent);
}
.pill-wedge {
  background: rgba(23, 116, 142, 0.14) !important;
  color: #115D73 !important;
  border: 1px solid rgba(23, 116, 142, 0.38) !important;
}

/* ==========================================================================
   7. Unified Cross-Page Design System, Layout Grids & Noir Counterweight Polish
   ========================================================================== */

/* 7.1 Crisp 5-Segment Operations Phase Top Strip (Gather -> Interpret -> Chase -> Decide -> Act) */
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}
.main::before {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    var(--gather) 0 20%,
    var(--interpret) 20% 40%,
    var(--chase) 40% 60%,
    var(--decide) 60% 80%,
    var(--act) 80% 100%
  );
}

/* 7.2 Universal Shell, Topbar, Work-Tabs & Page Containers (All 13 Pages) */
.shell {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}
.topbar,
.top-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 25;
  flex-wrap: wrap;
}
.page-title,
.header-title-block {
  min-width: 0;
}
.page-title h1,
.header-title-block h1 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--ink);
}
.page-title p,
.header-subtitle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
  max-width: 82ch;
}
.page-title code,
.card code,
.data-table code,
table code {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink);
}
.topbar-controls,
.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  min-width: 240px;
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  width: 100%;
}
.work-tabs,
.sub-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow-x: auto;
}
.work-tab,
.sub-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.14s ease;
}
.work-tab:hover,
.sub-tab:hover {
  background: var(--bg);
  color: var(--ink);
}
.work-tab.active,
.sub-tab.active {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
  font-weight: 600;
}
.content,
.page-body,
.content-body {
  padding: 22px 28px 38px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 7.3 Unified KPI Grid & KPI Cards (Light-First Elevation + Segmented Bars) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.kpi-grid.kpi-grid-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kpi-card,
.kpi-grid > .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.kpi-card:hover,
.kpi-grid > .card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(23, 116, 142, 0.34);
  transform: translateY(-1px);
}
.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.kpi-main,
.kpi-value-row,
.kpi-val-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.kpi-value,
.kpi-num,
.kpi-val {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.kpi-target {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  line-height: 1.35;
}
.seg-bar {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  height: 6px;
  width: 100%;
}
.seg {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.seg.fill-green,
.fill-green {
  background: var(--green);
  border-color: var(--green);
}
.seg.fill-blue,
.fill-blue {
  background: var(--blue);
  border-color: var(--blue);
}
.seg.fill-violet,
.fill-violet {
  background: var(--violet);
  border-color: var(--violet);
}
.seg.fill-amber,
.fill-amber {
  background: var(--amber);
  border-color: var(--amber);
}

/* 7.4 Universal Cards, Headers, Kickers & Structural Grids */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}
.card-head,
.detail-header,
.detail-head,
.panel-head,
.panel-header,
.table-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.card-head h2,
.card-head h3,
.detail-title,
.card-title,
.section-title {
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  line-height: 1.28;
}
.card-kicker,
.detail-kicker,
.goal-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--softer);
  line-height: 1.4;
}
.split-65-35 {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(350px, 1fr);
  gap: 18px;
  align-items: start;
}
.split-60-40 {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 1fr);
  gap: 18px;
  align-items: start;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr);
  gap: 18px;
  align-items: start;
}
.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* 7.5 Universal Data Tables & Code Cells */
.table-wrap,
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
th,
.data-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--softer);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #F8F8FA;
  white-space: nowrap;
}
td,
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--ink);
  line-height: 1.42;
}
tbody tr:last-child td,
.data-table tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover td,
.data-table tbody tr:hover td {
  background: rgba(23, 116, 142, 0.03);
}
.co-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
}

/* 7.6 Global Semantic Pills & Buttons */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  white-space: nowrap;
}
.pill-green {
  color: #156D48 !important;
  background: rgba(47, 158, 110, 0.12) !important;
  border-color: rgba(47, 158, 110, 0.34) !important;
}
.pill-violet {
  color: #115D73 !important;
  background: rgba(23, 116, 142, 0.12) !important;
  border-color: rgba(23, 116, 142, 0.34) !important;
}
.pill-blue {
  color: #1D4ED8 !important;
  background: rgba(59, 130, 246, 0.12) !important;
  border-color: rgba(59, 130, 246, 0.34) !important;
}
.pill-amber {
  color: #8C3B00 !important;
  background: rgba(217, 138, 28, 0.16) !important;
  border-color: rgba(180, 83, 9, 0.32) !important;
}
.pill-red {
  color: #B91C1C !important;
  background: rgba(214, 69, 69, 0.12) !important;
  border-color: rgba(214, 69, 69, 0.34) !important;
}
.pill-muted {
  color: var(--muted) !important;
  background: var(--bg) !important;
  border-color: var(--border) !important;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent-btn);
  background: rgba(23, 116, 142, 0.05);
}
.btn-accent {
  background: var(--accent-btn);
  border-color: var(--accent-btn);
  color: #FFFFFF;
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF;
}

/* 7.7 Accounts, Trials & Lifecycle Console (work-accounts.html) */
.accounts-noir-band {
  gap: 14px;
}
.lifecycle-spine-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.lifecycle-stage-tile {
  background: var(--noir-2);
  border: 1px solid var(--noir-hair);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  overflow: hidden;
}
.lifecycle-stage-tile.is-accent {
  border-color: rgba(23, 116, 142, 0.45);
}
.lifecycle-stage-tile.is-live-stage {
  border-color: rgba(47, 158, 110, 0.45);
}

.lifecycle-phase-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--noir-soft);
}
.lifecycle-stage-num {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--noir-ink);
  letter-spacing: -0.02em;
}
.lifecycle-stage-sub {
  font-size: 11.5px;
  color: var(--noir-soft);
  line-height: 1.38;
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 760px;
  overflow-y: auto;
  padding-right: 4px;
}
.account-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.55fr) auto 115px minmax(190px, 1.2fr);
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s ease;
}
.account-row:hover {
  border-color: rgba(23, 116, 142, 0.45);
  background: #FAF9FF;
  box-shadow: 0 3px 10px rgba(20, 20, 25, 0.05);
  transform: translateY(-0.5px);
}
.account-row.is-selected {
  background: #F5F1FF;
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent), 0 4px 12px rgba(23, 116, 142, 0.10);
}
.account-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.account-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}
.account-meta code {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Noir Counterweight Selected Account Dossier Inspector */
article.card[data-cc-account-inspector] {
  background: var(--noir);
  color: var(--noir-ink);
  border: 1px solid rgba(23, 116, 142, 0.42);
  box-shadow: 0 14px 32px -8px rgba(20, 20, 25, 0.26);
}
article.card[data-cc-account-inspector] .card-head {
  border-bottom-color: var(--noir-hair);
}
article.card[data-cc-account-inspector] .card-kicker {
  color: #86C3D4;
}
article.card[data-cc-account-inspector] h2 {
  color: var(--noir-ink);
}
article.card[data-cc-account-inspector] .u-text-muted-12 {
  color: #C4C6D4;
}
article.card[data-cc-account-inspector] code {
  background: var(--noir-3);
  border-color: var(--noir-hair);
  color: #D9EDF2;
}
article.card[data-cc-account-inspector] .kv-row {
  background: var(--noir-2);
  border-color: var(--noir-hair);
}
article.card[data-cc-account-inspector] .kv-key {
  color: var(--noir-soft);
}
article.card[data-cc-account-inspector] .kv-val {
  color: var(--noir-ink);
}
article.card[data-cc-account-inspector] .pill-green {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #6EE7B7 !important;
  border-color: rgba(52, 211, 153, 0.42) !important;
}
article.card[data-cc-account-inspector] .pill-violet {
  background: rgba(23, 116, 142, 0.28) !important;
  color: #D9EDF2 !important;
  border-color: rgba(134, 195, 212, 0.45) !important;
}

/* Key-Value Lists & Progress Bars */
.kv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kv-row {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kv-key {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--softer);
}
.kv-val {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.45;
}
.progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--accent);
  transition: width 0.25s ease;
}
.progress-fill.green,
.green {
  background: var(--green);
}

/* 7.8 Utility & Helper Classes Across All Pages */
.u-fw-600 { font-weight: 600; }
.u-mt-2 { margin-top: 2px; }
.u-mt-5 { margin-top: 5px; }
.u-mt-10 { margin-top: 10px; }
.u-mb-8 { margin-bottom: 8px; }
.u-mb-12 { margin-bottom: 12px; }
.u-text-12 { font-size: 12px; color: var(--ink); line-height: 1.4; }
.u-w-95 { width: 95%; }
.u-w-92 { width: 92%; }
.u-w-90 { width: 90%; }
.u-w-75 { width: 75%; }
.u-w-70 { width: 70%; }
.u-w-68 { width: 68%; }
.u-w-60 { width: 60%; }

.deal-mini {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pipe-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.stop-reason {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
}
.orbital-backdrop,
.orbital-ring-outer,
.brain-ambient-particles,
.brain-flow-edges,
.brain-live-packets,
.stage-badge {
  pointer-events: auto;
}

@media (max-width: 1180px) {
  .split-65-35,
  .split-60-40,
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .lifecycle-spine-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .account-row {
    grid-template-columns: 1fr auto;
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .topbar,
  .work-tabs,
  .content,
  .page-body,
  .content-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .lifecycle-spine-grid,
  .account-row {
    grid-template-columns: 1fr;
  }
}

/* === Brain Control Room (3-Zone Operational Console) === */
.brain-subbar-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.brain-control-room {
  padding: 18px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brain-zone-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.brain-zone-1,
.brain-zone-2,
.brain-zone-3,
.brain-ops-drawer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

/* Canvas-First Split Layout (Interactive Map Left + Unified Sticky Drawer Right) */
.brain-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, 490px);
  gap: 18px;
  align-items: start;
}
.brain-workspace-grid[data-cc-drawer-open="false"] {
  grid-template-columns: minmax(0, 1fr);
}
.brain-workspace-grid[data-cc-drawer-open="false"] .brain-ops-drawer {
  display: none;
}

/* Zone 1: Interactive Topology Stage */
.brain-topology-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  min-height: 540px;
  padding: 20px 18px 22px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.brain-topology-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.topo-edge {
  fill: none;
  stroke: rgba(20, 20, 25, 0.14);
  stroke-width: 1.5;
}
.topo-edge-child {
  fill: none;
  stroke: rgba(23, 116, 142, 0.30);
  stroke-width: 1.35;
  stroke-dasharray: 3 3;
}
.topo-edge-live {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 6 7;
  animation: cc-flow-dash 1.8s linear infinite;
}
.topo-edge-amber {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-dasharray: 6 7;
  animation: cc-flow-dash 1.8s linear infinite;
}
.brain-topo-top-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.brain-topo-tier-depts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.brain-topo-tier-depts > .brain-dept-node:nth-child(1) { grid-column: 1 / span 2; }
.brain-topo-tier-depts > .brain-dept-node:nth-child(2) { grid-column: 3 / span 2; }
.brain-topo-tier-depts > .brain-dept-node:nth-child(3) { grid-column: 5 / span 2; }
.brain-topo-tier-depts > .brain-dept-node:nth-child(4) { grid-column: 2 / span 2; }
.brain-topo-tier-depts > .brain-dept-node:nth-child(5) { grid-column: 4 / span 2; }

.brain-dept-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  min-width: 0;
  text-align: left;
}
.brain-dept-node:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
}
.brain-dept-node:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.brain-dept-node.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 116, 142, 0.14), var(--shadow-card);
}
.brain-node-michel {
  width: 100%;
  background: var(--noir);
  color: var(--noir-ink);
  border-color: var(--noir-hair);
}
.brain-node-michel .dept-node-title {
  color: var(--noir-ink);
}
.brain-node-michel .dept-node-subtag,
.brain-node-michel .dept-node-meta {
  color: var(--noir-soft);
}
.brain-node-michel .dept-count-pill {
  background: var(--noir-2);
  color: var(--noir-ink);
  border-color: var(--noir-hair);
}
@keyframes cc-amber-pulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(217, 138, 28, 0.30), var(--shadow-card);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(217, 138, 28, 0.14), 0 8px 20px -4px rgba(217, 138, 28, 0.28);
  }
}
.brain-node-michel.is-needs-answer {
  border-color: var(--amber);
  animation: cc-amber-pulse 2.2s ease-in-out infinite;
}
.brain-node-michel.is-needs-answer .dept-count-pill {
  background: rgba(217, 138, 28, 0.18);
  color: #FCD34D;
  border-color: rgba(217, 138, 28, 0.55);
}
.brain-node-center {
  width: 100%;
  border-color: rgba(23, 116, 142, 0.32);
}

/* Inline Quick-Ask Bar Inside Selected Node */
.dept-inline-chat {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.brain-dept-node.is-selected .dept-inline-chat {
  display: flex;
}
.brain-node-michel .dept-inline-chat {
  border-top-color: var(--noir-hair);
}
.dept-inline-input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  outline: none;
}
.dept-inline-input:focus {
  border-color: var(--accent);
}
.brain-node-michel .dept-inline-input {
  background: var(--noir-2);
  border-color: var(--noir-hair);
  color: var(--noir-ink);
}
.brain-node-michel .dept-inline-input::placeholder {
  color: var(--noir-soft);
}
.dept-inline-send {
  border: none;
  border-radius: 999px;
  background: var(--accent-btn);
  color: #FFFFFF;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.14s ease;
}
.dept-inline-send:hover {
  background: var(--accent-hover, #125E73);
}

.dept-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dept-node-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}
.dept-node-title {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.dept-node-subtag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--softer);
}
.dept-node-counts {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.dept-count-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  white-space: nowrap;
}
.dept-count-pill.is-waiting {
  border-color: rgba(217, 138, 28, 0.45);
  background: rgba(217, 138, 28, 0.10);
  color: #9A5B06;
}
.dept-node-meta {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}
.dept-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.dept-topic-pills:empty {
  display: none;
}
.dept-topic-pill {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.dept-topic-pill:hover {
  border-color: var(--accent);
  color: var(--accent-btn);
}
.dept-topic-pill.is-active {
  background: var(--accent-btn);
  border-color: var(--accent-btn);
  color: #FFFFFF;
}

/* Spawned Subagent Child Nodes */
.dept-children-cluster {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
  margin-top: 2px;
  border-top: 1px dashed var(--border);
}
.dept-children-cluster:empty {
  display: none;
}
.dept-child-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.05);
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.dept-child-node:hover {
  border-color: var(--accent);
  background: rgba(23, 116, 142, 0.07);
}
.dept-child-node.is-spawning {
  border-color: rgba(23, 116, 142, 0.30);
  background: rgba(23, 116, 142, 0.06);
}
.dept-child-node.is-outbox {
  border-color: rgba(217, 138, 28, 0.32);
  background: rgba(217, 138, 28, 0.06);
}
.dept-child-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.dept-child-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dept-child-worker {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--softer);
  flex-shrink: 0;
}
.dept-child-timer {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-btn);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Right Docked Unified Department Drawer */
.brain-ops-drawer {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-height: calc(100vh - 88px);
  overflow: hidden;
}
.brain-drawer-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.brain-drawer-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.brain-drawer-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.brain-drawer-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.14s ease, color 0.14s ease;
}
.brain-drawer-tab.active {
  background: var(--noir);
  color: var(--noir-ink);
}
.brain-drawer-panel {
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.brain-dept-pulse-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brain-dept-pulse-card:empty {
  display: none;
}
.brain-dept-pulse-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.brain-dept-pulse-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

/* Zone 2: Conversation Console */
.brain-zone-2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.brain-console-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.brain-console-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
body.page-brain .pill-dept,
.pill-dept {
  background: var(--noir);
  color: var(--noir-ink);
  border-color: var(--noir);
}
.brain-governance-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border);
}
.brain-governance-note code {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink);
}
.brain-console-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.brain-control-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.brain-new-project-group {
  margin-left: auto;
}
.cc-select,
.cc-input-sm {
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  outline: none;
}
.cc-select:focus,
.cc-input-sm:focus {
  border-color: var(--accent);
}
.cc-input-sm {
  min-width: 175px;
}

.brain-task-detail {
  background: var(--bg);
  border: 1px solid rgba(23, 116, 142, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brain-task-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  font-size: 12px;
}
.brain-task-detail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.brain-drawer-panel .brain-thread-stream {
  flex: 1 1 auto;
  min-height: 180px;
  max-height: none;
}
.brain-drawer-panel .brain-queue-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}
.brain-thread-stream {
  min-height: 250px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.brain-thread-stream .msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brain-thread-stream .msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
}
.brain-thread-stream .msg-sender {
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.brain-thread-stream .msg-time {
  color: var(--softer);
  font-family: var(--mono);
  font-size: 10.5px;
}
.brain-thread-stream .msg-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.brain-thread-stream .msg.from-michel .msg-bubble {
  border-color: var(--ink);
}
.brain-thread-stream .msg.is-streaming .msg-bubble {
  border-color: var(--accent);
}

.brain-quick-triggers {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.brain-quick-triggers:empty {
  display: none;
}
.brain-composer-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface);
}
.brain-composer-input {
  width: 100%;
  border: none;
  outline: none;
  resize: vertical;
  min-height: 64px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: transparent;
}
.brain-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Zone 3: Decision & Execution Queue */
.brain-zone-3 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.brain-queue-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.brain-queue-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.brain-q-tab {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.brain-q-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}
.q-tab-count {
  font-family: var(--mono);
  font-size: 10.5px;
  opacity: 0.85;
}
.brain-queue-scroll {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 2px;
}
.brain-q-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brain-q-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.brain-q-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brain-q-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brain-q-card.is-decided {
  opacity: 0.45;
  pointer-events: none;
}
.brain-q-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.brain-q-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.brain-q-card-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.brain-q-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cf-inline-draft {
  width: 100%;
  min-height: 68px;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 9px;
  resize: vertical;
}
.cf-inline-draft:focus {
  outline: none;
  border-color: var(--accent);
}
.cf-inline-error {
  font-size: 11.5px;
  color: var(--red);
  font-weight: 500;
}
.cf-source-box {
  background: var(--alt);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cf-source-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--soft);
}
.cf-source-platform {
  text-transform: uppercase;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}
.cf-source-author {
  font-weight: 600;
  color: var(--ink);
}
.cf-source-link {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--petrol-text);
  text-decoration: none;
}
.cf-source-link:hover {
  text-decoration: underline;
}
.cf-source-text {
  margin: 0;
  padding-left: 10px;
  border-left: 2px solid var(--hair);
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Collapsible Static Reference Block */
.brain-ref-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 0;
  overflow: hidden;
}
.brain-ref-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.brain-ref-summary::-webkit-details-marker {
  display: none;
}
.brain-ref-details[open] .brain-ref-summary {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.brain-ref-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.brain-ref-body .workspace-grid {
  padding: 0;
}

@media (max-width: 1220px) {
  .brain-workspace-grid {
    grid-template-columns: 1fr;
  }
  .brain-ops-drawer {
    position: static;
    max-height: none;
  }
  .brain-topo-tier-depts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brain-topo-tier-depts > .brain-dept-node:nth-child(n) {
    grid-column: span 1;
  }
}
@media (max-width: 1059px) {
  .brain-topology-svg {
    display: none;
  }
}
@media (max-width: 760px) {
  .brain-control-room {
    padding: 14px 16px 28px;
  }
  .brain-topo-top-row,
  .brain-topo-tier-depts {
    grid-template-columns: 1fr;
  }
  .brain-task-detail-meta {
    grid-template-columns: 1fr;
  }
  .brain-new-project-group {
    margin-left: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .topo-edge-live,
  .topo-edge-amber,
  .brain-node-michel.is-needs-answer {
    animation: none;
  }
}

/* ---- Simplified Overview & Crons (#cc-overview-root) ---- */
#cc-overview-root.content {
  padding: 22px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#cc-overview-root .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

#cc-overview-root .stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#cc-overview-root .stat-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

#cc-overview-root .stat-val {
  font-family: "Sora", var(--font);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

#cc-overview-root .stat-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

#cc-overview-root .workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  padding: 0;
  align-items: start;
}

#cc-overview-root .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

#cc-overview-root .side-stack {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#cc-overview-root .metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-cron-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.overview-cron-wrap {
  width: 100%;
  overflow-x: auto;
}

.overview-cron-table {
  width: 100%;
  border-collapse: collapse;
}

.overview-cron-sched {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
}

.overview-cron-cmd {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink);
  word-break: break-word;
  background: transparent;
  padding: 0;
}

.overview-cron-log-meta {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-gates-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overview-gate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 140ms ease, background 140ms ease;
}

.overview-gate-row:hover {
  border-color: var(--accent, #17748E);
  background: var(--surface);
}

.overview-gate-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.overview-gate-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-gate-meta {
  font-size: 11.5px;
  color: var(--muted);
}

.overview-gate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.overview-gate-links .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong, var(--border));
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.overview-gate-links .btn-primary-dark,
.overview-gate-links .btn-primary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feed-status-pill.is-error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.feed-status-pill.is-idle {
  background: var(--bg);
  color: var(--muted);
  border-color: var(--border);
}

@media (max-width: 1120px) {
  #cc-overview-root .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #cc-overview-root .workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #cc-overview-root.content {
    padding: 14px 16px 28px;
  }
  #cc-overview-root .stats-grid,
  #cc-overview-root .metrics-grid {
    grid-template-columns: 1fr;
  }
}






