/* =========================================================================
   FounderLens Dashboard — visual system "PRISM" (rich · bento · glass)
   Colorful, chart-led, glassmorphic. Indigo primary + multi-color data
   palette, big-number type hierarchy, bento mosaic, frosted glass.
   Synthesized from the inspo set (financial bento/rings, crextio glass/dark
   cards, banking/logip gradient charts, domos gauges, codenome big numbers).
   Throwaway prototype.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* canvas */
  --bg-1: #FBFBFD; --bg-2: #F1F2F8;
  --card: #FFFFFF;
  --glass: rgba(255,255,255,.55);
  --glass-strong: rgba(255,255,255,.72);
  --glass-bd: rgba(255,255,255,.75);
  --line: #ECEDF2; --line-soft: #F2F3F7; --hover: #F5F6FA;

  /* ink */
  --ink: #1B1B26; --muted: #5C5F6E; --faint: #9AA0AE;

  /* primary + rich data palette */
  --indigo: #6366F1; --indigo-deep: #4F46E5;
  --teal: #14B8A6; --amber: #F59E0B; --rose: #F43F5E;
  --green: #10B981; --sky: #0EA5E9; --violet: #8B5CF6;
  --dark: #17171C; --dark-2: #1F1F2B;

  /* per-category accent (set inline per view; defaults to indigo) */
  --cat: #6366F1; --cat-soft: #EEF0FE;

  /* grades */
  --g-ver: #10B981; --g-ver-bg: #E7F8F1; --g-ver-bd: #BEEBD9;
  --g-cor: #F59E0B; --g-cor-bg: #FEF4E3; --g-cor-bd: #F8E0B0;
  --g-clm: #94A3B8; --g-clm-bg: #F1F3F7; --g-clm-bd: #DEE3EB;

  /* judgment */
  --j-actnow: #17171C; --j-watch: #6B7180; --j-ignore: #B6BCC8;

  --f: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --sh-xs: 0 1px 2px rgba(20,20,40,.05);
  --sh-sm: 0 2px 8px rgba(20,20,40,.05), 0 1px 2px rgba(20,20,40,.04);
  --sh: 0 6px 24px rgba(20,20,40,.08);
  --sh-md: 0 10px 30px rgba(20,20,40,.10);
  --sh-lg: 0 18px 50px rgba(20,20,40,.16);
  --sh-dark: 0 14px 40px rgba(23,23,28,.30);

  --r-lg: 24px; --r: 20px; --r-md: 15px; --r-sm: 11px;

  /* persistent demo banner height — content is offset by exactly this much */
  --demo-banner-h: 40px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  /* push ALL app content down by the banner height so the fixed strip
     never overlaps or hides anything */
  padding-top: var(--demo-banner-h);
  font-family: var(--f); color: var(--ink); font-size: 14px; line-height: 1.5;
  font-feature-settings: 'tnum' 1, 'cv01' 1; font-variant-numeric: tabular-nums;
  background:
    radial-gradient(700px 480px at 6% 2%, rgba(99,102,241,.10), transparent 60%),
    radial-gradient(640px 460px at 98% 4%, rgba(139,92,246,.09), transparent 58%),
    radial-gradient(620px 520px at 80% 96%, rgba(20,184,166,.08), transparent 60%),
    radial-gradient(560px 480px at 2% 92%, rgba(245,158,11,.06), transparent 60%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.num, .tnum { font-variant-numeric: tabular-nums; }
h1,h2,h3,h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
a { color: var(--indigo-deep); text-decoration: none; }
a:hover { color: var(--indigo); }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--cat-soft); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: #D6D9E3; border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #C3C8D6; background-clip: padding-box; }

/* ====================== PERSISTENT DEMO BANNER ========================== */
/* Slim, full-width, on-brand indigo→violet strip. Fixed to the very top,
   always visible, not dismissible (no close control; returns on every reload).
   Body padding-top offsets all content so it never overlaps the dashboard. */
.demo-banner {
  position: fixed; top: 0; left: 0; right: 0; height: var(--demo-banner-h);
  z-index: 1000;
  display: flex; align-items: center;
  background: linear-gradient(90deg, var(--indigo-deep) 0%, var(--indigo) 48%, var(--violet) 100%);
  color: #fff;
  box-shadow: 0 2px 14px rgba(79, 70, 229, .30);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.demo-banner-inner {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 18px 0 22px; min-width: 0;
}
.demo-banner-msg {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  font-size: 12.5px; font-weight: 500; line-height: 1; letter-spacing: .005em;
  color: rgba(255, 255, 255, .94);
}
/* the whole sentence is ONE flex item so the comma hugs the word and the
   line truncates cleanly on narrow viewports */
.demo-banner-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-banner-msg strong { font-weight: 800; letter-spacing: -.01em; color: #fff; }
.demo-banner-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .22);
}
.demo-banner-cta {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 11.5px; font-weight: 700; letter-spacing: .005em; color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .30);
  padding: 5px 13px; border-radius: 999px;
  transition: background .15s ease, border-color .15s ease;
}
.demo-banner-cta:hover {
  background: rgba(255, 255, 255, .24);
  border-color: rgba(255, 255, 255, .55); color: #fff;
}
.demo-banner-arrow { transition: transform .15s ease; }
.demo-banner-cta:hover .demo-banner-arrow { transform: translateX(2px); }
/* very narrow viewports: keep it on one slim line, drop the CTA label to the arrow */
@media (max-width: 560px) {
  .demo-banner-cta { padding: 5px 9px; font-size: 0; gap: 0; }
  .demo-banner-arrow { font-size: 13px; }
}

/* ============================ APP SHELL ================================= */
.app { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }

/* ----------------------------- SIDEBAR --------------------------------- */
.sidebar {
  /* stick just below the fixed demo banner; height excludes the banner so the
     footer stays visible */
  position: sticky; top: var(--demo-banner-h); height: calc(100vh - var(--demo-banner-h)); overflow-y: auto; padding: 20px 15px 16px;
  display: flex; flex-direction: column;
  background: var(--glass); backdrop-filter: blur(20px) saturate(150%);
  border-right: 1px solid var(--glass-bd);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px 4px; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 10px; color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; background: linear-gradient(145deg, var(--indigo), var(--violet));
  box-shadow: 0 6px 16px rgba(99,102,241,.4);
}
.brand .name { font-weight: 800; font-size: 17px; letter-spacing: -.03em; }
.brand .name span { background: linear-gradient(90deg, var(--indigo), var(--violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.lens { margin: 16px 4px 8px; padding: 13px 14px; border-radius: var(--r-md); background: linear-gradient(145deg, rgba(99,102,241,.1), rgba(139,92,246,.08)); border: 1px solid rgba(99,102,241,.18); }
.lens .ll { font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--indigo-deep); font-weight: 700; }
.lens .ln { font-weight: 800; font-size: 15px; margin-top: 3px; letter-spacing: -.02em; }
.lens .lt { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.lens .lt b { color: var(--ink); font-weight: 700; }

.dd-label, .nav-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); font-weight: 700; padding: 16px 8px 8px; }
.dd { position: relative; padding: 0 4px; }
.dd-btn { width: 100%; display: flex; align-items: center; gap: 11px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; box-shadow: var(--sh-xs); transition: box-shadow .14s, border-color .14s; }
.dd-btn:hover { box-shadow: var(--sh-sm); }
.dd.open .dd-btn { border-color: rgba(99,102,241,.5); box-shadow: 0 0 0 3px rgba(99,102,241,.14); }
.dd-av { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.dd-meta { flex: 1; min-width: 0; }
.dd-name { font-weight: 700; font-size: 14.5px; letter-spacing: -.02em; }
.dd-sub { font-size: 10.5px; color: var(--faint); margin-top: 1px; }
.dd-chev { color: var(--faint); transition: transform .18s; flex: none; }
.dd.open .dd-chev { transform: rotate(180deg); }
.dd-menu { position: absolute; left: 4px; right: 4px; top: calc(100% + 6px); z-index: 60; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: 6px; opacity: 0; transform: translateY(-6px) scale(.99); pointer-events: none; transition: opacity .16s, transform .16s; }
.dd.open .dd-menu { opacity: 1; transform: none; pointer-events: auto; }
.dd-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 9px; border: 0; background: transparent; border-radius: var(--r-sm); text-align: left; }
.dd-item:hover { background: var(--hover); }
.dd-item.active { background: var(--cat-soft); }
.dd-item .di-name { font-weight: 700; font-size: 13.5px; }
.dd-item .di-sub { font-size: 10.5px; color: var(--faint); }
.dd-item .di-flag { margin-left: auto; }

.tierflag { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); background: var(--bg-1); }
.tierflag.t1 { color: var(--indigo-deep); border-color: rgba(99,102,241,.3); background: rgba(99,102,241,.1); }

.nav { display: flex; flex-direction: column; gap: 3px; padding: 0 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: transparent; border: 1px solid transparent; border-radius: var(--r-sm); padding: 10px 12px; color: var(--muted); transition: background .12s, color .12s; }
.nav-item:hover { background: var(--hover); color: var(--ink); }
.nav-item.active { background: linear-gradient(135deg, var(--dark), var(--dark-2)); color: #fff; box-shadow: var(--sh-dark); }
.nav-item.active .ni-ico { opacity: 1; color: #fff; }
.ni-ico { width: 18px; height: 18px; flex: none; opacity: .7; display: grid; place-items: center; }
.ni-name { font-size: 13.5px; font-weight: 600; flex: 1; letter-spacing: -.01em; }
.ni-badge { font-size: 10px; font-weight: 800; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--rose); color: #fff; box-shadow: 0 3px 8px rgba(244,63,94,.45); }
.nav-item.active .ni-badge { background: #fff; color: var(--dark); box-shadow: none; }

.side-foot { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid var(--line-soft); }
.side-foot p { color: var(--faint); font-size: 11px; margin: 0 0 4px; }
.side-foot .wk { color: var(--muted); font-weight: 600; }
.side-foot .ph { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--faint); margin-top: 8px; }

/* ------------------------------- MAIN ---------------------------------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.viewport { max-width: 1280px; width: 100%; margin: 0 auto; padding: 28px 36px 64px; flex: 1; }

.vhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 20px; }
.vhead .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--cat); font-weight: 700; }
.vhead .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cat) 18%, transparent); }
.vhead h1 { font-size: 31px; font-weight: 800; letter-spacing: -.035em; margin-top: 9px; line-height: 1.02; }
.vhead .sub { color: var(--muted); font-size: 13.5px; margin-top: 8px; max-width: 600px; line-height: 1.5; }
.head-right { display: flex; align-items: center; gap: 10px; flex: none; }
.date-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--glass-bd); border-radius: 999px; padding: 8px 14px; box-shadow: var(--sh-xs); }

/* coverage strip — glass */
.cov-strip { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; background: var(--glass); backdrop-filter: blur(16px) saturate(140%); border: 1px solid var(--glass-bd); border-radius: var(--r-md); padding: 11px 16px; margin-bottom: 22px; box-shadow: var(--sh-sm); }
.cov-strip .cs-k { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.cov-strip .cs-k.see { color: var(--g-ver); } .cov-strip .cs-k.blind { color: var(--faint); }
.cov-strip .cs-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.cov-chip { font-size: 11px; color: var(--muted); background: rgba(255,255,255,.6); border: 1px solid var(--line); border-radius: 7px; padding: 2px 9px; }
.cov-chip.blind { color: var(--faint); border-style: dashed; }
.cov-sep { width: 1px; height: 18px; background: var(--line); }

/* ============================ BENTO GRID ============================== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: start; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; }
.c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; }
.c9 { grid-column: span 9; } .c12 { grid-column: span 12; }
.r2 { grid-row: span 2; }
@media (max-width: 1180px){
  .c3 { grid-column: span 6; } .c4 { grid-column: span 6; } .c5 { grid-column: span 6; }
  .c7 { grid-column: span 12; } .c8 { grid-column: span 12; } .c9 { grid-column: span 12; }
  .r2 { grid-row: auto; }
}
@media (max-width: 720px){ .bento > * { grid-column: span 12 !important; } }

.sec-label { grid-column: span 12; display: flex; align-items: baseline; gap: 12px; margin: 10px 2px 0; }
.sec-label h2 { font-size: 19px; font-weight: 800; letter-spacing: -.025em; }
.sec-label .ico { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--cat-soft); color: var(--cat); }
.sec-label .st-sub { font-size: 12px; color: var(--faint); margin-left: auto; font-weight: 600; }

/* ============================ CARDS ================================== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); padding: 18px 20px; position: relative; transition: transform .16s, box-shadow .16s; }
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.card.glass { background: var(--glass-strong); backdrop-filter: blur(18px) saturate(150%); border: 1px solid var(--glass-bd); }
.card.tint { background: linear-gradient(160deg, color-mix(in srgb, var(--cat) 9%, #fff), #fff); border-color: color-mix(in srgb, var(--cat) 22%, var(--line)); }
.card.dark { background: linear-gradient(155deg, var(--dark-2), var(--dark)); border-color: #2c2c38; color: #fff; box-shadow: var(--sh-lg); }
.card.dark h2, .card.dark h3 { color: #fff; }
.card.accent { background: linear-gradient(150deg, var(--cat), color-mix(in srgb, var(--cat) 60%, var(--dark))); border: 0; color: #fff; box-shadow: 0 14px 36px color-mix(in srgb, var(--cat) 35%, transparent); }
.card.accent .lab, .card.accent .muted { color: rgba(255,255,255,.8); }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-title { font-weight: 700; font-size: 13.5px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.card-title .tdot { width: 9px; height: 9px; border-radius: 3px; background: var(--cat); }
.kicker { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 700; }

/* card icon chip (top-right) */
.cico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--cat-soft); color: var(--cat); flex: none; }
.card.dark .cico, .card.accent .cico { background: rgba(255,255,255,.14); color: #fff; }

/* ============================ STAT CARD ============================== */
.lab { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 700; }
.stat { display: flex; flex-direction: column; min-height: 138px; }
.stat .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stat .big { font-size: clamp(38px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.04em; line-height: .98; margin: 12px 0 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.stat .big.sm { font-size: clamp(30px, 3.2vw, 40px); }
.stat .big.tiny { font-size: clamp(19px, 2.1vw, 26px); letter-spacing: -.02em; line-height: 1.18; }
.stat .unit { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 3px; letter-spacing: -.01em; }
.stat .botline { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card.dark .stat .unit { color: rgba(255,255,255,.6); }

.delta-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.delta-chip.up { color: var(--g-ver); background: var(--g-ver-bg); }
.delta-chip.down { color: var(--indigo-deep); background: #EEF0FE; }
.delta-chip.flat { color: var(--muted); background: var(--bg-2); }

/* glass progress bar */
.gbar { height: 9px; border-radius: 999px; background: rgba(120,125,150,.16); overflow: hidden; position: relative; }
.gbar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cat), color-mix(in srgb, var(--cat) 55%, #fff)); box-shadow: 0 1px 4px color-mix(in srgb, var(--cat) 45%, transparent); }
.gbar.glass { background: rgba(255,255,255,.35); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.5); }
.barset { display: flex; flex-direction: column; gap: 11px; }
.barrow .bl { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 5px; }
.barrow .bl .bk { color: var(--muted); font-weight: 600; } .barrow .bl .bv { font-weight: 700; }

/* sparkline mini bars */
.spark { height: 30px; display: flex; align-items: flex-end; gap: 3px; }
.spark i { flex: 1; border-radius: 3px 3px 0 0; min-height: 3px; background: var(--cat); }

/* ============================ GRADE BADGE ============================== */
.grade { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; font-size: 10.5px; font-weight: 700; line-height: 1; padding: 3px 9px 3px 7px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.grade .glyph { font-size: 10px; transform: translateY(.3px); }
.grade-verified { color: var(--g-ver); background: var(--g-ver-bg); border-color: var(--g-ver-bd); }
.grade-corroborated { color: var(--g-cor); background: var(--g-cor-bg); border-color: var(--g-cor-bd); }
.grade-claimed, .grade-unverifiable { color: var(--g-clm); background: var(--g-clm-bg); border-color: var(--g-clm-bd); }
.grade-on-dark { background: rgba(255,255,255,.12) !important; border-color: rgba(255,255,255,.22) !important; color: #fff !important; }

.src-line { font-size: 10.5px; color: var(--faint); margin-top: 5px; font-weight: 500; }
.src-line .sep { opacity: .5; margin: 0 5px; }

/* ============================ FRESHNESS =============================== */
.fresh { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; letter-spacing: .01em; }
.fresh.live { color: var(--green); background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.28); }
.fresh.weekly { color: var(--faint); background: var(--bg-2); border: 1px solid var(--line); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: pulse 2.2s infinite; flex: none; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(16,185,129,.5);} 70%{box-shadow:0 0 0 5px rgba(16,185,129,0);} 100%{box-shadow:0 0 0 0 rgba(16,185,129,0);} }
.fresh.on-dark.live { color: #6EE7B7; background: rgba(16,185,129,.18); border-color: rgba(16,185,129,.34); }
.fresh.on-dark.weekly { color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }

/* ============================ JUDGMENT ================================ */
.jchip { display: inline-flex; align-items: center; gap: 5px; line-height: 1; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; border-radius: 7px; color: #fff; }
.jchip .jg { font-size: 9px; }
.j-actnow { background: var(--dark); } .j-watch { background: var(--j-watch); } .j-ignore { background: var(--j-ignore); }
.j-judgment { background: var(--indigo); }
.move { display: inline-flex; align-items: center; gap: 6px; line-height: 1; font-weight: 800; font-size: 11px; letter-spacing: .02em; text-transform: uppercase; padding: 6px 11px; border-radius: 9px; border: 1.5px solid var(--ink); color: var(--ink); background: var(--card); }
.move .verb { color: var(--indigo-deep); }
.move-copy { border-color: rgba(99,102,241,.4); } .move-counter { border-color: var(--ink); }
.move-investigate { border-color: var(--line); color: var(--muted); } .move-ignore { border-color: var(--line); color: var(--faint); }
.move-dark { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 11px; letter-spacing: .02em; text-transform: uppercase; padding: 7px 12px; border-radius: 9px; background: #fff; color: var(--dark); white-space: nowrap; }
.move-dark .verb { color: var(--indigo-deep); }
.repl { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); background: var(--bg-2); border: 1px dashed var(--line); border-radius: 8px; padding: 4px 9px; font-weight: 600; }
.repl b { font-weight: 800; } .repl.copyable b { color: var(--g-ver); } .repl.needs-distribution b { color: var(--g-cor); }

/* ============================ COMPACT INSIGHT ROW ==================== */
.feed { display: flex; flex-direction: column; gap: 4px; }
.irow { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px; border-radius: var(--r-md); transition: background .12s; }
.irow:hover { background: var(--hover); }
.irow + .irow { border-top: 1px solid var(--line-soft); border-radius: 0; }
.irow:hover { border-radius: var(--r-md); }
.ic-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--cat-soft); color: var(--cat); flex: none; font-size: 13px; }
.ic-body { min-width: 0; }
.ic-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 5px; }
.ic-cat { font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; color: var(--faint); }
.ic-text { font-size: 13px; line-height: 1.45; font-weight: 500; }
.ic-text b { font-weight: 800; }
.ic-read { font-size: 12px; color: var(--muted); margin-top: 8px; padding: 8px 11px; background: var(--cat-soft); border-radius: var(--r-sm); line-height: 1.45; }
.ic-read b { color: var(--ink); }
.ic-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ic-judge { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 9px; }

/* ============================ BEFORE / AFTER ========================= */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 11px; align-items: stretch; }
.ba-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; background: var(--bg-1); }
.ba-box.after { background: var(--cat-soft); border-color: color-mix(in srgb, var(--cat) 28%, var(--line)); }
.ba-box .lab { margin-bottom: 6px; }
.ba-box .txt { font-size: 13px; line-height: 1.45; font-weight: 500; }
.ba-arrow { display: grid; place-items: center; color: var(--cat); font-size: 18px; }
@media (max-width: 620px){ .ba { grid-template-columns: 1fr; } .ba-arrow { transform: rotate(90deg); } }

/* ============================ TIERS / ROLES ========================= */
.tiers { display: grid; gap: 9px; }
.tier-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 15px; }
.tier-row.popular { border-color: color-mix(in srgb, var(--cat) 35%, var(--line)); background: var(--cat-soft); }
.tier-row .tn { font-weight: 700; font-size: 13.5px; } .tier-row .tl { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tier-row .tp { font-size: 20px; font-weight: 800; text-align: right; letter-spacing: -.03em; }
.tier-row .tp small { font-size: 11px; color: var(--faint); font-weight: 600; }
.tier-row .tp.contact { font-size: 13px; color: var(--muted); font-weight: 600; }
.roles { display: flex; flex-direction: column; gap: 8px; }
.role-row { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--r-md); }
.role-row:hover { background: var(--hover); }
.role-dept { font-size: 9.5px; color: var(--cat); background: var(--cat-soft); padding: 2px 8px; border-radius: 6px; font-weight: 800; }
.role-title { font-size: 13px; font-weight: 600; }

/* ============================ QUADRANTS / THEMES ===================== */
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quad-cell { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px 16px; }
.quad-cell h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 11px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 800; }
.quad-cell.s h4 { color: var(--green); } .quad-cell.w h4 { color: var(--rose); }
.quad-cell.t h4 { color: var(--amber); } .quad-cell.u h4 { color: var(--indigo-deep); }
.quad-cell ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.quad-cell li { font-size: 12.5px; line-height: 1.4; padding-left: 16px; position: relative; font-weight: 500; }
.quad-cell li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.quad-cell.s li::before { background: var(--green); } .quad-cell.w li::before { background: var(--rose); }
.quad-cell.t li::before { background: var(--amber); } .quad-cell.u li::before { background: var(--indigo); }
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px){ .quad, .themes { grid-template-columns: 1fr; } }
.theme-col h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 10px; font-weight: 800; }
.theme-item { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.theme-item:last-child { border-bottom: 0; }
.theme-item .tt { font-size: 12.5px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-weight: 500; }
.theme-item .tt .cnt { font-size: 11px; color: var(--cat); font-weight: 800; }

/* synthesis / rerank / empty */
.synth { display: flex; gap: 13px; align-items: flex-start; }
.synth .sy-b { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--cat); font-weight: 800; margin-bottom: 5px; }
.synth p { margin: 0; font-size: 13.5px; line-height: 1.55; font-weight: 500; }
.rerank-list { display: flex; flex-direction: column; gap: 9px; }
.rerank-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.rerank-row.act-now { border-color: var(--dark); box-shadow: inset 3px 0 0 var(--dark); }
.rerank-row .rk { font-size: 16px; font-weight: 800; color: var(--faint); text-align: center; }
.rerank-row.act-now .rk { color: var(--dark); }
.rerank-row .rsig { font-size: 13px; font-weight: 700; } .rerank-row .rnote { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; font-weight: 500; }
.empty-state { border: 1px dashed var(--line); border-radius: var(--r-md); padding: 14px 15px; background: var(--bg-1); }
.empty-state .es-top { display: flex; align-items: center; gap: 8px; } .empty-state .es-k { font-weight: 800; font-size: 13px; }
.empty-state .es-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; font-weight: 500; }
.logo-wall { display: flex; flex-wrap: wrap; gap: 8px; }
.logo-chip { font-weight: 700; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; background: var(--bg-1); }

/* gauges / donut / chart */
.chart-src { font-size: 10px; color: var(--faint); margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 500; }
.apx { width: 100%; }
.gauge-wrap { display: flex; align-items: center; gap: 6px; }
.gauge-legend { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.gauge-legend .gl { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.gauge-legend .gl .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.gauge-legend .gl b { color: var(--ink); margin-left: auto; }

/* act items (dark overview card) */
.act-item { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.1); }
.act-item:first-child { border-top: 0; padding-top: 4px; }
.act-rank { font-size: 13px; font-weight: 800; color: rgba(255,255,255,.4); }
.act-cat { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.55); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.act-cat .act-now-tag { font-size: 9px; font-weight: 800; background: rgba(255,255,255,.16); color: #fff; padding: 2px 6px; border-radius: 5px; }
.act-text { font-size: 13.5px; color: #fff; line-height: 1.4; margin-top: 4px; font-weight: 600; }
.act-meta { font-size: 10px; color: rgba(255,255,255,.5); margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 500; }

/* timeline / noise */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.tl-item:last-child { border-bottom: 0; }
.tl-date { font-size: 11px; color: var(--faint); padding-top: 2px; font-weight: 600; }
.tl-text { font-size: 13px; line-height: 1.45; font-weight: 500; } .tl-body.collapsed .tl-text { color: var(--muted); font-size: 12.5px; }
.tl-judge { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.noise { margin-top: 14px; border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--bg-1); }
.noise-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: transparent; border: 0; text-align: left; }
.noise-head .nh-l { display: flex; align-items: center; gap: 10px; } .noise-head .nh-lab { font-size: 12px; font-weight: 700; color: var(--muted); }
.noise-head .nh-count { font-size: 11px; color: var(--faint); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; font-weight: 700; }
.noise-head .chev { color: var(--faint); transition: transform .2s; } .noise.open .noise-head .chev { transform: rotate(180deg); }
.noise-body { max-height: 0; overflow: hidden; transition: max-height .28s ease; } .noise.open .noise-body { max-height: 720px; }
.noise-inner { padding: 2px 16px 14px; }
.noise-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); align-items: center; }
.noise-row .nr-text { font-size: 12px; color: var(--faint); font-weight: 500; } .noise-row .nr-date { font-size: 10.5px; color: var(--faint); font-weight: 600; }

/* segmented */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.seg button { border: 0; background: transparent; padding: 7px 13px; font-size: 11.5px; font-weight: 700; color: var(--muted); transition: background .12s, color .12s; }
.seg button.active { background: var(--dark); color: #fff; } .seg button:not(.active):hover { background: var(--hover); }

/* brief */
.brief-sec { margin-top: 18px; }
.brief-sec .bs-lab { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-bottom: 7px; display: flex; align-items: center; gap: 9px; }
.brief-sec .bs-lab .ix { width: 22px; height: 22px; border-radius: 7px; background: var(--cat-soft); color: var(--cat); display: grid; place-items: center; font-size: 12px; }
.brief-sec p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); font-weight: 500; }

/* misc */
.muted { color: var(--muted); } .faint { color: var(--faint); }
.divider { height: 1px; background: var(--line-soft); margin: 2px 0; }
.row-wrap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* motion */
.reveal > * { opacity: 0; transform: translateY(12px); animation: rise .5s cubic-bezier(.22,.61,.36,1) forwards; }
.reveal > *:nth-child(1){animation-delay:.02s;}.reveal > *:nth-child(2){animation-delay:.06s;}.reveal > *:nth-child(3){animation-delay:.10s;}
.reveal > *:nth-child(4){animation-delay:.14s;}.reveal > *:nth-child(5){animation-delay:.18s;}.reveal > *:nth-child(6){animation-delay:.22s;}
.reveal > *:nth-child(7){animation-delay:.26s;}.reveal > *:nth-child(8){animation-delay:.30s;}.reveal > *:nth-child(n+9){animation-delay:.34s;}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .reveal > * { animation: none; opacity: 1; transform: none; } .live-dot { animation: none; } }

/* ApexCharts dark tooltip */
.apexcharts-tooltip.apexcharts-theme-light { border: 0 !important; border-radius: 12px !important; background: var(--dark) !important; color: #fff !important; box-shadow: var(--sh-lg) !important; overflow: hidden; }
.apexcharts-tooltip-title { background: rgba(255,255,255,.07) !important; border-bottom: 1px solid rgba(255,255,255,.1) !important; font-weight: 700 !important; font-size: 11px !important; color: rgba(255,255,255,.7) !important; padding: 6px 12px !important; }
.apexcharts-tooltip-series-group { padding: 4px 12px 7px !important; }
.apexcharts-tooltip-text-y-label, .apexcharts-tooltip-text-y-value { color: #fff !important; font-size: 12px !important; font-weight: 700 !important; }
.apexcharts-xaxistooltip { display: none !important; }
.apexcharts-radialbar-track .apexcharts-radialbar-area { stroke: rgba(120,125,150,.14); }

@media (max-width: 920px){
  .app { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .viewport { padding: 22px 16px 50px; }
  .vhead h1 { font-size: 26px; }
}
