  /* GrmScreen: тёплый янтарно-оранжевый терминал. Верхняя навигация, вкладки-разделы, свой движок графиков */
  :root {
    --bg: #050506;
    --bg2: #0b0b0e;
    --panel: #13141a;
    --panel2: #1a1b22;
    --line: #24252e;
    --fg: #ece8e1;
    --muted: #8b8780;
    --accent: #ffa630;
    --accent2: #ff7a1a;
    --accent-soft: rgba(255,166,48,.12);
    --accent-ink: #1c1003;
    --grad: linear-gradient(100deg, #ffc35c 0%, #ffa630 45%, #ff7a1a 100%);
    --up: #2bc98a;
    --down: #f2555f;
    --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
    --font-ui: "Manrope", system-ui, sans-serif;
    --font-num: "JetBrains Mono", ui-monospace, monospace;
    --ease: cubic-bezier(.22,.7,.2,1);
    --fg2: #c9c3ba;
    --topbar: rgba(5,5,6,.82);
    --line2: #33333c;
    --track: #221c12;
    --toast: rgba(19,20,26,.96);
    --bgimg: url("../img/bg.webp");
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { height: 100%; } body { min-height: 100%; } /* с height:100% липкая шапка уезжала вместе со страницей */
  body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.45 var(--font-ui); }
  button { font: inherit; color: inherit; }
  a { color: inherit; }
  .num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
  .up { color: var(--up); } .down { color: var(--down); } .muted { color: var(--muted); }
  ::selection { background: rgba(255,166,48,.35); }

  /* ---------- Верхняя панель ---------- */
  .topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; height: 58px; padding: 0 16px; background: var(--topbar); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: background .5s var(--ease), border-color .5s var(--ease); }
  .topbar { transition: transform .35s var(--ease), background .5s var(--ease), border-color .5s var(--ease); will-change: transform; }
  body.tb-hide:not(.landing) .topbar { transform: translateY(-100%); }
  .dens-controls { transition: top .35s var(--ease); } body.tb-hide .dens-controls { top: 0 !important; }
  body.landing .topbar { background: transparent; border-color: transparent; backdrop-filter: none; position: fixed; left: 0; right: 0; }
  .logo { display: flex; align-items: center; gap: 10px; cursor: pointer; background: none; border: 0; padding: 0; }
  .logo:focus, .logo:focus-visible, .logo-mark:focus { outline: none; box-shadow: none; }
  .logo-mark { width: 36px; height: 36px; display: block; flex: none; margin: -3px -2px -3px -4px; } .logo-mark img { width: 100%; height: 100%; display: block; } .logo-mark img:not([src]) { visibility: hidden; } body.landing .logo-mark .th, body:not(.landing) .logo-mark .brand { display: none; }
  .logo-word { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
  .logo-word b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
  .nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
  .nav::-webkit-scrollbar { display: none; }
  .nav button { background: none; border: 0; padding: 8px 12px; border-radius: 9px; color: var(--muted); font-weight: 700; cursor: pointer; white-space: nowrap; transition: color .2s, background .2s; }
  .nav button:hover { color: var(--fg); background: var(--panel); }
  .nav button.active { color: var(--accent); background: var(--accent-soft); }
  .status { display: flex; align-items: center; gap: 8px; font: 12px var(--font-num); color: var(--muted); white-space: nowrap; }
  .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
  .dot.on { background: var(--up); box-shadow: 0 0 0 3px rgba(43,201,138,.15); }
  .dot.err { background: var(--down); }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--panel2); padding: 10px 16px; border-radius: 11px; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .25s var(--ease), border-color .25s, box-shadow .3s, filter .25s; }
  .btn:hover { border-color: var(--line2); transform: translateY(-1px); }
  .btn.primary { background: var(--grad); color: var(--accent-ink); border-color: transparent; box-shadow: 0 6px 24px -8px color-mix(in srgb, var(--accent) 55%, transparent); }
  .btn.primary:hover { filter: brightness(1.06); box-shadow: 0 10px 32px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
  .btn.big { padding: 15px 26px; font-size: 16px; border-radius: 13px; }
  button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  body.landing .nav, body.landing .status, body.landing #userChip { display: none; }
  body:not(.landing) #enterTop { display: none; }
  .topbar .spacer { flex: 1; }
  body:not(.landing) .topbar .spacer { display: none; }
  .user-chip { position: relative; }
  .user-chip > button { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px 3px 3px; cursor: pointer; font-weight: 700; font-size: 13px; }
  .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
  .user-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 180px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.6); }
  .user-menu button { width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--fg); display: flex; align-items: center; gap: 9px; font-weight: 600; }
  .user-menu button svg { color: var(--muted); } .user-menu button:hover svg { color: var(--accent); }
  #userBtn:focus, #userBtn:focus-visible, #themeBtn:focus, #bellBtn:focus { outline: none !important; box-shadow: none !important; }
  .user-chip > button { transition: border-color .25s, background .25s; } .user-chip > button:hover { border-color: var(--line2, var(--line)); background: var(--panel2); }
  .avatar { overflow: hidden; background: none; }
  .av { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
  .av svg { width: 100%; height: 100%; display: block; } .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .av-l { background: var(--grad); color: var(--accent-ink); font-family: var(--font-ui); font-weight: 800; font-size: 13px; line-height: 1; }
  .acc-ava .av-l { font-size: 40px; } .acc-av .av-l { font-size: 26px; }
  .av-n { background: radial-gradient(circle at 50% 30%, #262830, #0a0b0e 70%); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
  .av-n svg { overflow: visible; } .av-n .ac { fill: currentColor; } .av-n .eye polygon { fill: currentColor; } .av-n .eye { filter: drop-shadow(0 0 2px currentColor) drop-shadow(0 0 5px currentColor); }
  .acc-av:hover .av-n .eye { animation: avBlink 1.2s ease; } @keyframes avBlink { 40% { opacity: 1; } 50% { opacity: .1; } 60% { opacity: 1; } }
  .av-h { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 30%, #111), #0b0b0e); }
  .user-menu button:hover { background: var(--panel2); }

  /* ---------- Приветствие ---------- */
  #landing { position: relative; min-height: 100vh; overflow: hidden; background: #070608; }
  .hero-bg { position: absolute; inset: -4%; background: var(--bgimg) center 60% / cover no-repeat; opacity: .28; filter: saturate(.8); animation: drift 38s var(--ease) infinite alternate; will-change: transform;
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 92%); mask-image: linear-gradient(180deg, #000 40%, transparent 92%); }
  .hero-shade { position: absolute; inset: 0; pointer-events: none; background:
      radial-gradient(60% 55% at 72% 42%, rgba(255,122,26,.13), transparent 70%),
      linear-gradient(90deg, rgba(7,6,8,.95) 0%, rgba(7,6,8,.6) 40%, rgba(7,6,8,.15) 70%, rgba(7,6,8,.5) 100%); height: 100vh; }
  #fx { position: absolute; left: 0; top: 0; width: 100%; height: 100vh; pointer-events: none; }
  @keyframes drift { 0% { transform: scale(1.04) translate(0, 0); } 50% { transform: scale(1.1) translate(-1.5%, -1%); } 100% { transform: scale(1.06) translate(1%, -2%); } }
  .reveal { opacity: 0; transform: translateY(18px); animation: rise 1.1s var(--ease) forwards; }
  .reveal.d1 { animation-delay: .12s; } .reveal.d2 { animation-delay: .24s; } .reveal.d3 { animation-delay: .36s; } .reveal.d4 { animation-delay: .5s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--font-num); color: #e9b77a; background: rgba(255,166,48,.06); border: 1px solid rgba(255,166,48,.2); padding: 7px 13px; border-radius: 999px; letter-spacing: .03em; backdrop-filter: blur(6px); }

  .hero { position: relative; max-width: 1240px; margin: 0 auto; padding: 120px max(24px, env(safe-area-inset-right, 0px)) 56px max(24px, env(safe-area-inset-left, 0px)); min-height: min(100vh, 900px);
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 40px; }
  .hero-copy { display: flex; flex-direction: column; min-width: 0; }
  .hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.03em; margin: 22px 0 22px; text-wrap: balance; color: #f3ede4; }
  .hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero p.lead { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: #b9b1a6; max-width: 540px; margin: 0 0 30px; }
  .hero p.lead b { color: #f3ede4; font-weight: 700; }
  .hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
  .hero-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.07); max-width: 540px; }
  .hero-meta div { display: flex; flex-direction: column; gap: 2px; }
  .hero-meta b { font: 800 20px var(--font-display); color: #f3ede4; letter-spacing: -.02em; }
  .hero-meta span { font-size: 12px; color: #8a8278; }

  .hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
  .hero-art .halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,138,31,.28), rgba(255,138,31,.07) 55%, transparent 75%); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
  .hero-art .ring { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed rgba(255,166,48,.14); animation: spin 90s linear infinite; }
  .hero-art .ring.r2 { inset: 15%; border-style: solid; border-color: rgba(255,166,48,.07); animation-duration: 140s; animation-direction: reverse; }
  .hood { position: absolute; inset: 13%; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0,0,0,.7)); }
  .hood img { width: 100%; height: 100%; display: block; }
  /* браузеры (например Яндекс) показывают свою панель при наведении на картинку: логотипы не реагируют на мышь */
  img[data-brand-big], img[data-brand-logo], .logo-mark img { pointer-events: none; -webkit-user-drag: none; user-select: none; }
  .hood .eye { position: absolute; top: 50.8%; width: 15%; height: 7%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,190,90,.75), rgba(255,122,26,.35) 50%, transparent); mix-blend-mode: screen; animation: glow 4.5s ease-in-out infinite; }
  .hood .eye.l { left: 39.4%; } .hood .eye.r { left: 60.6%; }
  @keyframes float { 50% { transform: translateY(-12px); } }
  @keyframes breathe { 50% { transform: scale(1.06); opacity: .8; } }
  @keyframes spin { to { rotate: 360deg; } }
  @keyframes glow { 0%, 100% { opacity: .55; } 45% { opacity: 1; } 50% { opacity: .2; } 54% { opacity: 1; } }

  .fcard { position: absolute; background: rgba(18,16,20,.72); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 12px 14px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 50px -20px rgba(0,0,0,.8); animation: float 8s ease-in-out infinite; color: #ece5da; }
  .fcard .k { font: 600 10px var(--font-num); text-transform: uppercase; letter-spacing: .08em; color: #8a8278; }
  .fcard .v { font: 800 17px var(--font-display); letter-spacing: -.02em; margin-top: 3px; display: flex; align-items: baseline; gap: 8px; }
  .fcard .v small { font: 600 12px var(--font-num); }
  .fcard .up { color: #2bc98a; } .fcard .down { color: #f2555f; }
  .fc-chart { left: -4%; bottom: 4%; width: 58%; animation-delay: -2s; }
  .fc-chart .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .fc-chart canvas { display: block; width: 100%; height: 92px; margin-top: 8px; }
  .fc-gain { right: -2%; top: 12%; animation-delay: -5s; }
  .fc-vol { right: 2%; bottom: 26%; animation-delay: -3.5s; }

  .tape { position: relative; border-block: 1px solid rgba(255,166,48,.1); background: rgba(10,9,11,.85); backdrop-filter: blur(8px); overflow: hidden; height: 46px; }
  .tape-track { display: flex; gap: 0; white-space: nowrap; position: absolute; left: 0; top: 0; height: 46px; align-items: center; animation: tape 70s linear infinite; padding-left: 0; will-change: transform; }
  .tape-item { font: 13px var(--font-num); display: inline-flex; gap: 8px; color: #bdb5aa; margin-right: 40px; font-variant-numeric: tabular-nums; } .tape-item .p, .tape-item .c { display: inline-block; text-align: left; }
  .tape-item b { font-family: var(--font-ui); font-weight: 800; color: #f3ede4; }
  @keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  .l-sec { position: relative; max-width: 1240px; margin: 0 auto; padding: 96px max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px)); }
  body:not(.landing) .kicker { color: color-mix(in srgb, var(--accent) 80%, var(--fg)); }
  .kicker { font: 600 12px var(--font-num); color: #e9a24f; letter-spacing: .08em; text-transform: uppercase; }
  .sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
  .sec-head h2, .author h2, .l-final h2 { font: 800 clamp(26px, 3.2vw, 42px)/1.1 var(--font-display); letter-spacing: -.03em; margin: 12px 0 0; color: #f3ede4; text-wrap: balance; max-width: 720px; }
  .sec-head p { color: #8a8278; max-width: 360px; margin: 0; }

  .bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .b-card { grid-column: span 2; position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(24,21,25,.9), rgba(14,13,16,.9)); border: 1px solid rgba(255,255,255,.07); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; min-width: 0;
    transition: border-color .4s var(--ease), transform .4s var(--ease); }
  .b-card:hover { border-color: rgba(255,166,48,.3); transform: translateY(-3px); }
  .b-card.wide { grid-column: span 4; }
  .b-card .vis { height: 170px; margin: -4px -4px 18px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.04); position: relative; overflow: hidden; }
  .b-card h3 { margin: 0 0 6px; font: 700 18px var(--font-ui); color: #f3ede4; display: flex; align-items: center; gap: 10px; }
  .b-card p { margin: 0; color: #8f877c; line-height: 1.55; font-size: 14.5px; }
  .b-card .badge { font: 700 10px var(--font-num); text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: rgba(255,166,48,.12); color: #ffb35c; }
  .vis svg, .vis canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  .b-card { cursor: pointer; outline: none; }
  .b-card:focus-visible { border-color: rgba(255,166,48,.6); }
  .b-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,166,48,.09), transparent 45%); opacity: 0; transition: opacity .4s var(--ease); }
  .b-card:hover::after { opacity: 1; }
  .b-card .more { margin-top: 14px; font: 700 13px var(--font-ui); color: #ffa630; opacity: .55; transform: translateX(-4px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
  .b-card:hover .more, .b-card:focus-visible .more { opacity: 1; transform: none; }
  .fcard[data-feat] { cursor: pointer; transition: border-color .3s var(--ease); }
  .fcard[data-feat]:hover { border-color: rgba(255,166,48,.45); }

  .tour { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(5,4,6,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .3s var(--ease); }
  .tour-box { position: relative; width: min(1040px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: #110f13; border: 1px solid rgba(255,166,48,.16); border-radius: 24px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02); animation: tourIn .5s var(--ease); color: #ece5da; }
  @keyframes tourIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
  .tour-vis { position: relative; min-height: 420px; background: radial-gradient(90% 70% at 50% 40%, rgba(255,122,26,.08), transparent 70%), #0b0a0d; border-right: 1px solid rgba(255,255,255,.06); }
  .tour-vis canvas { position: absolute; inset: 18px 18px 46px; width: calc(100% - 36px); height: calc(100% - 64px); display: block; }
  .tour-dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
  .tour-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(255,255,255,.18); cursor: pointer; transition: width .35s var(--ease), background .35s; }
  .tour-dots button.on { width: 24px; background: #ffa630; }
  .tour-body { padding: 34px 34px 26px; display: flex; flex-direction: column; min-width: 0; }
  .tour-body h2 { font: 800 clamp(24px, 2.6vw, 32px)/1.1 var(--font-display); letter-spacing: -.03em; margin: 10px 0 10px; color: #f3ede4; }
  .tour-lead { color: #b3aba0; line-height: 1.6; margin: 0 0 18px; }
  .tour-body h4 { margin: 18px 0 8px; font: 700 11px var(--font-num); text-transform: uppercase; letter-spacing: .08em; color: #8a8278; }
  .tour-body ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
  .tour-body li { position: relative; padding-left: 20px; color: #d6cec3; line-height: 1.5; font-size: 14.5px; }
  .tour-body li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: #ffa630; box-shadow: 0 0 10px rgba(255,166,48,.6); }
  .tour-body ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 8px; }
  .tour-body ol li::before { counter-increment: s; content: counter(s); width: 16px; height: 16px; left: -2px; top: .15em; display: grid; place-items: center; font: 700 10px var(--font-num); color: #1c1003; box-shadow: none; }
  .tour-body kbd { font: 600 11px var(--font-num); padding: 2px 6px; border-radius: 5px; border: 1px solid rgba(255,255,255,.15); border-bottom-width: 2px; background: rgba(255,255,255,.04); color: #f3ede4; }
  .tour-th { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0 0 6px; }
  .tour-th button { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); color: #ece5da; font: 700 13px var(--font-ui); cursor: pointer; text-align: left; transition: border-color .25s, background .25s, transform .25s var(--ease); }
  .tour-th button:hover { border-color: rgba(255,166,48,.45); transform: translateY(-1px); }
  .tour-th button.on { border-color: #ffa630; background: rgba(255,166,48,.1); }
  .tour-th svg { flex: none; display: block; border-radius: 6px; transition: transform .3s var(--ease); } .tour-th button:hover svg, .tour-th button.on svg { transform: scale(1.08); }
  .tour-th small { margin-left: auto; font: 700 9.5px var(--font-num); text-transform: uppercase; letter-spacing: .04em; color: #ffb35c; }
  .tour-th small.free { color: #2bc98a; }
  .hero-ex { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); width: fit-content; max-width: 100%; cursor: pointer; transition: border-color .3s, background .3s, transform .3s var(--ease); }
  .hero-ex:hover { border-color: rgba(255,166,48,.35); background: rgba(255,166,48,.04); transform: translateY(-1px); }
  body.landing.lp-teal .hero-ex:hover { border-color: rgba(79,227,214,.35); background: rgba(79,227,214,.04); }
  .hero-ex .grp { display: inline-flex; align-items: center; gap: 6px; } .hero-ex .grp .ex-ic { transition: transform .3s var(--ease); } .hero-ex:hover .grp .ex-ic { transform: translateY(-2px); }
  .hero-ex .lbl { font: 600 12px var(--font-ui); color: #8a8278; } .hero-ex .lbl b { color: #ece5da; font-weight: 700; }
  .hero-ex .tag { font: 700 9.5px var(--font-num); text-transform: uppercase; letter-spacing: .05em; padding: 3px 7px; border-radius: 6px; }
  .hero-ex .tag.free { color: #2bc98a; background: rgba(43,201,138,.12); } .hero-ex .tag.pro { color: #1c1003; background: linear-gradient(100deg, #ffc35c, #ff8a1f); }
  body.landing.lp-teal .hero-ex .tag.pro { color: #04161a; background: linear-gradient(100deg, #a4f4ec, #19c2d6); }
  .hero-ex .sep { width: 1px; height: 20px; background: rgba(255,255,255,.1); } .hero-ex .soon { opacity: .75; }
  #landing .ex-ic i { box-shadow: 0 0 0 2px #0b0a0d; }
  .tour-pro { position: relative; margin: 18px 0 4px; padding: 4px 16px 14px; border-radius: 14px; border: 1px solid rgba(255,166,48,.28); background: radial-gradient(120% 90% at 0% 0%, rgba(255,166,48,.09), transparent 60%), rgba(255,255,255,.015); box-shadow: 0 14px 34px -24px rgba(255,138,31,.6); overflow: hidden; animation: fade .4s var(--ease); }
  .tour-pro::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: linear-gradient(#ffc35c, #ff7a1a); }
  .tour-pro h4 { display: flex; align-items: center; gap: 8px; color: #ffc35c !important; }
  .tour-pro h4 em { margin-left: auto; font-style: normal; font: 600 10px var(--font-num); letter-spacing: .04em; color: #8a8278; text-transform: none; }
  .tp-badge { font: 800 9.5px var(--font-num); letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: linear-gradient(100deg, #ffc35c, #ff8a1f); color: #1c1003; box-shadow: 0 0 14px rgba(255,138,31,.45); }
  body.landing.lp-teal .tour-pro { border-color: rgba(79,227,214,.28); background: radial-gradient(120% 90% at 0% 0%, rgba(79,227,214,.09), transparent 60%), rgba(255,255,255,.015); box-shadow: 0 14px 34px -24px rgba(25,190,214,.6); }
  body.landing.lp-teal .tour-pro::before { background: linear-gradient(#a4f4ec, #19b8d6); }
  body.landing.lp-teal .tour-pro h4 { color: #a4f4ec !important; }
  body.landing.lp-teal .tp-badge { background: linear-gradient(100deg, #a4f4ec, #19c2d6); color: #04161a; box-shadow: 0 0 14px rgba(25,190,214,.45); }
  .tour-th-tabs { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 8px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
  .tour-th-tabs button { border: 0; background: none; color: #a39a8e; font: 700 12.5px var(--font-ui); padding: 6px 14px; border-radius: 7px; cursor: pointer; transition: color .25s, background .25s; }
  .tour-th-tabs button.on { background: rgba(255,166,48,.14); color: #ffc35c; } .tour-th-tabs button:hover { color: #f3ede4; }
  body.landing.lp-teal .tour-th-tabs button.on { background: rgba(79,227,214,.14); color: #a4f4ec; }
  .tour-th-wrap { margin-bottom: 6px; } .tour-th { animation: fade .3s var(--ease); }
  .tour-foot { display: flex; gap: 8px; margin-top: auto; padding-top: 24px; }
  .tour-foot .primary { flex: 1; white-space: nowrap; }
  @media (max-width: 420px) { .tour-foot .primary { font-size: 13px; padding-inline: 10px; } }
  .tour-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); background: rgba(17,15,19,.8); color: #ece5da; font-size: 20px; line-height: 1; cursor: pointer; }
  .tour-x:hover { border-color: rgba(255,166,48,.5); }
  @media (max-width: 820px) { .tour-box { grid-template-columns: 1fr; } .tour-vis { min-height: 260px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.06); } .tour-body { padding: 24px 20px 20px; } }
  .bento > .b-card:nth-child(-n+2) .vis { height: 220px; }
  .bento > .b-card .vis { height: 190px; }
  .b-card.full { grid-column: 1 / -1; }
  .b-card.ex-card { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 26px; align-items: center; }
  .b-card.ex-card .vis { height: 200px; margin: -4px; }
  .b-card.ex-card p b { color: #ece5da; }
  @media (max-width: 900px) { .b-card.ex-card { grid-template-columns: 1fr; gap: 14px; } }
  .bento > .b-card:nth-child(-n+2) .vis { height: 230px; }
  @media (max-width: 980px) { .bento > .b-card:nth-child(2) .vis { height: 170px; } }
  .mini-grid { position: absolute; inset: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mini-grid > div { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); border-radius: 8px; position: relative; overflow: hidden; }
  .mini-grid > div span { position: absolute; left: 7px; top: 5px; font: 700 9px var(--font-num); color: #8a8278; z-index: 1; }
  .mini-grid > div:nth-child(5) { border-color: rgba(255,166,48,.4); box-shadow: inset 0 0 20px rgba(255,138,31,.12); }
  .live-c { animation: livec 1.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
  @keyframes livec { from { transform: scaleY(.7); } to { transform: scaleY(1.15); } }
  .bell-ring { transform-box: fill-box; transform-origin: center; animation: ringout 2.4s ease-out infinite; }
  .bell-ring.d { animation-delay: 1.2s; }
  @keyframes ringout { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
  .bell-sw { transform-box: fill-box; transform-origin: 50% 0; animation: bellsw 2.4s ease-in-out infinite; }
  @keyframes bellsw { 0%, 60%, 100% { rotate: 0deg; } 66% { rotate: 14deg; } 74% { rotate: -11deg; } 82% { rotate: 6deg; } }

  .author { padding-top: 110px; }
  .author-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px; border-radius: 28px; border: 1px solid rgba(255,166,48,.14);
    background: radial-gradient(80% 120% at 0% 50%, rgba(255,122,26,.12), transparent 60%), rgba(16,14,17,.9); }
  .author-card .pic { position: relative; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,138,31,.25), transparent 75%); display: grid; place-items: center; }
  .author-card .pic img { width: 82%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.6)); }
  .author-card p { color: #b3aba0; line-height: 1.65; max-width: 640px; margin: 14px 0 0; font-size: 16px; }
  .author-card p + p { margin-top: 12px; }
  .lead-pro { display: inline; padding: 0 7px; margin: 0 1px; border-radius: 7px; border: 1px solid rgba(255,166,48,.45); background: rgba(255,166,48,.1); color: #ffc35c; font: inherit; font-weight: 800; cursor: pointer; transition: background .25s, box-shadow .25s; }
  .lead-pro:hover { background: rgba(255,166,48,.2); box-shadow: 0 0 16px -4px rgba(255,166,48,.6); }
  body.landing.lp-teal .lead-pro { border-color: rgba(79,227,214,.45); background: rgba(79,227,214,.1); color: #a4f4ec; } body.landing.lp-teal .lead-pro:hover { background: rgba(79,227,214,.2); box-shadow: 0 0 16px -4px rgba(79,227,214,.6); } .author-card p b { color: #f3ede4; }
  .author-card .sign { margin-top: 18px; font: 800 15px var(--font-display); color: #f3ede4; }
  .author-card .sign span { color: #ff9a3c; }
  .author-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
  .author-links a, .author-links span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); color: #ece5da; font-weight: 700; font-size: 13px; text-decoration: none; background: rgba(255,255,255,.03); }
  .author-links a:hover { border-color: rgba(255,166,48,.45); }
  .author-links svg { width: 16px; height: 16px; }

  .l-final { position: relative; text-align: center; padding: 120px 24px 90px; display: flex; flex-direction: column; align-items: center; }
  .l-final img { width: 96px; filter: drop-shadow(0 0 30px rgba(255,122,26,.35)); margin-bottom: 20px; animation: float 7s ease-in-out infinite; }
  .l-final h2 { margin: 0 auto 14px; }
  .l-final p { color: #8f877c; margin: 0 0 28px; }
  .landing-foot { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1240px; margin: 0 auto; color: #6f685f; font-size: 12px; padding: 22px 24px 36px; border-top: 1px solid rgba(255,255,255,.06); }
  .landing-foot b { color: #a39a8e; font-family: var(--font-display); }
  .landing-foot b span { color: #ff9a3c; }

  @media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; padding-top: 100px; gap: 10px; min-height: 0; }
    .hero-art { max-width: 420px; order: -1; width: 86%; }
    .bento { grid-template-columns: 1fr 1fr; } .b-card, .b-card.wide { grid-column: span 2; }
    .author-card { grid-template-columns: 1fr; text-align: left; padding: 28px; gap: 20px; } .author-card .pic { width: 140px; }
  }
  @media (min-width: 640px) and (max-width: 980px) { .b-card { grid-column: span 1; } }
  @media (max-width: 520px) { .fc-gain { top: 2%; right: -6%; padding: 9px 11px; } .fc-vol { display: none; } .fc-chart { width: 54%; left: -6%; bottom: -10%; padding: 9px 11px; } .fc-chart canvas { height: 54px; } .fcard .v { font-size: 15px; } .hero-meta { gap: 20px; } .hero-art { margin-bottom: 30px; } }
  @media (prefers-reduced-motion: reduce) { .hero-bg, .tape-track, .hood, .fcard, .halo, .ring, .eye, .l-final img, .live-c, .bell-ring, .bell-sw { animation: none !important; } .reveal { animation: none; opacity: 1; transform: none; } }

  /* ---------- Вход / регистрация ---------- */
  .auth { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(6,6,9,.6); backdrop-filter: blur(10px); animation: fade .35s var(--ease); }
  @keyframes fade { from { opacity: 0; } }
  .auth-box { width: min(880px, 100%); display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -20px rgba(0,0,0,.7); animation: pop .5s var(--ease); }
  @keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
  .auth-art { position: relative; min-height: 460px; background: var(--bgimg) 70% 70% / 180% no-repeat; animation: drift 30s var(--ease) infinite alternate; }
  .auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,5,6,.9), rgba(5,5,6,.1) 60%); }
  .auth-art .txt { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; }
  .auth-art .txt b { display: block; font: 800 26px/1.1 var(--font-display); letter-spacing: -.02em; margin-bottom: 8px; }
  .auth-art .txt span { color: #c9c3ba; font-size: 14px; }
  .auth-form { padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
  .auth-tabs { display: flex; gap: 4px; background: var(--bg2); padding: 4px; border-radius: 12px; }
  .auth-tabs button { flex: 1; background: none; border: 0; padding: 9px; border-radius: 9px; color: var(--muted); font-weight: 700; cursor: pointer; transition: all .25s var(--ease); }
  .auth-tabs button.active { background: var(--panel2); color: var(--fg); }
  .auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
  .auth-form input { background: var(--bg2); color: var(--fg); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; font: inherit; font-size: 15px; outline: none; transition: border-color .2s; }
  .auth-form input:focus { border-color: var(--accent); }
  .auth-err { color: var(--down); font-size: 12px; min-height: 16px; }
  .auth-note { color: var(--muted); font-size: 12px; }
  .linkish { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; font-size: 13px; }
  .linkish:hover { color: var(--accent); }
  .x { position: absolute; right: 14px; top: 12px; background: none; border: 0; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
  .x:hover { color: var(--fg); background: var(--panel2); }
  @media (max-width: 720px) { .auth-box { grid-template-columns: 1fr; } .auth-art { min-height: 160px; } }

  /* ---------- Общие для разделов ---------- */
  #app { animation: fade .45s var(--ease); position: relative; z-index: 1; }
  .app-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1s var(--ease); }
  body.calm .app-bg { opacity: 1; }

  /* Главная в оформлении GrmScalp: бирюза вместо оранжевого */
  body.landing.lp-teal { --grad: linear-gradient(100deg, #a4f4ec 0%, #4fe3d6 45%, #19b8d6 100%); --accent: #4fe3d6; --accent-ink: #04161a; --accent-soft: rgba(79,227,214,.12); }
  body.landing.lp-teal #landing, body.landing.lp-teal .tour-box, body.landing.lp-teal .tour-vis, body.landing.lp-teal .b-card, body.landing.lp-teal .tape, body.landing.lp-teal .l-final, body.landing.lp-teal .hero-bg, body.landing.lp-teal .author-card { transition: background-color .5s ease, border-color .5s ease, color .5s ease; }
  body.landing.lp-teal #landing { background: #07090f; }
  body.landing.lp-teal .eyebrow { background: rgba(79,227,214,.06); border: 1px solid rgba(79,227,214,.2); }
  body.landing.lp-teal .hero-art .halo { background: radial-gradient(closest-side, rgba(25,190,214,.28), rgba(25,190,214,.07) 55%, transparent 75%); }
  body.landing.lp-teal .hero-art .ring { border: 1px dashed rgba(79,227,214,.14); }
  body.landing.lp-teal .hero-art .ring.r2 { border-color: rgba(79,227,214,.07); }
  body.landing.lp-teal .hood .eye { background: radial-gradient(closest-side, rgba(160,240,235,.75), rgba(25,170,214,.35) 50%, transparent); }
  body.landing.lp-teal .tape { border-block: 1px solid rgba(79,227,214,.1); }
  body.landing.lp-teal .kicker { color: #5fd8d0; }
  body.landing.lp-teal .b-card:hover { border-color: rgba(79,227,214,.3); }
  body.landing.lp-teal .b-card .badge { background: rgba(79,227,214,.12); color: #7eeee4; }
  body.landing.lp-teal .b-card:focus-visible { border-color: rgba(79,227,214,.6); }
  body.landing.lp-teal .b-card::after { background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(79,227,214,.09), transparent 45%); }
  body.landing.lp-teal .b-card .more { color: #4fe3d6; }
  body.landing.lp-teal .fcard[data-feat]:hover { border-color: rgba(79,227,214,.45); }
  body.landing.lp-teal .tour-box { background: #0d1117; border: 1px solid rgba(79,227,214,.16); }
  body.landing.lp-teal .tour-vis { background: radial-gradient(90% 70% at 50% 40%, rgba(25,170,214,.08), transparent 70%), #080b10; }
  body.landing.lp-teal .tour-dots button.on { background: #4fe3d6; }
  body.landing.lp-teal .tour-body li::before { background: #4fe3d6; box-shadow: 0 0 10px rgba(79,227,214,.6); }
  body.landing.lp-teal .tour-body ol li::before { color: #04161a; }
  body.landing.lp-teal .tour-th button:hover { border-color: rgba(79,227,214,.45); }
  body.landing.lp-teal .tour-th button.on { border-color: #4fe3d6; background: rgba(79,227,214,.1); }
  body.landing.lp-teal .tour-th small { color: #7eeee4; }
  body.landing.lp-teal .tour-x:hover { border-color: rgba(79,227,214,.5); }
  body.landing.lp-teal .mini-grid > div:nth-child(5) { border-color: rgba(79,227,214,.4); box-shadow: inset 0 0 20px rgba(25,190,214,.12); }
  body.landing.lp-teal .author-card .pic { background: radial-gradient(closest-side, rgba(25,190,214,.25), transparent 75%); }
  body.landing.lp-teal .author-card .sign span { color: #3fd6e6; }
  body.landing.lp-teal .author-links a:hover { border-color: rgba(79,227,214,.45); }
  body.landing.lp-teal .l-final img { filter: drop-shadow(0 0 30px rgba(25,170,214,.35)); }
  body.landing.lp-teal .landing-foot b span { color: #3fd6e6; }
  body.landing.lp-teal .tour-th small.free { color: #4fe3d6; }
  body.landing.lp-teal .hero-bg { filter: saturate(.8) hue-rotate(170deg); }
  body.landing.lp-teal .eyebrow { color: #9fe9e2; }
  body.landing.lp-teal .hero-shade { background: radial-gradient(60% 55% at 72% 42%, rgba(25,170,214,.13), transparent 70%), linear-gradient(90deg, rgba(7,9,15,.95) 0%, rgba(7,9,15,.6) 40%, rgba(7,9,15,.15) 70%, rgba(7,9,15,.5) 100%); }
  body.landing.lp-teal .author-card { border-color: rgba(79,227,214,.14); background: radial-gradient(80% 120% at 0% 50%, rgba(25,170,214,.12), transparent 60%), rgba(13,16,22,.9); }
  body.landing.lp-teal .hero-bg, body.landing.lp-teal .hero-shade, body.landing.lp-teal #landing { transition: filter .6s ease, background .6s ease; }
  .lp-th { position: relative; display: inline-flex; padding: 3px; gap: 0; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); margin-right: 10px; backdrop-filter: blur(8px); }
  .lp-th button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border: 0; background: none; color: #a39a8e; font: 700 12.5px var(--font-ui); cursor: pointer; border-radius: 9px; transition: color .35s ease; }
  .lp-th button i { width: 11px; height: 11px; border-radius: 50%; transition: box-shadow .35s ease, transform .35s var(--ease); }
  .lp-th button[data-lpth="ember"] i { background: linear-gradient(135deg, #ffc35c, #ff7a1a); }
  .lp-th button[data-lpth="author"] i { background: linear-gradient(135deg, #a4f4ec, #19b8d6); }
  .lp-th button.on { color: #f3ede4; } .lp-th button.on i { transform: scale(1.15); box-shadow: 0 0 10px currentColor; }
  .lp-th button[data-lpth="ember"].on i { color: #ffa630; } .lp-th button[data-lpth="author"].on i { color: #4fe3d6; }
  .lp-th button:hover { color: #f3ede4; }
  .lp-th .knob { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 9px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,166,48,.35); transition: transform .45s var(--ease), width .45s var(--ease), box-shadow .45s ease; }
  body.lp-teal .lp-th .knob { box-shadow: inset 0 0 0 1px rgba(79,227,214,.4); }
  .lp-th small { position: absolute; right: 0; top: calc(100% + 6px); font: 600 10.5px var(--font-ui); color: #8a8278; white-space: nowrap; opacity: 0; transform: translateY(-3px); transition: opacity .3s, transform .3s; pointer-events: none; }
  .lp-th:hover small { opacity: 1; transform: none; }
  body:not(.landing) .lp-th { display: none; }
  @media (max-width: 560px) { .lp-th button span { display: none; } .lp-th button { padding: 6px 8px; } }

  body.landing .app-bg { display: none; }
  .app-bg-img { position: absolute; inset: -5%; background: var(--bgimg) center 65% / cover no-repeat; opacity: .55; animation: drift 46s var(--ease) infinite alternate;
    -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 45%, transparent 0%, rgba(0,0,0,.25) 45%, #000 100%); mask-image: radial-gradient(ellipse 55% 60% at 50% 45%, transparent 0%, rgba(0,0,0,.25) 45%, #000 100%); }
  #appFx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 29; pointer-events: none; transition: opacity .8s var(--ease); }
  body.landing #appFx, body.no-decor #appFx { opacity: 0; }
  body.glass #appFx { z-index: 0; }
  /* матовое стекло: окна полупрозрачные и размывают то, что летит позади */
  body.glass .upd, body.glass .card, body.glass .kpi, body.glass .doc-body, body.glass .doc-card, body.glass .doc-ex div,
  body.glass .news-box { background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%), color-mix(in srgb, var(--panel) 70%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15); }
  body.glass .upd .cover { background: radial-gradient(130% 120% at 100% 0%, var(--accent-soft), transparent 58%), linear-gradient(160deg, color-mix(in srgb, var(--panel2) 65%, transparent), color-mix(in srgb, var(--bg2) 55%, transparent)); }
  body.glass .ltable tr.day td { background: color-mix(in srgb, var(--bg2) 60%, transparent); }
  body.glass .chip:not(.active) { background: color-mix(in srgb, var(--panel) 70%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  #appDecor .sakura { position: absolute; opacity: .7; animation: sway 10s ease-in-out infinite alternate; }
  #appDecor .sakura.tl { top: 30px; left: -40px; width: min(46vw, 680px); transform-origin: 0 10%; }
  #appDecor .sakura.br { bottom: -30px; right: -40px; width: min(42vw, 620px); transform: scale(-1, -1); transform-origin: 50% 50%; animation-duration: 12s; animation-delay: -5s; opacity: .62; }
  @keyframes sway { from { rotate: -1.1deg; } to { rotate: 1.3deg; } }
  @media (prefers-reduced-motion: reduce) { #appDecor .sakura { animation: none; } }
  :root[data-theme="light"] .app-bg-img { filter: invert(1) hue-rotate(180deg) saturate(1.2); opacity: .35; }
  @media (prefers-reduced-motion: reduce) { .app-bg-img { animation: none; } }
  .view { padding: 14px 16px 24px; }
  .view-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
  .view-head h2 { margin: 0; font: 800 20px var(--font-display); letter-spacing: -.01em; }
  .chips { display: flex; gap: 6px; flex-wrap: wrap; }
  .chip { background: var(--panel); border: 1px solid var(--line); color: var(--muted); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; transition: all .2s; }
  .chip:hover { color: var(--fg); }
  .chip.active { background: var(--grad); border-color: transparent; color: var(--accent-ink); }
  .tf { background: transparent; border: 0; color: var(--muted); padding: 3px 7px; border-radius: 6px; cursor: pointer; font: 600 11px var(--font-num); transition: all .2s; }
  .tf:hover { color: var(--fg); }
  .tf.active { color: var(--accent-ink); background: var(--grad); }
  input.field, select.field { background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; font: inherit; outline: none; min-width: 0; }
  input.field:focus, select.field:focus { border-color: var(--accent); }
  .empty { padding: 40px; text-align: center; color: var(--muted); }
  .ibtn { width: 26px; height: 26px; display: grid; place-items: center; background: none; border: 0; border-radius: 7px; color: var(--muted); cursor: pointer; flex: none; }
  .ibtn:hover { color: var(--accent); background: var(--panel2); }
  .ibtn svg { width: 15px; height: 15px; }
  .gc { display: block; touch-action: none; }

  /* ---------- Скринер ---------- */
  .view[data-view="screener"] { padding: 10px 10px 10px; }
  .grid { display: grid; grid-template-columns: repeat(var(--gc, 3), minmax(0, 1fr)); grid-template-rows: repeat(var(--gr, 3), minmax(0, 1fr)); gap: 8px; height: calc(100vh - 58px - 72px); min-height: 520px; }
  .mini.big { grid-column: span 2; grid-row: span 2; }
  .scr-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 2px 2px 10px; }
  .scr-title { display: flex; align-items: center; gap: 10px; }
  .scr-title h2 { margin: 0; font: 800 20px var(--font-display); letter-spacing: -.01em; }
  .scr-live { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--font-num); color: var(--muted); }
  .scr-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: livep 2.4s infinite; }
  @keyframes livep { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
  .scr-modes { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
  .scr-modes button { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; color: var(--muted); font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 9px; cursor: pointer; transition: color .2s, background .2s; }
  .scr-modes button svg { width: 15px; height: 15px; }
  .scr-modes button:hover { color: var(--fg); }
  .scr-modes button.active { background: var(--accent-soft); color: var(--fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
  .scr-modes button.active svg { color: var(--accent); }
  .scr-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
  .coin-ic { display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #fff; font-family: var(--font-ui); font-weight: 800; letter-spacing: -.02em; line-height: 1; vertical-align: middle; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 1px 3px rgba(0,0,0,.35); text-shadow: 0 1px 1px rgba(0,0,0,.35); margin-right: 8px; }
  .ex-ic { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 8px; background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--exc) 22%, #16151a), #0e0d11 70%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--exc) 45%, transparent), 0 2px 6px -2px rgba(0,0,0,.6); vertical-align: middle; }
  .ex-ic::before { content: ""; position: absolute; left: 22%; right: 22%; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: var(--exc); opacity: .9; }
  .ex-ic b { font-family: var(--font-display); font-weight: 800; color: var(--exc); line-height: 1; letter-spacing: -.04em; }
  .ex-ic i { position: absolute; right: -4px; bottom: -4px; font: 800 7.5px/1 var(--font-num); font-style: normal; padding: 2px 3px; border-radius: 4px; background: var(--exc); color: #111; box-shadow: 0 0 0 2px var(--panel); }
  .scr-ex { position: relative; }
  .scr-ex-btn { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--fg); font-weight: 700; font-size: 13px; cursor: pointer; transition: border-color .25s, box-shadow .25s; }
  .scr-ex-btn:hover, .scr-ex.open .scr-ex-btn { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 16px -6px color-mix(in srgb, var(--accent) 55%, transparent); }
  .scr-ex-btn .lg { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font: 800 10px var(--font-num); color: #111; }
  .scr-ex-btn small { display: block; font: 600 10px var(--font-ui); color: var(--muted); line-height: 1.1; text-align: left; }
  .scr-ex-btn .nm { line-height: 1.15; text-align: left; }
  .scr-ex-btn svg { width: 12px; height: 12px; color: var(--muted); transition: rotate .25s; } .scr-ex.open .scr-ex-btn svg { rotate: 180deg; }
  .scr-ex-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 230px; padding: 6px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 20px 40px -18px rgba(0,0,0,.7); animation: rise .25s var(--ease); }
  .scr-ex-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; background: none; border: 0; color: var(--fg); font-weight: 600; font-size: 13px; cursor: pointer; text-align: left; }
  .scr-ex-menu button:hover { background: var(--panel2); } .scr-ex-menu button.on { background: var(--accent-soft); }
  .scr-ex-menu .lg { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font: 800 9px var(--font-num); color: #111; }
  .scr-ex-menu .more { color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; margin-top: 4px; }
  .scr-layouts { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
  .lay-ic { display: grid; gap: 2px; width: 22px; height: 16px; }
  .lay-ic i { background: currentColor; border-radius: 1.5px; opacity: .55; }
  .lay-ic i.b { opacity: .9; }
  .scr-layouts button { background: none; border: 0; color: var(--muted); padding: 6px 8px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
  .scr-layouts button.active { background: var(--accent-soft); color: var(--accent); }
  .ss-layouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .ss-lay { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-weight: 700; font-size: 12.5px; cursor: pointer; transition: all .2s; }
  .ss-lay .lay-ic { width: 54px; height: 38px; gap: 3px; }
  .ss-lay:hover { color: var(--fg); }
  .ss-lay.on { border-color: var(--accent); background: var(--accent-soft); color: var(--fg); }
  .ss-lay.on .lay-ic { color: var(--accent); }
  .mini-info { position: absolute; left: 8px; top: 8px; z-index: 2; pointer-events: none; display: flex; flex-direction: column; gap: 5px; padding: 6px 8px; border-radius: 10px; background: color-mix(in srgb, var(--panel) 78%, transparent); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); backdrop-filter: blur(6px); max-width: calc(100% - 90px); }
  .mi-chips { display: flex; gap: 10px; flex-wrap: wrap; font: 600 11px var(--font-num); color: var(--fg); white-space: nowrap; }
  .mi-chips span { display: inline-flex; align-items: center; gap: 4px; }
  .mi-chips svg { width: 11px; height: 11px; color: var(--muted); }
  .mi-range { display: flex; align-items: center; gap: 6px; font: 600 9.5px var(--font-num); color: var(--muted); }
  .mi-range i { position: relative; flex: 1; min-width: 70px; height: 4px; border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--down, #f2555f) 55%, transparent), color-mix(in srgb, var(--fg) 18%, transparent), color-mix(in srgb, var(--up, #2bc98a) 55%, transparent)); }
  .mi-range i b { position: absolute; top: 50%; width: 8px; height: 8px; border-radius: 50%; translate: -50% -50%; background: var(--fg); box-shadow: 0 0 0 2px var(--panel); transition: left .6s var(--ease); }
  .mini .mini-chg { font-weight: 600; }
  .chg-pill { font: 700 11px var(--font-num); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
  .chg-pill.up { background: color-mix(in srgb, var(--up, #2bc98a) 16%, transparent); color: var(--up, #2bc98a); }
  .chg-pill.down { background: color-mix(in srgb, var(--down, #f2555f) 16%, transparent); color: var(--down, #f2555f); }
  .scr-hide-tfs .mini:not(.expanded) .tfs { display: none; }
  .nav-pro { display: inline-flex; align-items: center; gap: 3px; font: 800 8.5px/1 var(--font-num); font-style: normal; letter-spacing: .06em; padding: 3px 6px 3px 5px; border-radius: 999px; background: var(--grad); color: var(--accent-ink); margin-left: 3px; vertical-align: 1px; box-shadow: 0 2px 8px -3px var(--accent); }
  .nav-pro::before { content: '★'; font-size: 8px; opacity: .85; }
  .nav-pro { opacity: .82; } .th-item .nav-pro { opacity: .72; } .th-item:hover .nav-pro, .th-item.active .nav-pro, .ttab.active .nav-pro { opacity: .9; }
  .nav-pro-tab { display: inline-flex; align-items: center; gap: 5px; } .nav-pro-tab svg { color: var(--accent); }
  .pro-head { text-align: center; padding: 10px 0 40px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
  .pro-head h2 { font: 800 clamp(30px, 4vw, 52px)/1.05 var(--font-display); letter-spacing: -.03em; margin: 10px 0 12px; }
  .pro-head > p { max-width: 640px; margin: 0 auto 24px; color: var(--fg2, var(--muted)); line-height: 1.6; }
  .pro-buy { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 24px auto 0; width: 100%; grid-column: 1 / -1; justify-self: stretch; } .pro-buy .btn { display: inline-flex !important; flex-direction: row !important; align-items: center; justify-content: center; } .pro-buy span { color: var(--muted); font-size: 13px; } .pro-buy .btn { gap: 9px; animation: buyGlow 3.2s ease-in-out infinite; }
  @keyframes buyGlow { 50% { box-shadow: 0 0 0 0 transparent, 0 10px 34px -8px var(--accent); } }
  .pro-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 860px; margin: 0 auto; text-align: left; }
  .pro-tile { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
  .pro-tile.on { border-color: var(--accent); background: radial-gradient(90% 120% at 0% 0%, var(--accent-soft), transparent 70%), var(--panel); box-shadow: 0 0 0 1px var(--accent), 0 14px 30px -18px color-mix(in srgb, var(--accent) 50%, transparent); }
  .pro-head { position: sticky; top: 58px; z-index: 6; } .pro-head { position: static; }
  .pro-th { cursor: pointer; }
  .pro-tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--accent) 50%, transparent); }
  .pro-tile .ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); } .pro-tile .ic svg { width: 22px; height: 22px; }
  .pro-tile b { font-size: 15px; display: block; } .pro-tile span { font-size: 12.5px; color: var(--muted); }
  .pro-tile em { grid-column: 2; font: 700 10.5px var(--font-ui); font-style: normal; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
  .pro-themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  @media (max-width: 1150px) { .pro-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .pro-free { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, var(--panel)); font-size: 13.5px; }
  .pro-free > span { flex: 1; min-width: 220px; color: var(--fg2, var(--muted)); } .pro-free b { color: var(--fg); }
  .pro-free .btn { gap: 8px; } .pro-free .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 10px currentColor; }
  /* Pro: алерты в Telegram */
  .pro-tile.wide { grid-column: 1 / -1; grid-template-columns: 44px minmax(0, 1fr) auto; }
  .pro-tile.wide em { grid-column: 2; } .pro-tile .pt-ex { grid-column: 3; grid-row: 1 / span 2; display: flex; gap: 6px; }
  .pro-tile .pt-ex .ex-ic { transition: transform .35s var(--ease); } .pro-tile:hover .pt-ex .ex-ic { transform: translateY(-2px); } .pro-tile:hover .pt-ex .ex-ic:nth-child(2) { transition-delay: .04s; } .pro-tile:hover .pt-ex .ex-ic:nth-child(3) { transition-delay: .08s; } .pro-tile:hover .pt-ex .ex-ic:nth-child(4) { transition-delay: .12s; }
  @media (max-width: 700px) { .pro-tile .pt-ex { display: none; } .pro-tile.wide { grid-template-columns: 44px minmax(0, 1fr); } }
  .ex-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .exb { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; opacity: 0; }
  .exb.in { animation: exIn .8s cubic-bezier(.2,.8,.2,1) both; } .exb.in:nth-child(even) { animation-name: exInR; }
  @keyframes exIn { from { opacity: 0; transform: translateX(-28px) scale(.97); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes exInR { from { opacity: 0; transform: translateX(28px) scale(.97); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
  .exb.in .st { animation: exSt .5s var(--ease) both; animation-delay: inherit; } @keyframes exSt { from { opacity: 0; transform: scale(.8); } }
  @media (prefers-reduced-motion: reduce) { .exb { opacity: 1; } .exb.in { animation: none; } }
  .exb:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--exc) 45%, var(--line)); box-shadow: 0 16px 30px -20px var(--exc); }
  .exb::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--exc) 22%, transparent), transparent); opacity: .5; transition: opacity .35s; } .exb:hover::after { opacity: 1; }
  .exb b { display: block; font-size: 15px; } .exb small { color: var(--muted); font-size: 12px; }
  .exb .st { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px var(--font-num); text-transform: uppercase; letter-spacing: .04em; padding: 4px 8px; border-radius: 7px; white-space: nowrap; }
  .exb .st.free { color: var(--up, #2bc98a); background: color-mix(in srgb, var(--up, #2bc98a) 12%, transparent); } .exb .st.free i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: tgPulse 1.8s ease-in-out infinite; }
  .exb .st.pro { color: var(--accent); background: var(--accent-soft); }
  .exb.soon { border-style: dashed; } .exb.soon .ex-ic { filter: saturate(.8); }
  @media (max-width: 560px) { .ex-board { grid-template-columns: 1fr; } }
  .pro-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
  .pro-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 9px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: 700 13px var(--font-ui); cursor: pointer; transition: color .25s, border-color .25s, background .25s, transform .25s var(--ease), box-shadow .25s; }
  .pro-chip i { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--bg2); transition: background .25s, color .25s; } .pro-chip i svg { width: 14px; height: 14px; }
  .pro-chip:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--fg); }
  .pro-chip.on { color: var(--fg); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); box-shadow: 0 8px 22px -14px var(--accent); }
  .pro-chip.on i { background: var(--accent); color: var(--accent-ink, #fff); }
  .pro-chip:active { transform: scale(.97); }
  .tg-phone { position: relative; padding: 0; overflow: hidden; border-radius: 22px; max-width: 460px; width: 100%; justify-self: center; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--accent) 60%, transparent); }
  .tg-top { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--panel2); }
  .tg-ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent)); color: var(--accent-ink, #fff); flex: none; box-shadow: 0 0 0 3px var(--accent-soft); }
  .tg-ava svg { width: 19px; height: 19px; }
  .tg-top b { display: block; font-size: 14.5px; } .tg-top small { color: var(--accent); font-size: 12px; font-weight: 600; }
  .tg-top small i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; animation: tgPulse 1.8s ease-in-out infinite; }
  @keyframes tgPulse { 50% { opacity: .3; } }
  .tg-feed { height: 400px; display: flex; flex-direction: column; justify-content: flex-end; gap: 0; padding: 0 14px 14px; overflow: hidden; background: radial-gradient(120% 70% at 100% 0%, var(--accent-soft), transparent 60%), var(--bg2); -webkit-mask-image: linear-gradient(transparent, #000 70px); mask-image: linear-gradient(transparent, #000 70px); }
  .tg-phone.card, .ai-chat.card { padding: 0; }
  .tg-msg, .tg-typing, .ai-u, .ai-a { flex: none; }
  .tg-msg { align-self: flex-start; max-width: 88%; margin-top: 10px; padding: 10px 12px 8px; border-radius: 4px 14px 14px 14px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; line-height: 1.45; animation: tgIn .6s var(--ease) both; overflow: hidden; }
  .tg-msg .h { display: flex; align-items: center; gap: 7px; font: 800 12px var(--font-ui); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; color: var(--accent); }
  .tg-msg .h i { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--accent-soft); } .tg-msg .h i svg { width: 12px; height: 12px; }
  .tg-msg .m { color: var(--fg2, var(--fg)); } .tg-msg .m b { color: var(--fg); }
  .tg-msg .ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
  .tg-msg .ft time { font: 600 11px var(--font-num); color: var(--muted); }
  .tg-btn { border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); color: var(--accent); font: 700 12px var(--font-ui); padding: 5px 10px; border-radius: 8px; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
  .tg-btn:hover { background: var(--accent); color: var(--accent-ink, #fff); transform: translateY(-1px); }
  .tg-typing { align-self: flex-start; margin-top: 10px; padding: 11px 14px; border-radius: 4px 14px 14px 14px; background: var(--panel); border: 1px solid var(--line); display: flex; gap: 4px; animation: tgIn .35s var(--ease) both; }
  .tg-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: tgDot 1s ease-in-out infinite; } .tg-typing span:nth-child(2) { animation-delay: .15s; } .tg-typing span:nth-child(3) { animation-delay: .3s; }
  @keyframes tgDot { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-3px); opacity: 1; } }
  @keyframes tgIn { from { opacity: 0; transform: translateY(14px) scale(.97); max-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; } 60% { opacity: 1; } to { opacity: 1; transform: none; max-height: 220px; } }
  .tg-empty { margin: auto; color: var(--muted); font-size: 13px; text-align: center; animation: tgIn .4s both; }
  .pro-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
  .pro-step { position: relative; padding: 20px 20px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; overflow: hidden; }
  .pro-step:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 16px 34px -20px color-mix(in srgb, var(--accent) 55%, transparent); }
  .pro-step em { font: 800 34px/1 var(--font-display); font-style: normal; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 60%, transparent); }
  .pro-step b { display: block; margin: 10px 0 6px; font-size: 15px; } .pro-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
  .pro-step::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-soft), transparent); opacity: 0; transition: opacity .4s; } .pro-step:hover::after { opacity: 1; }
  @media (max-width: 800px) { .pro-steps { grid-template-columns: 1fr; } }
  /* Pro: ИИ-помощник */
  .ai-chat { padding: 0; overflow: hidden; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--accent) 60%, transparent); }
  .ai-feed { height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: radial-gradient(100% 60% at 0% 0%, var(--accent-soft), transparent 60%), var(--bg2); scrollbar-width: thin; }
  .ai-u { align-self: flex-end; max-width: 80%; padding: 9px 13px; border-radius: 14px 4px 14px 14px; background: var(--accent); color: var(--accent-ink, #fff); font-weight: 700; font-size: 13px; animation: tgIn .45s var(--ease) both; }
  .ai-a { align-self: flex-start; max-width: 92%; padding: 11px 14px; border-radius: 4px 14px 14px 14px; background: var(--panel); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; animation: tgIn .45s var(--ease) both; }
  .ai-a b { color: var(--fg); } .ai-a .w { opacity: 0; animation: aiW .35s ease forwards; }
  @keyframes aiW { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: none; } }
  .ai-bars { display: grid; gap: 6px; margin-top: 10px; }
  .ai-bar { display: grid; grid-template-columns: 130px minmax(0, 1fr) 70px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
  .ai-bar s { display: block; height: 7px; border-radius: 4px; background: var(--bg2); text-decoration: none; overflow: hidden; } .ai-bar s i { display: block; height: 100%; width: 0; border-radius: 4px; transition: width 1s var(--ease); }
  .ai-bar b { font: 700 12px var(--font-num); text-align: right; }
  .ai-qs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
  .ai-q { border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: 700 13px var(--font-ui); padding: 9px 13px; border-radius: 999px; cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease), box-shadow .25s; }
  .ai-q:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 8px 20px -14px var(--accent); }
  .ai-q.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
  .ai-q:disabled { opacity: .5; cursor: default; transform: none; }
  .ai-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
  .ai-card { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; cursor: pointer; }
  .ai-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 16px 34px -20px color-mix(in srgb, var(--accent) 55%, transparent); }
  .ai-card span { font: 700 11px var(--font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } .ai-card b { display: block; font: 800 19px var(--font-display); margin: 8px 0 4px; } .ai-card p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
  .ai-card s { display: block; height: 6px; border-radius: 3px; background: var(--bg2); overflow: hidden; text-decoration: none; } .ai-card s i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width 1.2s var(--ease); }
  .ai-note { margin-top: 10px; font-size: 12px; color: var(--muted); }
  @media (max-width: 800px) { .ai-cards { grid-template-columns: 1fr; } .ai-bar { grid-template-columns: 96px minmax(0, 1fr) 60px; } }
  .pro-th { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
  .pro-th:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 16px 34px -18px color-mix(in srgb, var(--accent) 50%, transparent); }
  .pro-th.on { border-color: var(--accent); }
  .pro-th .pv { position: relative; height: 130px; overflow: hidden; }
  .pro-th .pv svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .pro-th .pv-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
  .pro-th.fx-on .pv-fx { opacity: 1; }
  .pro-th .bd { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
  .pro-th .bd div { flex: 1; min-width: 0; } .pro-th b { display: block; font-size: 14.5px; } .pro-th small { font-size: 12px; color: var(--muted); }
  .pro-th button { flex: none; }
  @media (max-width: 700px) { .pro-tiles { grid-template-columns: 1fr; } }
  .jr-wrap { max-width: 1240px; margin: 0 auto; padding: 30px 8px 60px; }
  .jr-cta { display: flex; gap: 10px; flex-wrap: wrap; }
  .jr-safe { display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 34px; padding: 22px 24px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--up, #2bc98a) 35%, var(--line)); background: radial-gradient(70% 140% at 0% 50%, color-mix(in srgb, var(--up, #2bc98a) 10%, transparent), transparent 60%), var(--panel); }
  .jr-safe-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--up, #2bc98a); background: color-mix(in srgb, var(--up, #2bc98a) 14%, transparent); }
  .jr-safe-ic svg { width: 30px; height: 30px; }
  .jr-safe h3 { margin: 0 0 6px; font: 800 19px var(--font-display); }
  .jr-safe p { margin: 0; color: var(--fg2, var(--muted)); line-height: 1.55; font-size: 14px; }
  .jr-safe-list { display: grid; gap: 8px; font-size: 13.5px; font-weight: 600; }
  .jr-safe-list div { display: flex; align-items: center; gap: 9px; padding: 6px 10px; margin: -2px -10px; border-radius: 10px; transition: background .3s var(--ease), box-shadow .3s var(--ease); }
  .jr-safe-list div:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: 0 0 18px -4px color-mix(in srgb, var(--accent) 45%, transparent); }
  .jr-safe-list i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; flex: none; }
  .jr-safe-list .ok { background: color-mix(in srgb, var(--up, #2bc98a) 18%, transparent); color: var(--up, #2bc98a); }
  .jr-safe-list .no { background: color-mix(in srgb, var(--down, #f2555f) 16%, transparent); color: var(--down, #f2555f); }
  .jr-sec { margin-top: 56px; }
  .jr-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
  .jr-sec-head h3 { margin: 8px 0 0; font: 800 clamp(20px, 2.2vw, 28px)/1.15 var(--font-display); letter-spacing: -.02em; }
  .jr-demo-note { display: inline-block; font: 600 11px var(--font-ui); letter-spacing: .02em; color: var(--muted); padding: 3px 8px; border-radius: 6px; border: 1px dashed var(--line2, var(--line)); margin-bottom: 14px; }
  .jr-seg { display: flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); }
  .jr-seg button { background: none; border: 0; color: var(--muted); font-weight: 700; font-size: 13px; padding: 7px 13px; border-radius: 8px; cursor: pointer; }
  .jr-seg button.active { background: var(--accent-soft); color: var(--fg); }
  .jr-seg.sm button { padding: 6px 10px; font-size: 12.5px; }
  .jr-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
  .jr-kpi { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
  .jr-kpi span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
  .jr-kpi b { display: block; font: 800 24px var(--font-display); letter-spacing: -.02em; margin-top: 4px; }
  .jr-kpi small { font: 500 12px var(--font-ui); color: var(--muted); }
  .jr-kpi b span { font: inherit; color: inherit; }
  .jr-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
  .jr-card { padding: 14px 16px; margin: 0; min-width: 0; }
  .jr-wide { grid-column: span 2; }
  .jr-ch { font-weight: 700; font-size: 13.5px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; }
  .jr-ch .muted { font: 600 12px var(--font-ui); }
  .jr-cv { width: 100%; height: 200px; display: block; }
  .jr-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .jr-cal div { aspect-ratio: 1.2; border-radius: 6px; display: flex; flex-direction: column; justify-content: center; align-items: center; font: 600 10px var(--font-num); color: var(--muted); background: var(--bg2); }
  .jr-cal div b { font-size: 10px; } .jr-cal .dn { background: none; font-size: 9.5px; aspect-ratio: auto; padding-bottom: 2px; }
  .jr-coins, .jr-sides { display: flex; flex-direction: column; gap: 7px; }
  .jr-coin { display: grid; grid-template-columns: 64px 1fr 70px; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 700; }
  .jr-coin i { height: 8px; border-radius: 4px; display: block; }
  .jr-coin span:last-child { text-align: right; }
  .jr-side-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 6px 0 12px; }
  .jr-side-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-top: 1px solid var(--line); }
  .jr-side-row b { font-weight: 700; }
  .jr-trades { padding: 0; overflow-x: auto; margin: 0; }
  .jr-table { width: 100%; border-collapse: collapse; }
  .jr-table th { text-align: left; font: 700 11.5px var(--font-ui); letter-spacing: .02em; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
  .jr-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13px; white-space: nowrap; }
  #jrRows td, .jrt-fills td { font-family: var(--font-ui); }
  #jrRows tr { cursor: pointer; transition: background .15s; } #jrRows tr:hover td { background: var(--panel2); }
  .jr-res { font: 700 12px var(--font-ui); padding: 3px 8px; border-radius: 999px; }
  .jr-res.up { background: color-mix(in srgb, var(--up, #2bc98a) 16%, transparent); color: var(--up, #2bc98a); }
  .jr-res.down { background: color-mix(in srgb, var(--down, #f2555f) 16%, transparent); color: var(--down, #f2555f); }
  .jr-tag2 { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--line); color: var(--fg2, var(--muted)); }
  .jr-share { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
  .jr-share-opts { display: flex; flex-direction: column; gap: 16px; }
  .jr-opt b { display: block; font-size: 13px; margin-bottom: 8px; }
  .jr-checks { display: grid; gap: 7px; font-size: 13px; } .jr-checks input { accent-color: var(--accent); margin-right: 8px; }
  .jr-share-prev { display: grid; place-items: center; padding: 20px; border-radius: 18px; background: repeating-linear-gradient(45deg, var(--bg2), var(--bg2) 10px, transparent 10px, transparent 20px), var(--panel); border: 1px solid var(--line); min-height: 380px; }
  .jr-card-prev { width: min(100%, 620px); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
  .jr-card-prev.story { width: 250px; aspect-ratio: 9 / 16; } .jr-card-prev.sq { width: 380px; aspect-ratio: 1; }
  .jr-share-prev { transition: border-color .35s var(--ease), box-shadow .35s var(--ease); }
  .jr-share-prev:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 0 40px -12px color-mix(in srgb, var(--accent) 45%, transparent); }
  .jr-card-prev { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
  .jr-card-prev.swap { animation: cardIn .35s var(--ease); }
  @keyframes cardIn { from { opacity: 0; transform: scale(.97); } }
  .jr-card-prev:hover { transform: scale(1.015); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 36px -8px color-mix(in srgb, var(--accent) 50%, transparent); }
  .jr-seg button { transition: background .25s, color .25s, box-shadow .25s; }
  .jr-seg button:hover { color: var(--fg); box-shadow: 0 0 14px -4px color-mix(in srgb, var(--accent) 55%, transparent); }
  .jr-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 16px; }
  .jr-notes div { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; row-gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
  .jr-notes div:hover { transform: translateY(-2px) scale(1.012); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--accent) 45%, transparent); }
  .jr-notes svg { width: 20px; height: 20px; color: var(--accent); grid-row: span 2; margin-top: 1px; }
  .jr-notes b { font-size: 13.5px; } .jr-notes span { font-size: 12.5px; color: var(--muted); }
  .jr-open { color: var(--accent); font-weight: 700; font-size: 12.5px; text-align: right; opacity: .6; transition: opacity .2s; }
  #jrRows tr:hover .jr-open { opacity: 1; }
  @media (max-width: 900px) { .jr-notes { grid-template-columns: 1fr 1fr; } }
  .jr-card-prev canvas { width: 100%; height: 100%; display: block; }
  .jr-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
  .jr-tool { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
  .jr-tool svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
  .jr-kpi, .jr-card, .jr-points div, .jr-tool, .jr-safe, .jr-vis, .jr-trades, .jr-final { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
  .jr-kpi:hover, .jr-card:hover, .jr-tool:hover, .jr-vis:hover, .jr-final:hover { transform: translateY(-2px) scale(1.012); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: 0 16px 34px -18px color-mix(in srgb, var(--accent) 40%, transparent); }
  .jr-safe:hover, .jr-trades:hover { transform: scale(1.006); }
  .jr-final { margin-top: 56px; text-align: center; padding: 34px 20px; }
  .jr-final h3 { margin: 0 0 8px; font: 800 24px var(--font-display); }
  .jr-final p { margin: 0 auto 16px; max-width: 520px; }
  .jr-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 520px; margin: 0 auto; }
  .jr-field { flex: 1 1 240px; display: flex; align-items: center; gap: 2px; padding: 0 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
  .jr-field:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
  .jr-field.bad { border-color: var(--down, #f2555f); }
  .jr-field span { color: var(--muted); font-weight: 700; }
  .jr-field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--fg); font: 600 14px var(--font-ui); padding: 11px 2px; }
  .jr-form-msg { font-size: 12.5px; margin-top: 10px; min-height: 18px; color: var(--muted); }
  .jr-form-msg.ok { color: var(--up, #2bc98a); } .jr-form-msg.err { color: var(--down, #f2555f); }
  .jr-wait { display: inline-flex; align-items: baseline; gap: 8px; margin: 0 auto 18px; padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
  .jr-wait { align-items: center !important; gap: 6px !important; padding: 7px 14px !important; }
  .jr-wait b { font: 800 14px var(--font-ui); color: var(--accent); } .jr-wait span { font-size: 13.5px; font-weight: 600; } .jr-final .jr-wait + .btn { display: block; margin: 0 auto; }
  .jrt-box { position: relative; width: min(1720px, 100%); height: min(calc(100vh - 32px), 780px); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; color: var(--fg); animation: tourIn .4s var(--ease); }
  .lp-box { position: relative; width: min(1180px, 100%); height: min(calc(100vh - 32px), 720px); display: flex; flex-direction: column; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; color: var(--fg); animation: tourIn .4s var(--ease); }
  .lp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-right: 44px; }
  .lp-head h3 { margin: 0; font: 800 22px var(--font-display); }
  .lp-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lp-chart { position: relative; flex: 1; min-height: 300px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
  .lp-chart > div { position: absolute; inset: 0; }
  .lp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .sym-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; border-bottom: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); transition: color .2s; }
  .sym-link:hover { color: var(--accent); }
  .jrt-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-right: 40px; } .jrt-head h3 { margin: 0; font: 800 19px var(--font-display); }
  .jrt-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(340px, 1fr); gap: 14px; }
  .jrt-left { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
  .jrt-side { overflow: auto; }
  .jrt-chart { position: relative; flex: 1; min-height: 360px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); display: grid; grid-template-columns: 46px minmax(0, 1fr); }
  .tool-set-pop { position: fixed; z-index: 90; width: 260px; display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 20px 40px -16px rgba(0,0,0,.7); color: var(--fg); animation: rise .25s var(--ease); }
  .tool-set-pop b { font-size: 13px; padding: 2px 6px 8px; }
  .tool-set-pop label { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
  .tool-set-pop label:hover { background: var(--panel2); }
  .tool-set-pop input { accent-color: var(--accent); }
  .tool-set-pop svg { width: 18px; height: 18px; color: var(--muted); }
  .tool-gear { margin-top: auto; opacity: .7; } .tool-gear:hover { opacity: 1; }
  .jrt-tools { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 6px 4px; border-right: 1px solid var(--line); background: var(--panel); overflow-y: auto; border-radius: 0; }
  .jrt-cv { position: relative; min-width: 0; }
  .jrt-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .jrt-stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .jrt-stats div { padding: 9px 11px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
  .jrt-stats div:hover { transform: translateY(-1px) scale(1.02); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--accent) 50%, transparent); }
  .jrt-stats b span { display: inline; font: inherit; color: inherit; }
  .jrt-stats span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; } .jrt-stats b { font-size: 14.5px; }
  @media (max-width: 1100px) { .jrt-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .jrt-box { height: auto; } .jrt-chart { min-height: 420px; } }
  .jrt-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .jrt-f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
  .jrt-f textarea, .jrt-f input { resize: vertical; font: 500 13px/1.5 var(--font-ui); color: var(--fg); background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; outline: none; transition: border-color .25s, box-shadow .25s; }
  .jrt-f textarea:hover, .jrt-f input:hover { border-color: var(--line2, var(--line)); }
  .jrt-f textarea:focus, .jrt-f input:focus { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
  .jrt-tags { display: flex; gap: 6px; flex-wrap: wrap; }
  .jrt-drop { padding: 16px; border-radius: 10px; border: 1.5px dashed var(--line2, var(--line)); text-align: center; color: var(--muted); font-size: 12.5px; font-weight: 600; }
  @media (max-width: 1000px) { .jr-kpis { grid-template-columns: repeat(2, 1fr); } .jr-row { grid-template-columns: 1fr; } .jr-wide { grid-column: auto; } .jr-safe { grid-template-columns: 1fr; } .jr-share { grid-template-columns: 1fr; } .jrt-body { grid-template-columns: 1fr; } .jrt-chart { min-height: 380px; } }
  .jr-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; }
  .jr-copy h2 { font: 800 clamp(28px, 3.4vw, 44px)/1.05 var(--font-display); letter-spacing: -.03em; margin: 10px 0 14px; }
  .jr-copy p { color: var(--fg2, var(--muted)); line-height: 1.65; margin: 0 0 22px; max-width: 560px; }
  .jr-points-old { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
  .jr-points div { padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
  .jr-points b { font-size: 14px; } .jr-points span { font-size: 12.5px; color: var(--muted); }
  .jr-vis { position: relative; height: 420px; padding: 0; overflow: hidden; }
  .jr-vis canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .jr-tag { position: absolute; right: 12px; bottom: 10px; font: 600 10.5px var(--font-num); color: var(--muted); }
  @media (max-width: 900px) { .jr-hero { grid-template-columns: 1fr; } .jr-vis { height: 300px; } }
  .mini { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; transition: border-color .3s; }
  .mini:hover { border-color: var(--line2); }
  .mini-head { display: flex; align-items: center; gap: 8px; padding: 3px 6px 3px 10px; min-height: 34px; border-bottom: 1px solid var(--line); }
  .mini-sym { background: none; border: 0; padding: 0; font-weight: 800; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; }
  .mini-sym .coin-ic { margin-right: 6px; }
  .mini-sym:hover { color: var(--accent); }
  .mini-sym small { color: var(--muted); font-weight: 600; font-size: 11px; }
  .mini-chg { font: 12px var(--font-num); white-space: nowrap; }
  .mini .tfs { margin-left: auto; display: flex; gap: 1px; }
  .mini-stats { position: absolute; left: 8px; top: 6px; z-index: 2; pointer-events: none; display: flex; flex-direction: column; gap: 1px; font-size: 10.5px; line-height: 1.35; }
  .mini-stats div { display: flex; gap: 6px; align-items: baseline; }
  .mini-stats span { color: var(--muted); font-weight: 600; min-width: 58px; }
  .mini-stats b { color: var(--fg); font: 600 10.5px var(--font-num); }
  .mini.expanded .mini-stats { top: 26px; font-size: 11px; }
  .mini.expanded .mini-info { top: 32px; }
  .big-info { max-width: none; } .big-info .mi-range i { min-width: 120px; } .big-info .mi-chips { font-size: 12px; gap: 14px; } .big-info .mi-chips b { font: inherit; }
  .mini.expanded .mini-stats span { min-width: 66px; }
  .mini-chart { position: relative; min-height: 0; }
  .mini .mini-body { flex: 1; }
  .mini .close-exp { display: none; }
  .grid-backdrop { position: fixed; inset: 0; z-index: 39; /* лежит внутри #app, иначе закрывает развёрнутый график */ background: rgba(6,6,9,.7); backdrop-filter: blur(6px); animation: fade .3s var(--ease); }
  .mini.expanded { position: fixed; z-index: 40; inset: 70px 16px 16px; animation: pop .4s var(--ease); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
  .mini.expanded .mini-chart { height: auto; flex: 1; }
  .mini.expanded .close-exp { display: grid; }
  .mini.expanded .exp-btn { display: none; }
  @media (max-width: 1100px), (max-height: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 300px; height: auto; } .mini.big { grid-column: span 2; grid-row: span 1; } }
  @media (max-width: 700px) { .grid { grid-template-columns: 1fr; } .mini .tfs { display: none; } .mini.expanded .tfs { display: flex; } }

  /* ---------- Монеты ---------- */
  .coins-wrap { display: grid; grid-template-columns: 54px minmax(0, 1fr) 12px var(--listW, 470px); column-gap: 0; height: calc(100vh - 58px - 28px); min-height: 520px; }
  .coins-wrap > .tools { margin-right: 8px; }
  .tools { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; overflow-y: auto; }
  .tool { width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 0; border-radius: 9px; color: var(--muted); cursor: pointer; transition: all .2s; }
  .tool svg { width: 18px; height: 18px; }
  .tool:hover { color: var(--fg); background: var(--panel2); }
  .tool.active { color: var(--accent); background: var(--accent-soft); }
  .tools hr { width: 24px; border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
  .big { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
  .big-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); }
  .bh-left { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex-wrap: wrap; }
  .bh-right { display: flex; align-items: center; gap: 2px; justify-content: flex-end; }
  .bh-right .ibtn { width: 32px; height: 32px; border-radius: 9px; }
  .bh-right .ibtn svg { width: 16px; height: 16px; }
  .bh-price { font-size: 16px; font-weight: 600; }
  .bh-chg { font-size: 13px; }
  .seg { display: inline-flex; gap: 2px; background: var(--bg2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
  .seg .tf { padding: 6px 13px; font-size: 13px; border-radius: 8px; min-width: 44px; }
  .chart-stats { position: absolute; left: 10px; top: 26px; z-index: 2; pointer-events: none; display: flex; flex-direction: column; gap: 3px; font-size: 11px; }
  .chart-stats div { display: flex; gap: 8px; align-items: baseline; }
  .chart-stats span { color: var(--muted); font-weight: 600; }
  .chart-stats b { font: 600 11px var(--font-num); color: var(--fg); }
  @media (max-width: 760px) { .big-head { grid-template-columns: 1fr auto; } .seg { grid-column: 1 / -1; justify-self: center; order: 3; } .chart-stats { display: none; } }
  .big-head h3 { margin: 0; font-size: 17px; font-weight: 800; white-space: nowrap; }
  .big-head h3 small { color: var(--muted); font-weight: 600; font-size: 12px; }
  .back { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; color: var(--fg); cursor: pointer; font-weight: 700; font-size: 12px; }
  .back:hover { border-color: var(--accent); color: var(--accent); }
  #bigChart { flex: 1; min-height: 0; position: relative; }
  .hint { position: absolute; left: 12px; bottom: 30px; font-size: 12px; color: var(--accent); background: rgba(19,20,26,.9); border: 1px solid rgba(255,166,48,.3); padding: 6px 10px; border-radius: 8px; pointer-events: none; }
  .list { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; container-type: inline-size; }
  .splitter { position: relative; cursor: col-resize; touch-action: none; outline: none; }
  .splitter::after { content: ""; position: absolute; left: 5px; width: 2px; top: 42%; bottom: 42%; border-radius: 2px; background: var(--line2); transition: all .25s var(--ease); }
  .splitter:hover::after, .splitter:focus-visible::after, .splitter.drag::after { top: 0; bottom: 0; background: var(--accent); }
  .ctable .opt { display: none; }
  @container (min-width: 600px) { .ctable .opt { display: table-cell; } }
  .list-controls { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
  .list-controls .field { padding: 6px 10px; font-size: 13px; }
  .list-controls input.field { flex: 1 1 120px; }
  .icon-btn { padding: 6px 9px; display: inline-flex; align-items: center; justify-content: center; }
  .icon-btn.on { border-color: var(--accent); color: var(--accent); }
  .list-ex .scr-ex-btn { padding: 4px 10px 4px 5px; } .list-ex .scr-ex-menu { left: 0; right: auto; }
  .list-active { font: 600 11px var(--font-num); color: var(--accent); padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); cursor: pointer; }
  .lset-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .lset-range input { width: 100%; }
  .toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; }
  .toggle input { accent-color: var(--accent); }
  .list-scroll { overflow: auto; flex: 1; }
  .ctable { width: 100%; border-collapse: collapse; }
  .ctable th, .ctable td { padding: 8px 10px; text-align: right; white-space: nowrap; font-size: 13px; }
  .ctable .sym { text-align: left; }
  .ctable .fcol { width: 36px; padding: 0 0 0 10px; text-align: left; }
  .ctable thead th { position: sticky; top: 0; z-index: 1; background: var(--panel); color: var(--muted); font: 600 12px var(--font-ui); cursor: pointer; border-bottom: 1px solid var(--line); user-select: none; padding-top: 10px; padding-bottom: 10px; transition: color .15s; }
  .ctable thead th:hover { color: var(--fg); }
  .ctable thead th.sorted { color: var(--fg); }
  .ctable thead th.fcol { cursor: pointer; } .ctable thead th.fcol svg { opacity: .55; vertical-align: -1px; } .ctable thead th.fcol.sorted svg { opacity: 1; color: var(--accent); }
  .ctable tbody tr { cursor: pointer; transition: background .15s; }
  .ctable tbody tr:hover { background: var(--panel2); }
  .ctable tbody tr.sel { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
  .ctable td { font-family: var(--font-ui); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--fg2); }
  .ctable td.sym { font-weight: 700; color: var(--fg); }
  .ctable td.up { color: var(--up); } .ctable td.down { color: var(--down); }
  .ctable td.muted { color: var(--muted); }
  .ctable td.hot { color: var(--accent); font-weight: 700; }
  @media (max-width: 1100px) { .coins-wrap { grid-template-columns: 54px minmax(0, 1fr); height: auto; row-gap: 8px; } .splitter { display: none; } .coins-wrap .big { height: 560px; } .list { grid-column: 1 / -1; height: 520px; } }

  /* ---------- Листинги ---------- */
  .wrap-narrow { max-width: 1150px; margin: 0 auto; }
  /* ---------- Карта плотностей ---------- */
  .dens-wrap { max-width: none; margin: 0 auto; }
  .dens-head { justify-content: space-between; margin-bottom: 8px; }
  .dens-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; } .dens-title .muted { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* вся вкладка в один экран: карта занимает всё оставшееся место */
  .view[data-view="dens"] { padding-top: 10px; padding-bottom: 10px; }
  .dens-wrap.no-list { height: calc(100vh - 58px - 20px); display: flex; flex-direction: column; }
  .dens-wrap.no-list .dens-main { flex: 1; min-height: 0; margin-bottom: 0; }
  .dens-wrap.no-list .dens-map { height: auto; flex: 1 1 0; min-height: 0; }
  .dens-wrap.no-list .dens-side { min-height: 0; overflow: hidden; }
  .dens-wrap.no-list .ds-chart { min-height: 0; }
  .dens-wrap.no-list .dens-note { display: none; }
  /* панель фильтров едет вместе со скроллом */
  .dens-controls { position: sticky; top: 58px; z-index: 5; padding: 8px 0; margin: -8px 0 4px; background: linear-gradient(var(--bg) 70%, transparent); }
  .dens-status { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--font-num); color: var(--muted); background: var(--panel); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; }
  .dens-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
  .dens-status.on .dot { background: var(--up, #2bc98a); box-shadow: 0 0 0 0 rgba(43,201,138,.5); animation: dpulse 2s infinite; }
  .dens-status.err .dot { background: #f2555f; }
  @keyframes dpulse { 70% { box-shadow: 0 0 0 7px rgba(43,201,138,0); } 100% { box-shadow: 0 0 0 0 rgba(43,201,138,0); } }
  .dens-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
  .dens-controls .seg button, .seg.sm button { background: none; border: 0; color: var(--muted); padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 13px; }
  .dens-controls .seg button.active, .seg.sm button.active { background: var(--panel); color: var(--fg); box-shadow: 0 1px 0 var(--line); }
  .seg.sm button { padding: 5px 10px; font-size: 12px; }
  .dens-lbl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
  .dens-lbl .field { padding: 6px 10px; font-size: 13px; }
  #dSearch { padding: 7px 12px; font-size: 13px; margin-left: auto; width: 180px; }
  .dens-map-card { padding: 12px 12px 8px; }
  .dens-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--fg2, var(--muted)); padding: 2px 4px 8px; }
  .dens-legend span { display: inline-flex; align-items: center; gap: 6px; }
  .dens-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
  .lg-bid { background: var(--d-bid, #2bc98a); } .lg-ask { background: var(--d-ask, #f2555f); }
  .lg-ring { border: 2px solid var(--accent); background: transparent !important; }
  .dens-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(480px, 1fr); gap: 12px; margin-bottom: 12px; align-items: stretch; }
  .dens-main .card { margin-bottom: 0; }
  .dens-map-card { display: flex; flex-direction: column; padding: 10px; }
  .dens-map { position: relative; flex: 1 0 auto; height: calc(100vh - 205px); min-height: 620px; border-radius: 12px; overflow: hidden; }
  .b10-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .b10-all { flex: none; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: 700 12.5px var(--font-ui); padding: 7px 13px; border-radius: 9px; cursor: pointer; transition: color .25s, border-color .25s, background .25s, transform .25s var(--ease); }
  .b10-all:hover { color: var(--fg); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-1px); }
  .b10-all.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--accent-soft); cursor: default; transform: none; }

  /* ===== Аккаунт ===== */
  .acc-wrap { max-width: 1080px; margin: 0 auto; padding: 34px 8px 70px; }
  .acc-hero { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(70% 140% at 0% 0%, var(--accent-soft), transparent 60%), var(--panel); overflow: hidden; animation: accIn .6s var(--ease) both; }
  @keyframes accIn { from { opacity: 0; transform: translateY(14px); } }
  .acc-ava { position: relative; width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 4px var(--panel), 0 0 0 5px color-mix(in srgb, var(--accent) 60%, transparent), 0 18px 40px -16px var(--accent); overflow: hidden; transition: transform .4s var(--ease); }
  .acc-ava:hover { transform: scale(1.04) rotate(-3deg); } .acc-ava svg, .acc-ava img { width: 100%; height: 100%; display: block; }
  .acc-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .acc-name h2 { margin: 0; font: 800 clamp(24px, 3vw, 34px)/1.1 var(--font-display); letter-spacing: -.02em; }
  .acc-name input { font: 800 26px var(--font-display); background: var(--bg2); color: var(--fg); border: 1px solid var(--accent); border-radius: 10px; padding: 4px 10px; width: min(320px, 100%); outline: none; }
  .acc-edit { border: 1px solid var(--line); background: var(--bg2); color: var(--muted); width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; transition: color .2s, border-color .2s; } .acc-edit:hover { color: var(--accent); border-color: var(--accent); }
  .acc-sub { color: var(--muted); margin-top: 6px; font-size: 13.5px; } .acc-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
  .acc-b { font: 700 11px var(--font-ui); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg2, var(--fg)); background: var(--bg2); display: inline-flex; align-items: center; gap: 6px; }
  .acc-b.ok { color: var(--up, #2bc98a); border-color: color-mix(in srgb, var(--up, #2bc98a) 35%, var(--line)); } .acc-b.pro { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--accent-soft); }
  .acc-b i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .acc-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
  .ap-seg { display: inline-flex; gap: 2px; padding: 3px; margin: 8px 0 6px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); } .ap-seg span { padding: 5px 14px; border-radius: 7px; font: 700 13px var(--font-ui); color: var(--muted); } .ap-seg span.on { background: var(--accent); color: var(--accent-ink, #fff); }
  .acc-plan2 .ap-head { border-bottom: 0; padding-bottom: 0; align-items: center; } .acc-plan2 { padding: 20px 24px; }
  .acc-empty.big { padding: 18px; }
  .acc-card { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); animation: accIn .6s var(--ease) both; transition: border-color .35s, box-shadow .35s; }
  .acc-card:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: 0 16px 34px -24px var(--accent); }
  .acc-card h3 { margin: 0 0 4px; font: 800 17px var(--font-ui); } .acc-card > p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
  .acc-avas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 12px; }
  .acc-av { position: relative; aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: none; transition: transform .35s var(--ease); }
  .acc-av svg, .acc-av img { width: 100%; height: 100%; border-radius: 50%; display: block; }
  .acc-av::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; transition: border-color .3s, box-shadow .3s; }
  .acc-av:hover { transform: translateY(-3px) scale(1.05); } .acc-av.on::after { border-color: var(--accent); box-shadow: 0 0 16px -2px var(--accent); }
  .acc-av .lbl { position: absolute; left: 50%; bottom: -18px; translate: -50% 0; font: 600 10.5px var(--font-ui); color: var(--muted); white-space: nowrap; opacity: 0; transition: opacity .25s; } .acc-av:hover .lbl, .acc-av.on .lbl { opacity: 1; }
  .acc-avas { padding-bottom: 14px; }
  .acc-rows { display: flex; flex-direction: column; } .acc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); } .acc-row:first-child { border-top: 0; padding-top: 0; }
  .acc-row .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg2); color: var(--accent); flex: none; } .acc-row .ic svg { width: 17px; height: 17px; }
  .acc-row div { min-width: 0; flex: 1; } .acc-row b { display: block; font-size: 13.5px; } .acc-row small { color: var(--muted); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .acc-row .tag { font: 700 10px var(--font-num); text-transform: uppercase; letter-spacing: .04em; padding: 4px 8px; border-radius: 7px; background: var(--bg2); color: var(--muted); white-space: nowrap; }
  .acc-row .tag.on { color: var(--up, #2bc98a); background: color-mix(in srgb, var(--up, #2bc98a) 12%, transparent); }
  .acc-row .btn { flex: none; }
  .acc-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .acc-plan > div { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); } .acc-plan > div.cur { border-color: color-mix(in srgb, var(--up, #2bc98a) 40%, var(--line)); }
  .acc-plan > div.pro { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%), var(--bg2); }
  .acc-plan b { display: block; font-size: 14px; margin-bottom: 6px; } .acc-plan ul { margin: 0; padding-left: 16px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
  .acc-sub-now { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
  .acc-sub-now > div { padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); } .acc-sub-now span { display: block; font-size: 11px; color: var(--muted); } .acc-sub-now b { font-size: 14px; } .acc-sub-now b.ok { color: var(--up, #2bc98a); }
  .acc-plan small { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
  .acc-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .acc-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); transition: border-color .25s, transform .25s var(--ease); }
  .acc-link:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateX(2px); }
  .acc-link .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; } .acc-link .ic svg { width: 16px; height: 16px; }
  .acc-link div { flex: 1; min-width: 0; } .acc-link b { display: block; font-size: 13px; } .acc-link a, .acc-link small { font-size: 12.5px; color: var(--accent); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .acc-link a:hover { text-decoration: underline; }
  .acc-del { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; transition: color .2s, border-color .2s; } .acc-del:hover { color: var(--down, #f2555f); border-color: var(--down, #f2555f); }
  .acc-empty { padding: 14px; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); font-size: 13px; text-align: center; }
  .acc-addlink { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 8px; } .acc-linkmsg { color: var(--down, #f2555f); font-size: 12px; margin-top: 6px; min-height: 14px; }
  @media (max-width: 560px) { .acc-addlink { grid-template-columns: 1fr; } .acc-sub-now { grid-template-columns: 1fr 1fr; } }
  .acc-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
  @media (max-width: 860px) { .acc-grid { grid-template-columns: 1fr; } .acc-hero { grid-template-columns: auto 1fr; } .acc-hero > .acc-out { grid-column: 1 / -1; } .acc-avas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }


  /* ===== Психология ===== */
  .psy-wrap { --psy-bad: #ec5a6a; }
  :root[data-theme] .psy-wrap, body .psy-wrap { --psy-bad: #ec5a6a; }
  .psy-wrap { max-width: 1120px; margin: 0 auto; padding: 34px 8px 80px; }
  .psy-head { text-align: center; max-width: 720px; margin: 0 auto 26px; }
  .psy-head h2 { font: 800 clamp(30px, 4vw, 50px)/1.05 var(--font-display); letter-spacing: -.03em; margin: 10px 0 12px; }
  .psy-head p { color: var(--fg2, var(--muted)); line-height: 1.65; margin: 0; }
  .psy-map { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) minmax(0, 1fr); align-items: center; gap: 30px 76px; padding: 40px 36px; border-radius: 26px; border: 1px solid var(--line); background: radial-gradient(color-mix(in srgb, var(--fg) 7%, transparent) 1px, transparent 1.2px) 0 0 / 22px 22px, radial-gradient(55% 75% at 88% 50%, color-mix(in srgb, var(--psy-bad) 7%, transparent), transparent 70%), radial-gradient(55% 75% at 8% 50%, var(--accent-soft), transparent 70%), var(--panel); overflow: hidden; box-shadow: 0 30px 60px -44px color-mix(in srgb, var(--accent) 50%, transparent); }
  .psy-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; opacity: 0; transition: opacity .9s ease .1s; } .psy-lines.ready { opacity: 1; }
  .psy-map { animation: psyMapIn .8s var(--ease) both; } @keyframes psyMapIn { from { opacity: 0; } }
  .psy-lines path { fill: none; stroke-width: 1.6; }
  .psy-lines .base { stroke: color-mix(in srgb, var(--accent) 35%, transparent); }
  .psy-lines .bad { stroke: color-mix(in srgb, var(--psy-bad) 40%, transparent); }
  .psy-lines .flow { stroke-dasharray: 2 26; stroke-linecap: round; stroke-width: 2; opacity: .55; animation: psyFlow 3.8s linear infinite; }
  .psy-lines .flow.a { stroke: var(--accent); } .psy-lines .flow.d { stroke: var(--psy-bad); }
  .psy-lines path.hot { stroke-width: 2; } .psy-lines .flow.hot { opacity: .9; animation-duration: 2.2s; }
  @keyframes psyFlow { to { stroke-dashoffset: -56; } }
  .psy-src { position: relative; z-index: 1; padding: 24px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, var(--panel)), var(--panel)); box-shadow: 0 16px 36px -26px var(--accent); }
  .psy-src b { display: block; margin-top: 8px; font: 800 clamp(17px, 1.8vw, 21px)/1.3 var(--font-ui); }
  .psy-chips { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
  .psy-chip { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 6px 16px -14px rgba(0,0,0,.5); color: var(--fg); font: 700 14.5px var(--font-ui); cursor: pointer; text-align: left; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s, background .35s; animation: psyIn .7s var(--ease) both; animation-delay: var(--d); }
  .psy-chip i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; transition: background .35s, color .35s; } .psy-chip i svg { width: 16px; height: 16px; }
  .psy-chip:hover, .psy-chip.on { transform: translateX(2px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 12px 28px -18px var(--accent); }
  .psy-chip.on i { background: var(--accent); color: var(--accent-ink, #fff); }
  @keyframes psyIn { from { opacity: 0; } }
  .psy-out { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; align-items: stretch; }
  .psy-bad, .psy-end { padding: 18px 20px; border-radius: 18px; text-align: center; }
  .psy-bad { border: 1px solid color-mix(in srgb, var(--psy-bad) 35%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--psy-bad) 9%, var(--panel)), var(--panel)); box-shadow: 0 0 0 0 color-mix(in srgb, var(--psy-bad) 35%, transparent); animation: psyPulse 5s ease-in-out infinite; }
  .psy-bad b { display: block; font: 800 24px var(--font-display); color: var(--psy-bad); } .psy-bad small { color: var(--muted); font-size: 12px; }
  @keyframes psyPulse { 50% { box-shadow: 0 0 26px -8px color-mix(in srgb, var(--psy-bad) 35%, transparent); } }
  .psy-end { border: 1px dashed color-mix(in srgb, var(--psy-bad) 35%, var(--line)); background: var(--panel); } .psy-end b { color: var(--psy-bad); font-size: 16px; }
  .psy-hint { text-align: center; color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }
  .psy-sub { text-align: center; font: 800 clamp(20px, 2.4vw, 28px)/1.2 var(--font-display); letter-spacing: -.02em; margin: 54px auto 22px; max-width: 760px; }
  .psy-cards { display: flex; flex-direction: column; gap: 14px; max-width: 900px; margin: 0 auto; }
  .psy-card { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 18px; padding: 24px 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .4s, box-shadow .4s; overflow: hidden; scroll-margin-top: 110px; }
  .psy-card.vis { opacity: 1; transform: none; }
  .psy-card::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--grad); opacity: .7; }
  .psy-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: 0 18px 38px -26px var(--accent); }
  .psy-card.flash { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 44px -22px var(--accent); }
  .psy-num { font: 800 44px/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 60%, transparent); }
  .psy-h { display: flex; align-items: center; gap: 10px; font: 700 16px var(--font-ui); margin-bottom: 10px; }
  .psy-h b { color: var(--accent); } .psy-h .ic { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--accent-soft); color: var(--accent); } .psy-h .ic i { width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
  .psy-body p { margin: 0 0 10px; color: var(--fg2, var(--fg)); line-height: 1.65; } .psy-body p:last-child { margin-bottom: 0; }
  .psy-wrap mark { background: none; color: var(--accent); font-weight: 700; background-image: linear-gradient(var(--accent-soft), var(--accent-soft)); background-size: 100% 40%; background-position: 0 90%; background-repeat: no-repeat; padding: 0 2px; }
  .psy-rule { font: 800 clamp(17px, 2vw, 21px)/1.3 var(--font-display); color: var(--accent) !important; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); border-left: 3px solid var(--accent); }
  .psy-memo { position: relative; max-width: 900px; margin: 34px auto 0; padding: 34px 32px 30px; text-align: center; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
  .psy-memo::before { content: '“'; position: absolute; left: 24px; top: -18px; font: 800 140px/1 var(--font-display); color: var(--accent); opacity: .12; }
  .psy-memo blockquote { margin: 12px 0 12px; font: 800 clamp(24px, 3.2vw, 38px)/1.15 var(--font-display); letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .psy-memo p { margin: 0 auto; max-width: 560px; color: var(--muted); line-height: 1.65; font-size: 14.5px; }
  .psy-final { max-width: 900px; margin: 34px auto 0; padding: 30px 32px; border-radius: 24px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: radial-gradient(80% 120% at 0% 0%, var(--accent-soft), transparent 60%), var(--panel); opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .psy-final.vis { opacity: 1; transform: none; }
  .psy-final p { margin: 0 0 8px; font: 800 clamp(19px, 2.3vw, 26px)/1.35 var(--font-display); letter-spacing: -.01em; } .psy-final p + p { font: 500 16px/1.6 var(--font-ui); color: var(--fg2, var(--fg)); }
  .psy-sign { display: block; margin-top: 12px; font: 700 13px var(--font-ui); color: var(--accent); }
  @media (max-width: 900px) { .psy-map { grid-template-columns: 1fr; gap: 22px; padding: 22px; } .psy-lines { display: none; } .psy-chips { flex-direction: row; flex-wrap: wrap; } .psy-card { grid-template-columns: 1fr; } .psy-num { font-size: 30px; } }
  @media (prefers-reduced-motion: reduce) { .psy-card, .psy-final { opacity: 1; transform: none; } .psy-lines .flow { animation: none; } }

  .lang-pick { position: relative; margin-right: 8px; }
  .lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); cursor: pointer; font: 700 13px var(--font-ui); transition: border-color .25s, background .25s; }
  .lang-btn:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); } .lang-btn svg { color: var(--muted); } .lang-btn .chev { transition: transform .25s; }
  .lang-pick:has(.lang-menu:not([hidden])) .lang-btn .chev { transform: rotate(180deg); }
  .lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 190px; padding: 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 20px 40px -14px rgba(0,0,0,.6); animation: langIn .25s var(--ease); }
  @keyframes langIn { from { opacity: 0; transform: translateY(-6px); } }
  .lang-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--fg); cursor: pointer; text-align: left; font: 600 13px var(--font-ui); transition: background .2s; }
  .lang-menu button b { width: 22px; font: 800 12px var(--font-num); color: var(--muted); } .lang-menu button:hover { background: var(--panel2); }
  .lang-menu button.on { background: var(--accent-soft); } .lang-menu button.on b { color: var(--accent); }
  body.landing .lang-btn { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color: #ece5da; }
  body.landing .lang-menu { background: #121014; border-color: rgba(255,255,255,.08); } body.landing .lang-menu button { color: #ece5da; } body.landing .lang-menu button:hover { background: rgba(255,255,255,.05); }
  body.landing .lang-menu button.on { background: rgba(255,166,48,.12); } body.landing .lang-menu button.on b { color: #ffa630; }
  body.landing.lp-teal .lang-menu button.on { background: rgba(79,227,214,.12); } body.landing.lp-teal .lang-menu button.on b { color: #4fe3d6; }
  @media (max-width: 560px) { .lang-btn > svg:first-child { display: none; } }

  .acc-wide { grid-column: 1 / -1; margin-top: 14px; }
  .acc-mas { display: block; columns: 2; column-gap: 14px; } .acc-mas > .acc-card { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 14px; vertical-align: top; } .acc-mas > .acc-wide { column-span: all; display: block; }
  @media (max-width: 860px) { .acc-mas { columns: 1; } }
  .acc-top { margin-top: 14px; } .acc-top + .acc-plan2 { margin-top: 14px; }
  .th-sw { width: 34px; height: 34px; border-radius: 10px; }
  .acc-row.acc-tg { border-top: 1px solid var(--line); padding: 12px 0; cursor: pointer; } .acc-row.acc-tg > div { flex: 1; }
  .acc-plan2 { padding: 24px 26px; } .ap-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .ap-head h3 { display: flex; align-items: center; gap: 10px; } .ap-head p { margin: 4px 0 0 !important; max-width: 560px; } .ap-head .btn { flex: none; }
  .ap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .ap-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); } .ap-row > div { flex: 1; min-width: 0; } .ap-row b { display: block; font-size: 13.5px; } .ap-row small { color: var(--muted); font-size: 12px; }
  .ap-row .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg2); color: var(--muted); flex: none; } .ap-row .ic svg { width: 16px; height: 16px; }
  .ap-st { font: 700 12px var(--font-ui); color: var(--muted); white-space: nowrap; } .ap-st.on { color: var(--up, #2bc98a); } .ap-st.on::before { content: '● '; }
  .founder-badge.sm { font-size: 10px; padding: 2px 8px; }
  .plans-wrap { max-width: 1080px; margin: 24px auto 0; } .plans-wrap .sub-pane { margin-top: 0; animation: accIn .5s var(--ease) both; }
  .pt-plans { border-color: color-mix(in srgb, #f5c451 35%, var(--line)) !important; } .pt-plans em { color: #f5b13d !important; }
  @media (max-width: 760px) { .ap-list { grid-template-columns: 1fr; } .ap-head { flex-direction: column; } }
  .acc-ch { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
  .acc-demo { border: 0; background: none; color: var(--muted); font: 600 12px var(--font-ui); text-decoration: underline dotted; cursor: pointer; white-space: nowrap; } .acc-demo:hover { color: var(--accent); }
  .soon { display: inline-flex; align-items: center; margin-left: 6px; font: 700 9px/1 var(--font-num); text-transform: uppercase; letter-spacing: .06em; padding: 3px 6px; border-radius: 6px; background: var(--bg2); color: var(--muted); border: 1px solid var(--line); vertical-align: 2px; white-space: nowrap; }
  .soon.pro { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
  .btn .soon { margin-left: 8px; }
  .plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .plan { display: flex; flex-direction: column; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg2); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
  .plan:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: 0 16px 30px -22px var(--accent); }
  .plan.cur { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%), var(--bg2); }
  .plan-pro { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
  .plan-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .plan-h b { font: 800 16px var(--font-ui); }
  .plan-cur { font: 700 10px var(--font-num); text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
  .plan-p { margin: 10px 0 12px; } .plan-p em { font: 800 28px/1 var(--font-display); font-style: normal; } .plan-p small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
  .plan ul { margin: 0 0 14px; padding: 0; list-style: none; flex: 1; } .plan li { position: relative; padding: 4px 0 4px 20px; font-size: 13px; color: var(--fg2, var(--fg)); line-height: 1.45; }
  .plan li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
  .plan .btn { width: 100%; justify-content: center; }
  .founder-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 12px; padding: 20px 22px; border-radius: 18px; border: 1px solid color-mix(in srgb, #f5c451 45%, var(--line)); background: radial-gradient(90% 140% at 0% 0%, rgba(245,196,81,.12), transparent 60%), var(--bg2); overflow: hidden; }
  .founder-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,230,160,.08) 50%, transparent 60%); background-size: 250% 100%; animation: fcShine 6s ease-in-out infinite; pointer-events: none; } @keyframes fcShine { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
  .founder-card h4 { margin: 10px 0 6px; font: 800 20px var(--font-display); } .founder-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
  .fc-count { display: flex; align-items: baseline; gap: 8px; } .fc-count b { font: 800 34px/1 var(--font-display); color: #f5c451; } .fc-count span { color: var(--muted); font-size: 12.5px; }
  .fc-bar { height: 6px; border-radius: 3px; background: rgba(245,196,81,.15); margin: 10px 0 12px; overflow: hidden; } .fc-bar i { display: block; height: 100%; min-width: 3px; border-radius: 3px; background: linear-gradient(90deg, #ffe08a, #f5a623); }
  .fc-r .btn { width: 100%; justify-content: center; }
  .founder-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; font: 800 11px var(--font-ui); color: #3a2600; background: linear-gradient(100deg, #ffe08a, #f5b13d); box-shadow: 0 0 16px -4px rgba(245,177,61,.7); white-space: nowrap; }
  .acc-ava.founder { box-shadow: 0 0 0 4px var(--panel), 0 0 0 6px #f5c451, 0 18px 40px -16px #f5b13d; }
  .pay-yk { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 12.5px; }
  .acc-h4 { margin: 20px 0 10px; font: 700 11px var(--font-num); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
  .acc-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; } .acc-table .tr { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr .8fr; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; align-items: center; }
  .acc-table .th { border-top: 0; background: var(--bg2); color: var(--muted); font: 700 10.5px var(--font-num); text-transform: uppercase; letter-spacing: .05em; }
  .acc-table .st.ok { color: var(--up, #2bc98a); } .acc-table .st.bad { color: var(--down, #f2555f); }
  .link-btn { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
  .acc-fine { margin-top: 14px; font-size: 11.5px; color: var(--muted); opacity: .85; }
  .acc-row.wrap { align-items: flex-start; } .acc-row small.wrap { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.5; }
  .acc-row > .soon { margin-left: auto; }
  .acc-pass, .acc-addkey { display: grid; gap: 8px; } .acc-pass .btn, .acc-addkey .btn { justify-self: start; }
  .acc-msg { font-size: 12.5px; min-height: 16px; } .acc-msg.ok { color: var(--up, #2bc98a); } .acc-msg.bad { color: var(--down, #f2555f); }
  .acc-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--down, #f2555f) 40%, var(--line)); background: color-mix(in srgb, var(--down, #f2555f) 6%, var(--bg2)); font-size: 13px; animation: accIn .3s var(--ease); }
  .acc-confirm .field { width: 140px; }
  .btn.danger, .btn.danger:hover { color: #fff !important; } .btn.danger { background: #d9434f; border-color: #d9434f; } .btn.danger:hover { background: #e5525e; } .btn.danger:disabled { opacity: .45; cursor: not-allowed; }
  .acc-warn { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; margin-bottom: 12px; background: color-mix(in srgb, #f5b13d 10%, var(--bg2)); border: 1px solid color-mix(in srgb, #f5b13d 35%, var(--line)); color: var(--fg); font-size: 12.5px; line-height: 1.5; } .acc-warn svg { color: #f5b13d; flex: none; margin-top: 1px; }
  .acc-keys { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  .acc-key .tag { font: 700 10px var(--font-num); text-transform: uppercase; letter-spacing: .04em; padding: 4px 8px; border-radius: 7px; white-space: nowrap; color: var(--up, #2bc98a); background: color-mix(in srgb, var(--up, #2bc98a) 12%, transparent); }
  .acc-stats b small { font: 600 12px var(--font-ui); color: var(--muted); }
  .acc-key { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); animation: accIn .35s var(--ease); } .acc-key > div { flex: 1; min-width: 0; } .acc-key b { display: block; font-size: 13.5px; } .acc-key small { color: var(--muted); font-size: 12px; }
  .acc-chk { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg2, var(--fg)); cursor: pointer; } .acc-chk input { accent-color: var(--accent); width: 15px; height: 15px; }
  .acc-note { margin-top: 10px; font-size: 11.5px; color: var(--muted); }
  .acc-toggles { display: flex; flex-direction: column; }
  .acc-tg { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 13.5px; } .acc-toggles .acc-tg:first-child { border-top: 0; }
  .acc-tg input { position: absolute; opacity: 0; pointer-events: none; }
  .acc-tg i { position: relative; flex: none; width: 36px; height: 20px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); transition: background .25s, border-color .25s; }
  .acc-tg i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .3s var(--ease), background .25s; }
  .acc-tg input:checked + i { background: var(--accent); border-color: var(--accent); } .acc-tg input:checked + i::after { transform: translateX(16px); background: var(--accent-ink, #fff); }
  .acc-tg input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; } .acc-tg.dis { opacity: .6; cursor: default; }
  .acc-quiet .acc-tg { border-top: 0; } .q-range { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); transition: opacity .3s; } .q-range.off { opacity: .4; pointer-events: none; } .q-range .field { width: 110px; }
  .acc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .acc-stats > div { padding: 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); } .acc-stats span { display: block; font-size: 11.5px; color: var(--muted); } .acc-stats b { font: 800 22px var(--font-display); } .acc-stats b.up { color: var(--up); } .acc-stats b.dn { color: var(--down); }
  .acc-empty.big { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 18px; } .acc-empty.big b { color: var(--fg); font-size: 14px; } .acc-empty.big span { max-width: 340px; line-height: 1.5; }
  .acc-danger { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--down, #f2555f) 35%, var(--line)); } .acc-danger b { display: block; } .acc-danger small { color: var(--muted); font-size: 12px; }
  .acc-foot label.btn { cursor: pointer; } .acc-foot .btn svg { margin-right: 6px; }
  @media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .founder-card { grid-template-columns: 1fr; } .acc-table .tr { grid-template-columns: 1.2fr 1fr 1fr; } .acc-table .tr > :nth-child(4), .acc-table .tr > :nth-child(5) { display: none; } .acc-danger { flex-direction: column; align-items: flex-start; } }


  /* ===== Формации ===== */
  .fm-wrap { max-width: 1240px; margin: 0 auto; padding: 34px 8px 80px; }
  .fm-head h2 { font: 800 clamp(26px, 3.4vw, 40px)/1.1 var(--font-display); letter-spacing: -.02em; margin: 8px 0 10px; } .fm-head p { margin: 0; color: var(--muted); max-width: 720px; line-height: 1.6; }
  .fm-warn { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, #f5b13d 35%, var(--line)); background: color-mix(in srgb, #f5b13d 7%, var(--panel)); font-size: 13px; line-height: 1.55; color: var(--fg2, var(--fg)); } .fm-warn svg { color: #f5b13d; flex: none; margin-top: 1px; }
  .fm-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
  .fm-ctl { display: grid; gap: 6px; } .fm-ctl > span { font: 700 10.5px var(--font-num); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } .fm-ctl > span b { color: var(--accent); } .fm-ctl input[type=range] { width: 170px; accent-color: var(--accent); }
  .fm-act { margin-left: auto; display: flex; align-items: center; gap: 12px; } .fm-act .btn { gap: 7px; display: inline-flex; align-items: center; } .fm-act .btn.spin svg { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
  .fm-prog { position: relative; height: 26px; margin: 12px 0 0; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; font-size: 12px; } .fm-prog i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent-soft); transition: width .3s; } .fm-prog span { position: relative; display: block; padding: 5px 12px; color: var(--muted); }
  .fm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .fm-card { display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; cursor: pointer; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; animation: accIn .45s var(--ease) both; }
  .fm-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 18px 36px -24px var(--accent); }
  .fm-card canvas { display: block; width: 100%; height: 170px; background: var(--bg2); }
  .fm-cb { padding: 14px 16px 16px; display: grid; gap: 10px; }
  .fm-ct { display: flex; align-items: center; gap: 10px; } .fm-ct b { font: 800 16px var(--font-ui); } .fm-ct small { color: var(--muted); font: 600 11px var(--font-num); }
  .fm-sc { margin-left: auto; position: relative; width: 40px; height: 40px; flex: none; } .fm-sc svg { width: 40px; height: 40px; transform: rotate(-90deg); } .fm-sc span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 12px var(--font-num); }
  .fm-kind { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; }
  .fm-st { font: 700 10.5px var(--font-num); text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 7px; }
  .fm-st.near { color: var(--accent); background: var(--accent-soft); } .fm-st.break { color: #fff; background: var(--up, #2bc98a); } .fm-st.fake { color: #fff; background: #b07cff; }
  .fm-dir { font: 800 12px var(--font-num); } .fm-dir.up { color: var(--up); } .fm-dir.down { color: var(--down); }
  .fm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .fm-stats div { padding: 7px 8px; border-radius: 9px; background: var(--bg2); } .fm-stats span { display: block; font-size: 10px; color: var(--muted); } .fm-stats b { font: 700 12.5px var(--font-num); }
  .fm-why { font-size: 12px; color: var(--muted); line-height: 1.5; }
  .fm-empty { grid-column: 1 / -1; padding: 40px 20px; border-radius: 16px; border: 1px dashed var(--line); text-align: center; color: var(--muted); } .fm-empty b { display: block; color: var(--fg); font-size: 15px; margin-bottom: 6px; }
  .fm-how { margin-top: 26px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); } .fm-how h3 { margin: 0 0 14px; font: 800 17px var(--font-ui); }
  .fm-how-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .fm-how-g b { font-size: 13px; color: var(--accent); } .fm-how-g p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
  .fm-set { margin-top: 12px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); animation: accIn .35s var(--ease); }
  .fm-set-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } .fm-set h4 { margin: 0 0 10px; font: 700 11px var(--font-num); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
  .fm-set label.l { display: grid; gap: 5px; margin-bottom: 10px; font-size: 12.5px; color: var(--fg2, var(--fg)); } .fm-set label.l small { color: var(--muted); } .fm-set .field { height: 36px; }
  .fm-kc { display: flex; gap: 9px; align-items: flex-start; padding: 7px 0; cursor: pointer; } .fm-kc input { accent-color: var(--accent); width: 16px; height: 16px; margin-top: 2px; } .fm-kc b { display: block; font-size: 13px; } .fm-kc small { color: var(--muted); font-size: 11.5px; }
  .fm-set-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
  .fm-act .btn svg { flex: none; } #fmTf { max-width: 420px; }
  @media (max-width: 860px) { .fm-set-g { grid-template-columns: 1fr; } }
  .fm-tfh { display: block; font-size: 11.5px; color: var(--muted); max-width: 260px; line-height: 1.4; }
  .fm-live { height: 420px; margin-top: 8px; border-radius: 14px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); }
  .fm-live-h { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 12px; color: var(--muted); } .fm-live-h b { color: var(--fg); font-family: var(--font-num); }
  .fm-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up, #2bc98a); box-shadow: 0 0 8px var(--up, #2bc98a); animation: tgPulse 1.6s ease-in-out infinite; }
  .fm-ctx { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .fm-tfc { display: grid; gap: 3px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--fg); cursor: pointer; transition: border-color .2s, background .2s, transform .25s var(--ease); }
  .fm-tfc:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); } .fm-tfc.on { border-color: var(--accent); background: var(--accent-soft); }
  .fm-tfc b { font: 800 13px var(--font-num); } .fm-tfc small { font-size: 11px; color: var(--muted); line-height: 1.35; }
  .fm-tr { font: 700 12px var(--font-ui); } .fm-tr.up { color: var(--up); } .fm-tr.down { color: var(--down); } .fm-tr.flat { color: var(--muted); }
  .fm-agree { margin-top: 8px; font-size: 12.5px; color: var(--muted); } .fm-agree b { color: var(--accent); }
  @media (max-width: 640px) { .fm-ctx { grid-template-columns: 1fr 1fr; } .fm-live { height: 300px; } }
  .fm-mbox { width: min(980px, 100%); } .fm-mbox .fm-ct { padding-right: 46px; } .fm-mfoot .fm-why { flex: 1 1 100%; } .fm-mfoot .btn:first-of-type { margin-left: auto; } .fm-mbox canvas { display: block; width: 100%; height: 440px; border-radius: 14px; background: var(--bg2); margin: 14px 0; }
  .fm-mbox .fm-stats { grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 2fr); } .fm-mfoot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; } .fm-mfoot .fm-why { flex: 1; min-width: 240px; }
  @media (max-width: 1050px) { .fm-grid { grid-template-columns: 1fr 1fr; } .fm-how-g { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 640px) { .fm-grid, .fm-how-g { grid-template-columns: 1fr; } .fm-mbox .fm-stats { grid-template-columns: repeat(3, 1fr); } .fm-mbox canvas { height: 300px; } .fm-act { margin-left: 0; } }
  /* ===== Оповещения ===== */
  .alr-wrap { max-width: 1120px; margin: 0 auto; padding: 34px 8px 80px; }
  .alr-head h2 { font: 800 clamp(26px, 3.4vw, 40px)/1.1 var(--font-display); letter-spacing: -.02em; margin: 8px 0 10px; } .alr-head p { margin: 0; color: var(--muted); max-width: 680px; line-height: 1.6; }
  .alr-ch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0 16px; }
  .ach { position: relative; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); animation: accIn .5s var(--ease) both; }
  .ach:hover { transform: translateY(-2px); } .ach.on { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 14px 30px -22px var(--accent); }
  .ach-h { display: flex; align-items: center; gap: 10px; } .ach-h .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--bg2); color: var(--muted); transition: background .3s, color .3s; flex: none; } .ach.on .ach-h .ic { background: var(--accent-soft); color: var(--accent); } .ach-h .ic svg { width: 16px; height: 16px; }
  .ach-h b { flex: 1; font-size: 14px; } .ach p { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
  .ach .acc-tg { border: 0; padding: 0; } .ach-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
  .ach-row select, .ach-row input[type=range] { flex: 1; min-width: 0; } .ach-row input[type=range] { accent-color: var(--accent); }
  .ach .ib { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); color: var(--fg); cursor: pointer; display: grid; place-items: center; flex: none; } .ach .ib:hover { border-color: var(--accent); color: var(--accent); }
  .alr-box { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); margin-top: 14px; animation: accIn .5s var(--ease) both; }
  .alr-bh { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .alr-bh h3 { margin: 0; font: 800 18px var(--font-ui); } .alr-bh small { color: var(--muted); font-size: 12.5px; } .alr-bh .btn { gap: 7px; display: inline-flex; align-items: center; }
  .alr-filt { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; padding-top: 16px; border-top: 1px solid var(--line); }
  .alr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font: 600 12.5px var(--font-ui); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
  .alr-chip svg { width: 13px; height: 13px; } .alr-chip:hover { color: var(--fg); } .alr-chip.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--accent-soft); }
  .alr-chip i { font-style: normal; font: 700 10.5px var(--font-num); opacity: .8; }
  .alr-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .alr-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg2); transition: border-color .3s, opacity .3s, transform .3s var(--ease), box-shadow .3s; animation: accIn .4s var(--ease) both; }
  .alr-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); } .alr-card.off .alr-tags span.ok { color: var(--muted); border-color: var(--line); } .alr-card.off .alr-ct .ic { background: var(--panel); color: var(--muted); } .alr-card.hit { box-shadow: 0 0 0 1px var(--accent), 0 0 26px -6px var(--accent); }
  .alr-ct { display: flex; align-items: flex-start; gap: 10px; } .alr-ct .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; } .alr-ct .ic svg { width: 17px; height: 17px; }
  .alr-ct > div { flex: 1; min-width: 0; } .alr-ct b { display: block; font-size: 14px; } .alr-ct small { color: var(--muted); font-size: 12px; }
  .alr-cond { font-size: 13px; color: var(--fg2, var(--fg)); line-height: 1.5; } .alr-cond b { color: var(--accent); }
  .alr-tags { display: flex; flex-wrap: wrap; gap: 5px; } .alr-tags span { font: 600 11px var(--font-ui); padding: 3px 8px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
  .alr-tags span.ok { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
  .alr-cf { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); } .alr-cf small { flex: 1; color: var(--muted); font-size: 11.5px; }
  .alr-ib { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: color .2s, border-color .2s; } .alr-ib:hover { color: var(--accent); border-color: var(--accent); } .alr-ib.del:hover { color: var(--down, #f2555f); border-color: var(--down, #f2555f); } .alr-ib svg { width: 14px; height: 14px; }
  .alr-card .acc-tg { border: 0; padding: 0; }
  .alr-empty { grid-column: 1 / -1; padding: 30px; border-radius: 14px; border: 1px dashed var(--line); text-align: center; color: var(--muted); } .alr-empty b { display: block; color: var(--fg); margin-bottom: 6px; }
  .alr-log { display: flex; flex-direction: column; margin-top: 14px; max-height: 360px; overflow: auto; }
  .alr-lr { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); font-size: 13px; animation: accIn .35s var(--ease) both; } .alr-lr:first-child { border-top: 0; }
  .alr-lr .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--bg2); color: var(--accent); flex: none; } .alr-lr .ic svg { width: 14px; height: 14px; }
  .alr-lr > div { flex: 1; min-width: 0; } .alr-lr b { cursor: pointer; } .alr-lr b:hover { color: var(--accent); } .alr-lr small { color: var(--muted); } .alr-lr time { font: 600 11.5px var(--font-num); color: var(--muted); }
  .alr-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); animation: fade .25s; }
  .alr-mbox { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); animation: accIn .35s var(--ease); }
  .alr-x { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-size: 18px; cursor: pointer; } .alr-x:hover { color: var(--fg); }
  .alr-mbox h3 { margin: 0 0 4px; font: 800 20px var(--font-display); } .alr-mbox > div > p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
  .alr-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .alr-type { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; text-align: left; color: var(--fg); transition: border-color .2s, transform .25s var(--ease), background .2s; }
  .alr-type:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); } .alr-type.on { border-color: var(--accent); background: var(--accent-soft); } .alr-type[disabled] { opacity: .5; cursor: default; transform: none; }
  .alr-type .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--panel); color: var(--accent); flex: none; } .alr-type .ic svg { width: 15px; height: 15px; } .alr-type b { display: block; font-size: 13.5px; } .alr-type small { color: var(--muted); font-size: 12px; line-height: 1.4; }
  .alr-f { display: grid; gap: 14px; } .alr-f label.l { display: grid; gap: 6px; font: 700 11px var(--font-num); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .alr-f .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .alr-seg { display: flex; flex-wrap: wrap; gap: 4px; } .alr-seg button { padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font: 600 12.5px var(--font-ui); cursor: pointer; } .alr-seg button.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
  .alr-hint { font-size: 12px; color: var(--muted); line-height: 1.5; padding: 10px 12px; border-radius: 10px; background: var(--bg2); }
  .alr-fa { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; } .alr-msg { color: var(--down, #f2555f); font-size: 12.5px; min-height: 16px; }
  @media (max-width: 960px) { .alr-ch { grid-template-columns: 1fr 1fr; } .alr-list { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 600px) { .alr-ch, .alr-list, .alr-types, .alr-f .two { grid-template-columns: 1fr; } }
  .dl-tog { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 7px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: 700 12.5px var(--font-ui); cursor: pointer; user-select: none; white-space: nowrap; transition: color .25s, border-color .25s, background .25s; }
  .dl-tog input { position: absolute; opacity: 0; pointer-events: none; }
  .dl-tog i { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line2, var(--line)); display: grid; place-items: center; color: transparent; transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease); }
  .dl-tog i svg { width: 11px; height: 11px; }
  .dl-tog.on { color: var(--fg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
  .dl-tog.on i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #fff); transform: scale(1.05); }
  .dl-tog:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); color: var(--fg); }
  .dl-tog:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
  .ds-head .dl-tog { margin-left: auto; margin-right: 8px; }
  .dens-btn.on { border-color: var(--accent); color: var(--fg); background: var(--accent-soft); }
  .dens-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; font-size: 13px; }
  .dens-wide .dens-main { grid-template-columns: 1fr !important; }
  .dens-wrap.no-list .dens-grid { display: none; }
  .dens-wide .dens-side { display: none; }
  .dens-main { grid-template-columns: minmax(0, 1.3fr) minmax(480px, 1fr); }
  .dens-key { position: absolute; left: 14px; bottom: 14px; z-index: 2; }
  .dk-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line2, var(--line)); background: color-mix(in srgb, var(--panel) 85%, transparent); color: var(--fg); font: 800 14px var(--font-ui); cursor: help; backdrop-filter: blur(6px); }
  .dk-pop { position: absolute; left: 0; bottom: 38px; width: 290px; display: flex; flex-direction: column; gap: 9px; padding: 13px 14px; border-radius: 14px; background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid var(--line); backdrop-filter: blur(10px); font-size: 12px; color: var(--fg2, var(--muted)); box-shadow: 0 18px 40px -16px rgba(0,0,0,.7); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .dk-pop b { color: var(--fg); font-size: 13px; }
  .dens-key:hover .dk-pop, .dk-btn:focus + .dk-pop { opacity: 1; transform: none; }
  .dk-row { display: flex; align-items: center; gap: 10px; line-height: 1.35; }
  .dk-ball { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 1.5px solid; }
  .dk-ball.bid { border-color: var(--d-bid, #2bc98a); background: color-mix(in srgb, var(--d-bid, #2bc98a) 30%, transparent); }
  .dk-ball.ask { border-color: var(--d-ask, #f2555f); background: color-mix(in srgb, var(--d-ask, #f2555f) 30%, transparent); }
  .dk-ball.big { width: 18px; height: 18px; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 30%, transparent); }
  .k-pill { font: 700 10px var(--font-num); padding: 2px 6px; border-radius: 999px; min-width: 34px; text-align: center; }
  .k-eta { background: #7c5cff; color: #fff; } .k-dist { background: var(--panel2); border: 1px solid var(--line2, var(--line)); color: var(--fg); }
  .k-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin: 0 11px; }
  .k-note { font-size: 11px; color: var(--muted); padding-top: 4px; border-top: 1px solid var(--line); }
  .dset-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; color: var(--fg); animation: tourIn .4s var(--ease); }
  .dset-box h3 { margin: 0 0 14px; font: 800 20px var(--font-display); }
  .dset-sec { margin-bottom: 16px; }
  .dset-l { font-weight: 700; font-size: 13px; margin-bottom: 8px; } .dset-l small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 2px; }
  .dset-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
  .dset-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-weight: 700; font-size: 12.5px; cursor: pointer; transition: all .2s; }
  .dset-chip.off { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--accent-soft); color: var(--fg); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--fg) 50%, transparent); }
  .dset-chip .x { opacity: .6; }
  #dsAdd { width: 100%; }
  .dset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
  .dset-f { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--fg2, var(--muted)); }
  .dset-ex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dset-exb { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--fg); font-weight: 700; font-size: 13.5px; cursor: pointer; text-align: left; transition: all .2s; }
  .dset-exb .ck { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line2, var(--line)); flex: none; display: grid; place-items: center; }
  .dset-exb.on { border-color: var(--accent); background: var(--accent-soft); } .dset-exb.on .ck { background: var(--accent); border-color: var(--accent); }
  .dset-exb.on .ck::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--accent-ink, #1c1003); border-top: 0; border-right: 0; rotate: -45deg; translate: 0 -1px; }
  .dset-exb .lg { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 800 10px var(--font-num); color: #111; flex: none; }
  .dset-exb small { margin-left: auto; font: 600 10.5px var(--font-num); color: var(--muted); }
  .dset-exb[disabled] { opacity: .45; cursor: not-allowed; }
  .dset-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
  .dset-foot #dsReset { margin-right: auto; }
  .dset-box { width: min(720px, 100%); }
  .dset-tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; }
  .dset-tabs button { flex: 1; background: none; border: 0; color: var(--muted); font-weight: 700; font-size: 13px; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
  .dset-tabs button.active { background: var(--panel2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
  .dset-f small { font-weight: 500; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
  .dset-seg { display: flex; gap: 4px; flex-wrap: wrap; }
  .dset-seg button { flex: 1; min-width: 46px; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 12.5px; padding: 8px 8px; border-radius: 9px; cursor: pointer; transition: all .2s; }
  .dset-seg button.active { border-color: var(--accent); color: var(--fg); background: var(--accent-soft); }
  .dset-step { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .dset-step button { height: 36px; background: none; border: 0; color: var(--fg); font-size: 18px; cursor: pointer; } .dset-step button:hover { background: var(--panel2); color: var(--accent); }
  .dset-step b { text-align: center; font: 700 14px var(--font-num); }
  .dset-checks { display: grid; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
  .dset-chk { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
  .dset-chk input { display: none; }
  .dset-chk span { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line2, var(--line)); display: grid; place-items: center; transition: all .2s; flex: none; }
  .dset-chk input:checked + span { background: var(--accent); border-color: var(--accent); }
  .dset-chk input:checked + span::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--accent-ink, #1c1003); border-top: 0; border-right: 0; rotate: -45deg; translate: 0 -1px; }
  @media (max-width: 560px) { .dset-grid { grid-template-columns: 1fr; } .dens-key { display: none; } }
  .dens-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .ds-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
  .ds-title { font: 800 18px var(--font-display); letter-spacing: -.02em; }
  .ds-title small { font: 600 12px var(--font-num); margin-left: 6px; }
  .ds-chart { position: relative; flex: 1; min-height: 330px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
  .ds-list { display: flex; flex-direction: column; gap: 6px; }
  .ds-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); font-size: 13px; }
  .ds-row .ic { width: 8px; height: 8px; border-radius: 50%; }
  .ds-row .num { font-family: var(--font-num); }
  #dOpenBig[disabled] { opacity: .45; pointer-events: none; }
  @media (max-width: 1100px) { .dens-main { grid-template-columns: 1fr !important; } .dens-map { height: 70vh; min-height: 480px; } }
  .dens-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
  .dens-tip { position: absolute; z-index: 2; pointer-events: none; background: var(--panel); border: 1px solid var(--line2, var(--line)); border-radius: 10px; padding: 9px 11px; font-size: 12px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.6); min-width: 170px; }
  .dens-tip b { font-size: 13px; } .dens-tip .r { display: flex; justify-content: space-between; gap: 14px; margin-top: 3px; color: var(--muted); } .dens-tip .r span:last-child { color: var(--fg); font-family: var(--font-num); }
  .dens-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
  .dens-th { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 16px; }
  .dens-table td { font-size: 13px; } .dens-table tbody tr { cursor: pointer; } .dens-table tbody tr:hover td { background: var(--panel2); }
  .dens-table .num { font-family: var(--font-num); }
  .side-b { color: var(--d-bid, #2bc98a); font-weight: 700; } .side-a { color: var(--d-ask, #f2555f); font-weight: 700; }
  .eat { display: inline-flex; align-items: center; gap: 8px; } .eat i { width: 60px; height: 5px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; display: inline-block; }
  .eat i b { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 3px; }
  .ex-tag { font: 700 9.5px var(--font-num); padding: 1px 5px; border-radius: 5px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); vertical-align: 1px; }
  .dens-feed { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow: auto; }
  .dens-ev { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); font-size: 12.5px; cursor: pointer; animation: rise .5s var(--ease); }
  .dens-ev .ic { width: 8px; height: 8px; border-radius: 50%; } .dens-ev small { color: var(--muted); font-family: var(--font-num); }
  .dens-note { font-size: 12px; margin: 4px 2px 20px; line-height: 1.5; }
  @media (max-width: 1100px) { .dens-wrap.no-list { height: auto; display: block; } .dens-wrap.no-list .dens-map { height: 70vh; } .dens-title .muted { display: none; } }
  @media (max-width: 1000px) { .dens-grid { grid-template-columns: 1fr; } #dSearch { margin-left: 0; width: 100%; } }
  .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
  .kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
  .kpi .t { font: 700 11px var(--font-num); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .kpi .v { font: 800 28px var(--font-display); margin: 6px 0 2px; }
  .kpi .s { color: var(--muted); font-size: 12px; }
  .card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
  .card h3 { margin: 0 0 2px; font-size: 15px; }
  .bars10 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; align-items: end; height: 170px; margin-top: 14px; }
  .bar10 { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; cursor: pointer; background: none; border: 0; padding: 0; }
  .bar10 .n { font: 700 13px var(--font-num); }
  .bar10 .col { width: 100%; max-width: 38px; border-radius: 7px; background: var(--track); position: relative; overflow: hidden; height: 110px; }
  .bar10 .col i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--grad); border-radius: 7px; transition: height .6s var(--ease); }
  .bar10 .d { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2; }
  .bar10.active .col { outline: 2px solid var(--accent); outline-offset: 2px; }
  .ltable { width: 100%; border-collapse: collapse; }
  #lRows tr.lrow { cursor: pointer; transition: background .2s; } #lRows tr.lrow:hover td { background: color-mix(in srgb, var(--accent) 6%, transparent); }
  #lRows tr.lrow .chev { display: inline-block; color: var(--muted); transition: rotate .3s var(--ease); } #lRows tr.lrow.open .chev { rotate: 90deg; color: var(--accent); }
  #lRows tr.ldet td { padding: 0 12px 14px; white-space: normal; }
  .ldet-box { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: center; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 5%, var(--bg2)); border: 1px solid var(--line); animation: rise .35s var(--ease); }
  .ldet-box div span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; } .ldet-box div b { font-size: 15px; }
  .ldet-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  .tag-stock { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: var(--panel2); color: var(--muted); margin-left: 6px; }
  @media (max-width: 760px) { .ldet-box { grid-template-columns: 1fr 1fr; } }
  .ltable th, .ltable td { padding: 11px 12px; text-align: left; white-space: nowrap; }
  .ltable thead th { font: 700 11px var(--font-num); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); }
  .ltable tr.day td { background: var(--bg2); color: var(--muted); font-size: 12px; font-weight: 700; }
  .ltable tbody tr:not(.day) { border-bottom: 1px solid var(--line); }
  .ltable td.sym { font-weight: 800; }
  .ltable .ago { font: 12px var(--font-num); }
  .ltable .ago small { display: block; color: var(--muted); }
  .icon-btn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 5px 9px; cursor: pointer; font-size: 12px; }
  .icon-btn:hover { color: var(--accent); border-color: var(--accent); }
  @media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bars10 { gap: 4px; } }

  /* ---------- Обновления ---------- */
  .upd-hero { text-align: center; padding: 30px 0 20px; }
  .upd-hero .eyebrow { align-self: center; }
  .upd-hero h2 { font: 800 clamp(30px, 5vw, 44px) var(--font-display); margin: 12px 0 8px; letter-spacing: -.02em; }
  .upd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .upd { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .4s var(--ease), transform .4s var(--ease); }
  .upd:hover { border-color: color-mix(in srgb, var(--accent) 30%, transparent); transform: translateY(-2px); }
  .upd.main { grid-column: 1 / -1; flex-direction: row; }
  .upd .cover { height: 190px; position: relative; overflow: hidden; display: flex; align-items: flex-start; padding: 18px 20px; color: var(--fg); border-bottom: 1px solid var(--line);
    background: radial-gradient(130% 120% at 100% 0%, var(--accent-soft), transparent 58%), linear-gradient(160deg, var(--panel2), var(--bg2)); }
  .upd.main .cover { height: auto; min-height: 280px; flex: 1.1; border-bottom: 0; border-right: 1px solid var(--line); }
  .cover .ill { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .7s var(--ease); }
  .upd { cursor: pointer; }
  .upd:hover .cover .ill { transform: scale(1.03); }
  .upd:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .upd-more { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--accent); }
  .cover .ctitle { position: relative; z-index: 1; font: 800 22px/1.05 var(--font-display); letter-spacing: -.02em; color: var(--fg); text-shadow: 0 2px 18px var(--bg2); }
  .ill .float { animation: ifloat 6s ease-in-out infinite; }
  .ill .spin { animation: ispin 26s linear infinite; }
  .ill .pulse { transform-box: fill-box; transform-origin: center; animation: ipulse 2.6s ease-out infinite; }
  .ill .pulse.d2 { animation-delay: 1.3s; }
  .ill .ring { transform-box: fill-box; transform-origin: 50% 10%; animation: iring 3.2s ease-in-out infinite; }
  .ill .dash { animation: idash 1.4s linear infinite; }
  .ill .draw { stroke-dasharray: 180; stroke-dashoffset: 180; animation: idraw 2.8s var(--ease) infinite; }
  .ill .twinkle { transform-box: fill-box; transform-origin: center; animation: itw 3.4s ease-in-out infinite; }
  .ill .twinkle.d2 { animation-delay: -1.2s; } .ill .twinkle.d3 { animation-delay: -2.2s; }
  @keyframes ifloat { 50% { transform: translateY(-6px); } }
  @keyframes ispin { to { transform: rotate(360deg); } }
  @keyframes ipulse { 0% { transform: scale(.7); opacity: .55; } 100% { transform: scale(2); opacity: 0; } }
  @keyframes iring { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(14deg); } 82% { transform: rotate(-12deg); } 88% { transform: rotate(7deg); } 94% { transform: rotate(-4deg); } }
  @keyframes idash { to { stroke-dashoffset: -24; } }
  @keyframes idraw { 0% { stroke-dashoffset: 180; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -180; } }
  @keyframes itw { 0%, 100% { transform: scale(.6) rotate(0); opacity: .4; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .ill * { animation: none !important; } }
  .news .news-box { width: min(880px, 100%); height: auto; max-height: 100%; overflow-y: auto; position: relative; display: block; }
  .news-x { position: absolute !important; right: 14px; top: 12px; z-index: 3; background: var(--panel) !important; border: 1px solid var(--line) !important; }
  .news-cover { position: relative; height: 320px; overflow: hidden; display: flex; align-items: flex-start; padding: 24px 28px; border-bottom: 1px solid var(--line);
    background: radial-gradient(130% 120% at 100% 0%, var(--accent-soft), transparent 58%), linear-gradient(160deg, var(--panel2), var(--bg2)); }
  .news-cover .ill { position: absolute; inset: 0; width: 100%; height: 100%; }
  .news-cover .ctitle { position: relative; z-index: 1; font: 800 34px/1.05 var(--font-display); letter-spacing: -.02em; color: var(--fg); text-shadow: 0 2px 18px var(--bg2); }
  .news-cover .ctitle em, .cover .ctitle em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .news-body { padding: 24px 32px 30px; }
  .news-body .date { font: 12px var(--font-num); color: var(--muted); display: flex; gap: 8px; align-items: center; }
  .news-body h2 { font: 800 26px/1.15 var(--font-display); letter-spacing: -.02em; margin: 10px 0 10px; }
  .news-lead { font-size: 16px; line-height: 1.6; color: var(--fg2); margin: 0 0 8px; }
  .news-body section { margin-top: 20px; }
  .news-body h3 { margin: 0 0 8px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
  .news-body h3::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--grad); flex: none; }
  .news-body ul { margin: 0; padding-left: 18px; }
  .news-body li { color: var(--fg2); line-height: 1.65; margin: 3px 0; }
  .news-body li::marker { color: var(--accent); }
  .news-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
  @media (max-width: 640px) { .news-cover { height: 220px; } .news-body { padding: 20px; } }
  .upd.main .cover .ctitle { font-size: 38px; }
  .cover .ctitle em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .upd .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
  .upd .date { font: 12px var(--font-num); color: var(--muted); display: flex; gap: 8px; align-items: center; }
  .upd h3 { margin: 0; font-size: 18px; }
  .upd p { margin: 0; color: var(--muted); }
  @media (max-width: 900px) { .upd-grid { grid-template-columns: 1fr; } .upd.main { flex-direction: column; } }

  /* ---------- Документация ---------- */
  .docs { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; max-width: 1240px; margin: 0 auto; }
  .docs-side { position: sticky; top: 72px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 90px); overflow: auto; padding-right: 4px; }
  .doc-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; margin-bottom: 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
  .doc-search:focus-within { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
  .doc-search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
  .doc-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--fg); font: 500 13.5px var(--font-ui); padding: 10px 0; }
  .doc-grp { font: 700 10.5px var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 12px 6px; }
  .docs-side button { display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 0; padding: 8px 12px; border-radius: 10px; color: var(--fg2, var(--muted)); cursor: pointer; font-weight: 600; font-size: 13.5px; transition: background .2s, color .2s; }
  .docs-side button svg { width: 17px; height: 17px; flex: none; opacity: .8; }
  .docs-side button:hover { background: var(--panel); color: var(--fg); }
  .docs-side button.active { background: var(--accent-soft); color: var(--fg); box-shadow: inset 2px 0 0 var(--accent); }
  .docs-side button.active svg { color: var(--accent); opacity: 1; }
  .doc-article { min-width: 0; background: none; border: 0; padding: 0; max-width: none; animation: rise .35s var(--ease); }
  .doc-article h2 { font: 800 clamp(26px, 2.6vw, 34px)/1.1 var(--font-display); margin: 8px 0 12px; letter-spacing: -.02em; }
  .doc-article h3 { margin: 30px 0 10px; font: 800 18px var(--font-display); letter-spacing: -.01em; }
  .doc-article p, .doc-article li { color: var(--fg2, var(--muted)); line-height: 1.7; font-size: 14.5px; }
  .doc-article ul, .doc-article ol { padding-left: 20px; }
  .doc-article dl dt { font-weight: 800; margin-top: 14px; color: var(--fg); }
  .doc-article dl dd { margin: 3px 0 0; color: var(--fg2, var(--muted)); line-height: 1.6; }
  .doc-article kbd { font: 600 11.5px var(--font-num); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line2, var(--line)); border-bottom-width: 2px; background: var(--panel); color: var(--fg); }
  .doc-body { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px; }
  .doc-crumb { font: 700 11px var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: color-mix(in srgb, var(--accent) 80%, var(--fg)); }
  .doc-hero { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); padding: 34px 34px 26px; background: radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), radial-gradient(60% 80% at 100% 100%, color-mix(in srgb, var(--up, #2bc98a) 10%, transparent), transparent 60%), var(--panel); }
  .doc-hero p { max-width: 640px; font-size: 15px; }
  .doc-acts { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
  .doc-acts .btn { display: inline-flex; align-items: center; gap: 8px; }
  .doc-acts .btn svg { width: 16px; height: 16px; }
  .doc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
  .doc-stats b { display: block; font: 800 24px var(--font-display); color: var(--accent); }
  .doc-stats span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .doc-h { font: 700 12px var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 30px 0 12px; }
  .doc-ex { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
  .doc-ex div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
  .doc-ex div.soon { border-style: dashed; opacity: .75; }
  .doc-ex div { white-space: nowrap; } .doc-ex em { white-space: nowrap; margin-left: auto; font: 700 10px var(--font-ui); font-style: normal; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; }
  .doc-ex .live em { color: var(--up, #2bc98a); background: color-mix(in srgb, var(--up, #2bc98a) 14%, transparent); }
  .doc-ex .soon em { color: var(--accent); background: var(--accent-soft); }
  .doc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .doc-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; text-align: left; color: inherit; font: inherit; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
  .doc-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--accent) 50%, transparent); }
  .doc-card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
  .doc-card .ic svg { width: 20px; height: 20px; }
  .doc-card b { display: block; font-size: 14.5px; margin-bottom: 3px; } .doc-card span { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .doc-card .go { color: var(--muted); font-size: 18px; } .doc-card:hover .go { color: var(--accent); }
  .doc-steps { list-style: none; padding: 0 !important; counter-reset: st; display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
  .doc-steps li { position: relative; padding: 12px 14px 12px 50px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
  .doc-steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font: 800 12px var(--font-num); background: var(--accent); color: var(--accent-ink, #1c1003); }
  .doc-steps li b { color: var(--fg); }
  .doc-tip { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; margin: 16px 0; background: color-mix(in srgb, var(--accent) 8%, var(--bg2)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
  .doc-tip.warn { background: color-mix(in srgb, var(--down, #f2555f) 8%, var(--bg2)); border-color: color-mix(in srgb, var(--down, #f2555f) 30%, var(--line)); }
  .doc-tip svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; } .doc-tip.warn svg { color: var(--down, #f2555f); }
  .doc-tip p { margin: 0; font-size: 13.5px; } .doc-tip b { color: var(--fg); }
  .doc-keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; margin: 12px 0; }
  .doc-keys span { color: var(--fg2, var(--muted)); font-size: 14px; }
  .doc-ill { position: relative; margin: 6px 0 22px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); aspect-ratio: 16 / 6.4; }
  .doc-ill.tall { aspect-ratio: 16 / 7.5; }
  .doc-ill canvas { position: absolute; inset: 0; width: 100%; height: calc(100% - 34px); display: block; }
  .doc-ill span { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; display: flex; align-items: center; padding: 0 14px; font-size: 12.5px; color: var(--muted); background: color-mix(in srgb, var(--panel) 70%, transparent); border-top: 1px solid var(--line); }
  .doc-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
  .doc-nav button { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); color: var(--fg); cursor: pointer; font: 700 14px var(--font-ui); text-align: left; transition: border-color .25s; max-width: 48%; }
  .doc-nav button:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
  .doc-nav button small { font: 600 11px var(--font-ui); color: var(--muted); } .doc-nav .nx { margin-left: auto; text-align: right; }
  .doc-go { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
  .doc-go:hover { text-decoration: underline; text-underline-offset: 3px; }
  body.glass .doc-body, body.glass .doc-card, body.glass .doc-ex div, body.glass .doc-hero { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  @media (max-width: 900px) { .docs { grid-template-columns: 1fr; } .docs-side { position: static; max-height: none; } .doc-cards { grid-template-columns: 1fr; } .doc-stats { grid-template-columns: repeat(2, 1fr); } .doc-body { padding: 20px; } }

  /* ---------- Инструменты в развёрнутом графике, флажки, уведомления ---------- */
  .mini-body { display: flex; min-height: 0; }
  .mini-tools { display: none; border: 0; border-right: 1px solid var(--line); border-radius: 0; flex: none; width: 46px; }
  .mini.expanded .mini-body { flex: 1; }
  .mini.expanded .mini-tools { display: flex; }
  .mini .mini-chart { flex: 1; min-width: 0; }
  .flag { width: 22px; height: 22px; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--fc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--fc) 45%, transparent); border-radius: 6px; padding: 0; cursor: pointer; color: var(--fc); vertical-align: middle; transition: transform .15s, border-color .15s, background .15s; }
  .flag.off { background: transparent; border-color: var(--line2); color: var(--muted); }
  .flag.off:hover { border-color: var(--accent); color: var(--accent); }
  .flag:hover { transform: scale(1.15); }
  .flag.off svg path { fill: none; }
  .flag svg { width: 12px; height: 12px; }
  .flag-mark svg { width: 14px; height: 14px; }
  .flag-mark { color: var(--fc); display: inline-flex; margin-right: 6px; vertical-align: -1px; }
  .flag-filter { display: flex; gap: 6px; align-items: center; width: 100%; flex-wrap: wrap; padding-top: 2px; }
  .fchip { background: var(--panel2); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
  .fchip.active { color: var(--accent); border-color: var(--accent); }
  .fdot { min-width: 20px; height: 20px; border-radius: 999px; border: 2px solid transparent; background: var(--fc); cursor: pointer; font: 700 10px var(--font-num); color: #1c1003; padding: 0 5px; transition: transform .15s; }
  .fdot:hover { transform: scale(1.12); }
  .fdot.active { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
  .flag-pop { position: fixed; z-index: 70; display: flex; gap: 6px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 16px 36px -10px rgba(0,0,0,.7); animation: pop .25s var(--ease); }
  .flag-pop .fdot { width: 22px; height: 22px; padding: 0; }
  .fclear { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; padding: 2px 6px; }
  .fclear:hover { color: var(--fg); }
  .toasts { position: fixed; right: 16px; top: 70px; z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 32px)); }
  .toast { background: var(--toast); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-left: 3px solid var(--accent); border-radius: 12px; padding: 12px 14px; cursor: pointer; box-shadow: 0 18px 40px -12px rgba(0,0,0,.7), 0 0 24px -8px color-mix(in srgb, var(--accent) 40%, transparent); animation: slidein .45s var(--ease); transition: opacity .4s, transform .4s; }
  .toast b { display: block; margin-bottom: 2px; }
  .toast small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
  .toast.out { opacity: 0; transform: translateX(20px); }
  .tool.mag-off { color: var(--muted); opacity: .55; }
  .tool.mag-weak { color: var(--accent); }
  .tool.mag-strong { color: var(--accent-ink); background: var(--grad); }
  .tool.mag-strong:hover { color: var(--accent-ink); filter: brightness(1.08); }
  .mag-pop { position: fixed; z-index: 70; display: flex; flex-direction: column; gap: 2px; width: 280px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 16px 36px -10px rgba(0,0,0,.7); animation: pop .25s var(--ease); }
  .mag-pop button { display: flex; gap: 10px; align-items: center; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
  .mag-pop button:hover { background: var(--panel2); }
  .mag-pop button.active { background: var(--accent-soft); }
  .mag-pop b { display: block; font-size: 13px; }
  .mag-pop small { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
  .mag-ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; }
  .mag-ico svg { width: 18px; height: 18px; }
  .mag-ico.mag-off { color: #5a5860; background: var(--bg2); }
  .mag-ico.mag-weak { color: var(--accent); background: var(--accent-soft); }
  .mag-ico.mag-strong { color: var(--accent-ink); background: var(--grad); }
  @keyframes slidein { from { opacity: 0; transform: translateX(30px); } }

  /* ---------- Палитра тем и уведомления у ника ---------- */
  :root[data-theme="light"] body:not(.landing) .topbar { border-bottom-color: var(--line); }
  body.landing #themeBtn, body.landing #bellBtn { display: none; }
  .tb-btn { position: relative; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
  .tb-btn:hover { border-color: var(--line2); }
  #bellBtn { margin-left: -12px; }
  #userChip { margin-left: -10px; }
  .tb-btn svg { width: 17px; height: 17px; }
  .bell-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--down); color: #fff; font: 700 10px var(--font-num); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
  .tb-btn.ring svg { animation: ring .8s var(--ease); transform-origin: 50% 15%; }
  @keyframes ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-14deg); } 60% { transform: rotate(9deg); } 80% { transform: rotate(-5deg); } }
  .pop { position: fixed; z-index: 72; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -16px rgba(0,0,0,.7); animation: pop .3s var(--ease); }
  #themePop { width: min(384px, calc(100vw - 16px)); padding: 12px; }
  .pop-t { font: 700 11px var(--font-num); text-transform: uppercase; letter-spacing: .08em; color: var(--fg2); margin: 2px 4px 10px; }
  .themes { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 4px; }
  .th-item { display: flex; align-items: center; gap: 8px; padding: 5px 4px 5px 6px; color: var(--fg); border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer; text-align: left; font-weight: 700; font-size: 13px; transition: background .15s, border-color .15s; }
  .th-item:hover { background: var(--panel2); }
  .th-item.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent), 0 6px 18px -10px var(--accent); }
  .th-item.active .th-sw { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 8px; }
  .th-item.wide { width: 100%; }
  .th-del.armed { color: #fff !important; background: #e5484d !important; border-radius: 6px; }
  .th-del:hover { color: #f2555f; }
  .th-top-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; } .th-top-row .th-item { min-width: 0; }
  .th-ok { margin-left: auto; color: var(--accent); font-weight: 800; }
  .th-sw { width: 34px; height: 25px; flex: none; display: block; }
  .th-name { flex: 1; min-width: 0; color: var(--fg); font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .th-name small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
  .th-item.active .th-name { color: var(--fg); }
  .th-acts { display: flex; gap: 2px; margin-left: auto; }
  .th-act { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--muted); opacity: 0; transition: opacity .15s, color .15s, background .15s; }
  .th-item:hover .th-act, .th-item:focus-visible .th-act, .th-fav.on { opacity: 1; }
  .th-act:hover { background: var(--panel2); color: var(--fg); }
  .th-fav.on { color: #ffc23d; }
  .th-fav:not(.on) svg path { fill: none; }
  .tp-top2 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .tp-top2 .pop-t { margin: 0 4px; }
  .ttabs { display: flex; gap: 2px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin: 10px 0 8px; }
  .ttab { flex: 1; background: none; border: 0; border-radius: 7px; padding: 7px 8px; font-size: 13px; font-weight: 700; color: var(--fg2); cursor: pointer; transition: background .15s, color .15s; }
  .ttab:hover { color: var(--fg); }
  .ttab.active { background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
  .ttab.star { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }
  .ttab.star span { font: 700 11px var(--font-num); }
  .ttab.star.active, .ttab.star:hover { color: #ffc23d; border-color: color-mix(in srgb, #ffc23d 50%, transparent); }
  .ttab-hint { font-size: 11.5px; color: var(--muted); margin: 0 4px 8px; }
  .te-name { width: 210px; }
  .btn.danger { color: var(--down); }
  .btn.danger:hover { border-color: var(--down); }
  .th-item.wide { margin-bottom: 6px; }
  .pop-sep { height: 1px; background: var(--line); margin: 10px 0; }
  .pop-sub { display: flex; align-items: baseline; gap: 8px; margin: 10px 4px 6px; font-size: 12px; font-weight: 700; color: var(--fg2); }
  .pop-sub span { font-size: 11px; font-weight: 500; color: var(--muted); }
  .pop-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
  .pop-actions .btn { flex: 1; }
  #alertPop { width: 380px; display: flex; flex-direction: column; max-height: min(560px, calc(100vh - 80px)); overflow: hidden; }
  .al-head { padding: 12px; border-bottom: 1px solid var(--line); }
  .al-head .seg { display: flex; }
  .al-head .seg .tf { flex: 1; }
  .al-list { overflow-y: auto; padding: 6px; flex: 1; }
  .al-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; background: none; border: 0; text-align: left; cursor: pointer; }
  button.al-row:hover, .al-row:hover { background: var(--panel2); }
  .al-main { flex: 1; min-width: 0; font-size: 13px; color: var(--fg2); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
  .al-main b { color: var(--fg); }
  .al-main small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
  .al-ico { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px; }
  .al-ico.up { background: color-mix(in srgb, var(--up) 15%, transparent); color: var(--up); }
  .al-ico.down { background: color-mix(in srgb, var(--down) 15%, transparent); color: var(--down); }
  .al-empty { padding: 26px 18px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.5; }
  .al-foot { border-top: 1px solid var(--line); padding: 6px 14px 10px; }
  .crow2.tight { padding: 6px 0; font-size: 13px; font-weight: 600; }
  .decor-row { padding: 4px 6px 8px !important; }
  .decor-row small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
  .crow2.tight + .crow2.tight { border-top: 0; }
  .theme-ed .cset-box { width: min(1080px, 100%); height: min(720px, 100%); }
  .te-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .theme-ed .cset-body { padding: 14px 20px 20px; gap: 0; border-right: 1px solid var(--line); }
  .te-prev { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
  .tp-label { font: 700 11px var(--font-num); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
  .tp-note { font-size: 12px; color: var(--muted); text-align: center; }
  .tp-frame { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px -24px rgba(0,0,0,.6); transition: background .3s, border-color .3s; }
  .tp-top { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg2); }
  .tp-logo { font: 800 13px var(--font-display); color: var(--fg); }
  .tp-logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .tp-nav { display: flex; gap: 4px; flex: 1; }
  .tp-nav i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 9px; border-radius: 7px; }
  .tp-nav i.on { color: var(--accent); background: var(--accent-soft); }
  .tp-btn { font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 8px; background: var(--grad); color: var(--accent-ink); }
  .tp-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 8px; padding: 8px; }
  .tp-chart { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .tp-head { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--fg); font-size: 13px; }
  .tp-head .tp-price { font: 600 12px var(--font-num); }
  .tp-head .tp-chg { font: 12px var(--font-num); }
  .tp-tf { margin-left: auto; display: flex; gap: 2px; }
  .tp-tf i { font: 600 11px var(--font-num); font-style: normal; color: var(--muted); padding: 2px 6px; border-radius: 5px; }
  .tp-tf i.on { background: var(--grad); color: var(--accent-ink); }
  #tePrevChart { flex: 1; min-height: 0; position: relative; }
  #tePrevChart canvas { pointer-events: none; }
  .tp-list { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
  .tp-row { display: flex; justify-content: space-between; padding: 7px 10px; font-size: 12px; font-weight: 700; color: var(--fg); border-bottom: 1px solid var(--line); }
  .tp-row span:last-child { font: 600 11px var(--font-num); }
  .tp-row.hdr { color: var(--muted); font-weight: 600; font-size: 11px; }
  .tp-row.sel { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
  #tePrev .up { color: var(--up); } #tePrev .down { color: var(--down); }
  @media (max-width: 860px) { .te-grid { grid-template-columns: 1fr; overflow-y: auto; } .theme-ed .cset-body { border-right: 0; overflow: visible; } .te-prev { min-height: 420px; } }


  /* ---------- Окно настроек графика ---------- */
  .btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
  .cset { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 16px; background: rgba(5,5,6,.6); backdrop-filter: blur(8px); animation: fade .3s var(--ease); }
  .cset-box { width: min(1040px, 100%); height: min(740px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 40px 90px -20px rgba(0,0,0,.75); animation: pop .45s var(--ease); }
  .cset-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .cset-top h2 { margin: 0; font: 800 20px var(--font-display); letter-spacing: -.01em; }
  .cset-top .x { position: static; }
  .cset-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 310px minmax(0, 1fr); }
  .cset-side { border-right: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
  .cset-nav { display: flex; flex-direction: column; gap: 3px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .cset-nav button { display: flex; align-items: center; gap: 10px; background: none; border: 1px solid transparent; border-radius: 11px; padding: 10px 12px; color: var(--fg2); font-weight: 700; cursor: pointer; text-align: left; transition: all .2s; }
  .cset-nav button svg { width: 18px; height: 18px; flex: none; }
  .cset-nav button:hover { background: var(--panel2); color: var(--fg); }
  .cset-nav button.active { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--fg); }
  .cset-nav button.active svg { color: var(--accent); }
  .cset-prev-t { margin: 14px 2px 8px; font: 700 11px var(--font-num); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
  .cset-prev { height: 230px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; }
  .cset-prev canvas { pointer-events: none; }
  .cset-sec { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
  .cset-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 12px; }
  .cset-head h3 { margin: 0 0 2px; font-size: 18px; }
  .cset-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 22px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
  .cgroup { flex: none; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .cgt { padding: 12px 16px; font: 700 11px var(--font-num); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); }
  .crow2 { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; transition: opacity .2s; }
  .crow2 + .crow2 { border-top: 1px solid var(--line); }
  .crow2.off { opacity: .4; pointer-events: none; }
  .cl b { display: block; font-size: 14px; }
  .cl small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
  .pills { display: flex; gap: 8px; flex-wrap: wrap; }
  .cpill { position: relative; display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px 6px 6px; font-weight: 700; font-size: 13px; cursor: pointer; transition: border-color .2s; }
  .cpill:hover { border-color: var(--line2); }
  .cpill .sw { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
  .cpill .num { font-size: 12px; color: var(--muted); }
  .cpill input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
  .cpill:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
  .rng { display: flex; align-items: center; gap: 10px; }
  .rng input { width: 170px; accent-color: var(--accent); }
  .rng .val { font-size: 12px; color: var(--muted); width: 44px; text-align: right; }
  .crow2 select.field { padding: 7px 10px; font-size: 13px; max-width: 260px; }
  .ctypes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px 16px; }
  .ctype { display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 6px; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--fg2); transition: all .2s; text-align: center; }
  .ctype svg { width: 22px; height: 22px; color: var(--muted); transition: color .2s; }
  .ctype:hover { border-color: var(--line2); color: var(--fg); }
  .ctype.active { border-color: var(--accent); background: var(--accent-soft); color: var(--fg); box-shadow: 0 0 0 1px var(--accent); }
  .ctype.active svg { color: var(--accent); }
  .cpresets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px 16px; }
  .preset.preset-site { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin: 14px 16px 0; padding: 12px 14px; border-radius: 13px; width: calc(100% - 32px); background: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 60%), var(--panel); }
  .preset-site .sw { height: 26px; } .preset-site .ps-t b { display: block; font-size: 14px; } .preset-site .ps-t small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; }
  .preset-site .ps-r { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--bg2); color: var(--accent); font-size: 15px; transition: transform .4s var(--ease); }
  .preset-site:hover .ps-r { transform: rotate(-180deg); } .preset-site.active .ps-r { background: var(--accent); color: var(--accent-ink); transform: none; }
  .preset { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 10px; cursor: pointer; text-align: left; font-weight: 700; font-size: 13px; transition: border-color .2s; }
  .preset:hover { border-color: var(--line2); }
  .preset.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
  .preset .sw { display: flex; height: 22px; border-radius: 6px; overflow: hidden; }
  .preset .sw i { flex: 1; }
  .switch { position: relative; width: 38px; height: 22px; flex: none; }
  .switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
  .switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line2); transition: background .2s; pointer-events: none; }
  .switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
  .switch input:checked + span { background: var(--accent); }
  .switch input:checked + span::after { transform: translateX(16px); }
  .switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
  .cset-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
  .mini .exp-only { display: none; }
  .mini.expanded .exp-only { display: grid; }
  @media (max-width: 820px) { .cset-main { grid-template-columns: 1fr; } .cset-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 220px; } .ctypes, .cpresets { grid-template-columns: repeat(2, minmax(0, 1fr)); } .crow2 { flex-wrap: wrap; } }
