/* ATLAS design system (ATLAS UI kit): shared by the platform pages (landing, sign-in, my account, admin).
   The terminal (index.html) carries the same tokens inline.
   Prop-desk dark: near-black ground, #1E1E1E tiles, one electric blue for action, and soft corner glows
   in blue, green and orange to tell sections apart. Full-pill buttons, 22px card corners. */
:root {
  --bg: #08090c; --bg-2: #0c0d11; --surface: #131418; --surface-2: #1e1e1e; --surface-3: #26282e;
  --line: #24262c; --line-strong: #33363e; --line-btn: #44474f;
  --text: #c9ccd3; --strong: #ffffff; --muted: #8d919b; --soft: #a3a7b0; --faint: #6b6f78;
  --accent: #1f6fff; --accent-hover: #3d84ff; --accent-2: #6aa2ff; --accent-ink: #fff;
  --accent-soft: rgba(31,111,255,.16); --gold: #ff9a3d; --gold-line: #ff8a1f; --gold-soft: rgba(255,138,31,.14);
  --up: #19c37d; --up-soft: rgba(25,195,125,.14); --down: #ff5a5c; --down-fill: #ff4d4f; --down-soft: rgba(255,77,79,.14);
  --warn: #ff9a3d; --warn-soft: rgba(255,138,31,.14);
  --grad: #1f6fff;
  --glow-blue: radial-gradient(90% 120% at 100% 0%, rgba(31,111,255,.45), rgba(31,111,255,0) 60%);
  --glow-green: radial-gradient(90% 120% at 100% 0%, rgba(25,195,125,.35), rgba(25,195,125,0) 60%);
  --glow-orange: radial-gradient(90% 120% at 100% 0%, rgba(255,138,31,.35), rgba(255,138,31,0) 60%);
  --glow: 0 12px 28px -12px rgba(31,111,255,.9);
  --invert: #ffffff; --invert-ink: #08090c; --invert-hover: #e9ebf0;
  --radius: 22px; --radius-sm: 14px; --shadow: 0 18px 50px rgba(0,0,0,.45);
  --ease-out: cubic-bezier(.2,.8,.2,1); --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --font: Manrope, system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f4f7; --bg-2: #eceef2; --surface: #ffffff; --surface-2: #f3f4f7; --surface-3: #e9ebf0;
  --line: #e4e6eb; --line-strong: #d3d6dd; --line-btn: #c4c8d0;
  --text: #2a2d34; --strong: #08090c; --muted: #5d626d; --soft: #4a4f59; --faint: #8d919b;
  --accent: #1f6fff; --accent-hover: #1a5fe0; --accent-2: #1858d6; --accent-soft: rgba(31,111,255,.10);
  --gold: #b85c00; --gold-line: #d96f00; --gold-soft: rgba(217,111,0,.10);
  --up: #0e8a57; --up-soft: rgba(14,138,87,.10); --down: #d6303a; --down-fill: #d6303a; --down-soft: rgba(214,48,58,.09);
  --warn: #b85c00; --warn-soft: rgba(217,111,0,.10);
  --glow-blue: radial-gradient(90% 120% at 100% 0%, rgba(31,111,255,.16), rgba(31,111,255,0) 60%);
  --glow-green: radial-gradient(90% 120% at 100% 0%, rgba(14,138,87,.13), rgba(14,138,87,0) 60%);
  --glow-orange: radial-gradient(90% 120% at 100% 0%, rgba(217,111,0,.13), rgba(217,111,0,0) 60%);
  --glow: 0 12px 28px -14px rgba(31,111,255,.6);
  --invert: #08090c; --invert-ink: #ffffff; --invert-hover: #000000;
  --shadow: 0 18px 50px rgba(8,9,12,.12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--accent-2); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--strong); margin: 0; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: 28px; letter-spacing: -.03em; } h2 { font-size: 19px; } h3 { font-size: 15px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mark { display: block; flex: none; }
.mark .m-a { stroke: var(--strong); } .mark .m-g, .mark .m-l { stroke: var(--accent); }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .up { color: var(--up); } .down { color: var(--down); }
.gold { color: var(--gold); }

/* ---- controls ---------------------------------------------------------------------- */
button, input, select, textarea { font: inherit; color: var(--text); }
input, select, textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; min-height: 42px; transition: border-color .15s, box-shadow .15s, background .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input::placeholder { color: var(--faint); }
label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
/* Buttons: full pills, bold labels. Blue does the main job, white (.btn.white) is the strong alternative. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid var(--line-btn); background: transparent; color: var(--strong);
  font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .15s ease, background .15s, border-color .15s, color .15s, box-shadow .2s; }
.btn:hover:not(:disabled) { border-color: var(--strong); background: color-mix(in srgb, var(--strong) 6%, transparent); text-decoration: none; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.btn:disabled { background: var(--surface-3); border-color: transparent; color: var(--faint); cursor: not-allowed; box-shadow: none; }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; font-weight: 800; }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: transparent; transform: translateY(-1px); box-shadow: var(--glow); }
.btn.primary:active:not(:disabled) { transform: scale(.97); }
.btn.white { background: var(--invert); border-color: transparent; color: var(--invert-ink); font-weight: 800; }
.btn.white:hover:not(:disabled) { background: var(--invert-hover); border-color: transparent; }
.btn.gold { background: transparent; border-color: var(--gold-line); color: var(--gold); }
.btn.gold:hover:not(:disabled) { background: var(--gold-soft); border-color: var(--gold-line); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--soft); padding: 0 14px; }
.btn.ghost:hover:not(:disabled) { color: var(--strong); background: transparent; border-color: transparent; }
.btn.danger { background: var(--down-soft); color: var(--down); border-color: transparent; font-weight: 800; }
.btn.danger:hover:not(:disabled) { background: var(--down-fill); color: #fff; border-color: transparent; }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn.hero { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn.wide { width: 100%; }
.btn .arr { display: inline-block; transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
/* Quick-action pill: a suggestion that leads somewhere. */
.qa { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--strong); font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s; }
.qa:hover { background: var(--surface-3); border-color: var(--line-btn); text-decoration: none; }
.qa .arr { color: var(--accent-2); display: inline-block; transition: transform .2s; } .qa:hover .arr { transform: translateX(3px); }
.spin { width: 16px; height: 16px; border: 2px solid color-mix(in srgb, currentColor 35%, transparent); border-top-color: currentColor;
  border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- layout ------------------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 18px 12px; display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-2); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img, .brand .mark { width: 34px; height: 34px; }
.brand b { display: block; color: var(--strong); font-size: 17px; font-weight: 800; letter-spacing: .14em; }
.brand small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .2em; font-weight: 700; }
.nav { display: grid; gap: 2px; min-height: 0; overflow-y: auto; }
.nav a, .nav button { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 9px 14px; border-radius: 999px; color: var(--soft);
  font-weight: 600; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; text-decoration: none; position: relative;
  transition: background .15s, color .15s; }
.nav a:hover, .nav button:hover { color: var(--strong); background: var(--surface-2); text-decoration: none; }
.nav .active { color: #fff; background: var(--accent); }
.nav .active:hover { color: #fff; background: var(--accent-hover); }
.nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-foot { margin-top: auto; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.who { display: flex; align-items: center; gap: 10px; padding: 4px 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: var(--accent); flex: none; font-size: 13px; }
.side-foot > *, .who > div { min-width: 0; }
.who b, .who > div > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who b { color: var(--strong); font-size: 13px; } .who span { font-size: 11.5px; color: var(--muted); }
main.page { padding: 26px 32px 60px; max-width: 1280px; width: 100%; margin: 0 auto; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.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)); }
/* four KPI tiles beside the 236px sidebar get too narrow for their numbers well before 1000px */
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  /* minmax(0, 1fr), not 1fr: a long account name in the sidebar select must not widen the page past the screen */
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  /* the sidebar becomes a top bar: pages scroll sideways in one line instead of a tall list */
  .side { position: static; height: auto; padding: 12px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); min-width: 0; }
  .brand { padding-bottom: 4px; }
  .nav { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .nav a, .nav button { width: auto; flex: none; white-space: nowrap; }
  .side-foot { margin-top: 0; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; } main.page { padding: 18px 16px 50px; }
}
/* Cards: 22px corners, hairline borders, a corner glow when a card needs to stand out.
   Long words (emails, broker servers, env var names) break inside the card instead of spilling out. */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative;
  min-width: 0; overflow-wrap: break-word; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card.lift { transition: transform .25s var(--ease-out), border-color .2s; }
.card.lift:hover { transform: translateY(-4px); border-color: var(--line-btn); }
.card.featured { border: 1.5px solid var(--accent); background: linear-gradient(180deg, rgba(31,111,255,.2) 0%, rgba(31,111,255,0) 45%), var(--surface); }
.glow-blue { background: var(--glow-blue), var(--surface); } .glow-green { background: var(--glow-green), var(--surface); }
.glow-orange { background: var(--glow-orange), var(--surface); }
.tile { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head > :first-child { min-width: 0; }
.section { margin-top: 28px; } .section > h2 { margin-bottom: 12px; }
.kpi { padding: 18px 20px; } .kpi .label { color: var(--muted); font-size: 13.5px; font-weight: 600; }
/* the number shrinks a little on narrow tiles and, as a last resort, wraps rather than leaving the tile */
.kpi .value { color: var(--strong); font: 700 clamp(20px, 1rem + .9vw, 27px)/1.2 var(--mono); margin-top: 6px; font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere; }
.kpi .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.up { background: var(--up-soft); color: var(--up); } .pill.down { background: var(--down-soft); color: var(--down); }
.pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.info { background: var(--accent-soft); color: var(--accent-2); }
.pill.gold { background: var(--gold-soft); color: var(--gold); }
.pill.solid { background: var(--accent); color: #fff; font-weight: 800; }
.meter { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .6s var(--ease-out); }
.meter.up i { background: var(--up); }
/* Live heartbeat: two thin rings ripple out, like sonar. The only animation that loops forever. */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; position: relative; flex: none; }
.dot.on { background: var(--up); }
.dot.on::before, .dot.on::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--up);
  animation: beat 2s var(--ease-out) infinite; }
.dot.on::after { animation-delay: 1s; }
.dot.off { background: var(--down); }
@keyframes beat { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }

/* ---- tables -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
/* tables scroll sideways inside their card; their cells keep whole words */
table { width: 100%; border-collapse: collapse; font-size: 13px; overflow-wrap: normal; }
th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em;
  padding: 13px 16px; border-bottom: 1px solid var(--line); background: transparent; white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; } tbody tr:hover { background: var(--surface-2); }
td.r, th.r { text-align: right; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* ---- plans ----------------------------------------------------------------------------- */
.plan { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); position: relative; transition: transform .25s var(--ease-out), border-color .2s; }
.plan:hover { transform: translateY(-4px); border-color: var(--line-btn); }
.plan.current, .plan.current:hover { border: 1.5px solid var(--accent); }
.plan.featured { background: linear-gradient(180deg, rgba(31,111,255,.2) 0%, rgba(31,111,255,0) 45%), var(--surface); }
.plan .tier { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--strong); }
.plan.elite .tier { color: var(--strong); }
.plan .price { font: 700 30px/1.1 var(--mono); color: var(--strong); }
.plan .price small { font: 600 14px var(--font); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 14px; color: var(--strong); }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li::before { content: "✓"; flex: none; width: 14px; color: var(--accent-2); font-weight: 800; }
.plan li.no { color: var(--faint); } .plan li.no::before { content: "–"; color: var(--faint); }
.ribbon { position: absolute; top: -13px; left: 24px; }
.plan .ribbon, .plan .ribbon.info { padding: 4px 12px; font-size: 12px; font-weight: 800; background: var(--accent); color: #fff; }
.plan .ribbon.up { background: var(--up); color: var(--invert-ink); }

/* ---- strategy cards --------------------------------------------------------------------- */
.strat { display: flex; flex-direction: column; gap: 12px; }
.strat .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.strat .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.strat .stats div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px; min-width: 0; }
.strat .stats b, .strat .stats span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strat .stats b { font: 700 15px var(--mono); color: var(--strong); }
.strat .stats span { font-size: 11.5px; color: var(--muted); }
.strat.locked { opacity: .78; }
.strat.locked::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--bg) 55%, transparent)); pointer-events: none; }

/* ---- forms, dialogs, toasts ---------------------------------------------------------------- */
.form { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
/* Pill tabs: a segmented control in a pill track; the chosen option fills blue. */
.seg { display: inline-flex; padding: 5px; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: none; color: var(--soft); min-height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 700;
  cursor: pointer; transition: background .2s, color .2s; }
.seg button:hover:not(.on) { color: var(--strong); }
.seg button.on { background: var(--accent); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
dialog { border: 1px solid var(--line-strong); border-radius: 24px; background: var(--surface); color: var(--text); padding: 0;
  width: min(520px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
dialog::backdrop { background: color-mix(in srgb, #050608 66%, transparent); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .3s var(--ease-spring); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.dlg-head { padding: 20px 22px 6px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dlg-head h3 { min-width: 0; overflow-wrap: break-word; }
.dlg-body { padding: 10px 22px 22px; display: grid; gap: 14px; overflow-wrap: break-word; }
.note { border: 1px solid var(--line); background: var(--surface-2); border-radius: 16px; padding: 12px 14px; font-size: 13.5px;
  min-width: 0; overflow-wrap: anywhere; }
.note.warn { border-color: rgba(255,138,31,.3); background: var(--warn-soft); }
.note.down { border-color: rgba(255,77,79,.3); background: var(--down-soft); }
.note.info { border-color: rgba(31,111,255,.35); background: var(--accent-soft); }
.banner { display: flex; gap: 10px 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-radius: 18px; padding: 12px 18px;
  margin-bottom: 18px; border: 1px solid var(--line); background: var(--surface); overflow-wrap: anywhere; }
.banner > span { flex: 1 1 240px; min-width: 0; }
.banner.warn { border-color: rgba(255,138,31,.3); background: var(--warn-soft); }
.banner.down { border-color: rgba(255,77,79,.3); background: var(--down-soft); }
.banner.info { border-color: rgba(31,111,255,.35); background: var(--accent-soft); }
/* Toasts settle in with a little spring, in the strong (inverted) colour, and time out with a thin bar. */
#toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 100; }
.toast { position: relative; overflow: hidden; display: flex; gap: 12px; align-items: center; overflow-wrap: anywhere;
  min-width: min(260px, calc(100vw - 36px)); max-width: min(400px, calc(100vw - 36px));
  padding: 14px 16px; border-radius: 14px; background: var(--invert); color: var(--invert-ink); box-shadow: var(--shadow);
  animation: toast-in .45s var(--ease-spring); font-size: 14px; font-weight: 600; }
.toast::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--accent); }
.toast.ok::before { background: #0e8a57; } .toast.err::before { background: #d6303a; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); animation: toast-bar 3.5s linear forwards; }
.toast.ok::after { background: #0e8a57; } .toast.err::after { background: #d6303a; animation-duration: 6s; }
.toast.out { animation: toast-out .3s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toast-bar { from { width: 100%; } to { width: 0; } }
/* Loading: graphite shimmer in the exact shape of the content coming. */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 40%, var(--surface-2) 80%); background-size: 250% 100%;
  animation: shimmer 1.6s ease-in-out infinite; border-radius: 8px; min-height: 16px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.fade-in { animation: fade-in .5s var(--ease-out) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(14px); } }
/* Stagger in: lists arrive in reading order (+80ms each, never more than ~6 items). */
.rise { opacity: 0; animation: rise .5s cubic-bezier(.34,1.3,.64,1) forwards; }
.rise.d2 { animation-delay: .08s; } .rise.d3 { animation-delay: .16s; } .rise.d4 { animation-delay: .24s; }
.rise.d5 { animation-delay: .32s; } .rise.d6 { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Price tick: the value warms green or coral, then fades. No bouncing digits. */
.flash-up { animation: flash-up .9s var(--ease-out); } .flash-down { animation: flash-down .9s var(--ease-out); }
@keyframes flash-up { from { background: rgba(25,195,125,.28); } to { background: transparent; } }
@keyframes flash-down { from { background: rgba(255,77,79,.28); } to { background: transparent; } }
.tabs { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 18px; overflow-x: auto; max-width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.tabs button { background: none; border: 0; min-height: 40px; padding: 0 18px; border-radius: 999px; color: var(--soft); font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.tabs button:hover:not(.on) { color: var(--strong); }
.tabs button.on { color: #fff; background: var(--accent); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
