/* Omba platform (invite-only demo record). The owner desk's tokens, unchanged, so one design language serves both.
   Calm and professional: every number has a source, a time and a zone; losses look exactly like wins. Phone first. */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0e12; --surface: #13161c; --surface-2: #1a1e25; --surface-3: #222730;
  --line: #232832; --line-2: #2f3541;
  --text: #e9ecf1; --text-2: #aab2bf; --text-3: #7d8593;
  --accent: #6ea0ff; --accent-soft: #1a2640; --accent-ink: #9cbcff;
  --up: #3ccf9f; --up-soft: rgb(60 207 159 / .14);
  --down: #ff7a6b; --down-soft: rgb(255 122 107 / .14);
  --warn: #f2b84b; --warn-soft: rgb(242 184 75 / .14);
  --bad: #ff5d5d; --bad-soft: rgb(255 93 93 / .13);
  --info: #6ea0ff; --info-soft: rgb(110 160 255 / .13);
  --cA1: #a48bff; --cA2: #5aa9ff; --cA3: #f2a33a; --cA4: #f06bb4;
  --shadow: 0 1px 0 rgb(255 255 255 / .03) inset, 0 8px 24px rgb(0 0 0 / .25);
  --radius: 12px; --gutter: 16px;
  --font: "Omba Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f1f3f6; --surface-3: #e8ebf0;
  --line: #e3e6eb; --line-2: #d3d8e0;
  --text: #0f141b; --text-2: #4a5361; --text-3: #6a7381;
  --accent: #2563eb; --accent-soft: #e6eefe; --accent-ink: #1d4ed8;
  --up: #0a8a63; --up-soft: rgb(10 138 99 / .1);
  --down: #d23c2c; --down-soft: rgb(210 60 44 / .09);
  --warn: #a96500; --warn-soft: rgb(230 160 30 / .16);
  --bad: #c62828; --bad-soft: rgb(198 40 40 / .09);
  --info: #2563eb; --info-soft: rgb(37 99 235 / .09);
  --cA1: #7c5cf0; --cA2: #1f7ae0; --cA3: #c97a0a; --cA4: #d23f8f;
  --shadow: 0 1px 2px rgb(16 24 40 / .05), 0 1px 3px rgb(16 24 40 / .04);
}
@font-face { font-family: "Omba Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/vendor/fonts/inter-latin-wght-normal.woff2) format("woff2-variations"), url(/vendor/fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Omba Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/vendor/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations"), url(/vendor/fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); font-variant-numeric: tabular-nums; min-height: 100dvh; }
button, select, textarea, input { font: inherit; color: inherit; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; }
h1 { font-size: 22px; font-weight: 680; }
h2 { font-size: 17px; font-weight: 640; }
h3 { font-size: 13px; font-weight: 640; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 8px; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--text-2); }
.muted { color: var(--text-3); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spacer { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* ---- shell ---- */
.shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
.rail { display: none; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; min-height: 56px;
  padding: calc(env(safe-area-inset-top) + 6px) var(--gutter) 6px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 720; font-size: 17px; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.demo { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 640;
  background: var(--warn-soft); color: var(--warn); white-space: nowrap; }
.iconbtn { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; background: transparent;
  border-radius: 10px; color: var(--text-2); cursor: pointer; }
.iconbtn:hover { background: var(--surface-2); color: var(--text); }
.ic { width: 20px; height: 20px; flex: none; }
main { padding: var(--gutter); padding-bottom: calc(96px + env(safe-area-inset-bottom)); width: 100%; max-width: 1100px; margin: 0 auto;
  min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px;
  color: var(--text-3); font-size: 11px; font-weight: 580; }
.tabbar a:hover { text-decoration: none; }
.tabbar a[aria-current="page"] { color: var(--text); }
.tabbar a[aria-current="page"] .ic { color: var(--accent); }
.legal { color: var(--text-3); font-size: 12.5px; text-align: center; padding: 8px 4px 0; max-width: 680px; margin: 0 auto; }
@media (min-width: 900px) {
  .shell { grid-template-columns: 228px minmax(0, 1fr); }
  .rail { display: flex; flex-direction: column; gap: 18px; grid-row: 1 / span 2; position: sticky; top: 0; height: 100dvh;
    padding: 18px 12px; border-right: 1px solid var(--line); background: var(--surface); }
  .rail .brand { padding: 4px 10px; }
  .rail nav { display: flex; flex-direction: column; gap: 2px; }
  .rail nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 8px; color: var(--text-2); font-weight: 560; }
  .rail nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
  .rail nav a[aria-current="page"] { background: var(--surface-3); color: var(--text); }
  .rail nav a[aria-current="page"] .ic { color: var(--accent); }
  .rail .foot { margin-top: auto; color: var(--text-3); font-size: 12px; padding: 0 10px; }
  .top .brand, .tabbar { display: none; }
  main { padding: 24px 32px 40px; gap: 16px; }
}

/* ---- blocks ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.chead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.csub { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 620;
  background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.chip.ok, .chip.won { background: var(--up-soft); color: var(--up); }
.chip.lost { background: var(--down-soft); color: var(--down); }
.chip.warn, .chip.late { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.open, .chip.info { background: var(--info-soft); color: var(--accent-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); display: inline-block; flex: none; }
.dot.ok { background: var(--up); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }
.side { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; }
.side.BUY { background: var(--up-soft); color: var(--up); } .side.SELL { background: var(--down-soft); color: var(--down); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 9px;
  cursor: pointer; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-weight: 580; white-space: nowrap; }
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { border-color: color-mix(in srgb, var(--bad) 55%, transparent); color: var(--bad); background: transparent; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
@media (max-width: 899px) { .btn.small { min-height: 44px; } }
.btn.block { width: 100%; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); max-width: 100%; }
.seg button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--text-2); cursor: pointer; font-weight: 580; font-size: 13.5px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
@media (max-width: 899px) { .seg button { min-height: 44px; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
select, input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], textarea {
  min-height: 44px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); max-width: 100%; }
textarea { padding: 10px 12px; min-height: 80px; width: 100%; }
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 580; font-size: 14px; }
label.field input, label.field select { width: 100%; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:disabled { opacity: .45; cursor: not-allowed; }
.kv { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat .sl { font-size: 12.5px; color: var(--text-3); font-weight: 560; }
.stat .sv { font-size: 20px; font-weight: 660; letter-spacing: -.01em; margin-top: 2px; }
.stat .ss { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.skel { display: flex; flex-direction: column; gap: 10px; }
.skel span { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.4s infinite linear; }
.skel span:nth-child(2n) { width: 70%; }
.skel.tall span:first-child { height: 160px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel span { animation: none; } * { transition: none !important; } }
.empty { padding: 22px 8px; text-align: center; color: var(--text-3); }
.empty b { display: block; color: var(--text-2); font-weight: 620; margin-bottom: 4px; font-size: 16px; }
.errbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--bad-soft);
  border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); }
.errbox .btn { margin-left: auto; }
.flash { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--info-soft);
  border: 1px solid color-mix(in srgb, var(--info) 35%, transparent); }
.flash.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.flash.ok { background: var(--up-soft); border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.flash.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.note { padding: 10px 12px; border-radius: 9px; background: var(--surface-2); font-size: 13.5px; color: var(--text-2); }
.toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30;
  padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 560; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
@media (min-width: 900px) { .toast { bottom: 24px; } }

/* ---- trades ---- */
.tlist { display: flex; flex-direction: column; }
.tgroup { font-size: 12.5px; font-weight: 640; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; padding: 14px 16px 6px; }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--text); }
.trow:hover { background: var(--surface-2); text-decoration: none; }
.trow .l1 { display: flex; align-items: center; gap: 8px; font-weight: 640; min-width: 0; }
.trow .l2 { color: var(--text-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .r1 { text-align: right; font-weight: 660; }
.trow .r2 { text-align: right; font-size: 13px; color: var(--text-3); }
.trow .lv { color: var(--text-2); font-size: 13px; }
.opencard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; color: var(--text); }
.opencard:hover { text-decoration: none; }
.opencard + .opencard { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.chartbox { position: relative; height: 340px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
@media (min-width: 900px) { .chartbox { height: 420px; } }
.detail { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .detail { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
.big { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.why li { margin: 4px 0; }
.why ul { margin: 0; padding-left: 20px; }
.news a { overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline time { color: var(--text-3); font-size: 13px; }
.picture img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); display: block; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); }
.hist { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 6px; height: 120px; }
.hist div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 11px; color: var(--text-3); text-align: center; }
.hist span.b { width: 100%; border-radius: 5px 5px 0 0; background: var(--accent); min-height: 2px; }
.hist span.b.neg { background: var(--down); } .hist span.b.pos { background: var(--up); }
svg.equity { width: 100%; height: 160px; display: block; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--text-3); font-weight: 600; font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t td.r, table.t th.r { text-align: right; }
.scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.subnav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.subnav a { padding: 8px 14px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; font-weight: 580; font-size: 14px; min-height: 40px; display: inline-flex; align-items: center; }
.subnav a[aria-current="page"] { background: var(--accent); color: #fff; }
.subnav a:hover { text-decoration: none; }

/* ---- sign-in, invite ---- */
.solo { max-width: 440px; margin: 0 auto; padding: 48px var(--gutter) 32px; display: flex; flex-direction: column; gap: 18px; }
.solo .brand { font-size: 24px; }
.solo .lead { font-size: 17px; color: var(--text-2); }
.meter { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--down); transition: width .15s; }
.meter.mid span { background: var(--warn); } .meter.good span { background: var(--up); }
.cards3 { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gloss dt { font-weight: 640; margin-top: 10px; }
.gloss dd { margin: 2px 0 0; color: var(--text-2); }

/* boot */
.boot { min-height: 70dvh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--text-3); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.noscript { padding: 24px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
