:root {
  --page: #0a0a0a;
  --app: #111111;
  --panel: #191919;
  --panel-2: #212121;
  --inset: #141414;
  --line: #242424;
  --line-2: #303030;
  --text: #f4f4f4;
  --muted: #9b9b9b;
  --dim: #686868;
  --accent: #7ee06c;
  --accent-2: #a9f29a;
  --up: #7ddc6b;
  --down: #f2555a;
  --live: #e9a94b;
  --blue: #5b8def;
  --chart-line: #f2f2f2;
  --red: #d8363c;
  --glow: rgb(126 224 108 / 0.16);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --r: 14px;
  font-family: var(--sans);
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* Components set their own display; hidden must still win. */
[hidden] { display: none !important; }
html { scrollbar-color: var(--line-2) transparent; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-size: 13px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background: radial-gradient(1225px 787.5px at 50% -20%, #1c1c1c, var(--page) 60%) fixed, var(--page);
  font-feature-settings: 'cv11', 'ss01'; font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; }
h2 { font-size: 14.5px; font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.dim { color: var(--dim); }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.error { color: var(--down); margin: 0; }
.up { color: var(--up); }
.down { color: var(--down); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.eyebrow { margin: 0; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
[data-icon] { display: inline-block; width: 16px; height: 16px; }
svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; stroke: none; }

/* --- app frame ------------------------------------------------------------------------- */
.app { display: grid; grid-template-columns: 220.5px 1fr; height: 100vh; height: 100dvh; background: var(--app); overflow: hidden; transition: grid-template-columns 0.45s var(--ease); }
.app.collapsed { grid-template-columns: 68px 1fr; }

/* sidebar */
.side { display: flex; flex-direction: column; padding: 23px 16px 19px; border-right: 1px solid var(--line); min-width: 0; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.side-head { display: flex; justify-content: space-between; align-items: center; padding: 0 5px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 18.5px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.brand svg { color: var(--accent); width: 19px; height: 19px; }
.search { position: relative; margin-top: 19px; }
.search > svg { position: absolute; left: 11.5px; top: 50%; transform: translateY(-50%); color: var(--dim); width: 14px; height: 14px; }
.search input { width: 100%; height: 38.5px; padding: 0 12px 0 33px; margin: 0; border-radius: 10.5px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 12.5px; }
.search input::placeholder { color: var(--dim); }
.search input:focus { outline: none; border-color: var(--line-2); box-shadow: 0 0 0 2.5px rgb(255 255 255 / 0.04); }
.search-results { position: absolute; z-index: 30; left: 0; right: 0; top: 44px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10.5px; padding: 5px; box-shadow: 0 17.5px 44px rgb(0 0 0 / 0.5); }
.search-results button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px 9px; border: 0; background: none; color: var(--text); font: inherit; font-size: 12px; border-radius: 7px; cursor: pointer; text-align: left; }
.search-results button:hover, .search-results button.on { background: var(--panel-2); }
.search-results small { margin-left: auto; color: var(--dim); }
.search-results p { margin: 7px 9px; color: var(--dim); font-size: 11.5px; }
.nav { display: flex; flex-direction: column; gap: 3.5px; }
.nav button, .nav a, .nav-btn { position: relative; display: flex; width: 100%; align-items: center; gap: 10.5px; height: 40px; padding: 0 12px; border: 1px solid transparent; border-radius: 10.5px; background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: color 0.2s, background 0.3s, border-color 0.3s; }
.nav button:hover, .nav a:hover, .nav-btn:hover { color: var(--text); }
.nav button.active { color: var(--text); background: linear-gradient(90deg, #2a2a2a, #1c1c1c 60%, transparent); border-color: #2c2c2c; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05); }
.nav button.active::after { content: ''; position: absolute; right: -16.5px; top: 50%; width: 2.5px; height: 16px; transform: translateY(-50%); border-radius: 2.5px; background: var(--muted); }
.side-foot { margin-top: auto; }
.credit { margin: 9px 12px 0; font-size: 10px; color: var(--dim); white-space: nowrap; }
.credit a { color: var(--muted); }
.app.collapsed .side { padding-left: 12px; padding-right: 12px; }
.app.collapsed .brand span, .app.collapsed .nav span, .app.collapsed .nav-btn span, .app.collapsed .search, .app.collapsed .credit { display: none; }
.app.collapsed .side-head { flex-direction: column; gap: 12px; }
.app.collapsed .nav button, .app.collapsed .nav a, .app.collapsed .nav-btn { justify-content: center; padding: 0; }
.app.collapsed .nav button.active::after { right: -13px; }

/* main + top bar */
.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 0 24.5px; }
.top { display: flex; align-items: center; gap: 16px; height: 77px; flex: none; border-bottom: 1px solid var(--line); }
.breaking { display: flex; align-items: center; min-width: 0; flex: 1; }
.breaking-view { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 88%, transparent); }
.breaking-label { color: var(--accent); font-weight: 500; font-size: 12.5px; padding-right: 17.5px; margin-right: 3.5px; border-right: 1px solid var(--line-2); flex: none; }
.breaking-track { display: flex; align-items: center; white-space: nowrap; animation: tape 70s linear infinite; }
.breaking:hover .breaking-track { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }
.tick-item { display: inline-flex; align-items: center; gap: 7px; padding: 0 17.5px; font-size: 12.5px; color: var(--muted); border-right: 1px solid var(--line-2); }
.tick-item::before { content: ''; width: 4.5px; height: 4.5px; border-radius: 50%; background: var(--accent); }
.tick-item b { font-weight: 500; color: var(--muted); }
.tick-item .px { color: var(--text); }
.top-right { display: flex; align-items: center; gap: 9px; flex: none; }
.net { display: flex; align-items: center; gap: 8px; height: 38.5px; padding: 0 12px; border-radius: 10.5px; background: var(--panel); border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
#block { transition: color 0.6s; }
#block.tick { color: var(--accent); }
.pulse { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(3); opacity: 0; } }
.wallet-pill { display: flex; align-items: center; gap: 9px; height: 38.5px; padding: 0 12px; border-radius: 10.5px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.wallet-pill svg { color: var(--muted); }
.wallet-pill:hover { border-color: var(--line-2); }
.bolt-btn { display: grid; place-items: center; width: 38.5px; height: 38.5px; border-radius: 10.5px; background: #000; border: 1px solid var(--line-2); color: #fff; transition: transform 0.2s; }
.bolt-btn:hover { transform: translateY(-1px); }
.bolt-btn svg { width: 17.5px; height: 17.5px; }

.body { display: grid; grid-template-columns: minmax(0, 1fr) 328px; flex: 1; min-height: 0; }
.content { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 23px 26px 42px 0; border-right: 1px solid var(--line); }
.rail { min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 26px 0 35px 26px; display: flex; flex-direction: column; gap: 12px; }

/* page heading (Image 3) */
.view { animation: view-in 0.5s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(7px); } }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.crumb svg { width: 14px; height: 14px; }
.welcome { margin: 40px 0 5px; color: var(--muted); font-size: 14px; }
.content h1 { font-size: 35px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 30px 0 19px; }
/* Views without a toolbar (Portfolio) keep the same gap between the title and the first card. */
.content h1:not(:has(+ .toolbar)) { margin-bottom: 30px; }
.pills { display: inline-flex; gap: 2px; padding: 3.5px; border-radius: 12px; background: #161616; border: 1px solid var(--line); flex-wrap: wrap; }
.pills button { display: inline-flex; align-items: center; gap: 7px; height: 35px; padding: 0 12px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; transition: color 0.2s, background 0.25s; }
.pills button svg { width: 14px; height: 14px; }
.pills button:hover { color: var(--text); }
.pills button.active { color: var(--text); background: var(--panel-2); border-color: #2c2c2c; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05); }
.sort { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 11px; color: var(--muted); }
.sort select { appearance: none; margin: 0; width: auto; height: auto; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f4f4' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 14px; padding: 0 21px 0 0; color: var(--text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: none; }
.sort select:focus { box-shadow: none; }
.sort.static b { color: var(--text); font-size: 14px; font-weight: 500; }

/* cards */
.card { background: var(--panel); border: 1px solid #222; border-radius: var(--r); padding: 21px; margin-bottom: 17.5px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.03); }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10.5px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head:has(.card-tools) { align-items: center; }
.card-tools { display: flex; align-items: center; gap: 14px; }
.seg .count { margin-left: 6px; font-size: 10.5px; color: var(--dim); }
.seg button.active .count { color: var(--muted); }
.lead { margin: -5px 0 16px; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 5px; background: #262626; color: var(--muted); font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.tag.live { color: var(--live); background: rgb(233 169 75 / 0.12); }
.tag.paper, .tag.verified { color: var(--blue); background: rgb(91 141 239 / 0.12); }
.tag svg { width: 9.5px; height: 9.5px; margin-right: 2.5px; stroke-width: 2.4; }
.btn svg { width: 14px; height: 14px; }
.pill-coin { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #0f0f0f; border: 1px solid var(--line-2); font-size: 10px; font-weight: 600; color: var(--text); }
.post-meta .dot-sep { color: var(--text); font-size: 11.5px; }
.post-foot .link { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-size: 12.5px; }
.post-foot .link svg { width: 14px; height: 14px; }
.badge { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 5px; font-size: 10.5px; font-weight: 600; background: #262626; color: var(--muted); }
.badge.up { color: var(--up); background: rgb(125 220 107 / 0.12); }
.badge.down { color: var(--down); background: rgb(242 85 90 / 0.12); }
blockquote { margin: 16px 0 0; padding: 2px 0 2px 19px; border-left: 2px solid var(--line-2); font-size: 14.5px; line-height: 1.6; color: #e6e6e6; }

/* post card (platform pulse) */
.post-meta { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--muted); }
.post-foot { display: flex; align-items: center; gap: 14px; margin-top: 17.5px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.post-foot .who { display: flex; align-items: center; gap: 9px; color: var(--text); padding-right: 14px; border-right: 1px solid var(--line-2); }
.post-foot .who svg { color: var(--accent); width: 14px; height: 14px; }
.post-foot .stats-inline { margin-left: auto; display: flex; gap: 19px; }
.post-foot .stats-inline span { display: inline-flex; gap: 5px; align-items: center; }
.post-foot .stats-inline svg { width: 14px; height: 14px; }
.post-foot .stats-inline b { color: var(--text); font-weight: 500; }

/* asset card */
.asset-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.coin { display: grid; place-items: center; width: 45.5px; height: 45.5px; border-radius: 50%; background: #121212; border: 1px solid var(--line-2); font-size: 18.5px; font-weight: 600; color: var(--text); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05); flex: none; }
.coin.sm { width: 36px; height: 36px; font-size: 14px; }
.asset-title { display: flex; align-items: baseline; gap: 7px; margin-bottom: 5px; }
.asset-title b { font-size: 15.5px; font-weight: 600; }
.asset-title span { color: var(--muted); font-size: 14px; }
.asset-px { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.asset-px b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; transition: color 0.8s; }
.chart-box { position: relative; margin-top: 19px; border-radius: 12px; background: var(--inset); border: 1px solid #1d1d1d; overflow: hidden; }
.mchart-canvas { height: 315px; }
.mchart-canvas canvas { filter: drop-shadow(0 0 6px rgb(255 255 255 / 0.22)); }
.seg.chart-type { position: absolute; z-index: 4; top: 10.5px; right: 10.5px; }
.mchart-legend { position: absolute; z-index: 4; top: 14px; left: 14px; display: flex; gap: 12px; font-size: 10.5px; color: var(--dim); pointer-events: none; }
.mchart-legend b { color: var(--muted); font-weight: 500; }
.tip { position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); padding: 8px 12px; border-radius: 86.5px; background: #000; color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 9px 26px rgb(0 0 0 / 0.5); }
.tip small { font-weight: 500; margin-left: 5px; }
.mchart-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 21px; text-align: center; color: var(--muted); font-size: 12px; background: var(--inset); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10.5px; margin-top: 17.5px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 17.5px; border-radius: 10.5px; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); transition: transform 0.15s, border-color 0.2s, background 0.2s, opacity 0.2s; white-space: nowrap; }
.btn:hover { border-color: #3a3a3a; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn.glossy { background: linear-gradient(90deg, #1b1b1b, #3a3a3a 50%, #1b1b1b); border-color: #3a3a3a; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08); }
.btn.glossy:hover { background: linear-gradient(90deg, #202020, #474747 50%, #202020); }
.btn.flat { background: #161616; border-color: #222; }
.btn.flat:hover { background: #1c1c1c; }
.btn.outline { background: linear-gradient(90deg, #121212, #1e1e1e, #121212); border-color: #3a3a3a; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #0b0b0b; font-weight: 600; }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: none; }
.btn.danger:hover { border-color: var(--down); color: var(--down); }
.btn.sm { height: 30px; padding: 0 10.5px; font-size: 12px; border-radius: 8px; }
button.link { border: 0; background: none; color: var(--muted); padding: 0; font: inherit; font-size: 12px; cursor: pointer; }
button.link:hover { color: var(--text); }
.icon-btn { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9.5px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn.plain { background: none; border-color: transparent; }

/* segmented control (chart type) */
.seg { position: relative; display: inline-flex; padding: 2.5px; border-radius: 9px; background: rgb(0 0 0 / 0.55); border: 1px solid var(--line); backdrop-filter: blur(5px); }
.seg button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; padding: 4.5px 10.5px; cursor: pointer; transition: color 0.2s; }
.seg button.active { color: var(--text); }
.seg-ink { position: absolute; top: 2.5px; bottom: 2.5px; left: 0; width: 0; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 6px; transition: transform 0.4s var(--ease), width 0.4s var(--ease); }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { padding: 12px 10.5px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
th { font-size: 10px; font-weight: 500; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.2s; }
tbody tr.row-in { animation: row-in 0.6s var(--ease) both; }
@keyframes row-in { from { opacity: 0; transform: translateX(-5px); } }
tr[data-bot] { cursor: pointer; }
tr[data-bot]:hover { background: #1e1e1e; }
.rank { color: var(--dim); width: 31.5px; }
.bot-name b { font-weight: 500; }
.pnl-cell { min-width: 131px; }
.pnl-bar { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.pnl-bar i { display: block; height: 3.5px; border-radius: 2px; background: currentColor; opacity: 0.55; transform-origin: right; animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.chips { display: flex; gap: 3.5px; }
.chip { font-size: 9.5px; font-weight: 600; letter-spacing: 0.05em; padding: 2px 6px; border-radius: 5px; background: #262626; color: var(--muted); text-transform: uppercase; }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--dim); }
.status.running { color: var(--up); }
.status.running::before { background: var(--up); box-shadow: 0 0 0 2.5px rgb(125 220 107 / 0.15); }
.status.halted::before { background: var(--down); }
.empty { padding: 45.5px 21px !important; text-align: center; white-space: normal !important; }
.empty-art { width: 105px; height: 42px; margin: 0 auto 14px; display: block; color: var(--line-2); }
.empty-art path { stroke-dasharray: 4 5; animation: dash 6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -90; } }
.empty h4 { margin: 0 0 5px; font-weight: 600; font-size: 14px; }
.empty p { margin: 0 auto 16px; color: var(--muted); max-width: 385px; }
.actions { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }

/* right rail (Image 3) */
.rail-title { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 500; margin: 5px 0 3.5px; }
.rail-title svg { width: 16px; height: 16px; color: var(--muted); }
.rail-title:not(:first-child) { margin-top: 19px; }
.pop { position: relative; min-height: 163px; }
.pop-card { background: var(--panel); border: 1px solid #222; border-radius: var(--r); padding: 17.5px; animation: pop-in 0.55s var(--ease) both; }
@keyframes pop-in { from { opacity: 0; transform: translateX(12px); } }
.pop-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10.5px; align-items: center; }
.pop-top > span:nth-child(2) { min-width: 0; }
.avatar-sq { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10.5px; background: #fff; color: #000; }
.avatar-sq svg { width: 21px; height: 21px; }
.pop-name { display: flex; flex-direction: column; align-items: flex-start; gap: 4.5px; font-weight: 500; font-size: 14px; }
.pop-name > span:first-child { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-sub { display: flex; align-items: center; gap: 5px; margin-top: 4.5px; font-size: 11.5px; color: var(--up); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-sub::before { content: ''; width: 4.5px; height: 4.5px; border-radius: 50%; background: currentColor; }
.pop-sub.idle { color: var(--muted); }
.pop-roi { text-align: right; }
.pop-roi b { display: block; font-size: 15.5px; font-weight: 600; }
.pop-roi span { font-size: 11px; color: var(--dim); }
.pop-card .btn { margin-top: 17.5px; width: 100%; }
.dots { display: flex; justify-content: center; gap: 5px; margin-top: 2px; }
.dots button { width: 12px; height: 2.5px; border-radius: 2px; border: 0; padding: 0; background: var(--line-2); cursor: pointer; transition: width 0.4s var(--ease), background 0.3s; }
.dots button.on { width: 35px; background: var(--muted); }
.hot { display: flex; flex-direction: column; gap: 10.5px; }
.hot-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 12px 14px; background: var(--panel); border: 1px solid #222; border-radius: 12px; cursor: pointer; transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease); font: inherit; color: inherit; text-align: left; width: 100%; animation: row-in 0.5s var(--ease) both; }
.hot-row:hover { background: #1d1d1d; transform: translateX(-2px); }
.hot-row.active { border-color: #383838; background: #1d1d1d; }
.hot-row .sym { min-width: 0; }
.hot-row .sym b { display: block; font-weight: 500; font-size: 13.5px; }
.hot-row .sym span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-row .val { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3.5px; padding-right: 9px; border-right: 1px solid var(--line-2); }
.hot-row .val b { font-weight: 600; font-size: 13px; transition: color 0.8s; }
.hot-row .badge { height: 16.5px; font-size: 9.5px; }
.spark { width: 58px; height: 30px; display: block; overflow: visible; --c: #d9d9d9; }
.spark.up { --c: var(--up); }
.spark.down { --c: var(--down); }
.spark .s0 { stop-color: var(--c); stop-opacity: 0.28; }
.spark .s1 { stop-color: var(--c); stop-opacity: 0; }
.spark-base { fill: none; stroke: #4a4a4a; stroke-width: 1; stroke-dasharray: 1.5 2.5; }
.spark-area { opacity: 0; animation: fade 0.9s 0.7s ease forwards; }
.spark-line { fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s var(--ease) forwards; filter: drop-shadow(0 0 2px var(--c)); }
.spark-dot { fill: var(--c); opacity: 0; animation: fade 0.3s 1.2s forwards; }
.spark-ring { fill: none; stroke: var(--c); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.hot-row:hover .spark-ring, .hot-row.active .spark-ring { animation: spark-ping 1.8s var(--ease) infinite; }
@keyframes spark-ping { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.flash-up { color: var(--up) !important; transition: none !important; }
.flash-down { color: var(--down) !important; transition: none !important; }

/* skeleton + loading */
.skel { position: relative; overflow: hidden; background: var(--panel-2); border-radius: 5px; color: transparent !important; min-height: 1em; }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.04), transparent); animation: shimmer 1.6s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(20 20 20 / 0.55); opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 6; }
.loading.on { opacity: 1; }
.loading span { width: 105px; height: 2px; background: var(--line-2); overflow: hidden; position: relative; border-radius: 2px; }
.loading span::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: load 1.1s var(--ease) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(149px, 1fr)); gap: 12px 14px; }
form label { display: block; font-size: 11.5px; color: var(--muted); }
input, select { display: block; width: 100%; margin-top: 6px; height: 38.5px; padding: 0 12px; font: inherit; font-size: 13px; color: var(--text); background: #141414; border: 1px solid var(--line); border-radius: 9px; transition: border-color 0.2s, box-shadow 0.2s; }
/* Dropdowns: custom chevron inset from the edge instead of the browser's arrow. */
select { appearance: none; padding-right: 40px; text-overflow: ellipsis; background: #141414 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b9b9b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 14px; cursor: pointer; }
select:hover { background-color: #171717; }
input:hover, select:hover { border-color: var(--line-2); }
input:focus, select:focus { outline: none; border-color: #3a3a3a; box-shadow: 0 0 0 2.5px rgb(255 255 255 / 0.04); }
input::placeholder { color: var(--dim); }
fieldset { border: 0; padding: 0; margin: 16px 0 0; }
legend { font-size: 11.5px; color: var(--muted); padding: 0; margin-bottom: 7px; }
.picks { display: flex; flex-wrap: wrap; gap: 5px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; font-size: 11.5px; padding: 6px 10.5px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); cursor: pointer; transition: all 0.2s; user-select: none; }
.pick span:hover { border-color: var(--line-2); color: var(--text); }
.pick input:checked + span { color: var(--text); border-color: #3a3a3a; background: var(--panel-2); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 10.5px; flex-wrap: wrap; margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); }
.form-foot .btn { margin-left: auto; }

/* portfolio */
.gate { text-align: center; padding: 42px 21px; }
.gate h2 { font-size: 18.5px; margin: 10.5px 0 7px; }
.gate p { color: var(--muted); max-width: 402.5px; margin: 0 auto 17.5px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10.5px; overflow: hidden; max-width: 560px; margin: 0 auto 21px; text-align: left; }
.steps div { background: #151515; padding: 12px 14px; font-size: 12px; color: var(--muted); }
.steps div > b:first-child { display: block; font-size: 10px; color: var(--accent); margin-bottom: 3.5px; font-weight: 600; }
.steps b { color: var(--text); font-weight: 500; }
.gate-alt { margin-top: 19px !important; }
.addr { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; padding: 9px 10.5px; background: #141414; border: 1px solid var(--line); border-radius: 9px; }
.addr .btn { font-family: var(--sans); }
.addr a { color: var(--text); }
.balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(131px, 1fr)); gap: 10.5px; margin-top: 12px; }
.balances div { background: #151515; border: 1px solid var(--line); border-radius: 10.5px; padding: 12px 14px; }
.balances span { display: block; font-size: 10px; color: var(--dim); letter-spacing: 0.08em; }
.balances b { font-size: 17.5px; font-weight: 600; }
.bots { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 12px; }
.bot-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #151515; transition: border-color 0.25s, transform 0.25s var(--ease); animation: row-in 0.6s var(--ease) both; }
.bot-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.bot-card .top { display: flex; justify-content: space-between; align-items: center; gap: 7px; height: auto; border: 0; }
.bot-card .meta { font-size: 11.5px; color: var(--dim); margin: 5px 0 12px; }
.bot-card .figs { display: flex; justify-content: space-between; align-items: flex-end; }
.bot-card .figs b { font-size: 22px; font-weight: 600; }
.bot-card .figs span { font-size: 11.5px; color: var(--muted); text-align: right; }
.bot-card .acts { display: flex; gap: 5px; margin-top: 12px; padding-top: 10.5px; border-top: 1px solid var(--line); align-items: center; }
.bot-card .acts { flex-wrap: wrap; }
.bot-card .acts .status { width: 100%; margin: 0 0 4px; }
.bot-card .acts .btn { flex: 1; }
.bot-card .acts .status { margin-right: auto; }

/* detail popup (assets, bots, strategies) */
.dm-head { gap: 10px; }
.dm-head #dm-close { margin-left: auto; }
.dm-head .mono { font-size: 13px; }
.coin.xs { width: 30px; height: 30px; font-size: 13px; }
.wv-actions .round.wide { display: flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-width: 96px; padding: 0 18px; font: inherit; font-size: 14px; font-weight: 600; }
.wv-legend .k-buy, .wv-legend .k-sell { width: 8px; height: 8px; border-radius: 50%; background: var(--up); }
.wv-legend .k-sell { background: var(--down); }
.wv-legend .k-l2 { background: var(--live); }
.wv-legend .k-mid { background: var(--dim); }
.hold.stat { display: flex; flex-direction: column; gap: 6px; }
.hold.stat span { font-size: 11px; color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase; }
.hold.stat b { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.wv-grid .wv-none, .wv-grid .wide-link, .wv-grid .kv { grid-column: 1 / -1; }
.wide-link { justify-content: center; }
.mini-list { display: flex; flex-direction: column; gap: 6px; }
.mini-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; width: 100%; padding: 11px 13px; border-radius: 12px; background: #181818; border: 1px solid #232323; color: inherit; font: inherit; font-size: 13px; text-align: left; animation: row-in 0.45s var(--ease) both; }
button.mini-row { cursor: pointer; transition: background 0.2s, border-color 0.2s; }
button.mini-row:hover { background: #1e1e1e; border-color: #303030; }
.mini-row > span:first-child { min-width: 0; }
.mini-row b { font-weight: 500; }
.mini-row small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row.log { grid-template-columns: 130px minmax(0, 1fr); align-items: start; }
.mini-row a { color: var(--muted); }
.asset-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.asset-picks button { height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid #2a2a2a; background: #181818; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; transition: all 0.2s; }
.asset-picks button:hover { color: var(--text); border-color: #3a3a3a; }
.asset-picks button.active { background: var(--accent); border-color: var(--accent); color: #0b0b0b; font-weight: 600; }
.strat { cursor: pointer; }
.strat:focus-visible { outline: none; border-color: var(--accent); }

/* wallet popup: funding, readiness, holdings, activity */
.wallet .wv-main { display: flex; flex-direction: column; gap: 18px; }
.wl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; border: 0; background: rgb(255 255 255 / 0.08); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background 0.2s, transform 0.15s; }
.pill-btn:hover { background: rgb(255 255 255 / 0.14); }
.pill-btn:active { transform: scale(0.97); }
.pill-btn.light { background: #f4f4f4; color: #0b0b0b; font-weight: 600; }
.pill-btn.light:hover { background: #fff; }
.pill-btn svg { width: 16px; height: 16px; }
.fund { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: start; padding: 16px; border-radius: 16px; background: rgb(0 0 0 / 0.35); border: 1px solid #262626; transition: border-color 0.4s, box-shadow 0.4s; }
.fund.flash { animation: fund-flash 1.4s var(--ease); }
@keyframes fund-flash { 0% { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(126 224 108 / 0.18); } 100% { border-color: #262626; box-shadow: 0 0 0 0 rgb(126 224 108 / 0); } }
.qr { width: 132px; height: 132px; padding: 8px; border-radius: 12px; background: #fff; }
.qr-svg { width: 100%; height: 100%; display: block; }
.qr-svg path { fill: #0b0b0b; }
.fund-info { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fund-info h3, .ready h3 { margin: 0; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); text-transform: none; }
.addr-full { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 10px; background: #141414; border: 1px solid #262626; }
.addr-full code { flex: 1; min-width: 0; font-size: 12px; word-break: break-all; line-height: 1.4; }
.addr-full .icon-btn { width: 32px; height: 32px; flex: none; }
.addr-full .icon-btn svg { width: 15px; height: 15px; }
.net-rows { display: grid; grid-template-columns: 70px 1fr; gap: 4px 10px; margin: 0; font-size: 12.5px; }
.net-rows dt { color: var(--dim); }
.net-rows dd { margin: 0; }
.warn { margin: 0; font-size: 11.5px; color: var(--live); }
.ready { padding: 16px; border-radius: 16px; background: rgb(0 0 0 / 0.35); border: 1px solid #262626; }
.ready.ok { border-color: rgb(126 224 108 / 0.4); }
.ready-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ready ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ready li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.ready .tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgb(242 85 90 / 0.14); color: var(--down); }
.ready li.ok .tick { background: rgb(125 220 107 / 0.14); color: var(--up); }
.ready .tick svg { width: 13px; height: 13px; stroke-width: 2.4; }
.ready li b { display: block; font-size: 13px; font-weight: 500; }
.ready li small { display: block; font-size: 12px; color: var(--muted); }
.ready li em { font-style: normal; color: var(--text); }
.ready-foot { margin: 12px 0 0; font-size: 12px; color: var(--dim); }
.side-h { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--text); text-transform: none; letter-spacing: 0; }
.side-h a { font-weight: 400; }
.holdings, .activity { display: flex; flex-direction: column; gap: 6px; }
.holding { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 11px 13px; border-radius: 12px; background: #181818; border: 1px solid #232323; animation: row-in 0.45s var(--ease) both; }
.holding .coin.sm { width: 34px; height: 34px; font-size: 13px; grid-row: span 2; }
.holding b { display: block; font-size: 13.5px; font-weight: 500; }
.holding small { display: block; font-size: 11.5px; color: var(--dim); }
.h-val { text-align: right; }
.h-bar { grid-column: 2 / -1; height: 3px; border-radius: 3px; background: #262626; overflow: hidden; }
.h-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transform-origin: left; animation: grow 0.9s var(--ease) both; }
.act-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 13px; border-radius: 12px; background: #181818; border: 1px solid #232323; color: inherit; font-size: 13px; transition: background 0.2s; animation: row-in 0.45s var(--ease) both; }
a.act-row:hover { background: #1e1e1e; }
.act-row small { display: block; font-size: 11.5px; color: var(--dim); }
.act-row b { font-weight: 500; }
.act-dir { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgb(255 255 255 / 0.07); }
.act-dir.in { background: rgb(125 220 107 / 0.14); color: var(--up); }
.act-dir svg { width: 15px; height: 15px; }

/* wallet popup */
dialog.modal.wallet-modal { width: min(1120px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border-radius: 22px; border-color: #2a2a2a; background: #111; }
.wallet-modal .wv-card { overflow: hidden; }
.wv-addr #wv-close { margin-left: 4px; }
.wv { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); }
.wv-main { position: relative; padding: 24px 24px 18px; overflow: hidden; border-right: 1px solid #222;
  background: radial-gradient(120% 80% at 100% 0%, rgb(126 224 108 / 0.13), transparent 55%), radial-gradient(90% 70% at 0% 100%, rgb(91 141 239 / 0.08), transparent 60%), #151515; }
.wv-bars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wv-main > :not(.wv-bars) { position: relative; z-index: 1; }
.wv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.wv-label { margin: 0; font-size: 15px; color: #d6d6d6; }
.wv-total { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.wv-total b { font-size: 44px; font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.wv-total .badge { background: rgb(255 255 255 / 0.08); }
.wv-sub { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.wv-actions { display: flex; gap: 7px; }
.wv-actions .round { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 99px; border: 0; background: rgb(255 255 255 / 0.08); color: var(--text); cursor: pointer; transition: background 0.2s, transform 0.15s; }
.wv-actions .round:hover { background: rgb(255 255 255 / 0.14); }
.wv-actions .round:active { transform: scale(0.96); }
.wv-actions .round.wide { width: 96px; background: #f4f4f4; color: #0b0b0b; }
.wv-actions .round.wide:hover { background: #fff; }
.wv-actions svg { width: 18px; height: 18px; }
.wv-ranges { display: flex; gap: 6px; margin: 20px 0 6px; justify-content: flex-end; }
.wv-ranges button { height: 30px; padding: 0 14px; border-radius: 99px; border: 0; background: rgb(255 255 255 / 0.07); color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.wv-ranges button:hover { color: var(--text); }
.wv-ranges button.active { background: var(--accent); color: #0b0b0b; font-weight: 600; }
.wv-chart { position: relative; height: 300px; }
.wv-chart > div:first-child { height: 100%; }
.wv-chart canvas { filter: drop-shadow(0 0 6px rgb(126 224 108 / 0.35)); }
.wv-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.wv-legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--muted); }
.wv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wv-legend i { width: 14px; height: 2px; border-radius: 2px; }
.wv-legend .k-eq { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.wv-legend .k-hold { background: #e6e6e6; }
.wv-side { display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 20px; background: #0f0f0f; min-width: 0; }
.wv-addr { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.wv-addr > svg { color: var(--muted); }
.wv-addr a { margin-right: auto; }
.wv-addr .icon-btn { width: 34px; height: 34px; border-radius: 99px; }
.wv-addr .icon-btn svg { width: 15px; height: 15px; }
.profit { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 16px; border-radius: 16px; background: #181818; border: 1px solid #232323; }
.profit p { margin: 0; font-size: 12.5px; color: #d6d6d6; }
.profit-v { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; }
.profit-v b { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.profit-v .badge { background: rgb(255 255 255 / 0.07); }
.profit small { font-size: 11.5px; color: var(--dim); }
.profit-spark { width: 100%; height: 64px; overflow: visible; }
.ps-bars rect { fill: #fff; fill-opacity: 0.06; }
.ps-base { stroke: #3a3a3a; stroke-dasharray: 2 3; fill: none; }
.ps-line { fill: none; stroke: #d8f5c8; stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s var(--ease) forwards; }
.ps-drop { stroke: rgb(126 224 108 / 0.55); stroke-width: 1; }
.ps-glow { fill: var(--accent); opacity: 0.35; filter: blur(4px); animation: fade 0.4s 1.1s both; }
.ps-dot { fill: #fff; opacity: 0; animation: fade 0.4s 1.1s forwards; }
.wv-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 99px; border: 1px solid #262626; }
.wv-tabs button { height: 36px; border: 0; border-radius: 99px; background: none; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; transition: background 0.25s, color 0.25s; }
.wv-tabs button.active { background: var(--accent); color: #0b0b0b; font-weight: 600; }
.wv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wv-grid.list { grid-template-columns: 1fr; }
.wv-grid > * { min-width: 0; }

.wv-grid .bot-card { background: #181818; }
.wv-none { margin: 6px 2px; }
.hold { padding: 14px; border-radius: 16px; background: #181818; border: 1px solid #232323; animation: row-in 0.5s var(--ease) both; }
.hold-top { display: flex; justify-content: space-between; align-items: flex-start; }
.hold-chip { padding: 3px 9px; border-radius: 99px; border: 1px solid #333; font-size: 11px; font-weight: 500; }
.hold-amt { margin-top: -10px; text-align: right; font-size: 12.5px; color: var(--muted); padding-right: 6px; }
.hold-name { margin-top: 10px; font-size: 14px; }
.hold-v { display: flex; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }

/* strategies */
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(219px, 1fr)); gap: 14px; margin-bottom: 17.5px; }
.strat { position: relative; border: 1px solid #222; border-radius: var(--r); background: var(--panel); padding: 17.5px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; transition: border-color 0.3s, transform 0.3s var(--ease); animation: row-in 0.5s var(--ease) both; }
.strat[hidden] { display: none; }
.strat::before { content: ''; position: absolute; inset: 0; background: radial-gradient(332.5px 105px at var(--mx, 50%) -20%, rgb(255 255 255 / 0.06), transparent 70%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.strat:hover { border-color: #303030; transform: translateY(-2px); }
.strat:hover::before { opacity: 1; }
.strat .kind { font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.strat h4 { font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: 0; }
.strat p { margin: 0; color: var(--muted); font-size: 12.5px; flex: 1; }
.strat .params-line { font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.strat-row { display: flex; justify-content: space-between; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(122.5px, 1fr)); gap: 10.5px; margin: 17.5px 0 0; }
.stats:empty { display: none; }
.stats div { background: #151515; border: 1px solid var(--line); border-radius: 10.5px; padding: 10.5px 12px; display: flex; flex-direction: column; gap: 3.5px; }
.stats > div > span { font-size: 10px; color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase; }
.stats b { font-size: 17.5px; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 3.5px 14px; margin: 14px 0 0; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 2px; margin-right: 5px; vertical-align: middle; }
.chart-shell { position: relative; }
.chart { height: 332.5px; margin-top: 10.5px; border: 1px solid #1d1d1d; border-radius: 12px; overflow: hidden; background: var(--inset); }
.chart.with-pane { height: 437.5px; }
.chart-shell .loading { inset: 10.5px 0 0; border-radius: 12px; }
.note { font-size: 11.5px; color: var(--dim); margin: 10.5px 0 0; }
.note .error { display: block; margin-bottom: 3.5px; }

/* strategy art (art.js) */
.art-frame { margin: 2px 0 3.5px; padding: 9px 9px 7px; background: #141414; border: 1px solid #1f1f1f; border-radius: 10.5px; transition: border-color 0.3s; }
.strat:hover .art-frame { border-color: #2c2c2c; }
.art { display: block; width: 100%; height: 91px; overflow: visible; }
.art path { fill: none; vector-effect: non-scaling-stroke; }
.art .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.art .sep { stroke: var(--line-2); stroke-width: 1; }
.art .g0 { stop-color: #ffffff; stop-opacity: 0.14; }
.art .g1 { stop-color: #ffffff; stop-opacity: 0; }
.art .px-area { stroke: none; }
.art .px { stroke: #f0f0f0; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 0 2.5px rgb(255 255 255 / 0.35)); }
.art .l1 { stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.art .l2 { stroke: var(--live); stroke-width: 1.3; stroke-dasharray: 3 2.5; }
.art .thin { stroke-width: 1.2; }
.art .mid { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 2 3; }
.art .band { fill: var(--accent); fill-opacity: 0.08; }
.art .band-edge { stroke: var(--accent); stroke-opacity: 0.5; stroke-width: 1; }
.art .band-edge.dashed { stroke-dasharray: 3 3; }
.art .tick { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 1 3; }
.art .zone { opacity: 0.09; }
.art .zone.up, .art .range.up { fill: var(--up); }
.art .zone.down, .art .range.down { fill: var(--down); }
.art .range { fill-opacity: 0.14; stroke-width: 1; }
.art .range.up { stroke: rgb(125 220 107 / 0.5); }
.art .range.down { stroke: rgb(242 85 90 / 0.5); }
.art .bar { opacity: 0.75; }
.art .bar.up { fill: var(--up); }
.art .bar.down { fill: var(--down); }
.art .mk, .art .now path { stroke-linecap: round; }
.art .mk { stroke-width: 6.5px; animation: pop 0.45s var(--ease) both; filter: drop-shadow(0 0 1.5px #141414) drop-shadow(0 0 1px #141414); }
.art .mk.buy { stroke: var(--up); }
.art .mk.sell { stroke: var(--down); }
.art .mk.small { stroke-width: 4.5px; }
.art .mk.hold { stroke: var(--muted); stroke-width: 4.5px; opacity: 0.7; }
.art .now { animation: fade 0.4s both; opacity: 0; }
.art .now .dot { stroke: var(--accent); stroke-width: 4.5px; }
.art .now .ring { stroke: var(--accent); stroke-width: 4.5px; opacity: 0; }
.strat:hover .art .now .ring { animation: ring 1.8s var(--ease) infinite; }
.art .wipe { transform-box: fill-box; transform-origin: left; animation: wipe 1.4s cubic-bezier(0.45, 0, 0.2, 1) both; }
.art .fade { opacity: 0; animation: fade 0.9s ease forwards; }
@keyframes wipe { from { transform: scaleX(0); } }
@keyframes pop { from { opacity: 0; stroke-width: 0; } }
@keyframes ring { 0% { opacity: 0.5; stroke-width: 4.5px; } 100% { opacity: 0; stroke-width: 16px; } }
.art-legend { display: flex; flex-wrap: wrap; gap: 3.5px 10.5px; margin-top: 7px; font-size: 9.5px; color: var(--dim); }
.art-legend span { display: inline-flex; align-items: center; gap: 4.5px; }
.art-legend i { display: inline-block; width: 10.5px; height: 2px; background: var(--accent); }
.art-legend .k-l2 { background: repeating-linear-gradient(90deg, var(--live) 0 2.5px, transparent 2.5px 4.5px); }
.art-legend .k-mid { background: repeating-linear-gradient(90deg, var(--dim) 0 2px, transparent 2px 3.5px); }
.art-legend .k-band { height: 7px; background: rgb(126 224 108 / 0.14); border-top: 1px solid rgb(126 224 108 / 0.55); border-bottom: 1px solid rgb(126 224 108 / 0.55); }
.art-legend .k-dashed { background: repeating-linear-gradient(90deg, var(--accent) 0 2.5px, transparent 2.5px 5px); opacity: 0.7; }
.art-legend .k-bars { width: 7px; height: 7px; background: linear-gradient(90deg, var(--up) 50%, var(--down) 50%); opacity: 0.8; }
.art-legend .k-zone { height: 7px; background: linear-gradient(var(--down) 50%, var(--up) 50%); opacity: 0.35; }
.art-legend .k-range-up { height: 7px; background: rgb(125 220 107 / 0.25); border: 1px solid rgb(125 220 107 / 0.6); }
.art-legend .k-range-down { height: 7px; background: rgb(242 85 90 / 0.25); border: 1px solid rgb(242 85 90 / 0.6); }
.art-legend .k-hold { width: 6px; height: 6px; border-radius: 50%; background: none; border: 1.2px solid var(--muted); }
.art-legend .k-tick { width: 2px; height: 9px; background: repeating-linear-gradient(var(--line-2) 0 1px, transparent 1px 2.5px); }

/* bot detail info list */
.kv { display: grid; grid-template-columns: 122.5px 1fr; gap: 7px 14px; font-size: 12.5px; margin: 0; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; font-family: var(--mono); font-size: 11.5px; word-break: break-all; }
.kv a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); }
.decisions { list-style: none; padding: 0; margin: 0; font-size: 12px; border: 1px solid var(--line); border-radius: 10.5px; }
.decisions li { padding: 9px 12px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 96px 52.5px 1fr; gap: 9px; }
.decisions li:last-child { border-bottom: 0; }
.decisions .t { color: var(--dim); }

/* sign in (Image 2) */
dialog.auth { width: min(1032.5px, calc(100vw - 28px)); max-width: none; max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 26px; background: #000; color: #fff; overflow: hidden; box-shadow: 0 35px 105px rgb(0 0 0 / 0.6); opacity: 0; transform: translateY(12px) scale(0.985); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), display 0.4s allow-discrete, overlay 0.4s allow-discrete; }
dialog.auth[open] { display: grid; grid-template-columns: 1fr 1fr; opacity: 1; transform: none; }
@starting-style { dialog.auth[open] { opacity: 0; transform: translateY(12px) scale(0.985); } }
dialog.auth::backdrop { background: rgb(40 40 40 / 0.72); backdrop-filter: blur(5px); }
.auth-art { position: relative; min-height: min(612.5px, calc(100vh - 28px)); background: var(--accent); color: #0b0b0b; border-radius: 26px; overflow: hidden; padding: 42px 49px; display: flex; flex-direction: column; }
.auth-logo { position: relative; z-index: 3; display: flex; align-items: center; gap: 7px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.auth-logo svg { width: 21px; height: 21px; }
.auth-float { color: #fff; position: absolute; z-index: 3; top: 38.5px; right: 38.5px; width: 196px; padding: 14px 16px; border-radius: 12px; background: #111; box-shadow: 0 17.5px 35px rgb(0 0 0 / 0.35); animation: float-in 0.8s 0.3s var(--ease) both; }
@keyframes float-in { from { opacity: 0; transform: translateY(-9px); } }
.auth-float .f-top { display: flex; gap: 9px; align-items: center; }
.auth-float .f-ico { display: grid; place-items: center; width: 31.5px; height: 31.5px; border-radius: 50%; background: var(--accent); color: #0b0b0b; font-weight: 700; font-size: 14.5px; flex: none; }
.auth-float .f-top b { display: block; font-weight: 500; font-size: 13px; }
.auth-float .f-top small { color: #8a8a8a; font-size: 11px; }
.auth-float .f-lab { margin-top: 12px; font-size: 11px; color: #d0d0d0; }
.auth-float .f-val { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.auth-float .f-state { display: flex; align-items: center; gap: 5px; margin-top: 3.5px; font-size: 11px; color: #9a9a9a; }
.auth-float .f-state svg { width: 11.5px; height: 11.5px; }
.auth-chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-chart .bars rect { fill: #000; }
.auth-chart .bars { animation: fade 1s ease both; opacity: 0; }
.auth-chart path { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: line-draw 2.2s 0.2s var(--ease) forwards; }
.auth-chart .l-white { stroke: #fff; }
.auth-chart .l-dark { stroke: #0b0b0b; animation-delay: 0.45s; }
@keyframes line-draw { to { stroke-dashoffset: 0; } }
.auth-copy { position: relative; z-index: 3; margin-top: auto; }
.auth-copy::before { content: ''; position: absolute; z-index: -1; inset: -70px -60px -60px; background: linear-gradient(rgb(126 224 108 / 0), var(--accent) 38%); pointer-events: none; }
.auth-copy p { margin: 0 0 12px; font-size: 14.5px; }
.auth-copy h2 { font-size: 40.5px; line-height: 1.08; font-weight: 500; letter-spacing: -0.03em; }
.auth-form { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 49px 63px 49px 70px; overflow-y: auto; }
.auth-close { position: absolute; top: 19px; right: 19px; margin: 0; }
.auth-close .icon-btn { color: #9a9a9a; }
.icon-btn:focus { outline: none; }
.icon-btn:focus-visible { box-shadow: 0 0 0 2px rgb(255 255 255 / 0.35); }
#login-body h2 { font-size: 42.5px; font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; }
#login-body .sub { margin: 9px 0 26px; font-size: 14.5px; color: #e8e8e8; }
.field { margin-bottom: 17.5px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; color: #a8a8a8; }
.field .box { display: flex; align-items: center; gap: 10.5px; min-height: 49px; padding: 0 16px; border-radius: 7px; background: #1a1a1a; border: 1px solid #1a1a1a; font-size: 14.5px; color: #fff; transition: border-color 0.3s, color 0.3s; }
.field .box code { font-family: var(--mono); font-size: 13px; }
.field .box .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field .box button { border: 0; background: none; color: #9a9a9a; cursor: pointer; padding: 3.5px; display: grid; place-items: center; }
.field .box button:hover { color: #fff; }
.field .hint { margin: 7px 0 0; font-size: 12.5px; color: #8a8a8a; }
.field.wait .box { border-color: rgb(126 224 108 / 0.5); color: var(--accent-2); }
.field.ok .box { border-color: rgb(125 220 107 / 0.55); color: var(--up); }
.field.bad .box { border-color: var(--red); color: #ff6b70; }
.field.bad .hint { color: #ff6b70; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.15); border-top-color: currentColor; animation: spin 0.9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-accent { display: flex; align-items: center; justify-content: center; width: 100%; height: 51px; margin-top: 9px; border: 0; border-radius: 7px; background: var(--accent); color: #0b0b0b; font-weight: 600; font: inherit; font-size: 15.5px; font-weight: 500; cursor: pointer; transition: filter 0.2s, transform 0.15s; }
.btn-accent:hover { filter: brightness(1.08); }
.btn-accent:active { transform: translateY(1px); }
.auth-alt { margin: 16px 0 0; text-align: center; font-size: 14.5px; color: #a8a8a8; }
.auth-alt a, .auth-alt button { color: #fff; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
/* Sign-in: three steps that tick off as Telegram reports progress. */
.login-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 6px; }
.login-steps li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; background: #111; border: 1px solid #1e1e1e; color: #8a8a8a; transition: border-color 0.3s, background 0.3s, color 0.3s; }
.login-steps li b { display: block; font-size: 14px; font-weight: 500; color: inherit; }
.login-steps li small { font-size: 12px; color: #6f6f6f; }
.login-steps .n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none; border: 1px solid #333; font-size: 12px; font-weight: 600; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.login-steps li.active { color: #fff; border-color: rgb(126 224 108 / 0.45); background: #131712; }
.login-steps li.active .n { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgb(126 224 108 / 0.12); }
.login-steps li.done { color: #cfcfcf; }
.login-steps li.done .n { background: var(--accent); border-color: var(--accent); color: transparent; position: relative; }
.login-steps li.done .n::after { content: ''; position: absolute; width: 9px; height: 5px; border: solid #0b0b0b; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.login-steps.compact { grid-template-columns: repeat(3, 1fr); }
.login-steps.compact li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
.login-steps.compact small { display: none; }
.login-status { display: flex; align-items: center; gap: 10px; margin-top: 18px; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid #1e1e1e; background: #0d0d0d; font-size: 13.5px; color: #cfcfcf; }
.login-status .grow { flex: 1; min-width: 0; }
.login-status .ttl { font-family: var(--mono); font-size: 12px; color: #6f6f6f; }
.login-status.wait { border-color: rgb(126 224 108 / 0.35); color: var(--accent-2); }
.login-status.ok { border-color: rgb(125 220 107 / 0.55); color: var(--up); }
.login-status.ok svg { width: 16px; height: 16px; }
.login-status.bad { border-color: var(--red); color: #ff6b70; }
.login-manual { margin-top: 14px; }
.login-manual summary { cursor: pointer; font-size: 13px; color: #8a8a8a; list-style: none; text-align: center; }
.login-manual summary::-webkit-details-marker { display: none; }
.login-manual summary:hover { color: #fff; }
.login-manual[open] summary { margin-bottom: 14px; color: #cfcfcf; }
.login-manual .field { margin-bottom: 10px; }
.login-manual .field label { font-size: 12.5px; }
.login-manual .field .box { min-height: 42px; }
.need-tip { position: relative; display: inline-flex; align-items: center; gap: 9px; margin: -12px 0 18px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid #262626; background: #111; color: #cfcfcf; font-size: 13px; cursor: help; outline: none; transition: border-color 0.2s, color 0.2s; }
.need-tip:hover, .need-tip:focus { border-color: #3a3a3a; color: #fff; }
.need-tip:focus-visible { box-shadow: 0 0 0 3px rgb(126 224 108 / 0.3); }
.need-tip > i { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #0b0b0b; font-style: normal; font-size: 12.5px; font-weight: 700; }
.need-tip > i::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: tip-ping 2.4s 0.8s ease-out 3; }
@keyframes tip-ping { 0% { opacity: 0.8; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.5); } }
.need-tip-bubble { position: absolute; z-index: 10; left: 0; top: calc(100% + 12px); width: min(330px, 78vw); display: grid; gap: 8px; padding: 16px 18px; border-radius: 14px; background: #1f1f1f; border: 1px solid #2e2e2e; box-shadow: 0 18px 50px rgb(0 0 0 / 0.6); color: #d6d6d6; font-size: 13px; line-height: 1.5; text-align: left; cursor: default; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s; }
.need-tip-bubble::before { content: ''; position: absolute; left: 11px; top: -7px; width: 12px; height: 12px; background: #1f1f1f; border-left: 1px solid #2e2e2e; border-top: 1px solid #2e2e2e; transform: rotate(45deg); border-top-left-radius: 3px; }
.need-tip-bubble > b { color: #fff; font-size: 14px; font-weight: 600; }
.need-tip-bubble span b { color: #fff; font-weight: 600; }
.need-tip-bubble .need-tip-foot { color: #9a9a9a; font-size: 12.5px; }
.need-tip-bubble a { color: var(--accent); }
.need-tip:hover .need-tip-bubble, .need-tip:focus .need-tip-bubble, .need-tip:focus-within .need-tip-bubble { opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) { .need-tip > i::before { animation: none; } }
.login-done { text-align: center; }
.login-done h2 { margin-top: 16px; }
.check { width: 56px; height: 56px; }
.check circle { fill: rgb(125 220 107 / 0.1); stroke: var(--up); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: check-draw 0.6s var(--ease) forwards; }
.check path { fill: none; stroke: var(--up); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: check-draw 0.4s 0.45s var(--ease) forwards; }
@keyframes check-draw { to { stroke-dashoffset: 0; } }

/* TradingView dialog */
dialog.modal { border: 1px solid var(--line-2); border-radius: 17.5px; background: var(--app); color: var(--text); box-shadow: 0 26px 70px rgb(0 0 0 / 0.5); opacity: 0; transform: translateY(9px) scale(0.98); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), display 0.35s allow-discrete, overlay 0.35s allow-discrete; }
dialog.modal[open] { opacity: 1; transform: none; }
@starting-style { dialog.modal[open] { opacity: 0; transform: translateY(9px) scale(0.98); } }
dialog.modal::backdrop { background: rgb(0 0 0 / 0.65); backdrop-filter: blur(3.5px); }
dialog.modal.tv { width: min(1032.5px, calc(100vw - 28px)); padding: 17.5px 19px 14px; }
.tv-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.tv-head form { margin: 0; }
.tv-head h2 { font-size: 16.5px; margin: 5px 0 0; }
.tv-mount { height: min(560px, 70vh); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--inset); }

.toast { position: fixed; bottom: 21px; left: 50%; transform: translate(-50%, 17.5px); opacity: 0; padding: 9.5px 16px; background: #000; border: 1px solid var(--line-2); border-radius: 86.5px; font-size: 12.5px; font-weight: 500; transition: all 0.4s var(--ease); pointer-events: none; z-index: 50; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* --- responsive -------------------------------------------------------------------- */
/* Desktop: the window never scrolls; the app frame does it inside. */
@media (min-width: 901px) {
  html, body { height: 100%; overflow: hidden; }
}
@media (max-width: 1280px) {
  .wv { grid-template-columns: 1fr; }
  .wv-main { border-right: 0; border-bottom: 1px solid #222; }
  .body { grid-template-columns: 1fr; overflow-y: auto; }
  .content { border-right: 0; padding-right: 0; overflow: visible; }
  .rail { overflow: visible; padding: 0 0 35px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 17.5px; align-items: start; }
  .rail-title:not(:first-child) { margin-top: 5px; }
  .rail-title { grid-row: 1; }
  .pop, .dots { grid-column: 1; }
  .hot { grid-column: 2; grid-row: 2 / span 2; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; margin: 0; border-radius: 0; border: 0; height: auto; min-height: 100vh; overflow: visible; }
  .main, .body, .content, .rail { overflow: visible; min-height: auto; }
  .app.collapsed { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; overflow: visible; z-index: 20; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 9px; padding: 10.5px 14px; border-right: 0; border-bottom: 1px solid var(--line); background: rgb(17 17 17 / 0.92); backdrop-filter: blur(10.5px); }
  .side-head { padding: 0; }
  #side-toggle, .side hr, .search, .nav.secondary, .credit { display: none; }
  .side-foot { display: none; }
  .nav-btn { height: 33px; font-size: 12px; }
  #tabs { order: 3; width: 100%; flex-direction: row; overflow-x: auto; gap: 2px; }
  #tabs button { height: 33px; font-size: 12.5px; padding: 0 10.5px; }
  .nav button.active::after { display: none; }
  .main { padding: 0 14px; }
  .top { height: auto; padding: 10.5px 0; flex-wrap: wrap; gap: 9px; }
  .breaking { width: 100%; flex: none; order: 2; }
  .top-right { width: 100%; justify-content: flex-end; }
  .net { margin-right: auto; }
  .content { padding: 16px 0 28px; }
  .welcome { margin-top: 23px; }
  .content h1 { font-size: 26px; }
  .toolbar { margin: 19px 0 14px; }
  .card { padding: 16px; }
  .asset-head { grid-template-columns: auto 1fr; }
  .asset-px { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  blockquote { font-size: 13.5px; }
  .mchart-canvas { height: 245px; }
  .mchart-legend { display: none; }
  .pair { grid-template-columns: 1fr; }
  .post-foot .stats-inline { margin-left: 0; width: 100%; justify-content: space-between; }
  .rail { grid-template-columns: 1fr; }
  .rail-title, .pop, .dots, .hot { grid-column: 1; grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .wv { grid-template-columns: 1fr; }
  .wv-main { border-right: 0; border-bottom: 1px solid #222; }
  .wv-total b { font-size: 34px; }
  .fund { grid-template-columns: 1fr; }
  .qr { margin: 0 auto; }
  dialog.modal.wallet-modal { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 7px; }
  .decisions li { grid-template-columns: 1fr; gap: 2px; }
  dialog.auth { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  dialog.auth[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .auth-art { min-height: 280px; border-radius: 0 0 23px 23px; padding: 23px 19px; }
  .auth-float { top: 19px; right: 16px; width: 154px; padding: 10.5px 12px; }
  .auth-copy h2 { font-size: 26px; }
  .auth-form { padding: 28px 19px 35px; overflow: visible; }
  #login-body h2 { font-size: 29.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .breaking-track { animation: none; }
}
