/* App — Eventide design language applied to the trading app (tokens from /css/base.css) */
body.app { background: var(--bg); min-height: 100dvh; overflow-x: clip; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-feature-settings: normal; }
.up { color: var(--live); } .down { color: var(--red); } .muted { color: var(--muted); } .dim { color: var(--dim); } .acc { color: var(--accent); }
.hide-sm { } @media (max-width: 809.98px) { .hide-sm { display: none !important; } }
.only-sm { display: none !important; } @media (max-width: 809.98px) { .only-sm { display: revert !important; } }

/* ------------------------------------------------------------------ header */
.ah { position: sticky; top: 0; z-index: 40; height: 56px; background: rgba(17, 15, 13, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 16px; }
.ah__logo { display: flex; align-items: center; gap: 9px; flex: none; }
.ah__nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.ah__link { position: relative; display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px; border-radius: 7px; font: 500 14px/1 var(--f-body); color: var(--text-2); transition: background-color .2s, color .2s; }
.ah__link svg { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.ah__link:hover, .ah__drop.is-open > .ah__link { background: rgba(250, 250, 249, 0.06); color: var(--text); }
.ah__link.is-on { color: var(--text); }
.ah__link.is-on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -11px; height: 2px; background: var(--accent); border-radius: 2px; }
.ah__drop { position: relative; }
.ah__drop.is-open > .ah__link svg { transform: rotate(180deg); }
.ah__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ah__search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-btn); color: var(--muted); font: 400 13px var(--f-body); transition: box-shadow .2s, color .2s; }
.ah__search:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.ah__search svg { width: 14px; height: 14px; }
.kbd { font: 500 10px var(--f-mono); padding: 2px 5px; border-radius: 4px; background: rgba(250, 250, 249, 0.06); color: var(--muted); letter-spacing: 0.04em; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-btn); background: rgba(26, 24, 22, 0.6); font: 500 12px var(--f-mono); color: var(--muted); white-space: nowrap; letter-spacing: 0.01em; }
.pill b { font-weight: 500; color: var(--text); }
.pill__sep { width: 1px; height: 14px; background: var(--line-2); }
.pill button { font: inherit; color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.pill button:hover { color: var(--text); }
.pill svg { width: 13px; height: 13px; }
/* header session + token: plain text, no box or dot */
.pill--session, .pill--token { box-shadow: none; background: none; padding: 0 6px; font: 400 13px var(--f-body); color: var(--muted); gap: 6px; }
a.pill--token:hover b { color: var(--accent); }
.ah__site { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 8px; margin-left: 4px; border-radius: 8px; color: var(--muted); font: 500 14px var(--f-body); box-shadow: inset 0 0 0 1px var(--line-btn); transition: color 160ms ease, box-shadow 160ms ease; }
.ah__site svg { width: 15px; height: 15px; }
.ah__site:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(250, 250, 249, 0.22); }
.dot { width: 6px; height: 6px; border-radius: 6px; background: var(--live); flex: none; position: relative; }
.dot--pulse::before { content: ''; position: absolute; inset: 0; border-radius: 8px; background: inherit; opacity: .3; animation: apRing 1.8s cubic-bezier(0.23, 1, 0.32, 1) infinite; }
.dot--pre, .dot--after { background: var(--amber); } .dot--overnight, .dot--weekend { background: #a8a29e; } .dot--regular { background: var(--live); }
@keyframes apRing { 0% { transform: scale(1); opacity: .35; } 100% { transform: scale(2.6); opacity: 0; } }
.iconbtn { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-btn); color: var(--text-2); transition: background-color .2s, color .2s; flex: none; }
.iconbtn:hover { background: rgba(250, 250, 249, 0.06); color: var(--text); }
.iconbtn svg { width: 16px; height: 16px; }
.ah .btn { height: 34px; padding: 0 12px 0 14px; }
.ah__burger { display: none; }
@media (max-width: 1279.98px) { .ah__search span, .ah__search .kbd, .pill--token .pill__ca, .pill--token .pill__px { display: none; } }
@media (max-width: 1023.98px) { .ah__nav, .pill--session, .pill--token, .ah__site span { display: none; } .ah__burger { display: grid; } }

/* mega menu (Eventide nav panel style) */
.mega { position: absolute; top: 44px; left: -12px; width: min(920px, calc(100vw - 32px)); padding: 8px; background: #1c1917; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(250, 250, 249, 0.1), 0 24px 48px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3); opacity: 0; transform: scale(.98); transform-origin: 10% 0; pointer-events: none; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); z-index: 60; }
.ah__drop.is-open .mega { opacity: 1; transform: none; pointer-events: auto; }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.mega__col { padding: 10px 6px 6px; display: flex; flex-direction: column; gap: 2px; }
.mega__col + .mega__col { border-left: 1px solid var(--line); }
.mega__h { font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding: 0 8px 10px; }
.mega__a { display: flex; gap: 10px; padding: 8px; border-radius: 8px; transition: background-color .2s; }
.mega__a:hover { background: rgba(250, 250, 249, 0.05); }
.mega__ic { width: 30px; height: 30px; border-radius: 8px; background: var(--raised); display: grid; place-items: center; flex: none; color: var(--text-2); }
.mega__ic svg { width: 15px; height: 15px; }
.mega__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega__t b { font: 500 13px/1.3 var(--f-body); color: var(--text); display: flex; align-items: center; gap: 6px; }
.mega__t span { font: 400 12px/1.45 var(--f-body); color: var(--muted); }
.mega__foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 6px; border-top: 1px solid var(--line); margin-top: 6px; font: 400 12px var(--f-body); color: var(--muted); }
.mega__foot a { color: var(--text); font-weight: 500; }
.menu-sm { position: absolute; top: 44px; left: -8px; min-width: 220px; padding: 6px; background: #1c1917; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(250, 250, 249, 0.1), 0 24px 48px -12px rgba(0, 0, 0, .6); opacity: 0; transform: scale(.98); pointer-events: none; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); z-index: 60; display: flex; flex-direction: column; }
.ah__drop.is-open .menu-sm { opacity: 1; transform: none; pointer-events: auto; }
.menu-sm a, .menu-sm button { text-align: left; padding: 9px 12px; border-radius: 8px; font: 500 13px var(--f-body); color: var(--text-2); transition: background-color .2s, color .2s; }
.menu-sm a:hover, .menu-sm button:hover { background: rgba(250, 250, 249, 0.05); color: var(--text); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px; border-radius: 5px; font: 500 10.5px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; background: rgba(250, 250, 249, 0.06); color: var(--muted); white-space: nowrap; }
.chip--live { background: rgba(16, 236, 144, 0.1); color: var(--live); }
.chip--live::before { content: ''; width: 5px; height: 5px; border-radius: 5px; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.chip--acc { background: rgba(255, 106, 31, 0.12); color: var(--accent); }
.chip--model { background: rgba(245, 181, 68, 0.1); color: var(--amber); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ------------------------------------------------------------------ page + panels */
.page-app { padding: 24px 16px 64px; max-width: 1440px; margin: 0 auto; }
.page-app--wide { max-width: none; padding: 8px; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ph__t { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ph h1 { font: 600 34px/1.1 var(--f-display); letter-spacing: -0.03em; color: var(--text); }
.ph__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.what { font: 400 14px/1.6 var(--f-body); color: var(--muted); margin: -8px 0 20px; max-width: 760px; }
.what b { color: var(--text-2); font-weight: 500; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.panel__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel__h h2, .panel__h h3 { font: 500 14px/1.3 var(--f-body); color: var(--text); display: flex; align-items: center; gap: 8px; }
.panel__b { padding: 16px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1023.98px) { .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 639.98px) { .g2, .g4, .g5 { grid-template-columns: 1fr; } }
.stat { padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat__l { font: 400 12px var(--f-body); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat__v { font: 600 26px/1.1 var(--f-display); letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat__v.num { font: 500 22px/1.2 var(--f-mono); letter-spacing: -0.01em; }
.stat__s { font: 400 12px/1.5 var(--f-body); color: var(--dim); }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; font-size: 13px; }
.kv > span:first-child { color: var(--muted); }
.kv > span:last-child { color: var(--text); text-align: right; }
.tip { text-decoration: underline dotted rgba(250, 250, 249, 0.35); text-underline-offset: 3px; cursor: help; }
.note { display: flex; gap: 10px; align-items: flex-start; font: 400 12.5px/1.55 var(--f-body); color: var(--dim); padding: 12px 14px; border-top: 1px solid var(--line); }
.note svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--muted); }
.info { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 400 13px/1.55 var(--f-body); color: var(--muted); background: rgba(250, 250, 249, 0.02); }
.ok-box svg { width: 14px; height: 14px; flex: none; }
.ok-box { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(16, 236, 144, 0.06); border: 1px solid rgba(16, 236, 144, 0.25); font: 500 13px var(--f-body); color: var(--live); }
.lock-btn { width: 100%; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; font: 500 14px var(--f-body); background: rgba(250, 250, 249, 0.05); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-btn); cursor: not-allowed; }
.lock-btn svg { width: 14px; height: 14px; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font: 400 12px var(--f-body); color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.tbl tbody tr { transition: background-color .15s; }
.tbl tbody tr.link { cursor: pointer; }
.tbl tbody tr.link:hover, .tbl tbody tr:hover { background: rgba(250, 250, 249, 0.025); }
.tbl-wrap { overflow-x: auto; }
.empty { padding: 20px 16px; font-size: 13px; color: var(--muted); }
th.sort { cursor: pointer; user-select: none; } th.sort:hover { color: var(--text); }

/* form controls */
.seg { display: inline-flex; padding: 3px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); position: relative; }
.seg button { position: relative; z-index: 1; height: 30px; padding: 0 12px; border-radius: 7px; font: 500 13px var(--f-body); color: var(--muted); transition: color .2s; white-space: nowrap; }
.seg button.is-on { color: #0a0908; }
.seg__k { position: absolute; top: 3px; left: 0; height: 30px; border-radius: 7px; background: var(--text); transition: transform .35s cubic-bezier(.34, 1.3, .5, 1), width .35s cubic-bezier(.34, 1.3, .5, 1); }
.seg--full { display: flex; } .seg--full button { flex: 1; }
.seg--buy .seg__k { background: var(--text); } .seg--write .seg__k { background: var(--accent); } .seg--write button.is-on { color: #0a0908; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 8px; overflow-x: auto; scrollbar-width: none; position: relative; }
.tabs button { position: relative; height: 40px; padding: 0 10px; font: 500 13px var(--f-body); color: var(--muted); white-space: nowrap; transition: color .2s; }
.tabs button:hover { color: var(--text); }
.tabs button.is-on { color: var(--text); }
.tabs button.is-on::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.field { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 8px; background: var(--bg); border: 1px solid rgba(250, 250, 249, 0.12); transition: border-color .16s; }
.field:focus-within { border-color: rgba(250, 250, 249, 0.28); }
.field label, .field .lbl { font: 400 13px var(--f-body); color: var(--muted); white-space: nowrap; }
.field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: 500 14px var(--f-mono); text-align: right; }
.field input::placeholder { color: #78716c; }
.field .suf { font: 400 13px var(--f-body); color: var(--muted); }
.field--left input { text-align: left; font-family: var(--f-body); font-weight: 400; }
.sel { position: relative; }
.sel select { appearance: none; -webkit-appearance: none; width: 100%; height: 40px; padding: 0 32px 0 12px; border-radius: 8px; background: var(--bg); border: 1px solid rgba(250, 250, 249, 0.12); color: var(--text); font: 500 13px var(--f-body); cursor: pointer; }
.sel::after { content: ''; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.chk { display: flex; align-items: center; gap: 10px; font: 400 13px var(--f-body); color: var(--text-2); cursor: pointer; user-select: none; }
.chk input { appearance: none; width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(250, 250, 249, 0.25); background: var(--bg); display: grid; place-items: center; margin: 0; flex: none; }
.chk input:checked { background: var(--text); border-color: var(--text); }
.chk input:checked::after { content: ''; width: 8px; height: 4px; border-left: 1.5px solid #0a0908; border-bottom: 1.5px solid #0a0908; transform: translateY(-1px) rotate(-45deg); }
.chk input:disabled { opacity: .7; }
.slider { position: relative; height: 24px; display: flex; align-items: center; }
.slider input[type=range] { width: 100%; appearance: none; -webkit-appearance: none; background: transparent; height: 24px; margin: 0; }
.slider input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--text) var(--p, 0%), rgba(250, 250, 249, 0.12) var(--p, 0%)); border-radius: 2px; }
.slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 4px; background: var(--text); margin-top: -6px; cursor: grab; }
.slider input[type=range]::-moz-range-track { height: 2px; background: rgba(250, 250, 249, 0.12); }
.slider input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 4px; background: var(--text); border: 0; }
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 8px; background: var(--bg); border: 1px solid rgba(250, 250, 249, 0.12); color: var(--muted); }
.search svg { width: 14px; height: 14px; flex: none; }
.search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font: 400 13px var(--f-body); min-width: 0; }

/* logos */
.lg { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; flex: none; background: #f5f5f4; color: #0a0908; overflow: hidden; }
.lg svg { width: 60%; height: 60%; fill: currentColor; }
.lg img { width: 74%; height: 74%; object-fit: contain; display: block; }
.lg.is-dark { background: #1c1917; box-shadow: inset 0 0 0 1px rgba(250, 250, 249, 0.1); }
.lg--eth { background: #627eea; color: #fff; } .lg--brand { background: #0a0908; } .lg--brand img { width: 100%; height: 100%; }
.lg--mono { background: linear-gradient(135deg, #292524, #110f0d); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255, 106, 31, 0.4); font: 600 8px var(--f-mono); letter-spacing: -.02em; }
.lg--lg { width: 34px; height: 34px; } .lg--xl { width: 40px; height: 40px; }
.mk { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mk b { font: 500 13px var(--f-body); color: var(--text); }

/* sheets + dialogs */
.veil { position: fixed; inset: 0; z-index: 80; background: rgba(10, 9, 8, 0.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s var(--ease-out); }
.veil.is-on { opacity: 1; }
.sheet { position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #1c1917; border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s var(--ease-out); }
.sheet.is-on { transform: none; }
.sheet--dialog { top: 50%; left: 50%; right: auto; bottom: auto; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 48px); border: 1px solid rgba(250, 250, 249, 0.1); border-radius: 14px; transform: translate(-50%, -48%) scale(.98); opacity: 0; transition: transform .3s var(--ease-out), opacity .25s var(--ease-out); box-shadow: 0 24px 64px -12px rgba(0, 0, 0, .7); }
.sheet--dialog.is-on { transform: translate(-50%, -50%); opacity: 1; }
@media (max-width: 639.98px) { .sheet { top: auto; left: 0; width: 100vw; max-height: 92dvh; border-left: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; transform: translateY(100%); } .sheet--dialog { top: auto; bottom: 0; left: 0; right: 0; width: 100vw; border-radius: 16px 16px 0 0; transform: translateY(100%); opacity: 1; } .sheet--dialog.is-on { transform: none; } }
.sheet__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sheet__h h3 { font: 600 18px/1.3 var(--f-display); letter-spacing: -0.015em; color: var(--text); }
.sheet__h p { font: 400 13px/1.5 var(--f-body); color: var(--muted); margin-top: 2px; }
.sheet__b { padding: 18px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.sheet__f { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.x { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); flex: none; }
.x:hover { color: var(--text); background: rgba(250, 250, 249, 0.06); }
.x svg { width: 16px; height: 16px; }
.wallet-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); transition: border-color .2s, background-color .2s; width: 100%; text-align: left; }
.wallet-row:hover { border-color: var(--line-2); background: rgba(250, 250, 249, 0.02); }
.wallet-row img, .wallet-row .wic { width: 32px; height: 32px; border-radius: 8px; flex: none; background: var(--raised); display: grid; place-items: center; }
.wallet-row b { font: 500 14px var(--f-body); color: var(--text); display: flex; gap: 8px; align-items: center; }
.wallet-row span.s { font: 400 12px var(--f-body); color: var(--muted); }
.wallet-row em { margin-left: auto; font: 500 12px var(--f-body); font-style: normal; color: var(--text-2); }

/* command palette */
.cmdk { position: fixed; z-index: 90; top: 12vh; left: 50%; width: min(620px, calc(100vw - 24px)); transform: translateX(-50%) scale(.98); opacity: 0; transition: transform .2s var(--ease-out), opacity .2s; background: #1c1917; border: 1px solid rgba(250, 250, 249, 0.1); border-radius: 14px; box-shadow: 0 24px 64px -12px rgba(0, 0, 0, .7); overflow: hidden; }
.cmdk.is-on { transform: translateX(-50%); opacity: 1; }
.cmdk__in { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 52px; border-bottom: 1px solid var(--line); }
.cmdk__in input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font: 400 15px var(--f-body); }
.cmdk__in svg { width: 16px; height: 16px; color: var(--muted); }
.cmdk__list { max-height: 60vh; overflow-y: auto; padding: 6px; }
.cmdk__g { font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 10px 10px 6px; }
.cmdk__i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; text-align: left; font: 400 13px var(--f-body); color: var(--text-2); }
.cmdk__i.is-on { background: rgba(250, 250, 249, 0.06); color: var(--text); }
.cmdk__i span.d { color: var(--dim); margin-left: auto; font-size: 12px; }

/* status footer */
.af { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 28px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: rgba(17, 15, 13, 0.95); border-top: 1px solid var(--line); font: 400 11.5px var(--f-body); color: var(--dim); }
.af__st { display: inline-flex; align-items: center; gap: 6px; height: 18px; padding: 0 7px; border-radius: 4px; background: rgba(16, 236, 144, 0.08); color: var(--live); font: 500 11px var(--f-mono); }
.af__st.is-bad { background: rgba(240, 82, 58, 0.1); color: var(--red); } .af__st.is-warn { background: rgba(245, 181, 68, 0.1); color: var(--amber); }
.af__st .dot { background: currentColor; }
.af a { color: var(--muted); } .af a:hover { color: var(--text); }
.af__r { margin-left: auto; display: flex; gap: 16px; }
body.app { padding-bottom: 28px; }
@media (max-width: 1023.98px) { .af { display: none; } body.app { padding-bottom: 0; } }

/* skeleton + 404 */
.sk { background: linear-gradient(90deg, rgba(250, 250, 249, 0.04), rgba(250, 250, 249, 0.09), rgba(250, 250, 249, 0.04)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 6px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.nf { min-height: calc(100dvh - 140px); display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.nf__in { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 460px; }
.nf__mark { width: 120px; height: 72px; }
.nf h1 { font: 600 44px/1.05 var(--f-display); letter-spacing: -.035em; }

/* toast */
.toast { position: fixed; z-index: 95; bottom: 44px; left: 50%; transform: translate(-50%, 12px); opacity: 0; transition: opacity .2s, transform .25s var(--ease-out); padding: 10px 14px; border-radius: 10px; background: #1c1917; border: 1px solid var(--line-2); font: 500 13px var(--f-body); color: var(--text); box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .6); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* view enter */
.view { animation: viewIn .45s var(--ease-out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }

/* ------------------------------------------------------------------ trade terminal */
.tr-page { padding: 8px; }
.tr-grid { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) 292px 300px; grid-template-rows: 56px minmax(0, 1fr) 232px; grid-template-areas: "stats chain ticket" "chart chain ticket" "bottom bottom ticket"; height: max(720px, calc(100dvh - 56px - 28px - 16px)); }
.tr-stats { grid-area: stats; display: flex; align-items: center; gap: 22px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
.tr-chart { grid-area: chart; display: flex; flex-direction: column; overflow: hidden; }
.tr-chain { grid-area: chain; display: flex; flex-direction: column; overflow: hidden; }
.tr-ticket { grid-area: ticket; overflow-y: auto; scrollbar-width: thin; }
.tr-bottom { grid-area: bottom; overflow: hidden; display: flex; flex-direction: column; }
.tr-bottom [data-bbody] { overflow: auto; flex: 1; }
@media (max-width: 1279.98px) { .tr-grid { grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: 56px minmax(520px, 1fr) 232px; grid-template-areas: "stats ticket" "chart ticket" "bottom ticket"; } .tr-chain { display: none; } }
@media (max-width: 1023.98px) { .tr-grid { display: flex; flex-direction: column; height: auto; } .tr-chart { height: 460px; } .tr-ticket { display: none; } .tr-bottom { min-height: 220px; } .tr-page { padding-bottom: 80px; } }
.tr-mkt { display: flex; align-items: center; gap: 10px; flex: none; }
.tr-picker { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 2px; border-radius: 8px; transition: background-color .2s; }
.tr-picker:hover { background: rgba(250, 250, 249, 0.05); }
.tr-picker b { font: 600 20px var(--f-display); letter-spacing: -0.02em; }
.tr-picker svg { width: 14px; height: 14px; color: var(--muted); }
.tr-st { display: flex; flex-direction: column; gap: 3px; flex: none; }
.tr-st > span { font: 400 11.5px var(--f-body); color: var(--muted); }
.tr-st b { font: 500 13px var(--f-mono); color: var(--text); white-space: nowrap; display: flex; align-items: center; }
.tr-st b i { font-style: normal; font-size: 11px; margin-left: 6px; }
.tr-ctabs .tabs { padding: 0 6px; }
.tr-cbody { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.tr-tool { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.tr-ranges { display: flex; gap: 2px; }
.tr-ranges button { height: 26px; min-width: 30px; padding: 0 8px; border-radius: 6px; font: 500 12px var(--f-mono); color: var(--muted); display: grid; place-items: center; transition: color .2s, background-color .2s; }
.tr-ranges button svg { width: 15px; height: 15px; }
.tr-ranges button:hover { color: var(--text); } .tr-ranges button.is-on { color: var(--text); background: var(--raised); box-shadow: inset 0 0 0 1px rgba(250, 250, 249, 0.1); }
.tr-sep { width: 1px; height: 18px; background: var(--line); }
.tr-int { margin-left: auto; font-size: 11.5px; }
.tr-legend { padding: 0 14px 6px; font-size: 11.5px; color: var(--text-2); display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.tr-legend i { font-style: normal; color: var(--dim); margin-left: 4px; }
.tr-canvas { flex: 1; min-height: 260px; position: relative; }
.tr-chart:fullscreen { background: var(--bg); border-radius: 0; }
.tr-pohead { display: flex; align-items: center; gap: 12px; padding: 14px 16px; flex-wrap: wrap; }
.tr-pohead b { font: 500 14px var(--f-body); }
.tr-lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-left: auto; }
.tr-lg i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; margin-left: 8px; }
[data-po] { padding: 0 12px; }
.tr-poread { padding: 8px 16px 16px; font-size: 12.5px; color: var(--muted); min-height: 36px; }
.tr-fund { display: flex; align-items: flex-end; gap: 8px; height: 220px; padding: 20px 16px 8px; }
.tr-fcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.tr-fbars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.tr-fbars i { width: 40%; max-width: 18px; border-radius: 3px 3px 0 0; opacity: .85; transition: opacity .2s; } .tr-fbars i:hover { opacity: 1; }
.tr-fcol span { font-size: 11px; color: var(--muted); }
.tr-chbody { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.tr-rh { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 6px 14px; font: 400 11.5px var(--f-body); color: var(--muted); border-bottom: 1px solid var(--line); }
.tr-rh span:nth-child(n+2) { text-align: right; }
.tr-rows { flex: 1; overflow-y: auto; scrollbar-width: thin; }
.tr-blk { font: 500 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 8px 14px 4px; }
.tr-row { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; width: 100%; padding: 5px 14px; font-size: 12.5px; text-align: right; transition: background-color .15s; }
.tr-row span:first-child { text-align: left; }
.tr-row.call span:first-child { color: var(--live); } .tr-row.put span:first-child { color: var(--red); }
.tr-row span { position: relative; z-index: 1; }
.tr-row i { position: absolute; right: 0; top: 2px; bottom: 2px; background: rgba(250, 250, 249, 0.04); border-radius: 2px 0 0 2px; pointer-events: none; }
.tr-row:hover { background: rgba(250, 250, 249, 0.04); }
.tr-row.is-sel { background: rgba(255, 106, 31, 0.1); box-shadow: inset 2px 0 var(--accent); }
.tr-spot { display: flex; justify-content: space-between; padding: 7px 14px; background: rgba(255, 106, 31, 0.08); color: var(--accent); font-size: 12px; border-top: 1px solid rgba(255, 106, 31, 0.2); border-bottom: 1px solid rgba(255, 106, 31, 0.2); }
.tr-spot span { color: var(--muted); }
.tr-chfoot { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.5; color: var(--dim); }
.tr-gt td, .tr-gt th { padding: 6px 8px; font-size: 12px; }
.tr-gt tr.is-atm td { background: rgba(255, 106, 31, 0.08); }
.tr-chbody .tbl-wrap, .tr-chbody > table { overflow: auto; }
.tr-chbody > .tbl { display: block; overflow: auto; flex: 1; }
.tr-tk { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.tr-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tr-2 .field { padding-right: 4px; }
.tr-sum { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 6px; }
.tr-acct { border-top: 1px solid var(--line); padding-top: 8px; }
.tr-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(17, 15, 13, 0.95); border-top: 1px solid var(--line); }
.tr-mbar .btn { justify-content: center; height: 44px; }
.tr-write { background: var(--accent); color: #0a0908; }
@media (max-width: 1023.98px) { .tr-mbar.only-sm { display: grid !important; } }
.vm-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.vm-row b { font: 500 13px var(--f-body); }
.sv-big { padding: 24px 20px 18px; display: flex; flex-direction: column; gap: 8px; }
.sv-amt { font: 600 56px/1 var(--f-display); letter-spacing: -0.03em; }
.sv-int { background: linear-gradient(180deg, #fafaf9, #a6a09b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sv-dec { color: rgba(255, 106, 31, 0.6); font-family: var(--f-mono); font-size: 0.62em; font-weight: 500; }
.sv-bar { height: 4px; border-radius: 4px; background: rgba(250, 250, 249, 0.08); overflow: hidden; margin-top: 6px; }
.sv-bar i { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }
@media (max-width: 1023.98px) { .page-app > .grid[style*="360px"] { grid-template-columns: 1fr !important; } .sv-amt { font-size: 40px; } }
.ys-row { display: grid; grid-template-columns: 110px 1fr 210px; align-items: center; gap: 14px; padding: 7px 4px; border-radius: 6px; transition: background-color .15s; }
.ys-row:hover { background: rgba(250, 250, 249, 0.03); }
.ys-track { display: flex; height: 10px; border-radius: 5px; background: rgba(250, 250, 249, 0.05); overflow: hidden; }
.ys-track i { display: block; height: 100%; }
.ys-v { text-align: right; font-size: 12.5px; }
@media (max-width: 639.98px) { .ys-row { grid-template-columns: 80px 1fr; } .ys-v { grid-column: 1 / -1; text-align: left; } }
/* tools index */
.tl-chips { display: flex; gap: 4px; padding: 3px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); }
.tl-chips button { height: 32px; padding: 0 12px; border-radius: 7px; font: 500 13px var(--f-body); color: var(--muted); transition: background-color .2s, color .2s; }
.tl-chips button.is-on { background: var(--text); color: #0a0908; }
.tl-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tl-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, transform .3s var(--ease-out), box-shadow .3s; }
.tl-card:hover { border-color: rgba(255, 106, 31, 0.45); box-shadow: 0 0 0 4px rgba(255, 106, 31, 0.06); transform: translateY(-2px); }
.tl-top { display: flex; align-items: center; gap: 8px; }
.tl-top .dim { margin-left: auto; font-size: 11px; }
.tl-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(160deg, #2a2420, #141210); box-shadow: inset 0 0 0 1px rgba(250, 250, 249, 0.08); color: var(--text-2); }
.tl-ic svg { width: 16px; height: 16px; }
.tl-card b { font: 500 15px var(--f-body); color: var(--text); }
.tl-card p { font: 400 13px/1.5 var(--f-body); color: var(--muted); flex: 1; }
.tl-card .t-eyebrow { font-size: 10.5px; }
/* strategist */
.sg { max-width: 920px; padding-bottom: 200px; }
.sg-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 0 28px; transition: padding .4s var(--ease-out); }
.sg-hero.is-compact { padding: 8px 0 8px; } .sg-hero.is-compact .t-lead, .sg-hero.is-compact .sg-mark { display: none; } .sg-hero.is-compact h1 { font-size: 26px; }
.sg-mark { width: 140px; height: 84px; }
.sg-hero h1 { font: 600 52px/1.05 var(--f-display); letter-spacing: -0.04em; background: linear-gradient(180deg, #fafaf9, #a6a09b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sg-hero .t-lead { max-width: 560px; }
.sg-sugg { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 720px; }
.sg-sugg button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); font: 400 13px var(--f-body); color: var(--text-2); transition: border-color .2s, color .2s, background-color .2s; }
.sg-sugg button:hover { border-color: rgba(255, 106, 31, 0.5); color: var(--text); background: rgba(255, 106, 31, 0.06); }
.sg-turns { display: flex; flex-direction: column; gap: 22px; }
.sg-turn { display: flex; flex-direction: column; gap: 12px; animation: viewIn .45s var(--ease-out) both; scroll-margin-top: 70px; }
.sg-you { align-self: flex-end; max-width: 80%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--raised); color: var(--text); font-size: 14.5px; }
.sg-think { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; padding: 8px 0; }
.sg-read { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sg-bar { position: fixed; left: 0; right: 0; bottom: 28px; padding: 12px 16px 16px; background: linear-gradient(180deg, rgba(17, 15, 13, 0), #110f0d 30%); z-index: 20; }
.sg-form { max-width: 888px; margin: 0 auto; border-radius: 14px; background: var(--surface); border: 1px solid rgba(250, 250, 249, 0.14); padding: 12px 12px 10px 14px; transition: border-color .16s; }
.sg-form:focus-within { border-color: rgba(250, 250, 249, 0.3); }
.sg-form textarea { width: 100%; resize: none; background: transparent; border: 0; outline: 0; color: var(--text); font: 400 15px/1.5 var(--f-body); max-height: 180px; }
.sg-form textarea::placeholder { color: #78716c; }
.sg-form__f { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sg-form__f .t-small { display: flex; align-items: center; gap: 6px; font-size: 12px; } .sg-form__f svg { width: 13px; height: 13px; color: var(--accent); }
.sg-foot { max-width: 888px; margin: 8px auto 0; font-size: 11.5px; text-align: center; }
@media (max-width: 1023.98px) { .sg-bar { bottom: 0; } }
.bt-params { position: sticky; top: 72px; }
@media (max-width: 1023.98px) { .bt-params { position: static; } .page-app > .grid[style*="320px"] { grid-template-columns: 1fr !important; } }
.mk-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.mk-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mk-h { display: flex; gap: 12px; align-items: center; }
.mk-h b { display: block; font: 500 15px var(--f-body); }
.mk-stats { gap: 6px; } .mk-stats div { display: flex; flex-direction: column; gap: 2px; } .mk-stats span { font-size: 11.5px; color: var(--muted); } .mk-stats b { font: 500 14px var(--f-mono); }
.mk-acts { display: flex; gap: 8px; } .mk-acts .btn { flex: 1; justify-content: center; }
.mk-following:hover { background: rgba(240, 82, 58, 0.12) !important; color: var(--red) !important; }
.rk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rk-chips button { height: 30px; padding: 0 10px; border-radius: 7px; font: 500 12.5px var(--f-body); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-btn); transition: background-color .2s, color .2s; }
.rk-chips button:hover { color: var(--text); } .rk-chips button.is-on { background: var(--text); color: #0a0908; box-shadow: none; }
@media (max-width: 1023.98px) { .page-app > .grid[style*="minmax(0,1.4fr)"] { grid-template-columns: 1fr !important; } }
.ex-steps { display: flex; align-items: stretch; gap: 8px; padding: 16px; }
.ex-step { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.ex-step b { font: 500 14px var(--f-body); color: var(--text); }
.ex-arrow { display: grid; place-items: center; color: var(--dim); } .ex-arrow svg { width: 16px; height: 16px; }
@media (max-width: 1023.98px) { .ex-steps { flex-direction: column; } .ex-arrow { transform: rotate(90deg); } }
.hd-edit { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hd-row { display: flex; gap: 8px; width: 100%; align-items: center; }
.cm-bar { height: 6px; border-radius: 6px; background: rgba(250, 250, 249, 0.04); margin-top: 4px; overflow: hidden; } .cm-bar i { display: block; height: 100%; border-radius: 6px; }
.nft-stage { display: grid; place-items: center; padding: 24px; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(60% 50% at 50% 30%, rgba(255, 106, 31, 0.08), transparent 70%), var(--surface); }
.nft-stage svg { width: min(420px, 100%); height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); }
