/* CopyTap front-end styles. Mobile first; desktop from 900px. Light theme. */
:root {
  --blue: #2448F5;
  --blue-d: #1A36C4;
  --blue-50: #E8EDFF;
  --blue-30: #EEF2FF;
  --blue-line: #C9D5FF;
  --ink: #0B1220;
  --ink-2: #2A3446;
  --ground: #F4F6FA;
  --card: #FFFFFF;
  --line: #E3E8F0;
  --line-2: #EEF1F6;
  --line-3: #DCE2EC;
  --sec: #4A5568;
  --mut: #64748B;
  --faint: #B9C3D3;
  --seg: #E6EAF1;
  --pos: #0B7A43;
  --pos-bg: #E9F7EF;
  --pos-mid: #BFE6CF;
  --pos-fill: #E6F4EC;
  --neg: #B4420F;
  --neg-bg: #FBEDE6;
  --neg-mid: #F6D5C5;
  --warn: #9A4A0B;
  --warn-bg: #FFF1E3;
  --navy: #0E1A3A;
  --inv-mut: #AEB8CB;
  --inv-pos: #7BE0A6;
  --inv-neg: #F5A27A;
  --radius: 18px;
  --radius-s: 12px;
  --gutter: 16px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --focus: 0 0 0 3px rgba(36, 72, 245, .35);
  --bnav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; outline: none; }
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-d); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 8px; color: #fff; }

/* type */
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.muted { color: var(--sec); }
.small { font-size: 13px; }
.tiny { font-size: 11px; }
.center { text-align: center; }
.right { text-align: right; align-items: flex-end; }
.display { font-size: 38px; line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.h1 { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.h1-lg { font-size: 28px; }
.h2 { font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
.lead { font-size: 16px; line-height: 1.55; color: var(--sec); }
.lead-inv { font-size: 15px; line-height: 1.55; color: #C8D2EA; }
.eyebrow { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: var(--blue-50); padding: 6px 10px; border-radius: 999px; }
.link-strong { font-size: 14px; font-weight: 700; text-decoration: none; padding: 10px 0; }
.link-btn { border: 0; background: transparent; color: var(--blue); font-weight: 700; font-size: 14px; padding: 12px 0; min-height: 44px; }
.link-btn:hover { color: var(--blue-d); }

/* layout */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 640px; }
.band { width: 100%; }
.band-white { background: var(--card); }
.band-navy { background: var(--navy); color: #fff; }
.band-ink { background: var(--ink); color: #fff; }
.section { padding-top: 22px; padding-bottom: 22px; display: flex; flex-direction: column; gap: 14px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stack-2 { display: flex; flex-direction: column; gap: 2px; }
.stack-4 { display: flex; flex-direction: column; gap: 6px; }
.stack-10 { display: flex; flex-direction: column; gap: 10px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.center-head { text-align: center; align-items: center; }

/* top bar */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-height: 44px; }
.logo:hover { color: var(--ink); }
.logo-word { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.tb-links { display: none; align-items: center; gap: 4px; }
.tb-links a { font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 12px 12px; border-radius: 10px; }
.tb-links a:hover { background: var(--ground); color: var(--ink); }
.tb-links a[aria-current="page"] { color: var(--blue); }
.tb-links .tb-cta { background: var(--ink); color: #fff; margin-left: 6px; padding: 11px 16px; }
.tb-links .tb-cta:hover, .tb-links .tb-cta[aria-current="page"] { background: #1C2638; color: #fff; }
.tb-mobile { display: flex; align-items: center; gap: 6px; }
.tb-quick { font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 12px 10px; }
.tb-menu-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); display: flex; align-items: center; justify-content: center; }
.tb-menu { border-top: 1px solid var(--line-2); background: var(--card); display: flex; flex-direction: column; padding: 6px var(--gutter) 10px; }
.tb-menu a { padding: 13px 4px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.tb-menu a:last-child { border-bottom: 0; }

.subnav { display: none; background: var(--card); border-bottom: 1px solid var(--line); }
.subnav-in { display: flex; gap: 4px; }
.subnav a { padding: 14px 14px 12px; font-weight: 700; font-size: 14px; color: var(--mut); text-decoration: none; border-bottom: 2px solid transparent; }
.subnav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-top: 1px solid var(--line); padding: 4px 4px calc(6px + env(safe-area-inset-bottom)); }
.bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; font-size: 11px; font-weight: 700; text-decoration: none; color: var(--mut); border-radius: 10px; }
.bnav a[aria-current="page"] { color: var(--blue); }
.bnav svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.has-bnav { padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom)); }

/* footer */
.footer { background: var(--ground); border-top: 1px solid var(--line); margin-top: 24px; }
.footer-in { padding-top: 24px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; padding: 10px 0; }
.footer-links a:hover { color: var(--blue); }
.footer-risk, .footer-copy { font-size: 12px; line-height: 1.55; color: var(--mut); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 14px; border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; text-align: center; line-height: 1.2; transition: background-color .15s, border-color .15s, color .15s; }
.btn-lg { min-height: 52px; font-size: 16px; }
.btn-xl { min-height: 56px; font-size: 17px; font-weight: 800; border-radius: 16px; }
.btn-sm { min-height: 44px; font-size: 13px; border-radius: 12px; padding: 0 12px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #1C2638; color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-3); }
.btn-ghost:hover { border-color: var(--faint); color: var(--ink); }
.btn-dashed { background: transparent; color: var(--blue); border: 1px dashed var(--faint); min-height: 48px; font-size: 14px; }
.btn-soft-pos { background: var(--pos-bg); color: var(--pos); border: 0; font-weight: 800; font-size: 14px; min-height: 48px; }
.btn-danger-text { color: var(--neg); }
.btn:disabled:not(.busy), .btn[aria-disabled="true"] { background: var(--faint); border-color: var(--faint); color: #fff; }
.btn-ghost:disabled:not(.busy) { background: var(--ground); border-color: var(--line); color: var(--mut); }
.btn.busy { opacity: .75; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }
.icon-btn:hover { background: var(--ground); }

/* follow / copy toggles */
.tg-follow[aria-pressed="false"] { background: var(--card); color: var(--ink); border-color: var(--line-3); }
.tg-follow[aria-pressed="true"] { background: var(--blue-30); color: var(--blue); border-color: var(--blue-line); }
.tg-copy[aria-pressed="false"] { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 800; }
.tg-copy[aria-pressed="false"]:hover { background: var(--blue-d); }
.tg-copy[aria-pressed="true"] { background: var(--pos); color: #fff; border-color: var(--pos); font-weight: 800; }
.tg-copy:disabled { background: var(--faint); border-color: var(--faint); }

/* chips + segmented */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips-wrap { flex-wrap: wrap; overflow: visible; }
.chip { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-3); background: var(--card); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip:disabled { color: var(--faint); background: var(--ground); }
.chip .chip-sub { font-weight: 600; color: var(--mut); margin-left: 4px; }
.chip[aria-pressed="true"] .chip-sub { color: var(--inv-mut); }
.seg { display: grid; gap: 4px; background: var(--seg); padding: 4px; border-radius: 14px; }
.seg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg button { min-height: 40px; border: 0; border-radius: 10px; font-size: 14px; font-weight: 700; background: transparent; color: var(--sec); padding: 0 6px; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(11, 18, 32, .12); }

/* cards + lists */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list > .item { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.list > .item:last-child { border-bottom: 0; }
.list > .empty, .list > .err { padding: 16px 14px; }
.item-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: baseline; }
.item-title { font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }
.item-meta { font-size: 12px; color: var(--mut); }
.item-full { grid-column: 1 / -1; }
.empty { color: var(--mut); font-size: 14px; }
.err { color: var(--neg); font-size: 14px; font-weight: 600; }
.banner { border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 700; }
.banner-pos { background: var(--pos-bg); color: #0B3D22; border: 1px solid var(--pos-mid); }
.banner-neg { background: var(--neg-bg); color: #7A2C08; border: 1px solid var(--neg-mid); }
.notice { background: var(--warn-bg); color: #6B3A08; border-bottom: 1px solid #F4D9B4; font-size: 13px; font-weight: 600; padding: 10px var(--gutter); text-align: center; }

/* pills */
.pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; white-space: nowrap; justify-self: end; }
.pill-pos { background: var(--pos-bg); color: var(--pos); }
.pill-neg { background: var(--neg-bg); color: var(--neg); }
.pill-info { background: var(--blue-30); color: var(--blue); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-mute { background: var(--line-2); color: var(--sec); }

/* avatar */
.av { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px; text-decoration: none; background: var(--line); }
.av-lg { width: 44px; height: 44px; flex-basis: 44px; border-radius: 13px; font-size: 14px; }
.av-xl { width: 64px; height: 64px; flex-basis: 64px; border-radius: 20px; font-size: 22px; }
.av-c0 { background: #2448F5; } .av-c1 { background: #0B7A43; } .av-c2 { background: #9A4A0B; } .av-c3 { background: #5B3FD6; }
.av-c4 { background: #0B1220; } .av-c5 { background: #B4420F; } .av-c6 { background: #1F6F8B; }
a.av:hover { color: #fff; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-k { font-size: 11px; color: var(--mut); }
.stat-v { font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }

/* skeletons */
.sk { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--line-2), #F8FAFC, var(--line-2)); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; margin: 6px 0; width: 100%; }
.sk-inv { background: rgba(255, 255, 255, .14); animation: none; height: 30px; }
.sk-w40 { width: 40%; } .sk-w60 { width: 60%; } .sk-w80 { width: 80%; }
.sk-chip { display: inline-block; width: 90px; height: 44px; border-radius: 999px; margin: 0; }
.sk-block { background: var(--line-2); }
.sk-row { padding: 14px; border-bottom: 1px solid var(--line-2); }
.sk-row:last-child { border-bottom: 0; }
.sk-chart { height: 180px; border-radius: 12px; background: var(--line-2); }
.sk-card { height: 220px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); padding: 16px; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } * { transition: none !important; scroll-behavior: auto !important; } }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field .help { font-size: 12px; color: var(--mut); line-height: 1.45; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--line-3); border-radius: 12px; background: #FBFCFE; padding: 0 14px; font-size: 16px; color: var(--ink);
}
textarea { padding: 12px 14px; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
.code-input { font-size: 24px; font-weight: 800; letter-spacing: .4em; text-align: center; }
.search { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--ground); border: 1px solid var(--line); }
.search:focus-within { border-color: var(--blue); box-shadow: var(--focus); }
.search input { border: 0; background: transparent; padding: 0; min-height: 44px; box-shadow: none; flex: 1; min-width: 0; }
.search input:focus { box-shadow: none; }

/* switch */
.switch { flex: 0 0 52px; width: 52px; height: 30px; border: 0; border-radius: 999px; background: #C9D1DE; display: flex; align-items: center; padding: 3px; position: relative; }
.switch::before { content: ""; position: absolute; inset: -7px -2px; }
.switch span { width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--blue); }
.switch[aria-checked="true"] span { transform: translateX(22px); }
.switch:disabled { opacity: .55; }
.switch-list { padding: 4px 16px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.switch-row:last-child { border-bottom: 0; }
.switch-title { font-weight: 700; font-size: 15px; }

/* page heads */
.page-head { border-bottom: 1px solid var(--line); }
.page-head-in { padding-top: 14px; padding-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }
.backbar { background: var(--card); border-bottom: 1px solid var(--line); }
.backbar-in { display: flex; align-items: center; gap: 8px; min-height: 56px; padding-left: 8px; padding-right: 8px; }
.backbar-title { flex: 1; font-weight: 700; font-size: 16px; }
.stepbar { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.stepbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.stepbar-title { font-weight: 700; font-size: 16px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps span { height: 4px; border-radius: 2px; background: var(--line-3); }
.steps span.on { background: var(--blue); }

/* home */
.hero-in { padding-top: 30px; padding-bottom: 28px; display: grid; gap: 28px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.hero-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.trust { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mut); }
.hero-feed { display: flex; flex-direction: column; gap: 12px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; }
.feed-item { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--ink); }
a.feed-item:hover { background: #FAFBFD; color: var(--ink); }
.feed-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feed-top, .feed-bot { display: flex; justify-content: space-between; gap: 8px; }
.feed-top b { font-size: 14px; }
.feed-what { font-size: 13px; color: var(--ink-2); line-height: 1.4; overflow-wrap: anywhere; }
.feed-bot { font-size: 12px; color: var(--mut); }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.tcard { display: flex; flex-direction: column; gap: 12px; }
.tcard-top { display: flex; gap: 12px; align-items: center; }
.tcard-id { flex: 1; min-width: 0; }
.tcard-name { font-weight: 800; font-size: 16px; color: var(--ink); text-decoration: none; }
.tcard-name:hover { color: var(--blue); }
.tcard-what { font-size: 13px; color: var(--mut); overflow-wrap: anywhere; }
.tcard-ret { text-align: right; }
.tcard-ret b { display: block; font-size: 18px; font-weight: 800; }
.tcard-ret span { font-size: 11px; color: var(--mut); }
.tcard .stats { border-top: 0; padding-top: 0; }
.lastline { font-size: 12px; color: var(--sec); background: var(--ground); border-radius: 10px; padding: 8px 10px; overflow-wrap: anywhere; }
.two-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.how li { display: flex; gap: 14px; }
.how-n { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.how h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.how p { font-size: 14px; line-height: 1.5; color: var(--sec); }
.broker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.broker-tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.broker-tile b { font-size: 15px; }
.broker-tile span { font-size: 12px; color: var(--sec); }
.broker-tile .tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* leaderboard */
.lb-cols { display: grid; grid-template-columns: 28px minmax(0, 1fr) 110px; gap: 10px; font-size: 11px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; padding: 0 12px; }
.lb-cols span:last-child { text-align: right; }
.lb-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lb-row { padding: 11px 12px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.lb-row:last-child { border-bottom: 0; }
.lb-main { display: grid; grid-template-columns: 28px 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); border-radius: 10px; }
.lb-main:hover { color: var(--ink); }
.lb-main:hover .lb-name { color: var(--blue); }
.lb-rank { font-size: 13px; font-weight: 700; color: var(--mut); }
.lb-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lb-name { font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-sub { font-size: 12px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-val { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lb-val b { font-size: 15px; font-weight: 800; white-space: nowrap; }
.lb-val span { font-size: 11px; color: var(--mut); white-space: nowrap; }
.lb-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-left: 38px; }
.lb-new { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--warn); background: var(--warn-bg); padding: 1px 6px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }

/* profile */
.ident { padding-top: 20px; padding-bottom: 20px; display: flex; flex-direction: column; gap: 14px; }
.ident-top { display: flex; gap: 14px; align-items: center; }
.ident-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ident-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ident-actions .btn { min-height: 48px; font-size: 15px; }
.record { display: flex; flex-direction: column; gap: 12px; }
.record-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.big { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.mid { font-size: 16px; font-weight: 800; }
.mix { display: flex; flex-direction: column; gap: 8px; }
.mix-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 32px; align-items: center; gap: 10px; font-size: 13px; }
.mix-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mix-bar { height: 10px; border-radius: 0 4px 4px 0; background: var(--blue); min-width: 2px; }
.mix-n { text-align: right; color: var(--mut); }
.checks { padding: 4px 16px; }
.check { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.check:last-child { border-bottom: 0; }
.check-ic { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rules { padding: 4px 16px; }
.rules ol { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.rules li:last-child { border-bottom: 0; }
.rules li::before { content: counter(r); font-size: 12px; font-weight: 800; color: var(--blue); padding-top: 2px; }

/* chart */
.chart-host { position: relative; width: 100%; min-height: 120px; }
.chart-svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart-svg:focus-visible { box-shadow: var(--focus); border-radius: 8px; }
.ch-grid { stroke: var(--line-2); stroke-width: 1; }
.ch-zero { stroke: #A9B4C6; stroke-width: 1; stroke-dasharray: 3 3; }
.ch-area { fill: var(--blue-50); }
.ch-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-pos .ch-area { fill: var(--pos-fill); }
.ch-pos .ch-line, .ch-pos .ch-dot { stroke: var(--pos); }
.ch-lbl { font-size: 11px; fill: var(--mut); font-family: var(--font); font-variant-numeric: tabular-nums; }
.ch-cross { stroke: var(--ink); stroke-width: 1; opacity: .35; }
.ch-dot { fill: #fff; stroke: var(--blue); stroke-width: 2; }
.ch-hit { fill: transparent; cursor: crosshair; }
.chart-tip { position: absolute; top: 0; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.35; padding: 6px 9px; border-radius: 8px; white-space: nowrap; transform: translateX(-50%); z-index: 2; box-shadow: 0 4px 12px rgba(11, 18, 32, .18); }
.chart-tip b { display: block; font-size: 13px; font-variant-numeric: tabular-nums; }

/* bot calendar */
.cal-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cal-head { font-size: 11px; font-weight: 700; color: var(--mut); text-align: center; }
.cal-day { min-height: 52px; border: 0; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px; font-variant-numeric: tabular-nums; }
.cal-day .d { font-size: 11px; font-weight: 600; opacity: .8; }
.cal-day .v { font-size: 11px; font-weight: 800; }
.dpos { background: var(--pos); color: #fff; }
.dpos2 { background: var(--pos-mid); color: #0B3D22; }
.dneg { background: var(--neg-mid); color: #7A2C08; }
.dnone { background: var(--line-2); color: var(--mut); }
.dpre { background: transparent; color: #C9D1DE; border: 1px dashed var(--line-3); cursor: default; }
.cal-day[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.cal-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--sec); padding-top: 2px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.day-head { display: flex; justify-content: space-between; font-weight: 800; }

/* pricing */
.plans { display: flex; flex-direction: column; gap: 12px; }
.plan-block { display: flex; flex-direction: column; gap: 12px; }
.plan { border-radius: 22px; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.plan-year { background: var(--ink); color: #fff; }
.plan-month { background: var(--card); border: 2px solid var(--ink); }
.plan-name { font-weight: 800; font-size: 17px; }
.save { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: var(--inv-pos); color: #0B3D22; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .num { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan-price .per { font-size: 16px; color: var(--inv-mut); }
.plan-month .plan-price .per { color: var(--mut); }
.plan-sub { font-size: 14px; color: var(--inv-mut); margin-top: -6px; }
.plan-month .plan-sub { color: var(--sec); }
.perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.perks li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.perks li::before { content: ""; flex: 0 0 11px; width: 11px; height: 6px; margin: 5px 4px 0 3px; border-left: 2.5px solid var(--inv-pos); border-bottom: 2.5px solid var(--inv-pos); border-radius: 1px; transform: rotate(-45deg); }
.fine { font-size: 12px; color: var(--mut); text-align: center; line-height: 1.5; }
.compare { padding: 14px 16px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.compare-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 90px; gap: 8px; }
.compare-head { font-weight: 700; color: var(--mut); }
.faq { padding: 4px 16px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 10px; min-height: 48px; align-items: center; font-weight: 700; font-size: 14px; cursor: pointer; padding: 6px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 800; font-size: 18px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { font-size: 13px; color: var(--sec); line-height: 1.5; padding: 0 0 14px; }

/* sign-in */
.auth { display: flex; flex-direction: column; gap: 16px; padding: 22px 18px; }
.btn-provider { min-height: 56px; border-radius: 16px; border: 1px solid var(--line-3); background: var(--card); color: var(--ink); font-size: 16px; width: 100%; }
.btn-provider:hover { border-color: var(--faint); color: var(--ink); }
.btn-provider-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-provider-dark:hover { color: #fff; background: #1C2638; }
.prov-ic { width: 24px; height: 24px; border-radius: 6px; background: var(--ground); color: var(--blue); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.prov-apple { background: #fff; }
.or { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--mut); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* terms */
.terms-box { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.55; color: var(--ink-2); background: #FBFCFE; }
.terms-box h3 { font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.terms-box p { white-space: pre-line; }
.ticks { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tick { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; font-size: 14px; line-height: 1.45; min-height: 44px; }
.tick input { appearance: none; -webkit-appearance: none; flex: 0 0 24px; width: 24px; height: 24px; margin: 0; border-radius: 7px; border: 2px solid var(--faint); background: #fff; display: grid; place-content: center; cursor: pointer; }
.tick input::after { content: ""; width: 12px; height: 7px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.tick input:checked { background: var(--blue); border-color: var(--blue); }
.tick input:checked::after { opacity: 1; }
.tick input:focus-visible { box-shadow: var(--focus); }

/* broker setup */
.br-head { display: flex; flex-direction: column; gap: 6px; }
.br-head .row-between b { font-size: 19px; font-weight: 800; }
.br-how { font-size: 12px; font-weight: 700; color: var(--blue); }
.br-steps { padding: 6px 16px; }
.br-step { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; text-align: left; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.4; min-height: 44px; align-items: center; }
.br-step:last-child { border-bottom: 0; }
.br-step .mark { width: 30px; height: 30px; border-radius: 50%; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.br-step[aria-pressed="true"] .mark { background: var(--pos); color: #fff; border-color: var(--pos); }
.br-step[aria-pressed="true"] .txt { color: var(--sec); }
.br-note { border-radius: 14px; background: #FFF6EA; border: 1px solid #F4D9B4; padding: 12px 14px; font-size: 13px; color: #6B3A08; line-height: 1.5; }
.br-form { display: flex; flex-direction: column; gap: 12px; }
.br-wait { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); }
.spin { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; border: 2px solid var(--blue-50); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-row { display: flex; flex-direction: column; gap: 8px; }
.login-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.login-name { font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }
.login-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.login-def { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sec); }
.login-def select { width: auto; min-width: 140px; min-height: 44px; font-size: 14px; }

/* my copies */
.summary { padding-top: 16px; padding-bottom: 20px; display: flex; flex-direction: column; gap: 14px; }
.summary-label { font-size: 13px; color: var(--inv-mut); }
.summary-big { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.summary-big.pos, .tile-v.pos { color: var(--inv-pos); }
.summary-big.neg, .tile-v.neg { color: var(--inv-neg); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile-k { font-size: 11px; color: var(--inv-mut); }
.tile-v { font-weight: 800; overflow-wrap: anywhere; }
.copy-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.copy-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.copy-top { display: flex; gap: 12px; align-items: center; }
.copy-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.copy-id a { font-weight: 800; font-size: 16px; color: var(--ink); text-decoration: none; }
.copy-id a:hover { color: var(--blue); }
.copy-card .stats { border-top: 0; padding-top: 0; }

/* alerts */
.al-day { font-size: 12px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; padding-top: 6px; }
.al-item { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line-2); background: var(--card); text-align: left; color: var(--ink); position: relative; }
.al-item:last-child { border-bottom: 0; }
.al-item.unread { background: #F2F5FF; }
.al-item.unread::after { content: ""; position: absolute; top: 16px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.al-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-right: 14px; }
.al-top { display: flex; justify-content: space-between; gap: 8px; }
.al-top b { font-size: 14px; overflow-wrap: anywhere; }
.al-top span { font-size: 12px; color: var(--mut); flex: 0 0 auto; }
.al-text { font-size: 13px; color: var(--ink-2); line-height: 1.4; overflow-wrap: anywhere; }

/* legal + error */
.legal { gap: 18px; }
.legal-sec { display: flex; flex-direction: column; gap: 8px; }
.legal-body { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.legal-body p, .legal-body ul, .legal-body ol { margin: 0 0 10px; }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.errpage { padding-top: 60px; padding-bottom: 60px; }
.errcode { font-size: 56px; font-weight: 800; color: var(--blue); letter-spacing: -0.03em; }

/* table wrapper */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-align: left; white-space: nowrap; }
.tbl th { font-size: 11px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
.tbl td.r, .tbl th.r { text-align: right; }

/* sheet dialog */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; background: var(--card); color: var(--ink); box-shadow: 0 -10px 40px rgba(11, 18, 32, .2); }
.sheet::backdrop { background: rgba(11, 18, 32, .45); }
.sheet[open] { display: block; }
.sheet:not([open]) { display: none; }
.sheet-in { padding: 22px var(--gutter) calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.sheet-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sheet-actions .btn { min-height: 52px; }
.sheet.fallback { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; }

/* toast */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 70; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(11, 18, 32, .25); }
.toast.toast-err { background: var(--neg); }
body.has-bnav .toast { bottom: calc(var(--bnav-h) + 16px + env(safe-area-inset-bottom)); }

/* desktop */
@media (min-width: 600px) {
  .hero-ctas { flex-direction: row; }
  .hero-ctas .btn { padding: 0 22px; }
  .broker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  :root { --gutter: 24px; }
  .tb-links { display: flex; }
  .tb-mobile, .tb-menu { display: none !important; }
  .subnav { display: block; }
  .bnav { display: none; }
  body.has-bnav { padding-bottom: 0; }
  body.has-bnav .toast { bottom: 24px; }
  .display { font-size: 52px; }
  .h1 { font-size: 28px; }
  .section { padding-top: 32px; padding-bottom: 32px; }
  .hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .broker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .lb-cols { display: none; }
  .lb-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .lb-row { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
  .lb-row:last-child { border-bottom: 1px solid var(--line); }
  .lb-list > .empty, .lb-list > .err { grid-column: 1 / -1; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
  .lb-list > .sk-row { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
  .cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .copy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ident { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ident-top { flex: 1 1 360px; }
  .ident-actions { flex: 0 0 380px; }
  .ident > .center { flex-basis: 100%; text-align: right; }
  .sheet { margin: auto; max-width: 440px; border-radius: 22px; }
  .sheet.fallback { top: 50%; bottom: auto; left: 50%; transform: translate(-50%, -50%); }
  .summary { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }
  .summary h1 { flex-basis: 100%; }
  .tiles { flex: 0 0 480px; }
}

.field-check label{display:flex;align-items:center;gap:10px;font-weight:600;min-height:44px;cursor:pointer}
.field-check input{width:20px;height:20px;accent-color:var(--blue,#2448F5)}
