@charset "utf-8";
/* Светлый интерфейс с мягкими карточками. Цвет бренда задаётся одной переменной. */
@font-face { font-family: "Golos Text"; src: url(golos-text-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; src: url(golos-text-latin-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
:root {
  --accent: #ffc400; --accent-deep: #e6ae00; --accent-soft: #fff5cf;
  --ink: #15171b; --muted: #62666e; --line: #e9e7e1; --tile: #f6f5f1; --white: #fff; --page: #fbfaf8; --text-soft: #3b3f46; --top: rgba(255, 255, 255, .92); --field: #8a9099;
  --on: #14804a; --on-ink: #fff; --wait: #d99000; --bad: #d23c2f; --off: #9aa1aa;
  --wa: #25a35a; --tg: #2a9fd8; --mx: #6a4cf0; --code: #20242b; --code-ink: #e7ebf0;
  --radius: 18px; --radius-s: 12px; color-scheme: light;
}
:root[data-theme=dark] { --accent-soft: #3b3313; --ink: #f1f0ec; --muted: #a5a7ab; --line: #2f3135; --tile: #232428; --white: #1a1b1e; --page: #131416; --text-soft: #c9ced4; --top: rgba(27, 29, 33, .92); --field: #41464d; --code: #101214; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.5 "Golos Text", system-ui, sans-serif; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
h1 { font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin: 0 0 18px; }
h2 { font-size: 22px; line-height: 1.25; font-weight: 650; letter-spacing: -.01em; margin: 0 0 12px; }
h3 { font-size: 18px; font-weight: 650; margin: 0 0 8px; }
p { margin: 0 0 14px; max-width: 70ch; }
.muted { color: var(--muted); } .small { font-size: 14px; }
.lead { font-size: 18px; color: var(--text-soft); }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }
pre { background: var(--code); color: var(--code-ink); padding: 16px; margin: 0 0 14px; overflow-x: auto; border-radius: var(--radius-s); line-height: 1.5; }

.button { display: inline-block; background: var(--accent); color: #16181d; border: 0; border-radius: var(--radius-s); padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .12s; }
.button:hover { background: var(--accent-deep); }
.button.big { padding: 14px 24px; }
.button.ghost, .button.quiet { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button.ghost:hover, .button.quiet:hover { background: var(--tile); }
.button.danger { background: var(--white); color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
.button.danger:hover { background: var(--tile); }
.button:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

label { display: block; font-size: 14px; font-weight: 500; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--field); border-radius: var(--radius-s); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox] { width: auto; margin-top: 4px; }
.stack { display: grid; gap: 14px; max-width: 460px; justify-items: start; }
.stack label { width: 100%; }
.inline { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.inline label { flex: 1 1 220px; }
.wide-row { flex: 1 1 100%; }
.pair-fields { display: flex; flex-wrap: wrap; gap: 14px; }
.pair-fields label { flex: 1 1 220px; }
.steps { max-width: 70ch; padding-left: 22px; margin: 0 0 12px; }
.steps li { margin-bottom: 4px; }
.form-message { margin: 0; font-weight: 500; }
.form-message.ok { color: var(--on); }
.error { color: var(--bad); font-weight: 500; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.flash, .notice { background: var(--accent-soft); border-radius: var(--radius-s); padding: 13px 16px; margin: 0 0 20px; max-width: none; }
.notice p { margin-bottom: 8px; }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); padding: 12px 16px; white-space: nowrap; background: var(--tile); }
td { border-top: 1px solid var(--line); padding: 12px 16px; vertical-align: top; }

.logo { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--accent); color: #16181d; border-radius: 8px; font-weight: 800; font-size: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; text-decoration: none; }
.badge { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: #fff; font-weight: 700; }
.badge-whatsapp { background: var(--wa); } .badge-telegram { background: var(--tg); } .badge-max { background: var(--mx); }
.lamp { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--off); }
.lamp.on { background: var(--on); box-shadow: 0 0 0 4px rgba(26, 156, 91, .15); } .lamp.wait { background: var(--wait); } .lamp.bad { background: var(--bad); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }

/* Сайт */
.top { position: sticky; top: 0; z-index: 5; background: var(--top); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in, .foot-in { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.top nav { display: flex; gap: 22px; font-size: 15px; margin-right: auto; }
.top nav a, .nav-login, .foot-in a { text-decoration: none; } .top nav a:hover, .nav-login:hover, .foot-in a:hover { text-decoration: underline; }
.top-actions { display: flex; align-items: center; gap: 18px; font-size: 15px; white-space: nowrap; }
.site-main { max-width: 1120px; margin: 0 auto; padding: 0 24px 72px; }
.site-main > .flash { margin-top: 20px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 64px 0 56px; }
.hero h1 { font-size: 52px; line-height: 1.08; margin: 18px 0 20px; }
mark { white-space: nowrap; background: linear-gradient(transparent 62%, var(--accent) 62%); color: inherit; }
.pill { display: inline-block; background: var(--accent); border-radius: 999px; padding: 4px 13px; font-size: 13px; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.hero-art { position: relative; min-height: 420px; }
.blob { position: absolute; border-radius: 50%; filter: blur(4px); }
.blob-a { width: 340px; height: 340px; background: radial-gradient(circle, #ffe680, #fff8dc 70%); top: 20px; right: 0; }
.blob-b { width: 170px; height: 170px; background: #d8f2e2; bottom: 30px; left: 30px; }
.window { position: absolute; left: 30px; right: 30px; top: 90px; background: var(--code); border-radius: var(--radius); box-shadow: 0 24px 50px rgba(31, 35, 40, .22); overflow: hidden; }
.window-bar { display: flex; gap: 6px; padding: 12px 16px 0; } .window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #505660; }
.window pre { margin: 0; font-size: 13px; background: none; white-space: pre-wrap; }
.float { position: absolute; display: flex; gap: 10px; align-items: center; background: var(--white); border-radius: 14px; padding: 10px 14px; box-shadow: 0 10px 28px rgba(31, 35, 40, .14); font-size: 13px; }
.float .badge { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; } .float b { display: block; font-weight: 600; } .float span:not(.badge) { color: var(--muted); }
.float-a { top: 28px; left: 0; } .float-b { top: 268px; right: 0; } .float-c { bottom: 18px; left: 20px; }
.band { padding: 44px 0; } .band h2 { font-size: 30px; margin-bottom: 22px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { background: var(--tile); border-radius: var(--radius); padding: 22px; } .tile h3 { margin-top: 14px; } .tile p { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; } .tags span { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 13px; }
.steps-row { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 0; }
.steps-row li { counter-increment: s; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; } .steps-row li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #16181d; font-weight: 700; margin-bottom: 12px; }
.steps-row b { display: block; font-size: 17px; margin-bottom: 4px; } .steps-row span { color: var(--muted); font-size: 15px; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; } .split .card { border-color: var(--accent); margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; } .checks li { position: relative; padding: 0 0 12px 32px; } .checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; background: var(--on); color: var(--on-ink); border-radius: 50%; font-size: 12px; }
.cta { background: var(--accent-soft); border-radius: 24px; padding: 40px; text-align: center; margin-top: 24px; } .cta p { margin: 0 auto 18px; }
footer { border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); } .foot-in { flex-wrap: wrap; padding-block: 22px; } .foot-in span { margin-right: auto; font-weight: 600; color: var(--ink); }
.narrow { max-width: 440px; margin: 56px auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; } .narrow > p { margin: 16px 0 0; } .narrow h1 { font-size: 28px; }
.narrow .stack { max-width: none; } .narrow .button { width: 100%; }
.prose { max-width: 72ch; margin-top: 40px; } .prose.wide { max-width: none; } .prose h2 { margin-top: 32px; }

/* Кабинет */
body.app { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; background: var(--page); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px; padding: 22px 16px; background: var(--white); border-right: 1px solid var(--line); }
.side .brand { padding: 0 10px; }
.side nav { display: grid; gap: 2px; }
.side nav a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; } .side nav a:hover { background: var(--tile); }
.side nav a[aria-current] { background: var(--accent-soft); font-weight: 600; }
.side-out { margin-top: auto; padding: 0 12px; font-size: 13px; display: grid; gap: 6px; justify-items: start; overflow-wrap: anywhere; }
.app-main { width: 100%; max-width: 880px; padding: 36px 32px 72px; }
.app-main > .prose { margin-top: 0; }
.section-title { margin-top: 32px; }
.profile-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.profile-list a { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; text-decoration: none; transition: border-color .12s; }
.profile-list a:hover { border-color: var(--accent-deep); }
.profile-name { display: grid; flex: 1; min-width: 0; font-size: 14px; } .profile-name strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.crumb { font-size: 14px; color: var(--muted); }
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; } .profile-head h1 { margin: 0; font-size: 28px; overflow-wrap: anywhere; }
.big-status { margin: 0 0 18px; } .big-status .status { font-size: 15px; font-weight: 500; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.pairs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 0 0 20px; font-size: 15px; } .pairs dt { color: var(--muted); } .pairs dd { margin: 0; overflow-wrap: anywhere; }
.qr { display: inline-block; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; }
.qr img { display: block; width: 280px; max-width: 100%; height: auto; } .qr p { max-width: 280px; margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.code { margin-top: 14px; } .code strong { display: block; font-size: 28px; letter-spacing: .08em; }
.more { padding: 6px 24px; } .more details { padding: 14px 0; border-top: 1px solid var(--line); } .more details:first-child { border-top: 0; }
.more summary { cursor: pointer; font-weight: 600; } .more details > *:not(summary) { margin-top: 14px; } .more .scroll { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 860px) {
  h1 { font-size: 28px; }
  .top nav { display: none; } .top-in { justify-content: space-between; padding: 10px 16px; gap: 12px; } .site-main { padding: 0 16px 48px; } .foot-in { padding-inline: 16px; }
  .top-actions .button { padding: 9px 12px; font-size: 14px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 32px 0; } .hero h1 { font-size: 36px; } .hero-art { min-height: 380px; } .window { left: 0; right: 0; }
  .tiles, .steps-row, .split { grid-template-columns: minmax(0, 1fr); } .band h2 { font-size: 25px; } .cta { padding: 28px 18px; }
  body.app { display: block; } .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side nav { order: 3; flex: 1 1 100%; display: flex; overflow-x: auto; } .side nav a { white-space: nowrap; padding: 7px 10px; font-size: 14px; }
  .side-out { margin: 0 0 0 auto; padding: 0; display: block; } .side-out .muted { display: none; }
  .app-main { padding: 22px 16px 48px; } .card { padding: 18px; } .more { padding: 4px 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.token-scope { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.token-scope legend { padding: 0; margin-bottom: 8px; font-weight: 500; font-size: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.check input { width: auto; margin: 0; }
.token-profiles { display: grid; gap: 6px; padding-left: 24px; }

.invoice { max-width: 760px; }
.invoice h1 { font-size: 22px; margin: 24px 0 16px; }
.invoice small { color: var(--muted, #777); }
.invoice-bank td, .invoice-items td, .invoice-items th { border: 1px solid #333; padding: 6px 8px; }
.invoice-items { margin: 16px 0; }
.invoice-total { text-align: right; }
.invoice-sign { margin-top: 40px; }
@media print {
  .side, .no-print, .flash, .crumb { display: none !important; }
  body.app { display: block; background: #fff; }
  .app-main { max-width: none; padding: 0; }
}
.badge-telegram_bot { background: var(--tg); }
.badge-max_bot { background: var(--mx); } .badge-vk_group { background: #0077ff; }
.webhook-url { overflow-wrap: anywhere; margin-top: -8px; }
.hook-ok { color: var(--on); font-weight: 500; } .hook-fail { color: var(--bad); font-weight: 500; }

/* Каналы: свои цвета плиток */
.channel-whatsapp { --c: #1fa855; } .channel-telegram { --c: #2a9fd8; } .channel-max { --c: #6a4cf0; } .channel-telegram_bot { --c: #1787bd; } .channel-max_bot { --c: #4f36c9; } .channel-vk_group { --c: #2787f5; }
.badge { background: var(--c, #777); } .badge svg { width: 24px; height: 24px; }
.channel-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--c); color: #fff; } .channel-icon svg { width: 34px; height: 34px; }
.channel-icon.big { width: 92px; height: 92px; border-radius: 26px; } .channel-icon.big svg { width: 58px; height: 58px; }
.nav-group { padding: 16px 12px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.side-out form { display: grid; gap: 6px; justify-items: start; } .side-tools { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 10px; }
.theme-toggle { position: relative; flex: none; width: 42px; height: 24px; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; padding: 0; } .theme-toggle span { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.theme-toggle[aria-pressed=true] { background: var(--accent); } .theme-toggle[aria-pressed=true] span { left: 21px; }
.app-main { max-width: 980px; } .card, .scroll { background: var(--white); }
.setup { background: var(--accent-soft); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; } .setup h2 { margin-bottom: 14px; }
.setup-steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; } .setup-steps li { counter-increment: st; }
.setup-steps a { display: block; height: 100%; background: var(--white); border-radius: var(--radius-s); padding: 14px; text-decoration: none; } .setup-steps a:hover { box-shadow: inset 0 0 0 1px var(--accent-deep); }
.setup-steps b { display: block; } .setup-steps b::before { content: counter(st) ". "; } .setup-steps .done b::before { content: "✓ "; color: var(--on); } .setup-steps span { font-size: 14px; color: var(--muted); } .setup-steps .done { opacity: .65; }
.tile-group { margin: 18px 0 10px; font-size: 15px; color: var(--muted); }
.connect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.connect-tile { display: grid; justify-items: center; gap: 10px; padding: 24px 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; text-align: center; transition: transform .12s, box-shadow .12s; } .connect-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 22, 26, .1); }
.connect-page { max-width: 560px; margin: 8px auto 0; text-align: center; } .connect-page h1 { margin-top: 16px; } .connect-form { text-align: left; margin: 20px auto 0; } .connect-form .button { width: 100%; text-align: center; }
.empty { text-align: center; padding: 40px 20px; background: var(--white); border: 1px dashed var(--field); border-radius: var(--radius); margin-bottom: 20px; } .empty p { margin-inline: auto; }
.form-grid { display: grid; gap: 14px; } .form-grid > .button { justify-self: start; } .form-grid .notice { margin: 0; }
.step-box { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; margin: 0; display: grid; gap: 10px; } .step-box legend { padding: 0 6px; font-weight: 600; font-size: 14px; }
.row-actions { white-space: nowrap; } .row-actions a, .row-actions form { display: inline-block; margin-right: 12px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; } .stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; } .stat b { display: block; font-size: 26px; line-height: 1.2; } .stat span { font-size: 13px; color: var(--muted); }
.preview { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 16px; margin-bottom: 10px; } .preview p { margin: 4px 0 0; overflow-wrap: anywhere; }
.progress { display: block; width: 100%; height: 10px; margin: 8px 0 6px; appearance: none; border: 0; border-radius: 999px; overflow: hidden; background: var(--line); } .progress::-webkit-progress-bar { background: var(--line); } .progress::-webkit-progress-value { background: var(--accent-deep); } .progress::-moz-progress-bar { background: var(--accent-deep); }
form.inline { margin-bottom: 28px; } .step-more { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; } .step-more summary { cursor: pointer; font-weight: 600; font-size: 14px; } .step-more[open] summary { margin-bottom: 12px; } .step-more .step-box { margin-bottom: 10px; }
td a { font-weight: 500; }

/* Сайт */
body.site { background: var(--white); }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; } .pills li { display: flex; align-items: center; gap: 8px; padding: 5px 12px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; } .pills li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--on); box-shadow: 0 0 0 3px color-mix(in srgb, var(--on) 18%, transparent); }
.hero { padding: 56px 0 64px; } .hero h1 { font-size: 58px; line-height: 1.06; letter-spacing: -.03em; font-weight: 750; }
.hero-art { min-height: 480px; } .hero-glow { position: absolute; inset: 40px 20px 20px; border-radius: 40% 60% 55% 45%; background: var(--accent-soft); filter: blur(6px); }
.hero-chat { position: absolute; left: 12%; right: 6%; top: 70px; background: var(--white); border-radius: 24px; padding: 18px; box-shadow: 0 28px 60px rgba(20, 22, 26, .16); }
.hero-chat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; } .hero-chat-head div { flex: 1; } .hero-chat-head b { display: block; } .hero-chat-head div span { color: var(--muted); font-size: 13px; } .hero-chat-head i { font-style: normal; font-size: 12px; color: var(--on); font-weight: 600; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tile); font-weight: 600; }
.bubble { width: fit-content; max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 14px; margin: 0 0 8px; } .bubble.in { background: var(--tile); border-bottom-left-radius: 4px; } .bubble.out { margin-left: auto; background: var(--accent); color: #16181d; border-bottom-right-radius: 4px; }
.hero-chat-foot { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--muted); max-width: none; }
.float { background: var(--white); border-radius: 16px; } .float-a { top: 16px; left: 0; } .float-b { top: 330px; left: -8px; right: auto; } .float-c { bottom: 8px; right: 0; left: auto; } .float .badge svg { width: 20px; height: 20px; }
.band { padding: 52px 0; } .band h2 { font-size: 38px; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; margin-bottom: 28px; }
.tile { border-radius: 24px; padding: 26px; } .tile h3 { margin-top: 8px; font-size: 21px; line-height: 1.25; } .tile.tall { display: flex; flex-direction: column; } .tile.tall p { flex: 1; } .tile.tall a { font-weight: 600; text-decoration: none; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tiles.two { grid-template-columns: repeat(2, 1fr); } .tiles.three-small { margin-top: 20px; }
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .channel-card { border: 1px solid var(--line); border-radius: 24px; padding: 24px; transition: transform .12s, box-shadow .12s; } .channel-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20, 22, 26, .1); } .channel-card h3 { margin-top: 14px; font-size: 20px; } .channel-card p { margin: 0; color: var(--muted); font-size: 15px; }
.split-code { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; } .code-card { margin: 0; padding: 26px; border-radius: 24px; background: #16181d; color: #e7ebf0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cascade-row { display: flex; align-items: stretch; gap: 14px; margin-bottom: 18px; } .cascade-row > i { align-self: center; font-style: normal; font-size: 24px; color: var(--muted); } .cascade-step { flex: 1; display: grid; gap: 6px; justify-items: start; background: var(--tile); border-radius: 20px; padding: 20px; } .cascade-step span:last-child { font-size: 14px; color: var(--muted); }
.calc { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; } .calc-list { display: grid; gap: 8px; } .calc-row { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; } .calc-name { flex: 1; min-width: 0; } .calc-name b { display: block; } .calc-name span { font-size: 14px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 4px; flex: none; } .stepper button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--tile); color: var(--ink); font: inherit; font-size: 20px; cursor: pointer; } .stepper input { width: 58px; margin: 0; padding: 7px 4px; text-align: center; -moz-appearance: textfield; } .stepper input::-webkit-inner-spin-button { display: none; }
.calc-total { position: sticky; top: 84px; background: var(--accent-soft); border-radius: 24px; padding: 28px; } .calc-total strong { display: block; font-size: 46px; line-height: 1.1; letter-spacing: -.02em; margin: 6px 0 8px; } .calc-total .button { width: 100%; text-align: center; margin-bottom: 12px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; } .faq summary { cursor: pointer; font-size: 18px; font-weight: 600; } .faq details p { margin: 10px 0 0; color: var(--text-soft); }
.cta { background: var(--accent-soft); border-radius: 32px; padding: 52px 32px; } .cta h2 { font-size: 34px; }
.legal-note { margin: 20px 0 0; max-width: none; }
.top-actions .theme-toggle { margin-right: 2px; }

@media (max-width: 860px) {
  .hero h1 { font-size: 38px; } .band { padding: 34px 0; } .band h2 { font-size: 28px; margin-bottom: 18px; }
  .hero-chat { left: 0; right: 0; } .float-a { top: 0; left: 8px; } .float-b { left: 0; top: 320px; } .float-c { right: 8px; bottom: 0; }
  .tiles.two, .channel-grid, .split-code, .calc, .setup-steps { grid-template-columns: minmax(0, 1fr); } .calc-total { position: static; } .cascade-row { flex-direction: column; } .cascade-row > i { transform: rotate(90deg); align-self: center; }
  .connect-grid { grid-template-columns: repeat(2, 1fr); } .code-card { font-size: 13px; padding: 18px; }
  .side-out { display: flex; align-items: center; gap: 10px; } .side-tools { width: auto; margin: 0; gap: 8px; } .side-tools .muted { display: none; } .side-out form { display: block; } .nav-group { display: none; } .nav-login { display: none; } .top-actions { gap: 10px; }
}

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; } .about .about-text:only-child { grid-column: 1 / -1; } .about-stats { margin: 24px 0 0; } .about-img { width: 100%; height: auto; border-radius: 24px; display: block; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .case { border: 1px solid var(--line); border-radius: 24px; padding: 24px; } .case h3 { font-size: 19px; line-height: 1.25; } .case p { font-size: 15px; color: var(--text-soft); margin-bottom: 10px; } .case p:last-child { margin-bottom: 0; } .case b { color: var(--ink); } .case-img { width: calc(100% + 48px); margin: -24px -24px 18px; border-radius: 24px 24px 0 0; display: block; height: auto; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 36px; } .legal-nav { position: sticky; top: 84px; font-size: 14px; } .legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .legal-nav [aria-current] { font-weight: 600; } .legal-nav a { text-decoration: none; } .legal-nav a:hover { text-decoration: underline; }
.legal { margin-top: 0; font-size: 15px; } .legal h1 { font-size: 32px; } .legal p { max-width: none; } .legal ul { padding-left: 22px; } .legal li { margin-bottom: 6px; } .todo { background: var(--accent-soft); border-radius: 4px; padding: 0 4px; font-size: .9em; }
.foot-company { padding-top: 0; font-size: 13px; } .foot-company { color: var(--muted); }
@media (max-width: 860px) { .about, .case-grid, .legal-layout { grid-template-columns: minmax(0, 1fr); } .legal-nav { position: static; } .legal-layout { gap: 16px; padding-top: 20px; } }

/* Логотип и каналы без чужих значков */
.logo-mark { display: block; flex: none; border-radius: 9px; } .logo-word { font-weight: 600; letter-spacing: -.01em; font-size: 21px; } .logo-word b { font-weight: 800; color: #16181d; background: var(--accent); border-radius: 6px; padding: 0 5px; margin-left: 1px; }
.chan-tag { flex: none; display: inline-block; min-width: 44px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--tile); font-size: 12px; font-weight: 700; letter-spacing: .02em; text-align: center; white-space: nowrap; }
.channel-card h3 { margin-top: 6px; font-size: 24px; letter-spacing: -.01em; } .channel-card:hover { border-color: var(--accent-deep); }
.connect-tile { justify-items: start; text-align: left; gap: 4px; padding: 20px; } .connect-tile b { font-size: 19px; } .connect-tile span { font-size: 14px; color: var(--muted); } .connect-tile i { font-style: normal; font-size: 14px; font-weight: 600; margin-top: 12px; } .connect-tile:hover { border-color: var(--accent-deep); }
.connect-page h1 { margin-top: 8px; } .cascade-step { gap: 4px; } .cascade-step b { font-size: 20px; }
.float { padding: 12px 16px; }

.unlimited { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; background: #16181d; color: #fff; border-radius: 32px; padding: 40px; margin-bottom: 8px; } .unlimited h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.02em; color: var(--accent); margin-bottom: 12px; } .unlimited p { margin: 0; color: #d5d8dc; font-size: 17px; } .unlimited ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; } .unlimited li { background: #24272c; border-radius: 18px; padding: 18px 14px; } .unlimited b { display: block; font-size: 28px; line-height: 1.15; white-space: nowrap; } .unlimited li span { font-size: 13px; color: #b6bcc4; }
@media (max-width: 860px) { .unlimited { grid-template-columns: minmax(0, 1fr); padding: 26px 20px; border-radius: 24px; } .unlimited h2 { font-size: 30px; } .unlimited b { font-size: 22px; } }

/* Документация */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body.docs { display: grid; grid-template-columns: 280px minmax(0, 1fr); background: var(--white); }
.doc-nav { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--page); }
.doc-nav-top { padding: 18px 18px 10px; display: flex; align-items: center; justify-content: space-between; } .doc-menu { display: none; font: inherit; font-size: 14px; background: var(--tile); color: var(--ink); border: 0; border-radius: 10px; padding: 7px 12px; cursor: pointer; }
.doc-nav-body { display: flex; flex-direction: column; min-height: 0; flex: 1; } .doc-search { padding: 0 18px 10px; } .doc-search input { margin: 0; padding: 8px 12px; font-size: 14px; }
.doc-toc { list-style: none; margin: 0; padding: 0 10px 16px; overflow-y: auto; flex: 1; font-size: 14px; } .doc-toc ul { list-style: none; margin: 0; padding: 0; } .doc-toc-group > span { display: block; padding: 14px 8px 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.doc-toc a { display: block; padding: 5px 8px; border-radius: 8px; text-decoration: none; } .doc-toc a:hover { background: var(--tile); } .doc-toc a[aria-current] { background: var(--accent-soft); font-weight: 600; }
.doc-nav-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.doc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); scroll-margin-top: 0; } .doc-text { padding: 36px 36px 40px; min-width: 0; } .doc-text h2 { font-size: 24px; } .doc-text h4 { margin: 22px 0 8px; font-size: 14px; } .doc-text p { max-width: none; } .doc-text ol { padding-left: 20px; }
.doc-side { background: #16181d; color: #e7ebf0; padding: 32px 24px; min-width: 0; } .doc-code { margin: 0 0 20px; position: sticky; top: 16px; } .doc-code + .doc-code { position: static; } .doc-code figcaption { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: #a0a7b0; margin-bottom: 6px; } .doc-copy { background: none; border: 1px solid #3a3f46; color: #c9ced4; border-radius: 7px; font: inherit; font-size: 12px; padding: 2px 8px; cursor: pointer; } .doc-copy:hover { background: #24272c; }
.doc-code pre { margin: 0; background: #101214; padding: 14px; font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; } 
.doc-endpoint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--tile); border-radius: 10px; padding: 8px 12px; } .doc-endpoint code { overflow-wrap: anywhere; } .doc-verb { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; color: #fff; } .doc-verb-get { background: #1a7f4e; } .doc-verb-post { background: #1f6fbf; } .doc-verb-delete { background: #c0392b; }
.doc-fields { font-size: 13.5px; } .doc-fields td, .doc-fields th { padding: 8px 10px; } .doc-fields code { overflow-wrap: anywhere; } .doc-errors { padding-left: 18px; font-size: 13.5px; margin: 0; } .doc-errors li { margin-bottom: 4px; }
.doc-text :not(pre) > code { background: var(--tile); border-radius: 5px; padding: 1px 5px; }
@media (max-width: 1100px) { .doc-row { grid-template-columns: minmax(0, 1fr); } .doc-text { padding: 26px 22px; } .doc-side { padding: 20px 22px; } .doc-code { position: static; } }
@media (max-width: 760px) { body.docs { display: block; } .doc-nav { position: sticky; z-index: 5; height: auto; max-height: 100vh; border-right: 0; border-bottom: 1px solid var(--line); } .doc-menu { display: block; } .doc-nav-body { display: none; max-height: calc(100vh - 60px); } .doc-nav-body.open { display: flex; } .doc-row { scroll-margin-top: 60px; } }
html:has(body.docs) { scroll-behavior: auto; } .doc-code, .doc-code + .doc-code { position: static; } .doc-fields td:first-child code { white-space: nowrap; overflow-wrap: normal; }

/* Правки после проверки: доступность, телефон, печать */
.band[id], section[id] { scroll-margin-top: 84px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
input[type=checkbox] { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: #16181d; } :root[data-theme=dark] input[type=checkbox] { accent-color: var(--accent); }
:root[data-theme=dark] { --on: #3ecf8e; --on-ink: #0f1a14; --bad: #ff7b70; }
.flash-error { background: #fdecea; color: #8f1d14; } :root[data-theme=dark] .flash-error { background: #4a1f1b; color: #ffd6d2; }
.hint { background: var(--tile); border-radius: var(--radius-s, 10px); padding: 13px 16px; } .hint p { margin-bottom: 8px; max-width: none; } .hint p:last-child { margin-bottom: 0; }
.secret-box { margin: 0; display: grid; gap: 8px; justify-items: start; } .secret-box pre { width: 100%; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.not-found { padding: 56px 0; }
.top-menu { display: none; position: relative; } .top-menu summary { list-style: none; cursor: pointer; display: grid; gap: 4px; padding: 11px 9px; } .top-menu summary::-webkit-details-marker { display: none; } .top-menu summary span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.top-menu nav { display: grid !important; position: absolute; right: 0; top: 46px; min-width: 210px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 8px; gap: 0; box-shadow: 0 16px 36px rgba(20, 22, 26, .16); font-size: 15px; margin: 0 !important; } .top-menu nav a { padding: 11px 12px; border-radius: 8px; } .top-menu nav a:hover { background: var(--tile); }
.doc-empty { padding: 0 18px 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .top-menu { display: block; } .top-actions { margin-left: auto; }
  .profile-list a { flex-wrap: wrap; } .profile-name { flex: 1 1 60%; } .profile-list .status { flex: 1 1 100%; padding-left: 58px; }
  .side nav a { padding: 11px 12px; } .stepper button { width: 44px; height: 44px; }
}
@media print {
  :root, :root[data-theme=dark] { --ink: #000; --muted: #444; --line: #bbb; --tile: #fff; --white: #fff; --page: #fff; --text-soft: #000; color-scheme: light; }
  body, body.app { background: #fff !important; color: #000 !important; } th { background: none !important; color: #000 !important; }
}

/* Цвет мессенджера: заливка плиток подключения и метки канала */
.brand-whatsapp { --brand: #0b8a4f; --brand-text: #08693c; } .brand-telegram, .brand-telegram_bot { --brand: #147cb5; --brand-text: #0f628f; }
.brand-max, .brand-max_bot { --brand: #5b3fe0; --brand-text: #4730bd; } .brand-vk_group { --brand: #0067e0; --brand-text: #0052b3; }
:root[data-theme=dark] .brand-whatsapp { --brand-text: #5fdc9e; } :root[data-theme=dark] .brand-telegram, :root[data-theme=dark] .brand-telegram_bot { --brand-text: #6cc4f2; }
:root[data-theme=dark] .brand-max, :root[data-theme=dark] .brand-max_bot { --brand-text: #b3a4ff; } :root[data-theme=dark] .brand-vk_group { --brand-text: #7fb6ff; }
.chan-tag[class*=brand-] { background: var(--brand); color: #fff; border-color: transparent; }
.connect-tile[class*=brand-] { background: color-mix(in srgb, var(--brand) 9%, var(--white)); border-color: color-mix(in srgb, var(--brand) 28%, var(--white)); transition: background .12s, border-color .12s; }
.connect-tile[class*=brand-]:hover { background: color-mix(in srgb, var(--brand) 17%, var(--white)); border-color: var(--brand); }
.connect-tile[class*=brand-] b, .connect-tile[class*=brand-] i { color: var(--brand-text); }
:root[data-theme=dark] .connect-tile[class*=brand-] { background: color-mix(in srgb, var(--brand) 24%, var(--white)); border-color: color-mix(in srgb, var(--brand) 55%, var(--white)); }
:root[data-theme=dark] .connect-tile[class*=brand-]:hover { background: color-mix(in srgb, var(--brand) 38%, var(--white)); }

/* Новый первый экран и значки каналов */
.chan-tag svg { width: 20px; height: 20px; display: block; } .chan-tag[class*=brand-] { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 40px; height: 40px; padding: 0 9px; border-radius: 11px; flex: none; }
.glyph-text { font-weight: 800; font-size: 12px; letter-spacing: .02em; } .glyph-bot { font-size: 11px; font-weight: 700; }
.connect-tile .chan-tag { margin-bottom: 12px; align-self: flex-start; width: fit-content; }
.channel-card.brand-card { background: color-mix(in srgb, var(--brand) 7%, var(--white)); border-color: color-mix(in srgb, var(--brand) 24%, var(--white)); } .channel-card.brand-card .chan-tag { margin-bottom: 14px; } .channel-card.brand-card .eyebrow { display: block; } .channel-card.brand-card:hover { border-color: var(--brand); }
:root[data-theme=dark] .channel-card.brand-card { background: color-mix(in srgb, var(--brand) 20%, var(--white)); border-color: color-mix(in srgb, var(--brand) 50%, var(--white)); }
.hero-api { display: grid; gap: 14px; width: 100%; max-width: 480px; margin-left: auto; }
.hero-code { margin: 0; padding: 22px 24px; background: var(--code); color: var(--code-ink); border-radius: 20px; font: 14px/1.6 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; } .hero-code b { color: var(--accent); }
.send-list { list-style: none; margin: 0; padding: 6px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; } .send-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; } .send-list li + li { border-top: 1px solid var(--line); }
.send-to { flex: 1; min-width: 0; display: grid; } .send-to b { font-size: 14px; } .send-to span { font-size: 13px; color: var(--muted); } .send-list i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--on); white-space: nowrap; }
.split-code .checks + a { display: inline-block; margin-top: 14px; font-weight: 600; }
.chan-tag[class*=brand-] span, .chan-tag[class*=brand-] svg { color: #fff; }

/* Все значки каналов одного размера: 40x40. Подпись «бот» идёт второй строкой. */
.chan-tag[class*=brand-] { flex-direction: column; gap: 1px; width: 40px; min-width: 40px; height: 40px; padding: 0; line-height: 1; }
.chan-tag[class*=brand-] svg { width: 20px; height: 20px; } .chan-tag[class*=brand-] .glyph-text { font-size: 11px; letter-spacing: 0; } .chan-tag[class*=brand-] .glyph-bot { font-size: 9px; font-weight: 700; }
.chan-tag[class*=brand-]:has(.glyph-bot) svg { width: 16px; height: 16px; }
.chan-tag.brand-telegram_bot svg, .chan-tag.brand-max_bot svg { width: 16px; height: 16px; }
.channel-grid, .connect-grid, .tiles, .case-grid, .steps-row { align-items: stretch; }
.connect-tile { display: flex; flex-direction: column; } .connect-tile i { margin-top: auto; }
.tile.tall { display: flex; flex-direction: column; } .tile.tall > a { margin-top: auto; padding-top: 12px; }
@media (max-width: 860px) { .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); } .hero-actions .button { width: 100%; text-align: center; } }
.connect-tile i { padding-top: 14px; } .connect-grid + .muted.small, .connect-grid + p { margin-top: 14px; }

/* Виджет */
.brand-web_widget { --brand: #3b3f46; --brand-text: #2b2e33; } :root[data-theme=dark] .brand-web_widget { --brand: #6d7178; --brand-text: #d7d9dc; }
.widget-link { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 560px) { .widget-link { grid-template-columns: minmax(0, 1fr); } }
input[type=color] { width: 100%; height: 44px; padding: 4px; }
.channel-grid .brand-web_widget { grid-column: 1 / -1; }
@media (max-width: 640px) { .top-actions > .button { display: none; } .top-actions { gap: 10px; } }
.widget-link { max-width: 460px; } .widget-link input, .widget-link select { width: 100%; } .widget-link label { min-width: 0; }

/* Уведомления и выбор нескольких значений */
.hook-card { display: grid; gap: 14px; } .hook-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; } .hook-head h2 { margin: 0; font-size: 17px; overflow-wrap: anywhere; } .hook-card h3 { margin: 4px 0 -4px; font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 10px; border-radius: 8px; background: var(--tile); font-size: 13px; }
.hook-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } .hook-stats .stat { min-width: 0; } @media (max-width: 640px) { .hook-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hook-more { border-top: 1px solid var(--line); padding-top: 12px; } .hook-more > summary { cursor: pointer; font-weight: 600; } .hook-more[open] > summary { margin-bottom: 12px; }
.hook-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; } .hook-url, .hook-actions { grid-column: 1 / -1; } .field { display: grid; gap: 6px; min-width: 0; } .field-label { font-weight: 500; font-size: 14px; } @media (max-width: 760px) { .hook-form { grid-template-columns: minmax(0, 1fr); } }
.multi { position: relative; min-width: 0; } .multi-box { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; width: 100%; min-height: 44px; padding: 7px 34px 7px 10px; border: 1px solid var(--field); border-radius: var(--radius-s); background: var(--white); color: var(--ink); text-align: left; cursor: pointer; font: inherit; position: relative; }
.multi-box::after { content: ''; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.multi.open .multi-box, .multi-box:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); outline: none; }
.multi-placeholder { color: var(--muted); } .multi .chip { background: var(--tile); max-width: 100%; } .multi .chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chip-x { flex: none; width: 18px; height: 18px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.multi-list { display: grid; gap: 2px; } .multi.ready .multi-list { display: none; position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow-y: auto; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: 0 12px 32px rgba(20, 22, 26, .16); } .multi.ready.open .multi-list { display: grid; }
.multi-item { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-weight: 400; } .multi-item:hover { background: var(--tile); } .multi.ready .multi-item input { position: absolute; opacity: 0; width: 1px; height: 1px; } .multi-item:has(input:checked) { background: var(--accent-soft); font-weight: 600; } .multi-item:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: -2px; }
.hook-form { align-items: stretch; } .field { grid-template-rows: auto 1fr; } .field .multi, .field .multi-box { height: 100%; }
.help-page { max-width: 760px; margin-inline: auto; width: 100%; } .help-page .notice { margin: 14px 0 22px; } .help-page h2 { margin-top: 8px; }

.price-cell { width: 84px; min-width: 70px; }
td:has(> .price-cell), td:has(+ td > .price-cell) { vertical-align: middle; }

/* Баланс в меню */
.side-balance { width: 100%; box-sizing: border-box; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 12px; margin-bottom: 12px; background: var(--tile); border-radius: var(--radius-s); text-decoration: none; color: var(--ink); }
.side-balance span { font-size: 13px; white-space: nowrap; }
.side-balance b { font-weight: 600; white-space: nowrap; }
.side-balance-low b { color: var(--bad); }

/* Клиенты */
.client-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 14px; max-width: none; }
.client-filter label { flex: 1 1 220px; margin: 0; }
.client-filter button { flex: 0 0 auto; }
.clients td small { display: block; white-space: nowrap; }
.clients td:nth-child(2) { white-space: nowrap; }
.client-pay-box summary { cursor: pointer; white-space: nowrap; }
.client-pay { display: grid; gap: 6px; margin: 8px 0 0; width: 150px; max-width: none; }
.client-pay input { margin: 0; width: 100%; box-sizing: border-box; }

/* Лимит файла в админке */
.file-limit { display: flex; align-items: center; gap: 8px; margin: 0; flex-wrap: nowrap; }
.file-limit input[type=number] { width: 88px; margin: 0; }

/* Монитор */
.mon-section h2 { margin-top: 0; }
.mon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 12px; }
.mon-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mon-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mon-section td small { display: block; white-space: nowrap; }
.mon-grid-wide { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 0; }
.mon-tile { background: var(--tile); border-radius: var(--radius-s); padding: 14px 16px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mon-tile b { font-size: 24px; line-height: 1.2; font-weight: 600; overflow-wrap: anywhere; }
.mon-tile small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.mon-label { color: var(--muted); font-size: 13px; }
.mon-tile.mon-bad { box-shadow: inset 0 0 0 2px var(--bad); }
.mon-tile.mon-warn { box-shadow: inset 0 0 0 2px var(--wait); }
.mon-meter { display: grid; gap: 6px; margin: 4px 0; }
.mon-track { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.mon-track i { display: block; height: 100%; border-radius: 4px; background: var(--on); }
.mon-track i.warn { background: var(--wait); }
.mon-track i.bad { background: var(--bad); }
.mon-alerts.has { border-color: var(--bad); }
.mon-alerts p { margin: 0; }
.mon-alerts h2 { margin-top: 0; }
.mon-alerts ul { margin: 0; padding-left: 20px; }
.mon-node-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 14px; }
.status-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--tile); }
.status-chip.ok { color: var(--on); }
.status-chip.bad { color: var(--bad); }
.mon-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 14px 0; }
.mon-actions form { margin: 0; }
.mon-actions .inline { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; flex: 0 0 auto; width: auto; max-width: none; }
.mon-actions .inline label { display: flex; align-items: center; gap: 8px; margin: 0; }
.mon-actions .inline input { margin: 0; }
.mon-actions { align-items: center; }
.mon-actions input[type=number] { width: 96px; }
.mon-move { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
.mon-move select { width: auto; min-width: 90px; }
.mon-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mon-chart { margin: 0; background: var(--tile); border-radius: var(--radius-s); padding: 12px 14px; min-width: 0; min-height: 138px; }
.mon-chart figcaption { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.mon-chart svg { display: block; width: 100%; height: auto; touch-action: none; }
.mon-gridline { stroke: var(--line); stroke-width: 1; }
.mon-axis { fill: var(--muted); font-size: 10px; }
.mon-line { fill: none; stroke: var(--tg); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mon-dot { fill: var(--tg); stroke: var(--tile); stroke-width: 2; }
.mon-tip { position: absolute; top: 10px; right: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; font-size: 12px; }
.mon-tip[hidden] { display: none; }
@media (max-width: 1100px) { .mon-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mon-grid-5, .mon-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mon-tile { padding: 12px; } .mon-tile b { font-size: 20px; } }
@media (max-width: 900px) { .side-balance { width: auto; margin: 0 8px 0 0; padding: 6px 10px; } }
.status-legend { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.status-legend li { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.status-dot-on { background: #1f9d55; }
.status-dot-wait { background: #e0a800; }
.status-dot-off { background: #d64545; }

/* Статистика. Цвета рядов проверены на различимость при нарушениях цветового зрения. */
:root { --stats-a: #2f6fde; --stats-b: #c77a08; }
:root[data-theme=dark] { --stats-a: #5b8fe8; --stats-b: #c4862a; }
.stats-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.stats-chart { margin: 0; background: var(--tile); border-radius: var(--radius-s); padding: 12px 14px; min-width: 0; }
.stats-chart-wide { grid-column: 1 / -1; }
.stats-chart figcaption { font-size: 14px; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.stats-plot { position: relative; }
.stats-plot svg { display: block; width: 100%; height: auto; }
.stats-axis { fill: var(--muted); font-size: 12px; }
.stats-a { fill: var(--stats-a); }
.stats-b { fill: var(--stats-b); }
.stats-hit { fill: transparent; }
.stats-hit.on { fill: var(--ink); fill-opacity: .06; }
.stats-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.stats-legend span { display: inline-flex; align-items: center; gap: 6px; }
.stats-key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.stats-a-key { background: var(--stats-a); }
.stats-b-key { background: var(--stats-b); }
.stats-tip { position: absolute; top: 0; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; line-height: 1.35; white-space: nowrap; pointer-events: none; color: var(--ink); }
.stats-tip[hidden] { display: none; }
.stats-plot .stats-svg-narrow { display: none; }
@media (max-width: 900px) { .stats-charts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .stats-plot .stats-svg-wide { display: none; } .stats-plot .stats-svg-narrow { display: block; } }

/* Каскад и настройка рассылки. */
.step-list { display: grid; gap: 12px; }
.step-tools { display: flex; gap: 16px; }
[hidden] { display: none !important; }
.column-table th { min-width: 180px; vertical-align: top; background: var(--tile); }
.column-table td { max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.column-table tr.is-header td { color: var(--muted); text-decoration: line-through; }
.column-map { display: grid; gap: 6px; font-weight: 400; }
.column-map select, .column-map input { margin: 0; }
.insert-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
button.chip { border: 1px solid var(--line); background: var(--tile); color: var(--ink); cursor: pointer; font: inherit; font-size: 13px; }
button.chip:hover { border-color: var(--field); }
.fields-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; }
input[type=radio] { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: #16181d; }
:root[data-theme=dark] input[type=radio] { accent-color: #f1f0ec; }
@media (max-width: 900px) { .fields-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.upd-signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
@media print { .upd .invoice-items { font-size: 11px; } @page { size: landscape; } }
.invoice.upd { max-width: none; }

/* Раздел «Компания»: выпадающий список в шапке и страница с тремя блоками */
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: ''; width: 6px; height: 6px; margin: -4px 0 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .12s; }
.nav-drop[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.nav-drop summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.nav-drop summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav-drop-list { position: absolute; left: -12px; top: calc(100% + 12px); z-index: 20; display: grid; min-width: 190px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 36px rgba(20, 22, 26, .16); }
.top nav .nav-drop-list a { padding: 10px 12px; border-radius: 8px; } .top nav .nav-drop-list a:hover { background: var(--tile); text-decoration: none; }
.company { max-width: 820px; padding-top: 36px; }
.company-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.company-nav a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; background: var(--white); } .company-nav a:hover { border-color: var(--accent-deep); }
.company-block { scroll-margin-top: 84px; margin-bottom: 40px; } .company-block .card { margin-bottom: 12px; } .company-block .pairs { margin-bottom: 0; } .company-block .card .actions { margin: 18px 0 0; }
.company .stat-row { max-width: 560px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .company { padding-top: 20px; } .company .pairs { grid-template-columns: minmax(0, 1fr); gap: 2px; } .company .pairs dd { margin-bottom: 10px; } .company .card .actions .button { width: 100%; } .company .stat { padding: 12px; } .company .stat b { font-size: 20px; } }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Интеграции с CRM: четыре карточки одного размера, логотип на белой плашке в обеих темах. */
.int-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-bottom: 20px; }
.int-card { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 24px; padding: 20px; text-decoration: none; background: var(--white); transition: transform .12s, border-color .12s; }
.int-card:hover { transform: translateY(-2px); border-color: var(--accent-deep); }
.int-logo { display: flex; align-items: center; justify-content: center; height: 88px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); }
.int-logo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.int-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .int-head b { font-size: 19px; }
.int-text { color: var(--muted); font-size: 15px; flex: 1; }
.int-more { font-weight: 600; font-size: 15px; }
.pill.soon { background: var(--tile); color: var(--muted); border: 1px solid var(--line); padding: 2px 10px; font-size: 12px; }
.pill.ok { background: var(--on); color: var(--on-ink); padding: 2px 10px; font-size: 12px; }
.int-page { padding-top: 32px; }
.int-hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: center; padding: 8px 0 12px; }
.int-hero .int-logo { height: 150px; padding: 24px; }
.int-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.button[aria-disabled="true"] { cursor: default; opacity: .75; }
.int-prices { margin-bottom: 8px; } .int-prices table { width: 100%; }
.guide .prose { margin-top: 0; } .guide .prose h2 { scroll-margin-top: 84px; } .guide .prose h3 { margin-top: 22px; }
.guide .prose ol, .guide .prose ul { padding-left: 22px; margin: 0 0 14px; } .guide .prose li { margin-bottom: 6px; } .guide .prose li > ol, .guide .prose li > ul { margin: 6px 0 0; }
.guide .prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0 14px; }
.guide .legal-nav .crumb { margin: 0 0 12px; }
@media (max-width: 1000px) { .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .int-grid { grid-template-columns: minmax(0, 1fr); } .int-hero { grid-template-columns: minmax(0, 1fr); gap: 16px; } .int-hero .int-logo { height: 110px; } .int-logo { height: 76px; } }
.int-page .band { padding: 30px 0; } .int-page .steps-row + p { margin-top: 16px; font-weight: 600; }
@media (max-width: 640px) { .int-actions .button { flex: 1 1 100%; text-align: center; } }

/* Окно подтверждения опасных действий */
.confirm-dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); padding: 24px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.confirm-dialog::backdrop { background: rgba(10, 11, 13, .55); }
.confirm-dialog p { margin: 0 0 20px; font-size: 17px; line-height: 1.45; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
/* Фильтры адреса уведомлений: подпись слева, значения справа */
.hook-filters { margin: 0; align-items: center; } .hook-filters dt { font-size: 14px; }
@media (max-width: 640px) { .hook-filters { grid-template-columns: minmax(0, 1fr); gap: 4px; } .hook-filters dd { margin-bottom: 8px; } }

/* Окно о cookie на публичных страницах */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .18); }
.cookie-bar p { margin: 0; font-size: 14px; line-height: 1.45; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 640px) { .cookie-bar { flex-direction: column; align-items: stretch; left: 12px; right: 12px; bottom: 12px; padding: 14px; } .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; } .cookie-actions .button { padding-left: 8px; padding-right: 8px; font-size: 14px; white-space: normal; } }

/* Страница мобильного приложения */
.app-page .int-hero { grid-template-columns: 120px minmax(0, 1fr); }
.app-icon { width: 120px; height: 120px; border-radius: 28px; display: block; }
.app-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.app-case { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.app-case h3, .app-features h3 { margin: 0 0 10px; font-size: 19px; }
.app-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.app-features p { margin: 0; }
code.break { word-break: break-all; }
@media (max-width: 640px) { .app-page .int-hero { grid-template-columns: minmax(0, 1fr); } .app-icon { width: 88px; height: 88px; border-radius: 22px; } .app-cases, .app-features { grid-template-columns: minmax(0, 1fr); } }

/* Кнопка «показать пароль» внутри поля */
.pw-wrap { position: relative; display: block; margin-top: 6px; }
.pw-wrap input { margin-top: 0; padding-right: 48px; }
.pw-eye { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.pw-eye:hover { color: var(--ink); background: var(--tile); }
.pw-eye:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 1px; color: var(--ink); }
/* Свой «глаз» Edge рядом с нашим не нужен */
input::-ms-reveal, input::-ms-clear { display: none; }

/* Плашка «Подтвердите почту»: заметнее обычных подсказок, чтобы её не пропустили */
.verify-banner { display: flex; gap: 18px; align-items: flex-start; margin: 0 0 24px; padding: 20px 22px; border-radius: var(--radius); background: var(--white); border: 2px solid var(--wait); box-shadow: 0 6px 24px rgba(217, 144, 0, .14); }
.verify-banner h2 { margin: 0 0 6px; font-size: 20px; }
.verify-banner p { margin: 0 0 14px; line-height: 1.5; }
.verify-banner form { margin: 0; }
.verify-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--wait); color: #fff; font-size: 22px; }
@media (max-width: 640px) { .verify-banner { flex-direction: column; gap: 10px; padding: 16px; } }

/* Боковое меню кабинета: на невысоком экране прокручивается, а не обрезается */
@media (min-width: 901px) {
  .side { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .side { gap: 16px; padding: 16px 14px; }
  .side nav a { padding: 7px 12px; }
  .side-balance { margin-bottom: 8px; }
}

/* Журнал запросов: причина ошибки под кодом ответа */
.log-why { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); max-width: 420px; }
/* Плашка в боковом меню: длинная подпись переносится, а не вылезает за рамку */
.side-balance { flex-wrap: wrap; row-gap: 2px; }

/* Скриншоты в инструкциях: по ширине текста, по нажатию открываются целиком */
.guide-shot { margin: 18px 0 22px; }
.guide-shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-s, 10px); }
.guide-shot figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* Партнёрская программа: два способа получить деньги рядом, на телефоне друг под другом */
.ref-get { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; margin-bottom: 20px; }
.ref-get .card { margin: 0; }
.ref-payout { border-top: 1px solid var(--line); padding: 16px 0; }
.ref-payout:first-of-type { border-top: 0; padding-top: 0; }
.ref-payout h3 { margin: 0 0 4px; font-size: 17px; }

/* Калькулятор: выбор способа подключения над списком каналов */
.calc-mode { display: grid; gap: 6px; font-weight: 600; margin-bottom: 4px; }
.calc-mode select { font-weight: 400; }

/* Приложения: каталог, установка, фрейм, уведомления */
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #16181d; font-size: 12px; font-weight: 700; }
.app-icon { display: block; flex: none; width: 40px; height: 40px; border-radius: 11px; object-fit: contain; }
.app-icon-text { display: inline-grid; place-items: center; background: var(--accent); color: #16181d; font-weight: 800; font-size: 18px; }
.profile-head .app-icon, .app-card-head .app-icon[width="48"] { width: 48px; height: 48px; } .app-frame-head .app-icon { width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.app-card { display: flex; flex-direction: column; gap: 10px; margin: 0; } .app-card h2 { margin: 0; font-size: 19px; } .app-card p { margin: 0; } .app-card .actions { margin-top: auto; padding-top: 6px; }
.app-card-head { display: flex; gap: 14px; align-items: center; } .app-card-head .app-icon { width: 48px; height: 48px; }
.app-scopes { margin: 0 0 6px; padding-left: 20px; } .app-scopes li { margin-bottom: 4px; }
.app-channels { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; width: 100%; } .app-channels legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.app-install-form, .admin-app-form { max-width: 560px; }
.app-notices { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app-notices a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; } .app-notices a:hover { background: var(--tile); }
.app-notices span { font-size: 14px; color: var(--text-soft); overflow-wrap: anywhere; } .app-notices small { font-size: 12px; }
.app-notices .unread a { background: var(--accent-soft); } .app-notices .warn b::before { content: "⚠ "; color: var(--wait); }
.app-channel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.app-channel-list li { display: flex; align-items: center; gap: 14px; } .app-channel-list li > div { flex: 1; min-width: 0; display: grid; } .app-channel-list form { margin: 0; }
.app-main.app-main-wide { max-width: 1240px; }
.app-frame-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; } .app-frame-head .profile-head { margin: 0; } .app-frame-head h1 { font-size: 24px; }
.app-frame-box { position: relative; }
.app-frame { display: block; width: 100%; height: 640px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.app-frame-wait { margin: 0 0 12px; }
.app-toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%); max-width: min(520px, calc(100vw - 32px)); margin: 0; padding: 12px 18px; border-radius: var(--radius-s); background: var(--ink); color: var(--page); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 15px; }
.app-toast-error { background: var(--bad); color: #fff; }
@media (max-width: 860px) { .app-frame { border-radius: 12px; } .app-channel-list li { flex-wrap: wrap; } .app-channel-list li > div { flex-basis: calc(100% - 60px); } .nav-count { margin-left: 4px; } }
