/* Hegnet shared design tokens. Light navy/teal, based on the existing fleet UI. */
:root{--hg-bg:#f4f7fa;--hg-surface:#ffffff;--hg-ink:#173348;--hg-muted:#617b8c;--hg-accent:#126f82;--hg-border:#dce5eb;--hg-radius:13px;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:#f4f7fa;color:#173348;font:15px/1.55 system-ui,sans-serif}header{display:flex;align-items:center;gap:36px;padding:20px max(28px,calc((100vw - 1240px)/2));background:#fff;border-bottom:1px solid #dfe7ed}.brand{font-size:27px;font-weight:760;text-decoration:none;letter-spacing:-1px;color:#13364d}.brand span{display:block;font-size:11px;letter-spacing:1.7px;text-transform:uppercase;color:#6d8594}nav{display:flex;gap:22px;flex-wrap:wrap}nav a,.back{color:#234a63;text-decoration:none}nav a:hover,.back:hover{text-decoration:underline}.tag{margin-left:auto;font-size:12px;background:#edf4f6;border:1px solid #d9e7ed;padding:5px 12px;border-radius:20px;white-space:nowrap}main{max-width:1240px;margin:26px auto;padding:0 24px}.back{font-size:13px}.eyebrow{margin-top:26px;letter-spacing:1.8px;font-weight:750;font-size:11px;color:#1f7c89}h1{font-size:36px;line-height:1.2;margin:8px 0 12px;letter-spacing:-1px}h2{font-size:19px;margin:0 0 12px}h3{font-size:16px}.lead{color:#5b7485;max-width:950px}.card{background:#fff;border:1px solid #dce5eb;border-radius:13px;padding:24px;margin:18px 0}.columns{display:grid;grid-template-columns:2fr 1fr;gap:22px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}input,select,textarea{font:inherit;font-weight:400;background:white;color:#173348;border:1px solid #c7d5df;border-radius:7px;padding:11px;width:100%;min-height:44px}input:focus,select:focus,textarea:focus{outline:2px solid #208799;outline-offset:1px}input[type=checkbox]{width:18px;height:18px;min-height:18px}.check{flex-direction:row;align-items:flex-start;margin:16px 0;font-weight:400}button,.button{font:inherit;display:inline-block;cursor:pointer;background:#126f82;border:0;border-radius:7px;padding:11px 18px;color:white;text-decoration:none;font-weight:650}button:disabled{opacity:.5;cursor:wait}button.secondary,.button.secondary{background:#eaf1f5;color:#204960}.muted{color:#698090;font-size:13px}.hint{padding:13px 16px;background:#edf6f7;border-left:3px solid #3396a4;font-size:13px;color:#315767}.warning{background:#fff7e9;border-color:#e1a84a;color:#72531f}.tabs{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0}.tabs a{padding:9px 16px;border:1px solid #ccdce6;border-radius:6px;text-decoration:none;color:#234b62;background:#fff}.tabs a.active{background:#173f57;color:#fff;border-color:#173f57}#notice:not(:empty){padding:15px;background:#fff1d7;border:1px solid #e8c678;border-radius:8px;margin:16px 0}.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:13px;margin:22px 0}.stat{background:#fff;border:1px solid #dce6ec;padding:16px;border-radius:10px}.stat strong{display:block;font-size:29px}.stat span{font-size:12px;color:#667f90}.toolbar{display:flex;gap:12px;align-items:center;margin:15px 0}.toolbar input{flex:1}.toolbar select{max-width:210px}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;border-bottom:1px solid #e2eaf0;padding:12px 9px;vertical-align:top}th{font-size:11px;color:#617b8c;text-transform:uppercase;letter-spacing:.5px}td small{display:block;color:#668091}.badge{display:inline-flex;align-items:center;gap:7px;background:#edf5f3;border-radius:14px;padding:3px 9px;white-space:nowrap}.badge i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#249274}.badge.offline{background:#fbefee}.badge.offline i{background:#c65050}.badge.attention{background:#fff6e5}.badge.attention i{background:#d3992b}.badge.unknown,.badge.disabled{background:#edf1f4}.badge.unknown i,.badge.disabled i{background:#82919c}.map{height:470px;border-radius:10px;background:#eaf0f3;z-index:1}.map-head{display:flex;gap:15px;align-items:center;justify-content:space-between}.stack>*{margin-bottom:14px}pre{white-space:pre-wrap;overflow-wrap:anywhere}code{font-size:12px;background:#edf3f6;padding:2px 4px;border-radius:3px}summary{cursor:pointer;color:#236378;font-weight:600}footer{max-width:1192px;margin:34px auto;padding:24px;color:#668091;font-size:12px;border-top:1px solid #dfe8ee}.chip{font-size:11px;background:#eaf2f7;padding:2px 6px;border-radius:4px}.setup{max-width:600px;margin:24px auto}.statekey{display:flex;gap:16px;flex-wrap:wrap;font-size:12px}.statekey span{white-space:nowrap}.gridcanvas{opacity:.8}@media(max-width:850px){header{gap:16px;padding:15px 20px;align-items:flex-start;flex-wrap:wrap}header nav{order:3;width:100%;gap:16px;font-size:13px}.columns{grid-template-columns:1fr}.stats{grid-template-columns:repeat(3,1fr)}h1{font-size:30px}.map{height:390px}.fields{grid-template-columns:1fr}.toolbar{flex-wrap:wrap}.toolbar select{max-width:none;flex:1}.tag{margin-left:auto}}@media(max-width:450px){main{padding:0 14px}.stats{grid-template-columns:1fr 1fr}.card{padding:17px}.map{height:340px}}
/* A single shell across legacy and new modules. Map, chart and status semantics are retained. */
body{background:var(--hg-bg)!important;color:var(--hg-ink)!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;margin:0!important}
h1,h2,h3,h4{font-family:inherit!important;color:var(--hg-ink)}a{color:#176679}button,.button,.btn,input[type=submit]{border-radius:7px!important;font-family:inherit!important;min-height:42px}.card,.panel,.section,.step,.plan{border-color:var(--hg-border)!important;background:var(--hg-surface)!important;border-radius:var(--hg-radius)!important;box-shadow:none!important;color:var(--hg-ink)}
input:not([type=checkbox]):not([type=radio]),select,textarea{color:var(--hg-ink)!important;background:#fff!important;border:1px solid #c7d5df!important;border-radius:7px!important;font-family:inherit!important}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #208799;outline-offset:3px}input[type=checkbox],input[type=radio]{width:18px;min-height:18px;accent-color:var(--hg-accent)}
.hg-header{position:relative;z-index:1010;display:flex!important;gap:28px;align-items:center;background:#fff!important;color:var(--hg-ink);padding:18px max(24px,calc((100vw - 1240px)/2))!important;border-bottom:1px solid var(--hg-border)}.hg-header .hg-brand,.hg-brand{display:block;font-size:27px;font-weight:760;letter-spacing:-.7px;color:#13364d;text-decoration:none}.hg-brand small{display:block;font-size:11px;letter-spacing:1px;font-weight:500;color:var(--hg-muted)}.hg-brand img{max-width:150px;max-height:52px}.hg-header nav{display:flex;align-items:center;gap:17px;font-size:13px}.hg-header nav a{white-space:nowrap;text-decoration:none;color:#31556b;padding:7px 2px;border-bottom:2px solid transparent}.hg-header nav>a:hover,.hg-header nav>a:focus-visible{color:#0f6f7e}.hg-header nav>a.hg-nav-active,.hg-header nav>a[aria-current="page"]{color:#0f6f7e;border-bottom-color:#1590a0;font-weight:700}.hg-more{position:relative}.hg-more summary{list-style:none;cursor:pointer;color:#31556b;padding:7px 2px;border-bottom:2px solid transparent}.hg-more summary::-webkit-details-marker{display:none}.hg-more summary.hg-nav-active{color:#0f6f7e;border-bottom-color:#1590a0;font-weight:700}.hg-more nav,.hg-more-menu{position:absolute;right:0;top:34px;width:280px;background:#fff;border:1px solid var(--hg-border);box-shadow:0 15px 45px #17334818;border-radius:10px;padding:12px;display:flex!important;align-items:stretch!important;flex-direction:column;gap:2px!important;z-index:1001}.hg-more nav a{display:block;padding:8px 10px;border:0!important;border-radius:7px}.hg-more nav a:hover,.hg-more nav a.hg-nav-active{background:#edf6f8;color:#0f6f7e}.hg-nav-group{display:block;padding:10px 10px 4px;font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#7a8e9c}.hg-more:not([open]) nav{display:none!important}.hg-release{margin-left:auto;font-size:11px;color:var(--hg-muted);white-space:nowrap}
body.hg-unified>header:not(.hg-header):not(.hg-public-head),body.hg-unified>.top:not(.hg-header),body.hg-unified>.site-header:not(.hg-header){display:none!important}.hg-breadcrumbs{max-width:1240px;margin:18px auto 0;padding:0 24px;font-size:12px;display:flex;gap:12px}.hg-breadcrumbs span{color:#6c8191}.hg-skip{position:absolute;left:-9999px}.hg-skip:focus{left:20px;top:10px;z-index:2000;background:white;padding:12px}
.hg-main{max-width:1240px;margin:28px auto;padding:0 24px}.hg-main h1{font-size:36px;letter-spacing:-1.2px;line-height:1.14}.hg-section{margin:40px 0}.hg-eyebrow{font-size:11px;font-weight:750;letter-spacing:1.8px;color:#157486;margin:18px 0 8px}.hg-card{border:1px solid var(--hg-border);border-radius:13px;padding:24px;background:#fff;margin:16px 0}.hg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.hg-grid.two{grid-template-columns:1fr 1fr}.hg-plans{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.hg-plans>a{text-decoration:none}.hg-plans strong{display:block;font-size:25px;color:var(--hg-ink);margin:18px 0}.hg-plans small{display:block}.hg-button{display:inline-block;color:white;background:var(--hg-accent);padding:12px 20px;border-radius:7px;text-decoration:none;font-weight:650}.hg-button.secondary{background:#eaf1f5;color:#204960}.hg-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:18px}.hg-actions button{font-size:13px}.hg-actions .danger{background:#8c3542}
.hg-banner{padding:15px 18px;background:#fff5dc;border:1px solid #edd79c;border-radius:9px;margin:18px 0;color:#6e531d}.hg-prose{white-space:pre-wrap;line-height:1.75;max-width:850px}.hg-block-hero{padding:46px 40px 50px;border-radius:18px;border:1px solid #d3e4eb;background:linear-gradient(115deg,#fff 50%,#e7f1f4)}.hg-block-hero h1{font-size:clamp(36px,4.5vw,60px);max-width:720px;line-height:1.05;margin:12px 0 22px}.hg-block-hero .hg-prose{font-size:19px;max-width:650px;color:#4e6b7e}.hg-content-image{max-width:100%;height:auto;border-radius:12px}.hg-public-head{display:flex;align-items:center;justify-content:space-between;padding:20px max(24px,calc((100vw - 1192px)/2));gap:30px;background:#fff;border-bottom:1px solid var(--hg-border)}.hg-public-head nav a{font-size:14px}.hg-footer{max-width:1192px;padding:24px;margin:40px auto;color:var(--hg-muted);font-size:13px;border-top:1px solid var(--hg-border)}.hg-gate{max-width:540px;margin:10vh auto;padding:20px}.hg-gate h1{font-size:29px}.hg-gate .hg-card{margin-top:28px}.hg-native label{margin:12px 0}.hg-native label.check{flex-direction:row;align-items:center}.hg-native textarea{min-height:110px;resize:vertical}.hg-native .field-help{font-size:12px;color:var(--hg-muted);font-weight:400}.hg-native .status-line{display:flex;gap:10px;align-items:center}.hg-native .success{background:#e4f3ec;color:#246550}.hg-native .pill{display:inline-block;padding:3px 9px;border-radius:20px;font-size:12px;background:#e8f2f5;color:#315767}.hg-editor-block{border:1px solid #d9e4ec;padding:20px;border-radius:10px;margin:15px 0;background:#fafcfd}.hg-editor-block h3{display:flex;justify-content:space-between;align-items:center}.hg-editor-block button{font-size:12px;padding:6px 12px;min-height:33px}.hg-code{font:12px/1.5 ui-monospace,monospace;white-space:pre-wrap;max-height:360px;overflow:auto;background:#edf3f6;padding:14px;border-radius:8px}.hg-empty{padding:28px;color:var(--hg-muted);background:#fff;border:1px dashed #c8d8e2;border-radius:12px}.hg-native dialog{width:min(680px,95vw);max-height:90vh;overflow:auto;border:1px solid var(--hg-border);border-radius:15px;padding:28px;box-shadow:0 20px 60px #0a2c4633}.hg-native dialog::backdrop{background:#10283a80}#platform-notice:empty{display:none}#platform-notice:not(:empty){padding:15px 18px;margin:15px 0;background:#fff5dc;border:1px solid #edd79c;border-radius:9px}.hg-help{max-width:850px}
@media(max-width:960px){.hg-header{flex-wrap:wrap;gap:13px}.hg-header nav{order:3;width:100%}.hg-more nav{width:230px}.hg-grid{grid-template-columns:1fr 1fr}.hg-plans{grid-template-columns:1fr 1fr}.hg-public-head{flex-wrap:wrap}.hg-public-head nav{gap:14px}}@media(max-width:580px){.hg-main{padding:0 15px}.hg-main h1{font-size:30px}.hg-grid,.hg-grid.two{grid-template-columns:1fr}.hg-card{padding:18px}.hg-block-hero{padding:25px 22px}.hg-block-hero h1{font-size:38px}.hg-plans{grid-template-columns:1fr 1fr;gap:9px}.hg-plans .hg-card{padding:16px}.hg-header nav{font-size:12px;gap:12px}.hg-header .hg-brand{font-size:24px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media print{.hg-header,.hg-breadcrumbs,.hg-actions,.hg-skip{display:none!important}body{background:#fff!important}}

.hg-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.hg-split{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px}.hg-field{display:grid;gap:6px;margin:12px 0;font-weight:600;font-size:.94rem}.hg-field input,.hg-field select,.hg-field textarea{width:100%;box-sizing:border-box}.hg-field textarea{min-height:95px}.hg-check{display:flex;gap:10px;align-items:flex-start;padding:10px 0}.hg-check input{width:auto!important}.hg-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.hg-actions strong,.hg-actions h2{margin-right:auto}.hg-block{padding:20px;background:#f4f8fb;border:1px solid #d8e3eb;border-radius:12px;margin:18px 0}.hg-table-wrap{overflow-x:auto}.hg-thumb{max-width:180px;max-height:140px;border-radius:8px}.hg-page-link{display:flex!important;justify-content:space-between;width:100%;margin:8px 0!important;text-align:left}.hg-page-link small{margin-left:10px}.hg-history{padding:15px 0;border-bottom:1px solid #e2e9f0}.hg-history small{display:block;color:#52687a}.hg-history p{white-space:pre-wrap}.hg-message{border-left:3px solid #217f89;padding:12px 16px;background:#f3f7fa;margin:12px 0}.hg-message.internal{border-color:#ba770b;background:#fff7e9}.hg-message p{white-space:pre-wrap}.hg-alert{display:flex;flex-direction:column;gap:6px;padding:13px 10px;border-bottom:1px solid #e2e9f0;color:#173348;text-decoration:none}.hg-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.hg-kpis strong{font-size:1.7rem;display:block;margin-top:12px}.hg-badge{display:inline-block;background:#e8f3ef;color:#215f54;border-radius:30px;padding:4px 10px;font-size:.82rem}.hg-badge.warn{background:#fff0d9;color:#754914}.hg-notice{background:#eaf3f9;border:1px solid #c5dce9;padding:15px;border-radius:9px;margin:16px 0}.hg-notice:empty{display:none}.hg-notice.danger{background:#fff2f1;border-color:#d9b2ad;color:#83392e}.hg-dialog{max-width:520px;width:90%;border:0;border-radius:16px;box-shadow:0 16px 90px #09203260;padding:28px}.hg-dialog::backdrop{background:#102d4570}.hg-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.hg-tabs a{padding:9px 15px;border:1px solid #d8e4ed;border-radius:8px;color:#184c69;text-decoration:none;background:white}.hg-card pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;font-size:.82rem}figure{margin:16px 0}.hg-brand img{max-width:180px;max-height:54px;object-fit:contain}button:disabled{opacity:.55;cursor:wait}@media(max-width:850px){.hg-split{grid-template-columns:1fr}.hg-grid2{grid-template-columns:1fr}.hg-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.hg-card{padding:18px}.hg-main{padding:18px}}

/* Duplicate legacy home links are replaced by the common breadcrumb. */
.hg-unified main > a.back[href="/admin"] {display:none;}

.hg-setup-banner{padding:10px 18px;background:#fff4cf;border-bottom:1px solid #d8b34b;color:#4b3b08;font-size:14px}.hg-setup-banner a{font-weight:700;color:inherit}

/* Patch 2: the unified shell is the only global navigation. Legacy field JS may
   still be cached briefly in a browser, so suppress its injected bar as well. */
body.hg-unified > #hegnet-navigation {display:none!important;}
body.hg-unified > .hg-legacybar {display:none!important;}
