/* bon — trading-terminal résumé. Dark only.
   Fonts are self-hosted (Inter, JetBrains Mono; SIL OFL 1.1, see fonts/). */

@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #07090D; --panel: #0C1016; --panel-2: #10151D; --panel-3: #141A24;
  --line: #1A212C; --line-2: #263041;
  --ink: #E9EEF5; --ink-2: #A7B1C0; --mute: #6B7689;
  --long: #2FD282; --long-dim: rgba(47, 210, 130, .12); --short: #F0465A; --short-dim: rgba(240, 70, 90, .12);
  --lime: #D6FF3B;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { background: var(--bg); color: var(--ink); font-family: var(--ui); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; padding-bottom: 46px; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--bg); }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #1F2733; border-radius: 4px; } ::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.mono { font-family: var(--mono); }
.up { color: var(--long); } .down { color: var(--short); } .lime { color: var(--lime); } .mute { color: var(--mute); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ambient background ---------- */
#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(520px circle at var(--mx, 72%) var(--my, 18%), rgba(214, 255, 59, .055), transparent 62%),
    radial-gradient(900px circle at 12% 110%, rgba(47, 210, 130, .06), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .3) 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .3) 100%); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; height: 56px; display: flex; align-items: center; gap: 18px; padding: 0 20px; border-bottom: 1px solid var(--line); background: rgba(8, 10, 14, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; flex: none; }
.logo i { width: 24px; height: 24px; background: var(--lime); color: #07090D; display: grid; place-items: center; font-style: normal; font-size: 15px; font-weight: 800; border-radius: 6px; box-shadow: 0 0 18px rgba(214, 255, 59, .35); }
.mkt { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; font-weight: 700; font-size: 13px; letter-spacing: .01em; background: var(--panel); flex: none; }
.mkt b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--long); }
.nav { display: flex; gap: 2px; min-width: 0; }
.nav a { position: relative; color: var(--ink-2); font-size: 13px; font-weight: 500; padding: 8px 11px; border-radius: 7px; transition: color .2s, background .2s; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--panel-2); }
.nav a.on { color: var(--ink); }
.nav a.on::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: -11px; height: 2px; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.hdr .sp { flex: 1; }
.clock { font-family: var(--mono); font-size: 11.5px; color: var(--mute); flex: none; }
.btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; border-radius: 8px; padding: 8px 14px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; flex: none; }
.btn:hover { border-color: var(--ink-2); }
.btn.lime { background: var(--lime); color: #07090D; border-color: var(--lime); box-shadow: 0 0 22px rgba(214, 255, 59, .22); }
.btn.lime:hover { background: #E4FF6E; }
.btn:active { transform: scale(.97); }

/* ---------- ticker ---------- */
.ticker { position: relative; z-index: 2; height: 34px; border-bottom: 1px solid var(--line); overflow: hidden; background: rgba(9, 12, 17, .7); }
.ticker .track { display: inline-flex; gap: 30px; padding-left: 20px; white-space: nowrap; height: 34px; align-items: center; animation: marq 46s linear infinite; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.ticker:hover .track { animation-play-state: paused; }
.ticker span b { color: var(--ink); font-weight: 500; margin: 0 6px; }
.ticker span em { font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- views + entrance ---------- */
main { position: relative; z-index: 1; }
.view { padding: 16px 20px 32px; max-width: 1480px; margin: 0 auto; }
html.js .view { display: none; }
html.js .view.on { display: block; }
html.no-js .view + .view { border-top: 1px solid var(--line); }
html.js .view.on [data-a] { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(.985); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
.vhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin: 10px 0 18px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); margin-bottom: 8px; }
.vtitle { font-size: clamp(30px, 4.4vw, 54px); line-height: 1; font-weight: 800; letter-spacing: -0.035em; outline: none; }
.vsub { color: var(--ink-2); font-size: 14px; max-width: 64ch; margin-top: 10px; }
.tele { display: flex; gap: 8px 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.tele .live { color: var(--long); display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--long); box-shadow: 0 0 10px var(--long); animation: pulse 2s ease-in-out infinite; display: inline-block; }
@keyframes pulse { 0%, 100% { opacity: .45; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- panels ---------- */
.panel { position: relative; background: linear-gradient(180deg, rgba(16, 21, 29, .92), rgba(12, 16, 22, .92)); border: 1px solid var(--line); border-radius: 12px; transition: border-color .25s; }
.panel:hover { border-color: var(--line-2); }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ph .mono { font-weight: 400; color: var(--mute); font-size: 11px; }
.ph a.more { font-family: var(--mono); font-size: 11px; color: var(--lime); font-weight: 500; }
.ph a.more:hover { text-decoration: underline; }

/* ---------- TRADE (home) ---------- */
.grid-trade { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; }
.mhead { padding: 18px 20px 0; }
.mrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mrow h2 { font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.tag { font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; }
.stats { display: flex; gap: 14px 30px; flex-wrap: wrap; margin-top: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.stat .k { font-size: 11px; color: var(--mute); margin-bottom: 4px; }
.stat .v { font-family: var(--mono); font-size: 14px; font-weight: 500; }
.headline { padding: 28px 20px 6px; }
.headline h1 { font-size: clamp(34px, 4.1vw, 60px); line-height: 1.0; letter-spacing: -0.04em; font-weight: 800; max-width: 18ch; }
.headline h1 .w { display: inline-block; }
html.js .view.on .headline h1 .w { animation: wordin .8s var(--ease) both; animation-delay: calc(var(--w) * 45ms + 180ms); }
@keyframes wordin { from { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.headline h1 em { font-style: normal; color: var(--short); text-shadow: 0 0 26px rgba(240, 70, 90, .35); }
.headline p { margin-top: 16px; color: var(--ink-2); font-size: 15px; line-height: 1.65; max-width: 62ch; }
.chartbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 4px; gap: 10px; }
.chartbar .t { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.chartbar .t b { font-family: var(--mono); font-weight: 500; color: var(--long); margin-left: 8px; }
.tf { display: flex; gap: 2px; font-family: var(--mono); font-size: 12px; }
.tf button { padding: 4px 8px; border-radius: 5px; color: var(--mute); background: none; border: 0; cursor: pointer; }
.tf button.on { color: var(--ink); background: var(--panel-3); }
.cwrap { position: relative; height: clamp(250px, 34vh, 340px); margin: 0 4px; }
.cwrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.ctip { position: absolute; pointer-events: none; font-family: var(--mono); font-size: 11px; background: rgba(7, 9, 13, .94); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 9px; color: var(--ink); white-space: nowrap; transform: translate(-50%, -100%); z-index: 2; }
.ctip b { color: var(--lime); font-weight: 500; }
.note { padding: 2px 20px 14px; font-size: 11px; color: var(--mute); }
.side { display: grid; gap: 16px; align-content: start; }

/* ticket */
.ticket { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.ls { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.ls button { text-align: center; padding: 9px; border-radius: 7px; font-weight: 700; font-size: 13px; color: var(--mute); background: none; border: 0; cursor: pointer; }
.ls .long { background: var(--long); color: #04130B; box-shadow: 0 0 20px rgba(47, 210, 130, .25); }
.ls .short { text-decoration: line-through; }
.ls .short:hover { color: var(--short); }
.shake { animation: shake .42s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.fld .k { font-size: 11.5px; color: var(--mute); margin-bottom: 7px; display: flex; justify-content: space-between; gap: 10px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg button { padding: 8px 4px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 12.5px; color: var(--ink-2); background: transparent; cursor: pointer; transition: all .2s; }
.seg button:hover { color: var(--ink); }
.seg button.on { border-color: var(--long); color: var(--ink); background: var(--long-dim); }
.input { border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: border-color .2s; }
.input:focus-within { border-color: var(--long); }
.input input { width: 100%; background: transparent; border: 0; outline: 0; color: var(--ink); font-family: var(--mono); font-size: 13px; padding: 10px 0; }
.input span { font-family: var(--mono); font-size: 12px; color: var(--mute); white-space: nowrap; }
.lev { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; outline: none; margin: 10px 0 6px; cursor: pointer; background: linear-gradient(90deg, var(--long) var(--p, 72%), var(--line-2) var(--p, 72%)); }
.lev::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(47, 210, 130, .3); cursor: grab; }
.lev::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 0 0 4px rgba(47, 210, 130, .3); cursor: grab; }
.ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--mute); }
.voice { margin-top: 9px; font-size: 12px; color: var(--ink-2); border-left: 2px solid var(--lime); padding: 3px 0 3px 9px; min-height: 22px; }
.voice b { color: var(--lime); font-family: var(--mono); font-weight: 500; }
.sum { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; font-size: 12.5px; }
.sum div { display: flex; justify-content: space-between; gap: 10px; }
.sum div span:first-child { color: var(--mute); }
.sum div span:last-child { font-family: var(--mono); text-align: right; }
.cta { position: relative; overflow: hidden; display: block; text-align: center; background: var(--long); color: #04130B; border-radius: 9px; padding: 14px; font-weight: 800; font-size: 15px; letter-spacing: .01em; cursor: pointer; box-shadow: 0 0 28px rgba(47, 210, 130, .25); transition: transform .15s, box-shadow .2s; }
.cta:hover { box-shadow: 0 0 40px rgba(47, 210, 130, .45); }
.cta:active { transform: scale(.98); }
.cta::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: sheen 3.4s ease-in-out infinite; }
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.cta.filled { background: var(--lime); }
.fine { font-size: 11.5px; color: var(--mute); text-align: center; }

/* order book */
.book { padding-bottom: 12px; }
.book .row { position: relative; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; padding: 5px 16px; }
.book .row i { position: absolute; right: 0; top: 1px; bottom: 1px; transition: width .9s var(--ease); }
.book .bid i { background: var(--long-dim); } .book .ask i { background: var(--short-dim); }
.book .row span { position: relative; } .book .ask span:last-child { color: var(--short); } .book .bid span:last-child { color: var(--long); }
.book .mid { display: flex; justify-content: space-between; padding: 8px 16px; font-family: var(--mono); font-size: 13px; color: var(--lime); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 4px 0; }

/* positions summary + fills */
.grid-under { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; font-weight: 500; color: var(--mute); padding: 8px 16px; white-space: nowrap; }
td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; font-size: 13.5px; }
td.m { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
tbody tr { transition: background .2s; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover { background: rgba(255, 255, 255, .02); }
.sidepill { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--long); background: var(--long-dim); border-radius: 4px; padding: 2px 7px; }
.mk { font-weight: 700; white-space: nowrap; } .mk small { display: block; font-weight: 400; color: var(--mute); font-size: 12px; margin-top: 3px; white-space: normal; }
.open { font-family: var(--mono); font-size: 10.5px; color: var(--lime); border: 1px solid rgba(214, 255, 59, .45); border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; animation: blinkb 2.4s ease-in-out infinite; }
@keyframes blinkb { 50% { border-color: rgba(214, 255, 59, .1); } }
.fills { padding-bottom: 8px; }
.fill { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; }
.fill .s { grid-row: span 2; font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--long); background: var(--long-dim); border-radius: 4px; padding: 2px 6px; align-self: start; margin-top: 2px; }
.fill .t { color: var(--ink); line-height: 1.45; }
.fill .u { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.fill.new { animation: fillin .7s var(--ease); }
@keyframes fillin { 0% { background: rgba(47, 210, 130, .18); transform: translateY(-8px); opacity: 0; } 40% { opacity: 1; } 100% { background: transparent; transform: none; } }

/* ---------- POSITIONS ---------- */
.ptable td { padding: 16px; }
.xbtn { background: none; border: 1px solid var(--line-2); color: var(--ink-2); border-radius: 6px; width: 26px; height: 26px; cursor: pointer; font-family: var(--mono); transition: all .2s; }
.xbtn:hover { color: var(--ink); border-color: var(--ink-2); }
tr.det td { border-top: 0; padding-top: 0; }
tr.det[hidden] { display: none; }
.detail { background: var(--panel-3); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; animation: rise .5s var(--ease); }
.detail.one { grid-template-columns: 1fr; }
.dl { list-style: none; display: grid; gap: 8px; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.dl li { padding-left: 16px; position: relative; } .dl li::before { content: '▸'; position: absolute; left: 0; color: var(--long); }
.mini .k { font-size: 11px; color: var(--mute); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 10px; }
.mini canvas { width: 100%; height: 110px; display: block; }
.pcards { display: none; }

/* ---------- PNL ---------- */
.vol { padding: 18px 20px 14px; margin-bottom: 16px; }
.vol-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 28px; flex-wrap: wrap; margin-bottom: 14px; }
.vol-k { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .14em; font-family: var(--mono); margin-bottom: 8px; }
.vol-big { font-family: var(--mono); font-weight: 700; font-size: clamp(38px, 5.6vw, 64px); line-height: 1; color: var(--long); letter-spacing: -0.03em; text-shadow: 0 0 30px rgba(47, 210, 130, .25); }
.vol-sub { margin-top: 8px; color: var(--ink-2); font-size: 13.5px; }
.vol-months { display: flex; align-items: flex-end; gap: 12px; font-family: var(--mono); }
.vol-months > div:not(.arr) { display: flex; flex-direction: column; gap: 5px; }
.vol-months .m { font-size: 10px; letter-spacing: .14em; color: var(--mute); }
.vol-months b { font-size: clamp(16px, 2vw, 22px); color: var(--ink); }
.vol-months b.pre { color: var(--mute); } .vol-months b.hot { color: var(--lime); }
.vol-months .arr { color: var(--dim, #3D4656); padding-bottom: 3px; }
.vwrap { position: relative; height: clamp(220px, 34vh, 320px); }
.vwrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: pan-y; }
.vfoot { display: flex; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; line-height: 1.6; color: var(--mute); }
.vfoot a { color: var(--lime); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.card { padding: 18px 18px 16px; overflow: hidden; }
.card .k { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .12em; font-family: var(--mono); }
.card .n { font-family: var(--mono); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; margin: 12px 0 8px; letter-spacing: -0.03em; color: var(--long); }
.card .n.amber { color: var(--lime); }
.card .s { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.card .tg { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--mute); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 7px; }
.card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 210, 130, .1), transparent 70%); pointer-events: none; }
.fineprint { margin-top: 16px; font-size: 12px; line-height: 1.7; color: var(--mute); max-width: 90ch; }
.fineprint b { color: var(--ink-2); font-weight: 600; }

/* ---------- RECEIPTS ---------- */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.rc { display: flex; flex-direction: column; padding: 14px 16px 12px; }
.rc .top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 10.5px; color: var(--mute); margin-bottom: 12px; }
.rc .top .s { color: var(--long); font-weight: 700; background: var(--long-dim); border-radius: 4px; padding: 2px 7px; }
.who { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 12.5px; color: var(--mute); }
.who b { color: var(--ink-2); font-weight: 600; }
.av { flex: none; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-family: var(--mono); font-size: 9.5px; font-weight: 700; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--panel-3); }
.av.me { background: var(--lime); color: #07090D; border-color: var(--lime); }
.parent { margin: 8px 0 14px 11px; padding-left: 21px; border-left: 1px solid var(--line-2); font-size: 12.5px; line-height: 1.6; color: #8792A5; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.parent .img { font-family: var(--mono); font-size: 10.5px; color: var(--mute); }
.reply { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.45; font-weight: 600; color: var(--ink); margin-top: 8px; letter-spacing: -0.01em; }
.rc .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--mute); }
.rc .acts { display: inline-flex; gap: 12px; align-items: center; }
.rc .acts a { color: var(--lime); }
.rc .acts a:hover { text-decoration: underline; }
.load { font-family: var(--mono); font-size: 11px; color: var(--ink-2); background: transparent; border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 8px; cursor: pointer; }
.load:hover { color: var(--ink); border-color: var(--ink-2); }
.load:disabled { opacity: .6; cursor: progress; }
html.no-js .load { display: none; }
.embed { margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--mute); }
.embed iframe { max-width: 100% !important; }
.rc .gap { height: 14px; }

/* ---------- SKILLS ---------- */
.grid-skills { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.prof { padding: 20px; }
.badge { width: 84px; height: 84px; border-radius: 18px; background: var(--lime); color: #07090D; display: grid; place-items: center; font-weight: 800; font-size: 46px; letter-spacing: -0.04em; box-shadow: 0 0 40px rgba(214, 255, 59, .25); margin-bottom: 16px; }
.prof h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.prof .h { font-family: var(--mono); font-size: 12px; color: var(--mute); margin-top: 2px; }
.kv { margin-top: 16px; display: grid; gap: 9px; font-size: 13px; }
.kv div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; }
.kv span:first-child { font-family: var(--mono); font-size: 11px; color: var(--mute); padding-top: 2px; text-transform: uppercase; letter-spacing: .08em; }
.depth { padding: 6px 0 10px; }
.drow { display: grid; grid-template-columns: minmax(0, 1fr) 60px; align-items: center; gap: 14px; padding: 9px 16px; position: relative; }
.drow .bar { position: absolute; left: 0; top: 3px; bottom: 3px; background: linear-gradient(90deg, rgba(47, 210, 130, .2), rgba(47, 210, 130, .04)); border-right: 2px solid var(--long); border-radius: 0 4px 4px 0; width: 0; transition: width 1.1s var(--ease); }
.drow span { position: relative; } .drow .nm { font-size: 13.5px; color: var(--ink); }
.drow .lv { font-family: var(--mono); font-size: 12px; color: var(--long); text-align: right; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 16px; }
.chip { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 10px; }
.chip.lime { color: var(--lime); border-color: rgba(214, 255, 59, .35); }
.stack { display: grid; gap: 16px; }

/* ---------- CONTACT ---------- */
.grid-contact { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.pitch { padding: 22px 22px 18px; }
.pitch p { font-size: clamp(17px, 1.8vw, 21px); line-height: 1.6; color: var(--ink); max-width: 56ch; }
.venues { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.venue { padding: 16px; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, transform .2s; }
.venue:hover { border-color: var(--lime); transform: translateY(-2px); }
.venue .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--mute); }
.venue .v { font-size: 15px; font-weight: 600; word-break: break-all; }
.venue .g { font-family: var(--mono); font-size: 11px; color: var(--lime); margin-top: 4px; }

/* ---------- status bar + console ---------- */
.status { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: 46px; display: flex; align-items: center; gap: 18px; padding: 0 20px; border-top: 1px solid var(--line); background: rgba(8, 10, 14, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.status .ok { color: var(--long); display: inline-flex; align-items: center; gap: 7px; flex: none; }
.cmd { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.cmd label { color: var(--long); flex: none; }
.cmd input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font-family: var(--mono); font-size: 13px; caret-color: var(--lime); }
.cmd input::placeholder { color: #4A5466; }
.kbd { flex: none; border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; font-size: 10.5px; }
.log { position: fixed; left: 20px; right: 20px; bottom: 54px; z-index: 44; max-width: 760px; max-height: 38vh; overflow-y: auto; background: rgba(8, 10, 14, .96); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.log[hidden] { display: none; }
.log div { white-space: pre-wrap; } .log .in { color: #5FA391; } .log .sys { color: var(--long); } .log .warn { color: var(--lime); } .log .out { color: var(--ink-2); }
.toast { position: fixed; left: 50%; bottom: 62px; z-index: 90; transform: translateX(-50%); background: rgba(8, 10, 14, .97); border: 1px solid var(--line-2); border-radius: 9px; color: var(--ink); font-size: 13px; padding: 10px 16px; max-width: 90vw; text-align: center; box-shadow: 0 12px 40px rgba(0, 0, 0, .55); animation: toastin .3s var(--ease); }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- transitions (order-flow wipe) + boot ---------- */
#wipe { position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; pointer-events: none; display: none; }
#wipe.on { display: block; pointer-events: auto; }
#boot { position: fixed; inset: 0; z-index: 110; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: pointer; }
html.no-js #boot, html.booted #boot { display: none; }
#boot pre { font-family: var(--mono); font-size: clamp(12px, 1.6vw, 15px); line-height: 1.85; color: var(--ink-2); min-width: min(520px, 90vw); white-space: pre-wrap; }
#boot pre .ok { color: var(--long); } #boot pre .l { color: var(--lime); }
#boot .skip { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em; color: #4A5466; }
#boot .bar { height: 2px; background: var(--line); margin-top: 18px; border-radius: 1px; overflow: hidden; }
#boot .bar i { display: block; height: 100%; width: 0; background: var(--lime); box-shadow: 0 0 12px var(--lime); transition: width .2s linear; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .grid-trade, .grid-under { grid-template-columns: minmax(0, 1fr) 320px; }
  .clock { display: none; }
}
@media (max-width: 980px) {
  .hdr { gap: 10px; padding: 0 12px; height: auto; min-height: 56px; flex-wrap: wrap; padding-top: 10px; }
  .nav { order: 9; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 8px 6px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a.on::after { bottom: 0; }
  .hdr .btn:not(.lime) { display: none; }
  .view { padding: 12px 12px 28px; }
  .grid-trade, .grid-under, .grid-skills, .grid-contact { grid-template-columns: minmax(0, 1fr); }
  .detail { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .mkt b { display: none; }
  .stats { gap: 12px 22px; }
  .headline { padding: 22px 16px 4px; } .mhead { padding: 16px 16px 0; } .chartbar { padding: 14px 16px 4px; } .note { padding: 2px 16px 12px; }
  .ptable, .sumtable { display: none; }
  .pcards { display: grid; gap: 10px; padding: 0 12px 12px; }
  .pc { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--panel-3); }
  .pc .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
  .pc .meta { font-family: var(--mono); font-size: 11.5px; color: var(--mute); margin-bottom: 8px; }
  .pc .sig { font-family: var(--mono); font-size: 12.5px; color: var(--long); }
  .pc .dl { margin-top: 12px; }
  .pc details summary { cursor: pointer; font-family: var(--mono); font-size: 11.5px; color: var(--lime); margin-top: 10px; list-style: none; }
  .pc details summary::-webkit-details-marker { display: none; }
  .rgrid { grid-template-columns: 1fr; }
  .status { gap: 10px; padding: 0 12px; } .status .ok span, .status .mid, .kbd { display: none; }
  .log { left: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker .track { animation: none; }
}

/* ---------- no-JS: hide the bits that need scripting ---------- */
html.no-js .cwrap, html.no-js .tf, html.no-js .note, html.no-js .vwrap, html.no-js .cmd, html.no-js .kbd, html.no-js .mini { display: none; }
html.no-js .book .row i { width: calc(var(--dw, 50) * 1%); }

/* ---------- RECEIPTS: filters, groups, posts ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.filters button { font-family: var(--mono); font-size: 12px; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.filters button:hover { color: var(--ink); border-color: var(--ink-2); }
.filters button span { margin-left: 7px; opacity: .55; }
.filters button.on { background: var(--lime); border-color: var(--lime); color: #07090D; font-weight: 700; box-shadow: 0 0 18px rgba(214, 255, 59, .25); }
html.no-js .filters { display: none; }
.rgroup[hidden] { display: none; }
.rgroup + .rgroup { margin-top: 34px; }
.rghead { display: flex; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rghead h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.rghead h3 .mono { font-size: 11.5px; color: var(--mute); font-weight: 400; margin-left: 10px; letter-spacing: 0; }
.rghead p { color: var(--ink-2); font-size: 13px; }
.atitle { font-size: 17px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.35; margin-top: 12px; }
.ptext { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink); white-space: pre-line; }
.media { position: relative; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #0A0E13; }
.media img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: contain; }
.mbadge { position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: 10.5px; background: rgba(7, 9, 13, .88); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 7px; color: var(--ink); }
.lcard { margin-top: 12px; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; display: grid; gap: 3px; background: var(--panel-3); }
.lcard .d { font-family: var(--mono); font-size: 10.5px; color: var(--mute); }
.lcard b { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.pnote { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(214, 255, 59, .3); font-family: var(--mono); font-size: 11.5px; line-height: 1.55; color: var(--lime); }

/* ---------- logo mark + portrait ---------- */
.logo .mark { width: 26px; height: 26px; flex: none; filter: drop-shadow(0 0 10px rgba(214, 255, 59, .35)); transition: transform .3s var(--ease), filter .3s; }
.logo:hover .mark { transform: translateY(-2px) rotate(-4deg); filter: drop-shadow(0 0 16px rgba(214, 255, 59, .6)); }
.boot-mark { width: 44px; height: 44px; display: block; margin-bottom: 18px; filter: drop-shadow(0 0 18px rgba(214, 255, 59, .45)); animation: pulse 1.6s ease-in-out infinite; }
.portrait { position: relative; width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); margin-bottom: 18px; background: #0A0E13; box-shadow: 0 0 40px rgba(47, 210, 130, .12); }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.portrait:hover img { transform: scale(1.03); }
.portrait::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(7, 9, 13, .75)); }
.portrait .ptag, .portrait .pid { position: absolute; z-index: 1; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; }
.portrait .ptag { top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; color: var(--long); background: rgba(7, 9, 13, .7); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; }
.portrait .pid { bottom: 12px; left: 14px; color: var(--lime); }
