:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#17342d;background:#f5f7f5;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;background:white;border:1px solid #d8e1dc;border-radius:9px;padding:10px 16px;color:inherit;font-weight:600}button:hover{background:#edf5f0}button:disabled{opacity:.5;cursor:wait}button.primary{background:#126449;border-color:#126449;color:white}input,select{width:100%;background:#fff;border:1px solid #d7e0da;border-radius:8px;padding:10px 12px;color:#17342d}input:focus,select:focus,button:focus-visible{outline:3px solid #a7d8bf;outline-offset:2px}label{display:block;font-size:12px;color:#60766c}label input,label select{display:block;margin-top:7px;font-size:14px}.brand{font-weight:800;letter-spacing:1.5px;display:flex;align-items:center;gap:12px;font-size:14px}.logo{display:grid;place-items:center;background:#c8f1d2;color:#126449;border-radius:12px;width:43px;height:43px;font-size:27px}.eyebrow{font-size:10px;letter-spacing:2.1px;color:#759083;font-weight:700;margin:0 0 12px}h1{font-size:30px;font-weight:650;letter-spacing:-1px;margin:0}h2{font-size:18px;font-weight:650;margin:0}h3{font-size:16px}aside{width:224px;background:#fff;position:fixed;inset:0 auto 0 0;padding:32px 22px;border-right:1px solid #e4eae6}.nav-label{font-size:11px;color:#8a9b92;margin:48px 10px 16px}nav{display:grid;gap:7px}nav button{text-align:left;border:0;background:transparent;font-size:14px;padding:14px}nav .selected{color:#126449;background:#e9f4ed}.side-foot{position:absolute;bottom:25px;font-size:11px;color:#476e5c;line-height:1.8}.side-foot small{display:block;color:#90a096;margin:8px 0 0 13px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#39a173;margin-right:7px}main{margin-left:224px;padding:34px 42px;max-width:1650px}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.user{display:flex;align-items:center;gap:15px;color:#75867c}.user button{padding:7px 12px}.filters{display:flex;align-items:end;gap:14px;padding:20px;background:white;border:1px solid #e3eae5;border-radius:12px;flex-wrap:wrap}.filters label:first-child{min-width:210px}.filters label{min-width:130px}.filters button{height:40px}.meta-line{display:flex;justify-content:space-between;color:#87978d;font-size:11px;margin:20px 2px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.card,.panel{background:white;border:1px solid #e1e9e3;border-radius:13px}.card{padding:24px}.card p{margin:0 0 15px;color:#6e8377;font-size:12px}.card strong{font-size:36px;letter-spacing:-1.5px;font-weight:600}.card small{display:block;margin-top:13px;color:#91a096;font-size:11px}.card:first-child{background:#155d46;color:white;border-color:#155d46}.card:first-child p,.card:first-child small{color:#c0dacc}.panel{padding:24px;margin:20px 0;overflow:auto}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.muted{color:#7b9083;line-height:1.7;font-size:12px}.chart{width:100%;height:230px}.chart text{fill:#83998b;font-size:11px}.legend{font-size:11px;color:#758b7d;display:flex;gap:15px}.legend i{display:inline-block;width:9px;height:9px;background:#23805b;border-radius:50%;margin-right:5px}.legend i.light{background:#b3dab8}.grid-two{display:grid;grid-template-columns:1.25fr 1fr;gap:20px}.grid-two .panel{margin-top:0}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{font-weight:500;color:#84988a;border-bottom:1px solid #e5ebe6;padding:14px 12px;background:#f8faf8;white-space:nowrap}td{padding:15px 12px;border-bottom:1px solid #eef1ee}tr:last-child td{border-bottom:0}.heat{border-radius:5px;padding:7px 10px;min-width:65px;display:inline-block;text-align:center}.empty{padding:45px 20px;text-align:center;color:#809688;line-height:1.8}.pill{padding:5px 9px;border-radius:20px;background:#eaf4ed;color:#398060;font-size:11px;white-space:nowrap}.warn{background:#fff4df;color:#997024}#notice:not(:empty){padding:14px 18px;border-radius:9px;background:#fff0df;color:#94672e;margin-top:18px}footer{font-size:11px;color:#93a399;margin:28px 0}.connections{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.connection{padding:24px}.connection-top{display:flex;justify-content:space-between;gap:15px}.connection-actions{display:flex;gap:8px;margin-top:20px}.connection .muted{min-height:40px}.connection h3{margin-top:0}.key-line{font-family:monospace;font-size:12px;margin:8px 0;color:#718b7c}dialog{width:500px;max-width:95vw;border:1px solid #dce6df;border-radius:16px;padding:28px;box-shadow:0 30px 90px #001b1c33}dialog::backdrop{background:#132e2866}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}dialog label{margin:15px 0}dialog button.primary{width:100%}#form-error,#error{color:#b44539;font-size:12px}.login-page{background:radial-gradient(ellipse at 20% 10%,#d7eedc,transparent 50%),#f3f7f3;display:grid;place-items:center;min-height:100vh}.login-card{margin:0;padding:45px;background:#ffffffee;border:1px solid #e0e9e1;border-radius:20px;width:470px;max-width:94vw;box-shadow:0 30px 100px #234d3510}.login-card .brand{margin-bottom:45px}.login-card h1{font-size:28px}.login-card form{margin:28px 0}.login-card label{margin:18px 0}.login-card button{width:100%;margin-top:5px}.login-card small{font-size:11px;color:#8ca18f}@media(max-width:1100px){main{padding:26px}aside{width:190px;padding:25px 15px}main{margin-left:190px}.stats{grid-template-columns:repeat(2,1fr)}.grid-two{grid-template-columns:1fr}}@media(max-width:720px){aside{position:static;width:auto;padding:18px}.brand br,.nav-label,.side-foot{display:none}nav{display:flex;overflow-x:auto;margin-top:15px}nav button{white-space:nowrap;padding:10px}main{margin:0;padding:20px}h1{font-size:25px}.connections{grid-template-columns:1fr}.filters label{flex:1;min-width:120px}.filters label:first-child{min-width:100%}.card{padding:18px}.card strong{font-size:29px}.meta-line{gap:15px}header{align-items:start}.user{font-size:11px;gap:8px}}
/* Keep campaign inputs compact and the environment choice beside its label. */
#campaign-form {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:end}
#campaign-form input[type=checkbox] {width:auto;display:inline-block;margin:0 8px 0 0}
#campaign-form label:has(input[type=checkbox]) {display:flex;align-items:center;grid-column:1/3;min-height:42px}
#campaign-error {grid-column:1/-1;color:#a73535;margin:0}
@media(max-width:850px){#campaign-form{grid-template-columns:1fr}#campaign-form label:has(input[type=checkbox]){grid-column:auto}}
