/* ============================================================
   ProjectBrain — design system
   Graphite base · electric-mint accent · editorial type
   ============================================================ */

:root {
  --bg0: #0c0d10;
  --bg1: #101216;
  --bg2: #14161c;
  --bg3: #191c24;
  --line: #23262f;
  --line2: #2e323d;
  --t1: #f2f4f8;
  --t2: #9aa3b2;
  --t3: #626b7c;
  --mint: #4be3b0;
  --mint-dim: #2ea884;
  --violet: #a78bfa;
  --amber: #e8b566;
  --coral: #f2717b;
  --sky: #7fc5f0;
  --slate: #94a3b8;

  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --sidebar-w: 232px;
  --speed: .18s;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg0); color: var(--t1);
  font: 400 14px/1.5 var(--sans);
  display: flex; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(75,227,176,.22); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #22252e; border-radius: 8px; border: 2px solid var(--bg0); }
::-webkit-scrollbar-track { background: transparent; }

h1, h2, h3 { margin: 0; font-weight: 600; }
a { color: inherit; }
button { font-family: var(--sans); }

/* ---------- type utilities ---------- */
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0; }
.eyebrow {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--t3);
}
.t2 { color: var(--t2); } .t3 { color: var(--t3); }
.small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.num { font-family: var(--mono); font-size: .92em; }

/* ---------- generic controls ---------- */
input, textarea {
  background: var(--bg1); border: 1px solid var(--line); color: var(--t1);
  border-radius: var(--r-sm); padding: 8px 11px; font: inherit; font-size: 13px;
  outline: none; transition: border-color var(--speed), box-shadow var(--speed);
}
input:focus, textarea:focus { border-color: rgba(75,227,176,.55); box-shadow: 0 0 0 3px rgba(75,227,176,.08); }
input::placeholder, textarea::placeholder { color: var(--t3); }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg3); border: 1px solid var(--line2); color: var(--t1);
  border-radius: var(--r-sm); padding: 7px 14px; font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: all var(--speed); user-select: none;
}
.btn:hover { background: #1f232c; border-color: #3a3f4d; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: wait; }
.btn.primary {
  background: var(--mint); border-color: var(--mint); color: #06231a; font-weight: 600;
}
.btn.primary:hover { background: #5ff0c0; border-color: #5ff0c0; box-shadow: 0 2px 18px rgba(75,227,176,.25); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--t2); }
.btn.ghost:hover { background: var(--bg2); color: var(--t1); border-color: var(--line); }
.btn.danger { color: var(--coral); border-color: rgba(242,113,123,.35); background: rgba(242,113,123,.07); }
.btn.danger:hover { background: rgba(242,113,123,.14); }

/* ---------- status dots & pills ---------- */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--t3); display: inline-block; flex: none; }
.dot.ok { background: var(--mint); }
.dot.warn { background: var(--amber); }
.dot.bad { background: var(--coral); }
.dot.live { background: var(--mint); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }

.st {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .02em; color: var(--t2);
}
.st::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.st.ok { color: var(--mint); } .st.bad { color: var(--coral); } .st.warn { color: var(--amber); } .st.sky { color: var(--sky); } .st.mut { color: var(--t3); }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .04em;
  color: var(--t2); border: 1px solid var(--line); border-radius: 4px; padding: 1.5px 7px;
  text-transform: uppercase;
}
.tag.violet { color: #c4b5fd; border-color: rgba(167,139,250,.3); }
.tag.mint { color: var(--mint); border-color: rgba(75,227,176,.3); }
.tag.sky { color: var(--sky); border-color: rgba(127,197,240,.3); }
.tag.amber { color: var(--amber); border-color: rgba(232,181,102,.3); }
.tag.coral { color: var(--coral); border-color: rgba(242,113,123,.3); }
.tag.slate { color: var(--slate); }

/* ---------- avatars ---------- */
.av {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 600; letter-spacing: .03em; position: relative;
  border: 1.5px solid transparent;
}
.av.sm { width: 22px; height: 22px; font-size: 8.5px; }
.av.ai { border-color: rgba(75,227,176,.45); }
.av.ai::after {
  content: ""; position: absolute; top: -2px; right: -2px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--mint); border: 1.5px solid var(--bg0);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
aside {
  width: var(--sidebar-w); flex: none; display: flex; flex-direction: column;
  border-right: 1px solid var(--line); background: var(--bg1);
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 20;
}
.sbBrand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; }
.sbMark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background:
    radial-gradient(10px 10px at 30% 25%, rgba(75,227,176,.9), transparent 70%),
    radial-gradient(12px 12px at 72% 70%, rgba(167,139,250,.8), transparent 70%),
    #171a21;
  border: 1px solid var(--line2);
}
.sbBrand .nm { font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.sbBrand .ds { font-size: 10.5px; color: var(--t3); margin-top: 0; }

.sbSection { padding: 14px 12px 4px; }
.sbSection .eyebrow { padding: 0 8px 7px; }

.projCard {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(75,227,176,.04), transparent 55%), var(--bg2);
  padding: 11px 12px; cursor: pointer; transition: border-color var(--speed);
  position: relative; overflow: hidden;
}
.projCard:hover { border-color: var(--line2); }
.projCard .nm { font-weight: 600; font-size: 13.5px; letter-spacing: -.01em; }
.projCard .sub { font-size: 11px; color: var(--t3); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.projCard .spark { position: absolute; right: 10px; top: 12px; }
.projCard.current { border-color: rgba(75,227,176,.4); }
.projCard.current::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px;
  background: var(--mint); border-radius: 2px; box-shadow: 0 0 10px rgba(75,227,176,.6);
}

nav.sbNav { display: flex; flex-direction: column; gap: 1px; padding: 4px 12px; }
.nv {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: none; color: var(--t2); padding: 7.5px 10px;
  border-radius: 7px; font-size: 13px; font-weight: 450; cursor: pointer;
  transition: all var(--speed); position: relative;
}
.nv svg { width: 15px; height: 15px; flex: none; opacity: .75; }
.nv:hover { background: var(--bg2); color: var(--t1); }
.nv.active { background: var(--bg3); color: var(--t1); font-weight: 550; }
.nv.active svg { opacity: 1; }
.nv.active::before {
  content: ""; position: absolute; left: -12px; width: 2px; top: 8px; bottom: 8px;
  background: var(--mint); border-radius: 2px;
}
.nv .cnt {
  margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--t3);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; min-width: 20px; text-align: center;
}
.nv .cnt.alert { color: var(--coral); border-color: rgba(242,113,123,.35); }

.sbFoot {
  margin-top: auto; padding: 12px 16px 16px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.sbStatus { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--t2); }
.sbStatus .lat { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--t3); }
.sbStatus.degraded .dot { background: var(--amber); }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
main { flex: 1; min-width: 0; padding: 0 0 60px; }
.page { display: none; padding: 26px 34px 0; max-width: 1180px; }
.page.active { display: block; animation: pageIn .28s cubic-bezier(.2,.7,.3,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* project strip — appears above every page */
.projStrip {
  display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.projStrip .nm { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.projStrip .meta { display: flex; align-items: center; gap: 14px; margin-left: auto; color: var(--t3); font-size: 12px; }
.projStrip .meta b { color: var(--t2); font-weight: 550; }
.projStrip .faces { display: flex; }
.projStrip .faces .av { margin-left: -7px; box-shadow: 0 0 0 2px var(--bg0); }
.projStrip .faces .av:first-child { margin-left: 0; }

.pageTitle { font-size: 21px; font-weight: 650; letter-spacing: -.02em; margin: 22px 0 4px; }
.pageSub { color: var(--t3); font-size: 13px; margin-bottom: 22px; }
.pageHead { display: flex; align-items: flex-start; gap: 14px; }
.pageHead .grow { flex: 1; }
.pageHead .actions { display: flex; gap: 8px; padding-top: 4px; }

.sect { margin: 26px 0 10px; display: flex; align-items: baseline; gap: 10px; }
.sect .eyebrow { color: var(--t2); }
.sect .hint { font-size: 11.5px; color: var(--t3); }
.sect .more { margin-left: auto; font-size: 12px; color: var(--t3); cursor: pointer; background: none; border: none; }
.sect .more:hover { color: var(--mint); }

.divider { border: none; border-top: 1px solid var(--line); margin: 22px 0; }

/* ============================================================
   OVERVIEW
   ============================================================ */
.hero { display: flex; gap: 26px; align-items: flex-start; padding: 6px 0 2px; }
.hero .l { flex: 1; min-width: 0; }
.hero h1 { font-size: 26px; font-weight: 650; letter-spacing: -.025em; }
.hero .desc { color: var(--t2); font-size: 14px; margin-top: 5px; max-width: 560px; }
.hero .stackRow { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }

/* health block */
.health { width: 300px; flex: none; border-left: 1px solid var(--line); padding-left: 24px; }
.health .row { display: grid; grid-template-columns: 82px 1fr 40px; align-items: center; gap: 10px; padding: 4px 0; }
.health .lbl { font-size: 12px; color: var(--t2); }
.health .val { font-family: var(--mono); font-size: 11px; color: var(--t2); text-align: right; }
.meter { height: 5px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 3px; background: var(--mint); transition: width .8s cubic-bezier(.2,.7,.2,1); }
.meter i.v { background: var(--violet); }
.meter i.s { background: var(--sky); }
.meter i.a { background: var(--amber); }
.health .overall { font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--t1); }
.health .overall small { font-size: 12px; color: var(--t3); font-weight: 400; }

/* live now ticker */
.liveBar {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border: 1px solid rgba(75,227,176,.22); border-radius: var(--r-md);
  background: linear-gradient(90deg, rgba(75,227,176,.05), transparent 65%), var(--bg1);
  padding: 10px 16px; margin: 18px 0 4px;
}
.liveBar .lh { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--mint); }
.liveItem { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--t2); }
.liveItem b { color: var(--t1); font-weight: 550; }
.liveItem .when { font-family: var(--mono); font-size: 10px; color: var(--t3); }

/* stat strip (inline, no cards) */
.statline { display: flex; gap: 34px; flex-wrap: wrap; padding: 16px 0 2px; }
.statline .cell .v { font-family: var(--mono); font-size: 19px; font-weight: 600; }
.statline .cell .v.alert { color: var(--coral); }
.statline .cell .v.mint { color: var(--mint); }
.statline .cell .k { font-size: 11px; color: var(--t3); margin-top: 1px; }

/* two-column overview area */
.cols { display: grid; grid-template-columns: 1.25fr .85fr; gap: 40px; align-items: start; margin-top: 6px; }
@media (max-width: 1020px) { .cols { grid-template-columns: 1fr; } .health { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; width: auto; } }

/* ============================================================
   TIMELINE
   ============================================================ */
.tl { position: relative; margin-top: 8px; }
.tl .daySep {
  display: flex; align-items: center; gap: 12px; margin: 20px 0 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--t3); text-transform: uppercase;
}
.tl .daySep::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.tlItem {
  position: relative; display: grid; grid-template-columns: 44px 30px 1fr;
  gap: 0 12px; padding: 9px 6px 11px 0; border-radius: var(--r-sm);
  animation: evIn .3s ease both;
}
@keyframes evIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tlItem:hover { background: rgba(255,255,255,.018); }

.tlTime { font-family: var(--mono); font-size: 10.5px; color: var(--t3); padding-top: 4px; text-align: right; }
.tlTime .rel { display: block; font-size: 9.5px; color: var(--t3); opacity: .75; margin-top: 1px; }

/* the living thread */
.tlRail { position: relative; display: flex; justify-content: center; padding-top: 6px; }
.tlRail::before {
  content: ""; position: absolute; top: 0; bottom: -12px; width: 1.5px;
  background: linear-gradient(180deg, var(--line2), var(--line));
}
.tlItem:last-child .tlRail::before { bottom: 40%; }
.tlNode {
  position: relative; z-index: 1; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg2); border: 1.5px solid var(--t3); margin-top: 2px;
}
.tlNode.decision { border-color: var(--violet); background: rgba(167,139,250,.25); }
.tlNode.change { border-color: var(--mint); }
.tlNode.blocker { border-color: var(--coral); background: rgba(242,113,123,.3); box-shadow: 0 0 9px rgba(242,113,123,.5); }
.tlNode.task { border-color: var(--sky); }
.tlNode.experiment { border-color: var(--amber); }
.tlNode.ai { border-color: var(--mint); box-shadow: 0 0 8px rgba(75,227,176,.45); }

.tlBody .who { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.tlBody .who b { font-weight: 600; letter-spacing: .01em; }
.tlBody .what { font-size: 13.5px; margin-top: 2px; }
.tlBody .what b { font-weight: 550; }
.tlBody .note {
  font-size: 12px; color: var(--t2); margin-top: 3px; padding: 6px 10px;
  border-left: 2px solid var(--line2); color: var(--t2);
}
.tlBody .chips { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }

/* ============================================================
   DECISION FEED
   ============================================================ */
.decRow {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 0 12px; align-items: start;
  padding: 11px 6px; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background var(--speed);
}
.decRow:last-child { border-bottom: none; }
.decRow:hover { background: rgba(255,255,255,.02); }
.decRow .mark { font-weight: 700; font-size: 13px; padding-top: 1px; }
.decRow .mark.ok { color: var(--mint); } .decRow .mark.no { color: var(--coral); }
.decRow .what b { font-weight: 600; font-size: 13.5px; }
.decRow .area { color: var(--t3); font-size: 11.5px; margin-left: 8px; }
.decRow .side { text-align: right; font-size: 11px; color: var(--t3); }
.decRow .side .st { display: flex; justify-content: flex-end; }

.decDetail {
  grid-column: 1 / -1; display: none; margin-top: 10px; padding: 14px 16px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-md);
  animation: pageIn .25s ease;
}
.decRow.open .decDetail { display: block; }
.decDetail .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 10px; }
.decDetail .cell .k { font-size: 10px; letter-spacing: .1em; color: var(--t3); text-transform: uppercase; font-family: var(--mono); margin-bottom: 3px; }
.decDetail .cell .v { font-size: 12.5px; color: var(--t1); }
.decDetail .quote { border-left: 2px solid rgba(167,139,250,.5); padding: 4px 12px; color: var(--t2); font-size: 13px; }

/* ============================================================
   TASKS / BLOCKERS
   ============================================================ */
.taskRow {
  display: grid; grid-template-columns: 18px 1fr auto auto; gap: 12px; align-items: center;
  padding: 10px 6px; border-bottom: 1px solid var(--line);
}
.taskRow:last-child { border-bottom: none; }
.taskRow .glyph { color: var(--t3); font-size: 13px; }
.taskRow .glyph.ok { color: var(--mint); } .taskRow .glyph.bad { color: var(--coral); } .taskRow .glyph.run { color: var(--sky); }
.taskRow .t { font-size: 13.5px; }
.taskRow .t.done { color: var(--t3); text-decoration: line-through; text-decoration-color: var(--t3); }
.taskRow .p { font-family: var(--mono); font-size: 10px; color: var(--t3); }

.blocker {
  border: 1px solid rgba(242,113,123,.3); border-left: 3px solid var(--coral);
  border-radius: var(--r-md); background: linear-gradient(90deg, rgba(242,113,123,.06), transparent 55%), var(--bg1);
  padding: 14px 18px; margin-bottom: 12px;
}
.blocker .head { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .02em; }
.blocker .head .ico { color: var(--coral); }
.blocker .body { color: var(--t2); font-size: 13px; margin: 6px 0 8px; max-width: 640px; }
.blocker .foot { display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--t3); }
.blocker .foot .btn { margin-left: auto; }

/* ============================================================
   ASK PAGE
   ============================================================ */
.cmdWrap { position: relative; margin: 6px 0 0; }
.cmd {
  display: flex; align-items: center; gap: 13px;
  background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px;
  padding: 14px 16px; transition: border-color var(--speed), box-shadow var(--speed), background var(--speed);
}
.cmd:focus-within {
  border-color: rgba(75,227,176,.55);
  box-shadow: 0 0 0 4px rgba(75,227,176,.06), 0 8px 40px rgba(0,0,0,.35);
  background: var(--bg3);
}
.cmd .spark { color: var(--mint); font-size: 15px; flex: none; transition: transform .3s ease; }
.cmd:focus-within .spark { transform: scale(1.15); }
.cmd input {
  flex: 1; background: none; border: none; padding: 0; font-size: 15px; color: var(--t1);
}
.cmd input:focus { box-shadow: none; }
.cmd .kbd { font-family: var(--mono); font-size: 10px; color: var(--t3); border: 1px solid var(--line2); border-radius: 5px; padding: 2px 7px; }

.qPills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.qPill {
  background: none; border: 1px solid var(--line); color: var(--t2);
  border-radius: 999px; padding: 5.5px 14px; font-size: 12px; cursor: pointer;
  transition: all var(--speed);
}
.qPill:hover { border-color: rgba(75,227,176,.45); color: var(--t1); background: rgba(75,227,176,.05); }

/* answer experience */
.answerZone { margin-top: 26px; max-width: 780px; }
.ansHead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ansHead .eyebrow { color: var(--t2); }
.answerText { font-size: 15.5px; line-height: 1.65; letter-spacing: -.005em; }
.answerText.thinking { color: var(--t2); }
.answerText .cursor { display: inline-block; width: 8px; height: 15px; background: var(--mint); vertical-align: -2px; animation: breathe 1s infinite; margin-left: 2px; }

/* retrieval indicator */
.retr {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg2);
  padding: 6px 14px 6px 11px; cursor: pointer; transition: border-color var(--speed);
  font-size: 12px; color: var(--t2);
}
.retr:hover { border-color: rgba(75,227,176,.45); }
.retr .n { font-family: var(--mono); font-size: 11px; color: var(--t1); }
.retr .ms { font-family: var(--mono); font-size: 11px; color: var(--mint); }
.retrPanel {
  margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg2); padding: 14px 16px; display: none; animation: pageIn .22s ease;
}
.retrPanel.open { display: block; }
.retrPanel .rrow { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12.5px; color: var(--t2); }
.retrPanel .rrow b { font-family: var(--mono); font-weight: 500; color: var(--t1); }

/* sources */
.srcList { margin-top: 14px; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.srcItem {
  display: grid; grid-template-columns: auto auto 1fr auto; gap: 12px; align-items: center;
  padding: 11px 4px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background var(--speed);
}
.srcItem:hover { background: rgba(255,255,255,.018); }
.srcItem .tt { font-size: 13px; font-weight: 550; }
.srcItem .meta { font-size: 11px; color: var(--t3); }
.srcItem .idx { font-family: var(--mono); font-size: 10px; color: var(--mint); border: 1px solid rgba(75,227,176,.3); border-radius: 4px; padding: 1px 6px; }
.srcItem .score { font-family: var(--mono); font-size: 10px; color: var(--t3); }

/* ============================================================
   CONFLICTS
   ============================================================ */
.vsWrap { display: grid; grid-template-columns: 1fr 46px 1fr; gap: 0; align-items: stretch; margin-top: 8px; }
.vsCol { padding: 18px 20px; border-radius: var(--r-lg); }
.vsCol.current { background: var(--bg2); border: 1px solid var(--line2); }
.vsCol.proposal { background: linear-gradient(180deg, rgba(75,227,176,.05), transparent 60%), var(--bg2); border: 1px dashed rgba(75,227,176,.4); }
.vsCol .eyebrow { margin-bottom: 10px; }
.vsCol .big { font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.vsCol .who2 { margin-top: 8px; font-size: 12px; color: var(--t3); display: flex; align-items: center; gap: 8px; }
.vsMid { display: flex; align-items: center; justify-content: center; color: var(--coral); font-weight: 700; font-size: 13px; letter-spacing: .1em; }

.impact { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.impact .row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; color: var(--t2); }
.impact .row b { color: var(--t1); font-family: var(--mono); font-size: 12px; }
.verdict { margin-top: 20px; padding: 14px 18px; border-radius: var(--r-md); border: 1px solid; }
.verdict.bad { border-color: rgba(242,113,123,.4); background: rgba(242,113,123,.05); }
.verdict.good { border-color: rgba(75,227,176,.35); background: rgba(75,227,176,.04); }
.verdict .vh { display: flex; align-items: center; gap: 9px; font-weight: 650; }
.verdict.bad .vh { color: var(--coral); }
.verdict.good .vh { color: var(--mint); }
.verdict .expl { margin: 8px 0 0; font-size: 13px; color: var(--t2); }
.verdict .vactions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* ============================================================
   INGEST
   ============================================================ */
.feedWrap { max-width: 720px; }
.dropzone {
  border: 1.5px dashed var(--line2); border-radius: var(--r-lg); background: var(--bg1);
  padding: 26px 26px 22px; transition: border-color var(--speed), background var(--speed);
}
.dropzone:focus-within, .dropzone:hover { border-color: rgba(75,227,176,.45); }
.dropzone textarea { width: 100%; min-height: 130px; background: transparent; border: none; resize: vertical; font-size: 13.5px; padding: 0; }
.dropzone textarea:focus { box-shadow: none; }
.dropzone .dzHead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dropzone .dzHead .t { font-size: 13px; color: var(--t2); }
.dropzone .dzHead .btn { margin-left: auto; }
.modeRow { display: flex; gap: 14px; margin: 18px 0 10px; }
.modeRow .tab {
  background: none; border: none; border-bottom: 2px solid transparent; color: var(--t3);
  padding: 6px 2px; font-size: 13px; cursor: pointer; font-weight: 500;
}
.modeRow .tab.active { color: var(--t1); border-bottom-color: var(--mint); }

/* pipeline animation */
.pipeline { display: flex; flex-direction: column; gap: 0; margin-top: 18px; }
.pStep { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: var(--t3); font-size: 12.5px; transition: color .3s; }
.pStep .pn { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line2); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; flex: none; transition: all .3s; }
.pStep.active { color: var(--t1); }
.pStep.active .pn { border-color: var(--mint); color: var(--mint); box-shadow: 0 0 12px rgba(75,227,176,.25); }
.pStep.done { color: var(--t2); }
.pStep.done .pn { border-color: var(--mint); background: rgba(75,227,176,.15); color: var(--mint); }
.pStep .ms { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--t3); }

/* ============================================================
   TEAM & MISC
   ============================================================ */
.teamRow { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-bottom: 1px solid var(--line); position: relative; }
.teamRow:last-child { border-bottom: none; }
.teamRow .nm { font-size: 13px; font-weight: 550; }
.teamRow .role { font-size: 11.5px; color: var(--t3); }
.teamRow .acts { margin-left: auto; text-align: right; font-size: 11.5px; color: var(--t3); }
.teamRow .acts b { color: var(--t2); font-weight: 500; display: block; }

/* hover card for members */
.hovercard {
  position: fixed; z-index: 60; width: 230px; pointer-events: none;
  background: var(--bg3); border: 1px solid var(--line2); border-radius: var(--r-md);
  box-shadow: 0 16px 50px rgba(0,0,0,.5); padding: 12px 14px;
  opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
}
.hovercard.show { opacity: 1; transform: none; }
.hovercard .hcHead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hovercard .hcRow { font-size: 11.5px; color: var(--t3); display: flex; gap: 8px; }
.hovercard .hcRow b { color: var(--t2); font-weight: 500; }

/* what's new modal */
.modalBack {
  position: fixed; inset: 0; z-index: 70; background: rgba(5,6,8,.6);
  backdrop-filter: blur(3px); display: none; align-items: flex-start; justify-content: center;
  padding: 90px 20px 20px;
}
.modalBack.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  width: 560px; max-width: 100%; background: var(--bg2); border: 1px solid var(--line2);
  border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.6);
  animation: modalIn .28s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
.modal .mHead { padding: 20px 24px 14px; border-bottom: 1px solid var(--line); }
.modal .mHead .t { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.modal .mBody { padding: 14px 24px 20px; max-height: 60vh; overflow-y: auto; }
.modal .mFoot { padding: 14px 24px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.sumLine { display: flex; align-items: center; gap: 12px; padding: 9px 4px; font-size: 13.5px; }
.sumLine .v { font-family: var(--mono); font-weight: 600; font-size: 15px; width: 34px; text-align: right; }
.sumLine.mint .v { color: var(--mint); } .sumLine.coral .v { color: var(--coral); } .sumLine.violet .v { color: var(--violet); }

/* AI activity pill (bottom right) */
.aiPill {
  position: fixed; right: 22px; bottom: 22px; z-index: 65;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg3); border: 1px solid rgba(75,227,176,.35); border-radius: 999px;
  padding: 9px 16px 9px 12px; font-size: 12.5px; color: var(--t2);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(8px); transition: all .25s ease; pointer-events: none;
}
.aiPill.show { opacity: 1; transform: none; }
.aiPill .nm { color: var(--t1); font-weight: 600; }
.aiPill .stTxt { font-family: var(--mono); font-size: 10.5px; }
.aiPill.done { border-color: var(--line2); }

/* toasts */
#toasts { position: fixed; top: 16px; right: 16px; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: 400px; }
.toast {
  background: var(--bg3); border: 1px solid var(--line2); border-left: 2px solid var(--mint);
  color: var(--t1); border-radius: var(--r-md); padding: 10px 14px; font-size: 12.5px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); animation: toastIn .22s ease;
}
.toast.bad { border-left-color: var(--coral); } .toast.warn { border-left-color: var(--amber); }
@keyframes toastIn { from { opacity: 0; transform: translateX(14px); } }

/* empty & error states */
.emptyState { text-align: center; padding: 44px 20px; color: var(--t3); }
.emptyState .glyph { font-size: 22px; opacity: .5; margin-bottom: 10px; }
.emptyState .t { font-size: 14px; color: var(--t2); font-weight: 550; }
.emptyState .s { font-size: 12.5px; margin-top: 4px; max-width: 360px; margin-left: auto; margin-right: auto; }
.emptyState .btn { margin-top: 16px; }
.errorState {
  border: 1px solid rgba(232,181,102,.3); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(232,181,102,.04), transparent 60%), var(--bg1);
  padding: 30px 34px; max-width: 560px; margin: 60px auto; text-align: center;
}
.errorState .t { font-size: 15px; font-weight: 650; margin: 10px 0 4px; }
.errorState .s { font-size: 12.5px; color: var(--t2); }
.errorState .tech { font-family: var(--mono); font-size: 10.5px; color: var(--t3); margin-top: 12px; }
.errorState .btn { margin-top: 16px; }
.spin { display: inline-block; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.skeleton { height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--bg2), var(--bg3), var(--bg2)); background-size: 200% 100%; animation: skel 1.2s linear infinite; margin: 10px 0; }
@keyframes skel { to { background-position: -200% 0; } }

/* settings page */
.setRow { display: flex; align-items: flex-start; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); max-width: 680px; }
.setRow .info { flex: 1; }
.setRow .info .t { font-size: 13.5px; font-weight: 550; }
.setRow .info .s { font-size: 12px; color: var(--t3); margin-top: 2px; }
.setRow .ctl { flex: none; padding-top: 2px; }
.switch { position: relative; width: 34px; height: 20px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--bg3); border: 1px solid var(--line2); border-radius: 999px; cursor: pointer; transition: all .2s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--t2); transition: all .2s; }
.switch input:checked + .track { background: rgba(75,227,176,.2); border-color: rgba(75,227,176,.5); }
.switch input:checked + .track::after { transform: translateX(14px); background: var(--mint); }

/* moss panel */
.mossRow { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; max-width: 560px; }
.mossRow:last-child { border-bottom: none; }
.mossRow .k { color: var(--t2); }
.mossRow .v { font-family: var(--mono); font-size: 12px; color: var(--t1); }
.mossRow .v.mint { color: var(--mint); }

/* keyboard hint bar */
.kbdBar {
  position: fixed; bottom: 20px; left: calc(var(--sidebar-w) + 34px); z-index: 40;
  display: flex; gap: 14px; font-size: 10.5px; color: var(--t3); pointer-events: none;
}
.kbdBar span b { font-family: var(--mono); font-size: 9.5px; border: 1px solid var(--line2); border-radius: 4px; padding: 1px 5px; color: var(--t2); font-weight: 500; }

/* responsive */
@media (max-width: 1120px) {
  .kbdBar { display: none; }
}
@media (max-width: 920px) {
  body { flex-direction: column; }
  aside { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--line); }
  nav.sbNav { flex-direction: row; flex-wrap: wrap; }
  .nv.active::before { display: none; }
  .page { padding: 20px 18px 0; }
  .hero { flex-direction: column; }
  .health { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; width: 100%; }
  .vsWrap { grid-template-columns: 1fr; }
  .vsMid { padding: 8px 0; }
  .projStrip .meta .hideSm { display: none; }
}
