:root{font:16px/1.5 "Inter","Segoe UI",sans-serif;color:#142d46;background:#e7edf3;--line:#c7d4df;--ink:#113854;--muted:#465d70;--accent:#17577a}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 82% 4%,#d1e5eb,transparent 46%),linear-gradient(125deg,#f3f5f7,#e1e9f2)}
header,main{max-width:1060px;margin:auto;padding:20px clamp(16px,4vw,48px)}
header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);min-height:76px}
.brand{display:flex;align-items:center;gap:12px;font-weight:720;letter-spacing:-.03em;font-size:1.15rem}
.router{border:2px solid currentColor;border-radius:4px;padding:0 6px;font-size:.78rem;color:var(--accent);line-height:15px;letter-spacing:1px}
main{padding-bottom:64px}h1,h2,p{margin:0}h1{font-size:clamp(2rem,4vw,3rem);line-height:1.1;letter-spacing:-.045em;margin:28px 0}
h2{font-size:1.35rem;letter-spacing:-.025em}small{font-size:.9rem;color:var(--muted);margin-left:.3em}
section{padding:clamp(18px,3vw,32px);border:1px solid #fff9;border-radius:16px;background:#ffffffaf;backdrop-filter:blur(14px);margin:18px 0;box-shadow:0 5px 24px #233c5410}
.support{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#f3fafcd9;border-left:4px solid var(--accent)}
p{margin:8px 0 16px;color:var(--muted)}label{display:block;font-weight:600;font-size:.9rem;margin:10px 0 5px}
.row{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap}
input,button{font:inherit;border:1px solid #8296a7;border-radius:8px;padding:9px 14px;min-height:44px}
input{max-width:100%;min-width:0;background:#fff;color:inherit}.row input{flex:1}
button{font-weight:620;cursor:pointer;background:var(--accent);border-color:transparent;color:#fff;transition:background .15s,transform .15s}
button:hover{background:#0b4261}button:active{transform:translateY(1px)}.quiet{color:var(--ink);background:#e2ecf3}.quiet:hover{background:#d2e2ed}
.primary-link{display:inline-flex;align-items:center;min-height:44px;padding:9px 14px;border-radius:8px;background:var(--accent);color:white;text-decoration:none}
.primary-link:hover{background:#0b4261}
.brand-divider{height:20px;width:1px;background:var(--line)}
.brand .router{border:0;border-radius:9px;padding:8px 11px;background:var(--ink);color:#fff;font-size:.95rem}
.operations{display:grid;grid-template-columns:1.04fr 1fr;gap:16px;align-items:start}
.operations section{min-width:0;margin-bottom:0}
.terminal{max-width:100%;margin:0;background:#153b51;color:#edfaff;font-size:.83rem}
.snapshot details{max-width:100%}
@media(max-width:760px){.operations{grid-template-columns:1fr;gap:0}.terminal{margin-top:8px}}
:focus-visible{outline:3px solid #087ab4;outline-offset:3px}
.single{max-width:530px;margin:clamp(32px,8vh,90px) auto}.single h1{margin-top:0;font-size:2rem}.single input{width:100%;margin-bottom:16px}
.events,.devices{list-style:none;padding:0}.events li,.devices li{border-top:1px solid var(--line);padding:11px 0;display:flex;align-items:baseline;gap:20px;overflow-wrap:anywhere}
.devices li{justify-content:space-between}.events time,li span,dt{font-size:.86rem;color:var(--muted)}li span{display:block}summary,a{color:var(--accent);font-weight:600;cursor:pointer}details{max-width:48%}
code{display:block;overflow-wrap:anywhere;background:#dfeaf1;padding:14px;border-radius:6px;margin:18px 0;user-select:all}dd{margin:2px 0 16px;font-weight:600;overflow-wrap:anywhere}
@media(max-width:720px){.support{display:block}.row{align-items:stretch}.events li{display:block}.single{margin-top:32px}.devices li{gap:8px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}

.operator-workspace{--ink:#162c3f;--muted:#4e6272;--line:#d5e0e7;--accent:#15596d;background:#edf2f5;color:var(--ink)}
.operator-workspace header{max-width:none;padding-inline:max(20px,calc((100vw - 1140px)/2));background:#142c3d;color:#eef8ff;border-color:#263e50;min-height:68px}
.operator-workspace header .router{background:#36778b}.operator-workspace header .brand-divider{background:#597080}
.operator-workspace header .quiet{background:#274355;color:#f4f9ff}
.operator-workspace header .quiet:hover{background:#35556b}
.operator-workspace main{max-width:1228px;padding-top:34px}
.fleet-title{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 24px}
.fleet-title h1{margin:0 0 7px;font-size:clamp(2rem,4vw,3rem);letter-spacing:-.05em;overflow-wrap:anywhere}
.fleet-title p{margin:0}.fleet-count{font-variant-numeric:tabular-nums}.fleet-count span{color:#246249;margin-left:12px}
.work-surface{padding:24px;margin:0 0 18px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 3px 14px #203b4f08;backdrop-filter:none}
.fleet-register{padding:0;overflow:hidden}
.fleet-filters{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr) auto;align-items:end;gap:12px;padding:20px 24px}
.fleet-filters label{margin-top:0}
.operator-workspace input:not([type=checkbox]),.operator-workspace select,.operator-workspace textarea{width:100%;min-width:0;font:inherit;color:var(--ink);background:#fff;border:1px solid #879ba9;border-radius:8px;min-height:44px;padding:9px 12px}
.operator-workspace input[type=hidden]{display:none}
.operator-workspace textarea{resize:vertical}
.router-table{width:100%;border-collapse:collapse;text-align:left;overflow-wrap:anywhere}
.router-table th{font-weight:650;font-size:.81rem;color:var(--muted);background:#f2f6f8}
.router-table td,.router-table th{padding:15px 16px;border-top:1px solid var(--line);vertical-align:middle}
.router-table tr>*:first-child{padding-left:24px}.router-table tr>*:last-child{padding-right:24px}
.router-table tbody tr:hover{background:#f8fbfc}
.router-name{color:var(--ink);font-weight:750;text-decoration:none}.router-name:hover{text-decoration:underline}
.cell-sub{display:block;color:var(--muted);font-size:.84rem;margin-top:3px}
.mac-value{font:600 .85rem/1.5 Consolas,"Liberation Mono",monospace;letter-spacing:.015em}
.fleet-status{display:inline-flex;align-items:center;gap:7px;line-height:1.35;padding:5px 9px;border-radius:6px;background:#edf1f4;color:#41566a;font-size:.81rem;font-weight:650}
.fleet-status::before{content:"";width:6px;height:6px;background:currentColor;border-radius:50%;flex:none}
.fleet-status.is-online{background:#e5f2eb;color:#205d42}
.action-link{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;min-height:40px;border-radius:7px;text-decoration:none}
.fleet-empty{padding:18px 24px;margin:0;border-top:1px solid var(--line)}
.fleet-back{display:inline-block;margin-bottom:16px;text-decoration:none}
.router-registration{max-width:640px}
.detail-title{align-items:flex-end}.detail-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px}
.router-facts{margin:12px 0}.router-facts div{display:grid;grid-template-columns:1fr 1.3fr;gap:8px;align-items:baseline;border-bottom:1px solid var(--line);padding:10px 0}
.router-facts dd{margin:0;min-width:0}.device-settings button{margin-top:12px}
.saved-state{background:#e5f2eb;color:#205d42;border-radius:6px;padding:8px 12px}.warning{color:#884815}
.job-list{list-style:none;padding:0;margin:12px 0 0}.job-list li{padding:11px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
.job-list li div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.job-list time{color:var(--muted);font-size:.81rem}.job-list p{margin:3px 0;font-size:.87rem}
@media(max-width:720px){
 .operator-workspace main{padding-top:22px}
 .detail-grid{grid-template-columns:1fr;gap:0}
 .fleet-filters{padding:16px;grid-template-columns:1fr auto}
 .fleet-filters div:first-child{grid-column:1/-1}
 .router-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .router-table,.router-table tbody,.router-table tr{display:block}
 .router-table tr{padding:12px 16px;border-top:1px solid var(--line)}
 .router-table tr td{display:grid;grid-template-columns:minmax(82px,.85fr) minmax(0,1.5fr);gap:8px;padding:5px 0;border:0}
 .router-table tr>*:first-child,.router-table tr>*:last-child{padding-inline:0}
 .router-table td::before{content:attr(data-label);font-size:.81rem;color:var(--muted)}
 .router-table td .cell-sub{grid-column:2}.router-table td .action-link,.router-table td .fleet-status{justify-self:start}
}
.fleet-heading,.fleet-card-title{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.refresh{border-radius:8px;padding:9px 14px;text-decoration:none}
.fleet-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px}
.fleet-card{margin:0;align-self:start;border-top:3px solid var(--accent)}
.connection{border-radius:100px;background:#e5e9ef;color:#43556a;padding:4px 10px;font-size:.81rem;font-weight:650}
.connection.online{background:#dceee6;color:#195740}
.fleet-access{max-width:none;border-top:1px solid var(--line);padding:12px 0}
.fleet-update select{width:100%;margin-bottom:10px;font:inherit;color:inherit;background:white;border:1px solid #8296a7;border-radius:8px;padding:9px;min-height:44px}
.fleet-update .row{margin-bottom:14px}
.confirm-update{display:flex;gap:8px;align-items:center}
.confirm-update input{min-height:1em;width:1em;flex:none}
.fleet-jobs li{align-items:flex-start}
.fleet-jobs li form{margin-left:auto}
