:root{
  --red:#8e1620; --red-d:#5e0d14; --red-l:#b0262f; --gold:#e8b23e; --gold-l:#ffe7a8;
  --bg:#f4f1ec; --card:#fff; --text:#1d1b19; --muted:#6b645c; --line:#e7e1d8;
  --ok:#1f9d55; --ok-bg:#e5f6ec; --soon:#d99100; --soon-bg:#fff4d6; --over:#d63031; --over-bg:#fde7e7; --na:#8a8580; --na-bg:#efedea;
  --r:18px; --shadow:0 2px 10px rgba(60,30,10,.07);
  --tabh:68px; --safe-b:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Arial,sans-serif;background:var(--bg);color:var(--text);font-size:16px;line-height:1.4;min-height:100vh}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
input,select{font:inherit}
a{color:var(--red)}
.app{max-width:520px;margin:0 auto;min-height:100vh;position:relative;padding-bottom:calc(var(--tabh) + var(--safe-b) + 90px)}

/* Top bar */
.topbar{position:sticky;top:0;z-index:20;background:linear-gradient(135deg,var(--red) 0%,var(--red-d) 100%);color:#fff;padding:10px 14px;padding-top:calc(10px + env(safe-area-inset-top,0px));display:flex;align-items:center;gap:10px;box-shadow:0 2px 12px rgba(0,0,0,.18)}
.brand{display:flex;align-items:center;gap:9px;flex:1;min-width:0}
.brand img{width:36px;height:36px;border-radius:10px}
.brand b{display:block;font-size:17px;letter-spacing:.2px;white-space:nowrap}
.brand small{display:block;font-size:11.5px;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb-btn{height:40px;min-width:40px;padding:0 10px;border-radius:12px;background:rgba(255,255,255,.14);color:#fff;font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center;gap:4px}
.tb-btn:active{background:rgba(255,255,255,.28)}
.offline-bar{background:#333;color:#fff;font-size:13px;text-align:center;padding:6px}

/* Page header */
.page{padding:14px 14px 0}
.ph{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 2px 12px}
.ph h1{font-size:23px;margin:0;line-height:1.15}
.ph .sub{color:var(--muted);font-size:13.5px;margin-top:3px}
.video-btn{flex:none;display:flex;align-items:center;gap:6px;height:40px;padding:0 12px;border-radius:20px;background:#fff;border:1.5px solid var(--line);font-weight:700;font-size:14px;color:var(--red);box-shadow:var(--shadow)}
.video-btn .pl{width:22px;height:22px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-size:10px}

.card{background:var(--card);border-radius:var(--r);box-shadow:var(--shadow);padding:14px;margin-bottom:12px}
.card h2{font-size:18px;margin:0 0 8px}
.muted{color:var(--muted)}
.small{font-size:13px}
.demo-tag{display:inline-block;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.4px;background:#ece6ff;color:#5b3fc4;border-radius:6px;padding:2px 6px;vertical-align:middle}
.real-tag{display:inline-block;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.4px;background:#e5f6ec;color:#167a42;border-radius:6px;padding:2px 6px;vertical-align:middle}
.note{font-size:13px;color:var(--muted);background:#fff;border:1px dashed #d8cfc2;border-radius:14px;padding:10px 12px;margin-bottom:12px}

/* Deadline banner */
.banner{border-radius:var(--r);padding:14px;margin-bottom:12px;color:#fff;background:linear-gradient(135deg,var(--red-l),var(--red));box-shadow:0 6px 18px rgba(142,22,32,.25)}
.banner.soon{background:linear-gradient(135deg,#e2a400,#c47a00);box-shadow:0 6px 18px rgba(200,130,0,.25)}
.banner.ok{background:linear-gradient(135deg,#25a85f,#167a42);box-shadow:0 6px 18px rgba(22,122,66,.25)}
.banner .bt{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;opacity:.9;margin-bottom:6px}
.banner .bi{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.16);border-radius:12px;padding:9px 10px;margin-top:6px;width:100%;text-align:left;color:#fff}
.banner .bi .dot{width:10px;height:10px;border-radius:50%;flex:none;background:#fff}
.banner .bi .n{flex:1;font-weight:600;font-size:15px}
.banner .bi .d{font-size:13px;font-weight:700;white-space:nowrap}
.banner .sum{font-size:13px;opacity:.9;margin-top:8px}

/* Document cards */
.doc{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#fff;border-radius:16px;padding:12px;margin-bottom:10px;box-shadow:var(--shadow);border-left:6px solid var(--na);min-height:72px}
.doc:active{transform:scale(.99)}
.doc.ok{border-left-color:var(--ok)} .doc.soon{border-left-color:var(--soon)} .doc.over{border-left-color:var(--over)}
.doc .ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:22px;background:var(--na-bg);flex:none}
.doc.ok .ic{background:var(--ok-bg)} .doc.soon .ic{background:var(--soon-bg)} .doc.over .ic{background:var(--over-bg)}
.doc .mid{flex:1;min-width:0}
.doc .nm{font-weight:700;font-size:15.5px}
.doc .dt{font-size:13px;color:var(--muted);margin-top:2px}
.pill{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:800;border-radius:20px;padding:4px 9px;white-space:nowrap}
.pill.ok{background:var(--ok-bg);color:var(--ok)} .pill.soon{background:var(--soon-bg);color:#a86d00} .pill.over{background:var(--over-bg);color:var(--over)} .pill.na{background:var(--na-bg);color:var(--na)}
.pill::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.doc .rt{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.doc .days{font-size:12px;font-weight:700;color:var(--muted)}

/* Legal check */
.legal-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:10px 0}
.lg{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 2px;border-radius:12px;background:var(--bg);font-size:11.5px;text-align:center;font-weight:600;min-height:74px;justify-content:center}
.lg .e{font-size:22px}
.lg.y{background:var(--ok-bg)} .lg.n{background:var(--over-bg)} .lg.w{background:var(--soon-bg)}
.legal-res{border-radius:14px;padding:12px;font-weight:700;display:flex;gap:10px;align-items:center;font-size:15px}
.legal-res.ok{background:var(--ok-bg);color:#14713c} .legal-res.soon{background:var(--soon-bg);color:#8a5a00} .legal-res.over{background:var(--over-bg);color:#a81f1f}
.legal-res .e{font-size:26px}
.row{display:flex;gap:8px;align-items:center}
.toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);min-height:52px}
.toggle:last-child{border-bottom:0}
.switch{position:relative;width:52px;height:30px;flex:none}
.switch input{opacity:0;width:0;height:0}
.switch span{position:absolute;inset:0;background:#cfc8bf;border-radius:30px;transition:.2s}
.switch span::before{content:"";position:absolute;width:24px;height:24px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.switch input:checked+span{background:var(--ok)}
.switch input:checked+span::before{transform:translateX(22px)}
.seg{display:flex;background:var(--bg);border-radius:12px;padding:3px;gap:3px}
.seg button{flex:1;padding:9px 4px;border-radius:9px;font-size:13.5px;font-weight:700;color:var(--muted);min-height:42px}
.seg button.on{background:#fff;color:var(--red);box-shadow:0 1px 4px rgba(0,0,0,.1)}
.field{margin:10px 0}
.field label{display:block;font-size:13px;font-weight:700;color:var(--muted);margin-bottom:5px}
.field input[type=date],.field input[type=text],.field input[type=tel],.field input[type=number],.field select{width:100%;height:50px;border:1.5px solid var(--line);border-radius:12px;padding:0 12px;background:#fff;font-size:16px;color:var(--text)}
.field input:focus,.field select:focus{outline:none;border-color:var(--red)}
.chk{display:flex;align-items:center;gap:12px;padding:12px;border:1.5px solid var(--line);border-radius:12px;margin:10px 0;font-weight:600;min-height:54px}
.chk input{width:24px;height:24px;accent-color:var(--ok);flex:none}

/* Buttons */
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;border-radius:14px;background:var(--red);color:#fff;font-weight:800;font-size:16px;padding:0 16px;text-decoration:none}
.btn:active{filter:brightness(.92)}
.btn.sec{background:#fff;color:var(--red);border:1.5px solid var(--line)}
.btn.gold{background:var(--gold);color:#3a2500}
.btn.wa{background:#25d366;color:#fff}
.btn+.btn{margin-top:8px}
.btn-row{display:flex;gap:8px}.btn-row .btn{margin:0}

/* Tabbar */
.tabbar{position:fixed;bottom:0;left:0;right:0;z-index:30;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:center;padding-bottom:var(--safe-b);box-shadow:0 -4px 16px rgba(0,0,0,.05)}
.tabbar .in{display:flex;max-width:520px;width:100%}
.tab{flex:1;height:var(--tabh);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:11.5px;font-weight:700;color:#8b847c;position:relative}
.tab .i{font-size:22px;line-height:1;filter:grayscale(1);opacity:.7}
.tab.on{color:var(--red)} .tab.on .i{filter:none;opacity:1}
.tab.on::after{content:"";position:absolute;top:0;width:34px;height:3px;border-radius:0 0 3px 3px;background:var(--red)}
.badge{position:absolute;top:8px;left:calc(50% + 6px);background:var(--over);color:#fff;font-size:10.5px;font-weight:800;min-width:18px;height:18px;border-radius:9px;display:grid;place-items:center;padding:0 4px}

/* FAB */
.fab{position:fixed;right:max(14px,calc(50% - 246px));bottom:calc(var(--tabh) + var(--safe-b) + 14px);z-index:25;width:58px;height:58px;border-radius:50%;background:#25d366;color:#fff;display:grid;place-items:center;box-shadow:0 6px 18px rgba(37,211,102,.45)}
.fab svg{width:30px;height:30px}

/* Modal */
.modal-bg{position:fixed;inset:0;background:rgba(20,10,5,.5);z-index:50;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}
.modal{background:#fff;width:100%;max-width:520px;max-height:92vh;overflow:auto;border-radius:22px 22px 0 0;padding:8px 16px calc(18px + var(--safe-b));animation:up .2s ease-out}
.modal .grab{width:40px;height:5px;border-radius:3px;background:#ddd;margin:4px auto 10px}
.modal h3{font-size:20px;margin:0 0 6px;display:flex;align-items:center;gap:8px}
.modal .x{position:sticky;top:0;float:right;width:40px;height:40px;border-radius:50%;background:var(--bg);font-size:20px;margin-left:8px}
@keyframes up{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
@keyframes fade{from{opacity:0}}
.explain{background:var(--bg);border-radius:14px;padding:12px;font-size:15px;line-height:1.5;margin:10px 0}
.explain h4{margin:0 0 6px;font-size:14px;color:var(--red);text-transform:uppercase;letter-spacing:.4px}
.kv{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);font-size:15px}
.kv:last-child{border:0} .kv b{text-align:right}

/* Video */
.player{position:relative;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:linear-gradient(135deg,#1a1a1a,var(--red-d) 60%,var(--red));display:grid;place-items:center;color:#fff;margin:8px 0 12px}
.player .play{width:72px;height:72px;border-radius:50%;background:rgba(255,255,255,.18);display:grid;place-items:center;font-size:28px;border:2px solid rgba(255,255,255,.5)}
.player .cap{position:absolute;left:12px;bottom:10px;right:12px;font-size:13px;opacity:.85;display:flex;justify-content:space-between}
.player .bar{position:absolute;left:0;bottom:0;height:4px;width:100%;background:rgba(255,255,255,.2)}

/* Calendar */
.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.cal-head b{font-size:17px}
.cal-nav{width:42px;height:42px;border-radius:12px;background:var(--bg);font-size:20px}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}
.cal-grid .wd{font-size:11.5px;font-weight:700;color:var(--muted);padding:4px 0}
.cal-d{aspect-ratio:1;border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:14.5px;font-weight:600;position:relative;background:transparent}
.cal-d.other{opacity:.3}
.cal-d.today{background:var(--red);color:#fff}
.cal-d.sel{outline:2px solid var(--gold)}
.cal-d .dots{display:flex;gap:2px;position:absolute;bottom:5px}
.cal-d .dots i{width:6px;height:6px;border-radius:50%;display:block}
.ev{display:flex;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}
.ev:last-child{border:0}
.ev .date{width:52px;flex:none;text-align:center;border-radius:12px;padding:6px 0;background:var(--bg)}
.ev .date b{display:block;font-size:19px;line-height:1}
.ev .date span{font-size:11px;color:var(--muted);text-transform:uppercase;font-weight:700}
.ev.ok .date{background:var(--ok-bg)} .ev.soon .date{background:var(--soon-bg)} .ev.over .date{background:var(--over-bg)}
.ev .t{flex:1;font-weight:600;font-size:15px}
.ev .s{font-size:12.5px;color:var(--muted);font-weight:500}
.c-ok{background:var(--ok)} .c-soon{background:var(--soon)} .c-over{background:var(--over)} .c-na{background:var(--na)}

/* News */
.news{background:#fff;border-radius:16px;box-shadow:var(--shadow);padding:14px;margin-bottom:10px;position:relative;width:100%;text-align:left;display:block}
.news.unread{border:2px solid var(--gold)}
.news .top{display:flex;gap:8px;align-items:center;font-size:12.5px;color:var(--muted);margin-bottom:6px;flex-wrap:wrap}
.news .cat{font-weight:800;color:var(--red);text-transform:uppercase;font-size:11.5px;letter-spacing:.4px}
.news .new{background:var(--over);color:#fff;font-size:11px;font-weight:800;border-radius:6px;padding:2px 7px;text-transform:uppercase}
.news h3{font-size:16.5px;margin:0;line-height:1.3;display:flex;gap:10px}
.news h3 .e{font-size:24px;flex:none}
.news .body{margin-top:8px;font-size:14.5px;line-height:1.5;color:#3a352f}
.news .src{font-size:12px;color:var(--muted);margin-top:6px}

/* KB */
.search{position:relative;margin-bottom:10px}
.search input{width:100%;height:52px;border-radius:16px;border:1.5px solid var(--line);padding:0 14px 0 44px;font-size:16px;background:#fff;box-shadow:var(--shadow)}
.search input:focus{outline:none;border-color:var(--red)}
.search .s-i{position:absolute;left:14px;top:14px;font-size:19px;opacity:.6}
.chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px;margin-bottom:6px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;padding:9px 13px;border-radius:20px;background:#fff;border:1.5px solid var(--line);font-size:13.5px;font-weight:700;color:var(--muted);min-height:40px}
.chip.on{background:var(--red);color:#fff;border-color:var(--red)}
.kb{background:#fff;border-radius:16px;box-shadow:var(--shadow);margin-bottom:10px;overflow:hidden}
.kb>button{display:flex;gap:12px;align-items:center;width:100%;text-align:left;padding:13px 14px;min-height:64px}
.kb .ic{width:42px;height:42px;border-radius:12px;background:var(--bg);display:grid;place-items:center;font-size:21px;flex:none}
.kb .t{flex:1;font-weight:700;font-size:15.5px}
.kb .pg{font-size:12px;color:var(--muted);font-weight:600}
.kb .ch{font-size:18px;color:var(--muted);transition:.2s}
.kb.open .ch{transform:rotate(90deg)}
.kb .bd{padding:0 14px 14px;font-size:15px;line-height:1.55;display:none}
.kb.open .bd{display:block}
.bd ol,.bd ul{padding-left:20px;margin:6px 0} .bd li{margin:4px 0}
.bd .warn{background:var(--over-bg);border-radius:12px;padding:10px 12px;color:#8d1c1c}
.bd .src{font-size:12.5px;color:var(--muted)}
.bd .facts{display:grid;gap:8px;margin:8px 0}
.bd .facts div{background:var(--soon-bg);border-radius:12px;padding:10px 12px;font-size:14px}
.bd .facts b{display:block;font-size:16px;color:#7a4f00;margin-bottom:2px}
.tbl{width:100%;border-collapse:collapse;font-size:14px;margin:8px 0}
.tbl td{border-bottom:1px solid var(--line);padding:8px 6px;vertical-align:top}
.tbl tr.hl td{background:var(--ok-bg)}
mark{background:var(--gold-l);border-radius:3px;padding:0 1px}

/* Rating */
.stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.stat{background:#fff;border-radius:16px;box-shadow:var(--shadow);padding:12px}
.stat .v{font-size:24px;font-weight:800;line-height:1.1}
.stat .l{font-size:12.5px;color:var(--muted);margin-top:3px}
.stat .dl{font-size:12.5px;font-weight:700;margin-top:4px}
.up{color:var(--ok)} .down{color:var(--over)}
.me-card{background:linear-gradient(135deg,var(--red),var(--red-d));color:#fff;border-radius:var(--r);padding:16px;margin-bottom:12px;box-shadow:0 6px 18px rgba(142,22,32,.25)}
.me-card .nm{font-size:18px;font-weight:800}
.me-card .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.me-card .grid div{background:rgba(255,255,255,.13);border-radius:12px;padding:9px 6px;text-align:center}
.me-card .grid b{display:block;font-size:20px}
.me-card .grid span{font-size:11px;opacity:.85}
.me-card select{height:42px;border-radius:10px;border:0;padding:0 10px;font-size:15px;background:rgba(255,255,255,.95);color:var(--text);max-width:100%}
.progress{height:10px;border-radius:5px;background:rgba(255,255,255,.2);overflow:hidden;margin-top:6px}
.progress i{display:block;height:100%;background:var(--gold);border-radius:5px}
.lb-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.lb-row:last-child{border:0}
.lb-row.me{background:var(--gold-l);margin:0 -14px;padding:10px 14px}
.lb-row .pos{width:30px;text-align:center;font-weight:800;font-size:16px;flex:none}
.lb-row .who{flex:1;min-width:0}
.lb-row .who b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lb-row .who span{font-size:12px;color:var(--muted)}
.lb-row .val{text-align:right;font-weight:800;font-size:16px}
.lb-row .val span{display:block;font-size:12px;font-weight:700}
.bar{height:8px;background:var(--bg);border-radius:4px;overflow:hidden;margin-top:5px}
.bar i{display:block;height:100%;background:var(--ok);border-radius:4px}
.bar i.w{background:var(--soon)} .bar i.r{background:var(--over)}
.zone-h{display:flex;justify-content:space-between;align-items:baseline;margin:14px 0 2px;font-weight:800;color:var(--red);font-size:14px;text-transform:uppercase;letter-spacing:.4px}
.zone-h span{font-size:12px;color:var(--muted);text-transform:none;letter-spacing:0;font-weight:600}
.podium{display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:6px;align-items:end;margin:6px 0 4px}
.podium>div{background:var(--bg);border-radius:14px;padding:10px 4px;text-align:center;font-size:12px}
.podium>div.p1{background:var(--gold-l);padding-top:16px}
.podium .m{font-size:26px}
.podium b{display:block;font-size:16px}
.bonus{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.bonus:last-child{border:0}
.bonus .e{width:44px;height:44px;border-radius:12px;background:var(--gold-l);display:grid;place-items:center;font-size:22px;flex:none}
.bonus b{display:block;font-size:15px}
.bonus span{font-size:13.5px;color:var(--muted)}
.battle{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.battle:last-child{border:0}
.battle .av{width:44px;height:44px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-weight:800;flex:none}

/* Login */
.login{min-height:100vh;background:radial-gradient(circle at 30% 0%,#b0202c 0%,var(--red) 35%,var(--red-d) 100%);color:#fff;padding:20px 18px calc(30px + var(--safe-b));display:flex;flex-direction:column;max-width:520px;margin:0 auto}
.login .langs{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.login .langs button{padding:8px 12px;border-radius:20px;background:rgba(255,255,255,.12);color:#fff;font-weight:700;font-size:14px;min-height:40px}
.login .langs button.on{background:var(--gold);color:#3a2500}
.login .hero{text-align:center;margin:26px 0 22px}
.login .hero img{width:96px;height:96px;border-radius:26px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.login .hero h1{font-size:30px;margin:14px 0 2px;letter-spacing:.5px}
.login .hero p{margin:0;opacity:.85;font-size:14.5px}
.login .box{background:#fff;color:var(--text);border-radius:22px;padding:18px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.login .box h2{margin:0 0 6px;font-size:19px}
.login .or{text-align:center;color:var(--muted);font-size:13px;margin:12px 0}
.login .foot{text-align:center;font-size:12.5px;opacity:.8;margin-top:18px}
.login .err{color:var(--over);font-size:13px;font-weight:700;min-height:18px}
.hint{font-size:12.5px;color:#5b3fc4;background:#f1edff;border-radius:10px;padding:8px 10px;margin-top:6px}

.lang-list button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:14px;border-radius:14px;border:1.5px solid var(--line);margin-bottom:8px;font-size:17px;font-weight:700;min-height:56px}
.lang-list button.on{border-color:var(--red);background:#fff5f5;color:var(--red)}
.menu-item{display:flex;align-items:center;gap:12px;width:100%;padding:14px 4px;border-bottom:1px solid var(--line);font-size:16px;font-weight:600;text-decoration:none;color:var(--text);min-height:56px}
.menu-item .e{font-size:22px;width:30px;text-align:center}
.toast{position:fixed;left:50%;top:calc(70px + env(safe-area-inset-top,0px));max-width:92vw;text-align:center;transform:translateX(-50%);background:#222;color:#fff;padding:10px 16px;border-radius:20px;font-size:14px;font-weight:600;z-index:60;animation:fade .2s}
.sec-title{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);margin:18px 4px 8px;display:flex;align-items:center;gap:6px}
.doc .nm,.doc .dt,.kb .t .pg{display:block}
.news h3 span:last-child{flex:1}
/* QA fixes: tab bar must never overflow on small phones / long Tajik-Kyrgyz labels */
.tab{min-width:0;padding:0 1px;overflow:hidden}
.tab .lbl{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.1px}
@media (max-width:380px){.tab{font-size:10.5px}.tab .i{font-size:21px}.ph h1{font-size:21px}.video-btn{padding:0 10px;font-size:13px}.brand small{font-size:11px}}
.lb-row .who b.wrap{white-space:normal}

/* ===== v2 additions ===== */
.tb-btn.sos{background:#fff;color:var(--over);font-size:17px}
.quick{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px}
.qbtn{display:flex;align-items:center;justify-content:center;gap:6px;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:11px 8px;font-weight:700;font-size:14px;text-decoration:none;color:var(--text);box-shadow:var(--shadow);text-align:center;line-height:1.2}
.qbtn.sos{color:var(--over);border-color:#f3c3c3;background:#fff6f6}
.doc .vf{display:block;font-size:11.5px;color:var(--muted);margin-top:2px}.doc .vf.y{color:var(--ok)}
.ok-t{color:var(--ok)}.mb{margin-bottom:10px}
.btn.tg{background:#229ed9;color:#fff;margin-bottom:8px}.btn.red{background:var(--over);color:#fff}
.btn.sm{padding:6px 12px;font-size:14px;width:auto;min-height:40px}
.btn-row.sm{margin-top:8px;gap:6px}.btn-row.sm .btn{flex:1}
.file-btn{display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;text-align:center}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.shift{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.shift:last-child{border-bottom:0}
.shift .date{min-width:46px;text-align:center;background:var(--na-bg);border-radius:12px;padding:6px 4px;align-self:flex-start}.shift .date b{display:block;font-size:20px}.shift .date span{font-size:12px;color:var(--muted)}
.shift.yes .date{background:var(--ok-bg)}.shift.no .date{background:var(--over-bg)}
.shift .t{flex:1;min-width:0}.shift .s{font-size:13px;color:var(--muted);margin-top:2px}.shift .cf{font-size:13px;font-weight:700;margin-top:4px}.shift .cf.y{color:var(--ok)}.shift .cf.n{color:var(--over)}
.pcats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
.pcat{display:flex;flex-direction:column;align-items:center;gap:4px;background:var(--na-bg);border-radius:14px;padding:14px 6px;font-weight:700;font-size:14px;text-align:center;line-height:1.2}
.pcat span{font-size:28px}.pcat.red{background:var(--over-bg);color:var(--over);grid-column:1/-1;flex-direction:row;justify-content:center;font-size:16px}
.police{background:#fff6f6;border:1px solid #f3c3c3;border-radius:14px;padding:12px 14px;margin:10px 0}.police h4{margin:0 0 6px;color:var(--over)}.police ol{margin:0;padding-left:20px;font-size:14px}.police li{margin:5px 0}
.ticket{border:1px solid var(--line);border-radius:14px;padding:10px 12px;margin:10px 0;background:var(--card)}
.cmt{margin-top:8px;padding:8px 10px;border-radius:10px;background:var(--na-bg);font-size:13.5px}.cmt.staff{background:#fbeaea}
.reply{display:flex;gap:6px;margin-top:8px}.reply input{flex:1;min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:10px}
.vid-wrap{position:relative;padding-top:56.25%;border-radius:14px;overflow:hidden;background:#000;margin:10px 0}.vid-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
video.vid{width:100%;border-radius:14px;background:#000;margin:10px 0}
.points-card{display:block}.pbal{display:flex;align-items:baseline;gap:8px}.pbal b{font-size:34px;color:var(--red)}.pbal span{color:var(--muted)}
.points-card details{margin-top:6px}.points-card ul{margin:6px 0;padding-left:18px}
.bonus .btn.sm{flex:0 0 auto;align-self:center;white-space:nowrap}
.field textarea{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:12px;font:inherit;background:#fff;resize:vertical}
@media (max-width:380px){.qbtn{font-size:13px}.pcat{font-size:13px}}
/* v2.1: referrals, sites, dorm & transport */
.quick .qbtn:only-child{grid-column:1/-1}
.qbtn.ref{color:var(--red);border-color:#ecd2a0;background:#fffaf0}.badge-r{background:var(--ok);color:#fff;border-radius:10px;font-size:11px;padding:1px 6px}
.car{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 0 10px;padding-bottom:4px;-webkit-overflow-scrolling:touch}
.car a{flex:0 0 86%;scroll-snap-align:start}.car img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:14px;display:block;background:#eee}
.row2{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.row2 .btn{width:auto;flex:1 1 auto;margin:0}.btn.wa{background:#25d366;color:#fff}
.site-h{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:4px}.site-h b{font-size:17px;min-width:0;overflow-wrap:anywhere}
.kv b.wrap{white-space:normal;overflow-wrap:anywhere;font-weight:600}.kv span{flex:0 0 auto;max-width:48%}
.bonus{background:#fff8e6;border:1px solid #f1d58f;border-radius:12px;padding:9px 11px;font-size:14px;font-weight:600;margin:8px 0}
.sub-h{font-weight:800;margin:12px 0 6px}
.dorm{border:1px solid var(--line);border-radius:14px;padding:10px;margin:8px 0;background:#fcfbf8}.dorm-h{margin-bottom:6px}
.route{border-top:1px dashed var(--line);margin-top:8px;padding-top:6px}.rt-h{font-size:14px;margin-bottom:2px}
.tchip{display:inline-block;background:var(--red);color:#fff;border-radius:8px;padding:2px 7px;margin:1px 0 1px 4px;font-size:13px;font-weight:800}
details summary{cursor:pointer;font-weight:700;padding:6px 0;font-size:14px}details p{margin:4px 0 8px}
.ul{margin:4px 0 8px;padding-left:20px;font-size:14px}.ul li{margin:2px 0}
.refbox{text-align:center}.refcode{font-size:20px;margin:4px 0 8px}.refcode b{letter-spacing:3px;color:var(--red)}
.reflink{width:100%;border:1px solid var(--line);border-radius:10px;padding:9px;font-size:13px;background:#faf8f4;text-align:center}
.rub h3,.card h3{margin:0 0 8px;font-size:17px}.rub2{display:grid;grid-template-columns:1fr 1fr;gap:8px}.rub2 div{background:#f6f2ea;border-radius:12px;padding:10px;text-align:center}
.rub2 b{display:block;font-size:22px;color:var(--ok)}.rub2 span{font-size:12px;color:var(--muted)}
.hist{list-style:none;padding:0;margin:10px 0 4px}.hist li{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:7px 0;border-bottom:1px solid var(--line);font-size:14px}
.hist em{grid-column:1/-1;font-style:normal;font-size:12px;color:var(--muted)}.hist .st-paid{color:var(--ok)}.hist .st-void{color:var(--over)}
.h2{font-size:18px;margin:18px 2px 8px}
.friend.void{opacity:.6}.prog{height:10px;background:#eee6d8;border-radius:6px;overflow:hidden;margin:8px 0 4px}.prog i{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--ok))}
.stages{list-style:none;padding:0;margin:6px 0;font-size:13.5px}.stages li{padding:2px 0}.stages li.done{color:var(--ok);font-weight:600}
.fgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-top:6px}.fc{font-size:12px;text-align:center;padding:5px 0;border-radius:7px;background:#f3efe8;color:#9a9288}
.fc.w{background:var(--ok);color:#fff;font-weight:800}.fc.pre{opacity:.45}
.inp{flex:1 1 120px;min-width:0;border:1px solid var(--line);border-radius:12px;padding:10px;text-transform:uppercase;letter-spacing:2px}
.inv{background:rgba(255,255,255,.95);color:var(--text);border-radius:16px;padding:12px;margin:0 0 12px;font-size:15px;text-align:center;box-shadow:var(--shadow)}.inv .btn{margin-top:10px}.inv.bad{color:var(--over)}
.bus .next{font-weight:700;margin-bottom:6px}.bigtimes{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 8px}.bigtimes span{background:var(--red);color:#fff;font-size:24px;font-weight:800;border-radius:12px;padding:6px 14px}
.card h4{margin:10px 0 2px;font-size:15px}
/* v2.2: check-in & absence notices */
.ci-card{background:linear-gradient(135deg,#1f3b2d,#2d5a40);color:#fff;border-radius:16px;padding:14px;margin:0 0 12px;box-shadow:0 4px 14px rgba(0,0,0,.15)}
.ci-card.off{background:#f3f1ea;color:#444;box-shadow:none}
.ci-h{font-weight:800;font-size:15px;margin-bottom:2px}
.ci-btn{display:block;width:100%;margin:10px 0 6px;padding:18px 10px;font-size:20px;font-weight:800;border:0;border-radius:14px;background:#4cd07d;color:#0b2414;cursor:pointer}
.ci-btn.out{background:#ffd166;color:#3b2a00}.ci-btn:active{transform:scale(.98)}
.ci-ok{font-weight:700;margin-top:8px}.ci-flag{background:rgba(255,200,80,.2);border-radius:8px;padding:6px 8px;margin-top:6px;font-size:13px}
.ci-card .muted{color:rgba(255,255,255,.75)}.ci-card.off .muted{color:#777}.late{color:#e8590c}.ci-card .late{color:#ffd166}
.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{position:relative}.chip input{position:absolute;opacity:0}.chip span{display:inline-block;padding:8px 10px;border-radius:20px;background:#f1efe8;font-size:14px;border:2px solid transparent}
.chip input:checked+span{border-color:#c9a227;background:#fff6d6;font-weight:700}
.abs-item{border-left:4px solid #c9a227;padding:8px 10px;margin:8px 0;background:#fbfaf6;border-radius:8px}.abs-item.st-confirmed{border-color:#2f9e44}.abs-item.st-rejected{border-color:#e03131}
.abs-item .file-btn{margin-top:6px}.note.abs-n{display:block;text-decoration:none;color:inherit}.note.abs-n.st-rejected{background:#fde2e0}.note.abs-n.st-confirmed{background:#e6f5e8}

[hidden]{display:none!important}
/* v4: citizenship categories + photo review */
.vf.retake{display:block;color:#b42318;font-weight:700}
.news.irrelevant{opacity:.6}.tag-irr{background:#eef1f6;color:#475467;border-radius:10px;padding:1px 8px;font-size:11px;margin-left:6px}
.note.ok-n{background:#eaf6ec;border-color:#bfe3c7}
/* v4: NDFL patent reduction tracker */
.note.ndfl-n{display:block}.note.ndfl-n.upd{border-color:#f5b041;background:#fff6e5}
.nd-next{border-left:5px solid #d4a017}.nd-next .bt{font-weight:800;margin-bottom:4px}
.nd-sum{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}.nd-sum>div{background:#fff;border-radius:14px;padding:10px;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.nd-sum b{display:block;font-size:16px}.nd-sum span{font-size:11.5px;color:#667085}
.nd-steps{list-style:none;padding:0;margin:10px 0}.nd-step{display:flex;gap:10px;padding:10px 0;position:relative}
.nd-step:not(:last-child)::after{content:'';position:absolute;left:17px;top:46px;bottom:-4px;width:2px;background:#d0d5dd}
.nd-n{flex:0 0 36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;background:#eaecf0;color:#667085}
.nd-step.done .nd-n{background:#12b76a;color:#fff}.nd-step.cur .nd-n{background:#d4a017;color:#fff;box-shadow:0 0 0 4px rgba(212,160,23,.25)}
.nd-step.cur .nd-b>b{color:#9a6b00}.nd-b{flex:1;min-width:0}
.nd-months{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.nd-m{font-size:12px;padding:2px 7px;border-radius:10px;background:#eaf6ec;color:#067647}.nd-m.miss{background:#fdecea;color:#b42318;font-weight:700}
.nd-how p{margin:8px 0}
/* v5: «Возврат НДФЛ» home tile */
.nd-tile{display:flex;align-items:center;gap:10px;margin:4px 0 12px;padding:10px 12px;border-radius:var(--r);background:linear-gradient(135deg,#fff8e6,#fff);border:2px solid var(--gold);box-shadow:var(--shadow);color:var(--text);text-decoration:none}
.nd-tile.upd{border-color:var(--over);background:linear-gradient(135deg,#fff0e0,#fff)}.nd-tile.done{border-color:#7fd1a2;background:linear-gradient(135deg,#eafaf1,#fff)}
.nt-ic{font-size:30px;flex:0 0 auto}.nt-b{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.nt-t{font-size:16px;line-height:1.2}.nt-st{font-size:14px;font-weight:700;color:var(--red)}.nt-h{font-size:13.5px;color:var(--muted)}
.nt-bar{display:flex;gap:4px}.nt-bar i{flex:1;height:7px;border-radius:4px;background:#e4e0d8}.nt-bar i.on{background:#12b76a}.nt-bar i.cur{background:#d4a017}
.nt-go{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:0 0 auto}.nt-arr{font-size:30px;color:var(--red);line-height:1}
.menu-item.hl{background:#fff8e6}
/* v5: income certificates («Справки») */
.note.cert-n{display:block}.note.cert-n.ready{border-color:#7fd1a2;background:var(--ok-bg)}.note.cert-n.st-work{border-color:#b9cff0;background:#eef4fd}
.cn-dl{font-weight:800;color:var(--ok);white-space:nowrap}
.big-cta{min-height:60px;font-size:17px;margin:6px 0 8px}
.cert-off{margin:0 2px 12px}
.cert-c .cc-h{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px}.cert-c .btn{margin-top:8px}
.cert-c.st-ready,.cert-c.st-issued{border:2px solid #7fd1a2}
.ct-steps{list-style:none;display:flex;padding:0;margin:12px 0 4px;gap:4px}
.ct-steps li{flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;position:relative;font-size:13px;color:var(--muted)}
.ct-steps li:not(:last-child)::after{content:'';position:absolute;top:16px;left:calc(50% + 20px);right:calc(-50% + 20px);height:2px;background:#d0d5dd}
.ct-steps li.done:not(:last-child)::after{background:#12b76a}
.ct-n{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e4e0d8;font-weight:800;color:#555}
.ct-steps li.done .ct-n{background:#12b76a;color:#fff}.ct-steps li.cur .ct-n{box-shadow:0 0 0 4px rgba(18,183,106,.22)}.ct-steps li.cur:not(:last-child) .ct-n{background:#d4a017;box-shadow:0 0 0 4px rgba(212,160,23,.25)}
.ct-steps li b{color:var(--text);font-size:13px}.ct-steps small{font-size:12px}
.ct-cancel{margin:10px 0 2px;color:var(--na);font-weight:700}
.cert-paper{margin-top:8px;padding:12px;border-radius:12px;background:var(--ok-bg);font-weight:700}
.seg.seg-col{flex-direction:column}.seg.seg-col button{text-align:left;padding:10px 12px}
/* v5: Help → «Заблокировали перевод» */
.pcat.bank{background:var(--soon-bg);color:#7a4b00;grid-column:1/-1;flex-direction:row;justify-content:center;font-size:16px}
.bank-why{background:var(--soon-bg);border-radius:12px;padding:12px;margin:8px 0 10px;font-size:15px}
.bank-steps{margin:6px 0 12px;padding-left:22px}.bank-steps li{margin:6px 0;font-size:15px}
/* v6: «Главная» — greeting, big shift button, prominent tiles; info hints small at the bottom */
.home-ph h1{font-size:21px}.home-ph .sub{font-size:13px}
.hero{margin:0 0 12px;display:flex;flex-direction:column;gap:10px}
.hero-card{border-radius:20px;padding:14px;box-shadow:0 6px 18px rgba(60,30,10,.12)}
.hero-sh{font-size:14px;font-weight:600;margin-bottom:10px}
.hero-card.live{background:linear-gradient(160deg,#fff,#fff4f4);border:2px solid var(--red)}
.hero-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:76px;border-radius:18px;background:linear-gradient(135deg,#1f9d55,#178a48);color:#fff;font-size:22px;font-weight:900;letter-spacing:.2px;box-shadow:0 8px 20px rgba(31,157,85,.38);animation:heroPulse 2.2s ease-in-out infinite}
.hero-btn:active{transform:scale(.98);filter:brightness(.95)}
@keyframes heroPulse{0%,100%{box-shadow:0 8px 20px rgba(31,157,85,.38),0 0 0 0 rgba(31,157,85,.45)}50%{box-shadow:0 8px 20px rgba(31,157,85,.38),0 0 0 12px rgba(31,157,85,0)}}
@media (prefers-reduced-motion:reduce){.hero-btn{animation:none}}
.hero-geo{margin-top:8px;color:var(--muted)}
.hero-card.done{background:linear-gradient(160deg,#e9f9ef,#fff);border:2px solid #7fd1a2}.hero-ok{font-size:19px;font-weight:900;color:var(--ok);margin-bottom:6px}.hero-card.done .hero-sh{margin-bottom:4px}.hero-out{margin-top:10px}
.hero-card.missed{background:var(--over-bg);border:2px solid #f3b4b4}
.hero-card.wait{background:linear-gradient(135deg,var(--red),var(--red-l));color:#fff}
.hw-l{font-size:12.5px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;opacity:.85}
.hw-t{font-size:22px;font-weight:900;margin:2px 0 8px}
.hw-b{font-size:14.5px;font-weight:700;background:rgba(255,255,255,.16);border-radius:12px;padding:9px 10px}
.hw-cd{font-size:13.5px;margin-top:6px;opacity:.9}
.hero-cf{background:var(--soon-bg);border:2px solid #f0c97a;border-radius:18px;padding:12px;box-shadow:var(--shadow)}
.hc-t{font-weight:900;font-size:16px;margin-bottom:2px}.hero-cf .btn-row{margin-top:10px}.hero-cf .btn{min-height:50px;font-size:15.5px}
.cert-tile{display:flex;align-items:center;gap:10px;width:100%;text-align:left;margin:0 0 12px;padding:12px;border-radius:var(--r);background:linear-gradient(135deg,#eef4fd,#fff);border:2px solid #9dbbe8;box-shadow:var(--shadow);color:var(--text)}
.ct-ic{font-size:30px}.ct-b{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.ct-b b{font-size:16px}.ct-b span{font-size:13px;color:var(--muted)}
.note.act{border-style:solid;font-size:14px;color:var(--text)}
.sec-title.home-docs{margin-top:18px}
.hint-n{font-size:12px;color:var(--muted);text-align:center;margin:6px 8px;line-height:1.35}
/* v7: requirements («Вам сообщили N дней назад»), patent petition tile, points eligibility */
.req-c{border-left:4px solid var(--soon,#e0a100)}
.req-c.old{border-left-color:var(--over,#d33)}
.req-c b{display:block;margin-bottom:4px}
.req-age{font-weight:700;margin:2px 0 6px}
.req-why{margin:6px 0}.req-why summary{cursor:pointer}
.req-c .btn{margin-top:6px}
.pet-tile{border-color:var(--soon,#e0a100)}
.pet-tile.over{border-color:var(--over,#d33);background:#fff3f2}
.pet-box{margin-top:10px}
.pts-elig{margin-top:8px}
