/* Mihenk, direction 12: public site screens (Live, Methodology, Traders, Solana, Sign up, Agent API).
   Linked after d12.css. Every selector is scoped under .d12. Day is primary; .d12-night overrides are at the end. */

.d12 {
  --t-flat: #EEF0F6;
  --t-flat-tx: #454B73;
  --t-neg: #FBE1E7;
  --t-neg-tx: #C41E3D;
  --t-neg2: #C41E3D;
  --t-pos: #D3FAF4;
  --t-pos-tx: #0A7A6B;
  --t-pos2: #0A7A6B;
  --code-bg: #07081A;
  --code-tx: #EDEFFC;
  --code-mut: #9AA0C7;
  --mono: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

/* ---------- public sub-navigation under the site header ---------- */
.d12 .subbar { background: var(--bg); border-bottom: 1px solid var(--line-soft); position: relative; z-index: 4; }
.d12 .subbar-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.d12 .subbar-l { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.d12 .subbar-l > span { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--tx2); }
.d12 .subbar .seg a .i { width: 16px; height: 16px; margin-right: 6px; color: var(--tx3); }
.d12 .subbar .seg a[aria-current="page"] .i { color: var(--pri-tx); }
.d12 .subbar-r { font-size: 14px; line-height: 20px; color: var(--tx2); display: inline-flex; align-items: center; gap: 8px; }
.d12 .subbar-r .i { width: 16px; height: 16px; color: var(--pri-tx); }

/* page heads that sit left (data pages) */
.d12 .phero { position: relative; overflow: hidden; padding: 64px 0 48px; }
.d12 .phero .maze { left: auto; right: 0; width: 520px; }
.d12 .phero-g { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.d12 .phero h1 { font-size: 56px; line-height: 64px; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.d12 .phero .lead { margin-top: 20px; max-width: 760px; }
.d12 .phero .note { display: flex; align-items: center; gap: 8px; }
.d12 .phero .note .i { width: 16px; height: 16px; color: var(--tx3); }
.d12 .stamp { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--bg); box-shadow: var(--sh-s); font-size: 14px; line-height: 20px; font-weight: 700; color: var(--tx2); white-space: nowrap; }
.d12 .stamp .i { width: 16px; height: 16px; color: var(--pri-tx); }
.d12 .stamp b { color: var(--tx); font-weight: 700; }

/* jump links inside the hero (Live) */
.d12 .jump { display: flex; justify-content: center; margin-top: 32px; }
.d12 .jump .seg { flex-wrap: wrap; justify-content: center; }

/* section heads that sit left with actions on the right */
.d12 .shd { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 32px; flex-wrap: wrap; }
.d12 .shd h2 { font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.d12 .shd p { margin-top: 12px; max-width: 760px; color: var(--tx2); }
.d12 .shd p b { color: var(--tx); font-weight: 700; }
.d12 .shd-a { display: flex; gap: 12px; flex-wrap: wrap; }
.d12 .sec.tight { padding: 72px 0; }

/* ---------- market cards (Live) ---------- */
.d12 .mkt { margin-top: 56px; position: relative; z-index: 2; text-align: left; }
.d12 .mkt .g4 { row-gap: 24px; }
.d12 .mcard { padding: 24px; min-height: 164px; display: flex; flex-direction: column; }
.d12 .mcard .lbl { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--tx2); }
.d12 .mcard .val { margin-top: 8px; font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.02em; }
.d12 .mcard .sub { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; line-height: 20px; color: var(--tx2); }
.d12 .chg2 { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; }
.d12 .chg2 .i { width: 14px; height: 14px; }
.d12 .chg2 em { color: var(--tx3); font-weight: 600; }
.d12 .chg2.pos { color: var(--pos); }
.d12 .chg2.neg { color: var(--neg); }
.d12 .chg2.flat { color: var(--tx3); }
.d12 .fng { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.d12 .fng svg { width: 112px; height: 60px; flex: none; }
.d12 .fng .arc { fill: none; stroke: var(--track); stroke-width: 8; }
.d12 .fng .arc.on { stroke: #FFB454; stroke-width: 11; }
.d12 .fng .ndl { fill: none; stroke: var(--tx); stroke-width: 3; stroke-linecap: round; }
.d12 .fng .hub { fill: var(--tx); }
.d12 .fng b { display: block; font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.02em; }
.d12 .fng span { display: block; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--warn); }

/* ---------- treemap (Live) ---------- */
.d12 .tmap-w { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.d12 .tmap { position: relative; height: 720px; }
.d12 .tile { position: absolute; padding: 2px; display: block; text-align: left; }
.d12 .tile-in { position: absolute; inset: 2px; border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 2px; overflow: hidden; background: var(--t-flat); color: var(--tx); }
.d12 .tile .tk { font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; white-space: nowrap; }
.d12 .tile .mv { font-weight: 800; }
.d12 .tile small { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--t-flat-tx); white-space: nowrap; }
.d12 .tile .mv.flat, .d12 .tile .mv.none { color: var(--t-flat-tx); }
.d12 .tile.against .tile-in { background: var(--t-neg); }
.d12 .tile.against .mv { color: var(--t-neg-tx); }
.d12 .tile.against small { color: var(--tx2); }
.d12 .tile.against2 .tile-in { background: var(--t-neg2); color: #FFFFFF; }
.d12 .tile.against2 .mv, .d12 .tile.against2 small { color: #FFFFFF; }
.d12 .tile.went .tile-in { background: var(--t-pos); }
.d12 .tile.went .mv { color: var(--t-pos-tx); }
.d12 .tile.went2 .tile-in { background: var(--t-pos2); color: #FFFFFF; }
.d12 .tile.went2 .mv, .d12 .tile.went2 small { color: #FFFFFF; }
.d12 .tile[aria-pressed="true"] .tile-in { box-shadow: inset 0 0 0 3px var(--tx); }
.d12 .tile:focus-visible { outline: none; }
.d12 .tile:focus-visible .tile-in { outline: 2px solid var(--focus); outline-offset: 1px; }
.d12 .tdet { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--panel); }
.d12 .tdet .tk { font-size: 24px; line-height: 32px; font-weight: 800; }
.d12 .tdet p { font-size: 15px; line-height: 22px; color: var(--tx2); }
.d12 .tdet p b { color: var(--tx); font-weight: 700; }
.d12 .tlegend { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.d12 .tlegend .legend i.t-went { background: var(--t-pos2); }
.d12 .tlegend .legend i.t-flat { background: var(--t-flat); box-shadow: inset 0 0 0 1px var(--line-strong); }
.d12 .tlegend .legend i.t-ag { background: var(--t-neg2); }
.d12 .ttab { margin-top: 16px; }
.d12 .ttab summary, .d12 .raw summary { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 8px; background: var(--grey); color: var(--on-grey); font-size: 14px; line-height: 20px; font-weight: 700; cursor: pointer; list-style: none; }
.d12 .ttab summary::-webkit-details-marker, .d12 .raw summary::-webkit-details-marker { display: none; }
.d12 .ttab summary .i, .d12 .raw summary .i { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
.d12 .ttab[open] summary .i, .d12 .raw[open] summary .i { transform: rotate(180deg); }
.d12 .ttab .tw { margin-top: 12px; }

/* ---------- live cards: gems, who, records ---------- */
.d12 .lcards .card { padding: 28px; display: flex; flex-direction: column; }
.d12 .lc-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.d12 .lc-h .fc-s { font-size: 14px; line-height: 20px; color: var(--tx2); font-weight: 600; }
.d12 .lc-tk { margin-top: 18px; font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -0.02em; }
.d12 .lc-kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.d12 .lc-kv span { display: block; font-size: 13px; line-height: 18px; color: var(--tx2); font-weight: 600; }
.d12 .lc-kv b { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 28px; line-height: 36px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.d12 .lc-kv b .i { width: 20px; height: 20px; }
.d12 .lc-kv small { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--tx3); font-weight: 600; }
.d12 .lc-kv .pos { color: var(--pos); }
.d12 .lc-kv .neg { color: var(--neg); }
.d12 .lc-a { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 24px; }
.d12 .lc-a .btn-g .i { width: 16px; height: 16px; }
.d12 .ring2 { position: relative; height: 176px; margin-top: 18px; border-radius: 12px; background: var(--bg); overflow: hidden; }
.d12 .ring2 svg { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; color: var(--line); }
.d12 .ring2 svg circle { fill: none; stroke: currentColor; stroke-width: 1.5; }
.d12 .ring2 svg circle.d { stroke-dasharray: 3 6; }
.d12 .ring2 .ctr { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.d12 .ring2 .ctr b { display: block; font-size: 40px; line-height: 44px; font-weight: 800; letter-spacing: -0.02em; }
.d12 .ring2 .ctr span { display: block; font-size: 13px; line-height: 18px; color: var(--tx2); font-weight: 600; }
.d12 .ring2 .cls2 { position: absolute; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--tx3); }

/* records on the night band */
.d12 .rec2 .card { background: var(--band-panel); box-shadow: inset 0 0 0 1px #262B66; padding: 28px; display: flex; flex-direction: column; }
.d12 .rec2 .jt { color: var(--band-panel); }
.d12 .rec-h { display: flex; align-items: center; gap: 12px; }
.d12 .rec-h .av { width: 48px; height: 48px; box-shadow: 0 0 0 2px #35E8CB; }
.d12 .rec-h .av.mono { background: #141740; color: #EDEFFC; font-size: 18px; }
.d12 .rec-h .who-t b { font-size: 18px; line-height: 26px; max-width: 220px; }
.d12 .rec-h .who-t b a { text-decoration: underline; text-decoration-color: #5B6190; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.d12 .rec-h .who-t span { color: var(--tx2); }
.d12 .rec-big { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; }
.d12 .rec-big b { font-size: 64px; line-height: 68px; font-weight: 700; letter-spacing: -0.04em; color: #35E8CB; }
.d12 .rec-big .tag { background: #132D41; color: #35E8CB; }
.d12 .rec-s { margin-top: 2px; font-size: 15px; line-height: 22px; color: var(--tx2); }
.d12 .rec-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #262B66; }
.d12 .rec-kv span { display: block; font-size: 13px; line-height: 18px; color: var(--tx2); font-weight: 600; }
.d12 .rec-kv b { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 22px; line-height: 30px; font-weight: 800; }
.d12 .rec-kv b .i { width: 16px; height: 16px; }
.d12 .rec-kv .pos { color: #35E8CB; }
.d12 .rec-kv .neg { color: #FF5C7A; }
.d12 .rec-co { margin-top: 16px; }
.d12 .rec-co > span { font-size: 13px; line-height: 18px; color: var(--tx2); font-weight: 600; }
.d12 .rec-co ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.d12 .rec-co li { height: 26px; padding: 0 8px; border-radius: 6px; background: #141740; color: #EDEFFC; font-size: 13px; line-height: 26px; font-weight: 700; }
.d12 .rec2 .lc-a .btn-g { background: #141740; color: #EDEFFC; box-shadow: inset 0 0 0 1px #262B66; }
.d12 .rec2 .lc-a .btn-g.w { background: #FFFFFF; color: #07081A; box-shadow: none; }

/* empty state (sector boards) */
.d12 .empty { display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; align-items: center; padding: 32px; }
.d12 .empty-ic { width: 64px; height: 64px; border-radius: 16px; background: var(--bg); display: grid; place-items: center; color: var(--tx2); box-shadow: var(--sh-s); }
.d12 .empty-ic .i { width: 28px; height: 28px; }
.d12 .empty h3 { font-size: 22px; line-height: 30px; font-weight: 700; }
.d12 .empty p { margin-top: 6px; color: var(--tx2); max-width: 720px; }

/* embed */
.d12 .emb { display: grid; grid-template-columns: minmax(0, 1fr) 452px; gap: 32px; align-items: start; padding: 32px; }
.d12 .code { position: relative; border-radius: 12px; background: var(--code-bg); color: var(--code-tx); padding: 20px 20px 20px; font-family: var(--mono); font-size: 14px; line-height: 22px; font-weight: 500; white-space: pre-wrap; word-break: break-all; }
.d12 textarea.code { display: block; width: 100%; border: 0; resize: none; outline: 0; }
.d12 textarea.code:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.d12 .code-l { display: block; font-size: 14px; line-height: 20px; font-weight: 700; margin-bottom: 8px; }
.d12 .emb-a { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.d12 .emb-a p { font-size: 14px; line-height: 20px; color: var(--tx2); }
.d12 .emb-a code { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--tx); background: var(--bg); border-radius: 6px; padding: 2px 6px; }
.d12 .prev-l { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--tx2); margin-bottom: 8px; }
.d12 .prev { width: 420px; height: 260px; border-radius: 14px; background: #07081A; color: #EDEFFC; padding: 20px; position: relative; overflow: hidden; box-shadow: var(--sh); }
.d12 .prev img { height: 20px; width: auto; }
.d12 .prev h3 { margin-top: 18px; font-size: 22px; line-height: 28px; font-weight: 700; }
.d12 .prev h3 em { color: #35E8CB; font-style: normal; }
.d12 .prev p { margin-top: 4px; font-size: 13px; line-height: 18px; color: #9AA0C7; }
.d12 .prev .pv-b { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; justify-content: space-between; align-items: flex-end; }
.d12 .prev .pv-b b { font-size: 48px; line-height: 52px; font-weight: 800; letter-spacing: -0.03em; }
.d12 .prev .pv-b span { font-size: 12px; line-height: 16px; color: #9AA0C7; font-weight: 600; }
.d12 .prev .pv-m { position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; color: #0D0F2B; }
.d12 .prev .pv-m path { fill: currentColor; }

/* data sources line */
.d12 .srcl { display: flex; align-items: center; justify-content: center; gap: 10px 24px; flex-wrap: wrap; padding: 24px 0 0; font-size: 14px; line-height: 20px; color: var(--tx2); }
.d12 .srcl span { display: inline-flex; align-items: center; gap: 8px; }
.d12 .srcl .i { width: 16px; height: 16px; color: var(--tx3); }
.d12 .srcl b { color: var(--tx); font-weight: 700; }

/* ---------- tables on public data pages ---------- */
.d12 .t.pt td { padding: 9px 14px; }
.d12 .t.pt .who .av { width: 32px; height: 32px; }
.d12 .t.pt .who .av.mono { font-size: 13px; }
.d12 .t.pt .who-t b { font-size: 14px; }
.d12 .t.pt .who-t b a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.d12 .wr2 { display: grid; grid-template-columns: 44px 72px; column-gap: 10px; align-items: center; justify-content: end; white-space: nowrap; }
.d12 .wr2 b { font-weight: 800; text-align: right; }
.d12 .wr2 .trk { height: 6px; }
.d12 .wr2 span { grid-column: 1 / -1; text-align: right; font-size: 12px; line-height: 16px; color: var(--tx3); font-weight: 600; }
.d12 .wr2.ne { display: block; text-align: right; }
.d12 .wr2.ne b { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--tx2); }
.d12 .wr2.ne span { display: block; }
.d12 .ls2 { display: grid; grid-template-columns: 1fr; gap: 4px; justify-items: end; white-space: nowrap; }
.d12 .ls2 .stack { min-width: 96px; width: 96px; height: 8px; }
.d12 .ls2 .stack .s-l { background: var(--pos); }
.d12 .ls2 .stack .s-s { background: var(--warn); }
.d12 .ls2 span { font-size: 13px; line-height: 18px; font-weight: 700; }
.d12 .ls2 span em { color: var(--tx3); font-weight: 600; }
.d12 .tkc { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.d12 .tkc b { font-size: 15px; font-weight: 800; }
.d12 .tkc b a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.d12 .trade { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--tag-t); color: var(--tag-t-tx); font-size: 13px; line-height: 16px; font-weight: 700; }
.d12 .trade .i { width: 14px; height: 14px; }
.d12 .fcall { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.d12 .fcall .av { width: 28px; height: 28px; }
.d12 .fcall .av.mono { font-size: 12px; }
.d12 .fcall b { font-weight: 700; }
.d12 .fcall b a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.d12 .fcall .tg { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--raised); color: var(--tx2); }
.d12 .fcall .tg .i { width: 14px; height: 14px; }
.d12 .fcall .fc-t { display: grid; }
.d12 .fcall time { display: block; font-size: 12px; line-height: 16px; color: var(--tx3); font-weight: 600; }
.d12 .t .mv .i, .d12 .mvx .i { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
.d12 .pcta { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; margin-top: 32px; padding: 32px; }
.d12 .pcta h3 { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.01em; }
.d12 .pcta p { margin-top: 6px; color: var(--tx2); max-width: 760px; }
.d12 .disc { display: flex; align-items: center; justify-content: center; gap: 8px 16px; flex-wrap: wrap; margin-top: 32px; font-size: 14px; line-height: 20px; color: var(--tx2); text-align: center; }
.d12 .kpi .stat b { font-size: 44px; line-height: 52px; }
.d12 .kpi .trk { margin-top: 14px; }
.d12 .side2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--gap); align-items: start; }
.d12 .side2 .card { padding: 32px; }
.d12 .side2 .card h3 { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.01em; }
.d12 .side2 .card p { margin-top: 10px; color: var(--tx2); }
.d12 .side2 .card .acts { flex-direction: column; align-items: stretch; gap: 12px; }

/* ---------- methodology ---------- */
.d12 .back { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px 0 6px; border-radius: 8px; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--tx2); }
.d12 .back .i { width: 18px; height: 18px; }
.d12 .mhero { position: relative; overflow: hidden; padding: 24px 0 80px; text-align: center; }
.d12 .mhero .hero-c { position: relative; z-index: 1; }
.d12 .mhero .back-r { text-align: left; }
.d12 .mhero h1 { margin-top: 40px; }
.d12 .mhero .lead { max-width: 640px; margin: 20px auto 0; }
.d12 .mhero .stamp { margin-top: 24px; }
.d12 .short { padding: 80px 0; position: relative; overflow: hidden; }
.d12 .short-g { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; position: relative; z-index: 1; }
.d12 .short h2 { font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.d12 .short-g > div > p { margin-top: 16px; color: var(--tx2); }
.d12 .short ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.d12 .short li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid #262B66; font-size: 16px; line-height: 24px; color: var(--tx2); }
.d12 .short li .i { color: #35E8CB; margin-top: 2px; }
.d12 .short li b { color: var(--tx); font-weight: 700; }
.d12 .doc { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 48px; align-items: start; }
.d12 .toc { position: sticky; top: 24px; }
.d12 .toc h2 { font-size: 15px; line-height: 20px; font-weight: 700; color: var(--tx2); }
.d12 .toc ol { margin-top: 8px; border-top: 1px solid var(--line); }
.d12 .toc li { border-bottom: 1px solid var(--line); }
.d12 .toc a { display: grid; grid-template-columns: 28px 1fr; align-items: center; min-height: 44px; padding: 8px 0; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--tx3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.d12 .toc a span { font-size: 13px; color: var(--tx3); font-weight: 700; }
.d12 .toc a[aria-current="true"] { color: var(--tx); border-bottom-color: var(--pri-tx); }
.d12 .toc .sb { margin-top: 24px; }
.d12 .toc .xs { margin-top: 10px; color: var(--tx2); font-size: 13px; line-height: 18px; }
.d12 .msec { display: grid; gap: var(--gap); }
.d12 .msec .card { padding: 40px 44px; scroll-margin-top: 24px; }
.d12 .msec h2 { font-size: 30px; line-height: 38px; font-weight: 600; letter-spacing: -0.02em; display: flex; gap: 12px; align-items: baseline; }
.d12 .msec h2 .sn { color: var(--tx3); font-weight: 600; font-size: 22px; min-width: 32px; }
.d12 .mbody { margin-top: 20px; max-width: 760px; display: grid; gap: 16px; }
.d12 .mbody p { font-size: 16px; line-height: 27px; color: var(--tx); }
.d12 .mbody p b, .d12 .mbody li b { font-weight: 800; }
.d12 .mbody em { font-weight: 600; color: var(--tx); }
.d12 .mbody ul { display: grid; gap: 12px; }
.d12 .mbody li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 16px; line-height: 27px; color: var(--tx); }
.d12 .mbody li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--pri-tx); margin: 10px 0 0 4px; }
.d12 .mbody li .ld { font-weight: 800; color: var(--tx); }
.d12 .mbody .chips { margin-top: 0; }
.d12 .mbody .tag .i { width: 14px; height: 14px; }
.d12 .mnote { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--tag-a); color: var(--tx); font-size: 16px; line-height: 24px; font-weight: 600; }
.d12 .mnote .i { color: var(--tag-a-tx); }
.d12 .mbody a, .d12 .faq2 a { color: var(--pri-tx); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.d12 .faq2 { margin-top: 12px; }
.d12 .faq2 details { border-bottom: 1px solid var(--line); }
.d12 .faq2 summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; font-size: 18px; line-height: 26px; font-weight: 700; cursor: pointer; }
.d12 .faq2 summary::-webkit-details-marker { display: none; }
.d12 .faq2 summary .i { color: var(--tx2); transition: transform 200ms var(--ease); }
.d12 .faq2 details[open] summary .i { transform: rotate(45deg); }
.d12 .faq2 details p { padding: 0 48px 20px 0; font-size: 16px; line-height: 27px; color: var(--tx2); max-width: 760px; }
.d12 .mend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- sign up ---------- */
.d12 .su { position: relative; overflow: hidden; min-height: 823px; }
.d12 .su-g { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 64px; align-items: start; padding-top: 64px; padding-bottom: 64px; }
.d12 .su h1 { font-size: 64px; line-height: 72px; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.d12 .su .lead { margin-top: 24px; max-width: 600px; }
.d12 .su-after { margin-top: 16px; font-size: 18px; line-height: 28px; font-weight: 700; }
.d12 .su-inc { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; max-width: 600px; }
.d12 .su-inc li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; line-height: 22px; }
.d12 .su-inc .i { color: var(--pri-tx); margin-top: 1px; }
.d12 .su .card { padding: 40px; background: var(--panel); }
.d12 .su .card h2 { font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; }
.d12 .su .card form { margin-top: 24px; }
.d12 .hint { font-size: 13px; line-height: 18px; color: var(--tx2); }
.d12 .ts { display: flex; align-items: center; gap: 12px; height: 64px; margin-top: 20px; padding: 0 16px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line-strong); }
.d12 .ts .i { color: var(--pri-tx); }
.d12 .ts b { display: block; font-size: 15px; line-height: 20px; font-weight: 700; }
.d12 .ts span { display: block; font-size: 13px; line-height: 18px; color: var(--tx2); }
.d12 .ts small { margin-left: auto; font-size: 12px; line-height: 16px; color: var(--tx3); font-weight: 600; text-align: right; }
.d12 .su .card .sb { margin-top: 20px; }
.d12 .su-li { margin-top: 18px; font-size: 15px; line-height: 22px; color: var(--tx2); }
.d12 .su-back { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--grey); color: var(--on-grey); font-size: 14px; line-height: 20px; font-weight: 700; }
.d12 .su-back .i { width: 16px; height: 16px; }
.d12 .slim { border-top: 1px solid var(--line-soft); background: var(--bg); position: relative; z-index: 1; }
.d12 .slim-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; font-size: 14px; line-height: 20px; color: var(--tx2); }
.d12 .slim-in > div { display: flex; gap: 6px 20px; flex-wrap: wrap; align-items: center; }
.d12 .slim-in a { font-weight: 700; color: var(--tx2); min-height: 24px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--line-strong); }

/* ---------- agent API ---------- */
.d12 .facts { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.d12 .facts .fchip { box-shadow: var(--sh-s); }
.d12 .facts .fchip .i { color: var(--pri-tx); }
.d12 .ep { padding: 32px; }
.d12 .ep-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.d12 .mth { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 6px; background: var(--dark); color: var(--on-dark); font-family: var(--mono); font-size: 13px; line-height: 16px; font-weight: 700; }
.d12 .path { font-family: var(--mono); font-size: 20px; line-height: 28px; font-weight: 600; color: var(--tx); word-break: break-all; }
.d12 .path em { color: var(--pri-tx); font-style: normal; }
.d12 .ep-h .tag { margin-left: auto; }
.d12 .ep p.ret { margin-top: 14px; color: var(--tx2); max-width: 820px; }
.d12 .ep .code { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; white-space: nowrap; overflow-x: auto; }
.d12 .ep .code .ib { background: #141740; color: #EDEFFC; flex: none; }
.d12 .ptab { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; line-height: 20px; }
.d12 .ptab th { text-align: left; font-size: 13px; line-height: 16px; font-weight: 700; color: var(--tx2); padding: 0 12px 8px 0; border-bottom: 1px solid var(--line); }
.d12 .ptab td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.d12 .ptab code, .d12 .kvl code, .d12 .mbody code, .d12 .free2 code, .d12 .steps code { font-family: var(--mono); font-size: 14px; font-weight: 600; background: var(--bg); border-radius: 6px; padding: 2px 6px; }
.d12 .free2 { display: grid; gap: 0; margin-top: 8px; }
.d12 .free2 li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.d12 .free2 li span { color: var(--tx2); font-size: 15px; line-height: 22px; }
.d12 .steps { display: grid; gap: 0; counter-reset: st; }
.d12 .steps li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid #262B66; }
.d12 .steps li > b { width: 40px; height: 40px; border-radius: 12px; background: #35E8CB; color: #07081A; display: grid; place-items: center; font-size: 16px; font-weight: 800; }
.d12 .steps h3 { font-size: 20px; line-height: 28px; font-weight: 700; }
.d12 .steps p { margin-top: 4px; color: var(--tx2); }
.d12 .steps code { background: #141740; color: #EDEFFC; }
.d12 .kvl { display: grid; gap: 0; }
.d12 .kvl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid #262B66; font-size: 15px; line-height: 22px; }
.d12 .kvl dt { color: var(--tx2); font-weight: 700; }
.d12 .kvl dd { color: var(--tx); word-break: break-all; }
.d12 .kvl dd ul { display: grid; gap: 6px; }
.d12 .kvl dd li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.d12 .kvl dd li span { color: var(--tx2); }
.d12 .band .kvl code { background: #141740; color: #EDEFFC; }
.d12 .pay2 { padding: 96px 0; position: relative; overflow: hidden; }
.d12 .pay2-g { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 64px; align-items: start; position: relative; z-index: 1; }
.d12 .pay2 h2 { font-size: 44px; line-height: 52px; font-weight: 600; letter-spacing: -0.02em; }
.d12 .pay2 .lead { margin-top: 16px; margin-bottom: 24px; }
.d12 .pay2 .scr h3 { font-size: 18px; line-height: 26px; font-weight: 700; margin-bottom: 4px; }
.d12 .vcard p { margin-top: 12px; color: var(--tx2); }
.d12 .vcard .code { margin-top: 16px; }
.d12 .vcard .h4 { margin-top: 18px; }
.d12 .vcard .acts { margin-top: 20px; }
.d12 .raw { margin-top: 32px; }
.d12 .raw pre { margin: 12px 0 0; max-height: 520px; overflow: auto; }

/* ---------- night overrides for the new pieces ---------- */
.d12.d12-night {
  --t-flat: #141740;
  --t-flat-tx: #9AA0C7;
  --t-neg: #3A1F3A;
  --t-neg-tx: #FF5C7A;
  --t-neg2: #8C2240;
  --t-pos: #132D41;
  --t-pos-tx: #35E8CB;
  --t-pos2: #0E5D57;
  --code-bg: #0D0F2B;
}
.d12.d12-night .code { box-shadow: inset 0 0 0 1px #262B66; }

@media (max-width: 1100px) {
  .d12 .doc, .d12 .short-g, .d12 .side2, .d12 .emb, .d12 .pay2-g, .d12 .su-g, .d12 .phero-g { grid-template-columns: 1fr; }
  .d12 .toc { position: static; }
  .d12 .short ul { grid-template-columns: 1fr; }
}

/* ---------- sector boards (Live) ---------- */
.d12 .sboards .card { padding: 28px; display: flex; flex-direction: column; }
.d12 .sboards h3 { font-size: inherit; line-height: inherit; }
.d12 .sb-btc { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; font-size: 14px; line-height: 20px; color: var(--tx2); }
.d12 .sb-btc b { color: var(--tx); font-weight: 800; }
.d12 .sb-btc .mv .i, .d12 .sbt .mv .i { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
.d12 .sbt { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 16px; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums lining-nums; }
.d12 .sbt th { text-align: left; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--tx2); padding: 0 0 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.d12 .sbt th.w30 { width: 84px; }
.d12 .sbt th.w7 { width: 66px; }
.d12 .sbt th.wk { width: 52px; }
.d12 .sbt td { padding: 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.d12 .sbt tbody tr:last-child td { border-bottom: 0; }
.d12 .sbt .r { text-align: right; }
.d12 .sbt td.r { font-weight: 700; }
.d12 .sbt td.k0 { color: var(--tx3); font-weight: 600; }
.d12 .sbt .mv.flat { color: var(--tx3); }
.d12 .sbn { display: flex; align-items: baseline; gap: 6px; min-width: 0; padding-right: 8px; }
.d12 .sbn b { font-weight: 800; flex: none; }
.d12 .sbn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 18px; color: var(--tx3); font-weight: 600; }
.d12 .sboards .lc-a { padding-top: 20px; }
/* 17 Nov: split button inside the contents list */
.d12 .toc a.sb{display:inline-flex;grid-template-columns:none;align-items:stretch;min-height:0;height:40px;padding:0;margin:24px 0 0;border-bottom:0;font-size:15px;line-height:24px;color:inherit}
.d12 .toc a.sb > span{display:flex;align-items:center;font-size:15px;line-height:24px;font-weight:700;color:var(--on-pri)}
.d12 .toc a.sb .sb-l{padding:0 16px}
.d12 .toc a.sb .sb-i{width:40px;justify-content:center}

/* 27 Nov: hero CTA wraps on phones */
@media (max-width: 480px) { .d12 .cta .sb { max-width: 100%; height: auto; min-height: 48px; white-space: normal; } .d12 .cta .sb .sb-l { padding: 10px 16px; } }

/* 27 Nov: closing-block CTA wraps on phones */
@media (max-width: 480px) { .d12 .fb .acts .sb { max-width: 100%; height: auto; min-height: 48px; white-space: normal; } .d12 .fb .acts .sb .sb-l { padding: 10px 16px; } }
