:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1b2a3b;background:#f4f7fb;font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}input,select{background:#fff;color:#213246;border:1px solid #d6dfeb;border-radius:8px;min-height:36px;padding:7px 10px;min-width:0;width:100%;outline:0}input:focus,select:focus{border-color:#377dea;box-shadow:0 0 0 3px #357de91c}input[readonly]{background:#f1f4f9}input[type=checkbox]{width:16px;height:16px;min-height:16px;accent-color:#2873e5;cursor:pointer}input[type=file]{padding:6px 8px}h1,h2,h3,p{margin-top:0}h1{font-size:1.7rem;font-weight:770;letter-spacing:-.035em;margin-bottom:6px}h2{font-size:1.11rem;margin-bottom:14px;letter-spacing:-.01em}h3{font-size:1rem;margin-top:19px;margin-bottom:12px}.hide{display:none!important}.muted{color:#718095}.small{font-size:.88rem}.tiny{font-size:.78rem}.hint{color:#728196;line-height:1.6;font-size:.9rem}.green-text{color:#159b67}.red-text{color:#df535b}.blue-text{color:#397fe0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap;border-radius:8px;padding:8px 13px;border:1px solid transparent;min-height:35px;font-size:.9rem;font-weight:650;transition:background .12s,transform .1s}.btn:active{transform:translateY(1px)}.btn:disabled{opacity:.45;cursor:not-allowed}.blue{color:#fff;background:#2878df}.blue:hover{background:#1661c9}.green{color:#fff;background:#169b6d}.green:hover{background:#0d865b}.red{background:#e45560;color:#fff}.red:hover{background:#ca3b47}.blue-outline{border-color:#bdd5f9;color:#276bca;background:#f6f9ff}.blue-outline:hover{background:#e4f0ff}.green-outline{border-color:#b5e9d7;color:#138961;background:#f4fff9}.green-outline:hover{background:#e4f9ef}.red-outline{border-color:#f3cbd0;color:#da4753;background:#fff8f8}.red-outline:hover{background:#ffeaed}.ghost{background:white;color:#596980;border-color:#dae2ef}.ghost:hover{background:#f4f7fa}.thin{min-height:30px;padding:5px 9px;font-size:.84rem}.full{width:100%;margin-top:6px}.linkbtn{border:0;background:transparent;color:#acc3dd;cursor:pointer;text-decoration:underline;text-underline-offset:3px}#workspace{display:flex;min-height:100vh}.sidebar{width:236px;min-width:236px;background:#101d30;color:#b0c4dd;padding:24px 14px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:20}.brand{font-size:1.14rem;color:white;font-weight:650;display:flex;align-items:center;gap:5px;white-space:nowrap;letter-spacing:-.03em}.brand strong{color:#69aeff}.brand-icon{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;width:30px;height:30px;margin-right:5px;background:linear-gradient(130deg,#3b89f5,#155fc1);color:white;font-size:12px}.brand.large{font-size:1.7rem;color:#182a40;margin:0 0 22px}.brand.large .brand-icon{width:40px;height:40px;font-size:18px}.sidebar-sub{margin:10px 0 31px 42px}nav{display:flex;flex-direction:column;gap:4px}.nav-item{border:0;text-align:left;background:transparent;color:#acbfd6;border-radius:9px;padding:13px 15px;font-size:.96rem;display:flex;gap:13px;align-items:center}.nav-item:hover{background:#202f45;color:white}.nav-item.active{color:#fff;background:#263e60;border-left:3px solid #55a5ff}.sidebar-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;border-top:1px solid #263953;margin-top:auto;padding:22px 4px 0;font-size:.84rem}.main{flex:1;min-width:0}.topbar{height:62px;border-bottom:1px solid #e5eaf2;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,3vw,40px);font-weight:650}.top-right{display:flex;gap:9px;align-items:center;color:#8493a8;font-size:.82rem;font-weight:500}.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#16aa72}.mobile-menu{display:none}.content{padding:clamp(16px,2.4vw,35px);max-width:1900px;margin:auto}.section-top{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:23px}.section-top p{margin-bottom:0;max-width:900px;line-height:1.5}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:0 0 20px}.stat,.panel{background:#fff;border:1px solid #e5ebf3;border-radius:13px;box-shadow:0 2px 10px rgba(35,55,78,.027)}.stat{padding:23px}.stat-name{color:#718199;font-size:.91rem;font-weight:570}.stat-number{font-size:2.5rem;font-weight:760;letter-spacing:-.07em;line-height:1.5}.panel{padding:23px;margin-bottom:18px;line-height:1.65}.panel p{max-width:1000px}.info-line{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 13px;background:#f5f8fc;border:1px solid #e7edf5;color:#5e6f85;border-radius:8px;margin-top:14px}.kv-list{display:grid;gap:9px}.kv-list>div{display:grid;grid-template-columns:minmax(100px,180px) 1fr;gap:15px;padding:6px 0}.kv-list span{color:#748198}.kv-list strong{overflow-wrap:anywhere;font-weight:600}.badge{display:inline-flex;white-space:nowrap;font-size:.76rem;font-weight:650;padding:4px 8px;border-radius:6px}.badge.ok{background:#e0f8ee;color:#0b8b5c}.badge.bad{background:#ffe7e9;color:#c94550}.badge.unknown,.badge.neutral{background:#edf2f8;color:#6b7b91}.badge.off{background:#fff0de;color:#a77323}.toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;background:white;border:1px solid #e5ebf3;border-radius:11px;padding:12px;margin-bottom:12px}.filterbar{display:flex;gap:9px;align-items:center;margin-bottom:12px;flex-wrap:wrap}.filterbar input[type=search],.filterbar>input:not([type=checkbox]){max-width:320px;flex:1 1 180px}.filterbar select{max-width:180px}.filterbar .tiny{margin-left:auto}.table-wrap{overflow-x:auto;border:1px solid #e0e7f0;border-radius:11px;background:white}.channel-table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:1160px}.channel-table th{background:#f7f9fc;color:#79869a;text-transform:uppercase;letter-spacing:.04em;font-size:.7rem;font-weight:750;text-align:left;padding:12px 8px;white-space:nowrap}.channel-table td{border-top:1px solid #edf0f5;padding:6px 6px;vertical-align:middle}.channel-table tbody tr:hover{background:#f8fbff}.channel-table tbody tr.disabled-row{background:#f9fafc;opacity:.82}.channel-table th:nth-child(1){width:38px;text-align:center}.channel-table th:nth-child(2){width:13%}.channel-table th:nth-child(3){width:23%}.channel-table th:nth-child(4){width:15%}.channel-table th:nth-child(5){width:77px}.channel-table th:nth-child(6){width:103px}.channel-table th:nth-child(7){width:auto}.channel-table td:first-child{text-align:center}.channel-table .cell-input,.channel-table .cell-select{height:32px;min-height:32px;border-color:transparent;background:transparent;font-size:.85rem;width:100%;padding:4px 7px}.channel-table .cell-input:focus,.channel-table .cell-input:hover,.channel-table .cell-select:focus,.channel-table .cell-select:hover{background:white;border-color:#cdd9eb}.channel-table .name-input{font-weight:650}.row-actions{display:flex;justify-content:flex-start;gap:4px;align-items:center;white-space:nowrap}.tiny-btn{min-height:29px;padding:5px 7px;font-size:.77rem;border-radius:6px}.tiny-btn b{font-weight:800;font-size:.93rem}.pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 4px}.pagination-buttons{display:flex;gap:6px}.progress-line{background:white;border:1px solid #d7e5f7;padding:10px 12px;margin:10px 0;border-radius:8px;font-size:.87rem;color:#4978ab}.progress-track{height:5px;background:#e3eaf4;border-radius:20px;margin-top:8px;overflow:hidden}.progress-track>div{height:100%;background:#2878df;width:0;transition:width .2s}.empty{text-align:center;padding:42px 10px!important;color:#8290a4}.tabs{display:flex;overflow-x:auto;gap:4px;border-bottom:1px solid #e0e7f0;margin-bottom:15px}.tab{border:0;border-bottom:3px solid transparent;padding:12px 15px;background:transparent;color:#76849a;font-weight:650;white-space:nowrap}.tab:hover{color:#2878df}.tab.active{color:#2878df;border-bottom-color:#2878df}.tab-panel{max-width:1160px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid .wide{grid-column:1/-1}label{font-size:.86rem;font-weight:600;display:block;color:#526176}label input,label select{display:block;margin-top:7px;font-weight:450}.foot-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.inline-form{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.inline-form input{flex:1 1 220px}.inline-form button{flex:0 0 auto}.option-list{display:flex;gap:15px;flex-wrap:wrap;padding:8px 0}.option-list label{display:flex;align-items:center;gap:9px;font-weight:500}.option-list input{margin:0}.users-list{display:grid;gap:7px}.user-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding:11px;border:1px solid #e4eaf2;border-radius:9px}.user-title{display:flex;align-items:center;gap:9px;min-width:160px}.user-row>input{flex:1 1 170px;width:auto}.user-row>.btn{flex-shrink:0}code{background:#edf2f9;color:#455c7c;padding:2px 5px;border-radius:4px;font-size:.88em}hr{border:0;border-top:1px solid #e4ebf5;margin:26px 0}#toast{position:fixed;z-index:100;bottom:24px;right:24px;max-width:min(440px,90vw);padding:12px 18px;box-shadow:0 9px 38px #0002;background:#156f55;color:#fff;border-radius:10px;opacity:0;pointer-events:none;transform:translateY(20px);transition:.18s}#toast.show{opacity:1;transform:translateY(0)}#toast.error{background:#bd3c4c}.auth-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:25px;background:radial-gradient(circle at 10% 5%,#263c5a,#0d1727 60%)}.auth-card{background:#fff;border-radius:20px;padding:clamp(22px,3vw,40px);width:min(100%,490px);box-shadow:0 16px 55px #0004}.auth-card>.muted{line-height:1.6}.auth-card h2{margin-top:20px}.auth-card label{margin:12px 0}.auth-card input{height:43px}dialog{border:0;border-radius:14px;padding:0;box-shadow:0 25px 90px #0005;background:#fff;color:#1b2a3b;max-width:calc(100vw - 20px);width:min(760px,94vw);max-height:92vh}dialog::backdrop{background:rgba(12,27,47,.57);backdrop-filter:blur(2px)}.modal-shell{padding:23px;max-height:90vh;overflow:auto}.modal-header{display:flex;align-items:start;justify-content:space-between;gap:15px;margin-bottom:13px}.modal-header h2{font-size:1.2rem;margin:3px 0}.icon-button{border:0;background:#f0f4fa;width:32px;height:32px;border-radius:7px;color:#526782}.modal-form{display:grid;gap:12px}.modal-form label{display:block}.modal-form input,.modal-form select{width:100%}.copyline{display:flex;gap:8px;margin:7px 0 16px}.copyline input{flex:1;min-width:0;margin:0}.import-header{display:flex;justify-content:space-between;align-items:center;gap:10px}.import-header h3{margin-top:3px}.import-items{border:1px solid #e4e9f1;border-radius:8px;overflow-y:auto;max-height:41vh}.import-row{display:flex;gap:11px;align-items:center;border-bottom:1px solid #e9edf3;padding:8px 10px;cursor:pointer;font-weight:500}.import-row:last-child{border-bottom:0}.import-row:hover{background:#f5f9fe}.import-row>input{flex:none}.import-name{width:37%;min-width:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:#304257}.import-name small{display:block;font-weight:400;color:#8996a8;overflow:hidden;text-overflow:ellipsis}.import-url{flex:1;color:#8b98a9;font-size:.78rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.log{overflow:auto;white-space:pre-wrap;word-wrap:break-word;background:#0f1c2b;border-radius:9px;color:#a6d0f5;max-height:420px;min-height:80px;padding:15px;line-height:1.5;font-size:.79rem}
@media(max-width:1500px){.row-actions .tiny-btn span{display:none}.channel-table th:nth-child(2){width:15%}.channel-table th:nth-child(3){width:27%}.channel-table th:nth-child(4){width:17%}.channel-table{min-width:980px}.row-actions{justify-content:flex-start}.row-actions .tiny-btn{padding:5px 9px}}
@media(max-width:1120px){.sidebar{width:195px;min-width:195px}.content{padding:18px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbar{gap:6px}}
@media(max-width:750px){.sidebar{position:fixed;left:0;transform:translateX(-100%);transition:transform .2s;width:245px;min-width:245px;box-shadow:20px 0 45px #10182826}.sidebar.open{transform:translateX(0)}.mobile-menu{display:inline-flex;align-items:center;justify-content:center;margin-right:10px}.topbar{justify-content:flex-start;padding:0 15px}.top-right{margin-left:auto}.section-top{align-items:flex-start;flex-direction:column}.section-top>.btn{margin-top:3px}.content{padding:14px}.stats{gap:9px}.stat{padding:16px}.stat-number{font-size:2rem}.stat-name{font-size:.82rem}.panel{padding:16px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.filterbar .tiny{margin-left:0}.filterbar{align-items:stretch}.filterbar .btn{flex:1}.kv-list>div{grid-template-columns:1fr;gap:2px}.inline-form button{width:100%}.toolbar .btn{flex:1 1 auto}.copyline{flex-wrap:wrap}.copyline button{width:100%}.import-name{width:45%}.top-right span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:0s!important;animation-duration:0s!important}}
