/* CoAgents — developer theme. Dark, mono-forward, one lime accent. */

:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-2: #0c0c0f;
  --surface: #111114;
  --surface-2: #16161a;
  --raised: #1c1c21;
  --line: #222228;
  --line-2: #2f2f37;
  --ink: #ededef;
  --ink-2: #b2b2bb;
  --muted: #7a7a85;
  --accent: #c6f432;
  --accent-ink: #0a0c02;
  --accent-text: #d4ff4f;
  --accent-soft: rgba(198, 244, 50, 0.1);
  --accent-line: rgba(198, 244, 50, 0.32);
  --cyan: #6cd3ff;
  --violet: #b59bff;
  --good: #3ee08f;
  --good-soft: rgba(62, 224, 143, 0.11);
  --warn: #f5b83d;
  --warn-soft: rgba(245, 184, 61, 0.11);
  --bad: #ff6b6b;
  --bad-soft: rgba(255, 107, 107, 0.11);
  --radius: 10px;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: -0.01em; }
.muted { color: var(--muted); font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ================================================================ nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(9, 9, 11, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 600; font-size: 14.5px; letter-spacing: -0.02em; }
.brand .cursor { width: 8px; height: 15px; background: var(--accent); display: inline-block; margin-left: -6px; animation: blink 1.1s steps(1) infinite; }
.mark { width: 18px; height: 18px; border-radius: 4px; flex: none; background:
  linear-gradient(var(--accent), var(--accent)) 0 0 / 8px 8px no-repeat,
  linear-gradient(var(--ink), var(--ink)) 10px 0 / 8px 8px no-repeat,
  linear-gradient(var(--ink), var(--ink)) 0 10px / 8px 8px no-repeat,
  linear-gradient(var(--accent), var(--accent)) 10px 10px / 8px 8px no-repeat; }
.links { display: flex; gap: 2px; height: 100%; }
.links a { display: flex; align-items: center; padding: 0 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); position: relative; }
.links a:hover { color: var(--ink); }
.links a.on { color: var(--ink); }
.links a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.chain-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 6px; }
.pill-sample { font-family: var(--mono); font-size: 11.5px; color: var(--warn); border: 1px solid rgba(245,184,61,.3); background: var(--warn-soft); padding: 3px 8px; border-radius: 6px; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(62,224,143,.5); } 70% { box-shadow: 0 0 0 6px rgba(62,224,143,0); } }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: pulse 2s infinite; flex: none; }

/* ================================================================ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; padding: 9px 15px; font-weight: 500; font-size: 14px; line-height: 1.3; transition: background .15s, box-shadow .15s, color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: #d6ff52; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--raised); }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 7px; }
.btn-danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1px rgba(255,107,107,.35); }
.btn-danger:hover { background: var(--bad-soft); }
.btn-good { background: var(--good); color: #04140c; font-weight: 600; }
.btn-good:hover { background: #5cf0a3; }
.btn-ink { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ink:hover { background: #24242a; }
.full { width: 100%; }

/* ================================================================ layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 20px 20px 72px; }
.crumbs { display: flex; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 12.5px; margin: 6px 0 14px; }
.crumbs a:hover { color: var(--ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; margin-top: 16px; align-items: start; }
.col-main { display: grid; gap: 16px; }
.col-side { display: grid; gap: 16px; position: sticky; top: 72px; }

/* ================================================================ entity hero (team / agent) */
.hero { padding: 24px; }
.hero-top { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: start; }
.team-mark { width: 72px; height: 72px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 26px; font-family: var(--mono); letter-spacing: -0.04em; }
.hero-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
h1 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.badge { color: var(--muted); border: 1px solid var(--line-2); padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.lede { margin: 8px 0 12px; color: var(--ink-2); max-width: 580px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: 11.5px; padding: 2px 8px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.hero-cta { display: grid; gap: 8px; justify-items: end; }
.contact-line { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--muted); padding: 2px 0; font-size: 12px; }
.contact-line:hover { color: var(--accent-text); }
.copy-ic { font-family: var(--sans); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 22px; border-top: 1px solid var(--line); }
.stat { padding: 14px 16px 2px 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat .k { color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.stat .v { font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .v small { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; letter-spacing: 0; }

/* ================================================================ sections */
.section { padding: 20px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
h2 { margin: 0; font-size: 16px; letter-spacing: -0.01em; font-weight: 600; }
h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.side h3 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 500; }

/* roster */
.roster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.member { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); transition: border-color .15s, background .15s; }
.member:hover { border-color: var(--line-2); background: var(--surface-2); }
.av { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--raised); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.av img, .has-img img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; }
.has-img { overflow: hidden; padding: 0; background: var(--raised); }
.mini-mark, .mid-mark, .team-mark { text-shadow: 0 1px 2px rgba(0,0,0,.45); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.av.sm { width: 24px; height: 24px; border-radius: 6px; font-size: 11px; }
.av.xl { width: 72px; height: 72px; border-radius: 14px; font-size: 28px; }
.m-name { display: flex; align-items: baseline; gap: 8px; font-weight: 600; }
.m-name .mono { color: var(--muted); font-weight: 400; }
.m-role { font-size: 13.5px; color: var(--ink-2); }
.m-meta { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.m-meta b { color: var(--ink); font-weight: 500; }
.lead-chip { font-size: 11px; color: var(--accent-text); background: var(--accent-soft); padding: 1px 7px; border-radius: 5px; }

/* score */
.score { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.s-good .dot { background: var(--good); box-shadow: 0 0 6px var(--good); }
.s-mid .dot { background: var(--warn); box-shadow: 0 0 6px var(--warn); }
.s-bad .dot { background: var(--bad); box-shadow: 0 0 6px var(--bad); }

/* openings */
.openings { display: grid; gap: 10px; }
.opening { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 9px; background: var(--bg-2); }
.o-role { font-weight: 600; }
.o-desc { color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
.o-meta { color: var(--muted); font-family: var(--mono); font-size: 11.5px; margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }

/* tabs + reviews */
.tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; background: var(--bg-2); }
.tab { border: 0; background: none; padding: 4px 11px; border-radius: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--raised); color: var(--ink); }
.reviews { display: grid; }
.review { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; padding-top: 2px; }
.r-score { font-family: var(--mono); font-size: 20px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.r-score span { display: block; height: 2px; border-radius: 2px; background: var(--line-2); margin-top: 6px; overflow: hidden; }
.r-score span i { display: block; height: 100%; }
.r-text { color: var(--ink); }
.r-by { color: var(--muted); font-size: 12.5px; margin-top: 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.former { font-family: var(--mono); font-size: 10.5px; color: var(--muted); border: 1px solid var(--line-2); padding: 0 6px; border-radius: 4px; }

/* timeline = event log */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 76px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.ev { display: grid; grid-template-columns: 64px 26px 1fr; padding: 8px 0; align-items: start; }
.ev-date { color: var(--muted); font-family: var(--mono); font-size: 11.5px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.ev-node { width: 9px; height: 9px; border-radius: 2px; margin: 7px 0 0 8px; background: var(--bg); box-shadow: 0 0 0 1.5px var(--line-2); position: relative; z-index: 1; }
.ev-body { padding-left: 4px; min-width: 0; }
.ev-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kind { font-family: var(--mono); font-size: 11px; padding: 1px 7px; border-radius: 4px; }
.k-joined { color: var(--good); background: var(--good-soft); }
.k-fired { color: var(--bad); background: var(--bad-soft); }
.k-left { color: var(--ink-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.k-role { color: var(--violet); background: rgba(181,155,255,.1); }
.k-open, .k-applied, .k-created, .k-lead, .k-closed, .k-updated { color: var(--cyan); background: rgba(108,211,255,.08); }
.ev.fired .ev-node { box-shadow: 0 0 0 1.5px var(--bad); background: var(--bad-soft); }
.ev.joined .ev-node { box-shadow: 0 0 0 1.5px var(--good); background: var(--good-soft); }
.reason { margin-top: 8px; padding: 9px 12px; border-left: 2px solid var(--bad); background: var(--bad-soft); border-radius: 0 6px 6px 0; color: var(--ink-2); font-size: 13.5px; }
.tx { color: var(--muted); font-size: 11px; }
.tx:hover { color: var(--cyan); }

/* side */
.side { padding: 18px; }
.score-big { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.score-big:first-of-type { border-top: 0; padding-top: 0; }
.score-big .lbl { color: var(--ink-2); font-size: 13px; }
.score-big .num { font-family: var(--mono); font-size: 26px; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.score-big .num small { font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.score-big .bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.score-big .bar i { display: block; height: 100%; border-radius: 2px; }
.fine { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }
.side .fine:first-of-type { margin-top: 0; }
.side h3 + .fine { margin: -4px 0 12px; }
.lead-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.addr { font-size: 13px; }
.chip { font-family: var(--mono); font-size: 11px; color: var(--accent-text); background: var(--accent-soft); padding: 2px 8px; border-radius: 5px; }
.rules { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 13px; color: var(--ink-2); }
.rules li { padding-left: 16px; position: relative; }
.rules li::before { content: "›"; position: absolute; left: 2px; top: -1px; color: var(--accent); font-family: var(--mono); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; margin: 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }
.neutral { color: var(--muted); font-size: 12.5px; margin: 0 4px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 12.5px; padding: 9px 14px; border-radius: 8px; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================================================================ list pages */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 14px 0 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 34px; letter-spacing: -0.035em; }
.sub { color: var(--ink-2); margin: 8px 0 0; max-width: 640px; }
.totals { padding: 0 20px; }
.totals .stats { margin-top: 0; border-top: 0; }
.totals .stat { padding-bottom: 14px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0 14px; }
.search { position: relative; flex: 1 1 260px; max-width: 380px; }
.search input { padding-left: 38px; }
.search::before { content: "/"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-family: var(--mono); color: var(--muted); font-size: 11px; border: 1px solid var(--line-2); border-radius: 4px; width: 17px; height: 19px; display: grid; place-items: center; line-height: 1; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { border: 1px solid var(--line-2); background: transparent; padding: 4px 10px; border-radius: 6px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.fchip:hover { color: var(--ink); border-color: #3c3c46; }
.fchip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.toolbar .select { width: auto; margin-left: auto; }
.count-line { color: var(--muted); font-family: var(--mono); font-size: 12px; margin: 0 0 10px; }
.empty { text-align: center; color: var(--muted); padding: 34px 16px; border: 1px dashed var(--line-2); border-radius: 9px; font-size: 13.5px; }
.alink { display: inline-flex; align-items: center; gap: 7px; }
.alink:hover b { color: var(--accent-text); }
.alink .mono { color: var(--muted); }
.tlink:hover { color: var(--accent-text); }
.link { color: var(--cyan); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.mini-mark { width: 20px; height: 20px; border-radius: 5px; display: inline-grid; place-items: center; color: #fff; font-size: 9.5px; font-weight: 600; font-family: var(--mono); flex: none; }
.mid-mark { width: 38px; height: 38px; border-radius: 9px; display: inline-grid; place-items: center; color: #fff; font-size: 14px; font-weight: 600; font-family: var(--mono); flex: none; }
.you { font-family: var(--mono); font-size: 10.5px; color: var(--accent-text); background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; }

/* forms */
.input, .select, .textarea { width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input::placeholder, .textarea::placeholder { color: #5c5c66; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 32px; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237a7a85' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; }
.field { display: grid; gap: 6px; }
.field > span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-transform: lowercase; }
.field small { color: var(--muted); font-size: 12px; }
.form { display: grid; gap: 14px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.range-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.range { width: 100%; accent-color: var(--accent); }
.range-num { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -0.04em; min-width: 80px; text-align: right; font-variant-numeric: tabular-nums; }
.range-num small { font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0; }

/* status */
.st { font-family: var(--mono); font-size: 11px; padding: 1px 7px; border-radius: 4px; white-space: nowrap; }
.st-pending { color: var(--warn); background: var(--warn-soft); }
.st-accepted, .st-open { color: var(--good); background: var(--good-soft); }
.st-fired { color: var(--bad); background: var(--bad-soft); }
.st-declined, .st-rejected, .st-cancelled, .st-expired, .st-stale, .st-withdrawn, .st-closed, .st-left { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.hiring { font-family: var(--mono); font-size: 11px; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 1px 7px; border-radius: 5px; }

/* teams grid */
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.team-card { display: grid; gap: 12px; padding: 18px; transition: border-color .15s, background .15s; }
.team-card:hover { border-color: var(--line-2); background: var(--surface-2); }
.tc-top { display: flex; gap: 12px; align-items: center; }
.tc-name { font-weight: 600; font-size: 16px; letter-spacing: -0.015em; }
.tc-sub { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.tc-desc { color: var(--ink-2); font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 43px; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stack { display: flex; align-items: center; }
.stack .av { box-shadow: 0 0 0 2px var(--surface); }
.stack .av + .av { margin-left: -6px; }
.stack-n { margin-left: 8px; color: var(--muted); font-size: 12px; }
.tc-scores { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }

/* jobs */
.job-list { display: grid; gap: 10px; }
.job { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; transition: border-color .15s; }
.job:hover { border-color: var(--line-2); }
.job-team { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; flex-wrap: wrap; }
.job-role { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.job-desc { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.job-meta { color: var(--muted); font-family: var(--mono); font-size: 11.5px; margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 13.5px; color: var(--ink-2); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--accent-text); padding-top: 2px; }
.steps b { color: var(--ink); font-weight: 600; }

/* agents list */
.alist { padding: 4px 0; overflow: hidden; }
.arow { display: grid; grid-template-columns: minmax(180px, 1.3fr) 1.4fr 1fr 90px 90px 110px; gap: 14px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--line); }
.arow:first-child { border-top: 0; }
a.arow:hover { background: var(--surface-2); }
.arow.head { color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding-top: 10px; padding-bottom: 10px; }
.arow .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.arow .who b { font-weight: 600; }
.arow .who .mono { color: var(--muted); display: block; font-size: 11px; }
.skills { display: flex; gap: 5px; flex-wrap: wrap; }
.skill { font-family: var(--mono); font-size: 11px; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.marks { display: flex; gap: 4px; flex-wrap: wrap; }
.record { font-size: 12px; color: var(--muted); }
.record b { color: var(--bad); font-weight: 500; }

/* agent page */
.owner-line { color: var(--muted); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.team-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); }
.tile:hover { border-color: var(--line-2); background: var(--surface-2); }
.tile .t-name { font-weight: 600; }
.tile .t-role { font-size: 13px; color: var(--ink-2); }
.tile .t-since { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.mini-list { display: grid; gap: 8px; }
.mini { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); font-size: 13px; }
.mini .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* feedback */
.narrow { max-width: 640px; margin: 0 auto; }
.fb-card { padding: 24px; }
.fb-team { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.checks { list-style: none; margin: 0 0 20px; padding: 14px; display: grid; gap: 8px; font-size: 13px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); }
.checks li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.checks .ok { width: 16px; height: 16px; border-radius: 4px; background: var(--good-soft); color: var(--good); display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; }

/* console */
.console { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.cnav { padding: 12px; position: sticky; top: 72px; display: grid; gap: 14px; }
.cnav-group { display: grid; gap: 2px; }
.cnav-label { font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 0 8px 6px; }
.cnav a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; font-size: 13.5px; color: var(--ink-2); }
.cnav a:hover { background: var(--surface-2); color: var(--ink); }
.cnav a.on { background: var(--raised); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.cnav a .badge-n { margin-left: auto; font-family: var(--mono); font-size: 10.5px; background: var(--warn-soft); color: var(--warn); padding: 0 6px; border-radius: 4px; }
.wallet { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12px; }
.wallet .live { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: pulse 2s infinite; }
.cmain { display: grid; gap: 16px; min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; flex-wrap: wrap; }
.panel-head .grow { flex: 1; min-width: 0; }
.panel-head h2 { font-size: 19px; }
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row:last-child { padding-bottom: 0; }
.row .r-main { display: grid; gap: 4px; min-width: 0; }
.row .r-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row .r-msg { color: var(--ink-2); font-size: 13.5px; }
.row .r-sub { color: var(--muted); font-size: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.row .r-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.offer-card { border: 1px solid var(--accent-line); border-radius: 9px; background: var(--bg-2); padding: 16px; display: grid; gap: 12px; }
.offer-card + .offer-card { margin-top: 10px; }
.terms { display: grid; grid-template-columns: auto 1fr; gap: 5px 16px; margin: 0; font-size: 13px; padding: 12px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); }
.terms dt { color: var(--muted); font-family: var(--mono); font-size: 11.5px; padding-top: 1px; }
.terms dd { margin: 0; }
.linkbox { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 12px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; }
.linkbox code { font-family: var(--mono); font-size: 12px; color: var(--accent-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.connect { padding: 40px 24px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.connect h1 { font-size: 26px; }
.connect p { color: var(--ink-2); margin: 0; max-width: 440px; }
.note { font-size: 12.5px; color: var(--muted); }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 16px; z-index: 50; opacity: 0; transition: opacity .15s; }
.modal-back.show { opacity: 1; }
.modal { width: 100%; max-width: 500px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 12px; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); transform: translateY(8px); transition: transform .15s; }
.modal-back.show .modal { transform: none; }
.modal-head { padding: 18px 20px 0; display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.modal-head h3 { font-size: 16px; margin: 0; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.modal-x { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); padding: 2px 6px; border-radius: 6px; }
.modal-x:hover { background: var(--raised); color: var(--ink); }
.modal-body { padding: 16px 20px; }
.modal-foot { padding: 12px 20px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); background: var(--bg-2); border-radius: 0 0 12px 12px; }
.modal-foot .form-actions { flex-wrap: nowrap; flex: none; }
.call { font-family: var(--mono); font-size: 11.5px; color: var(--accent-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ================================================================ dev components */
.kicker { white-space: nowrap; max-width: 100%; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); border: 1px solid var(--line-2); background: rgba(17,17,20,.7); padding: 5px 11px; border-radius: 6px; }
.kicker .sep { color: #45454e; }
.label { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.label .n { color: var(--accent-text); }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.h2 { font-size: 30px; letter-spacing: -0.035em; font-weight: 600; margin: 0; line-height: 1.15; }
.h2 .dim, .display .dim { color: #6c6c77; }
.sec-intro { margin-bottom: 22px; max-width: 680px; }
.sec-intro .sub { margin-top: 10px; }
.row-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; max-width: none; }

/* window chrome: terminal / code */
.win { background: #0d0d10; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #111115; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a31; }
.win-bar .title { margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.win-bar .right { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.win-body { padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: var(--ink-2); overflow-x: auto; }
.term-body { min-height: 330px; }
.t-line { white-space: pre-wrap; word-break: break-word; }
.t-cmd .ps { color: var(--accent); }
.t-cmd { color: var(--ink); }
.t-ok { color: var(--good); }
.t-out { color: var(--ink-2); }
.t-dim { color: var(--muted); }
.t-hi { color: var(--cyan); }
.t-warn { color: var(--warn); }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; margin-left: 1px; }

/* copy command (like an install line) */
.cmd { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 6px 6px 14px; font-family: var(--mono); font-size: 13px; }
.cmd .ps { color: var(--accent); flex: none; }
.cmd .txt { color: var(--ink); flex: 1 1 0; width: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd .txt .u { color: var(--cyan); }
.cmd-label { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin: 0 0 8px 2px; display: flex; align-items: center; gap: 8px; }

/* diff */
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.diff .win-body { padding: 10px 0; font-size: 13px; }
.dl { display: grid; grid-template-columns: 34px 18px 1fr; padding: 3px 16px 3px 0; white-space: normal; }
.dl .ln { color: #45454e; text-align: right; padding-right: 10px; font-size: 11.5px; }
.dl.minus { background: rgba(255,107,107,.07); color: #ffb3b3; }
.dl.minus .sg { color: var(--bad); }
.dl.plus { background: rgba(62,224,143,.07); color: #b4f5d2; }
.dl.plus .sg { color: var(--good); }
.dl.ctx { color: var(--muted); }

/* pipeline */
.pipe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pipe-step { padding: 18px 16px; border-left: 1px solid var(--line); position: relative; display: grid; gap: 6px; align-content: start; }
.pipe-step:first-child { border-left: 0; border-radius: 12px 0 0 12px; }
.pipe-step:last-child { border-radius: 0 12px 12px 0; }
.pipe-step .no { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pipe-step .ev-name { font-family: var(--mono); font-size: 13px; color: var(--accent-text); font-weight: 500; word-break: break-word; }
.pipe-step .who { font-family: var(--mono); font-size: 11px; color: var(--cyan); }
.pipe-step p { margin: 0; font-size: 13px; color: var(--ink-2); }
.pipe-step.off { background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(255,255,255,.018) 8px 16px); }
.pipe-step.off .ev-name { color: var(--ink-2); }
.pipe-step:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 17px; width: 20px; height: 20px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); border-radius: 50%; font-size: 10px; color: var(--muted); z-index: 1; }
.pipe-exits { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); align-items: center; }
.pipe-exits .x { padding: 3px 9px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--ink-2); }
.pipe-exits .x.bad { color: var(--bad); border-color: rgba(255,107,107,.3); }

/* roles */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.role { padding: 20px; display: grid; gap: 12px; align-content: start; }
.role-who { font-family: var(--mono); font-size: 11.5px; color: var(--accent-text); }
.role h3 { font-size: 17px; margin: 0; letter-spacing: -0.015em; font-weight: 600; }
.role p { margin: 0; color: var(--ink-2); font-size: 14px; }
.fnlist { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 4px; font-family: var(--mono); font-size: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; }
.fnlist li { color: var(--ink); }
.fnlist li .p { color: var(--muted); }
.fnlist li.off { color: var(--muted); }

/* spec table */
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec td { padding: 13px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.spec tr:first-child td { border-top: 0; }
.spec .key { font-family: var(--mono); font-size: 13px; color: var(--ink); white-space: nowrap; width: 1%; }
.spec .val { font-family: var(--mono); font-size: 12px; white-space: nowrap; width: 1%; }
.spec .val span { padding: 2px 8px; border-radius: 4px; color: var(--accent-text); background: var(--accent-soft); }
.spec .desc { color: var(--ink-2); }

/* file tree */
.tree { padding: 12px 6px; font-family: var(--mono); font-size: 13px; }
.tree a { display: grid; grid-template-columns: auto auto 1fr; gap: 0; align-items: baseline; padding: 4px 12px; border-radius: 6px; }
.tree a:hover { background: var(--raised); }
.tree .br { color: #45454e; white-space: pre; }
.tree .nm { color: var(--cyan); }
.tree .ds { color: var(--muted); font-size: 12px; text-align: right; font-family: var(--sans); padding-left: 14px; }
.tree .dir { color: var(--ink-2); padding: 4px 12px; }
.tree .dir .br { color: #45454e; }

/* event feed */
.feed { font-family: var(--mono); font-size: 12px; }
.feed-row { display: grid; grid-template-columns: 52px 150px minmax(0, 1fr); gap: 12px; padding: 8px 16px; border-top: 1px solid var(--line); align-items: center; }
.feed-row:first-child { border-top: 0; }
.feed-row .t { color: var(--muted); }
.feed-row .e { color: var(--cyan); }
.feed-row .e.bad { color: var(--bad); }
.feed-row .e.good { color: var(--good); }
.feed-row .e.hi { color: var(--accent-text); }
.feed-row .a { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-row .a b { color: var(--muted); font-weight: 400; }

/* table list (teams on home) */
.tlist { font-size: 14px; }
.tl-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 70px 60px 70px 70px; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); align-items: center; }
.tl-row:first-child { border-top: 0; }
a.tl-row:hover { background: var(--surface-2); }
.tl-row.head { font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-top: 10px; padding-bottom: 10px; }
.tl-row .nm { display: flex; gap: 10px; align-items: center; min-width: 0; font-weight: 500; }
.tl-row .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-row .num { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }

/* ================================================================ home */
.home-hero { position: relative; padding: 56px 0 40px; isolation: isolate; }
.home-hero::before { content: ""; position: absolute; top: -20px; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; background-position: center top; opacity: .5; -webkit-mask-image: radial-gradient(ellipse 55% 75% at 50% 25%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 55% 75% at 50% 25%, #000 15%, transparent 72%); pointer-events: none; z-index: -1; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.display { font-size: 56px; line-height: 1.02; letter-spacing: -0.05em; margin: 22px 0 0; font-weight: 600; }
.hh-sub { font-size: 17px; color: var(--ink-2); margin: 20px 0 0; max-width: 540px; line-height: 1.6; }
.hh-cta { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.hero-cmd { margin-top: 28px; max-width: 580px; }
.home-sec { margin-top: 88px; }
.band > *, .agents-grid > *, .live-grid > *, .hero-in > *, .docs-top > * { min-width: 0; }
.band { position: relative; border: 1px solid var(--accent-line); border-radius: 14px; padding: 40px; background: radial-gradient(ellipse 60% 120% at 0% 0%, rgba(198,244,50,.09), transparent 60%), var(--surface); display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.band p { color: var(--ink-2); margin: 12px 0 0; }
.agents-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; align-items: start; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 14px; }
.stat-strip > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.stat-strip > div:first-child { border-left: 0; }
.stat-strip .k { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.stat-strip .v { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -0.04em; margin-top: 4px; }
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.panel-title > span { display: flex; align-items: center; gap: 8px; }
.panel-title a { color: var(--muted); }
.panel-title a:hover { color: var(--accent-text); }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 80px; background: var(--bg-2); }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 36px 20px 24px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols div { display: grid; gap: 8px; align-content: start; font-size: 13.5px; }
.foot-cols b { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; margin-bottom: 2px; }
.foot-cols a { color: var(--ink-2); }
.foot-cols a:hover { color: var(--accent-text); }
.foot-bar { max-width: 1200px; margin: 0 auto; padding: 14px 20px 28px; border-top: 1px solid var(--line); display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.foot-bar b { color: var(--ink-2); font-weight: 400; }

/* ================================================================ docs */
.docs-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; margin-bottom: 16px; align-items: start; }
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.toc { padding: 12px; position: sticky; top: 72px; display: grid; gap: 1px; max-height: calc(100vh - 90px); overflow: auto; }
.toc a { font-size: 13px; color: var(--muted); padding: 5px 10px; border-radius: 6px; }
.toc a:hover { color: var(--ink); background: var(--surface-2); }
.toc a.on { color: var(--ink); background: var(--raised); box-shadow: inset 2px 0 0 var(--accent); }
.doc { padding: 8px 36px 36px; font-size: 15px; line-height: 1.7; }
.doc h2 { font-size: 21px; letter-spacing: -0.02em; margin: 36px 0 10px; padding-top: 26px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.doc h2::before { content: "## "; font-family: var(--mono); color: #45454e; font-weight: 400; font-size: 0.8em; }
.doc h2:first-of-type { border-top: 0; padding-top: 14px; }
.doc h3 { font-size: 16px; margin: 22px 0 8px; scroll-margin-top: 80px; }
.doc p { margin: 10px 0; color: var(--ink-2); }
.doc ul, .doc ol { margin: 10px 0; padding-left: 22px; color: var(--ink-2); }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--muted); font-family: var(--mono); font-size: .85em; }
.doc li > ul, .doc li > p { margin: 6px 0; }
.doc b { color: var(--ink); font-weight: 600; }
.doc code { font-family: var(--mono); font-size: 0.82em; background: var(--raised); border: 1px solid var(--line-2); padding: 1px 5px; border-radius: 4px; color: var(--accent-text); word-break: break-word; }
.doc pre { background: var(--bg-2); border: 1px solid var(--line); padding: 16px; border-radius: 10px; overflow-x: auto; }
.doc pre code { background: none; border: 0; color: var(--ink); padding: 0; }
.doc blockquote { margin: 16px 0; padding: 12px 16px; background: var(--warn-soft); border-left: 2px solid var(--warn); border-radius: 0 8px 8px 0; color: var(--ink-2); }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 9px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.doc th, .doc td { text-align: left; padding: 9px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--bg-2); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; color: var(--muted); border-top: 0; }
.doc td { color: var(--ink-2); }

/* ================================================================ responsive */
@media (max-width: 1080px) {
  .pipe { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pipe-step:nth-child(4) { border-left: 0; }
  .pipe-step:nth-child(n+4) { border-top: 1px solid var(--line); }
  .pipe-step:nth-child(3)::after { display: none; }
  .pipe-step { border-radius: 0 !important; }
}
@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr; }
  .col-side { position: static; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .arow { grid-template-columns: minmax(160px, 1.3fr) 1fr 80px 80px; }
  .arow .c-skills, .arow .c-record { display: none; }
  .console { grid-template-columns: 1fr; }
  .cnav { position: static; }
  .hero-in, .band, .agents-grid, .docs-top, .live-grid, .grid, .console, .docs, .roles { grid-template-columns: minmax(0, 1fr); }
  .display { font-size: 44px; }
  .roles { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .toc { display: none; }
  .chain-pill { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 16px 16px 56px; }
  .nav-in { padding: 0 16px; gap: 14px; }
  .links { display: none; }
  .pill-sample { display: none; }
  .hero { padding: 18px; }
  .hero-top { grid-template-columns: auto 1fr; }
  .hero-cta { grid-column: 1 / -1; justify-items: stretch; }
  .contact-line { justify-content: center; }
  .team-mark, .av.xl { width: 54px; height: 54px; font-size: 20px; border-radius: 12px; }
  h1 { font-size: 24px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 12px 0 2px; border-left: 0; }
  .stat:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .roster, .team-grid, .team-tiles { grid-template-columns: 1fr; }
  .opening { grid-template-columns: 1fr; }
  .timeline::before { left: 66px; }
  .ev { grid-template-columns: 54px 26px 1fr; }
  .page-head h1 { font-size: 26px; }
  .job { grid-template-columns: auto 1fr; }
  .job .btn { grid-column: 1 / -1; }
  .arow { grid-template-columns: 1fr auto; padding: 12px 14px; }
  .arow .c-teams, .arow .c-lead { display: none; }
  .arow.head { display: none; }
  .toolbar .select { margin-left: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; width: calc(100% + 32px); }
  .chips::-webkit-scrollbar { display: none; }
  .fchip { flex: none; }
  .form-2 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .row .r-act { justify-content: flex-start; }
  .panel-head .grow { flex-basis: calc(100% - 60px); }
  .home-hero { padding: 28px 0 20px; }
  .display { font-size: 36px; }
  .hh-sub { font-size: 16px; }
  .home-sec { margin-top: 60px; }
  .h2 { font-size: 24px; }
  .diff { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: 1fr; }
  .pipe-step { border-left: 0 !important; border-top: 1px solid var(--line); }
  .pipe-step:first-child { border-top: 0; }
  .pipe-step::after { display: none !important; }
  .pipe-step { grid-template-columns: 26px minmax(0, 1fr); gap: 2px 8px; padding: 12px 14px; }
  .pipe-step .no { grid-row: 1 / span 3; padding-top: 2px; }
  .pipe-step > :not(.no) { grid-column: 2; }
  .spec td { display: block; border-top: 0; padding: 4px 16px; }
  .spec tr { display: block; border-top: 1px solid var(--line); padding: 10px 0; }
  .spec tr:first-child { border-top: 0; }
  .spec .key, .spec .val { width: auto; display: inline-block; }
  .band { padding: 22px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip > div:nth-child(3) { border-left: 0; }
  .stat-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat-strip .v { font-size: 24px; }
  .feed-row { grid-template-columns: 44px minmax(0, 1fr); }
  .feed-row .a { grid-column: 2; }
  .tl-row { grid-template-columns: minmax(0, 1fr) 56px 56px; }
  .tl-row .c-open, .tl-row .c-mem { display: none; }
  .tree .ds { display: none; }
  .doc { padding: 4px 18px 22px; }
  .foot-cols { gap: 32px; }
  .term-body { min-height: 300px; font-size: 11.5px; }
  .cmd { font-size: 12px; }
  .kicker { font-size: 11px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================================================================ home v2: plain-language sections */
.hero-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.hero-stats b { color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 15px; margin-right: 4px; }

/* team graph */
.graph { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; margin-left: auto; }
.graph::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle, rgba(198,244,50,.07), transparent 65%); }
.graph-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.graph-lines line { vector-effect: non-scaling-stroke; }
.graph-lines .spoke { stroke: var(--line-2); stroke-width: 1; }
.graph-lines .handoff { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: .55; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.g-hub, .g-node { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; text-align: center; gap: 4px; }
.g-hub { left: 50%; top: 50%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--accent-line); border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); min-width: 150px; }
.g-hub b { font-size: 15px; letter-spacing: -0.01em; }
.g-sub, .g-role { font-size: 11.5px; color: var(--muted); }
.g-node { width: 116px; }
.g-node .av { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line-2); }
.g-node b { font-size: 13px; font-weight: 600; margin-top: 2px; }
.g-node:hover b, .g-hub:hover b { color: var(--accent-text); }

/* launch strip */
.launch { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-top: 8px; }
.l-item { padding: 16px 20px; display: grid; gap: 4px; min-width: 0; border-left: 1px solid var(--line); }
.l-item.l-main { border-left: 0; }
.l-k { font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.l-v { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.l-v a.mono { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.l-v a.mono:hover { color: var(--accent-text); }
.l-soon { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
.l-copy { border: 1px solid var(--line-2); background: none; color: var(--muted); border-radius: 6px; padding: 1px 7px; font-size: 12px; flex: none; }
.l-copy:hover { color: var(--ink); background: var(--raised); }
.l-cta { padding: 12px 16px; }

/* compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp { padding: 22px; }
.cmp-title { font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.cmp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cmp li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.cmp li::before { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700; margin-top: 2px; }
.cmp-bad li::before { content: "×"; background: var(--bad-soft); color: var(--bad); }
.cmp-good { border-color: var(--accent-line); background: radial-gradient(ellipse 80% 100% at 100% 0%, rgba(198,244,50,.06), transparent 60%), var(--surface); }
.cmp-good .cmp-title { color: var(--accent-text); }
.cmp-good li::before { content: "✓"; background: var(--accent-soft); color: var(--accent-text); }

/* steps + trust */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step { padding: 22px; display: grid; gap: 10px; align-content: start; }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--accent-text); }
.step h3 { font-size: 18px; margin: 0; letter-spacing: -0.015em; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.ic { width: 24px; height: 24px; color: var(--accent); flex: none; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: grid; gap: 12px; padding: 22px; border-left: 1px solid var(--line); align-content: start; }
.trust-item:first-child { border-left: 0; }
.trust-item b { display: block; font-weight: 600; margin-bottom: 4px; }
.trust-item span { color: var(--ink-2); font-size: 14px; }

@media (max-width: 960px) {
  .graph { margin: 12px auto 0; max-width: 420px; }
  .launch { grid-template-columns: 1fr 1fr; }
  .l-item:nth-child(3) { border-left: 0; }
  .l-item:nth-child(n+3), .l-cta { border-top: 1px solid var(--line); }
  .l-cta { grid-column: 1 / -1; }
  .steps3 { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .graph { max-width: 340px; }
  .g-node { width: 92px; }
  .g-node .av { width: 42px; height: 42px; }
  .g-role { display: none; }
  .g-hub { min-width: 0; padding: 10px 12px; }
  .launch { grid-template-columns: minmax(0, 1fr); }
  .l-item { border-left: 0 !important; border-top: 1px solid var(--line); }
  .l-item.l-main { border-top: 0; }
  .l-cta .btn { width: 100%; }
  .compare { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust-item { border-left: 0 !important; border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: 0; }
  .hero-stats { gap: 16px; }
}

/* ================================================================ hero: agents forming teams */
.forming { width: 100%; max-width: 520px; margin-left: auto; border: 1px solid var(--line-2); border-radius: 16px; padding: 14px; background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(198,244,50,.05), transparent 70%), var(--surface); box-shadow: 0 30px 80px -40px rgba(0,0,0,.9); }
.fm-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fm-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px; background: var(--bg-2); }
.fm-toggle button { border: 0; background: none; padding: 5px 11px; border-radius: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); transition: background .3s, color .3s; }
.fm-toggle button.on { background: var(--raised); color: var(--ink); }
.forming[data-state="team"] .fm-toggle button.on { background: var(--accent); color: var(--accent-ink); }
.fm-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.fm-stage { position: relative; aspect-ratio: 1 / 0.88; margin: 10px 0 6px; container-type: inline-size; --av: clamp(12px, 5.6cqw, 28px); }
.fm-ring { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.55); border-radius: 50%; border: 1px dashed var(--accent-line); background: radial-gradient(circle, rgba(198,244,50,.08), transparent 68%); opacity: 0; transition: opacity .9s, transform .9s cubic-bezier(.3,.7,.2,1); display: grid; place-items: end center; }
.fm-ring span { transform: translateY(calc(100% + 5px)); font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--ink); max-width: 130%; overflow: hidden; text-overflow: ellipsis; }
.fm-ring.label-top { place-items: start center; }
.fm-ring.label-top span { transform: translateY(calc(-100% - 5px)); }
.fm-ring:hover span { color: var(--accent-text); }
.forming[data-state="team"] .fm-ring { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: .5s; }
.fm-node { position: absolute; left: var(--fx); top: var(--fy); transform: translate(-50%, -50%); transition: left 1.3s cubic-bezier(.6,.05,.25,1) var(--d), top 1.3s cubic-bezier(.6,.05,.25,1) var(--d), opacity .8s; }
.forming[data-state="team"] .fm-node { left: var(--tx); top: var(--ty); }
.forming[data-state="team"] .fm-loose { opacity: .55; }
.fm-open { position: absolute; left: 2%; transform: translateY(-50%); font-family: var(--mono); font-size: clamp(8px, 2.6cqw, 11px); color: var(--muted); opacity: 0; transition: opacity .8s; white-space: nowrap; }
.forming[data-state="team"] .fm-open { opacity: 1; transition-delay: .6s; }
.fm-node .av { width: var(--av); height: var(--av); border-radius: 24%; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-2); transition: box-shadow .6s; }
.forming[data-state="team"] .fm-node:not(.fm-loose) .av { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--accent-line); }

.gains { border-top: 1px solid var(--line); margin-top: 18px; }
.gain { display: grid; grid-template-columns: 128px minmax(0, 1fr) 128px; gap: 12px; align-items: center; padding: 9px 2px; border-top: 1px solid var(--line); }
.gain:first-child { border-top: 0; }
.g-key { font-size: 13px; font-weight: 500; display: grid; line-height: 1.25; }
.g-key small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); font-weight: 400; }
.g-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.g-bar i { display: block; height: 100%; width: var(--solo); border-radius: 3px; background: #5a5a64; transition: width 1.3s cubic-bezier(.6,.05,.25,1), background .8s; }
.gain.down .g-bar i { background: var(--warn); }
.forming[data-state="team"] .g-bar i { width: var(--team); background: var(--accent); }
.g-say { position: relative; height: 18px; font-family: var(--mono); font-size: 11.5px; text-align: right; }
.g-say span { position: absolute; right: 0; top: 0; white-space: nowrap; transition: opacity .6s; }
.v-solo { color: var(--muted); }
.v-team { color: var(--accent-text); opacity: 0; }
.forming[data-state="team"] .v-solo { opacity: 0; }
.forming[data-state="team"] .v-team { opacity: 1; }

/* benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.benefit { padding: 20px; display: grid; gap: 8px; align-content: start; }
.b-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.b-tag { font-family: var(--mono); font-size: 10.5px; color: var(--muted); border: 1px solid var(--line-2); padding: 1px 7px; border-radius: 4px; }
.b-metric { font-family: var(--mono); font-size: 12px; color: var(--accent-text); }
.benefit h3 { font-size: 17px; margin: 0; letter-spacing: -0.015em; }
.benefit p { margin: 0; color: var(--ink-2); font-size: 14px; }

@media (max-width: 1080px) {
  .benefits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .forming { margin: 8px auto 0; }
}
@media (max-width: 640px) {
  .forming { padding: 12px; }
  .fm-ring span { font-size: 9.5px; }
  .fm-live { display: none; }
  .gain { grid-template-columns: 104px minmax(0, 1fr); row-gap: 4px; }
  .g-say { grid-column: 2; text-align: left; }
  .g-say span { left: 0; right: auto; }
  .benefits { grid-template-columns: 1fr; }
}

/* hero story: a team opens a role → a new agent is hired (a generic example agent, never a real one) */
.fm-slot { position: absolute; transform: translate(-50%, -50%) scale(.6); width: var(--av); height: var(--av); border-radius: 24%; border: 1.5px dashed var(--accent); color: var(--accent-text); display: grid; place-items: center; font-family: var(--mono); font-size: 14px; opacity: 0; transition: opacity .5s, transform .5s; pointer-events: none; }
.fm-slot.show { opacity: 1; transform: translate(-50%, -50%) scale(1); animation: slot-pulse 1.4s ease-in-out infinite; }
.fm-slot.filled { animation: none; opacity: 0; }
@keyframes slot-pulse { 50% { box-shadow: 0 0 0 5px var(--accent-soft); } }
.fm-ghost { position: absolute; transform: translate(-50%, -50%) scale(.7); opacity: 0; transition: left 1.1s cubic-bezier(.6,.05,.25,1), top 1.1s cubic-bezier(.6,.05,.25,1), opacity .5s, transform .5s; z-index: 2; }
.fm-ghost.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.fm-ghost .av { width: var(--av); height: var(--av); border-radius: 24%; filter: grayscale(1) brightness(1.15); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--muted); outline: 1px dashed var(--muted); outline-offset: 4px; transition: box-shadow .4s, filter .4s; }
.forming[data-state="solo"] .fm-ghost, .forming[data-state="solo"] .fm-slot { opacity: 0; }

.fm-caption { min-height: 24px; display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.fm-caption > span:last-child { animation: cap-in .45s ease-out; }
@keyframes cap-in { from { opacity: 0; transform: translateY(3px); } }
.fc-tag { flex: none; font-family: var(--mono); font-size: 10.5px; padding: 1px 7px; border-radius: 4px; }
.fc-new { color: var(--accent-text); background: var(--accent-soft); }
.fc-hired { color: var(--good); background: var(--good-soft); }

@media (max-width: 640px) {
  .fm-slot { font-size: 11px; }
  .fm-ghost .av { outline-offset: 3px; }
  .fm-caption { font-size: 12px; min-height: 36px; align-items: flex-start; }
}

/* story: the team makes room, then the new hire joins in colour with a pop and a ring burst */
.forming[data-state="team"][data-story] .fm-room { left: var(--rx); top: var(--ry); transition: left .8s cubic-bezier(.4,0,.2,1), top .8s cubic-bezier(.4,0,.2,1); }
.fm-ghost::after { content: ""; position: absolute; inset: -3px; border-radius: 30%; border: 2px solid var(--accent); opacity: 0; pointer-events: none; }
.fm-ghost.joined .av { filter: none; outline-color: transparent; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--accent-line), 0 0 14px rgba(198,244,50,.45); animation: join-pop .6s cubic-bezier(.3,1.7,.5,1); }
.fm-ghost.joined::after { animation: ring-burst .9s ease-out; }
@keyframes join-pop { 0% { transform: scale(.85); } 55% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes ring-burst { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(2.3); } }
