:root { color-scheme: dark; --bg:#07101e; --panel:#101d30; --border:#27364b; --ink:#ecf4fe; --muted:#9aadc4; --accent:#59e4c8; --accent2:#60b9ff; --quiet:#19283e; --radius:15px; --shadow:0 15px 35px rgba(0,0,0,.16); }
    *{box-sizing:border-box} html{min-height:100%;background:var(--bg)} body{margin:0;min-height:100vh; font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ink);background:radial-gradient(ellipse 65% 65% at 88% -10%,rgba(29,107,137,.27),transparent 60%),radial-gradient(ellipse 43% 45% at 0% 100%,rgba(30,103,97,.10),transparent 75%),var(--bg)}
    a{color:inherit}button, input,select{font:inherit} button{cursor:pointer} :focus-visible{outline:2px solid var(--accent);outline-offset:3px} .wrap{max-width:1720px;margin:auto;padding:18px 22px 13px}
    header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:20px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none}.brand-mark{width:39px;height:39px;display:grid;place-items:center;border:1px solid rgba(89,228,200,.5);border-radius:12px;background:linear-gradient(135deg,rgba(89,228,200,.2),rgba(96,185,255,.09));color:var(--accent);font-weight:900;font-size:22px;line-height:1}.wordmark{font-weight:850;letter-spacing:-.045em;font-size:23px;line-height:1}.wordmark b{color:var(--accent);font-weight:850}.wordmark em{font-size:12px;color:#0a1a28;font-style:normal;letter-spacing:.08em;background:var(--accent);padding:3px 6px;border-radius:4px;margin-left:5px;vertical-align:4px}.tagline{font-size:11px;color:var(--muted);letter-spacing:.1em;margin-top:5px;font-weight:650}.hdr-right{display:flex;gap:10px;align-items:center}.clock{font-variant-numeric:tabular-nums;color:var(--muted);font-size:12px;letter-spacing:.02em}.hbadge{border:1px solid var(--border);background:rgba(20,39,57,.75);padding:8px 10px;border-radius:99px;color:var(--muted);font-size:11px;font-weight:750}.hbadge i{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);margin-right:6px;vertical-align:1px}
    .brand-logo{display:block;width:auto;height:39px;max-width:45vw;object-fit:contain}
    .hero{display:grid;grid-template-columns:1.05fr 1.36fr 1.26fr;align-items:stretch;gap:11px;margin-bottom:16px}.hero-box{min-width:0;border:1px solid var(--border);border-radius:var(--radius);background:linear-gradient(115deg,rgba(23,42,61,.96),rgba(13,26,45,.96));box-shadow:var(--shadow);padding:15px 16px;min-height:111px}.intro{background:linear-gradient(118deg,rgba(22,67,71,.82),rgba(16,34,55,.94) 66%);border-color:#2e5a61}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.16em;font-weight:800;color:var(--accent);margin:0 0 6px}.intro h1{font-size:23px;letter-spacing:-.04em;line-height:1.13;margin:0 0 6px;font-weight:820}.intro p{margin:0;font-size:12px;line-height:1.4;color:#adc5d6}.hero-title{font-size:11px;font-weight:800;margin:0 0 10px;color:#bbcee1;display:flex;justify-content:space-between;align-items:center}.hero-title small{font-size:10px;color:#809ab2;font-weight:500}
    .lookup-line{display:flex;gap:7px}.lookup-line input,.lookup-line select{height:35px;min-width:0;border-radius:9px;border:1px solid #34475d;background:#091526;color:#eaf7fa;outline:none}.lookup-line input:focus,.lookup-line select:focus{border-color:var(--accent)}.lookup-line input{flex:1;padding:0 11px;font-size:12px}.lookup-line select{width:122px;padding:0 8px;font-size:11px}.lookup-line button{height:35px;padding:0 14px;border:0;border-radius:9px;background:var(--accent);color:#092626;font-size:11px;font-weight:850;white-space:nowrap}.lookup-hint{font-size:10px;color:var(--muted);margin:7px 0 0}.iprow{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ip-tile{border:1px solid #33475b;border-radius:10px;background:#0a1727;display:flex;flex-direction:column;justify-content:center;min-width:0;padding:9px 9px 8px;text-align:left;cursor:pointer;transition:border-color .15s}.ip-tile:hover{border-color:var(--accent)}.ip-tile small{display:flex;justify-content:space-between;gap:4px;color:var(--muted);text-transform:uppercase;font-size:9px;font-weight:760;letter-spacing:.07em}.ip-tile .value{margin-top:5px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:780;color:var(--accent2);font-variant-numeric:tabular-nums}.ip-tile:first-child .value{color:var(--accent)}
    .section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;gap:15px}.section-title{display:flex;align-items:center;gap:8px;color:#dce9f4;font-size:12px;font-weight:750}.section-title i{width:7px;height:7px;border-radius:50%;background:var(--accent);display:inline-block}.section-title span{color:#7f98b0;font-size:11px;font-weight:500}.filter{width:220px;height:31px;display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:9px;padding:0 9px;background:#0d192a;color:#7e94ad}.filter input{width:100%;border:0;outline:0;color:var(--ink);background:transparent;font-size:11px}.filter input::placeholder{color:#7c91a8}.filter kbd{border:1px solid #34455c;border-radius:4px;padding:1px 4px;font-size:10px}
    .dashboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.panel{min-width:0;min-height:245px;border:1px solid var(--border);background:linear-gradient(158deg,rgba(18,33,52,.98),rgba(13,25,42,.98));border-radius:var(--radius);padding:13px 12px 12px;box-shadow:var(--shadow)}.panel[hidden],.link-item[hidden]{display:none!important}.panel-top{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #29394a;padding-bottom:10px;margin-bottom:10px;gap:8px}.panel-heading{display:flex;align-items:center;gap:9px;min-width:0}.panel-icon{width:28px;height:28px;flex-shrink:0;border-radius:8px;display:grid;place-items:center;background:rgba(91,182,228,.12);color:#9cdeff;border:1px solid rgba(91,182,228,.19);font-size:15px;font-weight:800}.panel[data-group="family"] .panel-icon{background:rgba(89,228,200,.14);color:var(--accent)}.panel h2{font-size:12px;letter-spacing:.015em;margin:0;font-weight:800;white-space:nowrap}.panel-sub{margin-top:3px;font-size:9px;color:#7e96ac;white-space:nowrap}.panel-count{font-size:10px;color:#7e95ad;font-variant-numeric:tabular-nums}.links{display:grid;grid-template-columns:1fr 1fr;gap:6px}.link-item{display:flex;gap:8px;align-items:center;border:1px solid #24374a;background:rgba(17,34,53,.94);border-radius:8px;padding:8px 8px;text-decoration:none;min-width:0;min-height:34px;transition:background .14s,border-color .14s,transform .14s}.link-item:hover{background:#203b53;border-color:#437a91;transform:translateY(-1px)}.link-icon{width:18px;height:18px;display:grid;place-items:center;border-radius:5px;flex-shrink:0;background:#253f54;color:#a8dbf1;font-size:9px;font-weight:850;text-transform:uppercase}.link-item[data-kind="family"] .link-icon{background:#234d4c;color:#99f4d9}.link-label{font-size:11px;font-weight:630;line-height:1.15;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-arrow{margin-left:auto;color:#718fa4;font-size:10px;opacity:.75}
    .latency-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}.latency-head span{font-size:10px;color:#8da6b9}.probe-btn{border:1px solid #447769;border-radius:7px;background:rgba(89,228,200,.11);color:#a2f4e1;font-size:10px;font-weight:740;padding:6px 8px}.probe-btn:hover{background:rgba(89,228,200,.21)}.probe-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.probe{background:#0e2030;border:1px solid #2b4252;border-radius:8px;padding:9px;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:4px}.probe-name{font-size:11px;color:#d9e9f3;font-weight:650}.probe-value{font-size:11px;color:#889fb2;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}.probe-value.good{color:var(--accent)}.probe-value.mid{color:#ffca78}.probe-value.bad{color:#ff8790}.latency-note{font-size:9px;line-height:1.4;color:#7891aa;margin:8px 1px 0}.latency-note a{color:#a8dcef;text-decoration:none}.footer{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:10px;color:#7890a6;padding:12px 1px 0}.footer a{color:#a2d8e7;text-decoration:none}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,16px);opacity:0;pointer-events:none;padding:9px 15px;background:var(--accent);color:#082422;font-size:12px;font-weight:760;border-radius:10px;box-shadow:var(--shadow);transition:opacity .2s,transform .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}
    @media(max-width:1190px){.wrap{padding:15px}.dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{grid-template-columns:1fr 1.1fr}.intro{display:none}.panel{min-height:auto}.latency-note{margin-top:12px}}
    @media(max-width:650px){.brand-logo{height:34px;max-width:44vw}.wrap{padding:14px 11px}.hdr-right .hbadge{display:none}.tagline{font-size:9px}.wordmark{font-size:20px}.clock{font-size:10px}.hero{grid-template-columns:1fr}.hero-box{min-height:auto;padding:13px}.section-head{align-items:stretch}.filter{width:155px}.dashboard{grid-template-columns:1fr}.panel{min-height:0}.footer{flex-direction:column;text-align:center}.lookup-line select{width:99px}.lookup-line button{padding:0 11px}}
    @media(min-width:1191px) and (max-height:800px){.wrap{padding-top:12px;padding-bottom:9px}header{margin-bottom:10px}.hero{margin-bottom:12px}.hero-box{min-height:98px;padding:11px 13px}.panel{padding:10px;min-height:0}.panel-top{padding-bottom:7px;margin-bottom:7px}.links{gap:5px}.link-item{min-height:31px;padding:6px 7px}.probe{padding:7px}.footer{padding-top:9px}}
    @media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
  

/* v2 – SIDN, live status and protected LAN row */
.hero{grid-template-columns:1fr 1.4fr .87fr 1.1fr;gap:10px}
.hero-box{padding:12px 13px;min-height:103px}.intro h1{font-size:21px}
.sidn-box .lookup-line button{padding-inline:10px}.sidn-box .lookup-hint{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hero-title a{color:#8dc7e4;text-decoration:none}
.status-dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:0 0 9px;vertical-align:middle;background:#6a7d92;border:1px solid #9dadbc;box-shadow:0 0 0 2px rgba(140,160,175,.08)}
.status-dot.is-green{background:#46dc9a;border-color:#b8ffdc;box-shadow:0 0 8px #33c88767}.status-dot.is-orange{background:#ffbc53;border-color:#ffdfa6;box-shadow:0 0 8px #ffaf5275}.status-dot.is-red{background:#fb6470;border-color:#ffc3cb;box-shadow:0 0 8px #fc586a75}.status-dot.is-unknown{background:#607285;border-color:#93a5b7}
.panel[data-group=cloud] .link-item,.panel[data-group=nl] .link-item{gap:5px}.panel[data-group=cloud] .link-icon,.panel[data-group=nl] .link-icon{flex:0 0 18px}.panel[data-group=cloud] .status-dot,.panel[data-group=nl] .status-dot{flex:0 0 7px;width:7px;height:7px}
.infra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.infra-item{background:#0e2030;border:1px solid #2b4252;border-radius:8px;display:flex;align-items:center;gap:7px;padding:8px;font-size:11px;font-weight:720;min-width:0}.infra-item small{color:#91a6b9;font-size:9px;margin-left:auto;white-space:nowrap}.infra-item:last-child{grid-column:span 2}.infra-actions{display:flex;gap:6px;justify-content:space-between;margin-top:9px}.infra-actions .probe-btn{font-size:9px;padding:6px}.panel[data-group=infra] .latency-note{margin-top:6px;font-size:8.5px;line-height:1.25}
.privatebar{background:linear-gradient(100deg,#163c40,#142e45);border:1px solid #31746c;border-radius:12px;margin-top:9px;padding:8px 11px;display:flex;align-items:center;gap:14px}.privatebar[hidden]{display:none!important}.privatehead{display:flex;flex-direction:column;gap:3px;white-space:nowrap;font-size:10px;font-weight:820;color:#88f2cc}.privatehead small{font-size:8px;color:#92b3c1;font-weight:500}.private-links{display:flex;gap:5px;flex-wrap:wrap}.private-links a{border:1px solid #31645f;background:#0f2c37;border-radius:6px;padding:6px 8px;font-size:10px;font-weight:700;text-decoration:none;white-space:nowrap}.private-links a:hover{border-color:#54d4bc}
.tool-dialog{border:1px solid #367569;background:#101d30;color:var(--ink);border-radius:15px;min-width:min(420px,95vw);max-width:95vw;box-shadow:0 20px 60px #000a;padding:24px}.tool-dialog::backdrop{background:#030b17c9}.tool-dialog h2{font-size:19px}.tool-dialog p{font-size:12px;color:var(--muted)}.dialog-close{float:right}.dialog-close button{border:0;background:#1b3446;color:#e7f6fa;border-radius:8px;padding:5px 10px;font-size:19px}.dialog-line{display:flex;gap:7px}.dialog-line input{background:#0a1727;color:var(--ink);border:1px solid #416076;border-radius:8px;padding:10px;min-width:0;flex:1}.dialog-line button{border:0;background:var(--accent);color:#092626;border-radius:8px;padding:0 12px;font-weight:800}.calc-output{padding:14px;background:#09192a;border-radius:8px;white-space:pre-wrap;font-size:12px;line-height:1.65;color:#b6f5e0}
@media(max-width:1190px){.hero{grid-template-columns:1fr 1fr 1fr}.hero .intro{display:none}.dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.hero{grid-template-columns:1fr}.privatebar{display:block}.private-links{margin-top:8px}.intro{display:none}}
@media(min-width:1191px) and (max-height:800px){.wrap{padding-top:10px}.hero{margin-bottom:10px}.panel{min-height:0;padding:11px}.link-item{min-height:29px;padding:6px}.links{gap:5px}.panel-top{padding-bottom:6px;margin-bottom:7px}.footer{padding-top:7px}}

/* Keep all 8 cards plus internal toolbar visible at a laptop's 1366×768. */
@media(min-width:1191px) and (max-height:800px){
 .wrap{padding:7px 19px 4px}header{margin-bottom:6px}.brand-logo{height:34px}
 .wordmark{font-size:21px}.tagline{margin-top:2px}.hero{margin-bottom:7px;gap:8px}
 .hero-box{padding:9px 11px;min-height:92px}.intro h1{font-size:19px;margin-bottom:4px}
 .section-head{margin-bottom:6px}.dashboard{gap:8px}
 .panel{padding:9px 10px;min-height:0}.panel-top{padding-bottom:5px;margin-bottom:6px}
 .links{gap:4px}.link-item{min-height:27px;padding:5px 6px}.link-label{font-size:10.5px}
 .privatebar{padding:5px 10px;margin-top:7px}.private-links a{padding:4px 7px}.footer{padding-top:4px}
 .infra-item{padding:6px}.infra-actions{margin-top:7px}.infra-actions .probe-btn{padding:5px}
}
