/* getsquad — day board. Warm paper, one lime ink for every line, near-black for the words,
   a serif for the voice, a mono for figures. Panels are thin lime frames; the left rail replaces
   a top bar; a live ticker runs across the top; the home page is a board of tiles. */
:root {
  --paper: #F7F7F1;
  --paper-2: #FFFFFF;
  --paper-3: #EEEFE6;
  --ink: #121212;
  --ink-2: #3A3A38;
  --ink-soft: #6B6B66;
  --ink-mute: #9A9A93;
  --g: #C8F547;                 /* the lime: marks, fills, bars */
  --g-2: #DFFF7A;
  --g-deep: #6E9F00;            /* lime as a line or a word on paper */
  --g-text: #4F7A00;
  --line: rgba(110, 159, 0, .28);
  --line-2: rgba(110, 159, 0, .48);
  --frame: rgba(110, 159, 0, .62);
  --ok: #1E9C47;
  --bad: #E4282E;
  --amber: #946006;
  --amber-soft: #F9EAC6;
  --ff: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --ff-d: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ff-m: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --rail: 232px;
  --r: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* aliases the pages use inline */
  --acc: var(--g); --acc-hi: var(--g-2); --acc-lo: var(--g-deep); --acc-ink: var(--g-text); --acc-soft: #F1FBD3; --on-acc: #0E1106;
  --surface: var(--paper-2); --surface-2: var(--paper); --surface-3: var(--paper-3);
  --muted: var(--ink-soft); --up: #178A3C; --down: #D2322D; --green: var(--ok); --red: var(--bad); --blue: #2F5FD0; --violet: #8B5CF6; --gold: #E8B32E;
  --scr-dim: var(--ink-soft); --f-body: var(--ff); --f-num: var(--ff-m); --f-mono: var(--ff-m); --f-pix: var(--ff-d); --bd: var(--frame); --line-soft: var(--line);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15.5px/1.55 var(--ff); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
code, .mono { font-family: var(--ff-m); }
[hidden] { display: none !important; }
::selection { background: var(--g); color: #0b0b0b; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 24px 28px 60px; }
.sp { flex: 1; }
.muted { color: var(--ink-soft); }
.up { color: var(--up) !important; } .down { color: var(--down) !important; } .flat { color: var(--ink-soft) !important; }
.nowrap { white-space: nowrap; }
.fine { font-size: 12px; letter-spacing: .06em; color: var(--ink-soft); }
.fine a { text-decoration: underline; text-underline-offset: 3px; }
.pix { font-family: var(--ff-d); font-weight: 500; }
.note { color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; margin: 8px 0 0; }
.note b { color: var(--ink); } .note code { font-size: 12.5px; background: var(--paper-3); padding: 1px 6px; border-radius: 3px; color: var(--g-text); }
.hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.ext { color: var(--g-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.ext:hover { text-decoration-color: var(--g-deep); }
.agent-tag, .eyebrow, .kicker { font-family: var(--ff-m); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-text); font-weight: 500; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--g-deep); box-shadow: 0 0 0 4px rgba(110, 159, 0, .18); animation: blink 1.8s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- the mark (agent emblems) ---------- */
.av { display: inline-grid; place-items: center; flex: none; border: 1px solid var(--frame); background: var(--paper-2); overflow: hidden; border-radius: var(--r); }
.av svg, .av img { width: 100%; height: 100%; display: block; object-fit: cover; }
.av-28 { width: 28px; height: 28px; } .av-36 { width: 36px; height: 36px; } .av-42 { width: 42px; height: 42px; } .av-56 { width: 56px; height: 56px; } .av-64 { width: 64px; height: 64px; } .av-110 { width: 110px; height: 110px; }
.av.stand { border: 0; background: none; overflow: visible; border-radius: 0; }
.av.stand .bot, .dp-side .bot, .dp-main .bot { width: 100%; height: 100%; }
.side-card { margin-top: 6px; padding: 14px 12px; border: 1px solid var(--line); text-align: center; background: var(--paper); display: grid; justify-items: center; gap: 4px; }
.side-card b { display: block; font-family: var(--ff-d); font-weight: 500; font-size: 15px; }
.side-card span:not(.av) { font-size: 12px; color: var(--ink-soft); line-height: 1.35; }
.boot-steps div.with-bot { position: relative; padding-right: 74px; }
.boot-steps .bot-slot { position: absolute; right: 14px; bottom: 10px; width: 40px; height: 62px; }
.boot-steps .bot-slot .bot { width: 100%; height: 100%; }
.tok { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--paper-3); flex: none; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }

/* ---------- boot ---------- */
#boot { position: fixed; inset: 0; z-index: 90; background: var(--paper); display: grid; place-items: center; overflow: hidden; transition: opacity .55s var(--ease), visibility .55s; }
#boot.out { opacity: 0; visibility: hidden; }
.boot-in { width: min(720px, 92vw); text-align: center; }
.boot-word { display: inline-flex; align-items: center; gap: 12px; font-family: var(--ff-d); font-weight: 500; font-size: clamp(38px, 6vw, 72px); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.boot-word .word { clip-path: inset(0 100% 0 0); animation: write 1.1s .2s var(--ease) forwards; }
.boot-word .word em { font-style: italic; color: var(--g-deep); font-weight: 400; }
@keyframes write { to { clip-path: inset(0 0 0 0); } }
.boot-sub { margin-top: 10px; font-family: var(--ff-m); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-text); opacity: 0; animation: fade .5s 1.1s forwards; }
.boot-steps { margin: 34px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--frame); text-align: left; max-width: 720px; }
.boot-steps div { background: var(--paper-2); padding: 16px 18px; opacity: .35; transition: opacity .4s var(--ease), background .4s; }
.boot-steps div.on { opacity: 1; background: #FBFFE9; }
.boot-steps span { display: block; font-family: var(--ff-m); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-text); }
.boot-steps b { display: block; font-family: var(--ff-d); font-weight: 500; font-size: 20px; margin-top: 4px; letter-spacing: -.01em; }
.boot-steps small { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }
.boot-line { width: 220px; margin: 26px auto 0; height: 2px; background: var(--paper-3); overflow: hidden; }
.boot-line i { display: block; height: 100%; width: 0; background: var(--g-deep); animation: fill 3.6s .2s linear forwards; }
.boot-skip { position: absolute; right: 22px; top: 18px; font-family: var(--ff-m); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line-2); padding: 8px 12px; }
.boot-skip:hover { color: var(--ink); border-color: var(--g-deep); }
@keyframes fade { to { opacity: 1; } }
@keyframes fill { to { width: 100%; } }

/* ---------- shell: left rail + top + content ---------- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: var(--paper-2); display: flex; flex-direction: column; padding: 22px 18px; gap: 18px; z-index: 50; }
.rail .brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-d); font-weight: 500; font-size: 23px; letter-spacing: -.02em; color: var(--ink); }
.rail .brand .mark, .brand-m .mark { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; object-fit: cover; }
.rail .brand .mark svg { width: 100%; height: 100%; display: block; }
.brand em { font-style: italic; font-weight: 400; color: var(--g-deep); }
.rail .tag-line { font-family: var(--ff-m); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-text); margin: -8px 0 0 40px; }
.nav { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 0; }
.nav a { text-align: left; font-size: 14.5px; color: var(--ink-soft); padding: 10px 12px; border-left: 2px solid transparent; transition: color .15s, background .15s, border-color .15s; display: flex; align-items: center; gap: 10px; }
.nav a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-mute); transition: background .15s, box-shadow .15s; flex: none; }
.nav a:hover { color: var(--ink); background: var(--paper); }
.nav a.on { color: var(--ink); background: var(--paper); border-left-color: var(--g-deep); }
.nav a.on::before { background: var(--g-deep); box-shadow: 0 0 0 3px rgba(110, 159, 0, .2); }
.nav a svg { display: none; }
.rail-actions { display: grid; gap: 8px; margin-top: 6px; }
.rail-actions .btn { width: 100%; justify-content: center; }
.rail-foot { margin-top: auto; display: grid; gap: 10px; }
.rail-foot .fine { line-height: 1.5; }
.ca-box { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); font-family: var(--ff-m); font-size: 12px; background: var(--paper); }
.ca-box .tag { font-family: var(--ff-m); font-size: 10px; letter-spacing: .12em; color: var(--g-text); }
.ca-box .copy { margin-left: auto; }
.net { display: inline-flex; align-items: center; gap: 7px; font-family: var(--ff-m); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--g-text); }
.net i { width: 7px; height: 7px; border-radius: 50%; background: var(--g-deep); box-shadow: 0 0 0 3px rgba(110, 159, 0, .2); }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r); place-items: center; gap: 5px; }
.burger i { display: block; width: 16px; height: 1.5px; background: var(--g-deep); }
.content { min-width: 0; display: flex; flex-direction: column; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 40; background: rgba(247, 247, 241, .86); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 28px; }
.top .brand-m { display: none; align-items: center; gap: 8px; font-family: var(--ff-d); font-size: 20px; }
.ticker { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; gap: 34px; width: max-content; animation: tick 46s linear infinite; font-family: var(--ff-m); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tk b { color: var(--ink); font-weight: 500; }
.tk .p { color: var(--ink-soft); }
@keyframes tick { to { transform: translateX(-50%); } }
.top-right { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper-2); }
.icon-btn:hover { border-color: var(--g-deep); }
.icon-btn svg { width: 17px; height: 17px; }
.foot { border-top: 1px solid var(--frame); margin-top: 40px; padding: 26px 28px 30px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 12.5px; color: var(--ink-soft); }
.foot .brand { font-family: var(--ff-d); font-size: 18px; color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--r); font-weight: 600; font-size: 14px; border: 1px solid var(--g-deep); background: transparent; color: var(--ink); transition: transform .18s var(--ease), background .18s, color .18s, box-shadow .18s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); background: rgba(200, 245, 71, .22); }
.btn.btn-primary, .btn.ink { background: var(--g); color: #0b0b0b; }
.btn.btn-primary:hover, .btn.ink:hover { background: var(--g-2); box-shadow: 0 10px 24px -14px rgba(110, 159, 0, .7); }
.btn.ghost { border-color: var(--line-2); }
.btn-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-dark:hover { background: #2a2a2a; }
.btn-x { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-x:hover { background: #2a2a2a; }
.btn-sm, .btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 52px; font-size: 15px; font-family: var(--ff-d); font-weight: 500; letter-spacing: .01em; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; pointer-events: none; }
.btn svg { width: 15px; height: 15px; }
.btn .arr { transition: transform .18s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.copy { font-family: var(--ff-m); font-size: 11.5px; letter-spacing: .06em; color: var(--ink-soft); border: 1px solid var(--line); padding: 3px 8px; }
.copy:hover { color: var(--ink); border-color: var(--g-deep); }
.seg { display: inline-flex; border: 1px solid var(--line); padding: 3px; background: var(--paper-2); gap: 2px; }
.seg button { padding: 5px 11px; font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.seg button.on { background: var(--paper-3); color: var(--g-text); }

/* ---------- pills / chips ---------- */
.pill, .tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-m); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--line-2); color: var(--ink-soft); white-space: nowrap; }
.pill-active, .tag.live { border-color: var(--ok); color: var(--ok); }
.pill-active::before, .tag.live i { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: blink 1.6s infinite; display: inline-block; }
.pill-paused, .pill-wait { border-color: var(--amber); color: var(--amber); }
.pill-low, .pill-failed { border-color: var(--bad); color: var(--bad); }
.pill-launching { border-color: var(--blue); color: var(--blue); }
.pill-live { background: var(--g); border-color: var(--g); color: #0b0b0b; }
.pill-demo { border-color: var(--amber); color: var(--amber); }
.tag.mark { background: var(--g); border-color: var(--g); color: #0b0b0b; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; background: var(--paper-3); font-size: 12px; font-weight: 500; }
.side-pill { display: inline-flex; padding: 2px 8px; font-size: 10.5px; font-weight: 600; font-family: var(--ff-m); letter-spacing: .1em; color: #fff; }
.side-pill.buy { background: var(--ok); } .side-pill.sell { background: var(--bad); } .side-pill.hold { background: var(--paper-3); color: var(--ink-soft); }
.trig { display: inline-flex; padding: 1px 7px; font-size: 10.5px; font-weight: 600; background: var(--paper-3); color: var(--ink-2); font-family: var(--ff-m); }
.trig.tp { background: #DDF5E3; color: var(--up); } .trig.sl { background: #FDE3E3; color: var(--down); }
.lvl { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; padding: 2px 8px 2px 2px; border: 1px solid var(--line); vertical-align: middle; font-family: var(--ff-m); letter-spacing: .04em; }
.lvl b { width: 18px; height: 18px; color: #fff; display: grid; place-items: center; font-family: var(--ff-m); font-size: 10.5px; font-weight: 500; }
.lvl-bar { display: flex; flex-direction: column; gap: 5px; max-width: 460px; }
.lvl-track, .bar { height: 8px; border: 1px solid var(--frame); background: var(--paper); position: relative; overflow: hidden; }
.lvl-track i, .bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--g-deep) 0 3px, transparent 3px 7px); transition: width 1s var(--ease); }
.lvl-bar small { font-size: 12px; color: var(--ink-soft); }
.strat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border: 1px solid var(--line); font-size: 12px; font-weight: 500; }
.strat-chip .ic, .so-ic { width: 18px; height: 18px; display: grid; place-items: center; color: #fff; flex: none; }
.strat-chip .ic svg { width: 12px; height: 12px; }

/* ---------- cards + type ---------- */
.card, .frame { border: 1px solid var(--frame); background: var(--paper-2); }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; font-family: var(--ff-d); font-weight: 500; font-size: 22px; letter-spacing: -.01em; }
.card-head .sub { font-size: 12.5px; color: var(--ink-soft); font-family: var(--ff-m); letter-spacing: .04em; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-foot { padding: 12px 20px 14px; font-size: 13.5px; border-top: 1px solid var(--line); }
.card-foot a { color: var(--g-text); text-decoration: underline; text-underline-offset: 3px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-family: var(--ff-d); font-weight: 500; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head p { margin: 8px 0 0; color: var(--ink-soft); max-width: 70ch; font-size: 15.5px; }
.page-head .right { margin-left: auto; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--g-deep); }
.empty { padding: 28px 20px; color: var(--ink-soft); text-align: center; font-size: 14px; }
.empty b { color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; margin-top: 14px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }

/* ---------- home: the board ---------- */
.board { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(120px, auto); gap: 14px; }
.hero-card { grid-column: 1 / 8; grid-row: 1 / 3; padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.hero-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.hero-art { grid-column: 8 / 13; grid-row: 1 / 4; position: relative; overflow: hidden; min-height: 520px; background: var(--paper-2); display: flex; flex-direction: column; }
.hero-art .desk-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--ff-m); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-text); }
.hero-art .desk-head .right { margin-left: auto; color: var(--ink-soft); }
.hero-art .feed { flex: 1; max-height: none; padding: 0; overflow: hidden; }
.hero-art .fi { grid-template-columns: 36px 1fr; padding: 12px 18px; border-bottom: 1px solid var(--line); gap: 12px; }
.hero-art .fi .body { border: 0; padding: 0; background: none; }
.hero-art .fi .av { width: 36px; height: 36px; }
.hero-art .fi .why { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-cap { position: absolute; left: 14px; bottom: 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--g-text); background: rgba(255, 255, 255, .9); padding: 4px 8px; border: 1px solid var(--line); }
.live-strip { grid-column: 1 / 8; grid-row: 3 / 4; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--frame); margin: 0; padding: 0; }
.live-strip div { background: var(--paper-2); padding: 18px 20px; min-width: 0; }
.live-strip span { display: block; font-family: var(--ff-m); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }
.live-strip b { display: block; font-family: var(--ff-m); font-size: 22px; font-weight: 500; margin-top: 6px; color: var(--g-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-strip small { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; }
h1.big { font-family: var(--ff-d); font-weight: 500; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.025em; margin: 0; color: var(--ink); }
.lede { font-size: 17px; line-height: 1.55; color: var(--ink-soft); margin: 22px 0 10px; max-width: 54ch; }
.lede b { color: #0b0b0b; font-weight: 600; background: var(--g); padding: 0 .18em; border-radius: 2px; }
.cta, .cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.band { padding: 40px 0 0; }
.sh { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.sh h2 { font-family: var(--ff-d); font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.sh .kicker { width: 100%; margin: 0 0 4px; }
.count { display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 10px; margin-left: 10px; border: 1px solid var(--g-deep); border-radius: 999px; font-family: var(--ff-m); font-size: 13px; vertical-align: middle; color: var(--g-text); }
.more { margin-left: auto; font-size: 14px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; }
.more:hover { color: var(--g-text); }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--frame); margin-top: 26px; }
.role { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--paper-2); }
.role .av { width: 44px; height: 68px; }
.role b { display: block; font-family: var(--ff-d); font-weight: 500; font-size: 18px; }
.role span { font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; display: block; }

/* leaderboard rows + new coins */
.board-list { display: grid; }
.board-row { display: grid; grid-template-columns: 34px 36px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: var(--paper); }
.board-row .rk { font-family: var(--ff-d); font-size: 20px; color: var(--g-deep); }
.board-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.board-row .nm small { display: block; font-family: var(--ff-m); font-size: 11px; color: var(--ink-soft); font-weight: 400; letter-spacing: .04em; }
.board-row .val { font-family: var(--ff-m); font-size: 15px; font-weight: 500; text-align: right; }
.hires { display: grid; }
.hire { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.hire:last-child { border-bottom: 0; }
.hire:hover { background: var(--paper); }
.hire .mid { min-width: 0; flex: 1; }
.hire b { font-size: 14.5px; display: flex; gap: 8px; align-items: center; font-weight: 600; }
.hire .new { font-size: 9.5px; background: var(--g); color: #0b0b0b; padding: 2px 6px; font-family: var(--ff-m); letter-spacing: .1em; }
.hire small { color: var(--ink-soft); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--ff-m); }
.hire .r { text-align: right; font-size: 11.5px; color: var(--ink-soft); font-family: var(--ff-m); }
.hire .r b { color: var(--ink); justify-content: flex-end; font-size: 14px; }

/* trading desk feed */
.desk { margin-top: 14px; }
.feed { max-height: 520px; overflow-y: auto; display: grid; }
.fi { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.fi:last-child { border-bottom: 0; }
.fi .av { width: 42px; height: 42px; }
.fi .body { min-width: 0; }
.fi.enter { animation: pop .45s; background: #FBFFE9; }
.fi .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fi .top .nm { font-weight: 600; font-size: 14px; }
.fi .top .when { margin-left: auto; font-size: 11.5px; color: var(--ink-mute); font-family: var(--ff-m); }
.fi .line { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; font-size: 13.5px; }
.fi .line b { font-weight: 600; }
.fi .line .amt { font-family: var(--ff-m); }
.fi .line .tx { margin-left: auto; font-size: 12px; }
.fi .why { font-size: 13px; color: var(--ink-soft); margin: 5px 0 0; line-height: 1.5; }
@keyframes pop { from { transform: translateY(6px); opacity: .3; } to { transform: none; opacity: 1; } }

/* agent cards */
.payroll { margin-top: 14px; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding: 16px 20px 20px; }
.acard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 16px; border: 1px solid var(--frame); background: var(--paper-2); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s; }
.acard:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -30px rgba(110, 159, 0, .6); border-color: var(--g-deep); }
.acard .who { display: flex; gap: 12px; align-items: center; }
.acard .who .av { width: 48px; height: 48px; }
.acard .who b { display: block; font-family: var(--ff-d); font-weight: 500; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.01em; }
.acard .row, .row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.acard .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.acard .nums > div { background: var(--paper-2); padding: 10px 12px; }
.acard .k { font-family: var(--ff-m); font-size: 10px; letter-spacing: .12em; color: var(--ink-mute); text-transform: uppercase; }
.acard .v { font-family: var(--ff-m); font-weight: 500; font-size: 18px; margin-top: 4px; }
.acard .v small { font-size: 12px; color: var(--ink-mute); }
.acard .spark { height: 44px; color: var(--g-deep); }
.acard .foot2 { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-mute); font-family: var(--ff-m); letter-spacing: .04em; }

/* sparklines + charts */
.spark svg, svg.spark { width: 100%; height: 100%; display: block; overflow: visible; }
.chart { padding: 12px 16px 14px; }
.chart svg { width: 100%; height: 260px; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--ink-soft); font-size: 10.5px; font-family: var(--ff-m); }
.chart .base { stroke: var(--ink-soft); stroke-dasharray: 4 4; }
.chart .base-label { fill: var(--ink-soft); font-size: 10.5px; font-family: var(--ff-m); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-family: var(--ff-m); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-mute); font-weight: 500; text-transform: uppercase; padding: 10px 14px; border-bottom: 1px solid var(--frame); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.tbl tr.link { cursor: pointer; }
.tbl tr.link:hover td { background: var(--paper); }
.tbl .num { text-align: right; font-family: var(--ff-m); }
.tbl th.num { text-align: right; }
.tbl .who { display: flex; align-items: center; gap: 10px; }
.tbl .who b { display: block; font-weight: 600; }
.tbl .who small { color: var(--ink-soft); font-size: 11px; font-family: var(--ff-m); letter-spacing: .04em; }
.tbl .spark-cell { width: 110px; height: 30px; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.search { border: 1px solid var(--line); background: var(--paper-2); padding: 8px 10px; min-width: 220px; font-size: 13.5px; outline: none; }
.search:focus { border-color: var(--g-deep); }

/* ---------- forms / launch ---------- */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 14px; align-items: start; }
.form { padding: 26px 28px; display: flex; flex-direction: column; gap: 22px; }
.fieldset { display: flex; flex-direction: column; gap: 14px; }
.fieldset-title { font-family: var(--ff-m); font-size: 11px; letter-spacing: .16em; color: var(--g-text); display: flex; align-items: center; gap: 12px; text-transform: uppercase; }
.fieldset-title::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.field label { display: flex; justify-content: space-between; font-weight: 500; font-size: 13px; margin-bottom: 6px; color: var(--ink); }
.input, .textarea, select.input { width: 100%; border: 1px solid var(--line); background: var(--paper); padding: 13px 14px; font-size: 15px; outline: none; transition: border-color .15s, background .15s; color: var(--ink); border-radius: 0; }
.input:focus, .textarea:focus { border-color: var(--g-deep); background: var(--paper-2); }
.input::placeholder, .textarea::placeholder { color: var(--ink-mute); }
.textarea { min-height: 84px; resize: vertical; }
.input.locked { font-family: var(--ff-m); font-size: 13px; color: var(--ink-soft); background: var(--paper-3); }
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix .pre { position: absolute; left: 14px; color: var(--ink-mute); font-family: var(--ff-m); }
.input-affix .pre + .input { padding-left: 28px; }
.input-affix .suf-t { position: absolute; right: 14px; color: var(--ink-mute); font-family: var(--ff-m); font-size: 12.5px; letter-spacing: .08em; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.err { color: var(--down); font-size: 12.5px; font-weight: 500; margin-top: 5px; }
.presets { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.presets button { border: 1px solid var(--line); background: var(--paper-2); padding: 6px 12px; font-family: var(--ff-m); font-size: 12.5px; }
.presets button.on { border-color: var(--g-deep); color: var(--g-text); background: #F1FBD3; }
.desk-picker { border: 1px solid var(--line); padding: 14px; background: var(--paper); }
.dp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dp-title { font-family: var(--ff-d); font-size: 18px; font-weight: 500; }
.dp-no { font-family: var(--ff-m); font-size: 11px; letter-spacing: .12em; color: var(--g-text); border: 1px solid var(--line-2); padding: 3px 8px; }
.dp-actions { margin-left: auto; display: flex; gap: 6px; }
.dp-carousel { position: relative; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-top: 12px; outline: none; }
.dp-stage { position: relative; height: 210px; display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: end; justify-items: center; }
.dp-stage.drop .dp-main { animation: drop .4s; }
.dp-side { opacity: .4; filter: grayscale(.5); width: 84px; height: 130px; }
.dp-main { width: 130px; height: 200px; }
.dp-shelf { height: 6px; margin: 6px 12px 0; background: repeating-linear-gradient(-45deg, var(--g-deep) 0 3px, transparent 3px 7px); border: 1px solid var(--frame); }
.dp-main.in-right { animation: inR .25s; } .dp-main.in-left { animation: inL .25s; }
@keyframes inR { from { transform: translateX(30px); opacity: 0; } }
@keyframes inL { from { transform: translateX(-30px); opacity: 0; } }
@keyframes drop { from { transform: translateY(-30px); opacity: 0; } }
.dp-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--g-deep); background: var(--paper-2); font-size: 22px; line-height: 1; }
.dp-arrow:hover { background: rgba(200, 245, 71, .25); }
.dp-dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
.dp-dots span { width: 7px; height: 7px; border-radius: 4px; background: var(--line-2); }
.dp-dots span.on { width: 22px; background: var(--g-deep); }
.dp-info { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); font-family: var(--ff-m); }
.dp-info b { color: var(--g-text); font-weight: 500; }
.dp-info span::before { content: '■ '; color: var(--g-deep); font-size: 9px; }
.dp-hint { flex-basis: 100%; color: var(--ink-soft); font-family: var(--ff); }
.dp-hint::before { content: none !important; }
.logo-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.strat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.strat-list { border: 1px solid var(--frame); background: var(--paper-2); display: grid; }
.srow { display: grid; grid-template-columns: 34px minmax(0, 1fr) 76px 92px 92px 84px 44px; align-items: center; gap: 0 8px; width: 100%; text-align: left; padding: 14px 16px 14px 12px; border-top: 1px solid var(--line); border-left: 2px solid transparent; position: relative; transition: background .15s, border-color .15s; }
.srow:first-child { border-top: 0; }
.srow:hover { background: var(--paper); }
.srow.on { background: #FBFFE9; border-left-color: var(--g-deep); }
.sr-head { padding: 9px 16px 9px 12px; font-family: var(--ff-m); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); cursor: default; }
.sr-head:hover { background: none; }
.sr-dot { display: grid; place-items: center; }
.sr-dot i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-style: normal; font-size: 12px; color: var(--g-text); transition: border-color .15s, box-shadow .15s; }
.srow.on .sr-dot i { border-color: var(--g-deep); box-shadow: inset 0 0 0 4px var(--g-deep); }
.sr-name { min-width: 0; }
.sr-name b { display: block; font-family: var(--ff-d); font-weight: 500; font-size: 20px; letter-spacing: -.01em; line-height: 1.1; }
.sr-name small { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.sr-n { font-family: var(--ff-m); font-size: 14px; text-align: right; white-space: nowrap; }
.sr-head .sr-n { font-size: 10.5px; }
.sr-more { text-align: right; }
.sr-goal { display: none; grid-column: 2 / -1; font-size: 13px; color: var(--ink-2); line-height: 1.5; padding-top: 8px; margin-top: 8px; border-top: 1px dashed var(--line); }
.srow.on .sr-goal { display: block; }
.sr-build { background: repeating-linear-gradient(135deg, var(--paper-2), var(--paper-2) 10px, var(--paper) 10px, var(--paper) 20px); }
.sr-build .sr-dot i { background: var(--ink); color: var(--g); border-color: var(--ink); font-weight: 600; }
.sr-build:hover { border-left-color: var(--g-deep); }
.strat-opt { text-align: left; border: 1px solid var(--line); background: var(--paper-2); padding: 14px; display: flex; flex-direction: column; gap: 10px; position: relative; transition: border-color .15s, box-shadow .15s; }
.strat-opt:hover { border-color: var(--g-deep); }
.strat-opt.on { border-color: var(--g-deep); box-shadow: 0 0 0 1px var(--g-deep) inset; background: #FBFFE9; }
.so-top { display: flex; gap: 10px; align-items: center; }
.so-ic { width: 34px; height: 34px; }
.so-ic svg { width: 18px; height: 18px; }
.so-t b { display: block; font-family: var(--ff-d); font-size: 18px; font-weight: 500; }
.so-t small { font-size: 12px; color: var(--ink-soft); }
.so-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.so-nums span { background: var(--paper-2); padding: 6px 2px; text-align: center; font-weight: 500; font-size: 13px; font-family: var(--ff-m); }
.so-nums i { display: block; font-style: normal; font-size: 9.5px; letter-spacing: .1em; color: var(--ink-mute); }
.strat-custom { background: repeating-linear-gradient(135deg, var(--paper-2), var(--paper-2) 10px, var(--paper) 10px, var(--paper) 20px); flex-direction: row; align-items: center; }
.cust-plus { margin-left: auto; width: 28px; height: 28px; background: var(--ink); color: var(--g); display: grid; place-items: center; font-weight: 600; font-size: 18px; }
.cust-edit { position: absolute; right: 12px; top: 12px; font-size: 11.5px; font-family: var(--ff-m); letter-spacing: .08em; color: var(--g-text); text-decoration: underline; }
.preview { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 70px; }
.preview-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.preview-stage { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); background: var(--paper); }
.preview-stage .av { width: 76px; height: 76px; }
.pv-name { font-family: var(--ff-d); font-weight: 500; font-size: 24px; line-height: 1.1; overflow-wrap: anywhere; letter-spacing: -.01em; }
dl.kv { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 0; font-size: 13.5px; }
dl.kv dt, dl.kv dd { padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
dl.kv dt { color: var(--ink-soft); } dl.kv dd { text-align: right; font-weight: 500; font-family: var(--ff-m); font-size: 13px; overflow-wrap: anywhere; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 13.5px; counter-reset: c; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; counter-increment: c; color: var(--ink-2); }
.checklist li::before { content: counter(c) "."; font-family: var(--ff-d); font-size: 18px; color: var(--g-deep); line-height: 1; }

/* ---------- agent page ---------- */
.agent-top { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.agent-hero { display: flex; gap: 22px; padding: 24px; align-items: flex-start; }
.agent-hero .av { width: 110px; height: 170px; }
.agent-hero h1 { margin: 4px 0 8px; font-family: var(--ff-d); font-weight: 500; font-size: 34px; line-height: 1.05; letter-spacing: -.02em; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.agent-hero .row { margin: 6px 0; }
.addr { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.addr code { font-family: var(--ff-m); background: var(--paper-3); padding: 4px 8px; color: var(--g-text); overflow-wrap: anywhere; font-size: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--frame); margin-top: 14px; }
.kpi { padding: 14px 16px; background: var(--paper-2); border: 0 !important; min-width: 0; }
.kpi .k { font-family: var(--ff-m); font-size: 10px; letter-spacing: .12em; color: var(--ink-mute); text-transform: uppercase; }
.kpi .v { font-family: var(--ff-m); font-weight: 500; font-size: 24px; line-height: 1.2; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v small { font-size: 12px; color: var(--ink-mute); }
.kpi .s { font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; }
.ctl { padding: 0; display: flex; flex-direction: column; position: sticky; top: 70px; }
.ctl .ctl-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.ctl .ctl-head .nm { font-family: var(--ff-d); font-size: 22px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.01em; }
.ctl .bal { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ctl .bal .k { font-family: var(--ff-m); font-size: 10px; color: var(--ink-mute); letter-spacing: .12em; display: flex; justify-content: space-between; text-transform: uppercase; }
.ctl .bal .v { font-family: var(--ff-m); font-weight: 500; font-size: 30px; margin-top: 4px; }
.ctl .bal .v small { font-size: 13px; color: var(--ink-mute); }
.ctl .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.ctl .tile { background: var(--paper-2); padding: 14px 14px 12px; text-align: left; display: flex; flex-direction: column; gap: 3px; min-height: 76px; transition: background .15s; }
.ctl .tile:hover { background: #FBFFE9; }
.ctl .tile svg { width: 16px; height: 16px; color: var(--g-deep); }
.ctl .tile b { font-size: 14px; font-weight: 600; }
.ctl .tile small { font-size: 11px; color: var(--ink-soft); font-family: var(--ff-m); letter-spacing: .02em; }
.ctl .tile.locked { opacity: .45; }
.ctl .tile.off { opacity: .4; }
.ctl .ph-connect { padding: 14px 18px; text-align: left; border-top: 1px solid var(--line); background: var(--paper); }
.ctl .ph-connect b { display: block; font-size: 13.5px; } .ctl .ph-connect small { font-size: 11.5px; color: var(--ink-soft); }
.ctl .ph-next { padding: 12px 18px; text-align: center; font-family: var(--ff-m); font-size: 11.5px; letter-spacing: .08em; color: var(--g-text); border-top: 1px solid var(--line); text-transform: uppercase; }
.ctl .lvl-row { display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.ctl .lvl-row b.no { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; font-family: var(--ff-m); flex: none; }
.decisions { max-height: 340px; overflow-y: auto; display: grid; }
.dec { padding: 12px 20px; font-size: 13px; border-bottom: 1px solid var(--line); }
.dec:last-child { border-bottom: 0; }
.dec .top { display: flex; gap: 8px; align-items: center; }
.dec .top .when { margin-left: auto; color: var(--ink-mute); font-size: 11px; font-family: var(--ff-m); }
.dec p { margin: 5px 0 0; color: var(--ink-2); }
.dec .blocked { margin-top: 5px; color: var(--down); font-weight: 500; }
.dec .approved { margin-top: 5px; color: var(--up); font-size: 11.5px; font-family: var(--ff-m); }
.range { position: relative; height: 8px; min-width: 110px; }
.range .track { position: absolute; inset: 2px 0; background: var(--paper-3); }
.range .zero { position: absolute; top: -2px; bottom: -2px; width: 1px; background: var(--ink-soft); }
.range .fill { position: absolute; top: 2px; bottom: 2px; }
.range .fill.up { background: var(--ok); } .range .fill.down { background: var(--bad); }
.range .mk { position: absolute; top: -3px; width: 3px; height: 14px; margin-left: -1px; background: var(--ink); }
.range-lbl { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--ink-mute); font-family: var(--ff-m); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.info { padding: 18px 20px; font-size: 13.5px; }
.info h3 { margin: 0 0 10px; font-family: var(--ff-m); font-size: 11px; letter-spacing: .14em; color: var(--g-text); text-transform: uppercase; font-weight: 500; }
.info dl.kv { font-size: 12.5px; }
.pending { padding: 20px 24px; margin-top: 14px; }
.pending h2 { margin: 0 0 6px; font-family: var(--ff-d); font-size: 22px; font-weight: 500; }

/* ---------- how ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.steps li { padding: 20px 22px; background: var(--paper-2); }
.steps .n { font-family: var(--ff-d); color: var(--g-deep); font-size: 26px; }
.steps b { display: block; margin: 6px 0 4px; font-family: var(--ff-d); font-size: 20px; font-weight: 500; }
.steps p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.prose { padding: 20px 22px; font-size: 15px; line-height: 1.65; }
.prose p { margin: 0 0 10px; }
.prose ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--ink-2); }
.faq details { border-top: 1px solid var(--line); padding: 14px 22px; }
.faq summary { font-family: var(--ff-d); font-size: 18px; font-weight: 500; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

/* ---------- modals / toasts ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(18, 18, 18, .5); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fadein .15s; }
@keyframes fadein { from { opacity: 0; } }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px 24px; }
.modal.wide { max-width: 660px; }
.modal h3 { margin: 0 0 4px; font-family: var(--ff-d); font-weight: 500; font-size: 24px; letter-spacing: -.01em; }
.modal .x { float: right; font-size: 24px; line-height: 1; color: var(--ink-soft); }
.wlist { display: grid; gap: 8px; margin-top: 12px; }
.wopt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--paper-2); text-align: left; }
.wopt:hover { border-color: var(--g-deep); }
.wopt img, .wopt .wi { width: 30px; height: 30px; background: var(--paper-3); display: grid; place-items: center; font-weight: 600; border: 1px solid var(--line); }
.wopt small { margin-left: auto; color: var(--ink-soft); font-size: 12px; font-family: var(--ff-m); }
.steps-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.steps-list li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-soft); }
.steps-list li i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; display: grid; place-items: center; font-style: normal; font-size: 11px; font-family: var(--ff-m); }
.steps-list li.on { color: var(--ink); font-weight: 500; }
.steps-list li.on i { border-color: var(--g-deep); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps-list li.done { color: var(--ink-2); }
.steps-list li.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps-list li.fail i { background: var(--bad); border-color: var(--bad); color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.pm-note { margin-top: 12px; font-size: 13.5px; background: var(--paper); border: 1px solid var(--line); padding: 10px 12px; overflow-wrap: anywhere; }
.pm-note p { margin: 0 0 6px; } .pm-note p:last-child { margin: 0; }
.pm-err { margin-top: 12px; color: var(--down); font-weight: 500; font-size: 13.5px; }
.pm-actions { display: flex; gap: 8px; margin-top: 16px; justify-content: flex-end; flex-wrap: wrap; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 120; display: grid; gap: 8px; max-width: 340px; }
.toast { background: var(--ink); color: var(--paper); padding: 12px 14px; font-size: 13px; border-left: 3px solid var(--g); animation: pop .25s; }
.toast b { display: block; font-family: var(--ff-d); font-size: 16px; font-weight: 500; }
.toast a { color: var(--g); }
.builder .sl { display: grid; grid-template-columns: 1fr 88px; gap: 4px 12px; align-items: center; margin: 10px 0; }
.builder .sl label { font-weight: 500; font-size: 13px; }
.builder .sl output { text-align: right; font-family: var(--ff-m); }
.builder .sl input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--g-deep); }
.builder .sl .hint { grid-column: 1 / -1; margin: 0; }
.builder .grp { font-family: var(--ff-m); font-size: 11px; letter-spacing: .14em; color: var(--g-text); margin-top: 16px; text-transform: uppercase; }
.risk { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--amber); background: var(--amber-soft); color: var(--amber); font-size: 12.5px; display: grid; gap: 3px; }
.loading { display: grid; place-items: center; min-height: 60vh; text-align: center; gap: 10px; color: var(--ink-soft); font-family: var(--ff-m); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.loading .av { width: 56px; height: 56px; animation: bob .8s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-6px); } }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .board { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .hero-card, .hero-art, .live-strip { grid-column: 1; grid-row: auto; }
  .hero-art { min-height: 380px; }
  .agent-top, .launch { grid-template-columns: 1fr; }
  .preview, .ctl { position: static; }
  .info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .rail.open { transform: none; box-shadow: 0 0 0 100vw rgba(18, 18, 18, .45); }
  .top .brand-m { display: inline-flex; }
  .burger { display: grid; }
  .wrap { padding: 16px 16px 40px; }
  .two, .cols, .roles, .row2, .strat-grid, .kpis, .info-grid, .steps { grid-template-columns: 1fr; }
  .srow { grid-template-columns: 30px minmax(0, 1fr) 54px 60px 60px 50px; gap: 0 6px; padding: 12px 10px; }
  .srow .sr-more, .sr-head > span:last-child { display: none; }
  .sr-name b { font-size: 17px; }
  .sr-n { font-size: 12.5px; }
  .sr-build .sr-n { grid-column: 3 / 7 !important; }
  .live-strip { grid-template-columns: 1fr 1fr; }
  .hero-card { padding: 30px 22px; }
  .agent-hero { flex-direction: column; }
  .boot-steps { grid-template-columns: 1fr; }
  .top-in { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } * { animation-duration: .01ms !important; transition: none !important; } }
