:root{--bg:#f5f7f6;--surface:#fff;--ink:#17211c;--muted:#68746d;--line:#e1e7e3;--green:#087a56;--green-dark:#07543e;--green-soft:#e9f7f0;--blue:#0866ff;--danger:#b93838;--shadow:0 16px 50px rgba(24,43,33,.08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.hidden{display:none!important}button,input,select{font:inherit}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(28px,calc((100vw - 1320px)/2));position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:12px}.brand-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#e9f9f0}.brand-icon img{width:30px;height:30px}.brand strong{font-size:19px;letter-spacing:-.02em}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.topbar-right{display:flex;align-items:center;gap:14px}.topbar select{border:1px solid var(--line);border-radius:9px;padding:9px 30px 9px 11px;background:#fff;color:var(--ink)}.health{display:flex;align-items:center;gap:7px;color:#116b4d;font-weight:700;font-size:12px}.health i{width:8px;height:8px;border-radius:50%;background:#21b875;box-shadow:0 0 0 4px #21b87519}.page{max-width:1320px;margin:0 auto;padding:46px 28px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:26px}.kicker{display:block;color:var(--green);letter-spacing:.16em;font-size:10px;font-weight:800;margin-bottom:8px}.page-head h1{margin:0;font-size:36px;letter-spacing:-.045em}.page-head p,.modal-head p{margin:7px 0 0;color:var(--muted);font-size:14px}.btn{border:0;border-radius:9px;height:42px;padding:0 16px;font-weight:750;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn.primary{background:var(--green-dark);color:#fff}.btn.secondary{background:#eef2ef;color:var(--ink)}.btn.danger{background:#fff0f0;color:var(--danger)}.btn:hover{filter:brightness(1.04)}.surface{background:var(--surface);border:1px solid var(--line);border-radius:15px;box-shadow:0 3px 16px rgba(24,43,33,.03);overflow:visible}.list-head,.channel-row{display:grid;grid-template-columns:minmax(260px,1.5fr) minmax(160px,.8fr) minmax(130px,.65fr) minmax(130px,.65fr) 300px;gap:18px;align-items:center}.list-head{padding:13px 22px;color:#86918b;background:#fafbfa;border-bottom:1px solid var(--line);font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.channel-row{padding:19px 22px;border-bottom:1px solid var(--line);position:relative}.channel-row:last-child{border-bottom:0}.channel-identity{display:flex;align-items:center;gap:13px;min-width:0}.channel-logo{width:43px;height:43px;border-radius:12px;background:#f0f5f2;display:grid;place-items:center;flex:0 0 auto}.channel-logo img{width:29px;max-height:28px}.channel-name{font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.channel-id{color:#929c96;font-size:10px;margin-top:4px;font-family:ui-monospace,monospace}.provider-name{font-size:13px;font-weight:700}.cell-sub{display:block;color:var(--muted);font-size:11px;margin-top:3px}.status{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:#f0f3f1;color:#657169;font-size:10px;font-weight:800}.status.connected{background:#e6f7ee;color:#0b7952}.status i{width:6px;height:6px;border-radius:50%;background:currentColor}.row-actions{display:flex;justify-content:flex-end;gap:8px}.row-actions .btn{height:36px;padding:0 12px}.actions-menu{position:relative}.actions-menu summary{list-style:none;height:36px;padding:0 13px;border-radius:9px;border:1px solid var(--line);display:flex;align-items:center;gap:7px;font-size:12px;font-weight:750;cursor:pointer;background:#fff}.actions-menu summary::-webkit-details-marker{display:none}.actions-popover{position:absolute;right:0;top:43px;width:220px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);z-index:30}.actions-popover button{width:100%;border:0;background:transparent;text-align:left;padding:10px;border-radius:7px;color:var(--ink);font-size:12px;cursor:pointer}.actions-popover button:hover{background:#f1f5f2}.actions-popover hr{border:0;border-top:1px solid var(--line);margin:5px}.empty{padding:80px 24px;text-align:center}.empty img{width:58px}.empty h2{font-size:19px;margin:18px 0 7px}.empty p{color:var(--muted);font-size:13px;margin:0 0 20px}dialog{border:0;border-radius:16px;padding:25px;width:min(560px,calc(100% - 28px));box-shadow:0 28px 100px #091b1260;color:var(--ink)}dialog::backdrop{background:#10231b99;backdrop-filter:blur(4px)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.modal-head h2{margin:0;font-size:22px;letter-spacing:-.025em}.close{border:0;background:#f0f3f1;width:34px;height:34px;border-radius:9px;font-size:21px;cursor:pointer}.field{display:grid;gap:7px;margin:14px 0;color:#445049;font-size:12px;font-weight:750}.field input,.field select{width:100%;height:43px;border:1px solid var(--line);border-radius:9px;padding:0 12px;background:#fff;color:var(--ink);outline:none}.field input:focus,.field select:focus{border-color:#59a98b;box-shadow:0 0 0 3px #087a5612}.field-row{display:grid;grid-template-columns:1fr 130px;gap:12px}.color-field input{padding:5px}.provider-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.provider-choice label{cursor:pointer}.provider-choice input{position:absolute;opacity:0}.provider-choice span{display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:13px}.provider-choice img{width:36px;max-height:34px;grid-row:1/3}.provider-choice b{font-size:13px}.provider-choice small{color:var(--muted);font-size:10px}.provider-choice input:checked+span{border-color:#23956d;background:#effaf5;box-shadow:0 0 0 2px #23956d14}.meta-fields{border-top:1px solid var(--line);margin-top:17px;padding-top:4px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.info{background:#f2f7f4;border-radius:9px;padding:11px;color:#56645c;font-size:11px;line-height:1.45}.department-list{display:grid;gap:8px;margin-bottom:20px}.department-item{border:1px solid var(--line);border-radius:10px;padding:12px;display:flex;align-items:center;gap:10px}.department-item i{width:9px;height:9px;border-radius:50%}.department-item b{font-size:13px}.department-create{border-top:1px solid var(--line);padding-top:10px;display:grid;grid-template-columns:1fr 100px auto;gap:10px;align-items:end}.department-create .field{margin:0}.qr-content{text-align:center;padding:20px;color:var(--muted)}.qr-content img{width:min(330px,100%);border-radius:12px}.credentials-dialog{width:min(700px,calc(100% - 28px))}.credential-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.credential-item{padding:11px 12px;background:#f6f8f7;border:1px solid var(--line);border-radius:9px;min-width:0}.credential-item.wide{grid-column:1/-1}.credential-item span{display:block;color:#849088;font-size:9px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;margin-bottom:5px}.credential-item code{font-size:11px;word-break:break-all}.auth-screen{min-height:100vh;display:grid;place-items:center;background:#0a2418}.auth-card{width:360px;background:#fff;padding:36px;border-radius:16px;display:grid;gap:12px}.auth-card img{width:45px}.auth-card h1{margin:4px 0 0}.auth-card p{margin:0;color:var(--muted)}.auth-card input{height:44px;border:1px solid var(--line);border-radius:9px;padding:0 12px}.auth-card button{height:44px;border:0;border-radius:9px;background:var(--green-dark);color:#fff;font-weight:800}#toast{position:fixed;right:24px;bottom:24px;background:#122a1e;color:#fff;padding:12px 16px;border-radius:10px;opacity:0;transform:translateY(8px);transition:.2s;z-index:100}#toast.show{opacity:1;transform:none}@media(max-width:950px){.list-head{display:none}.channel-row{grid-template-columns:1fr 1fr}.row-actions{grid-column:1/-1;justify-content:flex-start}.page{padding:28px 16px}.page-head{align-items:flex-start}.topbar{padding:0 16px}}@media(max-width:600px){.channel-row{grid-template-columns:1fr}.row-actions{grid-column:auto;flex-wrap:wrap}.provider-choice,.field-row,.credential-grid,.department-create{grid-template-columns:1fr}.credential-item.wide{grid-column:auto}.page-head{gap:20px}.page-head h1{font-size:30px}.topbar select{display:none}}
