/* =========================================================================
   agents-page.css — redesigned /agents page (June 2026 design refresh)
   Ported from design_handoff_agents_page/design/agents.css (805 ln) with the
   prototype-only chrome pruned: the :root marketing-token re-declaration
   (identical to marketing-shell.css), element resets, .grain, .btn*, nav,
   footer, the Spotlight + Inline shells, and the legacy .da-personas block.
   Brand tokens (--bg-*, --ink-*, --line*, --green*, --gold, --warn, --mono,
   --sans, --display) come from marketing-shell.css. The dark "console"
   tokens (--c-*) are new and scoped to this page.
   ========================================================================= */
.ag-page,
.ag-console-frame {
  /* console (dark panel) tokens */
  --c-bg: #16140f; --c-bg-2: #1c1a14; --c-bg-3: #232017;
  --c-line: #322e25; --c-line-2: #423c30;
  --c-ink: #ece6d8; --c-ink-2: #b3ac9b; --c-ink-3: #837c6c; --c-ink-4: #5e584c;
}
.ag-page {
  /* the prototype put these washes on body; scoped to the page wrapper here */
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(239,89,32,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(239,89,32,0.05), transparent 60%);
  padding-bottom: 80px;
}
/* several components set their own display (flex/grid), which would defeat
   the hidden attribute the demo JS relies on — restore it page-wide */
.ag-page [hidden] { display: none !important; }

/* ===================== HERO ===================== */
.ag-hero { padding: 64px 28px 30px; position: relative; overflow: hidden; }
.ag-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 500px at 80% 10%, rgba(239,89,32,0.10), transparent 60%); }
.ag-hero-inner { max-width: 1180px; margin: 0 auto; position: relative; }
.ag-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px;
  color: var(--green); border: 1px solid rgba(239,89,32,0.3); padding: 6px 14px; border-radius: 999px;
  background: rgba(239,89,32,0.04); margin-bottom: 22px; letter-spacing: 0.1em; text-transform: uppercase; }
.ag-eyebrow .led { width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green); animation: ledp 1.4s ease-in-out infinite; }
@keyframes ledp { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
h1.ag-title { font-family: var(--display); font-weight: 700; font-size: clamp(42px, 6.2vw, 84px);
  line-height: 0.95; letter-spacing: -0.035em; max-width: 1000px; text-wrap: balance; margin: 0; }
h1.ag-title .glow { color: var(--green); text-shadow: 0 0 28px var(--green-glow); }
.ag-lead { font-size: 19px; color: var(--ink-2); line-height: 1.6; max-width: 760px; margin-top: 24px; }
.ag-lead b { color: var(--ink); font-weight: 600; }

.ag-tier-strip { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; font-family: var(--mono); font-size: 13px; }
@media (max-width: 820px) { .ag-tier-strip { grid-template-columns: 1fr; } }
.ag-tier-strip .tile { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; background: var(--bg-1); }
.ag-tier-strip .tag { font-size: 10px; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; }
.ag-tier-strip .tile .head { color: var(--ink); font-size: 14px; font-weight: 600; margin-top: 4px; }
.ag-tier-strip .tile .body { color: var(--ink-2); font-family: var(--sans); font-size: 13px; line-height: 1.5; margin-top: 6px; }
.ag-tier-strip .tile.solo { border-color: rgba(255, 204, 0, 0.45); }
.ag-tier-strip .tile.pro { border-color: rgba(239, 89, 32, 0.5); background: linear-gradient(180deg, var(--bg-1), rgba(239,89,32,0.03)); }

/* ===================== SECTION HEADER ===================== */
.ag-secwrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.ag-sechead { max-width: 1180px; margin: 76px auto 0; padding: 0 28px; }
.ag-sechead.tight { margin-top: 56px; }
.ag-kicker { font-family: var(--mono); font-size: 12px; color: var(--green); letter-spacing: 0.1em;
  text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.ag-kicker::before { content: ''; width: 26px; height: 1px; background: var(--green); display: inline-block; }
h2.ag-h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.2vw, 50px);
  letter-spacing: -0.025em; line-height: 1.04; margin: 16px 0 0; text-wrap: balance; }
.ag-sublead { font-size: 17px; color: var(--ink-2); line-height: 1.6; max-width: 680px; margin-top: 16px; }
.ag-sublead b { color: var(--ink); font-weight: 600; }

/* ===================== DEMO MODULE (mount target) ===================== */
.ag-demo-section { margin-top: 30px; }

/* ---- the inner workings shared by all shells ---- */
.da-stage { display: flex; flex-direction: column; min-width: 0; }
.da-stage-head { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: start;
  padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--c-line); }
.da-stage-icn { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(157deg, #2a2519, #16130c); border: 1px solid var(--c-line-2);
  box-shadow: inset 0 1px 0 rgba(255,210,63,0.12); }
.da-stage-icn svg { width: 24px; height: 24px; color: var(--green); }
.da-stage-id { min-width: 0; align-self: center; }
.da-stage-titles { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.da-stage-titles h3 { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--c-ink);
  letter-spacing: -0.02em; margin: 0; }
.da-stage-sub { font-family: var(--mono); font-size: 11px; color: var(--c-ink-3); letter-spacing: 0.05em; margin-top: 4px; display: block; }
.da-stage-promise { grid-column: 1 / -1; font-family: var(--sans); font-size: 15px; color: var(--c-ink-2);
  line-height: 1.5; margin: 0; }

.da-badge { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.da-badge.pro { background: rgba(239,89,32,0.14); color: #ff7b48; border: 1px solid rgba(239,89,32,0.45); }
.da-badge.ent { background: rgba(255,210,63,0.12); color: var(--gold); border: 1px solid rgba(255,210,63,0.4); }
.da-badge.solo { background: rgba(255,210,63,0.1); color: #e7c24a; border: 1px solid rgba(255,210,63,0.35); }
.da-badge.mini { font-size: 8.5px; padding: 2px 6px; }

/* ---- input bar ---- */
.da-demo { display: flex; flex-direction: column; gap: 14px; }
.da-inputbar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.da-field { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 7px; }
.da-field-lbl { font-family: var(--mono); font-size: 11px; color: var(--c-ink-3); letter-spacing: 0.05em; }
.da-field-lbl b { color: var(--gold); }
.da-input { width: 100%; background: var(--c-bg); border: 1px solid var(--c-line-2); border-radius: 9px;
  padding: 13px 15px; color: var(--c-ink); font-family: var(--mono); font-size: 14px; transition: border-color 0.15s, box-shadow 0.15s; }
.da-input::placeholder { color: var(--c-ink-4); }
.da-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }
.da-input:disabled { opacity: 0.6; }

.da-run { display: inline-flex; align-items: center; gap: 9px; background: var(--green); color: #fff;
  font-family: var(--mono); font-weight: 700; font-size: 13px; padding: 13px 20px; border-radius: 9px;
  white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 0 0 1px var(--green), 0 6px 18px var(--green-glow);
  transition: transform 0.14s, box-shadow 0.14s, opacity 0.14s; }
.da-run:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 0 1px var(--green), 0 10px 26px var(--green-glow); }
.da-run:disabled { cursor: default; }
.da-run.is-running { background: var(--c-bg-3); color: var(--c-ink-2); box-shadow: 0 0 0 1px var(--c-line-2); }
.da-run-arrow { transition: transform 0.14s; }
.da-run:hover .da-run-arrow { transform: translateX(3px); }
.da-run-spin { width: 13px; height: 13px; border: 2px solid var(--c-ink-4); border-top-color: var(--green);
  border-radius: 50%; animation: daspin 0.7s linear infinite; }
@keyframes daspin { to { transform: rotate(360deg); } }

.da-presets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.da-presets-lbl { font-family: var(--mono); font-size: 10px; color: var(--c-ink-4); letter-spacing: 0.08em; text-transform: uppercase; }
.da-preset { font-family: var(--mono); font-size: 11.5px; color: var(--c-ink-2); background: var(--c-bg);
  border: 1px solid var(--c-line); border-radius: 999px; padding: 6px 12px; transition: all 0.13s; }
.da-preset:hover:not(:disabled) { border-color: var(--green); color: #ff7b48; }
.da-preset:disabled { opacity: 0.5; cursor: default; }

/* ---- output region ---- */
.da-out { display: flex; flex-direction: column; gap: 14px; min-height: 60px; }

.da-idle { display: flex; align-items: center; gap: 16px; padding: 22px 4px; color: var(--c-ink-3);
  font-family: var(--sans); font-size: 14.5px; line-height: 1.55; }
.da-idle-pulse { display: flex; gap: 5px; flex-shrink: 0; }
.da-idle-pulse span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); opacity: 0.3; animation: idlep 1.3s ease-in-out infinite; }
.da-idle-pulse span:nth-child(2) { animation-delay: 0.18s; }
.da-idle-pulse span:nth-child(3) { animation-delay: 0.36s; }
@keyframes idlep { 0%,100% { opacity: 0.25; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }

/* tool rail */
.da-toolrail { display: flex; flex-wrap: wrap; gap: 7px; }
.da-toolchip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px;
  color: var(--c-ink-4); background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 7px;
  padding: 5px 10px; transition: all 0.18s; }
.da-toolchip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-ink-4); transition: all 0.18s; }
.da-toolchip.is-active { color: var(--green); border-color: rgba(239,89,32,0.5); background: rgba(239,89,32,0.06); }
.da-toolchip.is-active .da-toolchip-dot { background: var(--green); box-shadow: 0 0 8px var(--green); animation: chipp 0.8s ease-in-out infinite; }
.da-toolchip.is-done { color: var(--c-ink-2); border-color: var(--c-line-2); }
.da-toolchip.is-done .da-toolchip-dot { background: #5fae6b; box-shadow: 0 0 6px rgba(95,174,107,0.6); }
.da-toolchip-check { color: #5fae6b; font-size: 10px; }
@keyframes chipp { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* think line */
.da-think { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--c-ink-2); }
.da-think-spin { width: 12px; height: 12px; border: 2px solid var(--c-line-2); border-top-color: var(--green); border-radius: 50%; animation: daspin 0.7s linear infinite; flex-shrink: 0; }

/* caret */
.da-caret { display: inline-block; width: 8px; height: 1.05em; background: var(--green); margin-left: 2px;
  vertical-align: text-bottom; animation: caretb 0.9s step-end infinite; }
@keyframes caretb { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* pop-in animation for revealed blocks */
.da-pop { animation: dapop 0.4s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes dapop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* guide callout */
.da-guide { display: inline-flex; align-items: flex-start; gap: 8px; font-family: var(--mono); font-size: 11px;
  color: var(--gold); line-height: 1.45; margin-top: 8px; opacity: 0; transform: translateY(4px);
  transition: opacity 0.4s, transform 0.4s; max-width: 480px; }
.da-guide.in { opacity: 1; transform: translateY(0); }
.da-guide-mark { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; margin-top: 1px;
  background: rgba(255,210,63,0.14); border: 1px solid rgba(255,210,63,0.4);
  background-image: linear-gradient(135deg, transparent 45%, var(--gold) 45%, var(--gold) 55%, transparent 55%); }
.da-guide b { color: #ffe27a; }

/* cited token */
.da-cite { font-family: var(--mono); font-size: 10.5px; color: var(--green); background: rgba(239,89,32,0.08);
  border: 1px solid rgba(239,89,32,0.28); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }

/* ---------- BRIEF (account prospecting) ---------- */
.da-brief { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; }
.da-brief-head { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--c-bg-2); border-bottom: 1px solid var(--c-line); }
.da-brief-doc { font-family: var(--mono); font-size: 12px; color: var(--c-ink); font-weight: 600; }
.da-brief-meta { font-family: var(--mono); font-size: 10.5px; color: var(--c-ink-3); }
.da-sec { padding: 16px 18px; border-bottom: 1px solid var(--c-line); }
.da-sec:last-child { border-bottom: 0; }
.da-sec-warn { background: rgba(214,48,96,0.04); }
.da-sec-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.da-sec-n { font-family: var(--mono); font-size: 10px; color: var(--green); font-weight: 700; letter-spacing: 0.08em; }
.da-sec-warn .da-sec-n { color: var(--warn); }
.da-sec-t { font-family: var(--mono); font-size: 12px; color: var(--c-ink); letter-spacing: 0.06em; text-transform: uppercase; }
.da-sec-guide { font-family: var(--mono); font-size: 10.5px; color: var(--c-ink-4); letter-spacing: 0.02em; }
.da-sec-b { font-family: var(--sans); font-size: 14px; color: var(--c-ink-2); line-height: 1.6; }
.da-sec-b p { margin: 0; }

.da-moves { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.da-move { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: start; }
.da-move-date { font-family: var(--mono); font-size: 11px; color: var(--gold); padding-top: 1px; }
.da-move-tx { color: var(--c-ink-2); }

.da-dm { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.da-dm li { display: flex; align-items: baseline; gap: 12px; padding: 8px 12px; background: var(--c-bg-2);
  border: 1px solid var(--c-line); border-radius: 8px; }
.da-dm li.is-warm { border-color: rgba(239,89,32,0.4); background: rgba(239,89,32,0.05); }
.da-dm-role { font-family: var(--mono); font-size: 12.5px; color: var(--c-ink); font-weight: 600; min-width: 0; }
.da-dm-note { font-family: var(--mono); font-size: 11px; color: var(--c-ink-3); margin-left: auto; text-align: right; }

.da-points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.da-points li { padding-left: 4px; }
.da-points li::marker { color: var(--green); font-family: var(--mono); font-size: 12px; }
.da-risks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.da-risks li { position: relative; padding-left: 20px; }
.da-risks li::before { content: '⚠'; position: absolute; left: 0; color: var(--warn); font-size: 12px; }

/* ---------- NBA (customer success) ---------- */
.da-nba { display: flex; flex-direction: column; gap: 12px; }
.da-nba-trigger { display: flex; gap: 13px; padding: 15px 17px; background: var(--c-bg); border: 1px solid var(--c-line);
  border-left: 3px solid var(--warn); border-radius: 10px; }
.da-flag { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; border-radius: 4px;
  background: rgba(214,48,96,0.15); border: 1px solid var(--warn); position: relative; }
.da-flag::after { content: ''; position: absolute; inset: 4px; background: var(--warn); border-radius: 1px; }
.da-nba-k { font-family: var(--mono); font-size: 10.5px; color: var(--c-ink-3); letter-spacing: 0.05em; display: block; margin-bottom: 5px; }
.da-nba-trigger p { margin: 0; font-family: var(--sans); font-size: 14px; color: var(--c-ink-2); line-height: 1.55; }
.da-nba-action { padding: 17px 19px; background: linear-gradient(160deg, rgba(239,89,32,0.08), var(--c-bg));
  border: 1px solid rgba(239,89,32,0.35); border-radius: 10px; }
.da-nba-big { margin: 0; font-family: var(--sans); font-size: 16.5px; color: var(--c-ink); line-height: 1.5; font-weight: 500; }
.da-draft { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; }
.da-draft-h { padding: 10px 15px; background: var(--c-bg-2); border-bottom: 1px solid var(--c-line); }
.da-draft-subj { display: flex; gap: 10px; align-items: baseline; padding: 11px 15px; border-bottom: 1px solid var(--c-line);
  font-family: var(--mono); font-size: 12.5px; color: var(--c-ink); }
.da-draft-subj span { color: var(--c-ink-4); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.da-draft-body { margin: 0; padding: 14px 15px; font-family: var(--mono); font-size: 12.5px; color: var(--c-ink-2);
  line-height: 1.65; white-space: pre-wrap; }
.da-cites { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.da-cites-lbl { font-family: var(--mono); font-size: 10px; color: var(--c-ink-4); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- LEGION (shared bits) ---------- */
.da-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 999px;
  background: var(--c-line-2); outline: none; }
.da-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green); cursor: pointer; box-shadow: 0 0 0 4px rgba(239,89,32,0.18); }
.da-slider::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--green);
  cursor: pointer; box-shadow: 0 0 0 4px rgba(239,89,32,0.18); }

.da-legion { display: flex; flex-direction: column; gap: 12px; }
.da-legion-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.da-legion-k { font-family: var(--mono); font-size: 11px; color: var(--c-ink-3); letter-spacing: 0.05em; }
.da-ranklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.da-rank { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 12px; align-items: center;
  padding: 9px 13px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 9px; }
.da-rank.is-queued { border-color: rgba(239,89,32,0.4); background: rgba(239,89,32,0.05); }
.da-rank-i { font-family: var(--mono); font-size: 11px; color: var(--c-ink-4); }
.da-rank-co { font-family: var(--sans); font-size: 13.5px; color: var(--c-ink); font-weight: 600; min-width: 0; }
.da-rank-ct { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--c-ink-3); font-weight: 400; margin-top: 1px; }
.da-rank-tag { font-family: var(--mono); font-size: 10px; color: var(--green); white-space: nowrap; }
.da-warmth { position: relative; display: inline-flex; align-items: center; gap: 7px; width: 92px; padding: 0; }
.da-warmth-fill { height: 5px; border-radius: 999px; flex: 1; background: var(--c-line-2); position: relative; min-width: 40px; }
.da-warmth-hot .da-warmth-fill { background: var(--green); box-shadow: 0 0 8px var(--green-glow); }
.da-warmth-warm .da-warmth-fill { background: var(--gold); }
.da-warmth-cool .da-warmth-fill { background: var(--c-ink-4); }
.da-warmth-n { font-family: var(--mono); font-size: 11px; color: var(--c-ink-2); width: 20px; text-align: right; }
.da-legion-sum { padding: 16px 18px; background: var(--c-bg-2); border: 1px solid var(--c-line); border-radius: 10px; }
.da-sum-row { display: flex; gap: 26px; flex-wrap: wrap; }
.da-sum-stat { display: flex; flex-direction: column; gap: 2px; }
.da-sum-stat b { font-family: var(--display); font-size: 26px; color: var(--green); font-weight: 700; line-height: 1; }
.da-sum-stat span { font-family: var(--mono); font-size: 11px; color: var(--c-ink-3); }
.da-attr { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 14px; padding-top: 13px;
  border-top: 1px solid var(--c-line); font-family: var(--mono); font-size: 11.5px; color: var(--c-ink-3); }
.da-attr-lbl { color: var(--gold); }
.da-attr b { color: var(--c-ink); }

/* ---------- BRAIN (split) ---------- */
.da-brain { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .da-brain { grid-template-columns: 1fr; } }
.da-brain-col { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 11px; padding: 15px 16px;
  display: flex; flex-direction: column; gap: 11px; }
.da-brain-pro { opacity: 0.92; }
.da-brain-ent { border-color: rgba(255,210,63,0.3); background: linear-gradient(170deg, rgba(255,210,63,0.05), var(--c-bg)); }
.da-brain-ent.in { animation: dapop 0.5s cubic-bezier(0.16,1,0.3,1) both; }
.da-brain-h { display: flex; flex-direction: column; gap: 9px; }
.da-brain-tag { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 9px;
  border-radius: 6px; align-self: flex-start; }
.da-brain-tag.pro { background: var(--c-bg-3); color: var(--c-ink-3); border: 1px solid var(--c-line-2); }
.da-brain-tag.ent { background: rgba(255,210,63,0.12); color: var(--gold); border: 1px solid rgba(255,210,63,0.4); }
.da-brain-body { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--c-ink-2); line-height: 1.6; white-space: pre-wrap; flex: 1; }
.da-brain-wait { font-family: var(--mono); font-size: 12px; color: var(--c-ink-4); font-style: italic; padding: 20px 0; }
.da-brain-notes { list-style: none; margin: 0; padding: 11px 0 0; border-top: 1px dashed var(--c-line-2);
  display: flex; flex-direction: column; gap: 5px; }
.da-brain-notes li { font-family: var(--mono); font-size: 10.5px; line-height: 1.4; padding-left: 16px; position: relative; }
.da-brain-notes.neg li { color: #c77; }
.da-brain-notes.neg li::before { content: '✕'; position: absolute; left: 0; color: #b55; }
.da-brain-notes.pos li { color: #8fb98a; }
.da-brain-notes.pos li::before { content: '✓'; position: absolute; left: 0; color: #5fae6b; }

/* ===================== SHELL: CONSOLE (split) ===================== */
.ag-console-frame { background: linear-gradient(180deg, #1a1811, #131009); border: 1px solid var(--c-line-2);
  border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,210,63,0.04), 0 40px 90px rgba(13,16,14,0.35);
  position: relative; }
.ag-console-frame::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.4; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.ag-console-bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--c-line); }
.ag-console-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.ag-console-bar .dot.r { background: #e05a4d; } .ag-console-bar .dot.y { background: #e0b34d; } .ag-console-bar .dot.g { background: #5fae6b; }
.ag-console-bar .title { font-family: var(--mono); font-size: 11.5px; color: var(--c-ink-3); margin-left: 8px; }
.ag-console-bar .live { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: #5fae6b; display: flex; align-items: center; gap: 6px; }
.ag-console-bar .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #5fae6b; box-shadow: 0 0 6px #5fae6b; animation: chipp 1.4s ease-in-out infinite; }

.da-console { position: relative; z-index: 1; display: grid; grid-template-columns: 272px 1fr; min-height: 540px; }
@media (max-width: 880px) { .da-console { grid-template-columns: 1fr; } }
.da-console-rail { border-right: 1px solid var(--c-line); padding: 16px 14px; display: flex; flex-direction: column; gap: 7px;
  background: rgba(0,0,0,0.14); }
@media (max-width: 880px) { .da-console-rail { border-right: 0; border-bottom: 1px solid var(--c-line); } }
.da-rail-lbl { font-family: var(--mono); font-size: 10px; color: var(--c-ink-4); letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 6px 8px; }
.da-rail-item { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px;
  border: 1px solid transparent; text-align: left; transition: all 0.14s; }
.da-rail-item:hover { background: var(--c-bg); }
.da-rail-item.is-on { background: var(--c-bg); border-color: rgba(239,89,32,0.4); box-shadow: inset 2px 0 0 var(--green); }
.da-rail-icn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--c-bg-3); border: 1px solid var(--c-line-2); }
.da-rail-icn svg { width: 18px; height: 18px; color: var(--c-ink-3); }
.da-rail-item.is-on .da-rail-icn { background: linear-gradient(157deg, #2a2519, #16130c); }
.da-rail-item.is-on .da-rail-icn svg { color: var(--green); }
.da-rail-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.da-rail-name { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--c-ink); }
.da-rail-sub { font-family: var(--mono); font-size: 10.5px; color: var(--c-ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.da-rail-foot { margin-top: auto; padding: 12px 8px 2px; font-family: var(--mono); font-size: 10.5px; color: var(--c-ink-4);
  display: flex; align-items: center; gap: 8px; }
.da-rail-dot { width: 6px; height: 6px; border-radius: 50%; background: #5fae6b; box-shadow: 0 0 6px #5fae6b; }
.da-console-main { padding: 24px 26px; min-width: 0; overflow: hidden; }
@media (max-width: 880px) { .da-console-main { padding: 20px 18px; } }

/* ===================== STACK (how they fit together) ===================== */
.ag-layers { margin-top: 30px; display: grid; gap: 12px; }
.ag-layer { display: grid; grid-template-columns: 172px 1fr; gap: 18px; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 24px; background: var(--bg-1); transition: border-color 0.15s, transform 0.15s; }
.ag-layer:hover { border-color: var(--line-2); transform: translateX(3px); }
@media (max-width: 700px) { .ag-layer { grid-template-columns: 1fr; gap: 7px; } }
.ag-layer .lbl { font-family: var(--mono); font-size: 12px; color: var(--green); letter-spacing: 0.08em; text-transform: uppercase; }
.ag-layer .body { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.ag-layer .body b { color: var(--ink); font-weight: 600; }

/* ===================== IN-DEV (lively, colorful) ===================== */
.ag-dev-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .ag-dev-grid { grid-template-columns: 1fr; } }
.ag-dev-card { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 24px; overflow: hidden;
  background:
    radial-gradient(420px 200px at 100% -30%, color-mix(in srgb, var(--dac) 16%, transparent), transparent 60%),
    linear-gradient(180deg, #1b1916, #131110);
  display: flex; flex-direction: column; gap: 10px; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.ag-dev-card { border-color: color-mix(in srgb, var(--dac) 28%, #322e29); }
.ag-dev-card:hover { transform: translateY(-4px); border-color: var(--dac);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--dac) 50%, transparent), 0 26px 60px rgba(13,16,14,0.45); }
.ag-dev-glow { position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--dac) 38%, transparent), transparent 68%); filter: blur(8px);
  opacity: 0.6; transition: opacity 0.3s, transform 0.3s; }
.ag-dev-card:hover .ag-dev-glow { opacity: 1; transform: scale(1.18); }
.ag-dev-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.ag-dev-icn { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; position: relative;
  background: linear-gradient(155deg, color-mix(in srgb, var(--dac) 38%, #16130c), #15120c);
  border: 1px solid color-mix(in srgb, var(--dac) 50%, #322e25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 0 22px -6px color-mix(in srgb, var(--dac) 80%, transparent); }
.ag-dev-icn svg { width: 26px; height: 26px; color: var(--dac); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--dac) 60%, transparent)); }
.ag-dev-icn::after { content: ''; position: absolute; inset: -1px; border-radius: 14px; pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--dac) 45%, transparent), transparent 45%); opacity: 0.5; }
.ag-dev-card:hover .ag-dev-icn svg { animation: devicn 1.4s ease-in-out infinite; }
@keyframes devicn { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.ag-dev-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; padding: 5px 11px; border-radius: 999px; color: var(--dac);
  background: color-mix(in srgb, var(--dac) 12%, transparent); border: 1px solid color-mix(in srgb, var(--dac) 40%, transparent); }
.ag-dev-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--dac); box-shadow: 0 0 8px var(--dac); animation: chipp 1.5s ease-in-out infinite; }
.ag-dev-name { font-family: var(--display); font-size: 23px; font-weight: 700; color: #f3efe6; margin: 4px 0 0; letter-spacing: -0.02em; }
.ag-dev-sub { font-family: var(--mono); font-size: 11px; color: color-mix(in srgb, var(--dac) 60%, #8a857c); }
.ag-dev-what { font-size: 14px; color: #b3ac9b; line-height: 1.55; margin: 4px 0 0; }
.ag-dev-teases { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ag-dev-tease { font-family: var(--mono); font-size: 10.5px; color: #cfc7b6; background: rgba(255,255,255,0.04);
  border: 1px solid color-mix(in srgb, var(--dac) 26%, #34302a); border-radius: 999px; padding: 4px 10px; }

.ag-dev-cta { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  padding: 22px 26px; border-radius: 16px; position: relative; overflow: hidden;
  background: radial-gradient(500px 200px at 0% -40%, rgba(239,89,32,0.12), transparent 60%), linear-gradient(180deg, #1a1815, #131110);
  border: 1px solid #34302a; }
.ag-dev-cta-k { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }
.ag-dev-cta-tx p { font-family: var(--sans); font-size: 14.5px; color: #b3ac9b; line-height: 1.5; margin: 7px 0 0; max-width: 460px; }
.ag-dev-cta-form { display: flex; gap: 0; border: 1px solid var(--c-line-2); border-radius: 10px; overflow: hidden; background: var(--c-bg); min-width: 290px; flex: 1; max-width: 380px; }
.ag-dev-cta-form input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 13px 15px; color: var(--c-ink); font-family: var(--mono); font-size: 13px; }
.ag-dev-cta-form input::placeholder { color: var(--c-ink-4); }
.ag-dev-cta-form input:focus { outline: none; }
.ag-dev-cta-form button { background: var(--green); color: #fff; padding: 0 18px; font-family: var(--mono); font-weight: 700; font-size: 13px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; transition: background 0.14s; }
.ag-dev-cta-form button:hover { background: var(--green-2); }
.ag-dev-cta-form.done { border-color: rgba(95,174,107,0.5); }
.ag-dev-cta-ok { font-family: var(--mono); font-size: 12.5px; color: #8fb98a; padding: 13px 16px; line-height: 1.45; }
.ag-dev-cta-ok b { color: #cfc7b6; }
/* inline failure state for the live release form (not in the prototype —
   the prototype form never hit a network) */
.ag-dev-cta-err { flex-basis: 100%; font-family: var(--mono); font-size: 11.5px; color: var(--warn); }
@media (max-width: 640px) { .ag-dev-cta-form { max-width: none; width: 100%; } }

/* ===================== SOCIAL PROOF BAND ===================== */
.ag-proof { position: relative; overflow: hidden;
  background: radial-gradient(620px 320px at 85% -20%, rgba(239,89,32,0.18), transparent 62%),
    radial-gradient(520px 320px at 5% 120%, rgba(255,210,63,0.06), transparent 60%),
    linear-gradient(180deg, #191817, #121110);
  border: 1px solid #34302a; border-radius: 22px; padding: 44px 44px 40px;
  box-shadow: 0 0 0 1px rgba(255,210,63,0.04), 0 30px 70px rgba(13,16,14,0.3); }
@media (max-width: 700px) { .ag-proof { padding: 32px 24px; } }
.ag-proof::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.ag-proof-inner { position: relative; }
.ag-proof-kicker { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; }
.ag-proof h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.025em;
  line-height: 1.06; margin: 12px 0 0; max-width: 780px;
  background: linear-gradient(180deg, #fff 0%, #f3e7cf 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ag-proof-sub { font-family: var(--sans); font-size: 16px; color: #a8a294; line-height: 1.6; max-width: 640px; margin-top: 14px; }
.ag-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
@media (max-width: 820px) { .ag-stat-row { grid-template-columns: repeat(2, 1fr); } }
.ag-stat { padding: 20px; border-radius: 14px; background: linear-gradient(160deg, #1f1d1b, #161413); border: 1px solid #322e29; }
.ag-stat b { display: block; font-family: var(--display); font-size: clamp(30px, 4vw, 42px); font-weight: 700;
  background: linear-gradient(180deg, #fff, #f3d68a 70%, #d9a23a); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.ag-stat span { display: block; font-family: var(--mono); font-size: 11.5px; color: #8a857c; margin-top: 9px; line-height: 1.4; }
.ag-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
@media (max-width: 820px) { .ag-quotes { grid-template-columns: 1fr; } }
.ag-quote { padding: 20px; border-radius: 14px; background: linear-gradient(160deg, #1f1d1b, #161413); border: 1px solid #322e29;
  display: flex; flex-direction: column; gap: 12px; }
.ag-quote p { font-family: var(--sans); font-size: 14.5px; color: #d8d2c4; line-height: 1.55; margin: 0; }
.ag-quote-by { display: flex; align-items: center; gap: 11px; }
.ag-quote-av { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 14px; color: #16130c; background: linear-gradient(160deg, #f3d68a, #d9a23a); }
.ag-quote-meta { display: flex; flex-direction: column; }
.ag-quote-name { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: #ece6d8; }
.ag-quote-role { font-family: var(--mono); font-size: 10.5px; color: #8a857c; }

/* ===================== CTA ===================== */
.ag-cta { max-width: 920px; margin: 0 auto; text-align: center; padding: 0 28px; }
.ag-cta h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -0.025em;
  line-height: 1.08; max-width: 760px; margin: 0 auto; }
.ag-cta p { color: var(--ink-2); font-size: 17px; line-height: 1.6; margin: 18px auto 0; max-width: 600px; }
.ag-cta .actions { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ag-cta-fine { font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); margin-top: 20px; }

/* =====================================================================
   ACCOUNT PROSPECTING — objective selector + expandable citations
   ===================================================================== */
.da-objbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.da-objseg { display: inline-flex; gap: 4px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 9px; padding: 3px; }
.da-obj { font-family: var(--mono); font-size: 11.5px; color: var(--c-ink-2); padding: 6px 12px; border-radius: 6px; transition: all 0.13s; }
.da-obj:hover:not(:disabled) { color: var(--c-ink); }
.da-obj.on { background: rgba(239,89,32,0.14); color: #ff7b48; box-shadow: inset 0 0 0 1px rgba(239,89,32,0.4); }
.da-obj:disabled { cursor: default; }
.da-cite-btn { cursor: pointer; transition: all 0.13s; }
.da-cite-btn:hover, .da-cite-btn.open { background: rgba(239,89,32,0.16); border-color: rgba(239,89,32,0.5); }
.da-cite-chev { font-size: 8px; }
.da-move-detail { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--c-ink-3); line-height: 1.5;
  padding: 8px 11px; background: var(--c-bg-2); border-left: 2px solid rgba(239,89,32,0.4); border-radius: 0 6px 6px 0; animation: dapop 0.25s ease both; }

/* =====================================================================
   CUSTOMER SUCCESS — pipeline scan / flagged-deal queue
   ===================================================================== */
.da-cs-pipefield { font-family: var(--mono); font-size: 12.5px; color: var(--c-ink-2); background: var(--c-bg);
  border: 1px solid var(--c-line-2); border-radius: 9px; padding: 13px 15px; line-height: 1.4; }
.da-csq { display: flex; flex-direction: column; gap: 10px; }
.da-csq-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.da-csq-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 13px; align-items: center; width: 100%; text-align: left;
  padding: 11px 13px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 9px; transition: all 0.14s; }
.da-csq-row:hover:not(:disabled) { border-color: var(--c-line-2); transform: translateX(2px); }
.da-csq-row.sel { border-color: rgba(239,89,32,0.45); background: rgba(239,89,32,0.05); box-shadow: inset 2px 0 0 var(--green); }
.da-csq-row:disabled { cursor: default; }
.da-csq-risk { font-family: var(--mono); font-size: 13px; font-weight: 700; text-align: center; padding: 5px 0; border-radius: 7px; }
.da-csq-risk.rhi { color: var(--warn); background: rgba(214,48,96,0.12); border: 1px solid rgba(214,48,96,0.4); }
.da-csq-risk.rmd { color: var(--gold); background: rgba(255,210,63,0.1); border: 1px solid rgba(255,210,63,0.35); }
.da-csq-risk.rlo { color: var(--c-ink-3); background: var(--c-bg-3); border: 1px solid var(--c-line-2); }
.da-csq-co { font-family: var(--sans); font-size: 14px; color: var(--c-ink); font-weight: 600; min-width: 0; }
.da-csq-meta { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--c-ink-3); font-weight: 400; margin-top: 2px; }
.da-csq-go { font-family: var(--mono); color: var(--c-ink-3); font-size: 15px; }
.da-csq-row.sel .da-csq-go { color: var(--green); }

/* =====================================================================
   BRAIN — knowledge-source toggles + brand-match meter
   ===================================================================== */
.da-brainsrc { display: flex; flex-direction: column; gap: 8px; }
.da-brainsrc-row { display: flex; flex-wrap: wrap; gap: 8px; }
.da-srcchip { flex: 1 1 150px; min-width: 0; display: flex; align-items: center; gap: 9px; text-align: left; padding: 9px 11px; border-radius: 9px;
  background: var(--c-bg); border: 1px solid var(--c-line); transition: all 0.14s; overflow: hidden; }
.da-srcchip:hover:not(:disabled) { border-color: var(--c-line-2); }
.da-srcchip.on { border-color: rgba(255,210,63,0.4); background: rgba(255,210,63,0.05); }
.da-srcchip:disabled { cursor: default; opacity: 0.7; }
.da-srcchip-box { width: 17px; height: 17px; flex-shrink: 0; border-radius: 5px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #16130c; background: var(--c-bg-3); border: 1px solid var(--c-line-2); transition: all 0.14s; }
.da-srcchip.on .da-srcchip-box { background: var(--gold); border-color: var(--gold); }
.da-srcchip-tx { display: flex; flex-direction: column; min-width: 0; }
.da-srcchip-tx b { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.da-srcchip-tx span { font-family: var(--mono); font-size: 10px; color: var(--c-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.da-score { display: flex; align-items: center; gap: 9px; }
.da-score-lbl { font-family: var(--mono); font-size: 10px; color: var(--c-ink-3); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.da-score-track { flex: 1; height: 5px; border-radius: 999px; background: var(--c-line-2); overflow: hidden; }
.da-score-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #ffe27a); border-radius: 999px; transition: width 0.5s cubic-bezier(0.16,1,0.3,1); }
.da-score-n { font-family: var(--mono); font-size: 11px; color: var(--gold); width: 34px; text-align: right; }
.da-brain-foot { font-family: var(--mono); font-size: 10.5px; padding-top: 11px; border-top: 1px dashed var(--c-line-2); }
.da-brain-foot.neg { color: #c77; }

/* =====================================================================
   BDM LEGION — THE FORGE (character creator)
   ===================================================================== */
.lg-build { gap: 16px; }
.lg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .lg-grid { grid-template-columns: 1fr; } }
.lg-col { display: flex; flex-direction: column; gap: 14px; }
.lg-block { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 12px; padding: 15px 16px; }
.lg-block-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 13px; flex-wrap: wrap; }
.lg-block-k { font-family: var(--mono); font-size: 11px; color: var(--green); letter-spacing: 0.06em; text-transform: uppercase; }
.lg-hint { font-family: var(--mono); font-size: 10.5px; color: var(--c-ink-4); }

/* avatar */
.lg-avatar { position: relative; display: grid; place-items: center; flex-shrink: 0; border-radius: 16px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--ac) 40%, #16130c), #14110b); border: 1px solid color-mix(in srgb, var(--ac) 50%, #322e25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 0 var(--ac); transition: box-shadow 0.4s; }
.lg-avatar.online { box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 22px -2px color-mix(in srgb, var(--ac) 70%, transparent); }
.lg-avatar-mono { font-family: var(--display); font-weight: 700; font-size: 1.4em; color: #fff; letter-spacing: -0.02em; line-height: 1;
  font-size: calc(0.42 * var(--sz, 64px)); }
.lg-avatar { font-size: 0; }
.lg-avatar-mono { font-size: 22px; }
.lg-avatar-glyph { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font-size: 12px; color: var(--ac); background: #16130c; border: 1px solid color-mix(in srgb, var(--ac) 50%, #322e25); }

/* identity */
.lg-identity { display: flex; gap: 14px; align-items: center; }
.lg-identity-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.lg-name { font-family: var(--display); font-size: 17px; font-weight: 600; }
.lg-typebadge { display: flex; align-items: baseline; gap: 9px; }
.lg-type { font-family: var(--mono); font-size: 18px; font-weight: 800; letter-spacing: 0.04em; }
.lg-type-tx { font-family: var(--sans); font-size: 12px; color: var(--c-ink-2); line-height: 1.35; }
.lg-type-tx b { color: var(--c-ink); }

/* archetype picker */
.lg-arcs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lg-arc { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 13px; border-radius: 11px;
  background: var(--c-bg-2); border: 1px solid var(--c-line); transition: all 0.14s; position: relative; }
.lg-arc:hover { border-color: var(--c-line-2); transform: translateY(-1px); }
.lg-arc.on { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 9%, var(--c-bg-2)); box-shadow: 0 0 0 1px var(--ac); }
.lg-arc-glyph { font-size: 16px; color: var(--ac); }
.lg-arc-name { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--c-ink); }
.lg-arc-tag { font-family: var(--mono); font-size: 10px; color: var(--c-ink-3); line-height: 1.35; }

/* personality axes */
.lg-axes { display: flex; flex-direction: column; gap: 7px; }
.lg-axis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lg-axis-side { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 8px; text-align: left;
  background: var(--c-bg-2); border: 1px solid var(--c-line); transition: all 0.13s; }
.lg-axis-side:hover { border-color: var(--c-line-2); }
.lg-axis-side.on { border-color: rgba(239,89,32,0.45); background: rgba(239,89,32,0.06); }
.lg-axis-v { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--c-ink-3); width: 14px; }
.lg-axis-side.on .lg-axis-v { color: var(--green); }
.lg-axis-l { font-family: var(--sans); font-size: 12px; color: var(--c-ink-2); }
.lg-axis-side.on .lg-axis-l { color: var(--c-ink); }
.lg-axis-note { font-family: var(--mono); font-size: 11px; color: var(--c-ink-4); margin: 10px 0 0; }

/* strengths */
.lg-pool { font-family: var(--mono); font-size: 10.5px; color: var(--c-ink-3); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--c-line-2); }
.lg-pool.full { color: var(--gold); border-color: rgba(255,210,63,0.4); }
.lg-strs { display: flex; flex-direction: column; gap: 9px; }
.lg-str { display: grid; grid-template-columns: 96px 1fr 16px; gap: 11px; align-items: center; }
.lg-str-lbl { font-family: var(--mono); font-size: 11.5px; color: var(--c-ink-2); }
.lg-str-lbl b { color: var(--c-ink); }
.lg-str-pips { display: flex; gap: 4px; }
.lg-pip { flex: 1; height: 14px; border-radius: 4px; background: var(--c-bg-3); border: 1px solid var(--c-line-2); transition: all 0.12s; }
.lg-pip:hover:not(:disabled) { border-color: var(--green); }
.lg-pip.on { background: var(--green); border-color: var(--green); box-shadow: 0 0 6px var(--green-glow); }
.lg-str-val { font-family: var(--mono); font-size: 11px; color: var(--c-ink-3); text-align: right; }

/* voice */
.lg-tones { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.lg-tone { font-family: var(--mono); font-size: 11.5px; color: var(--c-ink-2); background: var(--c-bg-2); border: 1px solid var(--c-line); border-radius: 999px; padding: 6px 13px; transition: all 0.13s; }
.lg-tone:hover { border-color: var(--c-line-2); }
.lg-tone.on { background: rgba(239,89,32,0.12); color: #ff7b48; border-color: rgba(239,89,32,0.45); }
.lg-cadence { display: flex; flex-direction: column; gap: 8px; }

/* deploy bar */
.lg-deploy-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 16px; background: linear-gradient(160deg, rgba(239,89,32,0.07), var(--c-bg)); border: 1px solid rgba(239,89,32,0.28); border-radius: 12px; }
.lg-deploy-sum { font-family: var(--mono); font-size: 12px; color: var(--c-ink-2); display: flex; align-items: center; gap: 12px; flex: 1; min-width: 220px; }
.lg-deploy-sum b { color: var(--c-ink); }
.lg-size { max-width: 200px; }
.lg-forge { font-size: 13.5px; padding: 13px 22px; }

/* live (deployed) */
.lg-live { gap: 13px; }
.lg-live-head { display: flex; align-items: center; gap: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--c-line); }
.lg-live-id { flex: 1; min-width: 0; }
.lg-live-name { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--c-ink); display: flex; align-items: baseline; gap: 9px; }
.lg-live-type { font-family: var(--mono); font-size: 14px; font-weight: 800; letter-spacing: 0.04em; }
.lg-live-sub { font-family: var(--mono); font-size: 11px; color: var(--c-ink-3); margin-top: 2px; display: block; }
.lg-reforge { font-family: var(--mono); font-size: 11.5px; color: var(--c-ink-2); border: 1px solid var(--c-line-2); border-radius: 8px; padding: 8px 13px; transition: all 0.14s; }
.lg-reforge:hover:not(:disabled) { border-color: var(--green); color: #ff7b48; }
.lg-reforge:disabled { opacity: 0.5; cursor: default; }
.lg-idcard { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 10px; padding: 14px 16px; }
.lg-idcard-k { font-family: var(--mono); font-size: 10.5px; color: var(--c-ink-3); letter-spacing: 0.04em; display: block; margin-bottom: 9px; }
.lg-sigs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.lg-sigs li { position: relative; padding-left: 22px; font-family: var(--sans); font-size: 13.5px; color: var(--c-ink-2); line-height: 1.45; }
.lg-sigs li::before { content: '◆'; position: absolute; left: 0; color: var(--green); font-size: 10px; top: 2px; }
.lg-draftcard { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; }
.lg-draftcard-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 11px 15px; background: var(--c-bg-2); border-bottom: 1px solid var(--c-line); }

/* =====================================================================
   SHARED BUILDER PRIMITIVES (Brief Studio / Watchtower / Trainer)
   ===================================================================== */
.da-seg2 { display: inline-flex; gap: 4px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 9px; padding: 3px; flex-wrap: wrap; }
.da-seg2-btn { font-family: var(--mono); font-size: 11.5px; color: var(--c-ink-2); padding: 7px 13px; border-radius: 6px; transition: all 0.13s; white-space: nowrap; }
.da-seg2-btn:hover:not(:disabled) { color: var(--c-ink); }
.da-seg2-btn.on { background: rgba(239,89,32,0.14); color: #ff7b48; box-shadow: inset 0 0 0 1px rgba(239,89,32,0.4); }
.da-seg2-btn:disabled { cursor: default; opacity: 0.6; }
.da-chiprow { display: flex; flex-wrap: wrap; gap: 7px; }
.da-mchip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--c-ink-2);
  background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 999px; padding: 7px 13px; transition: all 0.13s; }
.da-mchip:hover:not(:disabled) { border-color: var(--c-line-2); }
.da-mchip.on { background: rgba(239,89,32,0.1); color: #ff7b48; border-color: rgba(239,89,32,0.4); }
.da-mchip-box { width: 14px; height: 14px; border-radius: 4px; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #16130c;
  background: var(--c-bg-3); border: 1px solid var(--c-line-2); transition: all 0.13s; }
.da-mchip.on .da-mchip-box { background: var(--green); border-color: var(--green); }
.da-fb { display: flex; flex-direction: column; gap: 10px; }
.da-fb-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.da-fb-k { font-family: var(--mono); font-size: 11px; color: var(--green); letter-spacing: 0.06em; text-transform: uppercase; }
.da-fb-hint { font-family: var(--mono); font-size: 10.5px; color: var(--c-ink-4); }
.bs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 680px) { .bs-grid { grid-template-columns: 1fr; } }
.bs-build { gap: 18px; }
.bs-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.bs-empty { font-family: var(--mono); font-size: 12px; color: var(--c-ink-4); font-style: italic; }
.bs-runhead { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--c-line); flex-wrap: wrap; }
.bs-runtitle { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--c-ink); }
.bs-runsub { font-family: var(--mono); font-size: 11px; color: var(--c-ink-3); margin-top: 2px; display: block; }

/* ---- Watchtower bespoke ---- */
.wt-policy-head { display: flex; align-items: center; gap: 14px; padding-bottom: 4px; }
.wt-eye { position: relative; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #2a2519, #14110b); border: 1px solid var(--c-line-2); box-shadow: inset 0 1px 0 rgba(255,210,63,0.1); }
.wt-eye-iris { width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ff8a52, var(--green) 60%, #7a2c10);
  box-shadow: 0 0 10px var(--green-glow); }
.wt-eye.sm { width: 34px; height: 34px; } .wt-eye.sm .wt-eye-iris { width: 12px; height: 12px; }
.wt-eye.online .wt-eye-iris { animation: wtscan 3.4s ease-in-out infinite; }
@keyframes wtscan { 0%,100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
.wt-policy-title { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--c-ink); }
.wt-policy-sub { font-family: var(--sans); font-size: 13px; color: var(--c-ink-2); line-height: 1.45; }
.wt-live-id { display: flex; align-items: center; gap: 12px; }
.wt-flagnote { font-family: var(--mono); font-size: 12px; color: var(--c-ink-2); background: var(--c-bg); border: 1px dashed var(--c-line-2); border-radius: 10px; padding: 13px 15px; line-height: 1.5; }
.wt-promote { font-family: var(--mono); font-size: 11.5px; color: var(--green); margin-left: 6px; }
.wt-promote:hover { text-decoration: underline; }

/* ---- Brain Trainer bespoke ---- */
.bt-trainer { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 12px; padding: 15px 16px; display: flex; flex-direction: column; gap: 13px; }
.bt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 680px) { .bt-cards { grid-template-columns: 1fr; } }
.bt-card { border: 1px solid var(--c-line); border-radius: 11px; background: var(--c-bg-2); overflow: hidden; transition: border-color 0.14s; }
.bt-card.on { border-color: rgba(255,210,63,0.4); }
.bt-card-head { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 12px 13px; }
.bt-card-icn { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; flex-shrink: 0;
  background: var(--c-bg-3); border: 1px solid var(--c-line-2); }
.bt-card.on .bt-card-icn { background: rgba(255,210,63,0.1); border-color: rgba(255,210,63,0.35); }
.bt-card-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bt-card-id b { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--c-ink); }
.bt-card-id span { font-family: var(--mono); font-size: 10px; color: var(--c-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-switch { width: 34px; height: 19px; border-radius: 999px; background: var(--c-bg-3); border: 1px solid var(--c-line-2); position: relative; flex-shrink: 0; transition: all 0.16s; }
.bt-switch.on { background: var(--gold); border-color: var(--gold); }
.bt-switch-knob { position: absolute; top: 1px; left: 1px; width: 15px; height: 15px; border-radius: 50%; background: #16130c; transition: transform 0.16s; }
.bt-switch.on .bt-switch-knob { transform: translateX(15px); }
.bt-card-body { padding: 0 13px 13px; display: flex; flex-direction: column; gap: 9px; animation: dapop 0.22s ease both; }
.bt-sub-lbl { font-family: var(--mono); font-size: 10px; color: var(--c-ink-3); letter-spacing: 0.04em; text-transform: uppercase; }
.bt-toggle-row { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11.5px; color: var(--c-ink-2); cursor: pointer; }
.bt-check { width: 16px; height: 16px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #16130c;
  background: var(--c-bg-3); border: 1px solid var(--c-line-2); transition: all 0.13s; }
.bt-check.on { background: var(--gold); border-color: var(--gold); }
.bt-bans { display: flex; flex-wrap: wrap; gap: 6px; }
.bt-ban { font-family: var(--mono); font-size: 10.5px; color: var(--c-ink-3); background: var(--c-bg-3); border: 1px solid var(--c-line-2); border-radius: 999px; padding: 4px 10px; transition: all 0.13s; }
.bt-ban:hover:not(:disabled) { border-color: var(--c-line-2); color: var(--c-ink-2); }
.bt-ban.on { color: var(--warn); border-color: rgba(214,48,96,0.45); background: rgba(214,48,96,0.08); text-decoration: line-through; }
.bt-cta { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--c-line); }

/* page-scoped (marketing-shell has no reduced-motion rule of its own) */
@media (prefers-reduced-motion: reduce) {
  .ag-page *, .ag-page *::before, .ag-page *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---- port glue: demos toggle pre-rendered blocks via the hidden attribute;
   this must beat any component display rule ---- */
.ag-page [hidden] { display: none !important; }
