:root{--bg:#080b13;--side:#0b0f19;--panel:#101623;--panel2:#141b2b;--line:rgba(201,216,255,.075);--text:#f4f7ff;--muted:#818ca8;--faint:#56627d;--accent:#c6fb65;--accent2:#a1de40;--violet:#9981ff;--blue:#6d9cff;--danger:#fa7e91;--amber:#f4c37a;--radius:19px;--tg-safe-bottom:env(safe-area-inset-bottom, 0px)}
*{box-sizing:border-box}html{min-height:100%;background:var(--bg)}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}.hidden{display:none!important}.app-shell{display:flex;min-height:100vh;min-height:100dvh;position:relative;isolation:isolate}.sidebar{width:256px;background:var(--side);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:31px 17px 19px;position:sticky;top:0;height:100vh;flex-shrink:0;z-index:6}.brand{display:flex;align-items:center;gap:13px;padding:3px 16px 0}.brand-glyph{display:inline-flex;width:38px;height:38px;background:radial-gradient(circle at 38% 28%,#effdb2,#c7f96c 51%,#77bf41 100%);border-radius:13px;position:relative;transform:rotate(-11deg);box-shadow:0 3px 24px #aaf44a3d;align-items:center;justify-content:center;flex-shrink:0}.brand-glyph:after{content:'';border-radius:8px;width:21px;height:21px;border:4px solid #1f3b26;transform:rotate(45deg);opacity:.92}.brand-core{position:absolute;width:6px;height:6px;background:#1d3023;border-radius:100%;z-index:1;top:16px;left:16px}.brand-glyph.small{width:32px;height:32px;border-radius:11px}.brand-glyph.small:after{width:17px;height:17px;border-width:3px}.brand-glyph.small .brand-core{top:13px;left:13px}.brand-type{font-size:27px;letter-spacing:-1.2px;font-weight:790;line-height:.82}.brand-dot{color:var(--accent)}.brand-type small{display:block;margin-top:8px;font-size:8px;font-weight:800;color:#7a8ba4;letter-spacing:2.2px}.sidebar-caption,.eyebrow,.mini-label{font-size:10px;letter-spacing:2px;font-weight:800;color:var(--faint)}.sidebar-caption{padding:64px 18px 17px}.desktop-nav{display:grid;gap:5px}.nav-button{display:flex;align-items:center;width:100%;background:transparent;border:1px solid transparent;text-align:left;color:#8b95ab;padding:13px 15px;border-radius:12px;gap:12px;transition:.2s ease;font-weight:600}.nav-button .ico{width:21px;height:21px}.nav-button.active{background:linear-gradient(97deg,rgba(183,240,101,.12),rgba(183,240,101,.025));border-color:rgba(180,251,102,.12);color:#e8ffb6}.nav-button:hover{color:#ebf5ff;background:#171e2c}.nav-button .nav-arrow{margin-left:auto;color:var(--accent);font-size:18px}.side-bottom{margin-top:auto}.secure-panel{background:#121c23;border:1px solid rgba(177,241,126,.09);border-radius:15px;display:flex;align-items:center;gap:11px;padding:16px 12px}.secure-symbol{color:var(--accent);font-size:20px}.secure-panel strong{display:block;color:#d6efcb;font-size:11px}.secure-panel small{display:block;color:#7a988c;font-size:10px;margin-top:5px}.secure-green{width:6px;height:6px;border-radius:50%;background:var(--accent);margin-left:auto}.sidebar-footer{font-size:9px;color:#414b60;letter-spacing:1px;margin:25px 14px 0}.sidebar-footer span{color:var(--accent)}.main-wrap{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:83px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(21px,3.8vw,65px);border-bottom:1px solid var(--line)}.top-left,.top-right{display:flex;align-items:center;gap:15px}.eyebrow{color:#7b87a4;white-space:nowrap}.status-dot{background:var(--accent);height:7px;width:7px;display:inline-block;border-radius:50%;box-shadow:0 0 13px #beff655e}.online-label{font-size:10px;letter-spacing:1.5px;font-weight:700;color:#8b9c8d}.square-icon{width:35px;height:35px;background:transparent;border:1px solid var(--line);border-radius:10px;color:#a5b2ca;font-size:22px;display:flex;align-items:center;justify-content:center}.square-icon:hover{background:#1d2535;color:white}.profile-button{border:1px solid var(--line);background:rgba(255,255,255,.02);border-radius:14px;display:flex;align-items:center;padding:5px 10px 5px 5px;gap:10px;color:#e9efff}.profile-avatar{height:31px;width:31px;border-radius:10px;background:linear-gradient(140deg,#b5a2ff,#6d65cb);color:white;display:grid;place-items:center;font-weight:800}.profile-name{font-size:12px;font-weight:700}.chevron{color:#8492af}.content{width:100%;max-width:1510px;margin:0 auto;flex:1;padding:45px clamp(20px,3.8vw,65px) 38px}.footer{display:flex;justify-content:space-between;padding:21px clamp(20px,3.8vw,65px);border-top:1px solid var(--line);font-size:9px;letter-spacing:1.4px;color:#48556d;font-weight:700}.footer-mark{color:var(--accent)}.mobile-nav,.mobile-logo{display:none}.page-head{display:flex;justify-content:space-between;gap:22px;align-items:flex-end;margin-bottom:29px}.head-kicker{display:flex;align-items:center;gap:9px;color:var(--accent);font-weight:790;letter-spacing:2px;font-size:10px;margin-bottom:13px}.head-kicker:before{content:'';width:18px;height:1px;background:var(--accent)}.page-head h1{font-size:clamp(28px,3.3vw,43px);line-height:1.1;margin:0;letter-spacing:-1.7px;font-weight:790}.page-head h1 span{color:var(--accent)}.lead{font-size:13px;color:var(--muted);margin:13px 0 0;line-height:1.65}.head-actions{display:flex;gap:9px;flex-shrink:0}.btn{border-radius:11px;border:1px solid var(--line);padding:11px 17px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:700;font-size:12px;transition:transform .12s ease,background .18s ease;white-space:nowrap}.btn:active{transform:scale(.97)}.btn-primary{border-color:var(--accent);background:var(--accent);color:#182512;box-shadow:0 5px 23px #b7f57c20}.btn-primary:hover{background:#d7ff9c}.btn-soft{background:#1a2231;color:#ecf2ff;border-color:#293246}.btn-soft:hover{background:#252f41}.btn-ghost{background:transparent;color:#a6b2c8}.btn-ghost:hover{background:#20283a}.btn-danger{color:#ff9ba8;background:#41202a;border-color:#64303d}.btn-small{padding:9px 11px;font-size:11px}.btn-full{width:100%}.pill{font-size:10px;border:1px solid #263248;background:#192231;border-radius:100px;color:#92a1b6;padding:6px 10px;font-weight:720;white-space:nowrap}.pill.green{color:#bded99;background:#202d24;border-color:#354e35}.pill.purple{color:#c6b6ff;background:#292039;border-color:#41345b}.pill.amber{color:#f7cb8e;background:#302719;border-color:#59412b}.pill.red{color:#ff9caa;background:#351e2b;border-color:#54303e}.panel{background:linear-gradient(158deg,#111726,#0f1521);border:1px solid var(--line);border-radius:var(--radius);min-width:0}.panel-pad{padding:22px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.panel-title{font-size:16px;letter-spacing:-.4px;margin:0;font-weight:740}.panel-subtitle{font-size:11px;color:#65718a}.panel-icon{display:grid;place-items:center;width:35px;height:35px;background:#202a3b;border-radius:11px;color:#c0d0ea}.panel-icon .ico{width:18px}.overview-grid{display:grid;grid-template-columns:minmax(0,1.36fr) minmax(310px,.75fr);gap:19px}.hero{position:relative;min-height:277px;overflow:hidden;padding:35px 36px;border:1px solid #3d365e;background:radial-gradient(ellipse at 88% 39%,rgba(129,98,255,.37),transparent 42%),linear-gradient(112deg,#252040 5%,#1b1b37 47%,#131a33 100%);border-radius:21px;isolation:isolate}.hero:before{content:'';position:absolute;inset:-120px -180px -100px 43%;background:repeating-radial-gradient(circle at center,transparent 0,transparent 30px,rgba(190,179,255,.14) 31px,transparent 32px,transparent 52px);transform:rotate(-24deg);opacity:.65;z-index:-1}.hero:after{content:'';width:184px;height:184px;border-radius:50%;position:absolute;right:62px;top:46px;background:radial-gradient(circle at 32% 27%,#dbe3ff 0%,#a79cff 9%,#6051c1 44%,#251d60 64%,#241738 80%);box-shadow:inset -25px -26px 35px #160e3c,0 2px 85px #7762e8aa;opacity:.86;z-index:-1}.hero .mini-label{color:#c0b1f8;letter-spacing:2.3px}.hero h2{font-size:clamp(28px,2.8vw,39px);line-height:1.16;max-width:460px;margin:19px 0 12px;letter-spacing:-1.6px;font-weight:760}.hero h2 em{font-style:normal;color:var(--accent)}.hero p{font-size:12px;color:#bcbbdf;line-height:1.75;max-width:345px}.hero .btn{margin-top:14px}.summary-top{display:flex;align-items:center;gap:6px;margin-bottom:11px;font-size:9px;color:#c4c4e7;font-weight:780;letter-spacing:1.4px}.summary-top i{width:6px;height:6px;border-radius:50%;background:var(--accent)}.quick-panel{display:flex;flex-direction:column;padding:24px}.quick-panel h3{font-size:15px;margin:2px 0 7px}.quick-panel .small-muted{font-size:11px;color:#7f89a1;margin-bottom:14px}.quick-row{border:1px solid #252d40;border-radius:12px;padding:14px 13px;margin-top:11px;display:flex;align-items:center;gap:12px;text-align:left;background:#161d2b;color:#fff;width:100%}.quick-row:hover{border-color:#4c5a75;background:#1b2638}.quick-row .quick-arrow{margin-left:auto;color:#7f8d9f;font-size:19px}.quick-icon{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:#2c3148;color:#bdb4ff}.quick-icon.lime{background:#29362a;color:#b7f574}.quick-row strong{display:block;font-size:12px}.quick-row small{display:block;color:#7d8aa4;font-size:10px;margin-top:4px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:18px}.stat{padding:21px 23px;min-height:137px}.stat .stat-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.stat-label{font-size:11px;color:#92a0b9;font-weight:630}.stat-value{font-size:34px;letter-spacing:-1.3px;margin:16px 0 0;font-weight:760}.stat-foot{display:flex;align-items:center;gap:6px;margin-top:9px;font-size:10px;color:#72819a}.stat-foot .accent{color:var(--accent)}.stat-mark{width:28px;height:28px;border-radius:9px;background:#22293a;color:#a9afff;display:grid;place-items:center}.stat-mark.lime{color:var(--accent);background:#283425}.stat-mark.violet{color:#bca9ff;background:#29243a}.stat-mark.blue{color:#98b9ff;background:#202e42}.bottom-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;margin-top:18px}.channel-row,.session-row{display:flex;align-items:center;gap:13px;padding:14px 0;border-bottom:1px solid var(--line)}.channel-row:last-child,.session-row:last-child{border-bottom:none}.channel-symbol{width:39px;height:39px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,#263e4d,#254049);font-size:18px;flex-shrink:0}.channel-symbol.private{background:linear-gradient(145deg,#30334e,#30314b)}.channel-row-main,.session-row-main{flex:1;min-width:0}.list-title{font-size:12px;font-weight:720;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.list-sub{font-size:10px;color:#737e96;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini-row-button{background:#222b3b;border:1px solid #2d384d;padding:8px 10px;border-radius:10px;color:#afbbcb;font-size:11px}.mini-row-button:hover{background:#2e3b51}.empty-state{padding:36px 14px;text-align:center;color:#7e8ca8;font-size:12px}.empty-state .big-icon{font-size:34px;display:block;margin-bottom:12px}.section-intro{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:10px 0 18px}.section-intro h2{font-size:17px;margin:0}.section-intro small{color:#7b88a2}.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.item-card{padding:22px;display:flex;flex-direction:column;gap:16px;min-height:190px}.item-card .item-main{display:flex;gap:12px;align-items:center}.item-card .item-body{flex:1;min-width:0}.item-card .item-name{font-size:15px;font-weight:760;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-card .item-meta{font-size:11px;color:#8290aa;margin-top:6px}.card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}.card-actions .btn{flex-grow:1}.card-divider{height:1px;background:var(--line)}.form-shell{max-width:850px}.form-panel{padding:28px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}.field{display:flex;flex-direction:column;gap:9px;min-width:0}.field.full{grid-column:1/-1}.field label{font-size:11px;font-weight:740;color:#c4cede}.field small{font-size:10px;color:#6e7d95}.input,.select,.textarea{width:100%;border:1px solid #2b364a;border-radius:12px;background:#0d1420;color:#eef3ff;padding:13px 13px;outline:none;transition:border .15s,box-shadow .15s;font-size:12px}.input:focus,.select:focus,.textarea:focus{border-color:#a1df66;box-shadow:0 0 0 3px #a0ec5530}.input::placeholder,.textarea::placeholder{color:#59647a}.textarea{resize:vertical;min-height:134px;line-height:1.6}.select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#8f9cb4 50%),linear-gradient(135deg,#8f9cb4 50%,transparent 50%);background-position:calc(100% - 19px) 52%,calc(100% - 14px) 52%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:40px}.select option{background:#172031}.form-actions{display:flex;justify-content:flex-start;gap:10px;margin-top:23px}.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.choice{background:#121b2b;border:1px solid #2a3449;border-radius:14px;padding:16px;cursor:pointer;display:flex;align-items:flex-start;gap:11px;transition:.2s}.choice:hover,.choice.selected{border-color:#a4d977;background:#19271f}.choice input{accent-color:var(--accent);margin-top:3px}.choice strong{display:block;font-size:12px}.choice small{display:block;font-size:10px;color:#76839c;margin-top:5px;line-height:1.5}.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{border:1px solid #2b384c;border-radius:100px;color:#adbad0;background:#131c2b;padding:9px 12px;font-size:11px;font-weight:700;cursor:pointer}.chip.selected{border-color:#7bad51;background:#293b24;color:#d7ffa8}.metric-banner{padding:22px;border-radius:16px;background:linear-gradient(120deg,#1d2835,#17242a);border:1px solid #354c44;margin-top:22px;display:flex;align-items:center;gap:17px}.metric-banner .pulse-orb{width:50px;height:50px;border:2px solid #9ed66b;border-radius:16px;display:grid;place-items:center;color:var(--accent);font-size:24px}.metric-banner strong{font-size:13px}.metric-banner p{font-size:11px;line-height:1.6;color:#9aafaa;margin:6px 0 0}.metric-banner .btn{margin-left:auto}.progress-panel{margin-top:19px;padding:24px;border-color:#35474a;background:linear-gradient(130deg,#14232a,#121b2c)}.progress-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:13px}.progress-text{white-space:pre-line;font-size:12px;line-height:1.7;color:#b5c4d7}.live-dot{width:7px;height:7px;background:#c5fb73;border-radius:100%;display:inline-block;box-shadow:0 0 0 6px #bafb6a10;margin-right:8px}.progress-line{height:5px;background:#30404a;border-radius:5px;overflow:hidden;margin-top:17px}.progress-fill{height:100%;width:100%;transform-origin:left;animation:progressPulse 2.3s infinite alternate;background:linear-gradient(90deg,#8cdd61,#c6fa73);border-radius:5px}@keyframes progressPulse{from{transform:scaleX(.42)}to{transform:scaleX(.87)}}.progress-panel:not(.is-running) .progress-fill{animation:none;transform:scaleX(1)}.subtle-note{font-size:11px;color:#7f8ca4;line-height:1.7;margin-top:14px}.note{padding:15px 18px;background:#1e2531;border:1px solid #333e51;border-radius:13px;color:#abb9d0;font-size:11px;line-height:1.8}.note strong{color:#edf3fd}.note.warn{background:#29251d;border-color:#50412b;color:#dec79c}.text-counter{color:#7a8b9f;text-align:right;font-size:10px;margin-top:6px}.list-stack{display:grid;gap:12px}.permission-card{display:flex;gap:15px;align-items:center;padding:20px}.permission-card strong{font-size:14px}.permission-card p{color:#75849e;font-size:11px;margin:7px 0 0;line-height:1.6}.permission-card .pill{margin-left:auto}.tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);margin-bottom:22px}.tab{border:none;border-bottom:2px solid transparent;background:transparent;color:#8894ae;padding:12px 16px;font-size:12px;font-weight:700}.tab.active{color:#d4ff95;border-bottom-color:var(--accent)}.button-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.modal-backdrop{position:fixed;inset:0;z-index:30;background:#03050bcb;backdrop-filter:blur(9px);display:flex;align-items:center;justify-content:center;padding:18px}.modal{background:#121a28;border:1px solid #3b465d;box-shadow:0 40px 110px #000a;border-radius:24px;width:min(510px,100%);padding:29px;max-height:calc(100dvh - 36px);overflow-y:auto}.modal h2{font-size:22px;letter-spacing:-.7px;margin:0 0 10px}.modal p{color:#8291ab;font-size:12px;line-height:1.65;margin:0 0 24px}.modal .form-grid{gap:16px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:25px}.toast-area{position:fixed;right:25px;bottom:25px;z-index:60;display:grid;gap:9px;width:min(350px,calc(100vw - 36px))}.toast{background:#1b2931;color:#effaef;border:1px solid #477349;box-shadow:0 12px 50px #0007;border-radius:12px;padding:15px;display:flex;align-items:start;gap:11px;line-height:1.5;font-size:12px}.toast.error{background:#2e1d28;color:#ffb9c4;border-color:#834554}.auth-overlay{position:fixed;z-index:80;inset:0;display:grid;place-items:center;background:radial-gradient(circle at 50% 30%,#30234f 0%,#0a0e17 61%);padding:20px}.auth-box{width:min(430px,100%);padding:37px 34px;text-align:center;background:rgba(24,28,44,.85);border:1px solid #41415d;border-radius:27px;box-shadow:0 22px 100px #0009}.lock-graphic{width:76px;height:76px;border-radius:23px;background:radial-gradient(#daffa0,#a9d758);color:#253725;font-size:47px;display:grid;place-items:center;margin:0 auto 20px;box-shadow:0 0 80px #9ff4584a}.auth-box h1{font-size:26px;letter-spacing:-.8px}.auth-box p:not(.mini-label){font-size:13px;color:#aab7cc;line-height:1.8}.auth-rule{border-top:1px solid #344050;padding:19px 0 23px;color:#afc9b2;font-size:11px}.auth-rule .status-dot{margin-right:7px}.auth-box .btn{width:100%}.loading-block{background:linear-gradient(100deg,#171f2d,#253146,#171f2d);background-size:250% auto;animation:skeleton 1.8s linear infinite;border-radius:12px;min-height:85px}@keyframes skeleton{to{background-position:250% center}}
@media(max-width:1150px){.sidebar{width:218px}.overview-grid{grid-template-columns:minmax(0,1fr) minmax(275px,.8fr)}.hero:after{right:8px;opacity:.65}.stats-grid{gap:11px}.stat{padding:17px}.stat-value{font-size:29px}.topbar{padding-inline:28px}.content{padding-inline:28px}}
@media(max-width:900px){.sidebar{width:72px;padding-inline:10px}.brand{padding-inline:7px}.brand-type,.sidebar-caption,.nav-button span:not(.ico),.nav-button .nav-arrow,.side-bottom{display:none}.desktop-nav{margin-top:65px}.nav-button{padding:13px;justify-content:center}.content{padding-top:33px}.overview-grid{grid-template-columns:1fr}.quick-panel{flex-direction:row;align-items:center;flex-wrap:wrap;gap:10px}.quick-panel h3,.quick-panel .small-muted{width:100%;margin:0}.quick-row{flex:1;min-width:230px;margin:0}.hero{min-height:247px}}
@media(max-width:650px){.app-shell{display:block}.sidebar{display:none}.main-wrap{min-height:100dvh}.topbar{height:65px;padding:0 19px}.eyebrow{font-size:9px;letter-spacing:1.1px}.mobile-logo{display:inline-flex;background:transparent;border:0;padding:0}.online-label,.top-right>.status-dot,.profile-name,.chevron,.square-icon{display:none}.profile-button{border:none;padding:0;background:none}.profile-avatar{width:34px;height:34px}.content{padding:26px 16px calc(108px + var(--tg-safe-bottom))}.page-head{align-items:flex-start;margin-bottom:23px;gap:10px}.page-head h1{font-size:32px}.page-head .lead{font-size:12px}.page-head>.head-actions{margin-top:4px}.head-actions .btn{padding:9px 11px}.hero{min-height:260px;padding:28px 24px}.hero h2{font-size:31px}.hero:after{width:140px;height:140px;right:-23px;top:44px;opacity:.52}.overview-grid{gap:12px}.quick-panel{padding:17px}.quick-row{min-width:0}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:12px}.stat{padding:17px;min-height:121px}.stat-value{font-size:30px}.bottom-grid{grid-template-columns:1fr;gap:12px;margin-top:12px}.panel-pad{padding:20px}.footer{display:none}.mobile-nav{position:fixed;display:flex;z-index:20;bottom:0;left:0;right:0;border-top:1px solid #283344;background:#0c111def;backdrop-filter:blur(24px);padding:9px 8px calc(9px + var(--tg-safe-bottom));justify-content:space-between}.mobile-nav .mobile-nav-item{display:flex;flex-direction:column;align-items:center;gap:5px;color:#7b879f;font-size:9px;border:none;background:transparent;padding:6px 8px;min-width:59px;font-weight:720}.mobile-nav-item .ico{width:20px;height:20px}.mobile-nav-item.active{color:var(--accent)}.form-panel{padding:19px}.form-grid,.choice-grid{grid-template-columns:1fr}.form-actions{flex-wrap:wrap}.form-actions .btn{flex:1}.cards-grid{grid-template-columns:1fr}.metric-banner{flex-wrap:wrap}.metric-banner .btn{margin-left:0;width:100%}.modal{padding:24px 20px}.page-head .head-actions{flex-wrap:wrap;justify-content:flex-end}.profile-button{background:transparent}.permission-card{padding:17px}.permission-card .pill{display:none}.toast-area{bottom:calc(87px + var(--tg-safe-bottom));right:12px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* NOVA Autopilot · manager screen and optional multi-session controls */
[hidden] { display: none !important; }
.owner-panel {background: rgba(200,255,110,.07); border: 1px solid rgba(195,251,101,.22); padding: 16px; border-radius: 13px; line-height: 1.7;}
.owner-panel .pill { margin-right: 8px; }
.form-shell .field > .btn {align-self: flex-start; margin-top: 5px;}
#managedPosts .channel-row {flex-wrap:wrap;}
#managedPosts .card-actions {display:flex;gap:7px;flex-wrap:wrap;}
#managedPosts .list-sub {max-width: 100%;}

/* NOVA mobile polish 2026-11-01
   Keep the existing desktop UI and all API behavior unchanged.
   Headings, page actions and cards must never force a wider viewport. */
@media (max-width: 900px) {
  .main-wrap, .content, .page-head, .page-head > div:first-child,
  .section-intro, .cards-grid, .item-card, .form-shell,
  .form-grid, .form-panel, .panel, .modal { min-width: 0; }
  .page-head > div:first-child { flex: 1 1 auto; }
  .head-actions { max-width: 100%; }
  .section-intro small { text-align: right; overflow-wrap: anywhere; }
  .item-card .item-name, .item-card .item-meta { min-width: 0; }
  .input, .select, textarea { max-width: 100%; }
}

@media (max-width: 650px) {
  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  .app-shell, .main-wrap { width: 100%; min-width: 0; max-width: 100%; }
  .topbar { height: 62px; padding: 0 16px; }
  .top-left { gap: 12px; min-width: 0; flex: 1; }
  .top-right { flex-shrink: 0; }
  .topbar .eyebrow { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .content { width: 100%; padding: 22px 16px calc(96px + var(--tg-safe-bottom)); }

  /* Mobile page title and actions are *separate rows*, not one wide flex row. */
  .page-head {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 18px; margin-bottom: 23px; width: 100%;
  }
  .page-head > div:first-child { width: 100%; flex: none; min-width: 0; }
  .head-kicker { font-size: 9px; letter-spacing: 1.45px; line-height: 1.5; margin-bottom: 10px; overflow-wrap: anywhere; }
  .page-head h1 {
    font-size: clamp(27px, 7.7vw, 34px); line-height: 1.13;
    letter-spacing: -1.15px; overflow-wrap: break-word;
  }
  .page-head .lead { font-size: 12px; line-height: 1.55; margin-top: 10px; max-width: 32em; }
  .page-head > .head-actions {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch; width: 100%; max-width: 100%; gap: 9px;
    margin: 0; flex: none;
  }
  .page-head .head-actions > .btn {
    width: 100%; min-width: 0; max-width: 100%; min-height: 44px;
    padding: 10px 8px; white-space: normal; line-height: 1.25;
    overflow-wrap: anywhere; text-align: center; font-size: 12px;
  }
  .page-head .head-actions > .btn:only-child { grid-column: 1 / -1; }
  .page-head .head-actions > .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .page-head .head-actions .ico { flex: 0 0 auto; width: 16px; height: 16px; }

  /* Comfortable, genuinely viewport-sized session and channel cards. */
  .cards-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .item-card { min-width: 0; min-height: 0; padding: 17px; gap: 15px; border-radius: 17px; }
  .item-card .item-main { min-width: 0; gap: 10px; }
  .item-card .item-main > .panel-icon,
  .item-card .item-main > .channel-symbol { flex-shrink: 0; }
  .item-card .item-main > .pill { flex-shrink: 0; padding: 6px 8px; font-size: 10px; }
  .item-card .item-body { min-width: 0; flex: 1 1 0; }
  .item-card .item-name { max-width: 100%; font-size: 14px; }
  .item-card .item-meta { font-size: 11px; line-height: 1.45; }
  .item-card .card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .item-card .card-actions .btn {
    min-width: 0; flex: 1 1 auto; white-space: normal;
    overflow-wrap: anywhere; min-height: 42px; padding: 9px 11px;
    font-size: 11px; border-radius: 10px;
  }
  .item-card .card-actions [data-action="session-delete"] { flex: 0 0 43px; padding: 9px; }
  .section-intro { min-width: 0; margin: 22px 0 14px; gap: 7px; align-items: baseline; }
  .section-intro h2 { font-size: 17px; flex-shrink: 0; }
  .section-intro small { font-size: 10px; min-width: 0; }
  .panel-pad, .form-panel { padding: 17px; }
  .panel-head { align-items: flex-start; }
  .panel-head > * { min-width: 0; }
  .channel-row, .session-row { min-width: 0; }
  .channel-row-main, .session-row-main { min-width: 0; }

  /* Fit five destinations even on compact Android screens. */
  .mobile-nav { width: 100%; max-width: 100%; gap: 1px; padding-inline: 6px; }
  .mobile-nav .mobile-nav-item {
    flex: 1 1 0; min-width: 0; padding: 7px 2px;
    font-size: 10px; line-height: 1.25; white-space: nowrap;
  }
  .mobile-nav-item .ico { width: 20px; height: 20px; }
  .modal-backdrop { padding: 12px; }
  .modal { max-width: 100%; padding: 21px 17px; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions .btn { min-width: 0; flex: 1 1 auto; }
  .form-grid > *, .form-shell > *, .field > * { min-width: 0; }
  .form-actions .btn, .form-shell .field > .btn { max-width: 100%; white-space: normal; }
  .input, .select, textarea { width: 100%; min-width: 0; }
  .toast-area { max-width: calc(100vw - 24px); }
}

@media (max-width: 360px) {
  .content { padding-inline: 13px; }
  .topbar { padding-inline: 13px; }
  .page-head h1 { font-size: 27px; }
  .item-card { padding: 14px; }
  .item-card .item-main { gap: 8px; }
  .item-card .item-main > .pill { font-size: 9px; padding: 5px 6px; }
  .mobile-nav .mobile-nav-item { font-size: 9px; }
}


/* NOVA MOBILE V3 2026-11-01: unified layout / all sections / Telegram WebView.
   This CSS intentionally overrides the legacy 650px and older mobile patches. */
@media (max-width: 900px) {
  .app-shell, .main-wrap, .content, .page-head, .form-shell,
  .panel, .cards-grid, .item-card, .form-panel, .form-grid,
  .field, .field > *, .panel-head > *, .permission-card > * { min-width: 0; }
  .panel, .item-card, .form-panel { max-width: 100%; }
  .field .small-muted, .panel .small-muted, .list-sub, .item-meta,
  .note, .subtle-note, .owner-panel { overflow-wrap: anywhere; }
  .head-actions .btn, .card-actions .btn, .form-actions .btn { min-width: 0; }
  .channel-link { overflow-wrap: anywhere; word-break: break-word; }
}
@media (max-width: 650px) {
  :root { --mobile-pad: 15px; }
  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .app-shell, .main-wrap, #content { width: 100%; min-width: 0; max-width: 100%; }
  .main-wrap { overflow-x: clip; }
  .topbar { height: 62px; padding: 0 var(--mobile-pad); }
  .top-left { gap: 11px; min-width: 0; flex: 1 1 auto; }
  .top-right { flex-shrink: 0; }
  .topbar .eyebrow { font-size: 10px; line-height: 1.35; letter-spacing: .9px; overflow: hidden; text-overflow: ellipsis; }
  .content { padding: 20px var(--mobile-pad) calc(103px + var(--tg-safe-bottom)); }
  .page-head { flex-direction: column; align-items: stretch; gap: 17px; margin: 0 0 21px; }
  .page-head > div:first-child { min-width: 0; width: 100%; }
  .head-kicker { margin: 0 0 10px; font-size: 10px; line-height: 1.4; letter-spacing: 1.3px; overflow-wrap: anywhere; }
  .page-head h1 { font-size: clamp(26px, 7.8vw, 34px); line-height: 1.12; letter-spacing: -.95px; overflow-wrap: anywhere; }
  .page-head .lead { font-size: 12px; line-height: 1.55; max-width: 36em; margin-top: 10px; }
  .page-head > .head-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; width: 100%; margin: 0; }
  .page-head .head-actions .btn { width: 100%; max-width: 100%; min-height: 44px; padding: 9px 7px; white-space: normal; overflow-wrap: anywhere; text-align: center; line-height: 1.3; font-size: 12px; }
  .page-head .head-actions .btn:only-child,
  .page-head .head-actions .btn:last-child:nth-child(odd) { grid-column: 1/-1; }
  .btn { min-height: 42px; max-width: 100%; font-size: 12px; line-height: 1.35; padding: 10px 12px; white-space: normal; overflow-wrap: anywhere; text-align: center; }
  .btn .ico { flex: 0 0 auto; }
  .form-shell { width: 100%; max-width: 100%; }
  .form-panel, .panel-pad { padding: 17px; border-radius: 18px; }
  .form-grid, .choice-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .field { gap: 8px; }
  .field label:not(.choice) { font-size: 12px; font-weight: 730; line-height: 1.45; }
  .field small { font-size: 11px; line-height: 1.5; }
  .input, .select, .textarea { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; font-size: 16px; line-height: 1.4; border-radius: 12px; padding: 11px 13px; }
  .input, .select { min-height: 45px; }
  .textarea { min-height: 106px; line-height: 1.5; resize: vertical; }
  .form-actions { display: flex; margin-top: 18px; gap: 9px; }
  .form-actions .btn { width: 100%; min-height: 45px; }
  .panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
  .panel-head h3, .panel-title { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
  .panel-head .pill { flex: 0 1 auto; max-width: 54%; overflow-wrap: anywhere; white-space: normal; text-align: center; line-height: 1.3; }
  .section-intro { margin: 22px 0 13px; gap: 9px; align-items: flex-start; }
  .section-intro h2 { font-size: 16px; }
  .section-intro small { font-size: 10px; text-align: right; overflow-wrap: anywhere; }
  .cards-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .item-card { padding: 17px; gap: 15px; min-height: 0; border-radius: 18px; }
  .item-card .item-main { gap: 11px; align-items: center; min-width: 0; }
  .item-card .item-body { min-width: 0; flex: 1 1 0; }
  .item-card .item-name { font-size: 14px; }
  .item-card .item-meta { font-size: 11px; }
  .item-card .item-main > .pill { flex: 0 0 auto; padding: 6px 8px; font-size: 10px; }
  .item-card .card-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .item-card .card-actions > .btn { width: 100%; min-width: 0; min-height: 42px; white-space: normal; font-size: 11px; padding: 9px 7px; }
  .item-card .card-actions > .btn:only-child { grid-column: 1/-1; }
  .item-card .card-actions > .btn[data-action="session-delete"] { grid-column: 1/-1; background: #241c25; color: #f0abb7; }
  .hero { padding: 24px 21px; min-height: 220px; }
  .hero h2 { font-size: clamp(26px,8vw,33px); }
  .hero:after { width: 132px; height: 132px; opacity: .42; right: -26px; top: 49px; }
  .stats-grid { gap: 9px; }
  .stat { padding: 15px; min-height: 110px; }
  .stat-value { font-size: 28px; }
  .quick-panel { padding: 16px; }
  .quick-row { min-height: 66px; }
  .bottom-grid { gap: 12px; }
  .choice { min-width: 0; padding: 13px; }
  .choice span { min-width: 0; }
  .choice strong { line-height: 1.4; }
  .chips { gap: 7px; }
  .chip { white-space: normal; overflow-wrap: anywhere; min-height: 38px; }
  .owner-panel { padding: 14px; line-height: 1.5; }
  .note,.subtle-note { line-height: 1.6; }
  .permission-card { flex-wrap: wrap; gap: 11px; }
  .permission-card .pill { display: inline-flex; }
  .modal-backdrop { padding: 12px; align-items: center; }
  .modal { width: 100%; max-width: 100%; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 22px 17px; border-radius: 19px; }
  .modal h2 { font-size: 19px; }
  .modal-actions { flex-wrap: wrap; gap: 8px; }
  .modal-actions .btn { flex: 1 1 120px; min-height: 44px; }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; padding: 8px 5px calc(9px + var(--tg-safe-bottom)); z-index: 28; }
  .mobile-nav .mobile-nav-item { width: 100%; min-width: 0; max-width: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 7px 1px; min-height: 51px; font-size: 10px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
  .mobile-nav .mobile-nav-item .ico { width: 20px; height: 20px; flex-shrink: 0; }
  .toast-area { bottom: calc(89px + var(--tg-safe-bottom)); max-width: calc(100vw - 20px); }
  /* Manager has many separate settings: keep form controls compact and consistent. */
  .manager-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
  .manager-layout > .panel { margin: 0; }
  .manager-layout .panel-head { margin-bottom: 14px; }
  .manager-layout .field { min-width: 0; }
  .manager-layout .field > .btn { align-self: flex-start; max-width: 100%; min-height: 42px; font-size: 12px; padding: 10px 12px; }
  .manager-publish .textarea { min-height: 102px; }
  .manager-publish #publishCaption { min-height: 78px; }
  .manager-publish .field > .btn { align-self: stretch; width: 100%; }
  .manager-publish .media-publish-form { margin-top: 19px; padding-top: 19px; border-top: 1px solid var(--line); }
  .manager-settings > .field + .field,
  .manager-settings > .field + #channelAvatarForm,
  .manager-settings > #channelAvatarForm + .field { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
  .manager-settings .field, .manager-settings #channelAvatarForm { margin-top: 0 !important; }
  .manager-settings .small-muted { font-size: 12px; line-height: 1.5; }
  .manager-settings .textarea { min-height: 88px; }
  .channel-link { color: #b9cced; padding: 11px 12px; background: rgba(10,17,29,.8); border: 1px solid var(--line); border-radius: 10px; }
  .manager-layout input[type="file"].input { font-size: 12px; min-height: 48px; padding: 7px; overflow: hidden; white-space: normal; }
  .manager-layout input[type="file"].input::file-selector-button { font: inherit; font-size: 12px; margin-right: 9px; padding: 8px 10px; border-radius: 9px; border: 1px solid #465269; background: #263245; color: #e7efff; }
  .manager-posts .channel-row { display: block; padding: 14px 0; }
  .manager-posts .channel-row-main { width: 100%; }
  .manager-posts .list-sub { font-size: 11px; line-height: 1.5; white-space: normal; }
  .manager-posts .card-actions { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .manager-posts .card-actions .btn { width: 100%; min-width: 0; min-height: 40px; font-size: 11px; padding: 9px 7px; }
  .manager-posts .card-actions .btn-danger { grid-column: 1/-1; }
}
@media (max-width: 360px) {
  :root { --mobile-pad: 12px; }
  .page-head h1 { font-size: 26px; }
  .head-kicker { font-size: 9px; }
  .item-card, .form-panel, .panel-pad { padding: 14px; }
  .section-intro small { max-width: 48%; }
  .mobile-nav .mobile-nav-item { font-size: 9px; }
}

/* NOVA MONITOR V4 2026-11-01: compact status and action controls */
.monitor-panel{margin:18px 0;min-width:0}.monitor-summary{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 16px;font-size:12px;color:var(--text,#e7ebf4)}.monitor-summary span{padding:8px 10px;border:1px solid #303d4a;border-radius:10px;background:#131c29}.monitor-card-state{margin-top:5px;display:flex;gap:8px;flex-wrap:wrap}.monitor-panel .card-actions{display:flex;flex-wrap:wrap;gap:9px}.monitor-panel .card-actions .btn{min-width:0;white-space:normal}.monitor-panel .card-actions .btn:disabled{opacity:.42;cursor:not-allowed}
@media(max-width:650px){.monitor-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.monitor-summary span{font-size:10px;padding:9px 7px;min-width:0}.monitor-panel .card-actions{display:grid;grid-template-columns:1fr}.monitor-panel .card-actions .btn{width:100%}.monitor-card-state .pill{font-size:10px}.item-card .card-actions [data-action="session-prune"],.item-card .card-actions [data-action="session-mark-spam"]{grid-column:1/-1}}

/* MONITOR V5: show the actual Telegram reason under each channel. */
.monitor-detail{font-size:11px;color:#93a1b8;line-height:1.5;overflow-wrap:anywhere;word-break:break-word;border-left:2px solid #495268;padding:5px 9px}.monitor-panel .card-actions .btn{flex:1 1 175px;max-width:100%}
@media(max-width:650px){.monitor-detail{font-size:11px}.monitor-summary{grid-template-columns:repeat(2,minmax(0,1fr));}.monitor-panel .card-actions .btn{width:100%}}


/* Session ownership map and per-session channel creation · NOVA Sessions V8 */
.session-channel-box{margin-top:13px;padding:13px 14px;border:1px solid rgba(201,216,255,.10);border-radius:13px;background:rgba(9,14,23,.48);min-width:0}
.session-channel-heading{display:flex;align-items:center;gap:8px;margin-bottom:10px;color:#cbd6e9;font-size:12px;font-weight:760}
.session-channel-list{display:grid;gap:8px;min-width:0}
.session-channel-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:9px 10px;border:1px solid rgba(201,216,255,.07);border-radius:10px;background:rgba(255,255,255,.018)}
.session-channel-entry-main{display:grid;gap:4px;min-width:0;flex:1 1 auto}
.session-channel-entry-main strong{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.session-channel-entry-main small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.session-channel-entry-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:0 0 auto;min-width:0}
.session-channel-entry-actions .pill{max-width:150px;white-space:normal;text-align:center;font-size:9px;padding:5px 7px}
.session-channel-entry-actions .btn{min-height:34px;padding:7px 9px;font-size:10px}
.session-channel-empty{font-size:11px;line-height:1.5;color:var(--muted);padding:4px 0}
.session-channel-more{margin-top:8px;border-top:1px solid rgba(201,216,255,.07);padding-top:8px}
.session-channel-more summary{cursor:pointer;list-style:none;color:var(--blue);font-size:11px;font-weight:700;padding:4px 0}
.session-channel-more summary::-webkit-details-marker{display:none}
.session-channel-more summary:after{content:'⌄';float:right;color:var(--muted)}
.session-channel-more[open] summary:after{content:'⌃'}
.session-channel-more .session-channel-list{margin-top:8px}
@media(max-width:650px){
 .session-channel-box{padding:11px;margin-top:11px}
 .session-channel-entry{align-items:flex-start;flex-direction:column;gap:8px}
 .session-channel-entry-actions{width:100%;justify-content:space-between}
 .session-channel-entry-actions .pill{max-width:60%;}
 .session-channel-entry-actions .btn{min-height:36px}
}
