:root{--bg:#f4f6f9;--panel:#fff;--nav:#282f40;--blue:#3475e6;--text:#414a58;--muted:#939daf;--line:#e9edf3;--radius:9px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 'Segoe UI',Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a7c8ff;outline-offset:2px}button{border:0;border-radius:7px;background:#eef2f7;color:var(--text);padding:10px 15px;display:inline-flex;gap:9px;align-items:center;justify-content:center}button:hover{background:#e5ebf4}button.primary{background:var(--blue);color:white}button.primary:hover{background:#2364d6}button.outline{border:1px solid #cdd6e4;background:white}button.small{padding:6px 10px;font-size:12px}svg.icon{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sidebar{position:fixed;width:254px;inset:0 auto 0 0;background:var(--nav);color:#9da8bc;display:flex;flex-direction:column;padding:28px 17px;z-index:2}.brand{display:flex;gap:12px;align-items:center;color:white;text-decoration:none;padding:0 14px 27px}.brand-mark{background:var(--blue);width:39px;height:39px;border-radius:11px;display:grid;place-items:center;transform:rotate(-6deg)}.brand-mark svg{width:25px;height:25px;transform:rotate(6deg)}.brand strong{font-size:23px;letter-spacing:1.5px;color:#fff}.brand small{font-size:10px;display:block;letter-spacing:1.8px;color:#9da8bc}.nav-group{font-size:10px;text-transform:uppercase;letter-spacing:1.5px;color:#69758c;margin:22px 15px 9px}.nav button{background:none;color:#9da8bc;text-align:left;justify-content:flex-start;width:100%;padding:13px 15px;margin-bottom:4px;font-size:13px}.nav button.active{background:#35425a;color:#fff;box-shadow:inset 3px 0 var(--blue)}.nav button:hover{background:#303b50;color:#fff}.nav .count{margin-left:auto;background:#424e65;padding:0 7px;border-radius:4px;font-size:11px}.sidebar-bottom{margin-top:auto;padding-top:35px}.local-note{border:1px solid #414d65;border-radius:8px;padding:13px;color:#b7c3d7;font-size:12px;margin-bottom:18px}.local-note b{color:#f1f4fa;display:flex;align-items:center;gap:8px;font-weight:500}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#36b58b}.user-row{display:flex;align-items:center;gap:10px;padding:0 6px}.avatar{height:34px;width:34px;border-radius:50%;display:grid;place-items:center;background:#467ac3;color:#fff;font-size:12px;flex-shrink:0}.user-row small{display:block;color:#75849e;font-size:11px}.user-row button{margin-left:auto;background:transparent;color:#9da8bc;padding:7px}.main{margin-left:254px;padding:30px 34px 42px;max-width:1900px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px}.breadcrumb{font-size:11px;color:var(--muted);margin-bottom:4px}.topbar h1{font-size:24px;font-weight:600;margin:0;color:#354051}.sub{font-size:12px;color:var(--muted);margin-top:5px}.top-actions{display:flex;gap:10px;align-items:center}.local-pill{color:#8792a4;font-size:11px;padding:7px 12px;border:1px solid #dde4ee;border-radius:20px;white-space:nowrap}.cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px;margin-bottom:22px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:19px 20px;min-height:105px;text-align:left;color:var(--text);display:block}.card.selected{border:2px solid var(--blue);padding:18px 19px;box-shadow:0 3px 9px #3475e60a}.card .value{font-size:28px;line-height:1.25;font-weight:500;display:block;color:#4b5462}.card.selected .value{color:var(--blue)}.card .caption{font-size:11px;color:var(--muted);font-weight:600;display:block;margin-top:4px}.card .hint{font-size:10px;color:#a4adba;display:block;margin-top:6px}.toolbar,.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius)}.toolbar{padding:15px 17px;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.toolbar .group{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.toolbar .right-note{font-size:11px;color:var(--muted)}.panel{overflow:hidden}.filters{display:flex;align-items:center;gap:9px;padding:16px;flex-wrap:wrap}.filters input{margin-left:auto;width:265px}.filters select{background:#eef2f7;border:0;width:auto;padding:8px 13px;font-size:12px}.search{height:35px}input,select,textarea{border:1px solid #cfd8e5;border-radius:6px;padding:10px 12px;color:var(--text);background:#fff;width:100%}input::placeholder,textarea::placeholder{color:#a4acb9}textarea{min-height:135px;resize:vertical}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:12px}th{background:#f0f3f7;color:#636d7b;text-align:left;font-size:11px;font-weight:600;padding:13px 17px}td{padding:16px 17px;border-bottom:1px solid #edf0f5;color:#707987}tbody tr:hover{background:#fafbfd}tbody tr:last-child td{border-bottom:none}td input[type=checkbox],th input[type=checkbox]{width:14px;height:14px;padding:0;accent-color:var(--blue)}td.check,th.check{width:35px;padding-right:0}td.name-cell{color:#3f4b5d;font-weight:500}.account-cell{display:flex;align-items:center;gap:13px}.account-cell .avatar{height:30px;width:30px;font-size:11px}.badge{display:inline-flex;align-items:center;border-radius:5px;padding:3px 7px;font-size:10px;background:#eef2f7;color:#8892a2}.badge.green{background:#ddf3e7;color:#36a86c}.badge.blue{background:#e7efff;color:#3475e6}.badge.red{background:#fce9e8;color:#ca6863}.badge.amber{background:#fff3dd;color:#b18a36}.row-actions{display:flex;gap:8px}.row-actions button{color:var(--blue);padding:5px;background:transparent}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.empty{text-align:center;padding:60px 25px 65px;white-space:normal}.empty-icon{background:#eef3fc;border-radius:16px;display:grid;place-items:center;color:#7697cc;width:58px;height:58px;margin:0 auto 18px}.empty-icon svg{width:29px;height:29px}.empty h2{font-size:17px;font-weight:600;color:#455165;margin:0 0 8px}.empty p{max-width:420px;margin:0 auto 20px;color:var(--muted);font-size:12px;line-height:1.8}.info-strip{margin-top:18px;border:1px solid #e0e8f5;background:#edf3fd;border-radius:8px;padding:14px 17px;display:flex;gap:11px;color:#6380ac;font-size:12px}.info-strip svg{flex-shrink:0}.schedule-layout{display:grid;grid-template-columns:1.6fr 1fr;gap:20px}.section-head{padding:18px 21px;border-bottom:1px solid var(--line);font-size:14px;font-weight:600;display:flex;justify-content:space-between;align-items:center}.section-body{padding:22px}.chart{height:215px;display:flex;align-items:flex-end;gap:9px;padding:10px 4px 0}.bar-group{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px}.bar-group span{font-size:9px;color:#8b98ac}.bar{width:100%;min-width:10px;background:#83a8ed;border-radius:4px 4px 0 0}.bar-group:first-child .bar{background:var(--blue)}.bar-label{font-size:10px;color:#99a4b5}.schedule-details{padding:20px;font-size:13px}.schedule-details p{color:#8c96a8;font-size:12px}.key-value{display:flex;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line);font-size:12px}.key-value b{font-weight:600;color:#4b5970}.progress{height:5px;width:100px;background:#e8edf5;border-radius:3px;margin-top:5px;overflow:hidden}.progress span{height:100%;background:var(--blue);display:block}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid p{color:var(--muted);font-size:12px}.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1.1fr}.auth-side{background:var(--nav);display:flex;flex-direction:column;justify-content:center;padding:70px;color:#9cabc3}.auth-side .brand{padding:0 0 60px}.auth-side h1{font-size:36px;line-height:1.25;color:white;font-weight:500;max-width:470px}.auth-side p{max-width:400px;line-height:1.9}.auth-detail{border-top:1px solid #424c60;margin-top:40px;padding-top:25px;font-size:12px;display:flex;gap:25px}.auth-form{display:flex;align-items:center;justify-content:center;padding:45px}.auth-box{width:100%;max-width:430px}.auth-box h2{font-size:26px;margin:0 0 10px;color:#39465a}.auth-box>p{font-size:13px;color:var(--muted);margin-bottom:30px}.auth-box .primary{width:100%;margin-top:15px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}label{display:block;font-size:12px;margin-bottom:17px;color:#68758b}label input,label textarea,label select{display:block;margin-top:7px}.error{color:#c25d58;font-size:12px;line-height:1.6}.form-divider{border-top:1px solid var(--line);padding-top:20px;margin-top:24px}dialog{border:0;border-radius:12px;padding:0;width:min(560px,95vw);color:var(--text);box-shadow:0 25px 100px #16264433}dialog::backdrop{background:#19243c66}dialog .body{padding:23px}dialog h2{font-size:18px;margin:0}dialog .footer{padding:15px 23px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}dialog p{font-size:12px;color:var(--muted)}.upload-area{border:1px dashed #b9cbea;border-radius:9px;padding:23px;background:#f8faff;margin:20px 0}.upload-area input{border:0;background:transparent;padding:10px 0}#toast{position:fixed;right:25px;bottom:25px;max-width:440px;background:#293b55;color:white;box-shadow:0 6px 25px #1b2c4322;padding:14px 22px;border-radius:9px;z-index:10;display:none;font-size:13px}.spinner{display:grid;place-items:center;height:100vh;color:#7e90aa}.mobile-menu{display:none}.badge svg{width:12px;height:12px}.privacy{font-size:11px;color:#98a2b1;margin-top:25px;display:flex;gap:8px;align-items:center}@media(max-width:1150px){.sidebar{width:220px}.main{margin-left:220px;padding:25px 22px}.cards{gap:9px}.card{padding:16px 13px}.card.selected{padding:15px 12px}.card .caption{font-size:10px}.top-actions .local-pill{display:none}.schedule-layout{grid-template-columns:1fr}}@media(max-width:760px){.sidebar{width:68px;padding:20px 8px}.brand{padding:0 5px 20px}.brand .brand-text,.nav button span,.nav-group,.sidebar-bottom{display:none}.nav button{padding:13px;justify-content:center}.main{margin-left:68px;padding:20px 14px}.topbar h1{font-size:20px}.topbar{align-items:flex-start}.top-actions button{font-size:11px;padding:8px}.cards{grid-template-columns:repeat(2,1fr)}.card:last-child{grid-column:span 2}.toolbar{align-items:flex-start;flex-direction:column}.filters input{width:100%;margin:0}.auth-page{grid-template-columns:1fr}.auth-side{padding:25px}.auth-side .brand{padding:0}.auth-side h1,.auth-side p,.auth-detail{display:none}.auth-form{padding:30px 22px}.settings-grid{grid-template-columns:1fr}.form-row{grid-template-columns:1fr}.bar-group span{font-size:8px}.chart{gap:5px}}
.schedule-layout>*{min-width:0}.bar-group{min-width:0}.bar{min-width:0}@media(max-width:760px){.chart{gap:3px}.bar-group span{font-size:7px;letter-spacing:-.3px}.section-head{font-size:12px;gap:6px;flex-wrap:wrap}}
button.danger-outline{background:#fff;border:1px solid #efcecb;color:#bd625c}button.danger-outline:hover{background:#fff1ef}
.channel-avatar{width:32px;height:32px;object-fit:cover;border-radius:50%;flex-shrink:0}
.account-check-progress{flex:1;max-width:360px;min-width:210px;margin:0 15px}.account-check-caption{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#8995a8;margin-bottom:6px}.account-check-caption strong{font-weight:600;color:#4d6589}.account-check-track{height:6px;border-radius:4px;overflow:hidden;background:#e9eff9}.account-check-track>span{display:block;height:100%;background:#3475e6;transition:width .2s ease}.account-check-details{font-size:10px;color:#929eb0;margin-top:5px}@media(max-width:760px){.account-check-progress{width:100%;max-width:none;margin:8px 0;min-width:0}}

/* Teleboost branding */
.brand{gap:10px;padding-left:4px;padding-right:4px}
.brand-mark{width:54px;height:54px;flex:0 0 54px;background:#fff;border-radius:12px;transform:none;overflow:hidden}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.brand strong{font-size:19px;letter-spacing:1px}.brand small{font-size:8px}
.auth-side .brand-mark{width:100px;height:100px;flex-basis:100px;border-radius:20px}
.auth-side .brand strong{font-size:28px}.auth-side .brand small{font-size:10px}
@media(max-width:760px){.sidebar .brand{padding-left:0;padding-right:0}.sidebar .brand-mark{width:48px;height:48px;flex-basis:48px}.auth-side .brand-mark{width:64px;height:64px;flex-basis:64px}.auth-side .brand strong{font-size:23px}}

/* Full-width transparent logo */
.sidebar .brand{display:block;padding:0 0 24px}
.sidebar .brand-mark{display:block;width:100%;height:auto;aspect-ratio:1;max-width:none;flex:none;background:transparent;border-radius:0;overflow:visible}
.sidebar .brand-mark img{width:100%;height:100%;object-fit:contain}
.auth-side .brand-mark{width:220px;height:220px;flex-basis:220px;background:transparent;border-radius:0}
@media(max-width:760px){.sidebar .brand-mark{width:100%;height:auto}.auth-side .brand-mark{width:120px;height:120px;flex-basis:120px}}

/* Responsive workspace: fill the viewport, contain wide tables. */
.main{max-width:none;min-width:0;width:calc(100% - 254px);padding:clamp(20px,2vw,40px) clamp(18px,2vw,42px)}
.sidebar{overflow-y:auto;overscroll-behavior:contain}
.sidebar .brand{flex-shrink:0}
.nav{flex-shrink:0}
.topbar{gap:18px;flex-wrap:wrap}.topbar>div:first-child{min-width:0;flex:1 1 260px}
.top-actions{flex-wrap:wrap;justify-content:flex-end}
.toolbar{flex-wrap:wrap}.toolbar .group{min-width:0}.toolbar .right-note{margin-left:auto}
.panel,.table-wrap{min-width:0;max-width:100%}.table-wrap{overscroll-behavior-x:contain}
.filters input{max-width:100%}.table-footer{gap:10px;flex-wrap:wrap}
.settings-grid>*{min-width:0}.section-head{gap:10px;flex-wrap:wrap}
.account-check-progress{min-width:min(210px,100%)}
#toast{max-width:calc(100vw - 32px)}
@media(max-width:1150px){.main{width:calc(100% - 220px)}.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.auth-side{padding:35px}.auth-detail{flex-wrap:wrap;gap:12px}}
@media(max-width:760px){.main{width:calc(100% - 68px);padding:20px 14px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbar .right-note{margin-left:0}.top-actions{justify-content:flex-start}.topbar>div:first-child{flex-basis:100%}.toolbar .group{width:100%}.sidebar .brand{padding-bottom:14px}.auth-detail{display:none}}
@media(max-width:420px){.cards{grid-template-columns:minmax(0,1fr)}.card:last-child{grid-column:auto}.toolbar .group button{max-width:100%;white-space:normal}.filters{padding:12px}.section-body{padding:14px}.chart{height:175px}.chart .bar-group span{font-size:6px}.top-actions button{white-space:normal}}
@media(max-height:800px) and (min-width:761px){.sidebar{padding-top:16px;padding-bottom:16px}.sidebar .brand-mark{max-height:150px;aspect-ratio:auto;height:150px}.sidebar .brand{padding-bottom:8px}.nav-group{margin-top:14px}.nav button{padding-top:10px;padding-bottom:10px}.sidebar-bottom{padding-top:18px}}

.account-row{cursor:pointer}.account-row.is-selected,.account-row.is-selected:hover{background:#edf4ff}.account-row.is-selected td{border-bottom-color:#dce8fa}

.project-panel{margin-bottom:20px}.project-panel .group{display:flex;gap:8px;flex-wrap:wrap}.project-folders{display:flex;flex-wrap:wrap;gap:10px;padding:16px}.project-folder{max-width:100%;border:1px solid var(--line);background:#f8faff;justify-content:flex-start}.project-folder>span:first-of-type{white-space:normal;overflow-wrap:anywhere}.project-folder.active{background:#eaf1ff;border-color:var(--blue);color:var(--blue)}

.channel-actions{display:flex;align-items:center;gap:8px}.channel-actions button.small{height:36px;padding:0 12px;white-space:nowrap;flex-shrink:0}.channel-actions [data-channel-refresh]{width:36px;padding:0}.channel-actions [data-channel-run]{min-width:90px}.channel-actions .icon{width:18px;height:18px}

.subscription-jobs{display:grid;gap:18px}.subscription-jobs .section-head>span:first-child{overflow-wrap:anywhere;min-width:0}.subscription-choices{max-height:320px;overflow:auto;border:1px solid var(--line);border-radius:8px}.subscription-choice{display:flex;align-items:center;gap:12px;padding:12px;margin:0;border-bottom:1px solid var(--line);cursor:pointer}.subscription-choice input{width:16px;height:16px;margin:0;flex-shrink:0}.subscription-choice small{display:block;color:var(--muted)}

.subscription-context{margin:0 0 18px;overflow-wrap:anywhere}.subscription-context strong{color:#3c5f94}
