/* Draft C: Always one line away. Navy-led black, Elysium teal. */
:root {
  --bg: #060d16; --s1: #0b1a2b; --s2: #0f2236; --s3: #14293f; --line: #18304a; --line2: #22405e;
  --teal: oklch(73% .121 222); --teal-d: oklch(52% .076 221); --teal-t: oklch(73% .121 222 / .14);
  --up: oklch(74% .15 155); --down: oklch(68% .14 20);
  --warn: oklch(80% .13 75);
  --up-t: oklch(74% .15 155 / .14); --down-t: oklch(68% .14 20 / .14);
  --tx: #e8eef2; --tx2: #8b9aa6; --tx3: #61758a;
  --ui: 'Schibsted Grotesk', system-ui, sans-serif; --mono: 'Geist Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--tx); font: 14px/1.4 var(--ui); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; padding-bottom: 104px; overflow-x: hidden; } /* dock 64 + offset 16 + 24 */
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img { display: block; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.mono-t, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.u { font: 500 12px var(--mono); color: var(--tx2); margin-left: 4px; letter-spacing: 0; }
.quiet { color: var(--tx2); font-size: 12px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px;
  border-radius: 9px; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn.white { background: var(--tx); color: #061019; }
.btn.white:hover { background: #fff; }
.btn.ghost { border: 1px solid var(--line2); background: rgb(11 26 43 / .7); }
.btn.ghost:hover { background: var(--s2); border-color: var(--tx3); }
.btn.wide { width: 100%; height: 42px; }
.ib { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--tx2);
  transition: background .15s, color .15s, border-color .15s; flex: none; }
.ib:hover:not(:disabled) { background: var(--s2); color: var(--tx); border-color: var(--line2); }
.ib:disabled { opacity: .35; cursor: default; }
.ib svg { width: 16px; height: 16px; }
.link { color: var(--teal); font-size: 12px; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* top bar */
.top { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { height: 52px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand svg { width: 22px; height: 22px; }
.wn { font-size: 12px; color: var(--tx2); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; margin-left: -8px; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a, .nav button { height: 32px; padding: 0 10px; border-radius: 8px; color: var(--tx2); font-weight: 600; font-size: 14px; display: flex; align-items: center; transition: color .15s, background .15s; white-space: nowrap; }
.nav a:hover, .nav button:hover { color: var(--tx); background: var(--s1); }
.nav .on { color: var(--tx); background: var(--s1); }
.search { position: relative; margin-left: auto; width: 380px; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 11px;
  background: var(--s1); border: 1px solid var(--line); border-radius: 9px; transition: border-color .15s; }
.search:focus-within { border-color: var(--teal-d); }
.search svg { width: 15px; height: 15px; color: var(--tx2); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 14px; }
.search input::placeholder { color: var(--tx2); }
kbd { font: 500 12px var(--mono); color: var(--tx2); border: 1px solid var(--line2); border-radius: 5px; padding: 0 6px; line-height: 18px; }
.sres { position: absolute; top: 40px; left: 0; right: 0; background: var(--s1); border: 1px solid var(--line2); border-radius: 12px; padding: 6px;
  display: none; box-shadow: 0 16px 40px rgb(0 0 0 / .5); z-index: 5; }
.search.show .sres { display: block; }
.sres .sh { font-size: 12px; color: var(--tx2); padding: 4px 8px 6px; }
.srow { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px; border-radius: 8px; }
.srow:hover, .srow.act { background: var(--s2); }
.srow .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.srow .nm b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .nm span { font: 12px var(--mono); color: var(--tx2); }
.srow .mc { font: 700 13px var(--mono); text-align: right; }
.sempty { padding: 12px 8px; color: var(--tx2); font-size: 13px; }
.msearch { display: none; }
.connect { height: 34px; }

/* pictures */
.pf { position: relative; width: var(--s); height: var(--s); flex: none; border-radius: 6px; overflow: hidden; background: var(--s2); display: block; }
.pf > img { width: 100%; height: 100%; object-fit: cover; }
.mono { position: absolute; inset: 0; display: grid; place-items: center; font: 800 calc(var(--s) * .36) / 1 var(--ui);
  background: oklch(30% .05 var(--h)); color: oklch(86% .08 var(--h)); letter-spacing: -.02em; }
.badge { position: absolute; left: 8px; top: 8px; height: 22px; padding: 0 7px; border-radius: 6px; font: 700 12px/22px var(--mono);
  letter-spacing: .02em; background: rgb(6 13 22 / .86); color: var(--tx); border: 1px solid var(--line2); white-space: nowrap; }
.badge.b-new { background: var(--teal); color: #04121c; border-color: transparent; }
.badge.b-near { color: var(--teal); border-color: var(--teal-d); }
.badge.b-grad::before { content: ''; display: inline-block; width: 7px; height: 4px; border: solid var(--teal); border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translateY(-3px); margin-right: 6px; }
.bk { width: 28px; height: 28px; border-radius: 6px; flex: none; shape-rendering: crispEdges; }

/* pills, bars */
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; font: 700 12px var(--mono); white-space: nowrap; }
.pill.up { color: var(--up); background: var(--up-t); }
.pill.down { color: var(--down); background: var(--down-t); }
.pill.flat { color: var(--tx2); background: var(--s3); }
.bar { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--teal); border-radius: 2px; }
.upc { color: var(--up); } .dnc { color: var(--down); }

/* flash on data change */
@keyframes flup { 0%, 30% { color: var(--up); background: var(--up-t); } 100% { background: transparent; } }
@keyframes fldn { 0%, 30% { color: var(--down); background: var(--down-t); } 100% { background: transparent; } }
.fl-up { animation: flup .6s ease-out; border-radius: 4px; }
.fl-down { animation: fldn .6s ease-out; border-radius: 4px; }

/* poster card */
.poster { width: 200px; flex: none; display: flex; flex-direction: column; background: var(--s1); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; scroll-snap-align: start; transition: background .15s, border-color .15s; }
.poster:hover { background: var(--s2); border-color: var(--line2); }
.poster .pf { --s: 198px; width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; }
.pb { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px 12px; }
.pn { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.pn b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk { font: 500 12px var(--mono); color: var(--tx2); white-space: nowrap; }
.pm { display: flex; align-items: center; gap: 2px; }
.pm .lbl { font: 500 12px var(--mono); color: var(--tx3); margin-right: 5px; }
.pm .mc { font: 700 20px/1.1 var(--mono); letter-spacing: -.02em; padding: 0 2px; margin-left: -2px; }
.pr { display: flex; align-items: center; gap: 10px; }
.pr .bar { flex: 1; }
.ph { color: var(--tx3) !important; font-weight: 500 !important; }
.poster.draft { border: 1px dashed var(--teal); background: var(--s1); }
.poster.draft .pf { background: var(--s2); }

/* spotlight */
.spot { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.spot-bg { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; filter: blur(64px); opacity: .26; pointer-events: none; }
.spot-shade { position: absolute; inset: 0; background: rgb(6 13 22 / .45); pointer-events: none; }
.spot-in { position: relative; display: grid; grid-template-columns: 240px minmax(0, 1fr) 430px; gap: 40px; align-items: center; height: 360px; }
.spot-pic { --s: 240px; border-radius: 16px; border: 1px solid rgb(255 255 255 / .08); }
.spot-pic .badge { left: 12px; top: 12px; }
.spot-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.spot-id { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.eyebrow .quiet { letter-spacing: 0; text-transform: none; font-family: var(--ui); font-weight: 400; }
.spot h1 { font-size: 52px; line-height: 1.02; font-weight: 800; letter-spacing: -.035em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; color: var(--tx2); font-size: 13px; }
.meta .tkc { font: 600 13px var(--mono); color: var(--tx); background: var(--s2); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 7px; }
.tnet { flex: none; align-self: center; font: 700 11px/20px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--warn); border: 1px solid currentColor; border-radius: 6px; padding: 0 7px; margin-left: 8px; }
.cp { display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--mono); color: var(--tx2); border-radius: 6px; padding: 2px 4px; margin: -2px -4px; transition: color .15s, background .15s; }
.cp:hover { color: var(--tx); background: var(--s2); }
.cp svg { width: 13px; height: 13px; }
.spot-mc { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.spot-mc .lbl { display: block; font-size: 12px; color: var(--tx2); margin-bottom: 2px; }
.spot-mc .big { font: 700 38px/1 var(--mono); letter-spacing: -.03em; padding: 0 3px; margin-left: -3px; }
.spot-mc .pill { margin-bottom: 6px; }
.curve { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; max-width: 520px; font: 500 12px var(--mono); color: var(--tx2); }
.curve .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; }
.curve b { color: var(--tx); font-weight: 600; }
.spot-act { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.thumbs { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.thumb { --s: 34px; border-radius: 8px; outline: 2px solid transparent; outline-offset: 2px; opacity: .6; transition: opacity .15s, outline-color .15s; }
.thumb:hover { opacity: 1; }
.thumb.on { outline-color: var(--teal); opacity: 1; }
.thumbs .ib { width: 30px; height: 30px; }
.spot-side { background: rgb(9 21 35 / .78); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.side-h { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--tx2); }
.spark { width: 100%; height: 150px; display: block; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 10px; }
.mini div { display: flex; flex-direction: column; gap: 2px; }
.mini span { font-size: 12px; color: var(--tx2); }
.mini b { font: 700 15px var(--mono); }

/* rails */
.rails { display: flex; flex-direction: column; gap: 30px; padding-top: 28px; }
.rail-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rail-h h2 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.cnt { font: 600 12px var(--mono); color: var(--tx2); background: var(--s1); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.rail-h .arrows { margin-left: auto; display: flex; gap: 6px; }
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 2px; }
.rail::-webkit-scrollbar { display: none; }
.split { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.split .rail { overflow: visible; }
.split > section { min-width: 0; }
.stc { font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .02em; color: var(--tx); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 7px; background: rgb(6 13 22 / .6); }
.stc.s-near, .stc.s-new { color: var(--teal); border-color: var(--teal-d); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tile { background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.tile span { font-size: 12px; color: var(--tx2); }
.tile b { font: 700 38px/1.05 var(--mono); letter-spacing: -.03em; }
.tile b .u { font-size: 13px; }

/* live line */
.live { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 14px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.live-l { display: flex; align-items: center; gap: 8px; flex: none; font-weight: 700; font-size: 13px; white-space: nowrap; }
.live-l em { font-style: normal; font-weight: 400; color: var(--tx2); font-size: 12px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; display: inline-block; }
.live-track { flex: 1; min-width: 0; display: flex; gap: 8px; overflow: hidden; }
.live-track.slide { transition: transform .26s ease-out; }
.li { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px 0 4px; border-radius: 8px; background: var(--s2); white-space: nowrap; flex: none; font-size: 12px; color: var(--tx2); transition: background .15s; }
.li:hover { background: var(--s3); }
.li .pf { --s: 22px; border-radius: 5px; }
.li b { font: 700 12px var(--mono); }
.li .tk { color: var(--tx); font-weight: 600; }
.li .w { font-family: var(--mono); }
.li .ag { font-family: var(--mono); color: var(--tx3); }
.li.k-create .v, .li.k-graduate .v { color: var(--teal); font-weight: 600; }

/* footer */
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 28px 0 8px; color: var(--tx3); font-size: 12px; }

/* dock */
.dock { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: 760px; max-width: calc(100vw - 16px); z-index: 50; }
.dock-bar { position: relative; height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 10px; background: var(--s2);
  border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 14px 36px rgb(0 0 0 / .55); transition: border-color .15s; }
.dock:focus-within .dock-bar, .dock.drop .dock-bar { border-color: var(--teal-d); }
.slot { --s: 44px; width: 44px; height: 44px; border-radius: 10px; flex: none; overflow: hidden; display: grid; place-items: center;
  border: 1px dashed var(--line2); color: var(--tx2); background: var(--s1); transition: border-color .15s; }
.slot:hover { border-color: var(--teal-d); color: var(--tx); }
.slot.has { border-style: solid; border-color: var(--line2); }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot svg { width: 18px; height: 18px; }
#dq { flex: 1; min-width: 0; height: 44px; background: none; border: 0; outline: 0; font-size: 15px; }
#dq::placeholder { color: var(--tx2); }
.attach { height: 38px; padding: 0 12px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line2); border-radius: 10px; color: var(--tx2); font-weight: 600; font-size: 13px; transition: background .15s, color .15s; flex: none; }
.attach:hover { background: var(--s3); color: var(--tx); }
.attach svg { width: 15px; height: 15px; }
.launch { height: 42px; border-radius: 10px; padding: 0 20px; flex: none; }

.tray { position: absolute; left: 0; right: 0; bottom: 72px; background: var(--s1); border: 1px solid var(--line2); border-radius: 16px; padding: 12px 16px 16px;
  box-shadow: 0 18px 44px rgb(0 0 0 / .6); opacity: 0; transform: translateY(10px); pointer-events: none; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility 0s .2s; }
.dock.open .tray { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .2s, transform .2s; }
.tray-h { display: flex; align-items: center; gap: 10px; height: 28px; margin-bottom: 10px; }
.tray-h .t { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; }
.tray-h .s { font-size: 12px; color: var(--tx2); }
.tray-h .df { margin-left: auto; font-size: 12px; color: var(--tx3); white-space: nowrap; }
.x { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--tx2); flex: none; transition: background .15s, color .15s; }
.x:hover { background: var(--s3); color: var(--tx); }
.x svg { width: 14px; height: 14px; }
.tray-empty { display: flex; flex-direction: column; gap: 12px; padding: 2px 0 2px; }
.tray-empty b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.ex { display: flex; flex-wrap: wrap; gap: 8px; }
.exc { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--s2); font: 500 13px var(--mono); color: var(--tx); transition: border-color .15s, background .15s; }
.exc:hover { border-color: var(--teal-d); background: var(--s3); }
.tray-b { display: grid; grid-template-columns: 164px minmax(0, 1fr) 204px; gap: 18px; }
.tray-b .poster { width: 164px; }
.tray-b .poster .pf { --s: 162px; }
.tray-b .pm .mc { font-size: 18px; }
.t-lbl { font-size: 12px; color: var(--tx2); margin-bottom: 8px; display: flex; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fc { display: inline-flex; align-items: center; gap: 6px; height: 28px; max-width: 100%; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; }
.fc em { font-style: normal; color: var(--tx2); font-size: 12px; flex: none; }
.fc b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fc .ck { width: 14px; height: 14px; border-radius: 4px; display: grid; place-items: center; background: var(--line); flex: none; }
.fc .ck svg { width: 9px; height: 9px; opacity: 0; }
.fc.on { border-color: var(--teal-d); background: var(--teal-t); }
.fc.on .ck { background: var(--teal); color: #04121c; }
.fc.on .ck svg { opacity: 1; }
.fc .ai { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--teal); border: 1px solid var(--teal-d); border-radius: 4px; padding: 0 4px; line-height: 15px; flex: none; }
.fc.wide { width: 100%; }
.hint { margin-top: 10px; font-size: 12px; color: var(--tx3); }
.cands { display: flex; gap: 8px; }
.cand { --s: 60px; width: 60px; height: 60px; border-radius: 10px; position: relative; overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; opacity: .65; transition: opacity .15s, outline-color .15s; }
.cand img { width: 100%; height: 100%; object-fit: cover; }
.cand:hover { opacity: 1; }
.cand.on { outline-color: var(--teal); opacity: 1; }
.cand i { position: absolute; right: 3px; bottom: 3px; font: 700 12px/16px var(--mono); font-style: normal; background: rgb(6 13 22 / .85); border-radius: 4px; padding: 0 4px; }
.rm { font-size: 12px; color: var(--tx2); margin-top: 6px; }
.rm:hover { color: var(--tx); text-decoration: underline; }
.fee-l { margin: 14px 0 6px; }
.fee-seg button { flex: 1; padding: 0 4px; }
.fee-n { margin-top: 6px; font-size: 12px; color: var(--tx3); }
.spend { font: 500 12px var(--mono); color: var(--tx2); margin: 14px 0 8px; }
.spend b { color: var(--tx); font-weight: 600; }
.t-side .link { display: block; margin-top: 9px; text-align: center; width: 100%; }
.stages { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stages[hidden] { display: none; }
.stg { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tx3); }
.stg i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line2); display: block; transition: background .15s, border-color .15s; }
.stg.done { color: var(--tx); }
.stg.done i { background: var(--teal); border-color: var(--teal); }
.stg + .stg::before { content: ''; width: 16px; height: 1px; background: var(--line2); margin-right: 2px; }
.stages .sim { margin-left: auto; font: 600 12px var(--mono); color: var(--tx2); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px; }

/* note popover + modal */
.note { position: fixed; z-index: 90; background: var(--tx); color: #061019; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px;
  pointer-events: none; opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s; white-space: nowrap; }
.note.show { opacity: 1; transform: none; }
.modal { position: fixed; inset: 0; z-index: 80; background: rgb(2 6 11 / .72); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.sheet { width: 380px; max-width: 100%; background: var(--s1); border: 1px solid var(--line2); border-radius: 16px; padding: 14px; box-shadow: 0 24px 60px rgb(0 0 0 / .6); }
.sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; font-weight: 800; font-size: 16px; }
.wl { display: flex; flex-direction: column; gap: 4px; }
.wb { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 10px; border-radius: 10px; text-align: left; font-weight: 600; transition: background .15s; }
.wb:hover { background: var(--s2); }
.wb svg.wm { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.wb .chev { margin-left: auto; color: var(--tx3); width: 14px; height: 14px; }
.sheet .foot2 { padding: 12px 6px 2px; font-size: 12px; color: var(--tx3); display: flex; justify-content: space-between; }
.wstate { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 8px 8px; text-align: center; }
.wstate svg.wm { width: 52px; height: 52px; border-radius: 12px; }
.wstate b { font-size: 16px; }
.wstate .row { display: flex; gap: 8px; margin-top: 4px; }

/* coin page */
.chead { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.chead-in { position: relative; display: flex; align-items: center; gap: 28px; padding-top: 32px; padding-bottom: 32px; }
.chead .pf { --s: 120px; border-radius: 14px; border: 1px solid rgb(255 255 255 / .08); }
.chead .pf .badge { left: 6px; top: 6px; }
.ctitle { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ctitle h1 { font-size: 48px; line-height: 1.02; font-weight: 800; letter-spacing: -.035em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ctitle { flex: 1; }
.cdesc { max-width: 68ch; color: var(--tx2); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cdesc[hidden] { display: none; }
.cdesc.more { cursor: pointer; }
.cdesc.more:hover, .cdesc.more:focus-visible { color: var(--tx); }
.cdesc.open { display: block; }
.clinks { display: flex; gap: 8px; }
.clinks:empty { display: none; }
.cact { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cact .row { display: flex; gap: 8px; }
.cact .dfl { font-size: 12px; color: var(--tx3); }
.star.on { color: var(--teal); border-color: var(--teal-d); }
.star.on svg { fill: currentColor; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.stat { background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat > span { font-size: 12px; color: var(--tx2); }
.stat > b { font: 700 32px/1.05 var(--mono); letter-spacing: -.03em; white-space: nowrap; }
.stat > b .u { font-size: 13px; }
.stat > small { font-size: 12px; color: var(--tx2); display: flex; align-items: center; gap: 8px; }
.cgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.side { position: sticky; top: 70px; }
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; min-width: 0; }
.panel-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-height: 28px; }
.panel-h h3 { font-size: 14px; font-weight: 700; }
.seg { display: flex; gap: 4px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; }
.seg button { height: 26px; padding: 0 10px; border-radius: 6px; font: 600 12px var(--mono); color: var(--tx2); transition: background .15s, color .15s; }
.seg button:hover { color: var(--tx); }
.seg button.on { background: var(--s3); color: var(--tx); }
.readout { margin-left: auto; font: 500 12px var(--mono); color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.readout b { color: var(--tx); font-weight: 600; }
.chart { width: 100%; height: 330px; position: relative; touch-action: pan-y; }
.chart svg { display: block; width: 100%; height: 100%; }
.chart text { font: 12px var(--mono); fill: var(--tx3); }
.tabs { display: flex; gap: 4px; }
.tabs button { height: 30px; padding: 0 12px; border-radius: 8px; font-weight: 700; font-size: 14px; color: var(--tx2); transition: background .15s, color .15s; }
.tabs button.on { background: var(--s3); color: var(--tx); }
.tabs button:hover { color: var(--tx); }
.tabs .c2 { font: 500 12px var(--mono); color: var(--tx3); margin-left: 4px; }
.rows { display: flex; flex-direction: column; }
.tr { display: grid; grid-template-columns: 28px minmax(90px, 1.2fr) 64px 1fr 1.2fr 1fr 56px; gap: 12px; align-items: center; height: 46px; border-top: 1px solid var(--line); font-size: 13px; }
.tr.hd { height: 32px; border-top: 0; font-size: 12px; color: var(--tx3); }
.tr .r { text-align: right; font: 700 13px var(--mono); }
.tr .r2 { text-align: right; font: 500 13px var(--mono); color: var(--tx2); }
.tr.hd .r, .tr.hd .r2 { font: 500 12px var(--ui); color: var(--tx3); }
.tr .w { font: 500 13px var(--mono); color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp { display: inline-flex; height: 22px; padding: 0 7px; border-radius: 6px; align-items: center; font: 700 12px var(--mono); width: fit-content; }
.sp.buy { color: var(--up); background: var(--up-t); }
.sp.sell { color: var(--down); background: var(--down-t); }
@keyframes rowin { from { transform: translateY(-8px); opacity: 0; background: var(--teal-t); } to { transform: none; opacity: 1; } }
.tr.new { animation: rowin .26s ease-out; }
.hr { display: grid; grid-template-columns: 24px 28px minmax(0, 1fr) 1fr 56px; gap: 12px; align-items: center; height: 46px; border-top: 1px solid var(--line); font-size: 13px; }
.hr .rk { font: 500 12px var(--mono); color: var(--tx3); }
.hr .lb { font-size: 12px; color: var(--teal); border: 1px solid var(--teal-d); border-radius: 6px; padding: 0 6px; margin-left: 8px; }
.hr .r { text-align: right; font: 700 13px var(--mono); }
.empty { padding: 26px 0; text-align: center; color: var(--tx2); font-size: 13px; border-top: 1px solid var(--line); }
.rail > .empty { flex: 1; border-top: 0; border: 1px dashed var(--line); border-radius: 12px; padding: 40px 16px; }
.v4note { margin: 8px 0 0; font-size: 12px; }

.trade .seg { margin-bottom: 14px; }
.trade .seg button { flex: 1; height: 32px; font: 700 14px var(--ui); }
.trade .seg button.on.b { background: var(--up-t); color: var(--up); }
.trade .seg button.on.s { background: var(--down-t); color: var(--down); }
.flabel { display: flex; justify-content: space-between; font-size: 12px; color: var(--tx2); margin-bottom: 6px; }
.amt { display: flex; align-items: center; height: 48px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; transition: border-color .15s; }
.amt:focus-within { border-color: var(--teal-d); }
.amt input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: 700 20px var(--mono); }
.amt .unit { font: 600 13px var(--mono); color: var(--tx2); }
.qc { display: flex; gap: 6px; margin: 10px 0 14px; }
.qc button { flex: 1; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: var(--s2); font: 600 12px var(--mono); color: var(--tx2); transition: border-color .15s, color .15s; }
.qc button:hover { color: var(--tx); border-color: var(--line2); }
.qc button.on { border-color: var(--teal-d); color: var(--tx); background: var(--teal-t); }
.kv { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.kv div { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--tx2); }
.kv b { font: 700 13px var(--mono); color: var(--tx); }
.slip { display: flex; gap: 4px; }
.slip button { height: 24px; padding: 0 7px; border-radius: 6px; font: 600 12px var(--mono); color: var(--tx2); border: 1px solid var(--line); }
.slip button.on { color: var(--tx); border-color: var(--teal-d); background: var(--teal-t); }
.ccard .big { font: 700 22px var(--mono); }
.ccard .curve { max-width: none; margin-top: 8px; }
.cert-h { display: flex; align-items: center; gap: 8px; }
.state { margin-left: auto; height: 24px; padding: 0 8px; border-radius: 6px; font: 700 12px/24px var(--mono); color: var(--teal); background: var(--teal-t); }
.cert dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 12px 0; font-size: 12px; }
.cert dt { color: var(--tx2); }
.cert dd { font: 500 12px var(--mono); text-align: right; }
.cert dd .cp { font-size: 12px; }
.sts { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.sts span { font: 500 12px var(--mono); color: var(--tx3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.sts span.on { color: var(--teal); border-color: var(--teal-d); }
.mrow { display: flex; align-items: center; gap: 10px; height: 46px; border-top: 1px solid var(--line); }
.mrow:first-of-type { border-top: 0; }
.mrow .pf { --s: 30px; }
.mrow .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mrow .nm b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow .nm span { font: 12px var(--mono); color: var(--tx2); }
.mrow .mc { font: 700 13px var(--mono); text-align: right; }
.mrow:hover b { color: var(--teal); }
.lv-wrap { margin-top: 18px; }

/* responsive */
@media (max-width: 1180px) {
  .spot-in { grid-template-columns: 200px minmax(0, 1fr) 360px; gap: 28px; }
  .spot-pic { --s: 200px; }
  .search { width: 300px; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  body { padding-bottom: 92px; } /* dock 60 + offset 8 + 24 */
  .top-in { height: auto; flex-wrap: wrap; gap: 10px; padding-top: 9px; padding-bottom: 0; }
  .brand { height: 34px; }
  .msearch { display: grid; margin-left: auto; width: 34px; height: 34px; }
  .search { order: 5; width: 100%; display: none; margin: 0 0 8px; }
  .top.searching .search { display: flex; }
  .top.searching .nav { display: none; }
  .nav { order: 6; width: calc(100% + 32px); margin: 0 -16px; padding: 0 12px 6px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .spot-in { grid-template-columns: 112px minmax(0, 1fr); height: auto; padding-top: 18px; padding-bottom: 18px; gap: 14px; }
  .spot-main { display: contents; }
  .spot-in > *, .spot-main > * { grid-column: 1 / -1; }
  .spot-in > .spot-pic { grid-column: 1; grid-row: 1; }
  .spot-main > .spot-id { grid-column: 2; grid-row: 1; gap: 6px; align-self: center; }
  .meta .xm { display: none; }
  .eyebrow { font-size: 12px; letter-spacing: .03em; }
  .spot-pic { --s: 112px; border-radius: 12px; }
  .spot-pic .badge { display: none; }
  .spot h1 { font-size: 30px; }
  .spot-mc .big { font-size: 30px; }
  .spot-act .btn { flex: 1; }
  .thumbs { margin: 0; width: 100%; justify-content: center; }
  .spot-act { flex-wrap: wrap; }
  .spark { height: 110px; }
  .rails { gap: 24px; padding-top: 20px; }
  .rail { margin: 0 -16px; padding: 0 16px 2px; scroll-padding: 0 16px; }
  .poster { width: 156px; }
  .poster .pf { --s: 154px; }
  .pm .mc { font-size: 16px; }
  .badge { font-size: 12px; left: 6px; top: 6px; padding: 0 5px; }
  .split { grid-template-columns: 1fr; }
  .split .rail { overflow-x: auto; }
  .tile b { font-size: 26px; }
  .tiles { gap: 10px; }
  .live { padding: 0 10px; gap: 10px; }
  .live-l em { display: none; }
  .dock { bottom: 8px; }
  .dock-bar { height: 60px; gap: 8px; padding: 0 8px; }
  .attach span { display: none; }
  .attach { padding: 0 10px; }
  .launch { padding: 0 14px; }
  .tray { position: fixed; left: 8px; right: 8px; bottom: 76px; max-height: calc(100vh - 120px); overflow-y: auto; border-radius: 16px; }
  .tray-h .df, .hint { display: none; }
  .tray-b { grid-template-columns: 1fr; gap: 14px; }
  .tray-b .poster { width: 100%; flex-direction: row; align-items: center; }
  .tray-b .poster .pf { --s: 96px; width: 96px; aspect-ratio: 1; flex: none; }
  .tray-b .pb { flex: 1; min-width: 0; }
  .t-side { display: grid; grid-template-columns: 1fr; }
  .chead-in { flex-wrap: wrap; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
  .chead .pf { --s: 88px; }
  .ctitle h1 { font-size: 32px; }
  .cact { margin: 0; width: 100%; align-items: stretch; }
  .cact .row .btn { flex: 1; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
  .stat { padding: 12px 14px; }
  .stat > b { font-size: 22px; }
  .cgrid { display: flex; flex-direction: column; }
  .cgrid > .col { display: contents; }
  .cgrid .panel { order: 4; }
  .cgrid .o1 { order: 1; } .cgrid #trade { order: 2; } .cgrid .o3 { order: 3; }
  .side { position: static; }
  .chart { height: 260px; }
  .readout { display: none; }
  .tr { grid-template-columns: 28px minmax(0, 1fr) 52px 1fr 44px; gap: 8px; }
  .tr .hide-m { display: none; }
  .hr { grid-template-columns: 20px 28px minmax(0, 1fr) 52px; }
  .hr .hide-m { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-up, .fl-down, .tr.new { animation: none; }
  .live-track.slide { transition: none; }
}
