:root{
  --bg:#080b12;--bg-elev:#0c111b;--panel:#101722;--panel-2:#141d2a;--panel-3:#182333;
  --border:#223044;--border-soft:#192537;--text:#f4f7fb;--text-2:#c5cfdd;--muted:#7f8da2;
  --accent:#6f8cff;--accent-2:#8b6dff;--accent-soft:rgba(111,140,255,.12);
  --success:#4bd19c;--warning:#f0b95b;--danger:#f36f7d;--danger-soft:rgba(243,111,125,.11);
  --shadow-lg:0 30px 80px rgba(0,0,0,.38);--shadow-md:0 16px 36px rgba(0,0,0,.22);
  --r-xl:24px;--r-lg:18px;--r-md:14px;--r-sm:11px;--sidebar:252px;
}
*{box-sizing:border-box}html{background:var(--bg);scrollbar-gutter:stable}body{margin:0;min-height:100vh;background:radial-gradient(900px 500px at 76% -180px,rgba(111,140,255,.12),transparent 70%),var(--bg);color:var(--text);font:14px/1.5 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline:none}button{cursor:pointer}.hidden{display:none!important}.mobile-only{display:none!important}.muted{color:var(--muted)}.eyebrow,.section-kicker{display:block;color:#91a1b8;font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.footnote{color:var(--muted);font-size:12px;line-height:1.55;margin:14px 0 0}

/* Controls */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border:1px solid transparent;border-radius:12px;padding:10px 15px;font-weight:760;letter-spacing:-.01em;transition:transform .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease;color:var(--text);text-decoration:none}.btn:hover{transform:translateY(-1px)}.btn:active{transform:translateY(0)}.btn.primary{background:linear-gradient(135deg,#7795ff,#8a70ff);box-shadow:0 10px 24px rgba(111,140,255,.18);color:#fff}.btn.primary:hover{box-shadow:0 14px 30px rgba(111,140,255,.25)}.btn.secondary{background:#151f2d;border-color:var(--border);color:var(--text-2)}.btn.secondary:hover{background:#1a2636;border-color:#31415a}.btn.danger{background:#b74150;color:#fff}.btn.danger:hover{background:#c44a5a}.text-btn{background:transparent;border:0;color:#9fb1ff;padding:6px;font-weight:700}.text-btn:hover{color:#c3ceff}.icon-btn{width:36px;height:36px;display:inline-grid;place-items:center;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:17px}.icon-btn:hover{background:#172131;color:var(--text)}.icon-btn.outlined{border:1px solid var(--border);background:#101824}.icon-btn:disabled,.btn:disabled{opacity:.4;cursor:not-allowed;transform:none}.pill,.count-pill,.nav-count{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:999px;padding:5px 9px;color:var(--text-2);background:#111a27;font-size:11px;font-weight:750}.pill.positive{border-color:rgba(75,209,156,.22);background:rgba(75,209,156,.08);color:#82e5bd}.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:var(--muted);box-shadow:0 0 0 4px rgba(127,141,162,.08)}.status-dot.ok,.status-dot.open{background:var(--success);box-shadow:0 0 0 4px rgba(75,209,156,.1)}.status-dot.limited{background:var(--warning);box-shadow:0 0 0 4px rgba(240,185,91,.1)}.status-dot.closed{background:var(--danger);box-shadow:0 0 0 4px rgba(243,111,125,.1)}
input,select,textarea{width:100%;border:1px solid var(--border);border-radius:12px;background:#0c1420;color:var(--text);padding:11px 12px;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}input:hover,select:hover,textarea:hover{border-color:#30415c}input:focus,select:focus,textarea:focus{border-color:#6f8cff;box-shadow:0 0 0 3px rgba(111,140,255,.13);background:#0d1623}textarea{resize:vertical;min-height:110px}.field{display:grid;gap:7px;color:var(--text-2);font-size:12px;font-weight:650}.field>span{padding-left:2px}
:focus-visible{outline:2px solid #9aadff!important;outline-offset:2px}

/* Login */
.login-shell{position:relative;min-height:100vh;display:grid;place-items:center;overflow:hidden;padding:24px}.login-glow{position:absolute;width:760px;height:760px;border-radius:50%;background:radial-gradient(circle,rgba(111,140,255,.15),rgba(139,109,255,.05) 38%,transparent 68%);filter:blur(4px);top:-380px;right:-180px}.login-card{position:relative;width:min(470px,100%);padding:34px;border:1px solid rgba(139,157,187,.2);border-radius:28px;background:linear-gradient(160deg,rgba(17,24,36,.97),rgba(12,17,27,.95));box-shadow:0 40px 110px rgba(0,0,0,.5)}.brand-lockup{display:flex;align-items:center;gap:11px}.brand-lockup.large{margin-bottom:48px}.brand-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(145deg,#738eff,#8f6fff);box-shadow:0 9px 24px rgba(111,140,255,.2);font-weight:900}.brand-lockup strong{display:block;font-size:14px;letter-spacing:-.01em}.brand-lockup span{display:block;color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase;margin-top:1px}.login-copy h1{font-size:34px;line-height:1.08;letter-spacing:-.045em;margin:10px 0 12px}.login-copy p{font-size:15px;color:var(--muted);line-height:1.65;margin:0 0 28px}.google-btn{width:100%;height:48px;font-size:14px}.google-g{width:22px;height:22px;border-radius:7px;background:white;color:#131722;display:grid;place-items:center;font-weight:900;font-family:Arial,sans-serif}.login-foot{margin-top:18px;color:var(--muted);font-size:11px;display:flex;justify-content:center;align-items:center;gap:8px}

/* App shell */
.app-shell{min-height:100vh;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:22px 14px 16px;background:rgba(9,13,20,.88);backdrop-filter:blur(16px);border-right:1px solid var(--border-soft);z-index:15}.sidebar-head{padding:2px 8px 22px}.nav-list{display:grid;gap:4px}.nav-item{display:flex;align-items:center;gap:11px;width:100%;min-height:43px;border:1px solid transparent;border-radius:12px;padding:9px 10px;background:transparent;color:#8796aa;text-align:left;font-weight:680;transition:background .14s ease,color .14s ease,border-color .14s ease}.nav-item:hover{background:#111925;color:var(--text-2)}.nav-item.active{background:linear-gradient(100deg,rgba(111,140,255,.12),rgba(139,109,255,.07));border-color:rgba(111,140,255,.16);color:#eaf0ff}.nav-icon{width:22px;height:22px;display:grid;place-items:center;font-size:16px;color:#8597b0}.nav-item.active .nav-icon{color:#aebcff}.nav-count{margin-left:auto;min-width:23px;padding:2px 7px;color:#fbd59c;border-color:rgba(240,185,91,.2);background:rgba(240,185,91,.08)}.sidebar-spacer{flex:1}.sidebar-footer{display:grid;gap:8px}.utility-link,.locale-row{display:flex;align-items:center;gap:10px;padding:8px 9px;color:var(--muted);text-decoration:none;font-size:12px;border-radius:10px}.utility-link:hover{background:#111925;color:var(--text-2)}.utility-link>span:first-child{width:22px;height:22px;border:1px solid var(--border);border-radius:7px;display:grid;place-items:center}.locale-row{justify-content:space-between}.locale-row select{width:auto;padding:6px 28px 6px 8px;border-radius:8px;font-size:11px;background:#0d1520}.admin-card{margin-top:5px;display:grid;grid-template-columns:34px 1fr 36px;gap:9px;align-items:center;padding:10px;border:1px solid var(--border-soft);border-radius:14px;background:#0e1622}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#1a2940;color:#afc1e6;font-weight:800}.admin-meta{min-width:0}.admin-meta strong,.admin-meta span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-meta strong{font-size:12px}.admin-meta span{font-size:10px;color:var(--muted);margin-top:2px}
.main{min-width:0}.topbar{position:sticky;top:0;z-index:12;height:80px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid rgba(34,48,68,.7);background:rgba(8,11,18,.78);backdrop-filter:blur(18px)}.topbar-left{display:flex;align-items:center;gap:10px}.breadcrumb{color:#65748a;font-size:10px;font-weight:650;letter-spacing:.03em;margin-bottom:2px}.topbar h1{font-size:19px;letter-spacing:-.025em;margin:0}.mode-status{display:flex;align-items:center;gap:9px;border:1px solid var(--border);border-radius:999px;background:#0f1722;color:var(--text-2);padding:8px 12px;font-size:11px;font-weight:760;text-transform:uppercase;letter-spacing:.08em}.mode-status:hover{border-color:#354761}.chevron{color:var(--muted);font-size:12px}.page{max-width:1520px;margin:0 auto;padding:30px 32px 70px}.panel{display:none}.panel.active{display:block}.page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.page-intro h2{margin:5px 0 3px;font-size:27px;line-height:1.15;letter-spacing:-.04em}.page-intro p{margin:0;color:var(--muted);max-width:680px}

/* Surfaces & overview */
.surface{border:1px solid var(--border-soft);border-radius:var(--r-lg);background:linear-gradient(160deg,rgba(16,23,34,.96),rgba(13,19,29,.96));padding:20px;box-shadow:0 1px 0 rgba(255,255,255,.02)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.section-head>div{display:flex;align-items:center;gap:9px}.section-head>div:has(.section-kicker){display:block}.section-head h3{font-size:16px;letter-spacing:-.02em;margin:2px 0 0}.surface-copy{color:var(--muted);margin:0 0 16px;font-size:12px}.metric-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:12px}.metric-card{position:relative;min-height:124px;padding:17px;border:1px solid var(--border-soft);border-radius:16px;background:#0f1621;overflow:hidden}.metric-card::after{content:"";position:absolute;right:-40px;top:-50px;width:110px;height:110px;border-radius:50%;background:radial-gradient(circle,rgba(111,140,255,.07),transparent 70%)}.metric-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;font-weight:650}.metric-icon{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#162033;color:#a5b7db}.metric-value{font-size:29px;line-height:1;font-weight:820;letter-spacing:-.045em;margin-top:19px}.metric-note{font-size:10px;color:#66768d;margin-top:7px}.dashboard-grid{display:grid;grid-template-columns:1.25fr .95fr;gap:12px}.attention-surface{grid-row:span 2}.attention-list{display:grid;gap:8px}.attention-item{display:grid;grid-template-columns:38px 1fr auto;gap:11px;align-items:center;padding:12px;border:1px solid var(--border-soft);border-radius:13px;background:#0d1520}.attention-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;font-size:15px;background:#172235;color:#aebfff}.attention-icon.warn{background:rgba(240,185,91,.09);color:#eac476}.attention-item strong{display:block;font-size:12px}.attention-item small{display:block;color:var(--muted);margin-top:2px}.attention-empty{min-height:180px;display:grid;place-items:center;text-align:center;color:var(--muted)}.attention-empty .empty-check{width:44px;height:44px;border-radius:14px;background:rgba(75,209,156,.08);color:var(--success);display:grid;place-items:center;margin:0 auto 10px;font-size:19px}.mode-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mode-card{position:relative;display:flex;align-items:center;gap:9px;border:1px solid var(--border-soft);border-radius:13px;background:#0d1520;color:var(--text-2);padding:11px;text-align:left;min-width:0}.mode-card:hover{background:#111a27;border-color:#2c3c54}.mode-card.active{border-color:rgba(111,140,255,.42);background:rgba(111,140,255,.08)}.mode-card.danger-zone.active{border-color:rgba(243,111,125,.38);background:rgba(243,111,125,.07)}.mode-card strong,.mode-card small{display:block}.mode-card strong{font-size:12px;color:var(--text)}.mode-card small{font-size:9px;color:var(--muted);white-space:nowrap}.mode-icon{font-size:10px}.mode-icon.open{color:var(--success)}.mode-icon.limited{color:var(--warning)}.mode-icon.closed{color:var(--danger)}.mode-check{position:absolute;right:8px;top:7px;color:#aabaff;font-size:10px;opacity:0}.mode-card.active .mode-check{opacity:1}.source-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.source-card{display:flex;align-items:center;gap:11px;padding:11px;border:1px solid var(--border-soft);border-radius:13px;background:#0d1520}.source-logo{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;font-weight:900}.source-logo.youtube{background:rgba(255,86,92,.1);color:#ff7e83}.source-logo.instagram{background:linear-gradient(135deg,rgba(232,94,179,.12),rgba(127,93,255,.12));color:#dd8bc4}.source-logo.facebook{background:rgba(82,132,255,.11);color:#8eb1ff}.source-logo.tiktok{background:rgba(95,224,219,.1);color:#86e6e1}.source-card strong,.source-card small{display:block}.source-card strong{font-size:12px}.source-card small{font-size:10px;color:var(--muted);margin-top:2px}

/* Users */
.table-surface{padding:0;overflow:hidden}.users-toolbar{padding:16px;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border-soft)}.search-box{position:relative;display:flex;align-items:center;width:min(430px,55%)}.search-box>span{position:absolute;left:12px;color:var(--muted);font-size:18px}.search-box input{padding-left:38px;background:#0b131e}.filters{display:flex;gap:8px}.filters select{width:auto;min-width:138px;background:#0b131e}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:12px 16px;border-bottom:1px solid var(--border-soft);text-align:left;white-space:nowrap}.data-table th{position:sticky;top:0;background:#0f1621;color:#6e7e94;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;z-index:1}.data-table tbody tr{transition:background .12s ease}.data-table tbody tr:hover{background:#121c29;cursor:pointer}.user-cell{display:flex;align-items:center;gap:10px;min-width:210px}.user-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#182438;color:#b4c6e8;font-size:11px;font-weight:800}.user-cell strong,.user-cell small{display:block}.user-cell strong{font-size:12px}.user-cell small{font-size:10px;color:var(--muted);margin-top:2px}.status-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 8px;background:#131d2b;color:var(--text-2);font-size:10px;font-weight:700}.status-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--muted)}.status-badge.ok::before{background:var(--success)}.status-badge.warn::before{background:var(--warning)}.status-badge.bad::before{background:var(--danger)}.table-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 16px}.pager{display:flex;gap:7px}

/* Requests */
.request-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.request-dot{width:9px;height:9px;border-radius:50%;display:inline-block}.request-dot.access{background:#7e9cff}.request-dot.upgrade{background:#a686ff}.request-list{display:grid;gap:9px}.request-card{padding:14px;border:1px solid var(--border-soft);border-radius:14px;background:#0d1520}.request-card-head{display:flex;justify-content:space-between;gap:12px}.request-user{display:flex;align-items:center;gap:10px}.request-user strong,.request-user small{display:block}.request-user small{font-size:10px;color:var(--muted);margin-top:2px}.request-time{font-size:10px;color:var(--muted)}.request-actions{display:flex;align-items:center;gap:8px;margin-top:12px}.request-actions select{max-width:180px;margin-right:auto}.empty-state{min-height:180px;display:grid;place-items:center;text-align:center;color:var(--muted)}.empty-state span{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;margin:0 auto 9px;background:#152030;color:#90a4c2;font-size:18px}

/* Plans */
.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.plan-card{padding:19px;border:1px solid var(--border-soft);border-radius:18px;background:linear-gradient(160deg,#101824,#0d141f)}.plan-card.disabled-plan{opacity:.62}.plan-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.plan-name strong{display:block;font-size:16px;letter-spacing:-.02em}.plan-name small{display:block;color:var(--muted);font-size:10px;margin-top:2px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.plan-limits{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.limit-tile{padding:12px;border:1px solid var(--border-soft);border-radius:12px;background:#0b131e}.limit-tile span,.limit-tile strong{display:block}.limit-tile span{color:var(--muted);font-size:10px}.limit-tile strong{font-size:18px;letter-spacing:-.03em;margin-top:4px}.plan-card-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border-soft);padding-top:13px}.plan-card-footer button{padding:7px 10px;min-height:34px}

/* Broadcast */
.broadcast-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.75fr);gap:12px}.audience-row{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px}.audience-row strong{display:block;margin-top:4px}.composer-card textarea{font-size:14px;line-height:1.6}.composer-footer{display:flex;align-items:center;justify-content:space-between;margin-top:10px}.char-count{font-size:10px;color:var(--muted)}.inline-result{margin-top:12px;border-radius:11px;padding:10px 12px;background:rgba(75,209,156,.08);border:1px solid rgba(75,209,156,.16);color:#9feacb;font-size:11px}.inline-result.error{background:var(--danger-soft);border-color:rgba(243,111,125,.18);color:#ffabb4}.preview-card{min-height:350px}.telegram-preview{margin:20px auto 0;width:min(330px,100%);padding:14px;border:1px solid var(--border-soft);border-radius:22px;background:linear-gradient(160deg,#111d2b,#0d1722)}.tg-header{display:flex;align-items:center;gap:9px;margin-bottom:12px}.tg-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#6e8cff,#8d71ff);font-size:11px;font-weight:800}.tg-header strong,.tg-header small{display:block}.tg-header strong{font-size:11px}.tg-header small{font-size:9px;color:var(--muted)}.tg-bubble{position:relative;border-radius:14px 14px 14px 5px;padding:12px 12px 18px;background:#17273a;color:#dce7f4;box-shadow:0 4px 14px rgba(0,0,0,.16)}.tg-bubble strong{display:block;font-size:10px;margin-bottom:7px;color:#bcd0e6}.tg-bubble p{white-space:pre-wrap;margin:0;font-size:11px;line-height:1.5;color:#e5edf6}.tg-bubble time{position:absolute;right:8px;bottom:5px;color:#70839b;font-size:8px}

/* Settings */
.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.settings-row{display:flex;align-items:center;gap:12px}.settings-icon{width:38px;height:38px;border-radius:12px;background:#162234;color:#a9bad7;display:grid;place-items:center;font-weight:800}.settings-row span,.settings-row strong{display:block}.settings-row span{font-size:10px;color:var(--muted);margin-bottom:3px}.settings-row strong{font-size:12px}.settings-wide{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px}

/* Drawer */
.drawer-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.54);backdrop-filter:blur(3px);z-index:40}.drawer{position:fixed;top:0;right:0;width:min(720px,96vw);height:100vh;z-index:41;background:#0b111a;border-left:1px solid var(--border);box-shadow:-30px 0 90px rgba(0,0,0,.42);overflow:auto}.drawer-head{position:sticky;top:0;height:54px;display:flex;justify-content:flex-end;align-items:center;padding:8px 16px;background:rgba(11,17,26,.9);backdrop-filter:blur(16px);z-index:2}.drawer-content{padding:0 24px 40px}.profile-head{display:flex;align-items:flex-start;gap:14px;padding:4px 0 22px;border-bottom:1px solid var(--border-soft)}.profile-avatar{width:50px;height:50px;border-radius:15px;display:grid;place-items:center;background:#17253a;color:#c0cdec;font-size:16px;font-weight:800}.profile-title{flex:1;min-width:0}.profile-title h2{margin:2px 0 3px;font-size:21px;letter-spacing:-.035em}.profile-title p{margin:0;color:var(--muted);font-size:11px}.profile-flags{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.profile-actions{display:grid;grid-template-columns:1fr auto;gap:8px;margin:18px 0}.profile-actions select{min-width:0}.quota-card{border:1px solid var(--border-soft);border-radius:16px;background:#0e1622;padding:15px;margin:10px 0 18px}.quota-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.quota-head strong{font-size:13px}.quota-row{display:grid;grid-template-columns:105px 1fr auto;gap:10px;align-items:center;margin:10px 0}.quota-row span,.quota-row small{font-size:10px}.quota-row span{color:var(--text-2)}.quota-row small{color:var(--muted)}.progress{height:7px;border-radius:999px;background:#1b2737;overflow:hidden}.progress>i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#708dff,#8c72ff)}.drawer-tabs{display:flex;gap:5px;border-bottom:1px solid var(--border-soft);margin:8px 0 14px}.drawer-tab{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);padding:9px 10px;font-size:11px;font-weight:700}.drawer-tab.active{border-color:#7f99ff;color:var(--text)}.drawer-panel{display:none}.drawer-panel.active{display:block}.direct-composer{border:1px solid var(--border-soft);border-radius:14px;padding:12px;background:#0e1622;margin-bottom:13px}.direct-composer textarea{min-height:74px}.direct-footer{display:flex;justify-content:flex-end;margin-top:8px}.history{display:grid;gap:8px}.message-row,.download-row{padding:12px;border:1px solid var(--border-soft);border-radius:13px;background:#0d1520}.message-row.inbound{margin-right:38px;border-left-color:rgba(111,140,255,.5)}.message-row.outbound{margin-left:38px;border-left-color:rgba(75,209,156,.46)}.message-row .message-text{white-space:pre-wrap;color:#d5dfec;font-size:11px;line-height:1.5}.meta{font-size:9px;color:#68788d;margin-top:6px}.download-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.download-title-row strong{font-size:11px;line-height:1.4}.download-url{margin-top:6px;color:#63768e;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-chips{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.account-chip{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--border-soft);border-radius:12px;padding:10px;background:#0e1622}.account-chip strong{font-size:11px}.account-chip small{color:var(--muted);font-size:9px}.load-more{width:100%;margin-top:8px;background:#111c2a;color:var(--text-2);border:1px solid var(--border);border-radius:11px;padding:9px;font-size:11px;font-weight:700}

/* Modal & toast */
.modal{border:0;padding:0;background:transparent;color:var(--text);max-width:none}.modal::backdrop{background:rgba(0,0,0,.62);backdrop-filter:blur(4px)}.modal-card{width:min(460px,calc(100vw - 32px));border:1px solid var(--border);border-radius:20px;background:linear-gradient(160deg,#111925,#0c131d);box-shadow:var(--shadow-lg);padding:22px}.modal-card h2{font-size:20px;letter-spacing:-.03em;margin:10px 0 8px}.modal-card p{margin:0;line-height:1.6}.modal-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--danger-soft);color:#ff9eaa;font-weight:900}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.modal-title-row{display:flex;align-items:flex-start;justify-content:space-between}.modal-title-row h2{margin-top:5px}.plan-modal-card{width:min(560px,calc(100vw - 32px))}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.switch-row{grid-column:1/-1;position:relative;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--border-soft);border-radius:13px;padding:11px 12px;background:#0d1520}.switch-row strong,.switch-row small{display:block}.switch-row strong{font-size:11px}.switch-row small{font-size:9px;color:var(--muted);margin-top:2px}.switch-row input{position:absolute;opacity:0;width:1px;height:1px}.switch{position:relative;width:38px;height:22px;border-radius:999px;background:#263345;transition:background .15s ease}.switch::after{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;border-radius:50%;background:#a8b4c6;transition:transform .15s ease,background .15s ease}.switch-row input:checked+.switch{background:#667ff0}.switch-row input:checked+.switch::after{transform:translateX(16px);background:#fff}.toast{position:fixed;right:22px;bottom:22px;z-index:80;max-width:min(380px,calc(100vw - 44px));padding:11px 14px;border:1px solid #2b3b52;border-radius:12px;background:#152131;color:#dce5ef;box-shadow:var(--shadow-md);font-size:11px}

@media(max-width:1180px){.metric-grid{grid-template-columns:repeat(3,1fr)}.dashboard-grid{grid-template-columns:1fr}.attention-surface{grid-row:auto}.plan-grid{grid-template-columns:repeat(2,1fr)}.broadcast-layout{grid-template-columns:1fr}.preview-card{min-height:auto}.telegram-preview{margin-left:0}.settings-grid{grid-template-columns:1fr 1fr}}
@media(max-width:820px){.mobile-only{display:inline-grid!important}.app-shell{display:block}.sidebar{position:fixed;left:0;top:0;width:min(290px,86vw);transform:translateX(-105%);transition:transform .2s ease;box-shadow:20px 0 60px rgba(0,0,0,.35)}.sidebar.open{transform:translateX(0)}.sidebar-scrim{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:14}.sidebar-head{display:flex;align-items:center;justify-content:space-between}.topbar{height:70px;padding:0 18px}.page{padding:22px 16px 60px}.metric-grid{grid-template-columns:repeat(2,1fr)}.request-columns,.settings-grid{grid-template-columns:1fr}.settings-wide{grid-column:auto;align-items:flex-start;flex-direction:column}.page-intro{align-items:flex-start}.plan-grid{grid-template-columns:1fr}.users-toolbar{align-items:stretch;flex-direction:column}.search-box{width:100%}.filters{width:100%}.filters select{flex:1;min-width:0}.data-table th:nth-child(4),.data-table td:nth-child(4){display:none}.mode-cards{grid-template-columns:1fr}.source-grid{grid-template-columns:1fr 1fr}.drawer{width:100vw}.drawer-content{padding:0 16px 34px}.topbar .breadcrumb{display:none}}
@media(max-width:520px){.metric-card:last-child:nth-child(odd){grid-column:1/-1}.login-card{padding:26px 22px;border-radius:22px}.login-copy h1{font-size:29px}.brand-lockup.large{margin-bottom:38px}.metric-grid{grid-template-columns:1fr 1fr}.metric-card{min-height:110px}.metric-value{font-size:25px}.page-intro{display:block}.page-intro>.btn{width:100%;margin-top:14px}.request-actions{flex-wrap:wrap}.request-actions select{width:100%;max-width:none}.source-grid{grid-template-columns:1fr}.filters{display:grid;grid-template-columns:1fr 1fr}.data-table th:nth-child(2),.data-table td:nth-child(2){display:none}.form-grid{grid-template-columns:1fr}.switch-row{grid-column:auto}.profile-actions{grid-template-columns:1fr}.quota-row{grid-template-columns:92px 1fr}.quota-row small{grid-column:2}.account-chips{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.source-card .source-copy{min-width:0;flex:1}.source-health{margin-left:auto;flex:0 0 auto;padding:4px 7px;border:1px solid var(--border-soft);border-radius:999px;font-size:9px;font-weight:750;color:var(--muted);background:#111a27}.source-health.healthy{color:var(--success);border-color:rgba(75,209,156,.2);background:rgba(75,209,156,.06)}.source-health.degraded{color:var(--warning);border-color:rgba(240,185,91,.22);background:rgba(240,185,91,.06)}.source-health.cooldown{color:var(--danger);border-color:rgba(243,111,125,.22);background:rgba(243,111,125,.06)}

/* v5 operations workspace */
.ops-grid{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(520px,1.2fr);gap:18px;margin-top:18px;align-items:start}
.capability-list{display:grid;gap:10px;margin-top:12px}
.capability-card{border:1px solid var(--border);background:var(--surface-2);border-radius:14px;padding:14px;display:grid;gap:10px}
.capability-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.capability-title{display:flex;align-items:center;gap:10px}.capability-title strong{font-size:14px}.capability-title small{display:block;color:var(--muted);margin-top:2px}
.capability-tags{display:flex;flex-wrap:wrap;gap:6px}.capability-tags .pill{font-size:11px}
.audit-surface{min-width:0}.audit-table td{vertical-align:top}.audit-table td:nth-child(3){font-weight:650}.audit-table td:nth-child(5){color:var(--muted)}
.ops-health-ok{color:var(--success)}.ops-health-bad{color:var(--danger)}
@media(max-width:1050px){.ops-grid{grid-template-columns:1fr}}
/* v5 operations polish */
.capability-card{background:var(--panel-2)}
.audit-table{table-layout:auto}
.audit-table th,.audit-table td{white-space:normal;overflow-wrap:anywhere;min-width:90px}
.audit-table th:first-child,.audit-table td:first-child{min-width:105px}
@media(max-width:520px){
  .audit-table{table-layout:fixed;width:100%}
  .audit-table th,.audit-table td{min-width:0;padding:10px 8px;font-size:10px}
  .audit-table th:first-child,.audit-table td:first-child{width:34%}
  .audit-table th:nth-child(3),.audit-table td:nth-child(3){width:38%}
  .audit-table th:nth-child(5),.audit-table td:nth-child(5){width:28%}
}

/* v6 iteration 1 — composition and hierarchy */
#stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px}
#opsStatusCards{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:18px}
#stats .metric-card{min-height:116px;padding:18px}
#stats .metric-value{margin-top:16px}
.plan-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.ops-grid{grid-template-columns:1fr;gap:14px}
.capability-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.audit-surface{width:100%}
.page-intro{margin-bottom:24px}
.dashboard-grid{gap:14px}
.surface{box-shadow:0 1px 0 rgba(255,255,255,.025),0 12px 34px rgba(0,0,0,.08)}
@media(max-width:1180px){
  #stats{grid-template-columns:repeat(3,1fr)}
  #opsStatusCards{grid-template-columns:repeat(3,1fr)}
  .plan-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:820px){
  #stats,#opsStatusCards{grid-template-columns:repeat(2,1fr)}
  .capability-list{grid-template-columns:1fr}
}
@media(max-width:520px){
  #stats,#opsStatusCards{grid-template-columns:repeat(2,1fr)}
  .plan-grid{grid-template-columns:1fr}
}

/* v6 iteration 2 — unified iconography and premium control polish */
.ui-icon{width:1em;height:1em;display:block;flex:0 0 auto}
.nav-icon .ui-icon{width:16px;height:16px}
.nav-item{gap:12px;font-weight:700}.nav-icon{font-size:16px}
.brand-mark .ui-icon{width:18px;height:18px;stroke-width:2.1}
.metric-icon .ui-icon{width:15px;height:15px}.metric-icon{border:1px solid rgba(145,165,200,.06)}
.attention-icon .ui-icon{width:17px;height:17px}.row-arrow .ui-icon{width:14px;height:14px;transform:rotate(45deg);color:#657894}
.source-logo .ui-icon{width:17px;height:17px;stroke-width:1.9}.source-logo.facebook .ui-icon,.source-logo.tiktok .ui-icon{fill:currentColor;stroke:none}
.settings-icon .ui-icon{width:18px;height:18px}.utility-link>svg.ui-icon{width:17px;height:17px;padding:2px;border:1px solid var(--border);border-radius:7px;box-sizing:content-box}
.btn [data-icon]>.ui-icon,.btn>span[data-icon] .ui-icon{width:16px;height:16px}
.btn>span[data-icon]{display:inline-grid;place-items:center}
.icon-btn [data-icon],.icon-btn [data-icon] .ui-icon{width:17px;height:17px}.icon-btn [data-icon]{display:grid;place-items:center}
.source-card{transition:border-color .15s ease,background .15s ease,transform .15s ease}.source-card:hover{background:#101a28;border-color:#2b3b52;transform:translateY(-1px)}
.capability-card{transition:border-color .15s ease,background .15s ease}.capability-card:hover{border-color:#30415a;background:#162130}
.data-table tbody tr td:last-child{color:#667a98;font-size:17px}
@media(prefers-reduced-motion:reduce){.source-card:hover{transform:none}}

/* v6 iteration 3 — accessibility, legibility and interaction finish */
:root{--muted:#8997ab}
.metric-note{color:#74859d}.breadcrumb{color:#718097}.meta{color:#74849a}.download-url{color:#71839a}
.data-table tbody tr[role="button"]:focus-visible{outline:2px solid #8ea4ff!important;outline-offset:-2px;background:#121c29}
.mode-card[aria-pressed="true"]{box-shadow:inset 0 0 0 1px rgba(133,158,255,.05)}
.drawer:focus{outline:none}
@media(max-width:520px){.metric-note{font-size:10px;line-height:1.35}.metric-top{line-height:1.35}}
