/* CheckTG — дизайн-система по макету Миши (docs/07_design_home.md): светлый фон, белые модули без теней, navy + cyan.
   Цвета шкалы оценки: 0–49 / 50–79 / 80–100 (ТЗ §5 п.5). */
:root { --navy:#14263c; --cyan:#078ecc; --cyan-ink:#087ebc; --ice:#d8f0fc; --ice2:#e6f5fd; --bg:#f2f6f9;
        --ink:#17263a; --muted:#6c7d91; --line:#dbe7f0; --soft:#f2f6f9; --brand:var(--cyan);
        --red:#c0392b; --yellow:#d4a017; --green:#13834e; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:84px; }
body { margin:0; font-family:Arial,Helvetica,sans-serif; color:var(--ink); background:var(--bg); font-size:15px; line-height:1.5; }
button, input { font:inherit; }
a { color:var(--brand); text-decoration:none; } a:hover { text-decoration:underline; }
.wrap { max-width:1120px; margin:0 auto; padding:0 16px; }
.i { flex:none; vertical-align:middle; }

/* шапка */
.header { position:sticky; top:0; z-index:10; background:#fff; border-bottom:1px solid #e5edf2; }
.header-inner { height:74px; display:flex; align-items:center; gap:28px; justify-content:space-between; }
.brand { font-size:27px; font-weight:800; letter-spacing:-1px; display:flex; align-items:center; gap:8px; white-space:nowrap; color:var(--ink); }
.brand b { color:var(--cyan); } .brand .i { color:var(--cyan); stroke-width:2.5; } .brand:hover { text-decoration:none; }
.nav { display:flex; gap:35px; align-items:center; font-weight:600; }
.nav a, .mobile-nav a { color:var(--ink); } .nav a:hover, .mobile-nav a:hover { color:var(--cyan); text-decoration:none; }
.header-actions { display:flex; align-items:center; gap:8px; }
.login { display:inline-flex; align-items:center; gap:6px; background:var(--ice); color:var(--cyan-ink); padding:12px 20px; border-radius:11px; font-weight:800; }
.login:hover { background:#c2e8fa; text-decoration:none; }
/* БАГ-02: кнопка аккаунта (имя/ID, многоточие у длинных) + отдельная иконка выхода */
.header-actions { min-width:0; } .brand { flex:none; }
.login.acct { min-width:0; max-width:240px; font-weight:700; padding:11px 16px; }
.acct-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
button.hdr-logout { display:inline-flex; align-items:center; justify-content:center; flex:none; width:42px; height:42px; padding:0; border-radius:11px; background:#f0f6fa; color:var(--navy); line-height:0; }
button.hdr-logout:hover { background:#e1edf4; }
button.hdr-logout:focus-visible, .login:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; }
button.hamb { display:none; background:#f0f6fa; color:var(--navy); border-radius:10px; padding:9px; line-height:0; }
.mobile-nav { display:none; padding:4px 16px 18px; gap:14px; font-weight:600; }
.mobile-nav.open { display:flex; flex-direction:column; }

/* общие элементы */
.main { padding-top:20px; padding-bottom:24px; }
.card, .module { background:#fff; border-radius:22px; padding:30px; margin-bottom:18px; }
.card { border-radius:18px; padding:24px; }
h1 { margin:0 0 6px; font-size:26px; line-height:1.25; } h2 { font-size:19px; margin:0 0 10px; }
.module h1, .module h2 { font-size:25px; line-height:1.25; margin:0 0 15px; }
.sub { color:var(--muted); margin:0 0 22px; line-height:1.55; }
.muted { color:var(--muted); } .err { color:var(--red); } .small { font-size:15px !important; }
.sr { position:absolute; left:-9999px; }
button, .btn { display:inline-block; background:var(--cyan); color:#fff; border:0; border-radius:11px; padding:12px 20px; font-size:15px; font-weight:700; cursor:pointer; }
button:disabled { opacity:.6; cursor:default; } .btn:hover { text-decoration:none; filter:brightness(1.05); }
.status { margin-top:10px; min-height:24px; } .status.center { text-align:center; }
.status .spin { display:inline-block; width:14px; height:14px; border:2px solid var(--brand); border-right-color:transparent; border-radius:50%; animation:spin .8s linear infinite; vertical-align:-2px; margin-right:6px; }
@keyframes spin { to { transform:rotate(360deg); } }
.demo-note { font-size:11px; color:#8a98a5; margin:12px 0 0; }

/* главная — №1 диагностика */
.hero { padding:26px 22px; } .module.hero h1 { font-size:27px; margin:0 0 18px; }
.hero-banner { background:var(--navy); border-left:7px solid #079bd7; color:#fff; border-radius:16px; min-height:60px; display:flex; align-items:center; gap:22px; padding:13px 30px; margin-bottom:16px; font-weight:700; font-size:16px; }
.hero-banner .down { color:#26bfff; line-height:0; }
.search-wrap { border:1px solid #d8e5ef; border-radius:22px; padding:10px; display:flex; gap:11px; min-height:91px; }
.search-wrap input { flex:1; min-width:0; border:0; outline:none; background:#f2f2f2; border-radius:32px; padding:0 23px; font-size:18px; color:var(--ink); }
.search-wrap input:focus { box-shadow:inset 0 0 0 2px var(--ice); }
.search-wrap input::placeholder { color:#999; }
.search-wrap button { border-radius:17px; background:var(--ice); color:#007fbd; font-size:17px; font-weight:800; padding:0 19px; white-space:nowrap; }
.search-wrap button:hover, .rankcta a:hover { background:#c2e8fa; text-decoration:none; }
.examples { display:flex; align-items:center; gap:11px; flex-wrap:wrap; margin:11px 20px 6px; color:#6d7e92; }
.examples .chip { border:1px solid #c4e6f9; background:var(--ice2); border-radius:24px; padding:7px 16px; color:#008fce; font-weight:700; font-size:15px; }
.examples .comma { margin-left:-4px; }
.free { text-align:center; color:#6d7e92; margin:6px 0 0; }

/* №2 — примеры */
.two { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; } .two .module { margin:0; }
.eyebrow { display:flex; justify-content:space-between; align-items:center; gap:8px; font-weight:700; }
.pilltag { font-size:12px; border-radius:25px; padding:6px 12px; white-space:nowrap; }
.pilltag.green { color:#08834d; background:#e6f7ef; } .pilltag.blue { color:var(--cyan-ink); background:#e7f5fd; }
.stat-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:23px 0; }
.stat-head h3 { margin:0; font-size:23px; } .stat-head h3 a { color:var(--ink); }
.score-box { border-radius:13px; padding:12px 17px; text-align:center; background:#eef2f6; color:var(--muted); }
.score-box strong { font-size:30px; line-height:1.1; }
.score-box.yellow { background:#fff1d6; color:#ac770e; } .score-box.green { background:#e0f5e8; color:var(--green); } .score-box.red { background:#fbe3e1; color:var(--red); }
.metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.metric { background:var(--bg); border-radius:12px; padding:15px 8px; text-align:center; }
.metric strong { display:block; font-size:21px; } .metric small { color:var(--muted); font-size:12px; }
.more { display:inline-block; margin-top:16px; color:var(--cyan); font-weight:700; }
.pdf-frame { background:#edf3f7; border-radius:14px; display:flex; align-items:center; justify-content:center; padding:18px; min-height:290px; margin-top:23px; }
.pdf-frame img { display:block; width:65%; max-width:270px; height:auto; box-shadow:0 8px 25px #14263c25; }

/* №3–№4 — аудит и шаги */
.grid3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.feature, .step, .plan { border:1px solid #e2ebf1; border-radius:16px; padding:19px; background:#fff; }
.feature { min-height:174px; }
.ico { width:44px; height:44px; display:flex; align-items:center; justify-content:center; border-radius:13px; background:#e3f3fc; color:var(--cyan); margin-bottom:12px; }
.c-violet .ico, .ico.c-violet { background:#eee5fb; color:#8656c9; }
.c-amber .ico { background:#fff1d9; color:#db9b22; }
.c-pink .ico { background:#ffe7ed; color:#df6b8b; }
.c-green .ico, .ico.c-green { background:#ddf7e9; color:#0a9b66; }
.feature h3, .step h3, .plan h3 { font-size:16px; margin:0 0 9px; }
.feature .count { color:var(--cyan); font-size:13px; font-weight:700; }
.feature p, .step p, .plan p { color:var(--muted); font-size:13px; line-height:1.5; margin:8px 0 0; }
.plan-growth { display:flex; gap:15px; align-items:center; background:#e6f7ed; border-radius:15px; padding:20px; margin-top:15px; }
.plan-growth .ico { margin:0; background:#c9eed9; color:#07834d; }
.plan-growth strong { display:block; margin-bottom:5px; }
.smallnote { font-size:12px; color:var(--muted); margin-top:13px; }
.step { background:#f2f7fb; position:relative; min-height:195px; }
.step .num { position:absolute; right:18px; top:17px; font-size:32px; font-weight:800; color:#cbdce9; }
.step .ico { background:#fff; }
.infobar { margin-top:15px; background:#eaf5fb; border-radius:12px; padding:17px; color:#52708e; display:flex; align-items:center; gap:10px; }

/* №5 — рейтинг */
.module h2.with-ico { display:flex; align-items:center; gap:10px; } .cup { color:#db9b22; line-height:0; }
.pills { display:flex; gap:9px; margin-bottom:14px; flex-wrap:wrap; }
.pill { background:var(--ice2); color:var(--cyan-ink); border-radius:30px; padding:7px 14px; font-size:12px; }
table.ranking { width:100%; border-collapse:collapse; }
.ranking th { text-align:left; color:var(--muted); font-size:12px; font-weight:500; padding:12px; }
.ranking td { padding:11px 12px; border-top:1px solid #edf1f4; vertical-align:middle; }
.ranking th:last-child, .ranking td:last-child { text-align:right; }
.ranking .pos { width:48px; color:var(--muted); }
.rch { display:flex; align-items:center; gap:10px; color:var(--ink); min-width:0; } .rch:hover { text-decoration:none; } .rch:hover .chname { color:var(--cyan); }
.rch img, .noava { width:28px; height:28px; border-radius:50%; flex:none; object-fit:cover; }
.noava { background:var(--ice2); color:var(--cyan-ink); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; }
.chname { font-weight:700; display:block; } .chhandle { font-size:12px; color:var(--muted); display:block; }
.grade { display:inline-block; font-size:18px; font-weight:800; padding:6px 14px; border-radius:11px; background:#e0f5e8; color:var(--green); }
.grade.mid { background:#fff1d9; color:#b47c12; }
.rankcta { margin-top:16px; background:var(--navy); border-radius:15px; color:#fff; padding:20px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.rankcta p { margin:5px 0 0; color:#b7c8d8; font-size:13px; }
.rankcta a { background:var(--ice); color:var(--cyan-ink); font-weight:800; border-radius:10px; padding:13px 18px; white-space:nowrap; }

/* №6 — тарифы: шахматка (CheckTG_TARIFF.md §4); до 640px те же строки — карточки (§5, ниже в адаптиве) */
.tmx-wrap { width:100%; max-width:800px; margin-inline:auto; }
table.tmx { width:100%; border-collapse:separate; border-spacing:0; border:1px solid #dce7ef; border-radius:14px; overflow:hidden; }
.tmx thead th { background:#f1f6fa; color:var(--navy); font-size:14px; font-weight:700; padding:11px 10px; text-align:center; }
.tmx thead th:first-child { text-align:left; padding-left:16px; }
.tmx tbody th, .tmx td { padding:8px 10px; border-top:1px solid #dce7ef; vertical-align:middle; }
.tmx tbody th { padding-left:16px; text-align:left; font-weight:400; color:var(--navy); }
.tmx tbody th b { display:block; font-size:15px; } .tmx tbody th span { display:block; font-size:13px; color:#637183; }
.tmx td { text-align:center; }
.tmx button.buy { width:100%; background:#eaf5fb; color:var(--cyan); border:2px solid transparent; border-radius:9px; padding:10px 6px; font-size:15px; font-weight:800; white-space:nowrap; }
.tmx button.buy:hover { background:#d8eefa; border-color:#b9e6fa; }
.tmx button.buy:focus-visible { outline:3px solid var(--cyan); outline-offset:2px; }
.tmx button.buy[aria-pressed=true] { background:#b9e6fa; border-color:var(--cyan); color:var(--navy); opacity:1; }
.tmx button.buy .was { display:block; font-size:12px; font-weight:600; color:#6b7a89; text-decoration:line-through; }
.ref-note { margin:0 0 14px; padding:10px 14px; border-radius:9px; background:#eaf5fb; color:var(--navy); font-size:14px; text-align:center; }
.tmx .na { color:var(--muted); font-size:12px; }
.tmx-wrap .status:empty { min-height:0; margin:0; }
.center-note { text-align:center; color:var(--muted); font-size:12px; margin:14px 0 0; }

/* подвал */
footer.wrap { padding-bottom:24px; }
.footer { background:var(--navy); color:#fff; border-radius:20px; padding:34px 30px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1.3fr; gap:30px; }
.footer .brand { font-size:26px; color:#fff; }
.footer p { color:#b7c8d8; font-size:13px; line-height:1.6; }
.footer h3 { font-size:15px; margin:6px 0 18px; }
.footer-grid a, .footer-grid > div > span { display:block; color:#b7c8d8; font-size:13px; margin-bottom:14px; line-height:1.4; }
.footer-grid > div > span { color:#7f96ab; } .footer-grid a:hover { color:#fff; text-decoration:none; }
.foot-bottom { border-top:1px solid #31455b; padding-top:20px; margin-top:28px; display:flex; justify-content:space-between; color:#91a8bc; font-size:12px; gap:12px; }

/* канал */
.head { display:flex; gap:16px; align-items:flex-start; }
.ava { width:80px; height:80px; border-radius:50%; flex:none; object-fit:cover; }
.ava-empty { background:var(--soft); display:flex; align-items:center; justify-content:center; font-size:32px; color:var(--muted); }
.user { color:var(--muted); font-size:14px; }
.desc { white-space:pre-line; color:#333c4c; font-size:15px; margin-top:6px; overflow-wrap:anywhere; }
.warn { background:#fdf7ea; color:#8a5d00; border-radius:8px; padding:8px 12px; margin-bottom:12px; }
.score { margin:18px 0 6px; display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.score .v { font-size:48px; font-weight:800; line-height:1; } .score .of { color:var(--muted); }
.score .delta { font-weight:700; color:var(--muted); }
.v.red { color:var(--red); } .v.yellow { color:var(--yellow); } .v.green { color:var(--green); } .v.gray { color:var(--muted); }
.scale { height:12px; border-radius:6px; position:relative; background:linear-gradient(90deg,var(--red) 0 50%,var(--yellow) 50% 80%,var(--green) 80% 100%); }
.scale i { position:absolute; top:-5px; width:4px; height:22px; border-radius:2px; background:var(--ink); box-shadow:0 0 0 2px #fff; left:calc(var(--score) * 1% - 2px); }
.ticks { position:relative; height:16px; color:var(--muted); font-size:12px; margin-top:4px; }
.ticks span { position:absolute; transform:translateX(-50%); } .ticks span:first-child { transform:none; } .ticks span:last-child { transform:translateX(-100%); }
.facts { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:16px; }
.dates { font-size:14px; margin-top:10px; }
.fact { background:var(--soft); border-radius:8px; padding:10px 12px; }
.fact .l { font-size:13px; color:var(--muted); } .fact .v { font-size:20px; font-weight:700; } .fact .s { font-size:13px; color:var(--muted); }
.fact .v small { font-size:13px; color:var(--muted); font-weight:400; }
.refresh { margin-top:16px; }
.cta { text-align:center; background:var(--soft); border:0; } .cta .btn { margin-top:8px; }
/* отчёт на странице канала — по макету PDF (docs/report) */
h3 { font-size:16px; margin:20px 0 8px; }
.secs { display:grid; grid-template-columns:1fr 1fr; gap:12px 28px; }
.sec-h { display:flex; justify-content:space-between; gap:10px; font-weight:600; }
.sec-h .v small { color:var(--muted); font-weight:400; font-size:13px; }
.sec .s, .checks .s { font-size:13px; color:var(--muted); }
.meter { height:8px; border-radius:4px; background:var(--soft); margin:6px 0 4px; overflow:hidden; }
.meter i { display:block; height:100%; width:calc(var(--w) * 1%); border-radius:4px; background:var(--muted); }
.meter.red i { background:var(--red); } .meter.yellow i { background:var(--yellow); } .meter.green i { background:var(--green); }
.alerts { border-color:#f0c9c4; background:#fdf5f4; }
.alert { padding:8px 0; } .alert + .alert { border-top:1px solid #f0c9c4; } .alert b { color:var(--red); }
.alert .why { color:var(--muted); font-size:.92rem; margin-top:2px; }
.alert .do { margin-top:4px; } .alert .do span { font-weight:600; }
.chart-h { font-size:14px; font-weight:600; margin:12px 0 2px; }
svg.chart .grid { stroke:#eef1f6; } svg.chart .base { stroke:#b9c1cf; } svg.chart .ref { stroke:#6f7f94; stroke-dasharray:4 3; }   /* нейтральный цвет: участок выше границы — не «проблема» (SCORE-01) */
svg.chart .refl { font-size:10px; fill:#586b81; }
/* CHART-01: подсказки графиков по публикациям */
.chartw { position:relative; }
svg.chart .tipbar { cursor:pointer; outline:none; }
svg.chart .tipbar:hover, svg.chart .tipbar.sel { fill:var(--brand); }
svg.chart .tipbar:focus-visible { stroke:#14263c; stroke-width:2; }
.ctip { position:absolute; z-index:6; max-width:300px; padding:8px 11px; border-radius:10px; background:#14263c; color:#fff; font-size:13px; line-height:1.4; pointer-events:none; box-shadow:0 6px 18px rgba(20,38,60,.25); overflow-wrap:anywhere; }
.ctip[hidden] { display:none; }
.ctip b { display:block; font-weight:700; margin-bottom:2px; }
.ctip span { display:block; }
.chart-cap { font-size:13px; margin:2px 0 0; }
svg.chart .ax { font-size:10px; fill:#7a8597; } svg.chart .lbl { font-size:10.5px; fill:var(--ink); font-weight:600; }
svg.chart .bar { fill:#9db8ea; } svg.chart .bar.hl { fill:var(--brand); }
.rhythm { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.rhythm div { background:var(--soft); border-radius:8px; padding:8px 12px; display:flex; flex-direction:column; font-size:14px; }
.rhythm b { font-size:17px; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.chip { background:var(--soft); border-radius:14px; padding:3px 10px; font-size:14px; }
.checks .grp th { background:var(--soft); color:var(--ink); font-size:14px; padding-top:8px; }
.checks td.val { white-space:nowrap; } .checks .num { width:80px; }
.dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:8px; background:var(--muted); vertical-align:1px; }
.dot.red { background:var(--red); } .dot.yellow { background:var(--yellow); } .dot.green { background:var(--green); }
.checks .s.st-red { color:var(--red); } .checks .s.st-yellow { color:#9a7406; } .checks .s.st-green { color:var(--green); }
.note { font-size:13px; margin:10px 0 0; }
.have { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.have h3 { margin:0 0 6px; }
.have .no li.yellow::before { content:"!"; color:#9a7406; left:5px; }
.tally { display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; margin:4px 0 20px; }
.tally div { background:var(--soft); border-radius:10px; padding:10px 14px; color:var(--muted); }
.tally b { display:block; font-size:28px; line-height:1.1; }
.tally .green b { color:var(--green); } .tally .yellow b { color:#9a7406; } .tally .red b { color:var(--red); }
.tag { font-size:12px; padding:1px 7px; border-radius:8px; white-space:nowrap; }
.tag.red { background:#fbe3e1; color:var(--red); } .tag.yellow { background:#fbf0cf; color:#9a7406; }
.have ul, .hist { margin:0; padding:0; list-style:none; }
.have li, .hist li { padding:4px 0 4px 24px; position:relative; }
.have .yes li::before { content:"✓"; color:var(--green); position:absolute; left:2px; font-weight:700; }
.have .no li::before { content:"✕"; color:var(--red); position:absolute; left:2px; font-weight:700; }
.hist li::before { content:""; position:absolute; left:6px; top:13px; width:7px; height:7px; border-radius:50%; background:var(--brand); }
.teaser { background:var(--soft); border:0; } .teaser p { margin:0 0 12px; }

/* рейтинги */
.cats { display:grid; grid-template-columns:1fr 1fr; column-gap:40px; margin-top:12px; }
.cats ul { list-style:none; margin:0; padding:0; }
.cats li { display:flex; justify-content:space-between; gap:12px; padding:5px 0; border-bottom:1px dashed var(--line); }
.cats .cnt { color:var(--muted); font-variant-numeric:tabular-nums; }
.rank-cols { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
table.rank { width:100%; border-collapse:collapse; font-size:15px; }
.rank th, .rank td { text-align:left; padding:6px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
.rank th { color:var(--muted); font-weight:600; font-size:13px; }
.rank .num { text-align:right; white-space:nowrap; } .rank .pos { color:var(--muted); width:36px; }
.rank tr:target { background:#fff6d6; outline:2px solid var(--yellow); }
.rank .user { font-size:12px; }
.pager { margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; }
/* вход и админка */
.auth { max-width:420px; margin:24px auto; }
.auth-form { display:flex; flex-direction:column; gap:12px; }
.auth-form label { display:flex; flex-direction:column; gap:4px; font-size:14px; color:var(--muted); }
.auth-form input { font-size:16px; padding:10px 12px; border:1px solid #c9d1de; border-radius:8px; color:var(--ink); }
[hidden] { display:none !important; }
.admin-nav { display:flex; gap:18px; align-items:center; flex-wrap:wrap; margin-bottom:12px; font-size:15px; }
.admin-nav .who { margin-left:auto; color:var(--muted); }
button.link { background:none; color:var(--brand); padding:0; font-size:inherit; font-weight:400; border-radius:0; }
.counters { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:12px; }
.counters .v { font-size:28px; }
.table-scroll { overflow-x:auto; } .nowrap { white-space:nowrap; }
/* подписка: предупреждение о сроке (ТЗ тарифов §5), админ-формы */
.sub-line { color:#d92d20; font-weight:600; margin:0 0 12px; }
/* UI-01: информационный блок о сроке подписки (токены макета: фон #EFF8FD, рамка #C7E5F5, текст #14263C; кнопка чуть темнее #0099D6 ради контраста белого текста) */
.sub-notice { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:0 0 16px; padding:14px 18px; background:#eff8fd; border:1px solid #c7e5f5; border-radius:14px; color:#14263c; }
.sub-notice .sn-ico { color:#0087be; display:inline-flex; flex:none; }
.sub-notice .sn-txt { flex:1 1 260px; min-width:0; }
.sub-notice .sn-txt strong { display:block; font-weight:700; }
.sub-notice .sn-txt span { display:block; margin-top:2px; font-size:15px; }
.sub-notice .sn-btn { flex:none; padding:9px 22px; border-radius:10px; background:#007cb3; color:#fff; font-weight:700; text-decoration:none; }
.sub-notice .sn-btn:hover { background:#00699a; }
.sub-notice .sn-btn:focus-visible { outline:3px solid #14263c; outline-offset:2px; }
@media (max-width:600px) { .sub-notice .sn-btn { width:100%; text-align:center; } }
.user-access select, .user-access input[type=date], .price-form input[name=rub] { font-size:15px; padding:6px 8px; border:1px solid #c9d1de; border-radius:8px; color:var(--ink); }
.price-form { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.price-form input[name=rub] { width:110px; }
.price-form .status, .user-access .status { flex-basis:100%; font-size:13px; }
@media (max-width: 720px) {
    .facts, .stats, .counters { grid-template-columns:1fr 1fr; }
    .rank-cols { grid-template-columns:1fr; }
    .cats { grid-template-columns:1fr; }
    .secs, .have { grid-template-columns:1fr; }
    .tally { grid-template-columns:repeat(2, 1fr); }
    .rhythm { grid-template-columns:1fr 1fr; }
    .checks td.val { white-space:normal; }
    .score .v { font-size:40px; }
    h1 { font-size:22px; }
}
/* тарифы, оплата */
.tariffs td { vertical-align:middle; } .tariffs .price { font-weight:700; font-size:17px; margin-bottom:4px; }
.tariffs button.buy { padding:6px 14px; font-size:14px; }
#creds-box .fact { margin-top:8px; } #creds-box .fact .v { font-family:Consolas,monospace; user-select:all; }

/* адаптив по макету: 1024 / 800 / 600 / 390 */
@media (max-width: 800px) {
    .grid3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .nav { gap:16px; } .header-inner { gap:12px; }
}
@media (max-width: 600px) {
    html { scroll-padding-top:72px; }
    .header-inner { height:65px; }
    .nav { display:none; } button.hamb { display:block; }
    .wrap { padding:0 10px; }
    .main { padding-top:10px; }
    .card, .module { padding:20px 17px; border-radius:18px; margin-bottom:12px; }
    .module h1, .module h2, .module.hero h1 { font-size:21px; }
    .hero { padding:20px 16px; }
    .hero-banner { padding:12px 15px; gap:13px; font-size:13px; min-height:65px; }
    .search-wrap { flex-direction:column; padding:8px; gap:8px; }
    .search-wrap input { height:50px; min-height:50px; font-size:15px; }
    .search-wrap button { height:49px; font-size:14px; }
    .examples { margin:14px 2px; gap:7px; font-size:12px; }
    .examples .chip { padding:7px 10px; font-size:12px; }
    .two, .grid3 { grid-template-columns:1fr; } .two { gap:12px; margin-bottom:12px; }
    .metrics { gap:6px; }
    .footer { padding:25px 19px; }
    .footer-grid { grid-template-columns:1fr 1fr; gap:25px; } .footer-grid > div:first-child { grid-column:1/-1; }
    .foot-bottom { flex-direction:column; }
    .rankcta { align-items:flex-start; flex-direction:column; }
}
/* тарифы до 640px: каждая строка шахматки — карточка «тариф · каналы» + три срока в ряд (CheckTG_TARIFF.md §5) */
@media (max-width: 640px) {
    table.tmx, .tmx tbody { display:block; border:0; border-radius:0; overflow:visible; }
    .tmx thead { display:none; }
    .tmx tbody tr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid #dce7ef; border-radius:14px; overflow:hidden; margin-bottom:10px; } .tmx tbody tr:last-child { margin-bottom:0; }
    .tmx tbody th { grid-column:1/-1; display:flex; justify-content:space-between; align-items:baseline; gap:8px; background:#f1f6fa; border-top:0; padding:9px 12px; }
    .tmx tbody th b, .tmx tbody th span { display:inline; }
    .tmx td { display:block; border-top:0; padding:8px 4px 10px; }
    .tmx td + td { border-left:1px solid #dce7ef; }
    .tmx td::before { content:attr(data-period); display:block; font-size:12px; color:#637183; margin-bottom:5px; }
    .tmx button.buy { font-size:14px; padding:10px 2px; }
}
@media (max-width: 390px) {
    .footer-grid { grid-template-columns:1fr; } .footer-grid > div:first-child { grid-column:auto; }
    .login { padding:10px 12px; } .brand { font-size:22px; }
    .login.acct { max-width:46vw; padding:10px 12px; } button.hdr-logout { width:40px; height:40px; }
    .ranking td, .ranking th { padding:10px 5px; }
}

/* кабинет (ТЗ кабинета §3–6, §14–15): меню из трёх разделов, блок подписки, карточки каналов, помощь */
.app-nav a[aria-current] { color:var(--navy); font-weight:700; border-bottom:2px solid var(--cyan); text-decoration:none; }
.app-nav .who a { color:var(--brand); }
.sub-line a { color:inherit; text-decoration:underline; }
.page-title { margin:6px 0 14px; }
.page-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:6px 0 12px; }
.page-head h1 { margin:0; }
.sub-block { padding:18px 22px; }
.sub-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px 20px; align-items:center; }
.sub-grid .l, .ch-audit .l { font-size:13px; color:var(--muted); margin-bottom:3px; }
.sub-grid .v { font-weight:700; color:var(--navy); overflow-wrap:anywhere; }
.sub-act { text-align:right; }
.act-row { margin:16px 0 8px; }
button.ghost, .btn.ghost { background:#fff; color:var(--cyan-ink); border:1px solid #b9dff2; }
.slot-form { max-width:560px; }
.slot-form input, .help-form input, .help-form select, .help-form textarea { display:block; width:100%; font-size:16px; padding:10px 12px; border:1px solid #c9d1de; border-radius:10px; color:var(--ink); background:#fff; font-family:inherit; margin:6px 0 12px; }
.slot-form label, .help-form label { display:block; }
.form-row { display:flex; gap:10px; flex-wrap:wrap; }
.status .ok { color:var(--green); font-weight:600; }
.ch-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.ch-grid .card { margin-bottom:0; display:flex; flex-direction:column; gap:14px; }
.ch-top { display:flex; gap:14px; align-items:center; min-width:0; }
.ava-s { width:56px; height:56px; font-size:24px; }
.ch-id { min-width:0; }
.ch-name { font-weight:700; color:var(--navy); font-size:17px; overflow-wrap:anywhere; }
.ch-id .muted { overflow-wrap:anywhere; }
.ch-score { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; }
.score-num { font-size:34px; font-weight:800; line-height:1; }
.score-num.good, .delta.up { color:var(--green); } .score-num.mid { color:#b27a00; } .score-num.bad, .delta.down { color:var(--red); }
.delta { font-size:14px; font-weight:600; color:var(--muted); }
.ch-state { font-weight:600; color:var(--muted); } .ch-state.run { color:var(--cyan-ink); } .ch-state.err { color:var(--red); }
.ch-state .spin { display:inline-block; width:14px; height:14px; border:2px solid var(--brand); border-right-color:transparent; border-radius:50%; animation:spin .8s linear infinite; vertical-align:-2px; margin-right:6px; }
.ch-act { margin-top:auto; }
.empty-state { text-align:center; padding:36px 20px; }
.state.good { color:var(--green); } .state.bad { color:var(--red); }
.help-cols { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; align-items:start; }
.help-cols .card { margin-bottom:0; }
.help-guide details { border-top:1px solid var(--line); padding:12px 0; }
.help-guide details:first-of-type { border-top:0; }
.help-guide summary { cursor:pointer; font-weight:700; color:var(--navy); }
.help-guide details p { margin:8px 0 0; }
.help-form [hidden] { display:none; }
.support-msg { max-width:360px; white-space:pre-wrap; overflow-wrap:anywhere; }
@media (max-width: 900px) {
    .sub-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .sub-act { text-align:left; }
    .help-cols { grid-template-columns:1fr; }
}
@media (max-width: 720px) {
    .ch-grid { grid-template-columns:1fr; }
    .app-nav { gap:12px 16px; } .app-nav .who { margin-left:0; flex-basis:100%; }
    .page-head .btn, .page-head button { flex:0 0 auto; }
}
/* 320px: шапка (логотип + «Кабинет» + гамбургер) не должна давать горизонтальную прокрутку (ТЗ кабинета §17) */
@media (max-width: 360px) {
    .header-inner { gap:6px; } .header-actions { gap:6px; }
    .header-actions .login { padding:10px 12px; font-size:13px; }
    .login.acct { max-width:36vw; padding:10px; gap:4px; } button.hdr-logout { width:36px; height:36px; }
    .brand { font-size:21px; }
}

/* Блок B кабинета: страница канала, аудит 28, история, сравнение, мониторинг (ТЗ кабинета §7–11) */
.back { margin:0 0 10px; font-size:14px; }
.ch-head { padding:18px 24px; }
.ch-top { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.ch-top .ava { width:56px; height:56px; border-radius:50%; object-fit:cover; flex:0 0 auto; }
.ch-top .ava-empty { background:var(--ice2); color:var(--cyan-ink); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:22px; }
.ch-id { flex:1 1 200px; min-width:0; } .ch-id h1 { margin:0; font-size:22px; overflow-wrap:anywhere; }
.quiet { font-size:13px; color:var(--muted); } .quiet:hover { color:var(--cyan-ink); }
/* BUG-03: раньше у ссылок был margin-bottom:-1px при overflow-x:auto — контейнер получал лишний 1px высоты и показывал вертикальную полосу.
   Линию под вкладками рисует inset-тень контейнера, ссылки без отрицательных отступов; по вертикали контейнер не прокручивается. */
.tabs { display:flex; gap:4px; margin:0 0 14px; box-shadow:inset 0 -1px 0 var(--line); overflow-x:auto; overflow-y:hidden; }
.tabs a { padding:10px 16px; color:var(--ink); font-weight:600; white-space:nowrap; border-bottom:3px solid transparent; flex:none; }
.tabs a:focus-visible { outline:3px solid #14263c; outline-offset:-3px; }
.tabs a:hover { text-decoration:none; color:var(--cyan-ink); }
.tabs a[aria-current=page] { border-bottom-color:var(--cyan); color:var(--cyan-ink); }

.audit-h { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.audit-h h2 { margin:0; }
.audit-btns { display:flex; gap:8px; flex-wrap:wrap; }
button:disabled { background:#cfd9e2; color:#6c7d91; cursor:not-allowed; }
.audit-score { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin:14px 0 4px; }
.audit-score .v { font-size:54px; font-weight:800; line-height:1; }
.audit-score .of { color:var(--muted); }
.v.red { color:var(--red); } .v.yellow { color:#b07f08; } .v.green { color:var(--green); } .v.gray { color:var(--muted); }
.delta-note { font-weight:700; }
.conclusion { margin:10px 0 0; }
.notice { background:var(--ice2); border-radius:11px; padding:10px 14px; margin:12px 0 0; }
.full-audit h2 { margin-top:0; }

.secs { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; }
.sec { display:block; border:1px solid var(--line); border-radius:13px; padding:12px 14px; color:var(--ink); }
.sec:hover { text-decoration:none; border-color:var(--cyan); }
.sec-h { display:flex; justify-content:space-between; gap:8px; font-weight:600; }
.sec-h small { color:var(--muted); font-weight:400; }
.sec .s { color:var(--muted); font-size:13px; margin-top:6px; }
.meter { height:6px; background:#e8eef3; border-radius:4px; margin-top:8px; overflow:hidden; }
.meter i { display:block; height:100%; width:calc(var(--w) * 1%); background:var(--muted); border-radius:4px; }
.meter.red i { background:var(--red); } .meter.yellow i { background:var(--yellow); } .meter.green i { background:var(--green); }

.chk-group { scroll-margin-top:70px; margin-top:18px; } .chk-group h3 { margin:0 0 8px; }
.chk { border-top:1px solid var(--line); padding:10px 0; }
.chk-h { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.chk-v { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-top:2px; }
.chk .s { color:var(--muted); font-size:14px; margin-top:2px; }
.tag.green { background:#e0f5e8; color:var(--green); } .tag.gray { background:#eef2f6; color:var(--muted); } .tag.teal { background:#e0f4f6; color:#0c6f7a; }
.note { font-size:13px; }

.hist-bar { display:flex; align-items:center; gap:14px; margin:10px 0; }
.hist-cards { display:none; }
.hist-card { border:1px solid var(--line); border-radius:13px; padding:12px 14px; margin-top:10px; display:grid; gap:2px; }
.hist-pick { font-size:14px; color:var(--muted); }

.cmp-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.cmp-col .l, .cmp-cols .l { font-size:13px; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.cmp-col .audit-score .v { font-size:44px; }
.cmp-row { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:10px; padding:8px 0; border-top:1px solid var(--line); }
.cmp-d { font-weight:700; text-align:right; }
.cmp-chk { border-top:1px solid var(--line); padding:8px 0; }
.cmp-chk summary { display:flex; align-items:center; gap:8px; flex-wrap:wrap; cursor:pointer; }
.cmp-chk .cmp-name { flex:1 1 220px; font-weight:600; }
.cmp-cols { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:10px 0; }
.cmp-chk .s { color:var(--muted); font-size:14px; }

.mon-h { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.mon-h h2 { margin:0; }
.period { display:flex; gap:4px; background:var(--soft); border-radius:11px; padding:3px; }
.period a { padding:6px 14px; border-radius:9px; color:var(--ink); font-weight:600; font-size:14px; } .period a:hover { text-decoration:none; }
.period a.on { background:#fff; color:var(--cyan-ink); box-shadow:0 1px 3px rgba(20,38,60,.12); }
.mon-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:14px 0; }
.mon-card { border:1px solid var(--line); border-radius:13px; padding:14px 16px; }
.mon-card .l { color:var(--muted); font-size:13px; } .mon-card .v { font-size:30px; font-weight:800; } .mon-card .s { color:var(--muted); font-size:13px; }
.chart-box { overflow-x:auto; }
/* линейные календарные графики мониторинга: два SVG (десктоп / узкий экран), виден один */
svg.chart.line .ln { fill:none; stroke:var(--brand); stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
svg.chart.line .area { fill:var(--brand); opacity:.09; stroke:none; }
svg.chart.line .dot { fill:var(--brand); stroke:#fff; stroke-width:1; pointer-events:none; }
svg.chart.line .hit { fill:transparent; stroke:none; }
svg.chart.line .hit:hover, svg.chart.line .hit.sel { fill:var(--brand); fill-opacity:.2; stroke:var(--brand); stroke-width:1.5; }
svg.chart.line .hit:focus-visible { stroke:#14263c; stroke-width:2; }
.lc .lc-narrow { display:none; }
.mon-sub { margin:0 0 6px; }
.mon-note { margin:8px 0 0; }
.mon-warn { border:1px solid var(--line); background:var(--soft); border-radius:12px; padding:10px 14px; margin:10px 0; }
.mon-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 20px; }
.mon-grid > div { min-width:0; }
.mon-cards.c4 { grid-template-columns:repeat(4,minmax(0,1fr)); }

@media (max-width: 720px) {
    .hist-table { display:none; } .hist-cards { display:block; }
    .tabs { gap:0; } .tabs a { padding:10px 10px; font-size:14px; }
    .cmp-grid, .cmp-cols, .mon-cards, .mon-cards.c4, .mon-grid { grid-template-columns:1fr; }
    .lc .lc-wide { display:none; } .lc .lc-narrow { display:block; }
    .period a { padding:6px 10px; }
    .cmp-row { grid-template-columns:1fr 1fr 1fr; } .cmp-row .cmp-name { grid-column:1 / -1; font-weight:600; }
    .audit-score .v { font-size:44px; }
    .audit-btns, .audit-btns button, .audit-btns .btn { width:100%; text-align:center; }
}

/* страницы подвала: «О сервисе», FAQ, контакты, документы */
.doc { max-width:860px; margin-left:auto; margin-right:auto; }
.doc h1 { font-size:28px; margin:0 0 6px; } .doc h2 { font-size:19px; margin:26px 0 10px; }
.doc p, .doc li { line-height:1.65; } .doc ul, .doc ol { padding-left:22px; }
.doc .edition { color:var(--muted); font-size:13px; margin:0 0 18px; }
.doc details { border-top:1px solid #e3eaf1; padding:12px 0; } .doc details:last-of-type { border-bottom:1px solid #e3eaf1; }
.doc summary { cursor:pointer; font-weight:600; } .doc details p { margin:10px 0 0; }
.doc dl { margin:0; } .doc dt { color:var(--muted); font-size:13px; margin-top:12px; } .doc dd { margin:2px 0 0; }

/* SEARCH-01 / BUG-01 (ТЗ 12.11.2026): единое поле выбора канала — подсказки и ошибка под полем */
.cf-host { position:relative; }
.cf-list { position:absolute; z-index:40; margin:0; padding:6px; list-style:none; background:#fff; border:1px solid var(--line); border-radius:16px;
           box-shadow:0 12px 32px rgba(20,38,60,.16); max-height:min(440px, 60vh); overflow-y:auto; text-align:left; }
.cf-list[hidden] { display:none; }
.cf-item { display:flex; align-items:center; gap:12px; padding:8px 12px; min-height:52px; border-radius:12px; cursor:pointer; }
.cf-item[aria-selected="true"] { background:var(--ice); }
.cf-item:hover { background:var(--ice2); }
.cf-ava { flex:none; width:36px; height:36px; border-radius:50%; object-fit:cover; background:var(--ice); }
.cf-ava-0 { display:inline-flex; align-items:center; justify-content:center; font-weight:800; color:var(--cyan-ink); }
.cf-t { flex:1; min-width:0; }
.cf-t b, .cf-t span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cf-t b { font-weight:700; color:var(--ink); }
.cf-t span { color:var(--muted); font-size:14px; }
.cf-empty { padding:12px; color:var(--muted); font-size:15px; }
.cf-err { margin:8px 6px 0; color:var(--red); font-size:15px; font-weight:600; text-align:left; }
.cf-err::before { content:"! "; font-weight:800; }
.cf-err[hidden] { display:none; }
.search-wrap.invalid { border-color:var(--red); }
.search-wrap input[aria-invalid="true"] { box-shadow:inset 0 0 0 2px var(--red); background:#fff; }
.slot-form input[aria-invalid="true"] { border-color:var(--red); box-shadow:0 0 0 1px var(--red); }
.slot-form .cf-err { margin:-6px 0 10px; }
a.cf-open { display:inline-block; margin-left:6px; padding:6px 14px; border-radius:10px; background:var(--ice); color:var(--cyan-ink); font-weight:800; }
a.cf-open:hover { background:#c2e8fa; text-decoration:none; }

/* Вход через Telegram (AUTH-01/02, ТЗ 12.11.2026) */
.tg-auth { max-width:460px; text-align:center; }
.tg-auth h1 { margin-top:0; }
.tg-btn { display:inline-block; background:var(--cyan); color:#fff; border:0; border-radius:10px; padding:13px 26px; font-size:17px; font-weight:800; text-decoration:none; cursor:pointer; }
.tg-btn:hover { filter:brightness(.95); text-decoration:none; }
.tg-btn:disabled { opacity:.6; cursor:default; }
.tg-state { font-weight:600; color:var(--navy); }
.tg-state .ok { color:#177245; }
.tg-qr { margin:14px 0; } .tg-qr img { display:block; margin:0 auto 6px; width:180px; height:180px; border:1px solid #dce7ef; border-radius:12px; padding:8px; background:#fff; }
.tg-alt { margin-top:18px; }
/* вход (ТЗ 13.11.2026, БАГ-01): две кнопки, QR, состояния; одна колонка на узких экранах */
.tg-lead { margin:0 0 16px; color:var(--navy); font-weight:600; }
.tg-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:0 0 6px; }
.tg-actions .tg-btn { flex:1 1 180px; text-align:center; box-sizing:border-box; }
a.tg-btn[aria-disabled=true] { opacity:.55; pointer-events:none; }
.tg-btn.alt { background:#fff; color:var(--cyan); border:2px solid var(--cyan); padding:11px 24px; }
.tg-btn.alt:hover { background:#f2fafd; filter:none; }
.tg-btn:focus-visible { outline:3px solid #0a5a73; outline-offset:2px; }
.tg-problem { margin:8px 0; }
@media (max-width:420px) { .tg-actions .tg-btn { flex-basis:100%; } .tg-qr img { width:160px; height:160px; } }
.tg-link { background:#eef7fc; border:1px solid #cfe6f3; } .tg-link h2 { margin-top:0; }
.tg-link [data-tg-qrbox] { text-align:left; }

/* Страница «Тарифы»: блок выбранного (PRICE-01) и текст «Что даёт подписка» */
.tsel { max-width:800px; margin:18px auto 0; padding:16px 18px; border:1px solid #dce7ef; border-radius:14px; background:#f8fbfd; text-align:center; }
.tsel-title { margin:0; font-size:18px; font-weight:800; color:var(--navy); }
.tsel-sum { margin:4px 0 12px; color:var(--ink); }
.tsel-go { background:var(--cyan); color:#fff; border:0; border-radius:10px; padding:12px 34px; font-size:16px; font-weight:800; cursor:pointer; margin-top:10px; }
.tsel-go:disabled { background:#c3ccd6; cursor:default; }
.tsel-hint { margin:8px 0 0; font-size:13px; color:var(--muted); }
.tsel .status:empty { min-height:0; margin:0; }
.sub-text { max-width:800px; margin:34px auto 0; }
.sub-text h2 { margin-bottom:10px; } .sub-text p { margin:0 0 12px; line-height:1.55; }
.nav a[aria-current=page], .mobile-nav a[aria-current=page] { color:var(--cyan); font-weight:700; }

/* партнёрская программа (ТЗ 13.11.2026): слева описание и кнопка, справа компактная форма входа; на телефоне — одна колонка */
.pp-grid { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:18px; align-items:start; }
.pp-grid .card { margin-bottom:0; }
.pp-lead { font-size:18px; line-height:1.55; font-weight:600; }
.pp-main p { line-height:1.65; margin:0 0 12px; }
.pp-actions { margin:18px 0 8px !important; }
.pp-actions .btn { padding:14px 24px; font-size:16px; }
.pp-fallback { margin-top:10px; } .pp-fallback summary { cursor:pointer; color:var(--cyan-ink); font-weight:600; }
.pp-copy { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.pp-copy code { background:var(--soft); border-radius:8px; padding:8px 10px; overflow-wrap:anywhere; }
.pp-form label { display:block; font-weight:600; margin:12px 0 4px; }
.pp-form input { display:block; width:100%; font-size:16px; padding:10px 12px; border:1px solid #c9d1de; border-radius:10px; color:var(--ink); background:#fff; font-family:inherit; }
.pp-form input:focus-visible, .pt-link input:focus-visible { outline:2px solid var(--cyan); outline-offset:1px; }
.pwd-row { display:flex; gap:8px; } .pwd-row input { flex:1 1 auto; min-width:0; } .pwd-row button { flex:none; padding:10px 14px; }
.pp-submit { width:100%; margin-top:16px; padding:13px 20px; }
.pp-form .status { margin-top:10px; min-height:22px; }
.pt-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; flex-wrap:wrap; }
.pt-login { margin:4px 0 0; overflow-wrap:anywhere; }
.pt-link { display:flex; gap:10px; flex-wrap:wrap; }
.pt-link input { flex:1 1 280px; min-width:0; font-size:16px; padding:10px 12px; border:1px solid #c9d1de; border-radius:10px; color:var(--ink); background:#fff; }
.pt-sum { font-size:18px; margin:0 0 12px; }
.pager-info { align-self:center; }
.pa-created { background:var(--ice2); border-radius:12px; padding:12px 16px; margin-top:14px; overflow-wrap:anywhere; } .pa-created p { margin:4px 0; }
.pa-actions { display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.pa-actions form { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.pa-actions input[type=text] { font-size:15px; padding:6px 8px; border:1px solid #c9d1de; border-radius:8px; color:var(--ink); }
.pa-payout input[readonly] { background:var(--soft); }
.pa-payout input { display:block; width:100%; max-width:360px; font-size:16px; padding:10px 12px; border:1px solid #c9d1de; border-radius:10px; margin:4px 0 12px; }
@media (max-width:860px) { .pp-grid { grid-template-columns:minmax(0,1fr); } .pp-grid .card + .card { margin-top:0; } }
