@font-face {
    font-family: Onest;
    src: url(onest-latin-wght-normal.woff2) format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: Onest;
    src: url(onest-cyrillic-wght-normal.woff2) format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
    font-family: JetBrains;
    src: url(jetbrains-mono-latin-wght-normal.woff2) format("woff2");
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
}
@font-face {
    font-family: JetBrains;
    src: url(jetbrains-mono-cyrillic-wght-normal.woff2) format("woff2");
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
:root {
    color-scheme: dark;
    --bg: #101016;
    --panel: #181820;
    --line: #2b2a36;
    --text: #f2f0fa;
    --muted: #a4a1b4;
    --accent: #c3b2ff;
    --accent-ink: #20173d;
    --green: #8ee3b0;
    --red: #ffa4a8;
    --mono: JetBrains, ui-monospace, monospace;
    font: 16px/1.48 Onest, system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .47; }
a, button, input, label.direction { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:disabled:focus-visible { outline: none; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.45rem, 4.5vw, 3.5rem); letter-spacing: -.075em; line-height: 1.03; font-weight: 760; }
h1 span, .coin, .wordmark-dot, .footer-brand span { color: var(--accent); }
h2 { font-weight: 680; font-size: 1.25rem; line-height: 1.24; letter-spacing: -.035em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--green); }
.down { color: var(--red); }
.neutral { color: var(--muted); }
.wrap { width: min(1200px, calc(100% - 5rem)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: absolute; z-index: 2; top: .75rem; left: 1rem; padding: .75rem; background: var(--panel); }
.topbar { background: #14141c; border-bottom: 1px solid #292834; }
.header-inner { min-height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.25rem; align-items: center; }
.wordmark, .footer-brand { font-size: 1.65rem; font-weight: 790; letter-spacing: -.075em; }
.wordmark { display: flex; align-items: center; justify-self: start; }
.brand-icon { display: flex; align-items: end; justify-content: center; gap: 2px; width: 32px; height: 32px; padding: 8px 0; margin-right: .55rem; border-radius: 9px; background: var(--accent); }
.brand-icon i { width: 3px; height: 5px; background: #2c2150; border-radius: 2px; }
.brand-icon i:nth-child(2) { height: 9px; }
.brand-icon i:nth-child(3) { height: 14px; }
.topnav { display: flex; gap: .4rem; }
.topnav a { padding: .5rem .95rem; border-radius: 8px; color: var(--muted); font-size: .91rem; font-weight: 550; }
.topnav a:hover, .topnav a[aria-current] { background: #272536; color: var(--text); }
.identity { display: flex; align-items: center; justify-content: end; gap: .85rem; min-width: 0; }
.identity-name { min-width: 0; display: flex; align-items: center; gap: .55rem; font-size: .875rem; }
.identity-name > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; background: #31284a; color: var(--accent); font-weight: 680; }
.exit { background: none; border: 0; color: var(--muted); padding: .35rem 0; font-size: .875rem; }
.exit:hover { color: var(--text); }
.user-icon { display: inline-block; position: relative; width: 13px; height: 14px; vertical-align: text-bottom; }
.user-icon::before, .user-icon::after { position: absolute; left: 50%; transform: translateX(-50%); content: ""; border: 1.4px solid currentColor; }
.user-icon::before { width: 4px; height: 4px; top: 0; border-radius: 50%; }
.user-icon::after { width: 10px; height: 5px; bottom: 1px; border-radius: 6px 6px 2px 2px; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem .95rem; border: 1px solid transparent; border-radius: 9px; font-weight: 640; font-size: .89rem; text-align: center; line-height: 1.24; white-space: nowrap; }
.button.outline { background: transparent; border-color: #3b384b; }
.button.outline:hover:not(:disabled) { border-color: #877baf; background: #252236; }
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.primary:hover:not(:disabled) { background: #d4c9ff; }
.button.full { width: 100%; min-height: 46px; }
.button.small { min-height: 34px; padding: .38rem .65rem; font-size: .875rem; }
.sign-in { color: #e4ddff; }
.content { min-height: 65vh; padding-top: 2.45rem; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.3rem; margin-bottom: 1.65rem; }
.page-heading p { margin-top: .65rem; color: var(--muted); }
.balance-link { display: flex; flex-direction: column; align-items: end; min-width: 90px; padding-block: .25rem; white-space: nowrap; }
.balance-link > span { color: var(--muted); font-size: .875rem; }
.balance-link strong { font: 670 1.35rem/1.4 var(--mono); }
.balance-link:hover strong { color: var(--accent); }
.ticker-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.ticker-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; min-width: 0; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: .8rem .86rem; }
.ticker-card:hover, .ticker-card.chosen { border-color: #5f527e; background: #211d30; }
.symbol-icon { width: 35px; height: 35px; display: inline-grid; place-items: center; flex: 0 0 auto; background: #292439; color: #d8caff; border-radius: 9px; font-weight: 740; }
.symbol-icon.large { width: 43px; height: 43px; border-radius: 11px; font-size: 1.1rem; }
.symbol-aapl { background: #2e2c3c; color: #f0eeff; }
.symbol-nvda, .symbol-sber { background: #20352e; color: #a7e9af; }
.symbol-ydex, .symbol-tsla { background: #3b252d; color: #ff9a9e; }
.symbol-msft, .symbol-gazp { background: #223049; color: #a7c8ff; }
.symbol-amzn, .symbol-t { background: #352c23; color: #f5ce86; }
.ticker-name, .ticker-value { display: flex; flex-direction: column; min-width: 0; gap: .1rem; }
.ticker-name strong { font-size: .9rem; }
.ticker-name span { color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .81rem; }
.ticker-value { text-align: right; white-space: nowrap; font: 500 .8rem/1.55 var(--mono); }
.ticker-value strong { font-weight: 610; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.market-grid { display: grid; grid-template-columns: minmax(0, 2.13fr) minmax(292px, 1fr); gap: 1rem; align-items: stretch; }
.chart-panel, .forecast-panel { min-width: 0; padding: 1.35rem 1.45rem; }
.chart-panel { display: flex; flex-direction: column; }
.chart-heading, .forecast-head, .listings-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.stock-label { display: flex; align-items: center; gap: .7rem; }
.stock-subtitle { margin-top: .15rem; font-size: .875rem; }
.segment { display: inline-flex; align-items: center; gap: .16rem; padding: .22rem; background: #111118; border: 1px solid #2a2936; border-radius: 8px; }
.segment button { padding: .35rem .62rem; border: 0; border-radius: 5px; white-space: nowrap; background: transparent; color: var(--muted); font-size: .875rem; }
.segment button:hover { color: var(--text); }
.segment button[aria-pressed="true"] { color: #e8dfff; background: #302846; font-weight: 620; }
.quote-line { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.15rem; }
.quote-line > strong { font: 670 clamp(1.6rem, 3.5vw, 2.25rem)/1.25 var(--mono); letter-spacing: -.07em; }
.quote-delta { display: inline-block; border-radius: 6px; padding: .24rem .39rem; background: #22212b; font: 600 .83rem/1.4 var(--mono); }
.quote-delta.up { background: #22352e; }
.quote-delta.down { background: #38262d; }
.quote-caption { color: var(--muted); font-size: .875rem; margin-top: .22rem; }
.plot { position: relative; flex: 1; min-height: 235px; margin-top: .55rem; }
.plot canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.chart-tooltip { position: absolute; z-index: 1; top: 2rem; pointer-events: none; padding: .45rem .58rem; background: #252139; border: 1px solid #55496f; border-radius: 7px; color: var(--text); white-space: nowrap; font: 500 .75rem/1.5 var(--mono); }
.chart-empty { display: grid; place-items: center; flex: 1; min-height: 200px; }
.chart-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; border-top: 1px solid var(--line); padding-top: .67rem; color: var(--muted); font-size: .875rem; }
.chart-foot a { color: #d6c9ff; }
.chart-foot a:hover { text-decoration: underline; }
.chart-key { display: inline-flex; align-items: center; gap: .5rem; }
.chart-key::before { width: .75rem; height: 2px; background: var(--accent); content: ""; }
.forecast-panel { background: linear-gradient(155deg, #211b31, #191923 58%); border-color: #3b3250; }
.term { color: #e2d8ff; background: #332842; border-radius: 6px; padding: .26rem .53rem; font-size: .875rem; white-space: nowrap; }
.forecast-company { color: var(--muted); font-size: .9rem; margin-top: .24rem; }
.forecast-date, .payout-line { display: flex; justify-content: space-between; align-items: center; gap: .65rem; font-size: .875rem; }
.forecast-date { margin: .95rem 0 .95rem; padding: .61rem .72rem; background: #171522; border: 1px solid #312a44; border-radius: 8px; }
.forecast-date span, .payout-line span { color: var(--muted); }
.forecast-date strong, .payout-line strong { font: 600 .875rem/1.4 var(--mono); white-space: nowrap; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset:disabled > :not(legend) { opacity: .64; }
fieldset:disabled .direction { cursor: default; }
legend, .amount-label, .credit-grid label { margin-bottom: .38rem; padding: 0; font-size: .875rem; font-weight: 600; }
.direction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .48rem; }
.direction { position: relative; display: block; cursor: pointer; }
.direction input { position: absolute; opacity: 0; }
.direction span { display: flex; justify-content: center; align-items: center; gap: .38rem; padding: .52rem .2rem; border: 1px solid #42394e; border-radius: 8px; color: #d9d4e5; font-size: .875rem; font-weight: 650; }
.direction b { font-size: 1.12rem; line-height: 1; }
.direction.rise b { color: var(--green); }
.direction.fall b { color: var(--red); }
.direction.rise input:checked + span { background: #253931; border-color: #547b67; color: var(--green); }
.direction.fall input:checked + span { background: #3c2932; border-color: #9a5b68; color: var(--red); }
.direction input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.amount-label { display: block; margin-top: .78rem; }
.amount-control { display: flex; align-items: center; border: 1px solid #393449; background: #14141c; border-radius: 8px; min-width: 0; }
.amount-control:focus-within { border-color: #8c7bad; }
.amount-control input { width: 100%; min-width: 0; padding: .5rem .65rem; border: 0; outline: 0; background: transparent; font: 600 .95rem/1.4 var(--mono); appearance: textfield; }
.amount-control input::-webkit-inner-spin-button { appearance: none; }
.amount-control span { color: var(--accent); padding-right: .72rem; }
.payout-line { margin: .77rem 0 .83rem; }
.payout-line strong { color: var(--accent); }
.forecast-note, .form-note { color: var(--muted); font-size: .875rem; line-height: 1.39; }
.forecast-note { margin-top: .75rem; }
.form-note { color: var(--red); }
.listings { margin-top: 1rem; overflow: hidden; }
.listings-heading { padding: .93rem 1.4rem; }
.table-area { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; white-space: nowrap; font-size: .875rem; }
thead { color: var(--muted); background: #14141c; }
th, td { text-align: left; padding: .63rem 1.05rem; border-top: 1px solid #282733; }
th:first-child { padding-left: 1.45rem; }
td:last-child, th:last-child { padding-right: 1.45rem; }
thead th { font-weight: 530; }
tbody th { font-weight: 600; }
tbody tr:hover, tr.selected-row { background: #201d2c; }
.table-company { display: inline-flex; gap: .7rem; align-items: center; }
.table-company:hover { color: var(--accent); }
.table-company .symbol-icon { width: 32px; height: 32px; }
.table-company small, td small { display: block; font-size: .8rem; font-weight: 480; }
.table-company small, td small:not(.up, .down) { color: var(--muted); }
.status { display: inline-block; padding: .18rem .42rem; border-radius: 5px; background: #2b2938; color: #d4c9ef; }
.status-won { background: #22352e; color: var(--green); }
.status-lost { background: #38262d; color: var(--red); }
.empty-table { padding: .85rem 1.45rem 1.3rem; border-top: 1px solid var(--line); }
.empty-panel, .summary, .credit-panel, .rule { padding: 1.35rem 1.45rem; }
.empty-panel p, .credit-panel > div:first-child p { margin: .5rem 0 1rem; }
.empty-panel p { color: var(--muted); }
.summary-grid, .rules-grid, .credit-grid { display: grid; gap: .85rem; }
.summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.summary span { color: var(--muted); }
.summary strong { display: block; font: 650 clamp(1.3rem, 3vw, 2rem)/1.3 var(--mono); margin-top: .45rem; overflow-wrap: anywhere; }
.summary i { font-style: normal; }
.credit-panel { margin-top: 1rem; }
.credit-grid, .rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.credit-grid label { display: block; }
.wallet-fields { display: flex; gap: .55rem; max-width: 325px; }
.wallet-fields .button { min-width: 92px; }
.reserve { display: flex; flex-wrap: wrap; align-items: center; column-gap: .8rem; row-gap: .45rem; margin-top: 1.1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.rule p { margin-top: .7rem; color: var(--muted); }
.rule-payouts div { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.rule-payouts dd { font: 650 1rem/1.35 var(--mono); }
.notice { border: 1px solid #435b4f; border-radius: 9px; color: var(--green); background: #1b2b26; margin-bottom: 1.1rem; padding: .7rem .92rem; }
.notice.error { color: var(--red); border-color: #704552; background: #31232b; }
.footer { display: flex; align-items: center; gap: 1rem; justify-content: space-between; margin-top: 1.6rem; padding: 1rem 0 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-brand { color: var(--text); }
.footer a:hover { color: var(--accent); }

@media (max-width: 1000px) {
    .wrap { width: calc(100% - 2.75rem); }
    .ticker-card { gap: .47rem; padding-inline: .62rem; }
    .ticker-card .symbol-icon { width: 29px; height: 29px; }
}
@media (max-width: 760px) {
    .header-inner { grid-template-columns: 1fr 1fr; gap: .3rem 1rem; padding-top: .65rem; }
    .identity { grid-column: 2; grid-row: 1; }
    .topnav { grid-column: 1/-1; grid-row: 2; padding-bottom: .55rem; }
    .topnav a { padding: .42rem .72rem; }
    .content { padding-top: 1.65rem; }
    .ticker-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
    .market-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
    .plot { min-height: 250px; }
    .summary strong { font-size: 1.3rem; }
}
@media (max-width: 480px) {
    .wrap { width: calc(100% - 1.45rem); }
    .desktop-login, .identity-name > span:last-child { display: none; }
    .page-heading { align-items: start; margin-bottom: 1.2rem; }
    .page-heading p { font-size: .93rem; }
    .page-heading .button { min-height: 35px; padding-inline: .65rem; }
    .balance-link { min-width: 0; }
    .balance-link strong { font-size: 1.16rem; }
    .chart-panel, .forecast-panel, .credit-panel, .rule { padding: 1rem; }
    .ticker-card .symbol-icon { display: none; }
    .ticker-card { grid-template-columns: minmax(0, 1fr) auto; }
    .chart-heading { align-items: start; }
    .stock-subtitle { font-size: .8rem; }
    .chart-ranges button { font-size: .8rem; padding-inline: .3rem; }
    .stock-label .symbol-icon { display: none; }
    .summary-grid { gap: .37rem; }
    .summary { padding: .6rem; }
    .summary span { font-size: .81rem; line-height: 1.2; display: block; }
    .summary strong { font-size: 1rem; }
    .credit-grid, .rules-grid { grid-template-columns: minmax(0, 1fr); }
    .listings-heading { padding-inline: .85rem; }
    th:first-child { padding-left: .85rem; }
    td:last-child, th:last-child { padding-right: .85rem; }
    th, td { padding-inline: .6rem; }
    .footer { gap: .7rem; flex-wrap: wrap; }
}
