@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --petrol: #0d1b29;
  --petrol-soft: #16293b;
  --royal: #002398;
  --royal-deep: #001a70;
  --light-blue: #2adeff;
  --steel-blue: #157bc9;
  --steel: #666666;
  --gold: #e5ae51;
  --ink: #132133;
  --ink-soft: #657184;
  --paper: #f4f7fb;
  --panel: #ffffff;
  --line: #dfe6ee;
  --line-dark: #cad5e2;
  --green: #168464;
  --green-pale: #e8f6f1;
  --amber: #b86b18;
  --amber-pale: #fff4e4;
  --red: #c94450;
  --red-pale: #fff0f1;
  --shadow: 0 18px 46px rgba(13, 27, 41, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: "Montserrat", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 10; height: 100vh; padding: 28px 21px; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; color: #fff; background: var(--petrol); }
.sidebar::before { content: ""; position: absolute; width: 260px; height: 260px; right: -150px; top: 34%; border: 1px solid rgba(42, 222, 255, .13); border-radius: 50%; box-shadow: 0 0 0 34px rgba(42, 222, 255, .025), 0 0 0 76px rgba(42, 222, 255, .018); pointer-events: none; }
.brand { position: relative; display: block; padding: 0 8px 26px; color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand img { width: 144px; height: 50px; display: block; object-fit: contain; object-position: left center; }
.brand span { display: block; margin-top: 8px; color: var(--light-blue); font-size: 8px; font-weight: 700; letter-spacing: .22em; }
.sidebar nav { position: relative; display: grid; gap: 7px; margin-top: 28px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 9px 11px; border: 1px solid transparent; border-radius: 7px; color: #a8b8c8; text-decoration: none; font-size: 11px; font-weight: 600; line-height: 1.3; transition: .2s ease; }
.nav-index { min-width: 18px; color: #617487; font-size: 8px; letter-spacing: .13em; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.065); border-color: rgba(255,255,255,.05); }
.nav-item.active .nav-index { color: var(--light-blue); }
.sidebar-foot { position: relative; margin-top: auto; display: grid; gap: 11px; }
.read-only { display: flex; gap: 8px; align-items: center; color: #a8b8c8; font-size: 10px; }
.lock-icon { width: 7px; height: 7px; border-radius: 50%; background: var(--light-blue); box-shadow: 0 0 0 4px rgba(42,222,255,.1); }
.mode-badge { width: fit-content; padding: 6px 9px; color: var(--light-blue); background: rgba(42,222,255,.08); border: 1px solid rgba(42,222,255,.22); border-radius: 999px; font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-foot p { margin: 10px 0 0; color: #718396; font-size: 8px; line-height: 1.5; letter-spacing: .04em; }

main { min-width: 0; padding: 36px clamp(24px, 4.2vw, 68px) 28px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 1440px; margin: 0 auto 26px; }
.eyebrow { margin: 0 0 8px; color: var(--steel-blue); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.035em; }
h1 { max-width: 800px; color: var(--petrol); font-size: clamp(32px, 4vw, 48px); line-height: 1.05; }
h2 { color: var(--petrol); font-size: 26px; }
.lede { margin: 11px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.update-meta { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 10px; white-space: nowrap; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--light-blue); box-shadow: 0 0 0 4px rgba(42,222,255,.16); }
.refresh-button { min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 17px; border: 0; border-radius: 7px; color: white; background: var(--royal); font-size: 10px; font-weight: 700; cursor: pointer; box-shadow: 0 9px 22px rgba(0,35,152,.18); transition: transform .2s ease, background .2s ease; }
.refresh-button:hover { transform: translateY(-1px); background: var(--royal-deep); }
.refresh-button:disabled { cursor: wait; opacity: .68; }
.refresh-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.refresh-button.loading svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.notice, .summary-grid, .attention-panel, .map-section, .itm-section, .registry-section, .nodes-section, .runbook-card, footer { max-width: 1440px; margin-left: auto; margin-right: auto; }
.notice { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; padding: 12px 15px; border: 1px solid rgba(229,174,81,.42); border-radius: 8px; background: #fffaf0; color: #6c511f; }
.notice-icon { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--petrol); background: var(--gold); font-size: 10px; font-weight: 800; }
.notice strong { font-size: 11px; }
.notice p { display: inline; margin: 0 0 0 8px; font-size: 10px; }
.notice code { padding: 2px 4px; background: #f2e7d2; border-radius: 3px; }

.summary-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 13px; }
.summary-card { min-height: 140px; display: flex; align-items: center; gap: 17px; padding: 21px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 6px 20px rgba(13,27,41,.035); }
.summary-card.primary-card { position: relative; display: block; overflow: hidden; color: white; background: var(--royal); border-color: var(--royal); box-shadow: 0 13px 32px rgba(0,35,152,.18); }
.summary-card.primary-card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -62px; bottom: -80px; border: 1px solid rgba(42,222,255,.25); border-radius: 50%; box-shadow: 0 0 0 26px rgba(42,222,255,.035); }
.summary-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: #c4d0e8; font-size: 10px; font-weight: 600; }
.trend { padding: 5px 8px; color: var(--light-blue); background: rgba(42,222,255,.13); border-radius: 999px; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.trend.warning { color: #ffd48d; background: rgba(229,174,81,.16); }
.summary-value { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 10px; margin-top: 15px; }
.summary-value strong { font-size: 40px; line-height: 1; font-weight: 700; }
.summary-value small { color: #b7c6e2; font-size: 10px; }
.segmented-bar { position: relative; z-index: 1; display: flex; gap: 4px; margin-top: 18px; }
.segmented-bar span { height: 4px; flex: 1; border-radius: 3px; background: rgba(255,255,255,.16); }
.segmented-bar span.ok { background: var(--light-blue); }
.segmented-bar span.bad { background: #ff858f; }
.metric-icon { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #ecf9fc; }
.metric-icon.blue { background: #edf3ff; }
.metric-icon.gold { background: #fff7e8; }
.metric-icon img { width: 28px; height: 28px; object-fit: contain; }
.metric-label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 9px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.summary-card > div:last-child > strong { display: block; color: var(--petrol); font-size: 29px; font-weight: 700; line-height: 1; }
.summary-card small { display: block; margin-top: 7px; color: #8590a0; font-size: 9px; }

.attention-panel { margin-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 19px; border: 1px solid #f0d6b9; border-left: 4px solid var(--gold); border-radius: 8px; background: #fffbf5; }
.attention-heading { display: flex; align-items: center; gap: 13px; }
.attention-symbol { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--petrol); background: var(--gold); font-size: 15px; font-weight: 800; }
.attention-heading strong { display: block; font-size: 11px; }
.attention-heading p { margin: 4px 0 0; color: var(--ink-soft); font-size: 10px; }
.attention-list { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.attention-list span { padding: 6px 9px; border-radius: 5px; color: #7d4e1b; background: var(--amber-pale); font-size: 9px; font-weight: 700; }

.map-section { margin-top: 34px; scroll-margin-top: 18px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 15px; }
.map-heading { align-items: center; }
.map-provider { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 9px; }
.map-provider-badge { padding: 6px 9px; border: 1px solid #c5d3e2; border-radius: 999px; color: var(--steel-blue); background: white; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.map-provider-badge.connected { color: var(--green); border-color: #b9e3d6; background: var(--green-pale); }
.map-provider-badge.warning { color: var(--amber); border-color: #efcfaa; background: var(--amber-pale); }
.map-provider-badge.pending { color: var(--steel-blue); background: #eef6fc; }
.map-filters { min-height: 52px; display: flex; align-items: end; gap: 9px; margin-bottom: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.map-filter { min-width: 138px; display: grid; gap: 4px; }
.map-filter > span { color: var(--ink-soft); font-size: 7px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.map-filter select { width: 100%; height: 30px; padding: 0 28px 0 9px; border: 1px solid var(--line-dark); border-radius: 5px; color: var(--petrol); background: white; font-size: 9px; cursor: pointer; }
.map-filter select:focus { border-color: var(--steel-blue); outline: 3px solid rgba(21,123,201,.12); outline-offset: 0; }
.map-filter-summary { margin: 0 2px 7px auto; color: var(--ink-soft); font-size: 8px; white-space: nowrap; }
.connection-legend { display: flex; align-items: center; gap: 9px 14px; flex-wrap: wrap; margin: -1px 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-soft); background: #fbfcfe; }
.connection-legend-title { min-width: 190px; display: grid; gap: 3px; margin-right: auto; }
.connection-legend-title strong { color: var(--petrol); font-size: 9px; }
.connection-telemetry-status { color: var(--ink-soft); font-size: 7px; line-height: 1.35; }
.connection-telemetry-status.connected { color: var(--green); }.connection-telemetry-status.error { color: var(--red); }.connection-telemetry-status.unconfigured, .connection-telemetry-status.disabled { color: var(--amber); }
.connection-key { display: inline-flex; align-items: center; gap: 6px; color: #4f6072; font-size: 7px; font-weight: 700; white-space: nowrap; }
.connection-key i { width: 30px; height: 4px; display: inline-block; border-radius: 99px; background: var(--green); }
.connection-key.degraded i { background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 12px); }
.connection-key.critical i { background: repeating-linear-gradient(90deg, var(--red) 0 9px, transparent 9px 12px, var(--red) 12px 14px, transparent 14px 18px); }
.connection-key.down i { background: var(--red); animation: connectionBlink 1.3s ease-in-out infinite; }
.connection-key.unknown i { background: radial-gradient(circle, var(--steel) 1.5px, transparent 1.8px) 0 50% / 7px 4px repeat-x; }
.connection-legend:has(.map-motion-toggle[data-motion-paused="true"]) .connection-key.down i { animation: none; opacity: .55; }
.map-motion-toggle { min-height: 30px; padding: 0 10px; border: 1px solid var(--line-dark); border-radius: 5px; color: var(--steel-blue); background: white; font-size: 7px; font-weight: 800; cursor: pointer; }
.map-motion-toggle:hover, .map-motion-toggle:focus-visible { border-color: var(--steel-blue); outline: 2px solid rgba(21,123,201,.12); outline-offset: 1px; }
@keyframes connectionBlink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
.map-card { min-height: 520px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.map-stage { position: relative; min-height: 520px; background: var(--petrol); }
.google-map { width: 100%; height: 100%; min-height: 520px; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; color: white; background: radial-gradient(circle at 44% 40%, #173a58 0, #10273a 39%, var(--petrol) 72%); }
.map-fallback::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(42,222,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(42,222,255,.045) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 90%); }
.fallback-surface { position: absolute; left: 9%; top: 8%; width: 64%; height: 84%; display: grid; place-items: center; opacity: .77; }
.fallback-surface > img { position: relative; z-index: 1; width: min(340px, 62%); filter: brightness(0) saturate(100%) invert(90%) sepia(41%) saturate(2260%) hue-rotate(159deg) brightness(103%) contrast(105%); opacity: .23; }
.fallback-link-layer { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.world-orbit { position: absolute; width: min(430px, 85%); aspect-ratio: 1; border: 1px solid rgba(42,222,255,.16); border-radius: 50%; }
.orbit-one { transform: scaleY(.44) rotate(15deg); }
.orbit-two { transform: scaleX(.44) rotate(-15deg); }
.fallback-copy { position: relative; z-index: 2; width: min(335px, 50%); margin-left: auto; margin-right: 7%; padding: 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(13,27,41,.76); backdrop-filter: blur(10px); }
.fallback-copy .eyebrow { color: var(--light-blue); }
.fallback-copy h3 { color: white; font-size: 22px; }
.fallback-copy p:not(.eyebrow) { margin: 11px 0 15px; color: #aebdca; font-size: 10px; line-height: 1.7; }
.fallback-copy code { display: inline-block; padding: 7px 9px; border-radius: 4px; color: var(--light-blue); background: rgba(42,222,255,.08); font-size: 9px; }
.fallback-pin { position: absolute; z-index: 3; width: 22px; height: 22px; translate: -50% -50%; padding: 0; border: 0; border-radius: 50%; color: white; background: var(--steel-blue); box-shadow: 0 0 0 5px rgba(42,222,255,.16); }
.fallback-pin span { position: absolute; inset: -7px; border: 1px solid rgba(42,222,255,.35); border-radius: 50%; animation: mapPulse 2.2s ease-out infinite; }
.fallback-pin strong { position: relative; font-size: 8px; }
.fallback-pin.warning { background: var(--gold); }.fallback-pin.critical, .fallback-pin.offline { background: var(--red); }
@keyframes mapPulse { 0% { scale: .65; opacity: .9; } 100% { scale: 1.45; opacity: 0; } }

.map-rail { min-width: 0; max-height: 520px; padding: 20px; overflow-y: auto; border-left: 1px solid var(--line); background: #fbfcfe; }
.map-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.map-metrics div { min-width: 0; padding: 10px 5px; text-align: center; border-radius: 6px; background: white; border: 1px solid #e9eef4; }
.map-metrics strong { display: block; color: var(--royal); font-size: 19px; }
.map-metrics span { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 7px; line-height: 1.3; text-transform: uppercase; letter-spacing: .04em; }
.locations-heading { display: flex; justify-content: space-between; margin: 18px 2px 9px; color: var(--petrol); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.locations-heading small { color: #9aa4b1; font-size: 7px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.location-list { display: grid; gap: 7px; max-height: 230px; overflow-y: auto; }
.connection-heading { margin-top: 15px; }
.connection-list { display: grid; gap: 6px; max-height: 185px; overflow-y: auto; }
.connection-row { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid #e6ebf1; border-left: 3px solid var(--steel); border-radius: 6px; background: white; }
.connection-row.healthy { border-left-color: var(--green); }.connection-row.degraded { border-left-color: var(--gold); }.connection-row.critical, .connection-row.down { border-left-color: var(--red); }
.connection-names { min-width: 0; flex: 1; }
.connection-names strong, .connection-names span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.connection-names strong { color: var(--petrol); font-size: 8px; }.connection-names span { margin-top: 3px; color: var(--ink-soft); font-size: 7px; }
.connection-state { flex: 0 0 auto; padding: 4px 6px; border-radius: 99px; color: var(--steel); background: #eef1f4; font-size: 6px; font-weight: 800; white-space: nowrap; }
.connection-state.healthy { color: var(--green); background: var(--green-pale); }.connection-state.degraded { color: var(--amber); background: var(--amber-pale); }.connection-state.critical, .connection-state.down { color: var(--red); background: var(--red-pale); }
.connection-empty { margin: 0; padding: 13px 10px; border: 1px dashed var(--line-dark); border-radius: 6px; color: var(--ink-soft); font-size: 8px; line-height: 1.45; text-align: center; }
.location-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid transparent; border-radius: 7px; text-align: left; background: white; cursor: pointer; transition: .18s ease; }
.location-row:hover { border-color: #cdd9e6; box-shadow: 0 6px 15px rgba(13,27,41,.06); }
.location-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; background: #eef6fc; }
.location-icon img { width: 20px; height: 20px; }
.location-icon.warning { background: var(--amber-pale); }.location-icon.critical, .location-icon.offline { background: var(--red-pale); }
.location-copy { min-width: 0; flex: 1; }
.location-copy strong, .location-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-copy strong { color: var(--petrol); font-size: 9px; }
.location-copy small { margin-top: 4px; color: var(--ink-soft); font-size: 8px; }
.location-copy .location-meta { color: var(--steel-blue); font-size: 7px; }
.location-arrow { color: var(--steel-blue); font-size: 18px; }
.location-empty { padding: 18px 12px; border: 1px dashed var(--line-dark); border-radius: 7px; text-align: center; }
.location-empty strong, .location-empty span { display: block; }.location-empty strong { font-size: 9px; }.location-empty span { margin-top: 6px; color: var(--ink-soft); font-size: 8px; line-height: 1.5; }
.unlocated-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; padding: 13px 15px; border: 1px solid #dce5ee; border-radius: 8px; background: white; }
.unlocated-panel > div:first-child strong, .unlocated-panel > div:first-child span { display: block; }
.unlocated-panel strong { font-size: 9px; }.unlocated-panel > div:first-child span { margin-top: 4px; color: var(--ink-soft); font-size: 8px; }
.unlocated-list { display: flex; justify-content: end; flex-wrap: wrap; gap: 6px; }
.unlocated-chip { padding: 5px 8px; border-radius: 999px; color: #5c6877; background: #eef2f6; font-size: 8px; font-weight: 700; }

.map-pin { position: relative; width: 44px; height: 54px; display: grid; place-items: start center; cursor: pointer; }
.map-overlay-marker { position: absolute; z-index: 2; translate: -50% -100%; }
.map-pin-halo { position: absolute; top: 4px; width: 40px; height: 40px; border-radius: 50%; background: rgba(42,222,255,.2); animation: markerHalo 2.4s ease-out infinite; }
.map-pin-face { position: relative; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; background: var(--royal); box-shadow: 0 7px 16px rgba(13,27,41,.28); }
.map-pin-face img { width: 23px; height: 23px; filter: brightness(0) invert(1); }
.map-pin-tail { position: absolute; z-index: 1; top: 29px; width: 18px; height: 18px; rotate: 45deg; border-right: 3px solid white; border-bottom: 3px solid white; background: var(--royal); }
.map-pin-count { position: absolute; right: -6px; top: -6px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border: 2px solid white; border-radius: 999px; color: var(--petrol); background: var(--light-blue); font-size: 7px; }
.map-pin.warning .map-pin-face, .map-pin.warning .map-pin-tail { background: var(--gold); }
.map-pin.critical .map-pin-face, .map-pin.critical .map-pin-tail, .map-pin.offline .map-pin-face, .map-pin.offline .map-pin-tail { background: var(--red); }
@keyframes markerHalo { 0% { scale: .65; opacity: .8; } 100% { scale: 1.35; opacity: 0; } }
.map-info { min-width: 260px; max-width: 350px; padding: 5px 2px 2px; font-family: "Montserrat", sans-serif; }
.map-info-kicker { margin: 0 0 4px; color: var(--steel-blue); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.map-info-title { color: var(--petrol); font-size: 16px; }
.map-info-list { display: grid; gap: 5px; margin-top: 12px; }
.map-info-row { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 8px; border-radius: 5px; background: #f4f7fa; }
.map-info-row > div { min-width: 0; }
.map-info-row strong, .map-info-row span { display: block; }.map-info-row strong { font-size: 8px; }.map-info-row div span { margin-top: 3px; color: var(--ink-soft); font-size: 7px; }
.map-info-row .map-info-meta { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-top: 6px; }
.map-info-row .map-info-meta .map-info-fact { margin: 0; color: #60758a; line-height: 1.45; }
.map-info-status { padding: 4px 5px; border-radius: 99px; color: var(--green); background: var(--green-pale); font-size: 6px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.map-info-status.warning { color: var(--amber); background: var(--amber-pale); }.map-info-status.critical, .map-info-status.offline { color: var(--red); background: var(--red-pale); }.map-info-status.inventory { color: var(--steel-blue); background: #edf5fb; }

.registry-section { margin-top: 40px; scroll-margin-top: 18px; }
.registry-heading { align-items: center; }
.section-copy { max-width: 680px; margin: 8px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.registry-state { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #c5d3e2; border-radius: 999px; color: var(--steel-blue); background: white; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.registry-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(21,123,201,.11); }
.registry-state.connected { color: var(--green); border-color: #b9e3d6; background: var(--green-pale); }
.registry-state.warning { color: var(--amber); border-color: #efcfaa; background: var(--amber-pale); }
.registry-state.pending::before { animation: registryPulse 1.15s ease-in-out infinite alternate; }
@keyframes registryPulse { to { opacity: .28; transform: scale(.72); } }

.registry-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.registry-metric { position: relative; min-width: 0; min-height: 112px; padding: 17px 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); box-shadow: 0 6px 20px rgba(13,27,41,.03); }
.registry-metric::after { content: ""; position: absolute; right: -25px; bottom: -34px; width: 75px; height: 75px; border: 1px solid rgba(21,123,201,.12); border-radius: 50%; box-shadow: 0 0 0 13px rgba(21,123,201,.025); }
.registry-metric > span { display: block; color: var(--ink-soft); font-size: 8px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.registry-metric strong { position: relative; z-index: 1; display: block; margin-top: 9px; color: var(--royal); font-size: 27px; line-height: 1; }
.registry-metric small { position: relative; z-index: 1; display: block; margin-top: 7px; color: #8793a2; font-size: 8px; }
.registry-metric.warning { border-color: #f0d6b9; background: #fffbf5; }
.registry-metric.warning strong { color: var(--amber); }

.registry-workspace { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); gap: 12px; align-items: start; }
.registry-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); box-shadow: 0 7px 20px rgba(13,27,41,.035); }
.registry-issues-panel { grid-column: 1 / -1; }
.asset-registry-panel { grid-column: 1 / -1; }
.registry-panel-head { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.registry-panel-head h3 { color: var(--petrol); font-size: 13px; letter-spacing: -.015em; }
.registry-panel-head p { margin: 5px 0 0; color: var(--ink-soft); font-size: 8px; line-height: 1.4; }
.review-queue-head { min-height: 61px; }
.review-queue-title { display: flex; align-items: center; gap: 10px; }
.review-queue-icon { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--petrol); background: var(--gold); box-shadow: 0 0 0 4px rgba(229,174,81,.12); font-size: 13px; font-weight: 800; }
.review-readonly { padding: 5px 8px; border: 1px solid var(--line-dark); border-radius: 999px; color: #738092; background: #f7f9fb; font-size: 7px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.registry-issue-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-height: 390px; padding: 11px; overflow-y: auto; background: #f8fafc; }
.registry-issue-card { min-width: 0; padding: 13px 14px; border: 1px solid #dbe4ed; border-left: 4px solid var(--steel-blue); border-radius: 7px; background: white; }
.registry-issue-card.warning { border-color: #f0d6b9; border-left-color: var(--gold); background: #fffcf7; }
.registry-issue-card.critical { border-color: #efc7cb; border-left-color: var(--red); background: #fff8f8; }
.registry-issue-card.collision { grid-column: 1 / -1; }
.review-issue-top { display: flex; align-items: center; gap: 7px; }
.review-severity { padding: 4px 6px; border-radius: 999px; color: var(--steel-blue); background: #edf5fb; font-size: 6px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.review-severity.warning { color: var(--amber); background: var(--amber-pale); }
.review-severity.critical { color: var(--red); background: var(--red-pale); }
.review-type { overflow: hidden; color: #8491a0; font-size: 7px; font-weight: 700; letter-spacing: .045em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.registry-issue-card h4 { margin: 8px 0 0; color: var(--petrol); font-size: 11px; line-height: 1.35; }
.review-narrative { margin: 6px 0 0; color: #5f6e7f; font-size: 8px; line-height: 1.55; }
.critical .review-narrative { color: #764047; }
.review-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.review-fact { min-width: 0; display: flex; align-items: center; gap: 6px; padding: 5px 7px; border: 1px solid #e1e7ed; border-radius: 5px; background: #f4f7fa; }
.review-fact > span { color: #7c8998; font-size: 6px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.review-fact > div { min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.review-fact code { color: var(--petrol); font: 8px/1.2 Consolas, monospace; overflow-wrap: anywhere; }
.review-fact.ip { border-color: #cbd5f2; background: #f0f3ff; }.review-fact.ip code { color: var(--royal); font-weight: 700; }
.review-fact.mac { border-color: #d1e7ef; background: #f0f9fb; }
.review-claims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.review-claim { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 9px; border: 1px solid #ead9db; border-radius: 5px; background: rgba(255,255,255,.82); }
.review-claim > span { padding: 3px 5px; border-radius: 3px; color: var(--red); background: var(--red-pale); font-size: 6px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.review-claim strong, .review-claim small { display: block; overflow-wrap: anywhere; }
.review-claim strong { color: var(--petrol); font-size: 8px; }
.review-claim small { margin-top: 3px; color: #7d8997; font-size: 7px; line-height: 1.4; }
.review-more { align-self: center; color: #7d8997; font-size: 7px; }
.review-queue-empty { grid-column: 1 / -1; min-height: 94px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; color: #7b8898; border: 1px dashed var(--line-dark); border-radius: 7px; background: white; font-size: 8px; }
.review-queue-empty > div strong, .review-queue-empty > div span, .review-queue-empty.error strong, .review-queue-empty.error span { display: block; }
.review-queue-empty > div span, .review-queue-empty.error span { margin-top: 4px; color: #8995a4; line-height: 1.45; }
.review-queue-empty.error { align-items: flex-start; flex-direction: column; color: var(--red); border-color: #efc7cb; background: var(--red-pale); }
.review-clear { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--green); background: var(--green-pale); font-size: 12px; font-weight: 800; }
.registry-search { width: min(330px, 42vw); height: 37px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line-dark); border-radius: 7px; background: #f9fbfd; }
.registry-search:focus-within { border-color: var(--steel-blue); box-shadow: 0 0 0 3px rgba(21,123,201,.09); background: white; }
.registry-search svg { width: 14px; flex: 0 0 auto; fill: none; stroke: #7f8da0; stroke-width: 2; }
.registry-search input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 9px; }
.registry-table-wrap { max-width: 100%; overflow-x: auto; }
.registry-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.registry-table th { padding: 10px 14px; color: #7c8999; background: #f7f9fc; border-bottom: 1px solid var(--line); font-size: 7px; font-weight: 800; letter-spacing: .075em; text-align: left; text-transform: uppercase; }
.registry-table th:first-child { width: 31%; }.registry-table th:nth-child(2) { width: 22%; }.registry-table th:nth-child(3) { width: 24%; }.registry-table th:nth-child(4) { width: 23%; }
.registry-table td { padding: 12px 14px; color: var(--ink-soft); border-bottom: 1px solid #edf1f5; font-size: 9px; line-height: 1.45; vertical-align: middle; overflow-wrap: anywhere; }
.registry-table tbody tr:last-child td { border-bottom: 0; }
.registry-table tbody tr:hover td { background: #fbfcfe; }
.registry-table td > strong { color: var(--petrol); font-size: 9px; }
.asset-cell { min-width: 0; display: flex; align-items: center; gap: 10px; }
.asset-type-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; background: #edf5fb; }
.asset-type-icon img { width: 20px; height: 20px; }
.asset-cell > div { min-width: 0; }
.asset-cell strong, .asset-cell span, .asset-cell small { display: block; }
.asset-cell strong { overflow: hidden; color: var(--petrol); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.asset-cell span { margin-top: 3px; color: var(--steel-blue); font-size: 7px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.asset-cell small { margin-top: 3px; overflow: hidden; color: #8a96a5; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.value-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.value-chip, .allocation-ip { display: inline-block; max-width: 100%; padding: 4px 6px; overflow: hidden; border-radius: 4px; color: var(--petrol); background: #f0f4f8; font: 8px/1.25 Consolas, monospace; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; }
.value-chip.mac { color: #32586f; background: #edf7fb; }
.value-chip.source { color: var(--royal); background: #edf1ff; font-family: "Montserrat", sans-serif; font-weight: 700; }
.registry-empty-value { color: #9aa4b1; font-size: 8px; }
.table-message { height: 96px; color: #8793a2 !important; text-align: center; }
.table-message.error { color: var(--red) !important; background: var(--red-pale); }

.allocation-panel { min-height: 100%; }
.allocation-table { min-width: 0; table-layout: fixed; }
.allocation-table th:first-child { width: 17%; }.allocation-table th:nth-child(2) { width: 25%; }.allocation-table th:nth-child(3) { width: 14%; }.allocation-table th:nth-child(4) { width: 20%; }.allocation-table th:nth-child(5) { width: 24%; }
.allocation-ip { color: var(--royal); background: #edf1ff; font-weight: 700; }
.allocation-form-panel { border-top: 3px solid var(--light-blue); }
.allocation-form-panel .registry-panel-head { min-height: 63px; }
.allocation-form { display: grid; gap: 11px; padding: 16px 17px 18px; }
.allocation-form label { min-width: 0; display: grid; gap: 5px; }
.allocation-form label > span { color: var(--ink-soft); font-size: 7px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.allocation-form input, .allocation-form select { min-width: 0; width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line-dark); border-radius: 6px; outline: 0; color: var(--petrol); background: white; font-size: 9px; }
.allocation-form input:focus, .allocation-form select:focus { border-color: var(--steel-blue); box-shadow: 0 0 0 3px rgba(21,123,201,.1); }
.allocation-form select:disabled { color: #8f9ba8; background: #f2f5f8; }
.allocation-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.allocation-submit { min-height: 40px; border: 0; border-radius: 6px; color: white; background: var(--royal); box-shadow: 0 8px 18px rgba(0,35,152,.16); font-size: 9px; font-weight: 800; cursor: pointer; }
.allocation-submit:hover { background: var(--royal-deep); }
.allocation-submit:focus-visible { outline: 3px solid rgba(42,222,255,.55); outline-offset: 2px; }
.allocation-submit:disabled { cursor: wait; opacity: .63; }
.allocation-feedback { padding: 10px 11px; border: 1px solid #efc7cb; border-radius: 6px; color: var(--red); background: var(--red-pale); font-size: 8px; font-weight: 700; line-height: 1.5; outline: 0; }
.allocation-feedback.duplicate { border-left: 4px solid var(--red); }
.allocation-feedback.success { color: var(--green); border-color: #b9e3d6; background: var(--green-pale); }
.allocation-note { display: flex; align-items: start; gap: 6px; margin: 0; color: #798697; font-size: 7px; line-height: 1.5; }
.allocation-note span { width: 14px; height: 14px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--green); background: var(--green-pale); font-size: 8px; font-weight: 800; }

.itm-section { margin-top: 34px; scroll-margin-top: 18px; }
.itm-heading { min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 21px 23px; border: 1px solid #cddbea; border-top: 3px solid var(--steel-blue); border-radius: 10px 10px 0 0; background: linear-gradient(135deg, #fff, #f2f9fd); box-shadow: 0 8px 24px rgba(13,27,41,.045); }
.itm-heading-copy { min-width: 0; display: flex; align-items: center; gap: 17px; }
.itm-icon { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid #c8eaf4; border-radius: 10px; background: #e8f7fc; }
.itm-icon img { width: 31px; height: 31px; }
.itm-heading h2 { font-size: 25px; }
.itm-heading-copy p:last-child { max-width: 790px; margin: 7px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.itm-heading-actions { display: grid; justify-items: end; gap: 10px; flex: 0 0 auto; }
.itm-heading-actions a { min-height: 34px; display: inline-flex; align-items: center; color: var(--royal); font-size: 9px; font-weight: 800; text-decoration: none; border-bottom: 1px solid #a8b8d2; }
.itm-heading-actions a:focus-visible { outline: 3px solid rgba(42,222,255,.45); outline-offset: 3px; border-radius: 3px; }
.itm-feed-status { min-height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--line-dark); border-radius: 999px; color: #718094; background: #f2f5f8; font-size: 8px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.itm-feed-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.itm-feed-status.healthy { color: var(--green); border-color: #b8dfd4; background: var(--green-pale); }
.itm-feed-status.warning, .itm-feed-status.pending { color: var(--amber); border-color: #efcfaa; background: var(--amber-pale); }
.itm-feed-status.critical { color: var(--red); border-color: #efc7cb; background: var(--red-pale); }

.itm-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px; border: 1px solid var(--line); border-top: 0; background: #eef4f8; }
.itm-summary-card { position: relative; min-width: 0; min-height: 110px; display: flex; flex-direction: column; justify-content: center; gap: 7px; overflow: hidden; padding: 17px 18px; border: 1px solid #d9e3ec; border-radius: 8px; background: white; box-shadow: 0 4px 14px rgba(13,27,41,.035); }
.itm-summary-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--steel-blue); }
.itm-summary-card.healthy::before { background: var(--green); }.itm-summary-card.warning::before { background: var(--gold); }.itm-summary-card.critical::before { background: var(--red); }.itm-summary-card.unknown::before, .itm-summary-card.loading::before { background: #9ca8b5; }
.itm-summary-card > span { color: #7d8998; font-size: 7px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.itm-summary-card > strong { overflow: hidden; color: var(--petrol); font-size: 25px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.itm-summary-card > small { color: #8290a1; font-size: 8px; line-height: 1.35; }
.itm-summary-card.traffic > strong { color: var(--royal); font-size: 20px; }

.itm-network-panel { border: 1px solid var(--line); border-top: 0; background: white; }
.itm-panel-heading { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.itm-panel-heading .eyebrow { margin-bottom: 4px; font-size: 7px; }.itm-panel-heading h3 { color: var(--petrol); font-size: 16px; }
.itm-panel-heading > span { color: #8a96a4; font-size: 7px; font-weight: 700; letter-spacing: .04em; text-align: right; }
.itm-network-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.itm-network-card { min-width: 0; min-height: 112px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 16px 17px; background: #fff; }
.itm-network-card > span { color: #7c8999; font-size: 7px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.itm-network-card > strong { overflow: hidden; color: var(--petrol); font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.itm-network-card > small { min-height: 12px; color: #929ca8; font-size: 7px; line-height: 1.45; }
.itm-network-card.healthy { box-shadow: inset 0 3px 0 var(--green); }.itm-network-card.warning { box-shadow: inset 0 3px 0 var(--gold); }.itm-network-card.critical { box-shadow: inset 0 3px 0 var(--red); }
.itm-network-card.unavailable { background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 8px, #f2f5f8 8px, #f2f5f8 16px); }
.itm-network-card.unavailable > strong { color: #7e8b9b; font-size: 14px; }.itm-network-card.neutral > strong { color: var(--royal); }

.itm-workspace { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr); gap: 12px; margin-top: 12px; }
.itm-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: 0 6px 20px rgba(13,27,41,.035); }
.itm-asset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 11px; background: #f5f8fb; }
.itm-asset-card { min-width: 0; padding: 14px; border: 1px solid #dce5ed; border-top: 3px solid var(--steel-blue); border-radius: 7px; background: white; }
.itm-asset-card.healthy { border-top-color: var(--green); }.itm-asset-card.warning { border-top-color: var(--gold); }.itm-asset-card.critical { border-top-color: var(--red); }.itm-asset-card.stale, .itm-asset-card.unknown { border-top-color: #9ca8b5; }
.itm-card-head { min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.itm-card-head > div { min-width: 0; }.itm-card-head > div > span { color: #8491a0; font-size: 6px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.itm-card-head h4 { margin: 4px 0 0; overflow: hidden; color: var(--petrol); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.itm-tone { padding: 4px 6px; border-radius: 999px; color: var(--steel-blue); background: #eaf4fb; font-size: 6px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.healthy .itm-tone { color: var(--green); background: var(--green-pale); }.warning .itm-tone { color: var(--amber); background: var(--amber-pale); }.critical .itm-tone { color: var(--red); background: var(--red-pale); }.stale .itm-tone, .unknown .itm-tone { color: #768496; background: #edf1f5; }
.itm-capacity-bars { display: grid; gap: 8px; margin-top: 13px; }
.itm-capacity-row > div:first-child { display: flex; justify-content: space-between; gap: 8px; color: #8491a0; font-size: 7px; }.itm-capacity-row strong { color: var(--ink-soft); }
.itm-meter { height: 4px; margin-top: 5px; overflow: hidden; border-radius: 4px; background: #e7ecf1; }.itm-meter i { display: block; max-width: 100%; height: 100%; border-radius: inherit; background: var(--steel-blue); }
.itm-asset-card.warning .itm-meter i { background: var(--gold); }.itm-asset-card.critical .itm-meter i { background: var(--red); }
.itm-card-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 13px; padding-top: 9px; border-top: 1px solid #edf1f5; color: #909ba8; font-size: 6px; }

.itm-tunnel-list { display: grid; gap: 1px; background: var(--line); }
.itm-tunnel-row { min-width: 0; display: grid; grid-template-columns: 8px minmax(120px, 1.35fr) minmax(82px, .7fr) minmax(115px, 1fr) auto; align-items: center; gap: 10px; padding: 12px 13px; background: white; }
.itm-tunnel-mark { width: 7px; height: 7px; border-radius: 50%; background: #94a1af; }.itm-tunnel-row.down .itm-tunnel-mark, .itm-tunnel-row.critical .itm-tunnel-mark { background: var(--red); }.itm-tunnel-row.warning .itm-tunnel-mark { background: var(--gold); }.itm-tunnel-row.stale .itm-tunnel-mark { border: 1px solid #8795a5; background: transparent; }
.itm-tunnel-name { min-width: 0; }.itm-tunnel-name strong, .itm-tunnel-name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.itm-tunnel-name strong { color: var(--petrol); font-size: 8px; }.itm-tunnel-name span { margin-top: 4px; color: #8c98a6; font-size: 6px; }
.itm-tunnel-metric span, .itm-tunnel-state span { display: block; color: #8b97a5; font-size: 6px; font-weight: 700; text-transform: uppercase; }.itm-tunnel-metric strong, .itm-tunnel-state strong { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 7px; line-height: 1.35; }
.itm-tunnel-state { text-align: right; }.itm-tunnel-state strong { color: #718094; }.itm-tunnel-row.down .itm-tunnel-state strong, .itm-tunnel-row.critical .itm-tunnel-state strong { color: var(--red); }.itm-tunnel-row.warning .itm-tunnel-state strong { color: var(--amber); }
.itm-empty { grid-column: 1 / -1; min-height: 104px; display: grid; place-items: center; align-content: center; gap: 6px; padding: 20px; color: #7f8b9a; background: #f8fafc; text-align: center; }.itm-empty strong { color: var(--petrol); font-size: 9px; }.itm-empty span { max-width: 440px; font-size: 7px; line-height: 1.5; }.itm-empty.healthy strong { color: var(--green); }
.itm-coverage { min-height: 42px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 9px 13px; color: #8290a0; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; background: #f7f9fb; font-size: 7px; }.itm-coverage strong { color: var(--petrol); }

.nodes-section { margin-top: 36px; scroll-margin-top: 18px; }
.node-tools { display: flex; gap: 10px; align-items: center; }
.search-box { height: 36px; min-width: 195px; display: flex; align-items: center; gap: 8px; padding: 0 11px; background: var(--panel); border: 1px solid var(--line-dark); border-radius: 7px; }
.search-box:focus-within { border-color: var(--steel-blue); box-shadow: 0 0 0 3px rgba(21,123,201,.09); }
.search-box svg { width: 14px; fill: none; stroke: #7f8da0; stroke-width: 2; }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.filter-group { display: flex; gap: 3px; padding: 3px; border-radius: 8px; background: #e7edf4; }
.filter-button { padding: 6px 10px; border: 0; border-radius: 5px; background: transparent; color: #657184; font-size: 9px; font-weight: 700; cursor: pointer; }
.filter-button.active { color: var(--royal); background: white; box-shadow: 0 2px 7px rgba(13,27,41,.08); }
.node-grid { display: grid; grid-template-columns: repeat(3, minmax(250px, 1fr)); gap: 13px; }
.node-card { min-width: 0; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 7px 20px rgba(13,27,41,.035); transition: transform .2s ease, box-shadow .2s ease; }
.node-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.node-card.warning { border-top: 3px solid var(--gold); padding-top: 16px; }
.node-card.critical, .node-card.offline { border-top: 3px solid var(--red); padding-top: 16px; }
.node-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.node-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.node-icon { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; background: #edf5fb; }
.node-icon img { width: 22px; height: 22px; }
.node-site { margin: 0 0 4px; color: #8290a1; font-size: 7px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.node-name { overflow: hidden; text-overflow: ellipsis; color: var(--petrol); font-size: 18px; white-space: nowrap; }
.node-role { margin: 4px 0 0; color: var(--ink-soft); font-size: 8px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; background: var(--green-pale); color: var(--green); font-size: 7px; font-weight: 800; white-space: nowrap; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.warning .status-pill { color: var(--amber); background: var(--amber-pale); }
.critical .status-pill, .offline .status-pill { color: var(--red); background: var(--red-pale); }
.node-location { display: flex; align-items: center; gap: 6px; margin: 13px 0 0; color: var(--ink-soft); font-size: 8px; }
.node-location span { width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; }
.node-location.mapped { color: var(--steel-blue); }.node-location.mapped span { background: var(--light-blue); border-color: var(--steel-blue); }.node-location.missing { color: #9aa4af; }
.node-overlay { margin: 12px 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; background: #f3f6f9; border-radius: 5px; }
.node-overlay span { color: #7d8998; font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.node-overlay code { overflow: hidden; text-overflow: ellipsis; color: var(--petrol); font-size: 9px; font-weight: 700; white-space: nowrap; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e7ecf1; border-bottom: 1px solid #e7ecf1; }
.check { padding: 11px 6px; text-align: center; }.check + .check { border-left: 1px solid #e7ecf1; }
.check span { display: block; color: #8592a1; font-size: 7px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.check strong { display: block; margin-top: 5px; font-size: 9px; font-weight: 700; text-transform: capitalize; }
.check strong.good { color: var(--green); }.check strong.bad { color: var(--red); }.check strong.unknown { color: #8390a0; }
.resource-row { margin-top: 13px; }
.resource-copy { display: flex; align-items: center; justify-content: space-between; color: #778395; font-size: 8px; }
.resource-copy strong { color: var(--ink-soft); font-weight: 700; }
.progress { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 4px; background: #e7ecf1; }
.progress i { display: block; height: 100%; max-width: 100%; border-radius: inherit; background: var(--light-blue); }
.warning .progress i { background: var(--gold); }.critical .progress i { background: var(--red); }
.issue-copy { min-height: 27px; margin: 11px 0 0; color: var(--ink-soft); font-size: 8px; line-height: 1.55; }
.issue-copy strong { color: var(--amber); }.critical .issue-copy strong, .offline .issue-copy strong { color: var(--red); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.checked { color: #909ba8; font-size: 7px; }
.detail-button { padding: 0; border: 0; border-bottom: 1px solid #a9b5c1; background: none; color: var(--royal); font-size: 8px; font-weight: 800; cursor: pointer; }
.loading-card, .empty-state { grid-column: 1 / -1; min-height: 180px; display: grid; place-items: center; align-content: center; gap: 12px; color: #778395; background: rgba(255,255,255,.55); border: 1px dashed var(--line-dark); border-radius: 9px; font-size: 10px; }
.loader { width: 24px; height: 24px; border: 2px solid #dce5ed; border-top-color: var(--royal); border-radius: 50%; animation: spin .8s linear infinite; }

.runbook-card { margin-top: 36px; padding: 25px; display: grid; grid-template-columns: .8fr 2fr; gap: 35px; color: white; background: var(--petrol); border-radius: 9px; }
.runbook-card h2 { color: white; }.runbook-card .eyebrow { color: var(--light-blue); }
.runbook-card ol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; }
.runbook-card li { display: flex; gap: 10px; padding: 4px 18px; border-left: 1px solid rgba(255,255,255,.13); }
.runbook-card li > span { color: var(--light-blue); font-size: 8px; font-weight: 800; }
.runbook-card li p { margin: 0; color: #9dafbf; font-size: 8px; line-height: 1.55; }
.runbook-card li strong { display: block; margin-bottom: 4px; color: white; font-size: 9px; }
footer { margin-top: 23px; color: #8894a2; font-size: 8px; text-align: center; letter-spacing: .04em; }
footer span { color: var(--steel-blue); font-weight: 700; } footer i { width: 3px; height: 3px; display: inline-block; margin: 0 7px 2px; border-radius: 50%; background: var(--light-blue); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(13,27,41,.42); backdrop-filter: blur(2px); }
.detail-drawer { position: fixed; z-index: 21; inset: 0 0 0 auto; width: min(490px, 92vw); display: flex; flex-direction: column; background: var(--panel); box-shadow: -24px 0 60px rgba(13,27,41,.24); transform: translateX(104%); transition: transform .25s ease; }
.detail-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; gap: 20px; padding: 26px; border-bottom: 1px solid var(--line); }
.drawer-head button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 20px; cursor: pointer; }
.drawer-body { padding: 22px 26px 36px; overflow-y: auto; }
.drawer-status { display: flex; justify-content: space-between; align-items: center; padding: 14px; border-radius: 7px; background: #f3f6f9; font-size: 9px; }
.drawer-section { margin-top: 24px; }.drawer-section h3 { margin: 0 0 10px; color: var(--petrol); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.detail-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.detail-list div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 12px; background: var(--panel); font-size: 9px; }
.detail-list span { color: var(--ink-soft); }.detail-list strong { text-align: right; }
.session-list, .issue-list { display: grid; gap: 7px; }
.session-row, .issue-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 6px; background: #f3f6f9; font-size: 9px; }
.session-row .session-state { color: var(--green); font-weight: 800; text-transform: uppercase; }.session-row .session-state.down { color: var(--red); }.session-row .session-state.unknown { color: var(--amber); }
.issue-row { justify-content: start; color: #754b2d; background: var(--amber-pale); }
.raw-output { max-height: 260px; overflow: auto; margin: 0; padding: 13px; border-radius: 6px; color: #c4d4e1; background: var(--petrol); font: 9px/1.55 Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.toast { position: fixed; z-index: 40; right: 24px; bottom: 24px; padding: 11px 15px; border-radius: 7px; color: white; background: var(--royal); box-shadow: var(--shadow); font-size: 9px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

/* Operational UI rework -------------------------------------------------- */
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: white;
  background: var(--royal);
  border: 2px solid var(--light-blue);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .16s ease;
}
.skip-link:focus { transform: translateY(0); }

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 3px solid var(--steel-blue);
  outline-offset: 3px;
}
.sidebar :where(a, button, input, select, [tabindex]):focus-visible,
.runbook-card :where(a, button, input, select, [tabindex]):focus-visible {
  outline-color: var(--light-blue);
}

/* Labels and operational values must remain legible at normal zoom. */
.eyebrow,
.metric-label,
.map-filter > span,
.map-metrics span,
.locations-heading,
.registry-metric > span,
.review-readonly,
.review-severity,
.review-type,
.review-fact > span,
.registry-table th,
.allocation-form label > span,
.node-site,
.node-overlay span,
.check span,
.drawer-section h3 {
  font-size: 12px;
}
.nav-item,
.brand span,
.read-only,
.mode-badge,
.sidebar-foot p,
.lede,
.update-meta,
.refresh-button,
.notice strong,
.notice p,
.summary-head,
.summary-value small,
.summary-card small,
.attention-heading strong,
.attention-heading p,
.attention-list span,
.map-provider,
.map-filter select,
.map-filter-summary,
.location-copy strong,
.location-copy small,
.location-copy .location-meta,
.location-empty strong,
.location-empty span,
.unlocated-panel strong,
.unlocated-panel > div:first-child span,
.unlocated-chip,
.section-copy,
.registry-state,
.registry-metric small,
.registry-panel-head p,
.review-narrative,
.review-claim strong,
.review-claim small,
.review-more,
.review-queue-empty,
.registry-search input,
.registry-table td,
.asset-cell strong,
.asset-cell small,
.value-chip,
.allocation-ip,
.registry-empty-value,
.allocation-form input,
.allocation-form select,
.allocation-feedback,
.allocation-note,
.search-box input,
.filter-button,
.node-role,
.status-pill,
.node-location,
.node-overlay code,
.check strong,
.resource-copy,
.issue-copy,
.checked,
.detail-button,
.loading-card,
.empty-state,
.runbook-card li p,
.runbook-card li strong,
.drawer-status,
.detail-list div,
.session-row,
.issue-row,
.raw-output,
.toast {
  font-size: 12px;
}
.trend,
.map-provider-badge,
.locations-heading small,
.map-info-kicker,
.map-info-row strong,
.map-info-row div span,
.map-info-status,
.review-fact code,
.runbook-card li > span,
footer {
  font-size: 11px;
}

.refresh-button,
.map-filter select,
.location-row,
.registry-search,
.search-box,
.filter-button,
.detail-button,
.drawer-head button {
  min-height: 44px;
}

.registry-command-bar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 14px 16px;
  color: white;
  background: var(--petrol-soft);
  border: 1px solid rgba(42, 222, 255, .18);
  border-radius: 9px;
  box-shadow: 0 10px 26px rgba(13, 27, 41, .1);
}
.registry-command-bar > div { min-width: 0; }
.registry-command-bar strong,
.registry-command-bar span { display: block; }
.registry-command-bar strong { font-size: 14px; }
.registry-command-bar > div > span { margin-top: 4px; color: #b8c7d5; font-size: 12px; }
.registry-command-bar .registry-search { flex: 0 1 430px; width: min(430px, 46vw); background: white; }

.ip-lookup-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.6fr) minmax(220px, .7fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #cddbea;
  border-top: 3px solid var(--light-blue);
  border-radius: 9px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 8px 24px rgba(13, 27, 41, .045);
}
.ip-lookup-intro {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.lookup-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #e8f7fc;
  border: 1px solid #c8eaf4;
}
.lookup-icon img { width: 27px; height: 27px; }
.ip-lookup-intro h3 { color: var(--petrol); font-size: 18px; }
.ip-lookup-intro p:not(.eyebrow) { margin: 7px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }

.ip-lookup-form {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.ip-lookup-form > label {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.ip-lookup-form > label > span,
.lookup-scheme legend,
.lookup-result-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.ip-lookup-form label small { font-size: 11px; font-weight: 600; text-transform: none; }
.ip-lookup-form input[type="text"],
.ip-lookup-form select,
.lookup-submit {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  color: var(--petrol);
  background: white;
  font-size: 13px;
}
.ip-lookup-form input[type="text"]:focus,
.ip-lookup-form select:focus { border-color: var(--steel-blue); box-shadow: 0 0 0 3px rgba(21, 123, 201, .12); outline: 0; }
.lookup-submit {
  grid-column: 1 / -1;
  width: 100%;
  padding-inline: 17px;
  border-color: var(--royal);
  color: white;
  background: var(--royal);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.lookup-submit:hover { background: var(--royal-deep); }
.lookup-submit:disabled { cursor: wait; opacity: .65; }
.lookup-scheme {
  min-width: 0;
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  grid-column: 1 / -1;
}
.lookup-scheme legend { width: 100%; margin-bottom: 1px; }
.lookup-scheme label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  color: var(--ink-soft);
  background: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lookup-scheme label:has(input:checked) { color: var(--royal); border-color: #9fb5ee; background: #eef2ff; }
.lookup-scheme input { width: 17px; height: 17px; margin: 0; accent-color: var(--royal); }

.ip-lookup-result {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px 15px;
  border: 1px solid #c8d8e7;
  border-left: 4px solid var(--steel-blue);
  border-radius: 8px;
  background: #eef6fc;
}
.ip-lookup-result strong { color: var(--petrol); font: 700 18px/1.25 Consolas, monospace; overflow-wrap: anywhere; }
.ip-lookup-result p { margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.ip-lookup-result.available,
.ip-lookup-result.success { border-color: #b9e3d6; border-left-color: var(--green); background: var(--green-pale); }
.ip-lookup-result.available .lookup-result-label,
.ip-lookup-result.success .lookup-result-label { color: var(--green); }
.ip-lookup-result.unavailable,
.ip-lookup-result.blocked,
.ip-lookup-result.error { border-color: #efc7cb; border-left-color: var(--red); background: var(--red-pale); }
.ip-lookup-result.unavailable .lookup-result-label,
.ip-lookup-result.blocked .lookup-result-label,
.ip-lookup-result.error .lookup-result-label { color: var(--red); }

.group-ip-lookup {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.55fr) minmax(230px, .72fr);
  align-items: stretch;
  gap: 16px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, #f8fbfe, #f2f7fb);
}
.group-ip-lookup-intro { min-width: 0; display: flex; align-items: flex-start; gap: 11px; }
.group-ip-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #c8eaf4; border-radius: 8px; background: #e8f7fc; }
.group-ip-icon img { width: 24px; height: 24px; }
.group-ip-lookup-intro h4 { margin: 0; color: var(--petrol); font-size: 16px; line-height: 1.3; }
.group-ip-lookup-intro p:not(.eyebrow) { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.group-ip-lookup-form {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 9px;
}
.group-ip-lookup-form > label { min-width: 0; display: grid; gap: 5px; }
.group-ip-lookup-form > label > span { color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.group-ip-lookup-form label small { font-size: 10px; font-weight: 600; text-transform: none; }
.group-ip-lookup-form input,
.group-ip-lookup-form select,
.group-ip-lookup-form .lookup-submit { min-width: 0; width: 100%; min-height: 44px; border-radius: 7px; font-size: 12px; }
.group-ip-lookup-form input,
.group-ip-lookup-form select { padding: 0 11px; border: 1px solid var(--line-dark); color: var(--petrol); background: white; }
.group-ip-lookup-form input:focus,
.group-ip-lookup-form select:focus { border-color: var(--steel-blue); box-shadow: 0 0 0 3px rgba(21, 123, 201, .12); outline: 0; }
.group-ip-lookup-form input:disabled,
.group-ip-lookup-form select:disabled { color: #7f8b99; background: #edf2f6; cursor: not-allowed; }
.group-ip-lookup-form .lookup-submit { grid-column: auto; align-self: end; }
.group-ip-lookup > .ip-lookup-result { min-height: 116px; }
.group-ip-lookup > .ip-lookup-result small { color: var(--ink-soft); font-size: 11px; line-height: 1.4; }

.registry-asset-groups {
  min-width: 0;
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}
.registry-groups-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--ink-soft);
  border: 1px dashed var(--line-dark);
  border-radius: 9px;
  background: rgba(255, 255, 255, .65);
  font-size: 13px;
}
.registry-asset-group {
  min-width: 0;
  overflow: hidden;
  scroll-margin-top: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: #f9fbfd;
  box-shadow: 0 8px 24px rgba(13, 27, 41, .045);
}
.registry-asset-group[data-registry-group="infrastructure"] .asset-group-icon { color: var(--royal); background: #edf2ff; border-color: #d5def8; }
.registry-asset-group[data-registry-group="opennebula"] .asset-group-icon { color: var(--steel-blue); background: #e8f7fc; border-color: #c8eaf4; }
.registry-asset-group[data-registry-group="kubernetes"] .asset-group-icon { color: var(--royal); background: #eef2ff; border-color: #cfd9f7; }
.registry-asset-group[data-registry-group="apn"] .asset-group-icon { color: #7d4e1b; background: var(--amber-pale); border-color: #efcfaa; }
.registry-asset-group[data-registry-group="wireguard"] .asset-group-icon { color: var(--green); background: var(--green-pale); border-color: #b9e3d6; }
.registry-asset-group[data-registry-group="cpe"] .asset-group-icon { color: var(--petrol); background: #edf3f7; border-color: #d3dfe8; }
.asset-group-head {
  min-width: 0;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: inherit;
  background: white;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
button.asset-group-head { width: 100%; cursor: pointer; }
.asset-group-head > div:not(.asset-group-icon) { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.asset-group-head h3 { color: var(--petrol); font-size: 20px; line-height: 1.2; }
.asset-group-head > div > h3 { order: -1; }
.asset-group-head p { margin: 5px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.asset-group-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--royal);
  background: #edf2ff;
  border: 1px solid #d5def8;
  font-size: 14px;
  font-weight: 800;
}
.asset-group-icon img { width: 27px; height: 27px; object-fit: contain; }
.asset-group-count {
  min-width: 34px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--royal);
  background: #edf2ff;
  font-size: 12px;
  font-weight: 800;
}
.asset-group-toggle {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  color: var(--royal);
  background: white;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.asset-group-toggle:hover { border-color: #9eb0c4; background: #f6f9fc; }
.asset-group-toggle svg { width: 18px; height: 18px; transition: transform .18s ease; }
.asset-group-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }

.registry-card-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}
.registry-group-empty { grid-column: 1 / -1; min-height: 88px; display: grid; place-items: center; padding: 20px; border: 1px dashed var(--line-dark); border-radius: 8px; color: var(--ink-soft); background: white; font-size: 13px; text-align: center; }
.registry-asset-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce4ed;
  border-top: 3px solid var(--steel-blue);
  border-radius: 9px;
  background: white;
  box-shadow: 0 5px 16px rgba(13, 27, 41, .04);
}
.registry-asset-card:hover { border-color: #bfcddd; box-shadow: 0 10px 24px rgba(13, 27, 41, .08); }
.registry-asset-card.warning { border-top-color: var(--gold); }
.registry-asset-card.critical,
.registry-asset-card.conflict { border-top-color: var(--red); }
.asset-card-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: flex-start;
  gap: 12px;
  padding: 15px 15px 13px;
  border-bottom: 1px solid #edf1f5;
}
.asset-card-head > div { min-width: 0; }
.asset-card-head h4 { margin: 0; color: var(--petrol); font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.asset-card-head p { margin: 5px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.asset-card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #edf5fb;
}
.asset-card-icon img { width: 23px; height: 23px; object-fit: contain; }
.asset-card-identity { flex: 1; }
.asset-card-identity > span,
.asset-card-identity > small { display: block; color: var(--ink-soft); font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.asset-card-identity > span { margin-bottom: 4px; color: var(--steel-blue); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.asset-card-identity > small { margin-top: 4px; }
.asset-card-status {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-pale);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  grid-column: 2;
  justify-self: start;
}
.asset-card-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.asset-card-status.inventory,
.asset-card-status.unknown { color: var(--steel-blue); background: #edf5fb; }
.asset-card-status.warning { color: var(--amber); background: var(--amber-pale); }
.asset-card-status.critical,
.asset-card-status.conflict,
.asset-card-status.offline { color: var(--red); background: var(--red-pale); }
.asset-card-issue {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 15px 0;
  padding: 7px 9px;
  border-radius: 6px;
  color: #754b2d;
  background: var(--amber-pale);
  font-size: 12px;
  font-weight: 700;
}
.asset-card-issue > span {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--petrol);
  background: var(--gold);
  font-weight: 900;
}
.asset-card-body { min-width: 0; flex: 1; padding: 14px 15px; }
.asset-card-facts {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 14px 15px;
}
.asset-field {
  min-width: 0;
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid #e5eaf0;
  border-radius: 7px;
  background: #f7f9fc;
}
.asset-field.wide,
.asset-field.full { grid-column: 1 / -1; }
.asset-field > span,
.asset-field > small,
.asset-field dt { color: #6d7b8d; font-size: 12px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.asset-field dt,
.asset-field dd { min-width: 0; margin: 0; }
.asset-field strong,
.asset-field code,
.asset-field a,
.asset-field-text { min-width: 0; color: var(--petrol); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.asset-field code { color: var(--royal); font-family: Consolas, monospace; font-weight: 700; }
.asset-field a { color: var(--royal); }
.asset-card-footer,
.asset-card-foot {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding: 10px 15px;
  border-top: 1px solid #edf1f5;
  background: #fbfcfe;
  color: var(--ink-soft);
  font-size: 12px;
}
.asset-card-footer > *,
.asset-card-foot > * { min-width: 0; overflow-wrap: anywhere; }
.asset-card-foot > div { display: grid; gap: 3px; }
.asset-card-foot > div > span { color: #6d7b8d; font-size: 12px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.asset-card-foot small { color: var(--ink-soft); font-size: 12px; line-height: 1.4; }
.config-ready {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #b9e3d6;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-pale);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.config-ready::before { content: "✓"; font-weight: 900; }
.config-ready.pending,
.config-ready.incomplete { color: var(--amber); border-color: #efcfaa; background: var(--amber-pale); }
.config-ready.pending::before,
.config-ready.incomplete::before { content: "!"; }

.value-chip.ip { color: var(--royal); background: #edf1ff; }
.value-chip.inet { color: #0b6550; background: var(--green-pale); }

.registry-support-workspace { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.registry-support-workspace .registry-issues-panel { grid-column: auto; }

@media (max-width: 1180px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .itm-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .itm-network-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .itm-asset-grid { grid-template-columns: 1fr; }
  .registry-summary { grid-template-columns: repeat(2, 1fr); }
  .node-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-lookup-panel { grid-template-columns: 1fr; }
  .group-ip-lookup { grid-template-columns: 1fr; }
  .registry-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-card { grid-template-columns: minmax(0, 1fr) 270px; }
  .runbook-card { grid-template-columns: 1fr; }
  .runbook-card ol { margin-left: -18px; }
}

@media (max-width: 900px) {
  .itm-workspace { grid-template-columns: 1fr; }
  .itm-network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .itm-asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-filters { align-items: stretch; flex-wrap: wrap; }
  .map-filter { min-width: calc(50% - 5px); flex: 1; }
  .map-filter-summary { width: 100%; margin: 2px 0 0; }
  .map-card { grid-template-columns: 1fr; }
  .map-stage, .google-map { min-height: 440px; }
  .map-rail { max-height: none; border-left: 0; border-top: 1px solid var(--line); }
  .location-list { max-height: 230px; }
  .location-list { grid-template-columns: repeat(2, 1fr); }
  .connection-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
  .ip-lookup-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lookup-submit { width: 100%; }
  .registry-workspace { grid-template-columns: 1fr; }
  .asset-registry-panel { grid-column: auto; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: auto; height: auto; padding: 16px 18px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; overflow: visible; }
  .sidebar::before { display: none; }.brand { width: 120px; border: 0; padding: 0; }.brand img { width: 104px; height: 36px; }.brand span { display: none; }
  .sidebar nav { width: 100%; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .nav-item { min-width: 0; min-height: 44px; justify-content: flex-start; padding: 8px 10px; text-align: left; }
  .nav-index { display: inline; flex: 0 0 auto; }.sidebar-foot { display: none; }
  main { padding: 26px 18px; }.topbar { align-items: start; }.topbar-actions { display: block; }.update-meta { justify-content: end; margin-bottom: 10px; }
  .lede { max-width: 430px; }.summary-grid { grid-template-columns: 1fr 1fr; }.summary-card { min-height: 122px; }
  .itm-heading { align-items: flex-start; flex-direction: column; }
  .itm-heading-actions { width: 100%; display: flex; align-items: center; justify-content: space-between; }
  .itm-panel-heading { align-items: flex-start; }
  .section-heading { align-items: start; flex-direction: column; }.map-provider { align-items: flex-start; flex-direction: column; }
  .connection-legend-title { width: 100%; margin-right: 0; }
  .registry-heading { align-items: flex-start; }
  .registry-command-bar { align-items: stretch; flex-direction: column; }
  .registry-command-bar .registry-search { width: 100%; flex-basis: auto; }
  .registry-card-grid { grid-template-columns: 1fr; }
  .asset-group-head { align-items: flex-start; flex-wrap: wrap; }
  .asset-group-head > div:not(.asset-group-icon) { flex-basis: calc(100% - 64px); }
  .registry-panel-head { align-items: flex-start; flex-direction: column; }
  .review-queue-head { align-items: center; flex-direction: row; }
  .registry-issue-list { grid-template-columns: 1fr; max-height: none; overflow: visible; }
  .registry-issue-card.collision { grid-column: auto; }
  .registry-search { width: 100%; }
  .node-tools { width: 100%; }.search-box { flex: 1; }.node-grid { grid-template-columns: 1fr; }
  .attention-panel, .unlocated-panel { align-items: start; flex-direction: column; }.attention-list, .unlocated-list { justify-content: start; }
  .runbook-card ol { grid-template-columns: 1fr 1fr; row-gap: 16px; }
}

@media (max-width: 540px) {
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar nav .nav-item:nth-child(n+4) { display: flex; }
  .topbar { flex-direction: column; }.topbar-actions { width: 100%; display: flex; justify-content: space-between; }.update-meta { margin: 0; }
  .summary-grid { grid-template-columns: 1fr; }.summary-card { min-height: 105px; }
  .itm-heading { padding: 17px; }.itm-heading-copy { align-items: flex-start; }.itm-icon { width: 46px; height: 46px; flex: 0 0 auto; }
  .itm-summary-grid, .itm-network-grid, .itm-asset-grid { grid-template-columns: 1fr; }
  .itm-panel-heading { flex-direction: column; }.itm-panel-heading > span { text-align: left; }
  .itm-tunnel-row { grid-template-columns: 8px minmax(0, 1fr) auto; gap: 8px; }
  .itm-tunnel-metric { grid-column: 2 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .itm-tunnel-metric strong { text-align: right; }.itm-tunnel-state { grid-column: 3; grid-row: 1; }
  .itm-coverage { align-items: flex-start; flex-direction: column; }
  .registry-summary { grid-template-columns: 1fr 1fr; }
  .registry-metric { min-height: 104px; padding: 15px; }
  .registry-metric strong { font-size: 24px; }
  .ip-lookup-panel { padding: 14px; }
  .registry-search input,
  .search-box input,
  .ip-lookup-form input[type="text"],
  .ip-lookup-form select,
  .group-ip-lookup-form input,
  .group-ip-lookup-form select,
  .map-filter select { font-size: 16px; }
  .ip-lookup-form { grid-template-columns: 1fr; }
  .group-ip-lookup-form { grid-template-columns: 1fr; }
  .lookup-scheme { display: grid; grid-template-columns: 1fr; }
  .lookup-scheme legend { grid-column: 1; }
  .lookup-scheme label { width: 100%; }
  .registry-card-grid { grid-template-columns: 1fr; padding: 10px; }
  .group-ip-lookup { padding: 13px; }
  .group-ip-lookup-form .lookup-submit { grid-column: 1; }
  .asset-group-head { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: start; padding: 13px; }
  .asset-group-head > div:not(.asset-group-icon) { flex-basis: auto; }
  .asset-group-count { grid-column: 1; justify-self: center; margin: 0; }
  .asset-group-toggle { grid-column: 2; width: 100%; }
  .asset-card-facts { grid-template-columns: 1fr; }
  .asset-field.wide, .asset-field.full { grid-column: auto; }
  .asset-card-head { flex-direction: column; }
  .registry-table, .allocation-table { min-width: 0; table-layout: auto; }
  .registry-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .registry-table, .registry-table tbody, .registry-table tr, .registry-table td { display: block; width: 100%; }
  .registry-table tbody { padding: 8px; }
  .registry-table tbody tr { margin-bottom: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: white; }
  .registry-table tbody tr:last-child { margin-bottom: 0; }
  .registry-table td { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 10px; padding: 10px; border-bottom: 1px solid #edf1f5; }
  .registry-table td::before { content: attr(data-label); color: #7c8999; font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .registry-table .table-message { height: auto; min-height: 82px; display: grid; place-items: center; }
  .registry-table .table-message::before { display: none; }
  .review-claims { grid-template-columns: 1fr; }
  .allocation-form-row { grid-template-columns: 1fr; }
  .map-stage, .google-map { min-height: 400px; }.fallback-surface { left: 0; width: 100%; opacity: .35; }.fallback-copy { width: calc(100% - 36px); margin: auto; }
  .map-filter { min-width: calc(50% - 5px); }
  .connection-list { grid-template-columns: 1fr; }
  .location-list { grid-template-columns: 1fr; }.node-tools { align-items: stretch; flex-direction: column; }.filter-group { width: fit-content; }
  .runbook-card ol { grid-template-columns: 1fr; }.notice { align-items: start; }.notice p { display: block; margin: 4px 0 0; }
  .toast { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
}
