*{box-sizing:border-box}:root{font-family:Inter,system-ui,sans-serif;color:#f5f5f5;background:#050505}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 80% 0,rgba(173,7,20,.12),transparent 35%),#050505}button,input,select,textarea{font:inherit}button{cursor:pointer}.loading,.login{min-height:100vh;display:grid;place-items:center}.login{padding:24px}.login form{width:min(420px,100%);padding:36px;border:1px solid #2a2a2a;border-radius:22px;background:#101012;box-shadow:0 30px 90px #000}.logo{width:66px;height:66px;margin:auto;display:grid;place-items:center;border-radius:20px;background:#b20710;font-size:26px;font-weight:950}.login h1,.login p{text-align:center}.login h1{margin:18px 0 0}.login p{color:#888}.login label,.modal label{display:grid;gap:7px;margin-top:16px;color:#ccc;font-size:13px;font-weight:700}input,select,textarea{width:100%;padding:12px;border:1px solid #393939;border-radius:10px;color:#fff;background:#111;outline:none}input:focus,select:focus,textarea:focus{border-color:#e50914}.login form>button{width:100%;margin-top:24px;padding:13px;border:0;border-radius:11px;color:#fff;background:#b20710;font-weight:900}.error,.info{margin:14px 0;padding:11px;border-radius:9px}.error{background:#4a1116;color:#ffc7cc}.info{background:#12331d;color:#bfffcf}.shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}aside{position:sticky;top:0;height:100vh;padding:20px 14px;display:flex;flex-direction:column;border-right:1px solid #242424;background:#080809}.brand{padding:6px 8px 24px;display:flex;align-items:center;gap:12px}.brand>b{width:45px;height:45px;display:grid;place-items:center;border-radius:13px;background:#b20710}.brand strong,.brand small{display:block}.brand small{margin-top:3px;color:#777;font-size:10px}nav{display:grid;gap:4px}nav a,.logout{min-height:44px;padding:0 13px;display:flex;align-items:center;gap:11px;border:1px solid transparent;border-radius:10px;color:#aaa;text-decoration:none;background:transparent}nav a:hover,nav a.active{color:#fff;background:#241013;border-color:#3c1518}.logout{margin-top:auto;width:100%}main{min-width:0;padding:30px}header{margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:20px}header h1{margin:2px 0 5px;font-size:31px}header p{margin:0;color:#888}em{color:#e50914;font-style:normal;font-size:10px;font-weight:950;letter-spacing:1.5px}.primary,.secondary{min-height:42px;padding:0 16px;display:inline-flex;align-items:center;gap:8px;border-radius:10px;color:#fff;font-weight:850}.primary{border:1px solid #e50914;background:#b20710}.secondary{border:1px solid #3b3b3d;background:#19191c}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.cards article{min-height:126px;padding:20px;display:flex;align-items:center;gap:15px;border:1px solid #29292b;border-radius:15px;background:#111114}.cards svg{padding:12px;width:48px;height:48px;border-radius:14px;color:#ff5a64;background:#2b1114}.cards span,.cards strong{display:block}.cards span{color:#949499;font-size:12px}.cards strong{margin-top:5px;font-size:29px}.panel{margin-top:18px;border:1px solid #29292b;border-radius:15px;overflow:hidden;background:#111114}.panelHead{padding:17px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #29292b}.panelHead h2{margin:3px 0}.live{color:#ff5b65;font-size:11px}.empty{min-height:260px;padding:30px;display:grid;place-items:center;color:#777}.empty.big{min-height:420px;align-content:center;gap:9px}.row{padding:14px 20px;display:grid;grid-template-columns:12px 1fr 1.5fr 100px;align-items:center;gap:12px;border-bottom:1px solid #242426}.row i{width:8px;height:8px;border-radius:50%;background:#26d367;box-shadow:0 0 12px #26d367}.row strong,.row small{display:block}.row small{margin-top:3px;color:#777}.toolbar{margin-bottom:14px;display:flex;align-items:center;justify-content:space-between}.search{width:min(440px,100%);display:flex;align-items:center;gap:9px;padding-left:13px;border:1px solid #333;border-radius:11px;background:#111114}.search input{border:0;background:transparent}.table{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{padding:15px 16px;text-align:left;border-bottom:1px solid #252528;white-space:nowrap}th{color:#777;font-size:10px;text-transform:uppercase}td{color:#ccc;font-size:13px}.mono{font-family:Consolas,monospace}.badge{padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900;text-transform:uppercase}.badge.active{color:#7dff9f;background:#12311d}.badge.pending{color:#ffe68d;background:#322b10}.badge.blocked,.badge.expired{color:#ff8e96;background:#371418}.backdrop{position:fixed;inset:0;z-index:100;padding:24px;display:grid;place-items:center;background:#000c}.modal{width:min(590px,100%);max-height:90vh;overflow:auto;padding:24px;border:1px solid #343438;border-radius:17px;background:#121215}.modalHead,.actions{display:flex;align-items:center;justify-content:space-between}.modalHead h2{margin:4px 0}.modalHead button{width:36px;height:36px;border:0;border-radius:10px;color:#fff;background:#242428;font-size:24px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.actions{margin-top:22px;justify-content:flex-end;gap:10px}textarea{min-height:88px}@media(max-width:980px){.shell{grid-template-columns:78px 1fr}.brand div,nav span{display:none}.brand,nav a{justify-content:center}.cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.shell{display:block}aside{position:static;height:auto}.brand,.logout{display:none}nav{grid-template-columns:repeat(5,1fr)}main{padding:18px 12px 90px}.cards{grid-template-columns:1fr}.row{grid-template-columns:12px 1fr}.row>div:nth-child(3),.row>b{grid-column:2}.grid{grid-template-columns:1fr}}.rowActions{display:flex;gap:7px}.iconButton{width:35px;height:35px;display:grid;place-items:center;border:1px solid #3b3b3d;border-radius:9px;color:#fff;background:#19191c}.iconButton:hover{border-color:#e50914;background:#351014}.iconButton.danger{color:#ff858d}.check{display:flex!important;grid-template-columns:20px 1fr!important;align-items:center;gap:9px}.check input{width:18px;height:18px}.clientModal{width:min(760px,100%)}.categoryTabs{margin-bottom:16px;display:flex;gap:8px}.categoryTab{min-width:120px;height:44px;border:1px solid #343438;border-radius:10px;color:#bbb;background:#151518;font-weight:850}.categoryTab.active{border-color:#e50914;color:#fff;background:#3b1014;box-shadow:inset 0 -3px #e50914}.categoryGrid{display:grid;grid-template-columns:minmax(420px,1.1fr) minmax(360px,.9fr);gap:18px}.categoryEditor,.aliasPanel,.simulationPanel{margin-top:0}.categoryAdd,.aliasForm{padding:14px;display:grid;grid-template-columns:1fr auto;gap:9px;border-bottom:1px solid #29292b}.aliasForm{grid-template-columns:150px 1fr auto}.categoryOrderList{padding:10px}.categoryOrderItem{min-height:58px;padding:8px 10px;display:flex;align-items:center;gap:10px;border:1px solid #29292d;border-radius:10px;background:#17171a;margin-bottom:7px}.categoryOrderItem.hidden{opacity:.48}.categoryPosition{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;color:#ff7a83;background:#321216;font-weight:900}.categoryName{min-width:0;flex:1}.categoryName strong,.categoryName small{display:block}.categoryName small{margin-top:3px;color:#777;font-size:10px}.categoryActions{display:flex;gap:5px}.categoryActions button{width:32px;height:32px;display:grid;place-items:center;border:1px solid #3a3a3d;border-radius:8px;color:#ddd;background:#202024}.categoryActions button:hover{border-color:#e50914}.categoryActions button.danger{color:#ff7d86}.rawOrderBox{padding:15px;border-top:1px solid #29292b}.rawOrderBox label{display:grid;gap:7px;color:#ccc;font-size:13px;font-weight:700}.rawOrderBox textarea{min-height:210px;font-family:Consolas,monospace;line-height:1.55}.rawOrderBox p{margin:8px 0 0;color:#777;font-size:11px}.aliasGroups{max-height:360px;overflow:auto;padding:10px 14px 14px}.aliasGroup{padding:10px 0;border-bottom:1px solid #252528}.aliasGroup>strong{font-size:13px}.aliasChips{margin-top:7px;display:flex;flex-wrap:wrap;gap:6px}.aliasChips button{padding:6px 8px;border:1px solid #3a2a2c;border-radius:999px;color:#ddd;background:#241416;font-size:10px}.aliasChips small{color:#666}.simulationPanel{margin-top:18px}.simulationContent{padding:14px}.simulationContent label{display:grid;gap:7px;color:#ccc;font-size:13px;font-weight:700}.simulationContent textarea{min-height:130px}.simulationResult{margin-top:14px;padding:13px;border:1px solid #2d2d31;border-radius:11px;background:#0d0d0f}.simulationResult>strong{display:block;margin-bottom:9px}.simulationResult>p{color:#777;font-size:12px}.simulationResult>div{padding:8px 4px;display:flex;align-items:center;gap:9px;border-bottom:1px solid #242427;font-size:12px}.simulationResult span{width:24px;height:24px;display:grid;place-items:center;border-radius:7px;color:#ff7a83;background:#301216;font-weight:900}@media(max-width:1100px){.categoryGrid{grid-template-columns:1fr}.aliasForm{grid-template-columns:1fr 1fr auto}}@media(max-width:650px){.categoryTabs{overflow:auto}.categoryTab{min-width:100px}.categoryAdd,.aliasForm{grid-template-columns:1fr}.categoryOrderItem{align-items:flex-start;flex-wrap:wrap}.categoryActions{width:100%;justify-content:flex-end}}.healthBadge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900;text-transform:uppercase}.healthBadge.healthy{color:#7dff9f;background:#12311d}.healthBadge.warning{color:#ffe68d;background:#322b10}.healthBadge.problem{color:#ff8e96;background:#371418}.healthBadge.checking{color:#8fdcff;background:#102b36}.healthBadge.unknown{color:#aaa;background:#29292d}.healthDetail{display:block;margin-top:5px;color:#777;font-size:10px}.healthButton{color:#8fdcff}.healthButton:disabled{cursor:wait;opacity:.55}.watchingPanel{margin-top:0}.watchingCounter{display:flex;align-items:center;gap:8px;color:#ff767f;font-size:12px;font-weight:900}.watchingPulse{width:9px;height:9px;border-radius:50%;background:#e50914;box-shadow:0 0 #e509148c;animation:watchingPulse 1.7s infinite}.watchingEmpty svg{color:#5f5f65}.watchingEmpty strong{color:#eee;font-size:18px}.watchingEmpty span{color:#777;font-size:13px}.watchingTable th:last-child,.watchingTable td:last-child{text-align:right}.watchingDevice,.watchingContent{display:flex;align-items:center;gap:11px}.watchingDeviceIcon,.watchingContentIcon{width:38px;height:38px;display:grid;place-items:center;border:1px solid #303035;border-radius:11px;color:#ff6973;background:#241114}.watchingContentIcon{color:#d7d7dc;background:#1b1b1f}.watchingDevice strong,.watchingDevice small,.watchingContent strong,.watchingContent small{display:block}.watchingDevice strong,.watchingContent strong{color:#f4f4f5;font-size:13px}.watchingDevice small,.watchingContent small{margin-top:4px;color:#777;font-size:10px}.watchingTime{display:inline-block;min-width:90px;color:#f2f2f3;font-family:Consolas,monospace;font-size:15px;font-weight:900;letter-spacing:.5px}.connectionHealth{min-width:94px;padding:7px 11px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:999px;font-size:10px;font-weight:950;text-transform:uppercase}.connectionHealthDot{width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 10px currentColor}.connectionHealth.excellent{color:#70f99a;background:#12331d}.connectionHealth.stable{color:#ffe075;background:#342c10}.connectionHealth.poor{color:#ff7f88;background:#3a1318}.spin{animation:spin 1s linear infinite}@keyframes watchingPulse{0%{box-shadow:0 0 #e509148c}70%{box-shadow:0 0 0 10px #e5091400}to{box-shadow:0 0 #e5091400}}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:760px){.watchingTable th:nth-child(3),.watchingTable td:nth-child(3){display:none}.watchingDeviceIcon,.watchingContentIcon{width:32px;height:32px}.connectionHealth{min-width:auto;padding:7px 9px}.connectionHealth{font-size:0}.connectionHealthDot{margin:0}}.communicationGrid{display:grid;grid-template-columns:minmax(320px,.75fr) minmax(420px,1.25fr);gap:18px}.communicationSettings,.communicationPreview{margin-top:0}.communicationSettingsBody{padding:20px;display:grid;gap:18px}.communicationSettingsBody label{display:grid;gap:10px;color:#ccc;font-size:13px}.communicationSettingsBody input[type=range]{padding:0;accent-color:#e50914}.communicationSettingsBody small{color:#777}.bannerPreviewFrame{position:relative;min-height:250px;overflow:hidden;display:grid;place-items:center;background:#050505}.bannerPreviewFrame img{width:100%;height:250px;object-fit:contain}.bannerPreviewTitle{position:absolute;left:0;right:0;bottom:0;padding:28px 20px 15px;color:#fff;background:linear-gradient(transparent,#000000eb);font-size:20px;font-weight:950}.bannerPreviewEmpty{display:grid;place-items:center;gap:9px;color:#68686e}.bannerThumb{width:110px;height:62px;object-fit:cover;border-radius:8px;border:1px solid #343438}.bannerModal{width:min(720px,100%)}.uploadField{min-height:46px;padding:0 14px;position:relative;display:flex;align-items:center;gap:9px;border:1px dashed #4a4a4f;border-radius:10px;color:#ddd;background:#17171b;overflow:hidden}.uploadField input{position:absolute;inset:0;opacity:0;cursor:pointer}.bannerFormPreview{width:100%;max-height:260px;object-fit:contain;border:1px solid #303034;border-radius:12px;background:#050505}.bannerTable td:first-child{padding-top:8px;padding-bottom:8px}@media(max-width:1000px){.communicationGrid{grid-template-columns:1fr}}@media(max-width:650px){.bannerThumb{width:82px;height:46px}.bannerTable th:nth-child(3),.bannerTable td:nth-child(3),.bannerTable th:nth-child(4),.bannerTable td:nth-child(4){display:none}}
