/* Stock Advisor — always dark. Clean list style (Minimalism/Swiss, dark OLED), per the ui-ux-pro-max design system:
   one surface level (no boxes in boxes), one filter row per screen, 4/8 px spacing, 44 px touch targets,
   text contrast >= 4.5:1, green/red only for gains/losses, blue for actions. Animations: transform/opacity only. */
:root {
  /* surfaces */
  --bg: #05070d;
  --surface: #0e1322;
  --surface-2: #161d30;
  --surface-3: #1f283f;
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .24);
  /* text: --muted on --surface is ~7:1, --faint only for large or non-essential text */
  --text: #f1f5f9;
  --muted: #94a3b8;
  --faint: #64748b;
  /* meaning */
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --up: #22c55e;
  --down: #f87171;
  --warn: #fbbf24;
  --bench: #94a3b8;
  /* shape and rhythm */
  --radius: 14px;
  --radius-sm: 10px;
  --gutter: 16px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --tap: 44px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --fast: .15s;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  /* old names kept for views not yet rewritten */
  --card: var(--surface);
  --card-2: var(--surface-2);
  --bg-2: var(--surface);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none;
}
.num, .hero-value, .stat-v, .returns .big, .period-table { font-variant-numeric: tabular-nums; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: 17px; }
h3 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 650;
  margin: var(--s5) 0 var(--s2); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s5) 0 var(--s1); }
p { margin: var(--s2) 0; }
.icon { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.pad { padding: var(--s4) var(--s1); }
.center { text-align: center; }
.right { text-align: right; margin-left: auto; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--muted); }
.note { font-size: 12px; color: var(--muted); margin: var(--s2) var(--s1) var(--s4); line-height: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { min-height: 100%; }

/* ---------------------------------------------------------------- shell */
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  min-height: calc(var(--safe-t) + 52px); padding: var(--safe-t) var(--s2) 0 var(--gutter);
  background: rgba(5, 7, 13, .82); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.title { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.view { padding: var(--s4) var(--gutter) calc(96px + var(--safe-b)); max-width: 640px; margin: 0 auto; }
.view-inner { opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.view-inner.in { opacity: 1; transform: none; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-around;
  padding: var(--s1) var(--s1) calc(var(--s1) + var(--safe-b)); background: rgba(10, 13, 22, .9);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-top: 1px solid var(--line);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 50px; color: var(--faint); transition: color var(--fast); }
.tab:active { opacity: .7; }
.tab.active { color: var(--accent-2); }
.tab.active .tab-icon { stroke-width: 2.1; }
.tab-label { font-size: 11px; font-weight: 600; }

/* ---------------------------------------------------------------- surfaces */
.card { background: var(--surface); border-radius: var(--radius); padding: var(--s4); margin: 0 0 var(--s4); }
.card.list-card { padding: 0 var(--s4); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s2); gap: var(--s2); }
.head-actions { display: flex; gap: var(--s2); }
.card.warn { background: rgba(251, 191, 36, .1); color: var(--warn); font-size: 14px; }
.card.placeholder { text-align: center; padding: var(--s6) var(--s5); }

/* a titled group: heading on the page, one surface under it */
.group { margin-bottom: var(--s5); }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); padding: 0 var(--s1) var(--s2); }
.group-head h2 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.group .card { margin-bottom: 0; }
.toolbar { display: flex; justify-content: flex-end; gap: var(--s2); margin-bottom: var(--s3); }
.empty { display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: var(--s6) var(--s4);
  color: var(--muted); text-align: center; font-size: 15px; }
.empty p { margin: 0; max-width: 280px; }

/* portfolio hero sits on the page background */
.hero { padding: var(--s1) var(--s1) var(--s5); }
.hero-value { font-size: 36px; font-weight: 760; letter-spacing: -0.03em; line-height: 1.15; margin: 2px 0; }
.hero-value.small { font-size: 28px; }
.hero-change { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.hero-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin-top: var(--s4); }
.hero-actions .btn { width: 100%; margin: 0; padding-left: var(--s2); padding-right: var(--s2); }

.returns { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); margin: var(--s3) 0 var(--s2); }
.returns .big { font-size: 18px; font-weight: 680; margin-top: 2px; }
.returns .full { grid-column: 1 / -1; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3) var(--s4); }
.stat-v { font-weight: 650; margin-top: 2px; }
.stat-line { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); margin-bottom: var(--s3); }

.period-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3) var(--s1); text-align: center;
  font-weight: 600; font-size: 15px; white-space: nowrap; }
.detail-hero { margin-bottom: var(--s4); }

/* ---------------------------------------------------------------- lists */
.list { display: flex; flex-direction: column; }
.list.loading { opacity: .5; }
.row {
  display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 56px; text-align: left;
  padding: var(--s3) 0; border-bottom: 1px solid var(--line); transition: background var(--fast), opacity var(--fast);
}
.row:last-child { border-bottom: 0; }
button.row:active { opacity: .6; }
.row-main { min-width: 0; flex: 1; }
.row-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-title.wrap, .row-sub.wrap { white-space: normal; overflow-wrap: anywhere; }
.row-title.with-icon { display: flex; align-items: center; gap: var(--s3); }
.row-sub { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub.up { color: var(--up); } .row-sub.down { color: var(--down); }
.row-sub.reason { font-style: italic; white-space: normal; }
.row .right { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.row.trade .right { flex-direction: row; align-items: center; gap: var(--s2); }
.pill { padding: 1px 8px; border-radius: 7px; font-weight: 650; font-size: 13px; }
.pill.up { background: rgba(34, 197, 94, .14); } .pill.down { background: rgba(248, 113, 113, .14); }
.pill.flat { background: var(--surface-2); }

.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  background: var(--surface-2); color: var(--muted); }
.badge.good { color: var(--up); background: rgba(34, 197, 94, .12); }
.badge.bad { color: var(--warn); background: rgba(251, 191, 36, .12); }
.badge.m-SE { color: var(--accent-2); }

.spark { width: 64px; height: 28px; flex-shrink: 0; }
.spark path { fill: none; stroke-width: 1.6; }
.spark.up path { stroke: var(--up); } .spark.down path { stroke: var(--down); }

/* ---------------------------------------------------------------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--tap);
  padding: 0 var(--s4); border-radius: 12px; font-weight: 650; font-size: 16px; background: var(--surface-2);
  transition: opacity var(--fast), background var(--fast);
}
.btn:active { opacity: .7; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary.buy { background: #16a34a; }
.btn.primary.sell { background: #dc2626; }
.btn.ghost { background: transparent; border: 1px solid var(--line-strong); width: 100%; margin-top: var(--s3); }
.btn.danger { color: var(--down); }
.btn.small { min-height: 36px; padding: 0 var(--s3); font-size: 14px; border-radius: var(--radius-sm); margin-top: var(--s2); }
.icon-btn { width: var(--tap); height: var(--tap); border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; color: var(--muted); transition: background var(--fast), opacity var(--fast); }
.icon-btn:active { background: var(--surface-2); }

/* filter pills: one row per screen, wrapping */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: 0 0 var(--s3); }
.chip-group { display: flex; flex-wrap: wrap; gap: var(--s2); }
/* 40px pill, 44px tap area (invisible margin); the 8px gap keeps neighbouring tap areas apart */
.chip::after, .seg::after { content: ''; position: absolute; inset: -2px 0; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s3); border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600;
  transition: background var(--fast), color var(--fast), border-color var(--fast); }
.chip:active { opacity: .7; }
.chip.on { background: rgba(59, 130, 246, .16); border-color: rgba(96, 165, 250, .4); color: var(--accent-2); }
.chip.accent { color: var(--accent-2); }

.segmented { display: flex; background: var(--surface-2); border-radius: 12px; padding: 2px; gap: 2px; margin-bottom: var(--s3); }
.seg { position: relative; flex: 1; min-height: 40px; padding: 0 2px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted);
  white-space: nowrap; transition: background var(--fast), color var(--fast); }
.seg.active { background: var(--surface-3); color: var(--text); }
.card .segmented { background: var(--bg); }
.card .seg.active { background: var(--surface-2); }

.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 var(--s3); }
.field.inline { flex-direction: row; align-items: center; justify-content: space-between; min-height: var(--tap); }
.field-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.field-hint { font-size: 12px; color: var(--muted); }
.input {
  width: 100%; min-height: var(--tap); padding: 10px 13px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  outline: none; transition: border-color var(--fast);
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--accent-2); }
textarea.input { resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); }
.switch { width: 46px; height: 28px; accent-color: var(--accent); flex-shrink: 0; }

.total { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s3) 0 var(--s1);
  border-top: 1px solid var(--line); margin-top: var(--s1); }
.total-value { font-size: 22px; font-weight: 720; font-variant-numeric: tabular-nums; }
.trade-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }

.setup-row { display: grid; grid-template-columns: 1fr 76px 92px var(--tap); gap: 6px; align-items: center; margin-bottom: var(--s2); }
.setup-row .input { padding: 10px 8px; }
.setup .sheet-actions { padding: var(--s4) 0 0; position: static; background: transparent; }

/* ---------------------------------------------------------------- chart */
.chart-box { min-height: 150px; position: relative; transition: opacity .2s; }
.chart-box.loading { opacity: .4; }
.chart { position: relative; touch-action: pan-y; }
.chart-plot { position: relative; }
.chart-svg { width: 100%; height: 150px; display: block; overflow: visible; }
.chart-empty { height: 110px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; text-align: center; }
.axis-y { position: absolute; right: 0; transform: translateY(-50%); font-size: 11px; color: var(--muted);
  font-variant-numeric: tabular-nums; background: rgba(14, 19, 34, .8); padding: 0 4px; border-radius: 4px; pointer-events: none; }
.axis-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: var(--s1); }
.line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.line-a { stroke: var(--accent-2); }
.line-b { stroke: var(--bench); stroke-width: 1.4; stroke-dasharray: 3 3; opacity: .8; }
.fill-stop-a { stop-color: var(--accent); stop-opacity: .22; }
.fill-stop-b { stop-color: var(--accent); stop-opacity: 0; }
.zero { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cursor { stroke: rgba(255, 255, 255, .35); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; }
.chart.scrubbing .cursor { opacity: 1; }
.chart-tip { position: absolute; top: -6px; left: 0; display: flex; flex-direction: column; gap: 1px; font-size: 12px;
  background: rgba(31, 40, 63, .96); padding: 6px 9px; border-radius: 10px; pointer-events: none; opacity: 0;
  transition: opacity var(--fast); min-width: 140px; font-variant-numeric: tabular-nums; z-index: 2; }
.chart.scrubbing .chart-tip { opacity: 1; }
.tip-x { color: var(--muted); }
.tip-v.line-a { color: var(--accent-2); font-weight: 650; }
.tip-v.line-b { color: var(--text); }
.legend { display: flex; gap: var(--s4); font-size: 12px; color: var(--muted); margin-top: var(--s2); }
.lg::before { content: ''; display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; background: var(--accent-2); }
.lg-b::before { background: var(--bench); }

/* ---------------------------------------------------------------- sheets */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0); display: flex; align-items: flex-end;
  justify-content: center; transition: background .28s var(--ease); }
.backdrop.open { background: rgba(0, 0, 0, .6); }
.sheet {
  width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--surface); border-radius: 20px 20px 0 0; padding: 6px var(--gutter) calc(var(--s4) + var(--safe-b));
  transform: translate3d(0, 100%, 0); transition: transform .3s var(--ease); box-shadow: 0 -10px 40px rgba(0, 0, 0, .5);
}
.backdrop.open .sheet { transform: none; }
.sheet .card { background: var(--surface-2); }
.sheet .segmented { background: var(--bg); }
.sheet .chip { background: var(--surface-2); }
.sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 4px auto 6px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin: 0 calc(-1 * var(--s2)) var(--s3) 0;
  position: sticky; top: -6px; background: var(--surface); padding: 6px 0; z-index: 3; }
.sheet-head h2 { font-size: 18px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-actions { display: flex; gap: var(--s2); padding-top: var(--s3); position: sticky; bottom: calc(-1 * var(--s4) - var(--safe-b));
  background: var(--surface); padding-bottom: var(--s1); z-index: 3; }
.sheet-actions .btn { flex: 1; margin-top: 0; width: auto; }

.toast { position: fixed; left: 50%; top: calc(var(--safe-t) + 12px); z-index: 100; transform: translate3d(-50%, -30px, 0);
  opacity: 0; background: var(--surface-3); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px;
  transition: transform .3s var(--ease), opacity .3s; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); max-width: 90vw; }
.toast.show { transform: translate3d(-50%, 0, 0); opacity: 1; }
.toast.ok { color: var(--up); } .toast.error { color: var(--down); }

/* ---------------------------------------------------------------- login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--s5) var(--gutter); }
.login { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: var(--s3); text-align: center; padding: var(--s6) var(--s5); }
.login .input + .input { margin-top: 0; }
.login h1 { font-size: 24px; margin-bottom: var(--s2); }
.logo { color: var(--accent-2); display: flex; justify-content: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--accent);
  animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- news */
.news-list { display: flex; flex-direction: column; }
.news-row { display: block; width: 100%; text-align: left; padding: var(--s3) 0; border-bottom: 1px solid var(--line);
  transition: opacity var(--fast); }
.news-row:last-child { border-bottom: 0; }
.news-row:active { opacity: .6; }
.news-row.important .news-title::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--warn); margin-right: 7px; vertical-align: middle; }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; margin-bottom: var(--s1); color: var(--muted); }
.src { font-weight: 700; color: var(--accent-2); }
.src-news { color: var(--text); }
.lang { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--muted); }
.news-title { font-weight: 640; line-height: 1.32; font-size: 16px; }
.news-detail-title { font-size: 21px; line-height: 1.3; margin: 6px 0 10px; }
.news-sum { color: #cbd5e1; font-size: 14px; margin-top: var(--s1); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.news-sum.big { font-size: 16px; -webkit-line-clamp: unset; display: block; color: var(--text); }
.news-text { color: #cbd5e1; font-size: 15px; white-space: pre-line; line-height: 1.55; }
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s2); }
.chip-tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(59, 130, 246, .14);
  color: var(--accent-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-tag.weak { background: var(--surface-2); color: var(--muted); }
.badge.ev { font-size: 10.5px; }
.badge.ev.imp { color: var(--warn); background: rgba(251, 191, 36, .12); }
.sent { font-size: 10px; }
.sent.up { color: var(--up); } .sent.down { color: var(--down); }
.row-actions { display: flex; gap: var(--s2); align-items: center; margin: var(--s4) 0 6px; }
.row-actions .btn { flex: 1; }
a.btn, a.row { text-decoration: none; color: inherit; }
a.btn.primary { color: #fff; }
.more-box { margin-top: 6px; }
.view > div > .btn.ghost { margin-bottom: var(--s4); }

/* ---------------------------------------------------------------- notifications */
.push-box .btn { width: 100%; margin-top: var(--s2); }
.row.cat { align-items: flex-start; }
.row.cat .switch { margin-top: 2px; }
.row.cat.future .row-title { color: var(--muted); }
.cat-extra { margin-top: var(--s3); }
.cat-extra .segmented { margin-bottom: var(--s1); }
.badge.st-sent { color: var(--up); background: rgba(34, 197, 94, .12); }
.badge.st-failed, .badge.st-no_device { color: var(--down); background: rgba(248, 113, 113, .12); }
.badge.st-quiet, .badge.st-capped { color: var(--warn); background: rgba(251, 191, 36, .12); }

/* ---------------------------------------------------------------- insights */
.insights-box { transition: opacity .2s; }
.insights-box.loading { opacity: .45; }
.flags { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: 6px; }
.badge.flag { font-size: 10.5px; }
.badge.flag.good { color: var(--up); background: rgba(34, 197, 94, .12); }
.badge.flag.warn { color: var(--warn); background: rgba(251, 191, 36, .12); }
.badge.ev-report { color: var(--accent-2); background: rgba(59, 130, 246, .14); }
.ins-row { align-items: flex-start; }
.ins-row .right { width: 84px; }
.day-head { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em;
  padding: var(--s4) 0 var(--s1); border-bottom: 1px solid var(--line); }
.day-head:first-child { padding-top: var(--s3); }
.stock-insights h3 { margin-top: var(--s5); }
.chart-box.small-chart { min-height: 120px; margin: 6px 0 var(--s1); }
.chart-box.small-chart .chart-svg { height: 120px; }

/* ---------------------------------------------------------------- app update + accounts */
.update-banner { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); width: calc(100% - 2 * var(--gutter));
  max-width: 608px; margin: var(--s3) auto 0; padding: var(--s3) var(--s4); border-radius: 12px; background: rgba(59, 130, 246, .16);
  color: var(--text); font-size: 14px; text-align: left; min-height: var(--tap); }
.update-banner strong { color: var(--accent-2); white-space: nowrap; }
.invite-box { margin: var(--s3) 0; padding: var(--s3); border-radius: 12px; background: var(--surface-2); display: flex;
  flex-direction: column; gap: var(--s2); }
.invite-link { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; user-select: all;
  -webkit-user-select: all; padding: var(--s2); border-radius: 8px; background: var(--bg); }

/* ---------------------------------------------------------------- reduce motion, small phones */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 360px) {
  :root { --gutter: 12px; }
  .hero-value { font-size: 30px; }
  .seg { font-size: 13px; }
}
