:root {
  --bg: #0a0f1a;
  --panel: #0d1420;
  --fg: #e6edf3;
  --gray: #8b96a5;
  --dim: #4a5568;
  --line: #1a2432;
  --accent: #39ff14;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, "Segoe UI", Inter, system-ui, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.mono, .time, .stat-num, .sub, .viewers, .msg .time, .dl-when { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
a { color: var(--accent); text-decoration: none; }
.accent { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* wireframe background */
#wireframe {
  position: fixed; inset: 0; width: 100%; height: 100%;
  opacity: 0.05; pointer-events: none; z-index: 0;
}
header, main, footer, #hero { position: relative; z-index: 1; }

/* header */
#site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); min-width: 0; }
.mark { width: 28px; height: 28px; flex-shrink: 0; }
.mark.logo-img { object-fit: cover; border-radius: 5px; display: block; }
h1 { font-size: 14px; letter-spacing: 3px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { color: var(--gray); font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tagline { display: none; }
.status { display: flex; align-items: center; gap: 18px; font-size: 11px; color: var(--gray); white-space: nowrap; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); padding: 4px 10px;
  letter-spacing: 1px; font-size: 10px; color: var(--gray);
}
.dot { width: 7px; height: 7px; background: var(--dim); display: inline-block; }
.dot.live { background: var(--accent); box-shadow: 0 0 6px var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
.viewers { color: var(--dim); font-size: 11px; }
.backlink { color: var(--gray); letter-spacing: 2px; font-size: 11px; border: 1px solid var(--line); padding: 4px 10px; }
.backlink:hover { color: var(--accent); border-color: var(--accent); }

/* hero (S57: Yield-Forward Hero, 7/9) */
#hero { border-bottom: 1px solid var(--line); padding: 72px 0 56px; text-align: center; }
.kicker { color: var(--accent); letter-spacing: 4px; font-size: 11px; font-weight: 600; margin-bottom: 18px; }
.hero-title { font-size: 72px; line-height: 1.05; font-weight: 800; letter-spacing: 2px; font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.ticker-badge { display: inline-block; margin-top: 14px; font-size: 32px; font-weight: 700; color: var(--bg); background: var(--fg); padding: 2px 18px; font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.hero-tag { color: var(--gray); margin: 20px auto 0; font-size: 16px; max-width: 560px; }
.yield-cards { display: flex; justify-content: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.ycard { width: 240px; border: 1px solid var(--line); background: var(--panel); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; text-align: left; transition: border-color 300ms; }
.ycard:hover { border-color: var(--accent); }
.ycard.cycling { border-color: var(--accent); }
.y-proj { font-size: 11px; letter-spacing: 2px; color: var(--gray); text-transform: uppercase; }
.y-apy { font-size: 24px; font-weight: 700; color: var(--accent); font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.y-tvl { font-size: 18px; color: var(--fg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.stat { background: var(--panel); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 26px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 11px; letter-spacing: 2px; color: #a8b3c0; }

/* panels */
main { padding: 12px 24px 40px; }
.panel { margin-top: 48px; }
.panel-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.panel-label { color: var(--fg); letter-spacing: 4px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.panel-label::before { content: "▸ "; color: var(--accent); }
.panel-rule { flex: 1; height: 1px; background: var(--line); }

/* office */
#office { display: block; width: 100%; border: 1px solid var(--line); background: #0b1524; }

/* feed */
#feed { max-height: 62vh; overflow-y: auto; border: 1px solid var(--line); background: var(--panel); padding: 4px 16px; scrollbar-width: thin; scrollbar-color: var(--line) var(--panel); }
#feed::-webkit-scrollbar { width: 8px; }
#feed::-webkit-scrollbar-track { background: var(--panel); }
#feed::-webkit-scrollbar-thumb { background: var(--line); }
.msg { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.msg:last-child { border-bottom: none; }
.avatar { width: 34px; height: 34px; background: var(--line); flex-shrink: 0; object-fit: cover; border: 1px solid var(--line); }
.msg .body { min-width: 0; flex: 1; }
.msg .meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 2px; }
.msg .name { color: var(--fg); font-weight: 700; font-size: 14px; }
.msg .time { color: var(--dim); font-size: 11px; }
.msg .text { color: #9aa7b6; white-space: pre-wrap; font-size: 15px; overflow-wrap: anywhere; }
.msg.system .name { color: var(--accent); }
.empty { color: var(--dim); padding: 40px 0; text-align: center; }

.msg.decision { border: 1px solid var(--accent); background: rgba(15,191,143,0.06); padding: 13px 12px; margin: 10px 0; }
.msg.decision .name::after { content: "DECISION"; color: var(--bg); background: var(--accent); font-size: 9px; letter-spacing: 1px; padding: 2px 6px; margin-left: 10px; font-weight: 700; vertical-align: 1px; }
.msg.decision .text { color: var(--accent); font-weight: 600; }
.msg.vote .text { color: #7fd8bd; font-style: italic; }
.msg.desk { opacity: 0.6; }
.msg img.draft { display: block; margin-top: 8px; max-width: 320px; border: 1px solid var(--line); }

/* roster */
.roster-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member {
  position: relative; background: var(--panel); border: 2px solid var(--line);
  padding: 20px 16px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.member:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 8px 24px rgba(15,191,143,0.12); }
.member::before { content: ""; position: absolute; top: -2px; left: -2px; width: 12px; height: 12px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.member::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.05; background: repeating-linear-gradient(0deg, var(--accent) 0 1px, transparent 1px 8px); }
.member .m-pill { position: absolute; top: 8px; left: 8px; font-size: 9px; letter-spacing: 1px; color: var(--bg); background: var(--accent); padding: 2px 7px; font-weight: 700; font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.member img, .member .ph { width: 96px; height: 96px; object-fit: cover; border: 2px solid var(--m-accent, var(--accent)); background: var(--line); box-shadow: 0 0 10px color-mix(in srgb, var(--m-accent, var(--accent)) 35%, transparent); }
.member .m-name { font-weight: 700; font-size: 15px; letter-spacing: 1px; margin-top: 6px; font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.member .m-role { color: var(--gray); font-size: 11px; letter-spacing: 1px; text-transform: lowercase; }
.member .m-badge { font-size: 9px; letter-spacing: 1px; color: var(--accent); border: 1px solid var(--accent); padding: 2px 8px; margin-top: 6px; }

/* decision log */
.decision-log { list-style: none; counter-reset: dl; border: 1px solid var(--line); background: var(--panel); }
.dl-item { counter-increment: dl; display: flex; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.dl-item:last-child { border-bottom: none; }
.dl-item::before { content: counter(dl, decimal-leading-zero); color: var(--accent); font-weight: 700; font-family: ui-monospace, Menlo, monospace; font-size: 13px; flex-shrink: 0; }
.dl-main { min-width: 0; flex: 1; }
.dl-topic { color: var(--gray); font-size: 13px; }
.dl-outcome { color: var(--fg); font-weight: 700; font-size: 15px; }
.dl-outcome .dl-votes { color: var(--accent); font-weight: 400; font-size: 12px; }
.dl-when { color: var(--dim); font-size: 11px; flex-shrink: 0; }

/* about */
.about-body { max-width: 680px; color: var(--gray); display: flex; flex-direction: column; gap: 14px; }
.about-links { display: flex; gap: 24px; letter-spacing: 2px; font-size: 12px; font-weight: 600; }

/* footer */
footer {
  border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 24px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--gray); letter-spacing: 3px; font-size: 12px; font-weight: 700;
}
footer .mark { width: 20px; height: 20px; }

/* archive page (uses generic header/main) */
header:not(#site-header) {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 24px; border-bottom: 1px solid var(--line);
  max-width: 1080px; margin: 0 auto;
}
header:not(#site-header) h1 { font-size: 18px; letter-spacing: 4px; white-space: normal; }
.arch-decisions { padding: 16px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.arch-decisions h2 { font-size: 13px; letter-spacing: 3px; color: var(--gray); margin-bottom: 10px; }
.arch-decision { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.arch-decision .num { color: var(--accent); font-weight: 700; min-width: 20px; font-family: ui-monospace, Menlo, monospace; }
.arch-decision .topic { color: var(--gray); font-size: 12px; }
.arch-decision .outcome { color: var(--fg); font-weight: 700; }
.arch-decision .votes { color: var(--accent); font-weight: 400; font-size: 12px; }
.arch-decision .when { color: var(--dim); font-size: 11px; }
.arch-session { border: 1px solid var(--line); margin: 10px 0; overflow: hidden; background: var(--panel); }
.arch-session.has-decision { border-color: rgba(15,191,143,0.5); }
.arch-head { display: flex; gap: 12px; align-items: baseline; padding: 12px 14px; cursor: pointer; }
.arch-head:hover { background: var(--line); }
.arch-head .sid { font-weight: 700; color: var(--fg); }
.arch-head .meta { color: var(--dim); font-size: 12px; }
.arch-head .badge { margin-left: auto; color: var(--bg); background: var(--accent); font-size: 10px; padding: 2px 7px; letter-spacing: 1px; font-weight: 700; }
.arch-outcome { padding: 0 14px 12px; color: var(--accent); font-weight: 700; font-size: 13px; }
.arch-body { padding: 0 14px 8px; border-top: 1px solid var(--line); }

/* responsive */
@media (max-width: 900px) {
  .roster-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 48px; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; }
  .sub { display: none; }
  #hero { padding: 48px 0 36px; }
  .hero-title { font-size: 36px; letter-spacing: 1px; }
  .ticker-badge { font-size: 22px; }
  .yield-cards { flex-direction: column; align-items: center; }
  .ycard { width: 100%; max-width: 340px; padding: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .viewers { display: none; }
}
@media (max-width: 420px) {
  .wrap, main, .header-inner { padding-left: 14px; padding-right: 14px; }
  .roster-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 26px; }
  h1 { font-size: 11px; letter-spacing: 2px; }
  #feed { padding: 4px 10px; }
  .msg { gap: 8px; }
  .avatar { width: 28px; height: 28px; }
  .dl-item { flex-wrap: wrap; padding: 12px; gap: 10px; }
  .dl-when { width: 100%; padding-left: 26px; }
  .panel-label { font-size: 12px; letter-spacing: 3px; }
}

/* org chart */
.org-chart { display: flex; flex-direction: column; gap: 20px; }
.org-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.org-row-label { font-size: 10px; letter-spacing: 2px; color: var(--gray); text-align: center; font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.org-branch { display: flex; flex-direction: column; align-items: center; }
.org-reports { display: flex; gap: 12px; margin-top: 18px; position: relative; padding-top: 14px; }
.org-reports::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 14px; background: var(--accent); opacity: 0.6; }
.org-node { position: relative; background: var(--panel); border: 1px solid var(--line); padding: 12px 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 110px; }
.org-node::before { content: ""; position: absolute; top: -1px; left: -1px; width: 8px; height: 8px; border-top: 2px solid var(--m-accent, var(--accent)); border-left: 2px solid var(--m-accent, var(--accent)); }
.org-node img, .org-node .ph { width: 56px; height: 56px; object-fit: cover; border: 2px solid var(--m-accent, var(--accent)); background: var(--line); box-shadow: 0 0 8px color-mix(in srgb, var(--m-accent, var(--accent)) 30%, transparent); }
.org-node.founder img { width: 72px; height: 72px; }
.org-node .o-name { font-weight: 700; font-size: 12px; letter-spacing: 1px; font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; margin-top: 4px; }
.org-node .o-role { color: var(--gray); font-size: 10px; letter-spacing: 0.5px; text-transform: lowercase; }
.org-node .o-tag { font-size: 8px; letter-spacing: 1px; color: var(--accent); border: 1px solid var(--accent); padding: 1px 6px; margin-top: 3px; }
.org-node .o-tag.o-founder { color: var(--bg); background: var(--accent); border-color: var(--accent); }
@media (max-width: 640px) { .org-row { gap: 12px; } .org-reports { flex-wrap: wrap; justify-content: center; } }

/* ============ dashboard shell (body.dash) ============ */
body.dash { background: #03070d; font-family: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dash-wrap { max-width: 1240px; margin: 0 auto; padding: 10px 14px 24px; display: flex; flex-direction: column; gap: 10px; }
body.dash .panel { margin-top: 26px; }

/* nav */
#dash-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; height: 46px; padding: 0 18px; background: rgba(3,7,13,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid #263341; }
#dash-nav .brand { display: flex; align-items: center; gap: 10px; color: #f2f5f7; }
#dash-nav .mark { width: 22px; height: 22px; }
#dash-nav h1 { font-size: 14px; letter-spacing: 3px; font-weight: 700; white-space: nowrap; }
.nav-items { display: flex; gap: 34px; margin: 0 auto; }
.nav-items a { color: #b2b9c0; font-size: 11px; letter-spacing: 2px; padding: 14px 0 12px; border-bottom: 2px solid transparent; }
.nav-items a.active, .nav-items a:hover { color: #39ff14; }
.nav-items a.active { border-bottom-color: #39ff14; }
.onair { display: flex; align-items: center; gap: 8px; color: #ff3b45; font-size: 11px; letter-spacing: 2px; white-space: nowrap; }
.onair .dot { width: 8px; height: 8px; border-radius: 50%; background: #4a5568; }
.onair .dot.live { background: #ff1e2d; box-shadow: 0 0 8px rgba(255,30,45,0.6); animation: pulse 1.6s infinite; }

/* hero frame */
.hero-frame { position: relative; border: 1px solid #263341; border-radius: 3px; background: #02060a; overflow: hidden; }
.hero-frame #office { border: none; }
.hud { position: absolute; top: 12px; z-index: 5; padding: 7px 12px; font-size: 12px; letter-spacing: 2px; border-radius: 3px; font-weight: 700; }
.hud-live { left: 12px; color: #ff3b45; border: 1px solid #a91624; background: rgba(60,0,8,0.5); box-shadow: 0 0 12px rgba(255,40,55,0.25); display: flex; align-items: center; gap: 7px; }
.hud-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff1e2d; animation: pulse 1.6s infinite; }
.hud-session { right: 12px; color: #24f0a0; border: 1px solid #39ff14; background: rgba(0,28,20,0.5); box-shadow: 0 0 12px rgba(24,217,139,0.18); }

/* decisions ticker */
.ticker-bar { display: flex; align-items: stretch; border-top: 1px solid #263341; background: #061019; height: 30px; }
.ticker-label { display: flex; align-items: center; padding: 0 16px; color: #39ff14; font-size: 10px; letter-spacing: 2px; border-right: 1px solid #263341; background: #07131c; white-space: nowrap; }
.ticker-track { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker-inner { display: inline-flex; align-items: center; white-space: nowrap; padding-left: 100%; animation: tickerScroll 45s linear infinite; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.tk-item { color: #d8dee5; font-size: 11px; }
.tk-time { color: #39ff14; }
.tk-ok { color: #18d98b; }
.tk-no { color: #ff3b45; }
.tk-sep { color: #7d8790; margin: 0 14px; }

/* split band */
.split-band { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.term-panel, .agenda-panel { border: 1px solid #263341; border-radius: 3px; background: #050b12; overflow: hidden; }
.mini-head { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 12px; border-bottom: 1px solid #1b2733; }
.mh-dot { width: 7px; height: 7px; border-radius: 50%; background: #39ff14; box-shadow: 0 0 6px rgba(24,217,139,0.5); }
.mh-title { color: #d6dee6; font-size: 11px; letter-spacing: 2px; font-weight: 700; }
.mh-right { margin-left: auto; color: #9aa7b3; font-size: 10px; letter-spacing: 1px; }
body.dash #feed { border: none; background: transparent; max-height: 300px; padding: 6px 13px; font-size: 12px; }
body.dash .msg { padding: 8px 0; border-bottom: none; gap: 9px; }
body.dash .avatar { width: 22px; height: 22px; }
body.dash .msg .name { font-size: 12px; color: #39ff14; }
body.dash .msg .text { font-size: 12px; color: #e7edf3; line-height: 1.6; }
body.dash .msg .time { font-size: 10px; }
body.dash .msg.desk { opacity: 0.55; }

/* agenda card */
.agenda-body { padding: 14px 16px; }
.agenda-title { color: #f2f5f7; font-size: 19px; line-height: 1.35; }
.agenda-sub { color: #c3ccd4; font-size: 11px; margin-top: 6px; }
.agenda-divider { border-top: 1px solid #1a2632; margin: 12px 0 10px; }
.vote-row { display: flex; justify-content: space-between; color: #aeb8c2; font-size: 10px; letter-spacing: 2px; margin-bottom: 8px; }
.vote-bar { height: 13px; border-radius: 7px; border: 1px solid #34414d; background: repeating-linear-gradient(135deg, #4b5560 0 2px, #111820 2px 5px); overflow: hidden; }
.vote-fill { height: 100%; width: 0%; background: #18d98b; border-radius: 7px 0 0 7px; transition: width 600ms ease; }
.vote-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: 12px; }
.vc { text-align: center; border-right: 1px solid #1a2632; padding: 4px 0; }
.vc:last-child { border-right: none; }
.vc-num { font-size: 17px; font-weight: 700; color: #bfc6ce; letter-spacing: 1px; }
.vc-num.yes { color: #18d98b; }
.vc-num.no { color: #ff3b45; }
.vc-sub { color: #9aa7b3; font-size: 9px; letter-spacing: 2px; margin-top: 2px; }

/* timeline */
.timeline-panel { border: 1px solid #263341; border-radius: 3px; background: #050b12; overflow: hidden; }
.timeline { display: flex; align-items: flex-start; padding: 18px 16px 16px; overflow-x: auto; scrollbar-width: thin; }
.tl-node { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 110px; text-align: center; flex-shrink: 0; }
.tl-date { color: #39ff14; font-size: 10px; letter-spacing: 1px; font-weight: 700; }
.tl-future .tl-date { color: #65727f; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #18d98b; background: #18d98b; }
.tl-current .tl-dot { background: #03070d; box-shadow: 0 0 8px rgba(24,217,139,0.6); }
.tl-future .tl-dot { border-color: #4a5568; background: #03070d; }
.tl-label { color: #9aa7b3; font-size: 10px; line-height: 1.4; max-width: 130px; }
.tl-current .tl-label { color: #e6edf3; }
.tl-line { flex: 1; height: 2px; background: #18d98b; margin-top: 22px; min-width: 24px; opacity: 0.65; }
.tl-line.tl-dash { background: repeating-linear-gradient(90deg, #4a5568 0 5px, transparent 5px 10px); }

/* agents table */
.agents-panel { border: 1px solid #263341; border-radius: 3px; background: #050b12; overflow: hidden; }
.agent-table-head { display: grid; grid-template-columns: 200px 210px 1fr 140px; padding: 9px 14px; border-bottom: 1px solid #1b2733; color: #65727f; font-size: 9px; letter-spacing: 2px; }
.ath-right { text-align: right; }
.agent-row { display: grid; grid-template-columns: 200px 210px 1fr 140px; align-items: center; padding: 8px 14px; border-bottom: 1px solid #10202b; }
.agent-row:last-child { border-bottom: none; }
.agent-row .ar-av { width: 26px; height: 26px; object-fit: cover; border: 1px solid var(--m-accent, #39ff14); display: inline-block; vertical-align: middle; }
.ar-name { color: var(--m-accent, #39ff14); font-weight: 700; font-size: 12px; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.agent-row { grid-template-areas: none; }
.agent-row > .ar-av { grid-column: 1; }
.agent-row .ar-name { grid-column: 1; margin-left: 38px; margin-top: -26px; height: 26px; }
.ar-role { color: #9aa7b3; font-size: 11px; text-transform: capitalize; }
.ar-quote { color: #d8dee5; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 16px; }
.ar-dim { color: #4a5568; }
.ar-spark { text-align: right; }

/* footer */
.dash-footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-top: 1px solid #263341; margin-top: 26px; color: #65727f; font-size: 10px; letter-spacing: 1px; }
.foot-right { display: flex; gap: 22px; }
.foot-right a { color: #9aa7b3; letter-spacing: 2px; }
.foot-right a:hover { color: #39ff14; }

/* treasury widget */
.treasury-widget { display: flex; align-items: center; gap: 7px; color: #24f0a0; font-size: 11px; letter-spacing: 1px; white-space: nowrap; border: 1px solid #1b2733; border-radius: 3px; padding: 4px 10px; background: rgba(0,28,20,0.35); }
.treasury-widget svg { width: 13px; height: 13px; }
.treasury-widget .tw-key { color: #65727f; letter-spacing: 0; }

/* session countdown */
.agenda-sub.countdown { color: #39ff14; letter-spacing: 1px; font-weight: 700; }
.agenda-sub.countdown.live { color: #ff3b45; }

/* vote ledger */
.vote-ledger { border: 1px solid #263341; border-radius: 3px; background: #050b12; overflow: hidden; }
.vl-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #10202b; }
.vl-row:last-child { border-bottom: none; }
.vl-topic { color: #e7edf3; font-size: 12px; line-height: 1.5; }
.vl-marks { display: flex; gap: 8px; flex-wrap: wrap; }
.vl-mark { font-size: 10px; letter-spacing: 1px; padding: 2px 7px; border: 1px solid #263341; border-radius: 2px; color: #9aa7b3; white-space: nowrap; }
.vl-mark.aye { color: #18d98b; border-color: #14503a; }
.vl-mark.nay { color: #ff3b45; border-color: #5a1a22; }
.vl-outcome { font-size: 10px; font-weight: 700; letter-spacing: 2px; padding: 3px 9px; border-radius: 2px; }
.vl-outcome.passed { color: #03070d; background: #18d98b; }
.vl-outcome.failed { color: #f2f5f7; background: #a91624; }
.vl-when { color: #65727f; font-size: 10px; letter-spacing: 1px; white-space: nowrap; }
.vl-empty { padding: 14px; color: #65727f; font-size: 11px; letter-spacing: 1px; }
@media (max-width: 640px) { .vl-row { grid-template-columns: 1fr; gap: 6px; } }

/* dash responsive */
@media (max-width: 900px) {
  .split-band { grid-template-columns: 1fr; }
  .nav-items { display: none; }
  .agent-table-head { display: none; }
  .agent-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; }
  .agent-row .ar-name { margin-left: 38px; margin-top: -26px; }
  .ar-spark { text-align: left; }
}
@media (max-width: 420px) {
  #dash-nav { padding: 0 10px; gap: 10px; }
  #dash-nav h1 { font-size: 11px; letter-spacing: 2px; }
  .dash-wrap { padding: 8px 8px 20px; }
  .agenda-title { font-size: 16px; }
  .ticker-label { padding: 0 8px; }
}

/* ---- session transcript overlay ---- */
.session-link { color: var(--fg); text-decoration: none; border-bottom: 1px dotted var(--accent); cursor: pointer; }
.session-link:hover { color: var(--accent); }
.dl-view { color: var(--accent); font-size: 11px; letter-spacing: 1px; white-space: nowrap; }
#transcript-overlay { position: fixed; inset: 0; background: rgba(4, 8, 14, 0.82); backdrop-filter: blur(3px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
#transcript-overlay.open { display: flex; }
.transcript-modal { width: min(760px, 100%); max-height: 86vh; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 0 40px rgba(0,0,0,0.6); }
.transcript-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.transcript-title { color: var(--fg); font-weight: 700; font-size: 13px; letter-spacing: 3px; }
.transcript-title::before { content: "\25b8 "; color: var(--accent); }
.transcript-close { background: none; border: 1px solid var(--line); color: var(--gray); font-size: 18px; line-height: 1; width: 30px; height: 30px; cursor: pointer; }
.transcript-close:hover { color: var(--accent); border-color: var(--accent); }
.transcript-body { overflow-y: auto; padding: 6px 16px; flex: 1; }
.transcript-outcome { border-top: 1px solid var(--accent); background: rgba(15,191,143,0.06); padding: 12px 16px; color: var(--fg); font-size: 13px; }
.transcript-outcome-label { color: var(--accent); font-weight: 700; letter-spacing: 2px; font-size: 11px; margin-right: 8px; }
@media (max-width: 640px) { #transcript-overlay { padding: 8px; } .transcript-modal { max-height: 94vh; } }
