/* Чёрный, фиолетовый, кислотный: тёмный зал с неоновой подсветкой, цифры моноширинным, заголовки широким гротеском.
   Макет: рейка разделов слева (на телефоне снизу), шапка с ценой и биржами, плотные панели со светящейся кромкой. */
:root {
  --bg: #050408;
  --bg2: #0a0713;
  --panel: #0c0916;
  --panel2: #151027;
  --panel3: #1e1638;
  --line: #2a1f48;
  --line2: #43317a;
  --fg: #f4f1ff;
  --muted: #a498cb;
  --faint: #6c5f95;
  --violet: #a855f7;
  --violet2: #7c3aed;
  --lilac: #d9ccff;
  --accent: #c6ff1a;
  --bull: #c6ff1a;
  --bear: #ff2d78;
  --chart-bg: #08060f;
  --heat-bg: #06040c;
  --heat-line: #f6f3ff;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --edge: linear-gradient(145deg, rgba(168, 85, 247, .55), rgba(124, 58, 237, .12) 38%, rgba(42, 31, 72, .7) 68%, rgba(198, 255, 26, .22));
  --gut: max(12px, env(safe-area-inset-left, 0px));
  --gur: max(12px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  color: var(--fg); font: 500 14px/1.45 var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(1100px 620px at 8% -12%, rgba(124, 58, 237, .34), transparent 62%),
    radial-gradient(800px 480px at 104% -6%, rgba(168, 85, 247, .16), transparent 60%),
    radial-gradient(760px 520px at 88% 112%, rgba(198, 255, 26, .07), transparent 62%),
    linear-gradient(rgba(168, 85, 247, .028) 1px, transparent 1px) 0 0 / 100% 46px,
    linear-gradient(90deg, rgba(168, 85, 247, .028) 1px, transparent 1px) 0 0 / 46px 100%,
    var(--bg);
}
h2 { font: 500 12.5px/1.3 var(--display); margin: 0; letter-spacing: .01em; color: var(--fg); }
h3 { font: 700 10.5px/1.3 var(--sans); margin: 14px 0 6px; color: var(--violet); letter-spacing: .1em; text-transform: uppercase; }
p { margin: 0; }
a { color: var(--lilac); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
input, select { font: 500 13.5px var(--sans); color: var(--fg); background: rgba(5, 4, 8, .75); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
select option, select optgroup { background: var(--panel2); color: var(--fg); }
input[type="number"] { font-family: var(--mono); font-size: 13px; }
input[type="range"] { padding: 0; border: 0; background: none; accent-color: var(--accent); }
input[type="checkbox"] { width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input:focus, select:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(168, 85, 247, .18); }
.up { color: var(--bull); }
.down { color: var(--bear); }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 12px; font-weight: 500; }
.empty { color: var(--muted); font-size: 13px; padding: 10px 0; }
.disclaimer { color: var(--faint); font-size: 12px; padding: 4px 2px 8px; }
.lnk { color: var(--accent); font-size: 12px; font-weight: 600; }
.lnk:hover { text-decoration: underline; }
.lg { display: inline-block; width: 12px; height: 3px; margin: 0 5px 0 8px; vertical-align: 3px; border-radius: 2px; }

/* Каркас */
#app { display: grid; grid-template-columns: 74px minmax(0, 1fr); height: 100%; }
#rail { display: flex; flex-direction: column; align-items: stretch; gap: 3px; background: rgba(9, 6, 18, .82); backdrop-filter: blur(16px); border-right: 1px solid var(--line); padding: 10px 7px; overflow-y: auto; scrollbar-width: none; }
#rail::-webkit-scrollbar { display: none; }
#rail .logo { display: grid; place-items: center; height: 44px; margin-bottom: 8px; }
#rail .logo svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 7px rgba(198, 255, 26, .65)); }
#rail .logo .fill { fill: var(--accent); }
#rail button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px 8px; border-radius: 9px; color: var(--muted); font-size: 10.5px; font-weight: 600; transition: color .15s, background .15s; }
#rail button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
#rail button:hover { color: var(--fg); background: rgba(168, 85, 247, .1); }
#rail button.on { color: var(--accent); background: linear-gradient(160deg, rgba(124, 58, 237, .42), rgba(124, 58, 237, .12)); box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .55), 0 0 18px rgba(124, 58, 237, .35); }
#rail button.on svg { filter: drop-shadow(0 0 5px rgba(198, 255, 26, .7)); }
#main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#views { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 12px var(--gur) 16px var(--gut); -webkit-overflow-scrolling: touch; scrollbar-color: var(--line2) transparent; scrollbar-width: thin; }
.view { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.view.fill { height: 100%; }

/* Шапка */
#top { background: rgba(9, 6, 18, .82); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.brand-bar { display: flex; align-items: center; gap: 14px; min-height: 32px; padding: 7px var(--gur) 1px var(--gut); }
.brand { display: inline-flex; align-items: center; flex: none; font: 500 15px var(--display); letter-spacing: -.01em; color: var(--fg); text-shadow: 0 0 18px rgba(168, 85, 247, .8); }
.brand:hover { color: var(--lilac); }
.brand b { font-weight: 700; color: var(--accent); text-shadow: 0 0 16px rgba(198, 255, 26, .5); }
.brand svg { display: none; width: 18px; height: 18px; margin-right: 5px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.brand svg .fill { fill: var(--accent); }
.brand-page { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding-left: 14px; border-left: 1px solid var(--line2); white-space: nowrap; overflow: hidden; }
.brand-page b { font-size: 13px; font-weight: 700; flex: none; }
.brand-page span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.brand-link { margin-left: auto; flex: none; font-size: 11.5px; color: var(--muted); }
.top-row { display: flex; align-items: center; gap: 14px; padding: 8px var(--gur) 6px var(--gut); min-height: 50px; }
#sym-btn { display: flex; align-items: baseline; gap: 2px; padding: 5px 10px; border: 1px solid var(--line2); border-radius: 8px; flex: none; background: rgba(124, 58, 237, .14); }
#sym-btn:hover { border-color: var(--accent); }
#sym-btn b { font: 700 13px var(--display); }
#sym-btn small { color: var(--muted); font: 500 11px var(--mono); }
#sym-btn svg { width: 11px; height: 11px; margin-left: 5px; fill: none; stroke: var(--muted); stroke-width: 1.5; align-self: center; }
.top-price { display: flex; align-items: center; gap: 8px; flex: none; }
#top-price { font: 700 21px var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; transition: color .12s; }
#top-price.tick-up { color: var(--bull); text-shadow: 0 0 14px rgba(198, 255, 26, .5); }
#top-price.tick-down { color: var(--bear); text-shadow: 0 0 14px rgba(255, 45, 120, .5); }
.feed { display: flex; flex-direction: column; gap: 1px; flex: none; }
.feed span { color: var(--faint); font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.feed select { padding: 2px 4px; font-size: 11.5px; border-color: var(--line); background: rgba(21, 16, 39, .9); width: auto; }
.top-stats { display: flex; gap: 16px; min-width: 0; flex: 1; overflow: hidden; }
.top-stats div { display: flex; flex-direction: column; flex: none; }
.top-stats span { color: var(--faint); font-size: 10.5px; white-space: nowrap; font-weight: 600; }
.top-stats b { font: 500 12px var(--mono); white-space: nowrap; }
.favs { display: flex; gap: 4px; flex: none; }
.favs button { font: 500 11px var(--mono); padding: 4px 8px; border-radius: 5px; color: var(--muted); }
.favs button:hover { color: var(--fg); }
.favs button.on { color: var(--accent); background: rgba(198, 255, 26, .1); box-shadow: inset 0 0 0 1px rgba(198, 255, 26, .28); }
.status { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); flex: none; margin-left: auto; white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.status.live i { background: var(--bull); box-shadow: 0 0 10px var(--bull); animation: pulse 1.6s ease-in-out infinite; }
.status.poll i { background: var(--bear); box-shadow: 0 0 8px var(--bear); }
.status small { font: 400 10.5px var(--mono); color: var(--faint); }
@keyframes pulse { 50% { opacity: .45; } }
.venue-strip { display: flex; gap: 4px; padding: 0 var(--gur) 7px var(--gut); overflow-x: auto; scrollbar-width: none; min-height: 28px; }
.venue-strip::-webkit-scrollbar { display: none; }
.vchip { display: inline-flex; align-items: baseline; gap: 5px; flex: none; padding: 3px 8px; border-radius: 5px; background: rgba(21, 16, 39, .7); box-shadow: inset 0 0 0 1px var(--line); font-size: 10.5px; color: var(--muted); }
.vchip:hover:not(.nofeed) { box-shadow: inset 0 0 0 1px var(--violet); }
.vchip.nofeed { cursor: default; }
.vchip b { font: 500 11px var(--mono); color: var(--fg); }
.vchip small { font: 400 9.5px var(--mono); color: var(--faint); }
.vchip small.up { color: var(--bull); }
.vchip small.down { color: var(--bear); }
.vchip.on { background: rgba(124, 58, 237, .28); box-shadow: inset 0 0 0 1px var(--violet); color: var(--lilac); }

/* Панели и базовые элементы */
.panel { position: relative; background: linear-gradient(170deg, rgba(21, 16, 39, .78), rgba(12, 9, 22, .92) 46%) padding-box, var(--edge) border-box; border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; min-width: 0; box-shadow: 0 10px 34px rgba(0, 0, 0, .34); }
.ph { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; min-height: 26px; }
.ph .hint { max-width: 760px; }
.fold > summary { cursor: pointer; list-style: none; margin-bottom: 0; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: '▾'; color: var(--muted); }
.fold[open] > summary { margin-bottom: 10px; }
.fold[open] > summary::after { content: '▴'; }
.seg { display: inline-flex; background: rgba(5, 4, 8, .7); box-shadow: inset 0 0 0 1px var(--line); border-radius: 7px; padding: 2px; gap: 1px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { padding: 4px 10px; border-radius: 5px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; flex: none; }
.seg button:hover { color: var(--fg); }
.seg button.on { background: linear-gradient(160deg, rgba(168, 85, 247, .5), rgba(124, 58, 237, .32)); color: var(--accent); box-shadow: 0 0 12px rgba(124, 58, 237, .4); }
.tg { font-size: 12px; font-weight: 600; padding: 4px 9px; box-shadow: inset 0 0 0 1px var(--line); border-radius: 6px; color: var(--muted); white-space: nowrap; flex: none; }
.tg:hover { color: var(--fg); }
.tg.on { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(198, 255, 26, .45); background: rgba(198, 255, 26, .07); }
.btn { padding: 8px 13px; box-shadow: inset 0 0 0 1px var(--line2); border-radius: 8px; font-size: 13px; font-weight: 600; background: rgba(30, 22, 56, .7); white-space: nowrap; transition: box-shadow .15s, filter .15s; }
.btn:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--violet), 0 0 14px rgba(124, 58, 237, .35); }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.primary { background: var(--accent); box-shadow: 0 0 22px rgba(198, 255, 26, .32); color: #0a0d02; font-weight: 700; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 0 30px rgba(198, 255, 26, .5); }
.btn.wide { width: 100%; margin-top: 12px; padding: 11px; }
.btn.buy { background: var(--bull); color: #0a0d02; font-weight: 800; box-shadow: 0 0 20px rgba(198, 255, 26, .28); }
.btn.sell { background: var(--bear); color: #fff; font-weight: 800; box-shadow: 0 0 20px rgba(255, 45, 120, .3); }
.btn.buy:hover:not(:disabled), .btn.sell:hover:not(:disabled) { filter: brightness(1.1); }
.chip { display: inline-block; font: 600 11px var(--mono); padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.badge { font: 500 9.5px var(--mono); padding: 1px 4px; border-radius: 3px; background: var(--panel3); color: var(--muted); vertical-align: 1px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); }
.dot.b2 { background: var(--bull); box-shadow: 0 0 7px var(--bull); }
.dot.b1 { background: var(--bull); opacity: .55; }
.dot.s2 { background: var(--bear); box-shadow: 0 0 7px var(--bear); }
.dot.s1 { background: var(--bear); opacity: .55; }
.b2 { background: rgba(198, 255, 26, .3); color: #efffb0; }
.b1 { background: rgba(198, 255, 26, .12); color: #d6f97a; }
.n { color: var(--muted); }
.s1 { background: rgba(255, 45, 120, .15); color: #ff9dc0; }
.s2 { background: rgba(255, 45, 120, .38); color: #ffd9e7; }
.na { color: var(--faint); }
.warn { background: rgba(168, 85, 247, .26); color: var(--lilac); }
.warn-t { color: var(--violet); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 8px; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; background: linear-gradient(160deg, rgba(30, 22, 56, .85), rgba(21, 16, 39, .55)); box-shadow: inset 0 0 0 1px rgba(67, 49, 122, .4); border-radius: 8px; min-width: 0; }
.tile.wide { grid-column: 1 / -1; }
.tile-l { color: var(--muted); font-size: 11px; font-weight: 600; }
.tile-v { font: 700 17px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-s { color: var(--muted); font-size: 11px; }
.spark { display: block; width: 100%; height: 26px; margin-top: 4px; }
.banner { padding: 8px 11px; border-radius: 7px; font-size: 13px; margin-bottom: 8px; }
.banner.bad { background: rgba(255, 45, 120, .16); color: #ffc0d6; box-shadow: inset 0 0 0 1px rgba(255, 45, 120, .35); }
.banner.warn { background: rgba(168, 85, 247, .18); color: var(--lilac); box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .35); }
.banner.info { background: var(--panel2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.banner .f-grid { margin: 8px 0; max-width: 460px; }

/* Таблицы */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-color: var(--line2) transparent; scrollbar-width: thin; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-weight: 600; color: var(--faint); font-size: 11px; padding: 4px 8px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.tbl td { padding: 5px 8px; border-bottom: 1px solid rgba(42, 31, 72, .55); white-space: nowrap; font-family: var(--mono); font-size: 12px; }
.tbl td:first-child { font-family: var(--sans); font-weight: 600; }
.tbl tfoot td { color: var(--muted); border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl tr.dim td { color: var(--muted); }
.tbl tr.cur-row td { background: rgba(124, 58, 237, .16); }
.tbl .c { text-align: center; }
.tbl.compact th, .tbl.compact td { padding-left: 4px; padding-right: 4px; }
.sortable { cursor: pointer; }
.sortable:hover { color: var(--fg); }
.sticky { position: sticky; left: 0; background: var(--panel); z-index: 1; }
.pick { cursor: pointer; }
.pick:hover td, .pick:hover th { background: var(--panel2); }
.pick.cur th { color: var(--accent); }
.scr th.sticky { font: 600 12px var(--mono); color: var(--fg); }
.scr thead th.sticky { font: 600 11px var(--sans); color: var(--faint); }
.minibar { width: 72px; height: 6px; border-radius: 3px; background: var(--bear); overflow: hidden; }
.minibar i { display: block; height: 100%; background: var(--bull); }

/* Главная */
.hm { display: grid; gap: 10px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.hm-mood { grid-column: span 5; } .hm-next { grid-column: span 7; } .hm-coin { grid-column: 1 / -1; }
.hm-fng, .hm-macro, .hm-all { grid-column: span 4; }
.hm-news { grid-column: span 7; } .hm-events { grid-column: span 5; }
.mood-top { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: center; }
.arc { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 12px rgba(124, 58, 237, .45)); }
.arc-v { font: 700 30px var(--display); fill: var(--fg); }
.mood-name { font: 700 23px/1.15 var(--display); letter-spacing: -.01em; text-shadow: 0 0 22px rgba(168, 85, 247, .7); }
.mood-story { font-size: 13px; color: var(--lilac); margin-top: 7px; }
.tilt { margin-top: 10px; }
.tilt-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.tilt-top b { font: 600 12px var(--mono); }
.tilt .gauge { margin-top: 8px; }
.mood-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin-top: 13px; }
.mood-bars .fbar { grid-template-columns: 112px minmax(0, 1fr) 62px; font-size: 11.5px; }
.mood-bars .fl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nx-box { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 9px; background: linear-gradient(160deg, rgba(124, 58, 237, .24), rgba(21, 16, 39, .6)); box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .38); min-width: 0; }
.nx-box span { font-size: 11px; color: var(--muted); font-weight: 600; }
.nx-box b { font: 700 17px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-box small { font-size: 11px; color: var(--faint); }
.nx-base { margin-top: 10px; font-size: 13px; }
.nx-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.nx-cols h3 { margin-top: 12px; }
.nx-src { margin-top: 8px; }
.pm-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.pm-chip { display: inline-flex; gap: 6px; align-items: baseline; font: 500 11.5px var(--mono); padding: 2px 7px; border-radius: 5px; background: rgba(30, 22, 56, .85); box-shadow: inset 0 0 0 1px var(--line); }
.pm-chip b { color: var(--fg); font-weight: 700; }
.pm-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 38px; gap: 8px; align-items: center; font-size: 12.5px; padding: 2px 0; }
.pm-bar { display: block; height: 6px; background: var(--panel3); border-radius: 3px; overflow: hidden; }
.pm-bar u { display: block; height: 100%; background: var(--violet); box-shadow: 0 0 8px rgba(168, 85, 247, .7); text-decoration: none; }
.pm-row b { font: 600 12px var(--mono); text-align: right; }
.pm-risk { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 12.5px; color: var(--fg); text-decoration: none; border-bottom: 1px solid rgba(42, 31, 72, .55); }
.pm-risk b { font: 600 12px var(--mono); color: var(--accent); }
.pm-risk:hover span { color: var(--accent); }

/* Разбор монеты */
.hm-coin { padding: 14px; box-shadow: 0 10px 34px rgba(0, 0, 0, .34), 0 0 40px rgba(124, 58, 237, .16); }
.coin-head { display: grid; grid-template-columns: auto minmax(260px, 400px) minmax(0, 1fr); gap: 8px 16px; align-items: center; margin-bottom: 8px; }
.coin-title h2 { font-size: 15px; }
.coin-form { display: flex; gap: 6px; }
.coin-form input { font: 600 14px var(--mono); padding: 9px 12px; background: rgba(5, 4, 8, .85); border-color: var(--line2); text-transform: uppercase; }
.coin-form input::placeholder { text-transform: none; font: 500 13px var(--sans); color: var(--faint); }
.coin-suggest { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.coin-suggest::-webkit-scrollbar { display: none; }
.cb-chip { display: inline-flex; gap: 5px; align-items: baseline; flex: none; padding: 4px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(21, 16, 39, .7); font: 500 11px var(--mono); }
.cb-chip b { font-weight: 700; color: var(--fg); }
.cb-chip span { font-size: 10.5px; }
.cb-chip:hover { box-shadow: inset 0 0 0 1px var(--violet); }
.cb-chip.on { box-shadow: inset 0 0 0 1px var(--accent); background: rgba(198, 255, 26, .08); }
.coin-ready { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.coin-ready span { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.coin-ready i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); animation: pulse 1.2s ease-in-out infinite; }
.coin-ready .ok i { background: var(--bull); box-shadow: 0 0 6px var(--bull); animation: none; }
.coin-ready small { color: var(--faint); font: 400 10.5px var(--mono); }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); grid-template-rows: auto 1fr; gap: 12px; }
.coin-side { grid-column: 2; grid-row: 1 / span 2; }
.coin-break { grid-column: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0 18px; align-content: start; }
.coin-break h3 { margin-top: 2px; }
/* Вероятности */
.pr { padding: 11px 12px; border-radius: 10px; background: linear-gradient(160deg, rgba(124, 58, 237, .2), rgba(21, 16, 39, .6)); box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .38); }
.pr-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pr-top h3 { margin: 0; }
.pr-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 6px; }
.pr-main > div { display: flex; flex-direction: column; gap: 0; }
.pr-main > .down { align-items: flex-end; }
.pr-main span { font-size: 12px; font-weight: 700; }
.pr-main b { font: 700 32px/1.05 var(--display); letter-spacing: -.02em; }
.pr-main .up b { text-shadow: 0 0 22px rgba(198, 255, 26, .4); }
.pr-main .down b { text-shadow: 0 0 22px rgba(255, 45, 120, .45); }
.pr-bar { height: 10px; margin-top: 7px; border-radius: 5px; background: var(--bear); overflow: hidden; box-shadow: 0 0 14px rgba(124, 58, 237, .35); }
.pr-bar i { display: block; height: 100%; background: var(--bull); transition: width .4s; }
.pr-hz { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; margin-top: 8px; }
.pr-hz button { display: flex; flex-direction: column; align-items: center; padding: 4px 1px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(67, 49, 122, .45); background: rgba(12, 9, 22, .55); }
.pr-hz button:hover { box-shadow: inset 0 0 0 1px var(--violet); }
.pr-hz button.cur { box-shadow: inset 0 0 0 1px var(--accent); }
.pr-hz span { font-size: 10px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.pr-hz b { font: 700 13px var(--mono); }
.pr-note { margin-top: 7px; }
.pr-race { margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(67, 49, 122, .5); }
.pr-race-top { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.pr-row { display: grid; grid-template-columns: minmax(84px, auto) 40px minmax(0, 1fr); gap: 8px; align-items: center; font: 500 12px var(--mono); padding: 1px 0; }
.pr-row b { text-align: right; font-weight: 700; }
.pr-mini { display: block; height: 6px; border-radius: 3px; background: rgba(30, 22, 56, .9); overflow: hidden; }
.pr-mini u { display: block; height: 100%; text-decoration: none; }
.pr-mini u.p { background: var(--bull); }
.pr-mini u.m { background: var(--bear); }
.steps { display: flex; flex-direction: column; gap: 3px; }
.stp { display: grid; grid-template-columns: minmax(0, 1fr) auto 46px; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; }
.stp-n small { display: block; font-size: 10.5px; font-weight: 500; color: var(--faint); }
.stp em { font: 500 9.5px var(--sans); font-style: normal; padding: 1px 5px; border-radius: 3px; white-space: nowrap; }
.stp em.hist { color: var(--accent); background: rgba(198, 255, 26, .1); }
.stp em.est { color: var(--lilac); background: rgba(168, 85, 247, .18); }
.stp em.none { color: var(--faint); background: var(--panel3); }
.stp b { font: 600 12px var(--mono); text-align: right; }
.stp.total { margin-top: 3px; padding-top: 5px; border-top: 1px solid var(--line); }
.steps .hint { margin-top: 6px; font-size: 11px; }
.scn-p { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.scn-p b { font: 700 14px var(--mono); color: var(--fg); }
.coin-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.coin-bar { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.coin-src { margin-left: auto; }
.coin-chart-box { position: relative; }
.coin-chart { height: 540px; border-radius: 9px; overflow: hidden; background: var(--chart-bg); box-shadow: inset 0 0 0 1px var(--line); }
.coin-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; pointer-events: none; }
.coin-legend { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 11px; color: var(--muted); }
.coin-legend .lg { margin-left: 0; }
.lg.zone, .lg.cone { width: 14px; height: 9px; vertical-align: -1px; }
.lg.zone.up { background: rgba(255, 45, 120, .35); box-shadow: inset 0 0 0 1px var(--bear); }
.lg.zone.down { background: rgba(198, 255, 26, .28); box-shadow: inset 0 0 0 1px var(--bull); }
.lg.cone { background: rgba(168, 85, 247, .5); clip-path: polygon(0 50%, 100% 0, 100% 100%); border-radius: 0; }
.coin-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cb-v { display: flex; align-items: center; gap: 14px; }
.cb-name { font: 700 13px var(--display); }
.mono { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.cb-sum { font-size: 13.5px; line-height: 1.5; margin-top: 10px; }
.coin-side .fbars { margin-top: 10px; gap: 5px; }
.scns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.scn { display: flex; flex-direction: column; gap: 4px; padding: 10px 11px; border-radius: 9px; background: rgba(21, 16, 39, .7); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.scn.up.fav { box-shadow: inset 0 0 0 1px var(--bull), 0 0 18px rgba(198, 255, 26, .18); }
.scn.down.fav { box-shadow: inset 0 0 0 1px var(--bear), 0 0 18px rgba(255, 45, 120, .2); }
.scn-top { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; font-weight: 700; }
.scn.up .scn-top span { color: var(--bull); }
.scn.down .scn-top span { color: var(--bear); }
.scn-top em { font-style: normal; font-size: 10px; color: var(--accent); font-weight: 600; text-align: right; }
.scn-n { display: flex; align-items: baseline; gap: 6px; font-family: var(--mono); }
.scn-n b { font-size: 16px; font-weight: 700; }
.scn-n span { font-size: 12px; color: var(--muted); }
.scn p { font-size: 12px; color: var(--muted); }
.scn-note { margin-top: 6px; }
.coin-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.coin-card { padding: 10px 12px; border-radius: 10px; background: rgba(12, 9, 22, .6); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.cc-why { grid-column: span 2; }
.cc-news { grid-column: 1 / -1; }
.why-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.why-cols .notes li, .cc-why .notes li { grid-template-columns: 8px 70px minmax(0, 1fr); font-size: 12.5px; }
.cc-news .news.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.coin-card h3 { margin-top: 0; }
.coin-card h4 { font: 700 11px var(--sans); margin: 8px 0 4px; }
.coin-card h4:first-child { margin-top: 0; }
.cc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.cc-h h3 { margin: 0; }
.cc-sub { margin: 6px 0; }
.coin-card .tfstrip { gap: 3px; }
.tfc small { font: 400 9.5px var(--mono); opacity: .8; white-space: nowrap; }
.tfc.cur { box-shadow: inset 0 0 0 1px var(--accent); }
.inds { display: flex; flex-direction: column; }
.ind { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 1px 7px; align-items: center; padding: 4px 0; border-bottom: 1px solid rgba(42, 31, 72, .45); font-size: 12px; }
.ind b { font-weight: 600; }
.ind span { font: 500 11.5px var(--mono); }
.ind p { grid-column: 2 / -1; color: var(--muted); font-size: 11.5px; }
.ind:last-child { border-bottom: 0; }
.sts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.st { display: flex; flex-direction: column; min-width: 0; }
.st span { font-size: 11px; color: var(--muted); font-weight: 600; }
.st b { font: 700 14px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st b.three { font-size: 11.5px; font-weight: 600; }
.st i { font-style: normal; }
.st small { font-size: 10.5px; color: var(--faint); }
.coin-card .spark { margin: 8px 0 4px; }
.coin-card .tbl { margin-top: 6px; }
.w-prof { margin: 8px 0; }

/* Подписи источников: часть сервисов требует указывать их прямо рядом с данными */
.src { margin-top: 7px; font-size: 11px; color: var(--faint); }
.src a { color: var(--muted); }
.tile-s .src { display: block; margin-top: 2px; }

/* Индексы, макро, рынок, новости */
.fng { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fng-b h3 { margin: 0 0 4px; }
.fng-l { text-align: center; font-weight: 700; font-size: 13px; }
.fng-h { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.fng-h span { display: flex; flex-direction: column; align-items: center; }
.fng-h small { font-size: 10px; color: var(--faint); }
.fng-h b { font: 600 12px var(--mono); }
.macro td { padding-top: 4px; padding-bottom: 4px; }
.macro small { font-size: 10px; font-weight: 500; font-family: var(--sans); }
.macro .sp { width: 74px; padding: 0 0 0 6px; }
.macro .sp .spark { height: 20px; margin: 0; }
.movers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin-top: 4px; }
.movers h3 { margin: 10px 0 3px; }
.mv { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 2px 4px; border-radius: 4px; font: 500 12px var(--mono); }
.mv:hover { background: var(--panel2); }
.news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.news.small { grid-template-columns: minmax(0, 1fr); }
.nw { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 2px 8px; padding: 6px 0; font-size: 13px; line-height: 1.35; color: var(--fg); text-decoration: none; border-bottom: 1px solid rgba(42, 31, 72, .5); }
.nw .dot { margin-top: 5px; }
.nw:hover .nw-t { color: var(--accent); }
.nw-m { grid-column: 2; font-size: 11px; color: var(--muted); }
.nw-m em { font-style: normal; color: var(--lilac); background: var(--panel3); padding: 0 4px; border-radius: 3px; margin-right: 6px; font-size: 10px; }
.news.small .nw { font-size: 12.5px; }
.ev { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 5px 0; font-size: 13px; border-bottom: 1px solid rgba(42, 31, 72, .5); }
.ev-t { font: 500 11.5px var(--mono); color: var(--accent); }
/* Со схемой dark браузер подкладывает под прозрачный виджет белый фон. */
.tv-cal { height: 380px; margin-top: 8px; border-radius: 8px; overflow: hidden; color-scheme: light; }
.tv-cal .tradingview-widget-container, .tv-cal .tradingview-widget-container__widget { height: 100%; }
.bias-top { display: flex; align-items: center; gap: 14px; }
.bias-num { font: 700 46px/1 var(--display); letter-spacing: -.03em; }
.bias-num.up { text-shadow: 0 0 26px rgba(198, 255, 26, .45); }
.bias-num.down { text-shadow: 0 0 26px rgba(255, 45, 120, .5); }
.bias-lbl { font-weight: 700; font-size: 15px; }
.gauge { position: relative; height: 8px; margin-top: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--bear), #7a2bb8 38%, #3a2470 50%, #6b7a1e 66%, var(--bull)); box-shadow: 0 0 14px rgba(124, 58, 237, .35); }
.gauge span { position: absolute; top: -4px; width: 4px; height: 16px; margin-left: -2px; background: #fff; border-radius: 2px; box-shadow: 0 0 10px #fff; transition: left .4s ease; }
.gauge-ax { display: flex; justify-content: space-between; color: var(--faint); font: 400 10px var(--mono); margin-top: 4px; }
.fbars { display: flex; flex-direction: column; gap: 6px; margin-top: 11px; }
.fbar { display: grid; grid-template-columns: 88px minmax(0, 1fr) 58px; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.fbar.off { opacity: .4; }
.ft { position: relative; height: 8px; background: rgba(30, 22, 56, .9); border-radius: 3px; }
.ft::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--faint); }
.ft i { position: absolute; top: 0; bottom: 0; }
.ft i.p { left: 50%; background: var(--bull); border-radius: 0 3px 3px 0; box-shadow: 0 0 8px rgba(198, 255, 26, .5); }
.ft i.m { right: 50%; background: var(--bear); border-radius: 3px 0 0 3px; box-shadow: 0 0 8px rgba(255, 45, 120, .5); }
.fv { font: 500 12px var(--mono); text-align: right; white-space: nowrap; }
.weights { margin-top: 11px; font-size: 12px; }
.weights summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.w-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 26px; align-items: center; gap: 8px; margin-top: 6px; }
.w-row output { font: 500 11px var(--mono); text-align: right; }
.weights .lnk { margin-top: 8px; }
.tfstrip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.tfc { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 2px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(67, 49, 122, .35); }
.tfc.n, .tfc.na { background: var(--panel2); }
.tfc:hover { box-shadow: inset 0 0 0 1px var(--violet); }
.tfc span { font-size: 11px; opacity: .85; font-weight: 600; }
.tfc b { font: 700 14.5px var(--mono); }
.notes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.notes li { display: grid; grid-template-columns: 8px 76px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.notes .dot { align-self: start; margin-top: 6px; }
.tag { font: 500 10px var(--mono); color: var(--lilac); background: var(--panel3); border-radius: 3px; padding: 1px 4px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ladder { display: flex; flex-direction: column; gap: 1px; }
.lv { display: grid; grid-template-columns: minmax(70px, auto) 58px minmax(0, 1fr) 34px; align-items: center; gap: 8px; padding: 4px 7px; font-size: 12px; border-radius: 4px; }
.lv-p { font: 500 12px var(--mono); }
.lv-d { font: 400 11px var(--mono); color: var(--muted); }
.lv-s { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv.res .lv-p { color: #ff9dc0; }
.lv.sup .lv-p { color: #d6f97a; }
.lv.liq .lv-s { color: var(--lilac); }
.lv.now { background: linear-gradient(90deg, rgba(198, 255, 26, .2), rgba(198, 255, 26, .03)); box-shadow: inset 2px 0 0 var(--accent); }
.lv.now .lv-p { color: var(--accent); font-weight: 700; }
.lv.now .lv-d { color: var(--accent); }
.pips { display: flex; gap: 2px; justify-content: flex-end; }
.pips i { width: 4px; height: 4px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 4px var(--violet); }
.heat-small { height: 240px; border-radius: 8px; overflow: hidden; }
.depthbar { margin-top: 9px; }
.db-row { display: flex; justify-content: space-between; gap: 8px; font: 500 12px var(--mono); }
.db-row .muted { font: 500 11px var(--sans); }
.db-bar { height: 6px; margin-top: 4px; border-radius: 3px; background: var(--bear); overflow: hidden; }
.db-bar i { display: block; height: 100%; background: var(--bull); transition: width .4s; }
.fx { padding: 6px 0; border-bottom: 1px solid rgba(42, 31, 72, .55); }
.fx:last-child { border-bottom: 0; }
.fx-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; }
.fx-top b { font: 600 12.5px var(--mono); white-space: nowrap; }

/* Матрица */
.mx { border-collapse: separate; border-spacing: 2px; width: 100%; font-size: 12px; font-variant-numeric: tabular-nums; }
.mx th { font-weight: 600; font-size: 12px; text-align: left; white-space: nowrap; padding: 3px 8px 3px 0; color: var(--fg); }
.mx thead th { color: var(--muted); text-align: center; padding: 4px 2px; }
.mx thead th.sticky { text-align: left; }
.mx .tfh { cursor: pointer; font: 600 12px var(--mono); border-radius: 4px; }
.mx .tfh:hover { color: var(--fg); }
.mx .tfh.sel { color: var(--accent); background: rgba(198, 255, 26, .09); }
.mx .c { text-align: center; padding: 5px 3px; border-radius: 4px; min-width: 46px; font: 500 12px var(--mono); cursor: pointer; }
.mx .c.n { background: var(--panel2); }
.mx .c.sel { box-shadow: inset 0 0 0 1px rgba(198, 255, 26, .6); }
.mx-total .c { font-weight: 700; font-size: 13.5px; padding: 8px 3px; }
.mx-total th { font-weight: 700; }
.mx-g th { color: var(--violet); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding-top: 10px; }
.mx-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 9px 18px; }
.mx-note { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 8px; font-size: 13px; }
.mx-note .dot { margin-top: 6px; }
.months { min-width: 720px; }
.months .c { cursor: default; min-width: 44px; }
.months .c.na { background: none; }
.sweep { width: auto; }
.sweep .c small { display: block; font-size: 9.5px; opacity: .65; font-weight: 400; }
.sweep .clickable:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.sweep thead th { padding: 4px; font-family: var(--mono); }
.sweep thead th.sticky { font-family: var(--sans); font-size: 11px; }
.sweep tbody th { font-family: var(--mono); text-align: center; }

/* График */
.chart-page { display: flex; flex-direction: column; flex: 1; min-height: 460px; padding: 0; overflow: hidden; }
.chart-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.chart-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.chart-src { margin-left: auto; }
.tgs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tgs::-webkit-scrollbar { display: none; }
.chart-box { position: relative; flex: 1; min-height: 0; background: var(--chart-bg); }
.chart-el { position: absolute; inset: 0; }
.tv-host { position: absolute; inset: 0; }
.tv-host iframe { display: block; }
.tv-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.legend { position: absolute; left: 10px; top: 6px; z-index: 3; display: flex; flex-wrap: wrap; gap: 2px 8px; font: 400 11px var(--mono); pointer-events: none; color: var(--fg); text-shadow: 0 0 4px var(--chart-bg); }

/* Тепловая карта */
.heat-page { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main side" "table table" "pools pools"; align-items: start; }
.heat-main { grid-area: main; } .heat-side { grid-area: side; } .heat-table { grid-area: table; } .heat-pools { grid-area: pools; }
.heat-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.heat-more { margin-bottom: 8px; }
.heat-more summary { cursor: pointer; color: var(--accent); font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.heat-more .venues { margin-bottom: 0; }
.heat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.zoom { display: flex; gap: 4px; }
.contrast { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.contrast input { width: 70px; }
.contrast select { width: auto; padding: 3px 5px; font-size: 11.5px; }
.venues { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.vn { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 5px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); }
.vn i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.vn.st-ok i { background: var(--bull); box-shadow: 0 0 6px var(--bull); }
.vn.st-stale i { background: var(--violet); }
.vn.st-err i { background: var(--bear); }
.vn.off { opacity: .42; text-decoration: line-through; }
.heat-big { height: clamp(430px, 72vh, 880px); border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.heat-big.lq { height: clamp(360px, 58vh, 660px); }
.heat-wrap { position: relative; background: var(--heat-bg); }
.heat-base, .heat-over { position: absolute; left: 0; top: 0; display: block; }
.heat-over { cursor: crosshair; touch-action: pan-y; }
.heat-small .heat-over { pointer-events: none; }
.heat-tip { position: absolute; z-index: 4; display: flex; flex-direction: column; gap: 1px; padding: 6px 9px; font: 400 11px var(--mono); background: rgba(10, 7, 19, .94); box-shadow: inset 0 0 0 1px var(--line2), 0 6px 20px rgba(0, 0, 0, .5); border-radius: 6px; pointer-events: none; white-space: nowrap; }
.heat-empty { position: absolute; left: 0; top: 0; display: grid; place-items: center; padding: 12px; font-size: 12.5px; text-align: center; color: var(--muted); pointer-events: none; }
.heat-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
.heat-grad { display: inline-block; width: 110px; height: 7px; border-radius: 3px; background: linear-gradient(90deg, #220c56, #4e18aa, #8e28e8, #d642ec, #f082aa, #c6ff1a, #faffd6); box-shadow: 0 0 10px rgba(168, 85, 247, .4); }
.heat-note { flex-basis: 100%; font-weight: 500; }
.heat-reach { margin-top: 8px; }
.walls { display: flex; flex-direction: column; gap: 3px; }
.wall { display: grid; grid-template-columns: minmax(0, 1fr) 56px 60px; gap: 2px 6px; padding: 6px 8px; font: 400 12px var(--mono); border-radius: 6px; align-items: baseline; }
.wall.bid { background: rgba(198, 255, 26, .07); box-shadow: inset 2px 0 0 var(--bull); }
.wall.ask { background: rgba(255, 45, 120, .08); box-shadow: inset 2px 0 0 var(--bear); }
.wall.done { background: var(--panel2); }
.wall.bid .w-p { color: #d6f97a; }
.wall.ask .w-p { color: #ff9dc0; }
.wall .w-d { color: var(--muted); font-size: 11px; }
.wall b { text-align: right; }
.wall .hint { grid-column: 1 / -1; font: 500 10.5px var(--sans); }
.w-s { font: 600 10.5px var(--sans); }
.w-s.eaten { color: var(--bull); }
.w-s.pulled { color: var(--lilac); }
.absorb { color: var(--accent); font-style: normal; font-weight: 700; }

/* Ликвидации */
.liq-page { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "heat heat" "map map" "groups stops" "whales whales"; }
.lq-heat { grid-area: heat; } .lq-map { grid-area: map; } .lq-groups { grid-area: groups; } .lq-stops { grid-area: stops; } .lq-whales { grid-area: whales; }
.lq-bars { margin-top: 10px; }
.lg-row { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); margin: 6px 0; }
.lg-row .lg:first-child { margin-left: 0; }
.lq-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.lv-row { display: grid; grid-template-columns: minmax(0, 1fr) 62px 70px; gap: 6px; padding: 3px 0; font: 400 12px var(--mono); border-bottom: 1px solid rgba(42, 31, 72, .55); }
.lv-row b { text-align: right; font-weight: 600; }
.gr { margin-bottom: 11px; }
.gr-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; }
.gr-top.small { font: 500 11px var(--mono); margin-top: 3px; }
.gr-bar { height: 9px; margin-top: 4px; border-radius: 5px; background: var(--bear); overflow: hidden; box-shadow: 0 0 10px rgba(255, 45, 120, .25); }
.gr-bar i { display: block; height: 100%; background: var(--bull); transition: width .4s; }
.svg-l { font: 600 13px var(--mono); fill: var(--fg); }
.svg-now { font: 700 13px var(--mono); fill: var(--accent); }

/* Рынок */
.mk { display: grid; gap: 10px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.mk-kpis, .mk-screen, .mk-trend, .mk-health { grid-column: 1 / -1; }
.mk-kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.mk-funding { grid-row: span 2; }
.mk-deriv { margin-top: 10px; }
.liq-sum { margin-bottom: 6px; }
.liq-feed { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; }
.liq-row { display: grid; grid-template-columns: 44px 44px minmax(0, 1fr) 60px 58px; gap: 6px; font: 400 11.5px var(--mono); padding: 3px 0; border-bottom: 1px solid rgba(42, 31, 72, .55); }
.liq-row b { text-align: right; font-weight: 500; }
.health { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }
.h-row { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; }
.h-row .muted { margin-left: auto; font: 400 11px var(--mono); text-align: right; }

/* Формы */
.f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.f span { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.f span b { color: var(--accent); font-family: var(--mono); }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: end; }
.f-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; margin-top: 8px; cursor: pointer; }
.f-static { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.f-static b { color: var(--fg); font-family: var(--mono); }
.progress { position: relative; height: 22px; margin-top: 8px; background: var(--bg); border-radius: 5px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--violet2), var(--violet)); transition: width .2s; }
.progress span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.conds { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.cond { display: flex; gap: 4px; align-items: center; }
.cond select { flex: 1; }
.cond input { width: 58px; flex: none; }
.cond .x { width: 26px; height: 30px; flex: none; color: var(--muted); font-size: 16px; }
.cond .x:hover { color: var(--bear); }

/* Бэктест */
.bt { display: grid; gap: 10px; grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
.bt-form .seg { display: flex; margin-bottom: 6px; }
.bt-form .seg button { flex: 1; }
.bt-form .hint { margin: 6px 0; }
.bt-res { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bt-actions { margin-top: 10px; }
.bt-chart { height: 290px; position: relative; border-radius: 8px; overflow: hidden; }
.bt-chart.tall { height: 400px; }
.bt-two { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bt-two .hint { margin-top: 8px; }
.svg-chart { display: block; width: 100%; height: auto; }
.svg-t { font: 400 11px var(--mono); fill: var(--muted); }
.svg-lg { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 12px; color: var(--muted); margin: 6px 0; }
.svg-lg .lg:first-child { margin-left: 0; }
.sweep-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-bottom: 8px; }
.sweep-form .f { width: 170px; }

/* Проп: счета */
.sub-bar { display: flex; }
.up-grid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
.fmt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fmt-card { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; text-align: left; border-radius: 10px; background: rgba(21, 16, 39, .7); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, background .15s; }
.fmt-card:hover { box-shadow: inset 0 0 0 1px var(--violet); }
.fmt-card b { font: 700 13px var(--display); }
.fmt-card span { font-size: 12px; font-weight: 600; color: var(--lilac); }
.fmt-card small { font-size: 11px; color: var(--muted); }
.fmt-card.on { background: linear-gradient(150deg, rgba(124, 58, 237, .5), rgba(21, 16, 39, .85)); box-shadow: inset 0 0 0 1px var(--accent), 0 0 22px rgba(124, 58, 237, .45); }
.fmt-card.on b { color: var(--accent); }
.fmt-cards.small { margin-bottom: 4px; }
.up-builder .seg { display: flex; }
.up-builder .seg button { flex: 1; }
.up-sum { margin-top: 12px; }
.up-price { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 10px 0 6px; padding: 9px 12px; border-radius: 8px; background: rgba(198, 255, 26, .07); box-shadow: inset 0 0 0 1px rgba(198, 255, 26, .3); font-weight: 600; }
.up-price b { font: 700 19px var(--display); color: var(--accent); }
.caps { margin-bottom: 12px; }
.up-cards { display: flex; flex-direction: column; gap: 8px; }
.up-card { padding: 11px 13px; border-radius: 10px; background: rgba(21, 16, 39, .7); box-shadow: inset 0 0 0 1px var(--line); }
.up-card.cur { box-shadow: inset 0 0 0 1px var(--violet), 0 0 18px rgba(124, 58, 237, .3); }
.up-card.st-failed { opacity: .72; }
.up-card-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; }
.up-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.up-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 9px 0; }
.up-card-grid span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.up-card-grid b { font: 600 13px var(--mono); }
.up-card-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }

/* Проп: торговля */
.pt { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "head head" "chart ticket" "chart pos" "chart rules" "journal journal"; grid-template-rows: auto auto auto 1fr auto; align-items: start; }
.pt-head-p { grid-area: head; } .pt-rules { grid-area: rules; } .pt-chart { grid-area: chart; align-self: stretch; } .pt-ticket { grid-area: ticket; } .pt-pos { grid-area: pos; } .pt-journal { grid-area: journal; }
.pt-chart { display: flex; flex-direction: column; padding: 0; overflow: hidden; min-height: 620px; }
.pt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; margin-bottom: 9px; }
.pt-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pt-title b { font: 700 14px var(--display); }
.pt-head-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-inst select { font-weight: 700; width: auto; max-width: 190px; }
.pt-quote { display: flex; flex-direction: column; min-width: 0; }
.pt-quote b { font: 700 16px var(--mono); line-height: 1.1; }
.pt-quote .hint { font-size: 10.5px; white-space: nowrap; }
.t-trig { margin: 8px 0 0; }
.f-row-t { margin: 8px 0 6px; }
.pct-btns { display: flex; gap: 4px; margin: 7px 0; }
.pct-btns .tg { flex: 1; text-align: center; }
.t3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.risk-row { display: flex; align-items: flex-end; gap: 8px; margin: 8px 0; }
.risk-row .f { flex: 1; }
.t-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 12px; margin: 8px 0 10px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.t-sum.one { grid-template-columns: minmax(0, 1fr); }
.t-sum > div { display: flex; justify-content: space-between; gap: 6px; }
.t-sum b { font: 500 11.5px var(--mono); color: var(--fg); white-space: nowrap; }
.t-sum b.down { color: var(--bear); }
.t-sum b.up { color: var(--bull); }
.t-warn { grid-column: 1 / -1; color: var(--bear); font-size: 12px; }
.t-warn.soft { color: var(--lilac); }
.t-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.t-btns .btn { padding: 12px; font-size: 14px; }
.t-msg { margin-top: 8px; font-size: 12.5px; color: #ff9dc0; }
.rule { margin-bottom: 9px; }
.rule:last-child { margin-bottom: 0; }
.rule-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.rule-top b { font: 500 11.5px var(--mono); color: var(--fg); white-space: nowrap; }
.rule-bar { height: 6px; margin-top: 3px; background: var(--panel3); border-radius: 3px; overflow: hidden; }
.rule-bar i { display: block; height: 100%; background: var(--lilac); transition: width .25s; }
.rule.goal .rule-bar i, .rule-bar.goal i { background: linear-gradient(90deg, var(--violet2), var(--violet)); box-shadow: 0 0 8px var(--violet); }
.rule.done .rule-bar i { background: var(--bull); box-shadow: 0 0 8px var(--bull); }
.rule.warn .rule-bar i { background: var(--violet); }
.rule.danger .rule-bar i { background: var(--bear); box-shadow: 0 0 8px var(--bear); }
.rule.danger .rule-top span { color: var(--bear); }
.chk { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 0; }
.chk i { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); flex: none; }
.chk.ok { color: var(--fg); }
.chk.ok i { background: var(--bull); box-shadow: 0 0 7px var(--bull); }
.payout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr); gap: 8px 18px; margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--line); }
.payout h3 { margin-top: 8px; }
.payout-r { align-self: end; }
.payout-r .btn { width: 100%; }
.pos { padding: 9px 0; border-bottom: 1px solid var(--line); }
.pos:first-child { padding-top: 0; }
.pos:last-child { border-bottom: 0; padding-bottom: 0; }
.pos-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font: 500 12.5px var(--mono); }
.health { height: 4px; margin: 5px 0 7px; background: var(--panel3); border-radius: 2px; overflow: hidden; }
.health i { display: block; height: 100%; transition: width .25s; }
.health i.g { background: var(--bull); }
.health i.y { background: var(--violet); }
.health i.r { background: var(--bear); }
.pos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin: 6px 0; font: 400 11.5px var(--mono); color: var(--muted); }
.pos-grid label { display: flex; align-items: center; gap: 6px; font-family: var(--sans); font-weight: 600; }
.pos-grid input { padding: 4px 6px; font-size: 12px; }
.pos-btns { display: flex; flex-wrap: wrap; gap: 4px; }
.pos-btns .btn { padding: 4px 8px; font-size: 11px; }
.ord { display: grid; grid-template-columns: 42px minmax(0, 1fr) 62px 80px auto; align-items: center; gap: 6px; padding: 4px 0; font: 400 11.5px var(--mono); }
.ord .btn { padding: 3px 7px; font-size: 11px; }
.replay-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.replay-bar:empty { display: none; }

/* Проп: условия и шанс */
.rules-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.rules-grid .full { grid-column: 1 / -1; }
.plain { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.plain li::marker { color: var(--violet); }
.price-tables { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.price-tables h3 { margin-top: 0; }
.mc { display: grid; gap: 10px; grid-template-columns: 370px minmax(0, 1fr); align-items: start; }
.mc-res { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mc-form .seg { display: flex; }
.mc-form .seg button { flex: 1; }
.mc-form .hint { margin: 6px 0; }
#mc-roll { margin-top: 8px; }

/* Выбор рынка и сообщения */
#picker { width: min(580px, calc(100vw - 24px)); max-height: min(660px, 86dvh); padding: 0; background: var(--panel); color: var(--fg); border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; box-shadow: 0 0 60px rgba(124, 58, 237, .4); }
#picker[open] { display: flex; flex-direction: column; }
#picker::backdrop { background: rgba(3, 2, 6, .78); backdrop-filter: blur(3px); }
.pk-head { display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid var(--line); }
#pk-list { overflow-y: auto; padding: 4px; flex: 1; }
#pk-list .empty { padding: 16px; }
.pk-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 96px 62px 70px; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 6px; font: 400 12.5px var(--mono); cursor: pointer; }
.pk-row:hover { background: var(--panel2); }
.pk-row.cur b { color: var(--accent); }
.pk-row span { text-align: right; white-space: nowrap; }
.pk-row small { color: var(--muted); font-weight: 400; }
.star { color: var(--faint); font-size: 15px; width: 26px; height: 26px; }
.star.on { color: var(--accent); text-shadow: 0 0 8px var(--accent); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); max-width: calc(100vw - 32px); padding: 10px 15px; background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line2), 0 10px 30px rgba(0, 0, 0, .55); border-radius: 9px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { box-shadow: inset 0 0 0 1px var(--bear), 0 0 22px rgba(255, 45, 120, .35); }
#toast.good { box-shadow: inset 0 0 0 1px var(--bull), 0 0 22px rgba(198, 255, 26, .3); }

/* Планшет */
@media (max-width: 1320px) {
  .favs { display: none; }
}
@media (max-width: 1240px) {
  .hm-mood, .hm-next, .hm-all, .hm-news, .hm-events { grid-column: 1 / -1; }
  .hm-fng, .hm-macro { grid-column: span 6; }
  .coin-head { grid-template-columns: auto minmax(0, 1fr); }
  .coin-suggest { grid-column: 1 / -1; }
  .coin-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .coin-side, .coin-break { grid-column: auto; grid-row: auto; }
  .coin-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-why { grid-column: 1 / -1; }
  .bt, .mc { grid-template-columns: minmax(0, 1fr); }
  .bt-form .f-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .price-tables { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1040px) {
  .top-stats { display: none; }
  .heat-page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side" "table" "pools"; }
  .pt { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "chart" "ticket" "pos" "rules" "journal"; }
  .up-grid, .rules-grid { grid-template-columns: minmax(0, 1fr); }
  .liq-page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heat" "map" "groups" "stops" "whales"; }
  .pt-chart { min-height: 480px; }
}

/* Телефон */
@media (max-width: 760px) {
  #app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  #main { grid-row: 1; }
  #rail { grid-row: 2; flex-direction: row; justify-content: space-between; gap: 0; border-right: 0; border-top: 1px solid var(--line); padding: 4px max(3px, env(safe-area-inset-right, 0px)) max(4px, env(safe-area-inset-bottom, 0px)) max(3px, env(safe-area-inset-left, 0px)); overflow: visible; }
  #rail .logo { display: none; }
  .brand-bar { gap: 10px; min-height: 28px; padding-top: 6px; }
  .brand { font-size: 12.5px; }
  .brand svg { display: block; }
  .brand-page { padding-left: 10px; }
  .brand-page b { font-size: 12px; }
  .brand-page span, .brand-link { display: none; }
  #rail button { flex: 1 1 0; min-width: 0; padding: 6px 0 4px; font-size: 9.5px; gap: 3px; }
  #rail button svg { width: 18px; height: 18px; }
  .top-row { gap: 8px; min-height: 44px; padding-top: 6px; padding-bottom: 4px; flex-wrap: nowrap; }
  #top-price { font-size: 17px; }
  #sym-btn { padding: 4px 7px; }
  #sym-btn small { display: none; }
  /* На телефоне источник выбирается нажатием на биржу в полосе под ценой. */
  .feed { display: none; }
  .status span { display: none; }
  .status small { display: none; }
  .mk, .bt-two, .lq-lists { grid-template-columns: minmax(0, 1fr); }
  .mk-funding { grid-row: auto; }
  .hm { grid-template-columns: minmax(0, 1fr); }
  .hm > * { grid-column: auto; }
  .hm-coin { padding: 10px 11px; }
  .mood-top { grid-template-columns: 124px minmax(0, 1fr); gap: 10px; }
  .mood-name { font-size: 18px; }
  .mood-bars { grid-template-columns: minmax(0, 1fr); }
  .nx-box b { font-size: 14px; }
  .nx-cols { grid-template-columns: minmax(0, 1fr); }
  .coin-head { grid-template-columns: minmax(0, 1fr); }
  .coin-chart { height: 400px; }
  .coin-src { display: none; }
  .coin-cards, .scns, .why-cols, .coin-break { grid-template-columns: minmax(0, 1fr); }
  .coin-break { gap: 10px; }
  .news, .cc-news .news.small { grid-template-columns: minmax(0, 1fr); }
  .fng { gap: 8px; }
  .panel { padding: 10px 11px; }
  .bias-num { font-size: 38px; }
  .fbar { grid-template-columns: 80px minmax(0, 1fr) 52px; }
  .lv { grid-template-columns: minmax(70px, auto) 54px minmax(0, 1fr) 24px; gap: 6px; }
  .mx .c { min-width: 38px; font-size: 11px; padding: 6px 1px; }
  .mx th { font-size: 11px; padding-right: 4px; max-width: 96px; white-space: normal; line-height: 1.15; }
  .mx { border-spacing: 1px; }
  .months .c { min-width: 40px; }
  .chart-page { min-height: 0; }
  .chart-bar { padding: 6px; }
  .chart-src { display: none; }
  .heat-big { height: 66vh; min-height: 360px; }
  .heat-big.lq { height: 54vh; min-height: 320px; }
  .heat-small { height: 200px; }
  .heat-ctl { width: 100%; }
  .bt-chart { height: 240px; }
  .bt-chart.tall { height: 320px; }
  .pt-chart { min-height: 430px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-v { font-size: 15px; }
  /* Показатели счёта плотнее: на телефоне важнее сразу дойти до графика и заявки. */
  #pt-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  #pt-tiles .tile { padding: 6px 7px; }
  #pt-tiles .tile-v { font-size: 12px; }
  #pt-tiles .tile-l, #pt-tiles .tile-s { font-size: 10px; }
  .f-grid, .bt-form .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  input, select { font-size: 16px; } /* iOS не приближает страницу при фокусе */
  .pos-grid input { font-size: 16px; }
  .btn { padding: 9px 12px; }
  .btn.sm { padding: 6px 10px; }
  .seg button { padding: 6px 9px; }
  .tg { padding: 6px 8px; }
  .sweep-form .f { width: calc(50% - 4px); }
  .fmt-card { padding: 9px; }
  .fmt-card b { font-size: 11px; }
  .fmt-card small { display: none; }
  .payout { grid-template-columns: minmax(0, 1fr); }
  .pk-row { grid-template-columns: 28px minmax(0, 1fr) 92px 58px; }
  .hide-sm { display: none; }
  #picker { width: 100vw; max-width: 100vw; height: 92dvh; max-height: 92dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; border-width: 1px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  #toast { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
