:root {
  --canvas: #05070d;
  --canvas-raised: #080c15;
  --surface: rgba(11, 16, 28, 0.78);
  --surface-strong: rgba(14, 20, 35, 0.94);
  --surface-soft: rgba(18, 26, 43, 0.58);
  --surface-hover: rgba(21, 31, 51, 0.86);
  --border: rgba(142, 176, 211, 0.13);
  --border-strong: rgba(118, 211, 236, 0.26);
  --border-violet: rgba(155, 140, 255, 0.26);
  --text: #f2f7fb;
  --text-soft: #bdc9d7;
  --text-muted: #7f90a6;
  --text-faint: #58677b;
  --cyan: #55e6ff;
  --cyan-strong: #16c8e8;
  --cyan-soft: rgba(85, 230, 255, 0.12);
  --violet: #9b8cff;
  --violet-soft: rgba(155, 140, 255, 0.13);
  --blue: #6aa8ff;
  --amber: #ffc46b;
  --red: #ff6f91;
  --green: #5ee6ad;
  --shadow-panel: 0 28px 80px rgba(0, 0, 0, 0.34);
  --shadow-card: 0 18px 42px rgba(0, 0, 0, 0.22);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sidebar-width: 248px;
  --topbar-height: 78px;
  --pointer-x: 65vw;
  --pointer-y: 18vh;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  min-width: 320px;
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

::selection { background: rgba(85, 230, 255, 0.26); color: #fff; }

.hidden { display: none !important; }
.flex { display: flex !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--canvas);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.ambient-stage,
.ambient-stage > * {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.ambient-stage { z-index: 0; overflow: hidden; background: radial-gradient(circle at 50% -20%, #101b30 0, var(--canvas) 48%); }
.ambient-grid {
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(118, 178, 211, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 178, 211, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 78%);
}
.ambient-grid::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: linear-gradient(112deg, transparent 42%, rgba(85,230,255,.07) 49%, transparent 56%);
  animation: grid-scan 18s linear infinite;
}
.ambient-orb {
  inset: auto;
  width: 46vw;
  height: 46vw;
  min-width: 480px;
  min-height: 480px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  will-change: transform;
}
.ambient-orb-cyan {
  top: -20vw;
  right: -14vw;
  background: #18b8dc;
  animation: drift-cyan 22s ease-in-out infinite alternate;
}
.ambient-orb-violet {
  bottom: -30vw;
  left: 5vw;
  background: #604bdb;
  animation: drift-violet 28s ease-in-out infinite alternate;
}
.ambient-pointer {
  background: radial-gradient(420px circle at var(--pointer-x) var(--pointer-y), rgba(85,230,255,.07), transparent 70%);
}
.ambient-noise {
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes grid-scan { to { transform: translate3d(38%, 22%, 0); } }
@keyframes drift-cyan { to { transform: translate3d(-12vw, 15vh, 0) scale(1.12); } }
@keyframes drift-violet { to { transform: translate3d(15vw, -12vh, 0) scale(.88); } }

.app-root { position: relative; z-index: 1; min-height: 100vh; }
.command-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }

.command-sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  border-right: 1px solid var(--border);
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(22px) saturate(130%);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 26px; }
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(85,230,255,.3);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(85,230,255,.14), rgba(155,140,255,.08));
  color: var(--cyan);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 28px rgba(85,230,255,.08);
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(85,230,255,.18));
}
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 13px; letter-spacing: .17em; }
.brand-copy small { color: var(--text-muted); font-size: 12px; }

.side-nav { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.side-nav-label {
  margin: 22px 11px 7px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.side-nav-label:first-child { margin-top: 0; }
.side-nav-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.side-nav-item svg,
.btn > svg,
.icon-label-btn svg,
.data-tool-actions svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.side-nav-item:hover { color: var(--text); background: rgba(255,255,255,.035); transform: translateX(2px); }
.side-nav-item.is-active {
  color: var(--cyan);
  border-color: rgba(85,230,255,.16);
  background: linear-gradient(90deg, rgba(85,230,255,.12), rgba(85,230,255,.035));
  box-shadow: inset 3px 0 0 var(--cyan);
}
.side-nav-item-warning:hover { color: var(--amber); }
.command-workspace { grid-column: 2; min-width: 0; }
.command-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 3vw, 48px);
  border-bottom: 1px solid var(--border);
  background: rgba(5, 8, 14, 0.72);
  backdrop-filter: blur(22px) saturate(135%);
}
.search-wrap { position: relative; width: min(620px, 62vw); }
.search-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 66px 0 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 21, 35, .74);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.search-wrap input::placeholder { color: var(--text-faint); }
.search-wrap input:focus { border-color: rgba(85,230,255,.42); background: rgba(17,24,39,.94); box-shadow: 0 0 0 4px rgba(85,230,255,.075), 0 12px 35px rgba(0,0,0,.18); }
.search-icon { position: absolute; left: 16px; top: 50%; width: 19px; transform: translateY(-50%); fill: none; stroke: var(--text-muted); stroke-width: 1.8; stroke-linecap: round; }
.search-kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); min-width: 44px; padding: 5px 7px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.035); color: var(--text-faint); font-family: var(--font-mono); font-size: 11px; cursor: pointer; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.sync-pill { max-width: 260px; overflow: hidden; color: var(--text-faint); font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.icon-label-btn { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.025); color: var(--text-muted); cursor: pointer; transition: 160ms ease; }
.icon-label-btn:hover { color: var(--red); border-color: rgba(255,111,145,.24); background: rgba(255,111,145,.07); }

.command-content { width: min(100%, 1580px); margin: 0 auto; padding: clamp(24px, 3vw, 48px); }
#overviewTop { scroll-margin-top: calc(var(--topbar-height) + 14px); }

.hero-card {
  position: relative;
  min-height: 180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 18px 28px;
  align-items: center;
  overflow: clip;
  padding: 24px 28px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background:
    linear-gradient(110deg, rgba(10,16,29,.96) 0%, rgba(12,20,35,.9) 50%, rgba(20,24,48,.76) 100%),
    radial-gradient(circle at 84% 40%, rgba(85,230,255,.14), transparent 38%);
  box-shadow: var(--shadow-panel), inset 0 1px 0 rgba(255,255,255,.055);
}
.hero-card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(85,230,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(85,230,255,.035) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent 28%, #000); opacity: .75; }
.hero-card::after { content: ""; position: absolute; inset: auto -15% -65% 35%; height: 120%; border: 1px solid rgba(85,230,255,.1); border-radius: 50%; box-shadow: 0 0 100px rgba(85,230,255,.05); }
.hero-copy, .hero-actions, .hero-orbit { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--cyan); font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow > span { width: 18px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.hero-copy .eyebrow { margin-bottom: 8px; }
.hero-copy h1 { margin: 0; font-size: clamp(28px, 3vw, 36px); font-weight: 630; letter-spacing: -.045em; line-height: 1.1; }
.hero-copy p { margin: 8px 0 0; color: var(--text-muted); font-size: 16px; line-height: 1.5; }
.hero-actions { grid-column: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-orbit { grid-column: 2; grid-row: 1 / 3; width: 160px; aspect-ratio: 1; justify-self: end; display: grid; place-items: center; opacity: .92; pointer-events: none; }
.orbit-ring { position: absolute; inset: 12%; border: 1px solid rgba(85,230,255,.18); border-radius: 50%; animation: orbit-spin 22s linear infinite; }
.orbit-ring::before, .orbit-ring::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.orbit-ring::before { top: 7%; left: 23%; }.orbit-ring::after { right: -3px; top: 50%; }
.orbit-ring-two { inset: 25%; border-color: rgba(155,140,255,.25); animation-direction: reverse; animation-duration: 14s; }
.orbit-ring-two::before { background: var(--violet); box-shadow: 0 0 16px var(--violet); }
.orbit-ring-two::after { display: none; }
.orbit-core { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(85,230,255,.4); border-radius: 16px; background: linear-gradient(145deg, rgba(85,230,255,.17), rgba(155,140,255,.1)); color: var(--cyan); box-shadow: 0 0 55px rgba(85,230,255,.16), inset 0 1px 0 rgba(255,255,255,.1); animation: core-breathe 4s ease-in-out infinite; }
.orbit-core svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.orbit-node { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--text); box-shadow: 0 0 12px var(--cyan); }.orbit-node-one{top:9%;right:29%}.orbit-node-two{bottom:18%;left:16%}.orbit-node-three{top:34%;left:2%}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes core-breathe { 50% { transform: scale(1.04); box-shadow: 0 0 75px rgba(85,230,255,.24), inset 0 1px 0 rgba(255,255,255,.14); } }

.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 650; line-height: 1.2; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.btn-primary { color: #031117; background: linear-gradient(135deg, #a1f5ff, var(--cyan)); box-shadow: 0 10px 30px rgba(85,230,255,.17); }
.btn-primary:hover { box-shadow: 0 14px 38px rgba(85,230,255,.25); }
.btn-secondary { border-color: var(--border); background: rgba(255,255,255,.045); color: var(--text-soft); }
.btn-secondary:hover { border-color: var(--border-strong); background: rgba(85,230,255,.07); color: var(--text); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-muted); }
.btn-ghost:hover { border-color: var(--border); background: rgba(255,255,255,.035); color: var(--cyan); }
.btn-warning { border-color: rgba(255,196,107,.2); background: rgba(255,196,107,.09); color: var(--amber); }
.btn-warning:hover { border-color: rgba(255,196,107,.4); background: rgba(255,196,107,.14); }
.btn-danger { border-color: rgba(255,111,145,.2); background: rgba(255,111,145,.08); color: var(--red); }
.btn-sm { min-height: 38px; padding: 8px 13px; font-size: 13px; }
.btn-full { width: 100%; }
.btn-plus { font-size: 20px; font-weight: 400; line-height: 0; transform: translateY(-1px); }
.file-btn { position: relative; cursor: pointer; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 12px 0 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.stat-card { min-width: 0; min-height: 66px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.stat-card + .stat-card { border-left: 1px solid var(--border); }
.stat-icon { width: 30px; height: 30px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--cyan-soft); color: var(--cyan); }
.stat-icon svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stat-card > div:last-child { min-width: 0; display: flex; align-items: center; gap: 8px; }
.stat-card strong { font-family: var(--font-mono); font-size: 22px; line-height: 1.1; letter-spacing: -.04em; }
.stat-card span { color: var(--text-muted); font-size: 14px; line-height: 1.35; }
.stat-card-violet .stat-icon { color: var(--violet); background: var(--violet-soft); }.stat-card-blue .stat-icon { color: var(--blue); background: rgba(106,168,255,.12); }.stat-card-amber .stat-icon { color: var(--amber); background: rgba(255,196,107,.1); }

.app-sections { display: grid; gap: 24px; }
.section-block, .view-panel { scroll-margin-top: calc(var(--topbar-height) + 22px); padding: clamp(24px, 3vw, 38px); border: 1px solid var(--border); border-radius: 21px; background: var(--surface); box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.035); backdrop-filter: blur(18px); animation: view-enter 300ms ease both; }
@keyframes view-enter { from { opacity: 0; transform: translateY(8px); } }
.section-head, .view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-kicker { margin-bottom: 8px; color: var(--cyan); font-family: var(--font-mono); font-size: 10px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.section-kicker-warning { color: var(--amber); }
.section-title-row { display: flex; align-items: center; gap: 11px; }
.section-title, .view-heading h2 { margin: 0; color: var(--text); font-size: clamp(23px, 2vw, 31px); font-weight: 620; letter-spacing: -.035em; line-height: 1.15; }
.section-title-icon, .panel-title-icon { display: grid; flex: 0 0 auto; place-items: center; color: var(--cyan); }
.section-title-icon { width: 32px; height: 32px; border: 1px solid rgba(85,230,255,.15); border-radius: 9px; background: var(--cyan-soft); }
.section-title-icon-warning { color: var(--amber); border-color: rgba(255,196,107,.2); background: rgba(255,196,107,.08); }
.section-title-icon svg, .panel-title-icon svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.section-description, .view-heading p { max-width: 720px; margin: 8px 0 0; color: var(--text-muted); font-size: 14px; }

.entity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.entity-grid-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty-state { grid-column: 1 / -1; padding: 34px 20px; border: 1px dashed var(--border); border-radius: 14px; background: rgba(2,8,16,.2); color: var(--text-muted); text-align: center; }
.empty-state-compact { padding: 20px 14px; font-size: 13px; }
.entity-card { position: relative; min-width: 0; overflow: hidden; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(145deg, rgba(18,26,43,.74), rgba(10,15,26,.7)); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.entity-card::after { content: ""; position: absolute; inset: auto 18% -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0; transition: opacity 180ms ease; }
.entity-card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: linear-gradient(145deg, rgba(21,32,52,.88), rgba(11,17,30,.8)); box-shadow: 0 18px 36px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.05); }
.entity-card:hover::after { opacity: .65; }
.entity-topline { display: flex; align-items: flex-start; gap: 13px; }
.entity-head { min-width: 0; flex: 1; padding-top: 1px; }
.entity-kicker { margin-bottom: 3px; color: var(--text-faint); font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.entity-title, .entity-hardware-title { overflow-wrap: anywhere; color: var(--text); font-size: 17px; font-weight: 640; letter-spacing: -.018em; }
.entity-mark { position: relative; width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; }
.entity-mark-server { color: var(--cyan); background: var(--cyan-soft); border: 1px solid rgba(85,230,255,.14); }.entity-mark-service { color: var(--violet); background: var(--violet-soft); border: 1px solid rgba(155,140,255,.14); }.entity-mark-note { color: var(--blue); background: rgba(106,168,255,.11); border: 1px solid rgba(106,168,255,.13); }
.ui-glyph { width: 21px; height: 21px; fill: none; stroke: currentColor; }
.ui-inline-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; }
.entity-actions { display: flex; flex: 0 0 auto; gap: 5px; opacity: .62; transition: opacity 160ms ease; }.entity-card:hover .entity-actions, .entity-actions:focus-within { opacity: 1; }
.icon-only-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--text-muted); cursor: pointer; transition: 150ms ease; }
.icon-only-btn:hover { color: var(--cyan); border-color: var(--border-strong); background: var(--cyan-soft); transform: translateY(-1px); }.icon-only-btn[data-action^="delete"]:hover { color: var(--red); border-color: rgba(255,111,145,.24); background: rgba(255,111,145,.08); }
.icon-only-btn .ui-inline-icon, .icon-only-btn > .ui-inline-icon, .btn-icon .ui-inline-icon { width: 16px; height: 16px; }
.service-count-badge { position: absolute; right: -5px; bottom: -5px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #101827; border-radius: 10px; background: var(--cyan); color: #041116; font-family: var(--font-mono); font-size: 9px; font-weight: 800; }

.entity-meta-grid { display: grid; gap: 9px; margin-top: 18px; }.entity-meta-grid-server { grid-template-columns: repeat(2, minmax(0, 1fr)); }.entity-meta-grid-service { grid-template-columns: 1fr; }
.entity-meta-block { min-width: 0; padding: 11px 12px; border: 1px solid rgba(142,176,211,.08); border-radius: 11px; background: rgba(1,5,12,.22); }
.entity-meta-label, .meta-label { display: block; margin-bottom: 5px; color: var(--text-faint); font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.entity-meta-value, .meta-value { min-width: 0; color: var(--text-soft); font-size: 13px; }
.entity-mono { min-width: 0; overflow: hidden; font-family: var(--font-mono); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.entity-copy-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.entity-link, .entity-chip-link, .rustdesk-card-link { min-width: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); transition: color 140ms ease; }.entity-link span, .entity-chip-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.entity-link:hover, .entity-chip-link:hover, .rustdesk-card-link:hover { color: #c1f9ff; }
.copy-btn { width: 29px; height: 29px; flex: 0 0 auto; border-radius: 8px; }.copy-btn.is-copied { color: var(--green); border-color: rgba(94,230,173,.3); background: rgba(94,230,173,.08); }
.entity-note { margin-top: 14px; padding: 12px 13px; border-left: 2px solid rgba(155,140,255,.46); border-radius: 0 9px 9px 0; background: rgba(155,140,255,.055); color: var(--text-muted); font-size: 13px; overflow-wrap: anywhere; }.entity-note-standalone { margin-top: 17px; max-height: 370px; overflow: auto; color: var(--text-soft); font-family: var(--font-mono); font-size: 12px; line-height: 1.7; white-space: normal; }
.entity-subpanel { margin-top: 16px; padding: 13px; border: 1px solid rgba(85,230,255,.09); border-radius: 12px; background: rgba(2,9,17,.3); }
.entity-subpanel-head { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: var(--text-faint); font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }.entity-subpanel-head svg { width: 14px; }
.entity-chip-list { display: grid; gap: 6px; }.entity-chip-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px solid rgba(142,176,211,.06); }.entity-chip-row:first-child { padding-top: 0; border-top: 0; }.entity-chip-name { min-width: 0; color: var(--text-soft); font-size: 12px; }.entity-chip-link { font-family: var(--font-mono); font-size: 10px; }.entity-chip-muted { color: var(--text-faint); font-size: 11px; }.entity-chip-anchor { display: inline-flex; padding: 3px 8px; border: 1px solid rgba(85,230,255,.14); border-radius: 7px; background: var(--cyan-soft); color: var(--cyan); font-size: 11px; }

.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.info-panel { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: rgba(13,20,34,.65); }
.panel-title-row { display: flex; align-items: center; gap: 10px; }.panel-title-icon { width: 31px; height: 31px; border-radius: 9px; background: var(--cyan-soft); }.panel-title { margin: 0; font-size: 15px; font-weight: 650; }.panel-description { min-height: 42px; margin: 9px 0 17px; color: var(--text-muted); font-size: 12px; }
.info-meta-list { display: grid; gap: 0; margin: 0; }.info-meta-list p { min-width: 0; display: grid; grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr); gap: 12px; margin: 0; padding: 10px 0; border-top: 1px solid rgba(142,176,211,.07); }.info-meta-list p:first-child { border-top: 0; }.info-meta-list .meta-label { margin: 2px 0 0; }.meta-value { overflow-wrap: anywhere; text-align: right; }.meta-wrap { font-family: var(--font-mono); font-size: 10px; }
.panel-subsection { margin-top: 13px; padding-top: 14px; border-top: 1px solid rgba(142,176,211,.09); }.panel-body-text { color: var(--text-muted); font-size: 12px; overflow-wrap: anywhere; }.italic { font-style: italic; color: var(--text-faint); }
.sensitive-value { display: grid; justify-items: end; gap: 6px; }.sensitive-actions { display: flex; gap: 8px; }.text-action { padding: 0; border: 0; background: transparent; color: var(--cyan); font-size: 10px; cursor: pointer; }.text-action:hover { color: #c1f9ff; text-decoration: underline; }
.hardware-grid { display: grid; gap: 9px; margin-bottom: 13px; }
.entity-hardware-card { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid rgba(142,176,211,.09); border-radius: 12px; background: rgba(2,8,16,.25); }
.entity-hardware-image { width: 92px; height: 92px; flex: 0 0 auto; object-fit: cover; border: 1px solid rgba(85,230,255,.18); border-radius: 11px; background: var(--canvas-raised); box-shadow: 0 12px 30px rgba(0,0,0,.32), 0 0 24px rgba(85,230,255,.06); }
.entity-hardware-meta { min-width: 0; flex: 1; }.entity-hardware-title { margin-bottom: 6px; font-size: 14px; }.entity-hardware-pair { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; color: var(--text-muted); font-size: 10px; line-height: 1.4; }.entity-hardware-pair strong { color: var(--text-soft); font-weight: 600; }.meta-inline-icon { display: inline-grid; flex: 0 0 auto; place-items: center; color: var(--cyan); }.meta-inline-icon svg { width: 13px; height: 13px; }.entity-hardware-actions { display: flex; gap: 5px; margin-top: 8px; }
.rustdesk-card { padding: 10px 0; border-top: 1px solid rgba(142,176,211,.07); }.rustdesk-card:first-child { border-top: 0; }.rustdesk-card-title { margin-bottom: 5px; color: var(--text-soft); font-size: 11px; font-weight: 650; }.rustdesk-card-actions { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }.rustdesk-card-link { min-width: 0; font-family: var(--font-mono); font-size: 10px; }.rustdesk-card-link-text { overflow-wrap: anywhere; }

.map-view { min-height: 520px; }.view-heading h2 { font-size: clamp(28px, 3vw, 42px); }.map-legend { display: flex; flex-wrap: wrap; gap: 18px; margin: -5px 0 25px; color: var(--text-faint); font-size: 11px; }.map-legend span { display: flex; align-items: center; gap: 7px; }.map-legend i { display: inline-block; }.legend-server, .legend-service { width: 10px; height: 10px; border-radius: 3px; }.legend-server { background: var(--cyan); }.legend-service { background: var(--violet); }.legend-relationship { width: 24px; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.topology-canvas { display: grid; gap: 13px; }
.topology-branch { position: relative; display: grid; grid-template-columns: minmax(210px, .6fr) 88px minmax(290px, 1.4fr); align-items: center; min-height: 112px; padding: 15px; border: 1px solid rgba(142,176,211,.09); border-radius: 16px; background: rgba(4,10,19,.3); overflow: hidden; }
.topology-branch::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(90deg, rgba(85,230,255,.035), transparent 35%, rgba(155,140,255,.025)); }
.topology-host, .topology-service { position: relative; z-index: 1; min-width: 0; }
.topology-host { padding: 16px; border: 1px solid rgba(85,230,255,.22); border-radius: 13px; background: linear-gradient(145deg, rgba(85,230,255,.1), rgba(9,17,29,.78)); box-shadow: 0 0 30px rgba(85,230,255,.04); }
.topology-host-head { display: flex; align-items: center; gap: 10px; }.topology-node-icon { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--cyan-soft); color: var(--cyan); }.topology-node-icon svg { width: 18px; fill: none; stroke: currentColor; }.topology-host-name { overflow: hidden; color: var(--text); font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }.topology-host-meta { margin: 8px 0 0 44px; color: var(--text-faint); font-family: var(--font-mono); font-size: 10px; overflow-wrap: anywhere; }.topology-host button { margin: 10px 0 0 44px; padding: 0; border: 0; background: transparent; color: var(--cyan); font-size: 11px; cursor: pointer; }
.topology-connector { position: relative; z-index: 1; height: 100%; min-height: 54px; }.topology-connector::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, rgba(85,230,255,.76), rgba(155,140,255,.72)); box-shadow: 0 0 9px rgba(85,230,255,.24); }.topology-connector::after { content: ""; position: absolute; top: calc(50% - 2px); left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: flow-dot 2.8s linear infinite; }
@keyframes flow-dot { to { left: calc(100% - 5px); background: var(--violet); box-shadow: 0 0 8px var(--violet); } }
.topology-services { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-left: 14px; }.topology-services::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px; background: rgba(155,140,255,.5); }
.topology-service { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 9px 10px; border: 1px solid rgba(155,140,255,.15); border-radius: 11px; background: rgba(155,140,255,.055); transition: 150ms ease; }.topology-service::before { content: ""; position: absolute; left: -15px; width: 14px; height: 1px; background: rgba(155,140,255,.5); }.topology-service:hover { transform: translateX(2px); border-color: rgba(155,140,255,.36); background: rgba(155,140,255,.1); }.topology-service-icon { width: 29px; height: 29px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; background: var(--violet-soft); color: var(--violet); }.topology-service-icon svg { width: 16px; }.topology-service-copy { min-width: 0; flex: 1; }.topology-service-name { display: block; overflow: hidden; color: var(--text-soft); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }.topology-service-domain { display: block; overflow: hidden; margin-top: 2px; color: var(--text-faint); font-family: var(--font-mono); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.topology-service-actions { display: flex; gap: 4px; }.topology-service-actions .icon-only-btn { width: 29px; height: 29px; }.topology-empty { padding: 44px 20px; border: 1px dashed var(--border); border-radius: 14px; color: var(--text-muted); text-align: center; }

.entity-context-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }.entity-context-row span { padding: 4px 8px; border: 1px solid rgba(85,230,255,.12); border-radius: 8px; background: rgba(85,230,255,.055); color: var(--text-muted); font-size: 11px; }
.atlas-heading { align-items: flex-start; }.atlas-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }.map-mode-toggle { display: inline-flex; padding: 4px; border: 1px solid var(--border); border-radius: 13px; background: rgba(2,7,14,.56); }.map-mode-btn { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text-muted); cursor: pointer; transition: 160ms ease; }.map-mode-btn svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.map-mode-btn:hover { color: var(--text-soft); }.map-mode-btn.is-active { border-color: rgba(85,230,255,.34); background: rgba(85,230,255,.09); color: var(--cyan); box-shadow: 0 0 24px rgba(85,230,255,.06); }
.atlas-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin: 0 0 18px; }.atlas-summary-grid article { min-width: 0; display: grid; grid-template-columns: 38px auto 1fr; align-items: center; gap: 9px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 13px; background: linear-gradient(145deg, rgba(18,27,45,.72), rgba(7,12,22,.65)); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }.atlas-summary-grid strong { font-size: 23px; line-height: 1; }.atlas-summary-grid article > span:last-child { color: var(--text-muted); font-size: 13px; }.atlas-summary-icon { width: 38px; height: 38px; display: grid; grid-row: 1; place-items: center; border-radius: 10px; }.atlas-summary-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.atlas-summary-icon-cyan { background: var(--cyan-soft); color: var(--cyan); }.atlas-summary-icon-violet { background: var(--violet-soft); color: var(--violet); }
.atlas-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }.atlas-filter-row { min-width: 0; display: flex; flex-wrap: wrap; gap: 7px; }.atlas-filter-btn { min-height: 34px; padding: 0 11px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.018); color: var(--text-muted); font-size: 12px; cursor: pointer; transition: 150ms ease; }.atlas-filter-btn:hover { color: var(--text-soft); border-color: var(--border-strong); }.atlas-filter-btn.is-active { border-color: rgba(85,230,255,.32); background: var(--cyan-soft); color: var(--cyan); }.atlas-toolbar .map-legend { flex: 0 0 auto; margin: 0; }
.topology-canvas { display: block; }.atlas-realms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }.atlas-realm { position: relative; min-width: 0; overflow: hidden; padding: 15px; border: 1px solid var(--border); border-radius: 17px; background: linear-gradient(150deg, rgba(8,16,28,.82), rgba(4,9,17,.66)); }.atlas-realm::before { content: ""; position: absolute; pointer-events: none; inset: 0; opacity: .65; background: radial-gradient(circle at 12% 0, rgba(85,230,255,.07), transparent 30%); }.atlas-realm-external::before { background: radial-gradient(circle at 88% 0, rgba(155,140,255,.08), transparent 31%); }.atlas-realm-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; margin-bottom: 13px; color: var(--text-soft); }.atlas-realm-head > span { color: var(--cyan); }.atlas-realm-external .atlas-realm-head > span { color: var(--violet); }.atlas-realm-head svg { width: 19px; }.atlas-realm-head strong { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }.atlas-realm-head small { margin-left: auto; color: var(--text-faint); font-family: var(--font-mono); font-size: 10px; }
.atlas-site-stack { position: relative; z-index: 1; display: grid; gap: 11px; }.atlas-site { min-width: 0; overflow: hidden; border: 1px solid rgba(142,176,211,.11); border-radius: 14px; background: rgba(5,11,21,.52); }.atlas-site[data-site-type="home"] { border-color: rgba(85,230,255,.18); }.atlas-site[data-site-type="cloud"], .atlas-site[data-site-type="vps"] { border-color: rgba(155,140,255,.18); }.atlas-site-head { display: grid; grid-template-columns: 34px minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 12px 13px; border-bottom: 1px solid rgba(142,176,211,.09); background: rgba(255,255,255,.018); }.atlas-site-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--cyan-soft); color: var(--cyan); }.atlas-site[data-site-type="cloud"] .atlas-site-mark, .atlas-site[data-site-type="vps"] .atlas-site-mark, .atlas-site[data-site-type="colocation"] .atlas-site-mark { background: var(--violet-soft); color: var(--violet); }.atlas-site-mark svg { width: 18px; }.atlas-site-title { min-width: 0; display: grid; }.atlas-site-provider { color: var(--cyan); font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }.atlas-site[data-site-type="cloud"] .atlas-site-provider, .atlas-site[data-site-type="vps"] .atlas-site-provider, .atlas-site[data-site-type="colocation"] .atlas-site-provider { color: var(--violet); }.atlas-site-title strong { overflow-wrap: anywhere; font-size: 15px; }.atlas-site-meta { display: grid; justify-items: end; gap: 2px; color: var(--text-muted); font-size: 11px; }.atlas-site-meta span:last-child { color: var(--text-faint); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }.atlas-site-actions { display: flex; gap: 5px; }.atlas-site-actions .icon-only-btn, .atlas-edit-btn { width: 34px; height: 34px; }.atlas-site-network { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 12px 0; }.atlas-site-network span { min-width: 0; padding: 4px 7px; border: 1px solid rgba(85,230,255,.12); border-radius: 7px; background: rgba(85,230,255,.045); color: var(--text-muted); font-family: var(--font-mono); font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }.atlas-site[data-site-type="cloud"] .atlas-site-network span, .atlas-site[data-site-type="vps"] .atlas-site-network span, .atlas-site[data-site-type="colocation"] .atlas-site-network span { border-color: rgba(155,140,255,.14); background: rgba(155,140,255,.05); }
.atlas-host-grid { display: grid; gap: 10px; padding: 11px; }.atlas-host-cluster { min-width: 0; display: grid; grid-template-columns: minmax(190px,.82fr) minmax(0,1.18fr); align-items: stretch; gap: 13px; padding: 10px; border: 1px solid rgba(142,176,211,.075); border-radius: 13px; background: rgba(1,6,13,.32); transition: 170ms ease; }.atlas-host-cluster:hover, .atlas-host-cluster:focus-within { border-color: rgba(85,230,255,.2); background: rgba(4,13,23,.58); box-shadow: 0 14px 36px rgba(0,0,0,.18), inset 0 0 26px rgba(85,230,255,.025); }.atlas-host-cluster:not(.has-services) { grid-template-columns: 1fr; }.atlas-host-card { min-width: 0; display: grid; grid-template-columns: 38px minmax(0,1fr) 34px; align-content: start; align-items: center; gap: 9px; padding: 11px; border: 1px solid rgba(85,230,255,.17); border-radius: 11px; background: linear-gradient(145deg, rgba(85,230,255,.075), rgba(9,17,29,.72)); transition: 170ms ease; }.atlas-realm-external .atlas-host-card { border-color: rgba(155,140,255,.18); background: linear-gradient(145deg, rgba(155,140,255,.07), rgba(9,17,29,.72)); }.atlas-host-cluster:hover .atlas-host-card, .atlas-host-cluster:focus-within .atlas-host-card { border-color: rgba(85,230,255,.38); box-shadow: 0 0 25px rgba(85,230,255,.06); }.atlas-realm-external .atlas-host-cluster:hover .atlas-host-card, .atlas-realm-external .atlas-host-cluster:focus-within .atlas-host-card { border-color: rgba(155,140,255,.38); box-shadow: 0 0 25px rgba(155,140,255,.06); }.atlas-host-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--cyan-soft); color: var(--cyan); }.atlas-realm-external .atlas-host-icon { background: var(--violet-soft); color: var(--violet); }.atlas-host-icon svg { width: 20px; }.atlas-host-copy { min-width: 0; display: grid; gap: 3px; }.atlas-host-name { min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; text-align: left; cursor: pointer; }.atlas-host-name:hover { color: var(--cyan); }.atlas-host-endpoint { color: var(--text-muted); font-family: var(--font-mono); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }.atlas-host-badges { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }.atlas-host-badges span { padding: 3px 6px; border: 1px solid rgba(85,230,255,.11); border-radius: 6px; background: rgba(85,230,255,.045); color: var(--text-muted); font-size: 9px; line-height: 1.35; }.atlas-realm-external .atlas-host-badges span { border-color: rgba(155,140,255,.12); background: rgba(155,140,255,.045); }.atlas-host-empty, .atlas-site-empty { padding: 15px; border: 1px dashed rgba(142,176,211,.11); border-radius: 10px; color: var(--text-faint); font-size: 11px; text-align: center; }
.atlas-service-spine { position: relative; display: grid; align-content: center; gap: 7px; padding: 3px 0 3px 20px; }.atlas-service-row { position: relative; min-width: 0; min-height: 46px; display: grid; grid-template-columns: 28px minmax(0,1fr) 32px; align-items: center; gap: 8px; padding: 7px 7px 7px 9px; border: 1px solid rgba(155,140,255,.13); border-radius: 10px; background: rgba(155,140,255,.05); transition: 150ms ease; }.atlas-service-row::before { content: ""; position: absolute; left: -13px; top: 50%; width: 13px; height: 1px; background: linear-gradient(90deg, rgba(85,230,255,.38), rgba(155,140,255,.75)); }.atlas-service-dot { position: absolute; left: -18px; top: calc(50% - 3px); width: 6px; height: 6px; border: 1px solid rgba(216,209,255,.85); border-radius: 50%; background: var(--violet); box-shadow: 0 0 7px rgba(155,140,255,.48); }.atlas-service-row:hover, .atlas-service-row:focus-within { transform: translateX(2px); border-color: rgba(155,140,255,.34); background: rgba(155,140,255,.09); }.atlas-service-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--violet-soft); color: var(--violet); }.atlas-service-icon svg { width: 15px; }.atlas-service-copy { min-width: 0; display: grid; gap: 2px; }.atlas-service-name { color: var(--text-soft); font-size: 12px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }.atlas-service-name:hover { color: #d8d1ff; }.atlas-service-endpoint { color: var(--text-faint); font-family: var(--font-mono); font-size: 9px; line-height: 1.4; overflow-wrap: anywhere; }.atlas-service-row .atlas-edit-btn { width: 32px; height: 32px; }

.footprint-canvas { min-width: 0; }.footprint-layout { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 14px; }.footprint-map, .footprint-index { border: 1px solid var(--border); border-radius: 17px; background: linear-gradient(145deg, rgba(7,15,27,.84), rgba(3,8,16,.72)); }.footprint-map { position: relative; min-height: 520px; aspect-ratio: 1000 / 620; overflow: hidden; isolation: isolate; }.footprint-map::after { content: ""; position: absolute; z-index: 2; pointer-events: none; inset: 0; background: radial-gradient(circle at var(--map-glow-x,49%) var(--map-glow-y,38%), rgba(85,230,255,.11), transparent 25%), linear-gradient(135deg, rgba(85,230,255,.025), transparent 45%, rgba(155,140,255,.035)); }.footprint-basemap, .footprint-arcs { position: absolute; inset: 0; width: 100%; height: 100%; }.footprint-basemap { z-index: 0; object-fit: fill; opacity: .9; }.footprint-arcs { z-index: 1; pointer-events: none; }.footprint-arcs path { fill: none; stroke: rgba(155,140,255,.58); stroke-width: 2; stroke-dasharray: 7 8; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(155,140,255,.28)); }.footprint-arcs path.is-selected { stroke: rgba(85,230,255,.88); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(85,230,255,.5)); }.footprint-map-heading { position: absolute; z-index: 3; top: 16px; left: 17px; display: grid; gap: 3px; padding: 9px 11px; border-left: 2px solid rgba(85,230,255,.72); background: rgba(4,10,19,.74); backdrop-filter: blur(8px); }.footprint-map-heading span { color: var(--cyan); font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }.footprint-map-heading strong { color: var(--text-soft); font-size: 15px; }.footprint-pin { position: absolute; z-index: 4; left: var(--pin-x); top: var(--pin-y); display: grid; gap: 2px; width: max-content; max-width: 180px; padding: 8px 10px 8px 27px; border: 1px solid rgba(155,140,255,.32); border-radius: 9px; background: rgba(5,12,23,.94); color: var(--text-soft); text-align: left; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.34); transition: border-color 170ms ease, background 170ms ease, box-shadow 170ms ease, translate 170ms ease; }.footprint-pin[data-pin-anchor="nw"] { transform: translate(calc(-100% + 11px), calc(-100% + 11px)); }.footprint-pin[data-pin-anchor="ne"] { transform: translate(-11px, calc(-100% + 11px)); }.footprint-pin[data-pin-anchor="se"] { transform: translate(-11px,-11px); }.footprint-pin[data-pin-anchor="sw"] { transform: translate(calc(-100% + 11px),-11px); }.footprint-pin:hover, .footprint-pin.is-selected { z-index: 5; border-color: rgba(85,230,255,.68); background: rgba(6,19,31,.98); translate: 0 -3px; box-shadow: 0 13px 38px rgba(0,0,0,.4), 0 0 28px rgba(85,230,255,.13); }.footprint-pin-dot { position: absolute; width: 10px; height: 10px; border: 2px solid var(--violet); border-radius: 50%; background: var(--canvas); box-shadow: 0 0 11px rgba(155,140,255,.85); }.footprint-pin[data-pin-anchor="nw"] .footprint-pin-dot { right: 4px; bottom: 4px; }.footprint-pin[data-pin-anchor="ne"] .footprint-pin-dot { left: 4px; bottom: 4px; }.footprint-pin[data-pin-anchor="se"] .footprint-pin-dot { left: 4px; top: 4px; }.footprint-pin[data-pin-anchor="sw"] .footprint-pin-dot { right: 4px; top: 4px; }.footprint-pin.is-selected .footprint-pin-dot { border-color: var(--cyan); box-shadow: 0 0 13px var(--cyan); }.footprint-pin strong { font-size: 12px; line-height: 1.3; }.footprint-pin small { color: var(--text-muted); font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }.footprint-unlocated { position: absolute; z-index: 4; right: 14px; bottom: 66px; max-width: calc(100% - 28px); display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 9px; border: 1px dashed rgba(155,140,255,.3); border-radius: 10px; background: rgba(7,12,23,.9); }.footprint-unlocated > span { flex: 1 0 100%; color: var(--text-muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-align: right; text-transform: uppercase; }.footprint-unlocated button { min-height: 32px; padding: 5px 8px; border: 1px solid rgba(155,140,255,.18); border-radius: 7px; background: rgba(155,140,255,.06); color: var(--text-muted); font-size: 11px; cursor: pointer; }.footprint-unlocated button:hover, .footprint-unlocated button[aria-pressed="true"] { border-color: rgba(155,140,255,.42); color: #d7d0ff; }.footprint-map-note { position: absolute; z-index: 4; right: 14px; bottom: 13px; left: 14px; margin: 0; padding: 8px 10px; background: rgba(4,10,19,.78); color: var(--text-muted); font-size: 10px; line-height: 1.45; text-align: center; backdrop-filter: blur(8px); }
.footprint-index { min-width: 0; padding: 14px; }.footprint-index-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }.footprint-index-head h3 { margin: 3px 0 0; font-size: 19px; }.footprint-index-head > span { color: var(--text-faint); font-family: var(--font-mono); font-size: 10px; }.footprint-site-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; gap: 9px; }.footprint-site-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(155,140,255,.13); border-radius: 12px; background: rgba(155,140,255,.04); transition: 160ms ease; }.footprint-site-card.is-selected { grid-column: 1 / -1; border-color: rgba(85,230,255,.44); background: rgba(85,230,255,.065); box-shadow: 0 0 26px rgba(85,230,255,.055); }.footprint-site-select { width: 100%; min-width: 0; display: grid; grid-template-columns: 38px minmax(0,1fr) 45px 55px; align-items: center; gap: 9px; padding: 12px 43px 12px 12px; border: 0; background: transparent; text-align: left; cursor: pointer; }.footprint-site-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--violet-soft); color: var(--violet); }.footprint-site-card.is-selected .footprint-site-icon { background: var(--cyan-soft); color: var(--cyan); }.footprint-site-icon svg { width: 20px; }.footprint-site-copy { min-width: 0; display: grid; gap: 1px; }.footprint-site-copy strong { font-size: 13px; overflow-wrap: break-word; }.footprint-site-copy span { color: var(--text-muted); font-size: 11px; overflow-wrap: anywhere; }.footprint-site-copy small { color: var(--text-faint); font-size: 9px; overflow-wrap: anywhere; }.footprint-site-count { display: grid; justify-items: center; color: var(--text-faint); font-size: 9px; }.footprint-site-count strong { color: var(--violet); font-size: 17px; }.footprint-site-card.is-selected .footprint-site-count strong { color: var(--cyan); }.footprint-site-edit { position: absolute; top: 10px; right: 8px; width: 30px; height: 30px; }.footprint-network-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 22px; margin: 0; padding: 4px 12px 12px; }.footprint-network-details div { min-width: 0; display: grid; align-content: start; gap: 3px; padding: 9px 0; border-top: 1px solid rgba(85,230,255,.1); }.footprint-network-details dt { color: var(--cyan); font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }.footprint-network-details dd { min-width: 0; margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }

.rescue-section { border-color: rgba(255,196,107,.14); }.rescue-grid, .data-tool-actions { display: flex; flex-wrap: wrap; gap: 9px; }.rescue-output-wrap { margin-top: 16px; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: rgba(1,5,11,.62); }.rescue-status { padding: 9px 13px; border-bottom: 1px solid var(--border); color: var(--green); font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.rescue-status-error { color: var(--red); }.rescue-output { max-height: 420px; margin: 0; overflow: auto; padding: 15px; color: #9fb2c5; font-family: var(--font-mono); font-size: 11px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }.data-tools { margin-bottom: 20px; }

.toast-region { position: fixed; z-index: 140; top: 84px; right: 20px; width: min(360px, calc(100vw - 32px)); display: grid; gap: 9px; pointer-events: none; }
.toast { padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: rgba(10,17,29,.96); color: var(--text-soft); box-shadow: 0 18px 50px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.05); font-size: 13px; animation: toast-in 180ms ease both; }
.toast-success { border-color: rgba(94,230,173,.28); color: #b8f7dc; }
.toast-error { border-color: rgba(255,111,145,.32); color: #ffb3c4; }
.toast-leaving { opacity: 0; transform: translateY(-5px); transition: opacity 180ms ease, transform 180ms ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-7px) scale(.98); } }

.modal-shell, .auth-shell { position: fixed; z-index: 100; inset: 0; align-items: center; justify-content: center; padding: 20px; background: rgba(1,3,8,.82); backdrop-filter: blur(18px); }
.modal-panel { width: min(100%, 620px); max-height: min(86vh, 820px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 20px; background: rgba(10,15,26,.98); box-shadow: 0 35px 100px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.05); animation: modal-in 200ms ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 19px 21px; border-bottom: 1px solid var(--border); }.modal-title { margin: 0; font-size: 20px; letter-spacing: -.025em; }.modal-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.03); color: var(--text-muted); line-height: 1; cursor: pointer; }.modal-close svg { width: 18px; height: 18px; pointer-events: none; }.modal-close:hover { color: var(--text); border-color: var(--border-strong); }.modal-scroll { min-height: 0; overflow-y: auto; }.modal-form { display: grid; gap: 17px; padding: 22px; }.modal-field, .modal-form > label { display: grid; gap: 7px; }.modal-field-label, .modal-form label > span { color: var(--text-soft); font-size: 12px; font-weight: 600; }.modal-form input, .modal-form textarea, .modal-form select { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 11px; outline: none; background: rgba(255,255,255,.035); color: var(--text); }.modal-form textarea { min-height: 120px; resize: vertical; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; }.modal-form input:focus, .modal-form textarea:focus, .modal-form select:focus { border-color: rgba(85,230,255,.45); box-shadow: 0 0 0 4px rgba(85,230,255,.07); }.modal-field-tip, .modal-form label > p { margin: 0; color: var(--text-faint); font-size: 10px; }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 21px; border-top: 1px solid var(--border); background: rgba(255,255,255,.018); }
.modal-close:disabled { cursor: not-allowed; opacity: .45; }

.auth-shell { display: flex; }
.auth-panel { position: relative; width: min(100%, 420px); overflow: hidden; padding: 38px; border: 1px solid var(--border-strong); border-radius: 23px; background: linear-gradient(145deg, rgba(13,20,34,.98), rgba(7,11,20,.98)); box-shadow: 0 40px 120px rgba(0,0,0,.62), 0 0 100px rgba(85,230,255,.06); }
.auth-panel::before { content: ""; position: absolute; width: 240px; height: 240px; top: -160px; right: -100px; border-radius: 50%; background: var(--cyan); filter: blur(80px); opacity: .12; }.auth-brand { margin-bottom: 28px; }.auth-title { margin: 0; font-size: 35px; letter-spacing: -.045em; }.auth-description { margin: 10px 0 26px; color: var(--text-muted); font-size: 14px; }.auth-field { display: grid; gap: 7px; margin-bottom: 13px; }.auth-field > span { color: var(--text-soft); font-size: 12px; font-weight: 600; }.auth-input { width: 100%; height: 49px; padding: 0 13px; border: 1px solid var(--border); border-radius: 12px; outline: none; background: rgba(255,255,255,.04); color: var(--text); }.auth-input:focus { border-color: rgba(85,230,255,.5); box-shadow: 0 0 0 4px rgba(85,230,255,.08); }.auth-error { margin-top: 14px; padding: 10px; border: 1px solid rgba(255,111,145,.2); border-radius: 10px; background: rgba(255,111,145,.07); color: #ff9eb4; font-size: 12px; }

@media (min-width: 721px) {
  body { font-size: 17px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { font-size: 13px; }
  .side-nav-label { font-size: 11px; }
  .search-wrap input { font-size: 17px; }
  .search-kbd, .sync-pill { font-size: 12px; }
  .eyebrow { font-size: 12px; }
  .btn { font-size: 15px; }
  .btn-sm { font-size: 14px; }
  .section-kicker { font-size: 11px; }
  .section-description, .view-heading p { font-size: 16px; line-height: 1.55; }
  .entity-kicker { font-size: 11px; }
  .entity-title { font-size: 19px; line-height: 1.3; }
  .entity-meta-label, .meta-label { font-size: 11px; }
  .entity-meta-value, .meta-value { font-size: 16px; line-height: 1.5; }
  .entity-copy-row { align-items: flex-start; }
  .entity-copy-row > .entity-link,
  .entity-copy-row > .entity-chip-link,
  .entity-copy-row > .entity-mono { flex: 1 1 auto; }
  .entity-mono { overflow: visible; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
  .entity-link, .entity-chip-link { align-items: flex-start; }
  .entity-link span, .entity-chip-link span { overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
  .entity-link .ui-inline-icon, .entity-chip-link .ui-inline-icon { flex: 0 0 auto; margin-top: 4px; }
  .entity-note { font-size: 15px; line-height: 1.6; }
  .entity-note-standalone { font-size: 14px; }
  .entity-subpanel-head { font-size: 11px; }
  .entity-chip-name { font-size: 14px; }
  .entity-chip-link { font-size: 13px; }
  .entity-chip-muted, .entity-chip-anchor { font-size: 13px; }
  #infoSection .meta-label { font-size: 12px; }
  #infoSection .meta-value { font-size: 17px; }
  .panel-title { font-size: 19px; }
  .panel-description { font-size: 16px; line-height: 1.55; }
  .panel-body-text { font-size: 16px; line-height: 1.65; }
  .meta-wrap, .text-action { font-size: 14px; }
  .entity-hardware-title { font-size: 18px; }
  .entity-hardware-pair { font-size: 15px; line-height: 1.55; }
  .rustdesk-card-title, .rustdesk-card-link { font-size: 15px; line-height: 1.5; }
  .map-legend { font-size: 13px; }
  .map-mode-btn { font-size: 14px; }
  .atlas-filter-btn { font-size: 13px; }
  .atlas-summary-grid article > span:last-child { font-size: 14px; }
  .atlas-realm-head strong { font-size: 15px; }
  .atlas-realm-head small { font-size: 11px; }
  .atlas-site-provider { font-size: 11px; }
  .atlas-site-title strong { font-size: 17px; }
  .atlas-site-meta { font-size: 13px; }
  .atlas-site-meta span:last-child { font-size: 11px; }
  .atlas-site-network span { font-size: 12px; }
  .atlas-host-name { font-size: 16px; }
  .atlas-host-endpoint { font-size: 12px; }
  .atlas-host-badges span { font-size: 11px; }
  .atlas-service-name { font-size: 14px; }
  .atlas-service-endpoint { font-size: 11px; }
  .footprint-pin strong { font-size: 13px; }
  .footprint-pin small { font-size: 11px; }
  .footprint-site-copy strong { font-size: 15px; }
  .footprint-site-copy span { font-size: 13px; }
  .footprint-site-copy small { font-size: 11px; }
  .footprint-site-count { font-size: 11px; }
  .footprint-map-note { font-size: 12px; }
  .footprint-network-details dt { font-size: 11px; }
  .footprint-network-details dd { font-size: 14px; }
  .topology-host-name { overflow: visible; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
  .topology-host-meta { font-size: 12px; line-height: 1.5; }
  .topology-host button { font-size: 13px; }
  .topology-service { align-items: flex-start; }
  .topology-service-name, .topology-service-domain { overflow: visible; line-height: 1.4; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
  .topology-service-name { font-size: 14px; }
  .topology-service-domain { font-size: 12px; }
  .rescue-status { font-size: 12px; }
  .rescue-output { font-size: 13px; }
  .toast { font-size: 15px; }
  .modal-title { font-size: 22px; }
  .modal-field-label, .modal-form label > span { font-size: 14px; }
  .modal-form input, .modal-form textarea, .modal-form select { font-size: 16px; }
  .modal-field-tip, .modal-form label > p { font-size: 12px; }
  .auth-description { font-size: 16px; }
  .auth-field > span { font-size: 14px; }
  .auth-input { font-size: 16px; }
  .auth-error { font-size: 14px; }
}

@media (max-width: 1500px) {
  .entity-grid-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1600px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-panel:last-child { grid-column: 1 / -1; }
  .atlas-realms { grid-template-columns: 1fr; }
}

@media (max-width: 1220px) {
  .topology-services { grid-template-columns: 1fr; }
  .atlas-realms, .footprint-layout { grid-template-columns: 1fr; }
  .footprint-map { min-height: 500px; }
  .footprint-site-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 980px) {
  :root { --sidebar-width: 0px; --topbar-height: 70px; }
  .command-shell { display: block; padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .command-workspace { min-width: 0; }
  .command-sidebar { inset: auto 0 0; width: auto; height: calc(78px + env(safe-area-inset-bottom)); display: block; padding: 7px 8px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); border-right: 0; overflow-x: auto; overflow-y: hidden; }
  .command-sidebar { scrollbar-width: none; }
  .command-sidebar::-webkit-scrollbar { display: none; }
  .command-sidebar .brand, .side-nav-label { display: none; }
  .side-nav { width: max-content; min-width: 100%; height: 100%; flex-direction: row; align-items: center; justify-content: center; gap: 4px; }
  .side-nav-item { width: auto; min-width: 76px; min-height: 54px; flex-direction: column; justify-content: center; gap: 3px; padding: 6px 10px; font-size: 10px; }
  .side-nav-item svg { width: 18px; height: 18px; }
  .side-nav-item:hover { transform: none; }
  .side-nav-item.is-active { box-shadow: inset 0 -2px 0 var(--cyan); }
  .command-topbar { padding: 11px 18px; }
  .search-wrap { width: min(620px, 100%); }
  .sync-pill { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card:nth-child(3) { border-left: 0; }
  .stat-card:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .atlas-heading-actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
  :root { --text-muted: #95a6ba; --text-faint: #78899e; }
  body { font-size: 17px; }
  .command-content { padding: 12px 12px 24px; }
  .app-sections { gap: 16px; }
  .command-topbar { gap: 8px; padding: 10px; }
  .search-wrap input { height: 48px; padding-right: 14px; font-size: 16px; }
  .search-kbd { display: none; }
  .icon-label-btn { min-width: 48px; min-height: 48px; }
  .icon-label-btn span { display: none; }
  .hero-card { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px; }
  .hero-card::before { mask-image: linear-gradient(to bottom, transparent, #000); }
  .hero-copy h1 { font-size: 28px; }
  .hero-orbit { position: absolute; right: -60px; top: -48px; width: 160px; opacity: .24; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1 1 auto; padding-inline: 12px; }
  .btn { font-size: 15px; }
  .stats-grid { margin-bottom: 16px; }
  .stat-card { min-height: 58px; gap: 8px; padding: 10px; }
  .stat-icon { width: 24px; height: 24px; }
  .stat-card strong { font-size: 20px; }
  .stat-card span { font-size: 13px; }
  .section-block, .view-panel { padding: 15px; border-radius: 17px; }
  .section-head, .view-heading { display: grid; gap: 15px; margin-bottom: 20px; }
  .section-head > .btn, .view-heading > .btn { justify-self: start; }
  .section-kicker { font-size: 11px; }
  .section-description, .view-heading p { font-size: 16px; line-height: 1.55; }
  .atlas-heading-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-mode-toggle { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .map-mode-btn { justify-content: center; min-height: 44px; font-size: 15px; }
  .atlas-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .atlas-summary-grid article { grid-template-columns: 38px auto; padding: 12px; }
  .atlas-summary-grid article > span:last-child { grid-column: 2; }
  .atlas-toolbar { display: grid; gap: 12px; }
  .atlas-filter-row { flex-wrap: nowrap; margin: 0 -15px; padding: 0 15px 4px; overflow-x: auto; scrollbar-width: none; }
  .atlas-filter-row::-webkit-scrollbar { display: none; }
  .atlas-filter-btn { flex: 0 0 auto; min-height: 40px; font-size: 14px; }
  .atlas-toolbar .map-legend { font-size: 12px; }
  .atlas-realm { padding: 11px; }
  .atlas-site-head { grid-template-columns: 38px minmax(0,1fr) auto; }
  .atlas-site-mark { width: 38px; height: 38px; }
  .atlas-site-meta { grid-column: 1 / -1; justify-items: start; padding-left: 48px; font-size: 14px; }
  .atlas-site-actions { grid-column: 3; grid-row: 1; }
  .atlas-site-network { padding: 10px 10px 0; }
  .atlas-site-network span { font-size: 12px; }
  .atlas-host-grid { padding: 9px; }
  .atlas-host-cluster { grid-template-columns: 1fr; gap: 10px; padding: 9px; }
  .atlas-host-card { padding: 12px; }
  .atlas-host-name { font-size: 17px; }
  .atlas-host-endpoint { font-size: 13px; }
  .atlas-host-badges span { font-size: 12px; }
  .atlas-service-spine { padding-left: 24px; }
  .atlas-service-row { min-height: 58px; grid-template-columns: 34px minmax(0,1fr) 40px; padding: 9px; }
  .atlas-service-icon { width: 34px; height: 34px; }
  .atlas-service-name { font-size: 16px; }
  .atlas-service-endpoint { font-size: 13px; }
  .atlas-service-row .atlas-edit-btn { width: 40px; height: 40px; }
  .footprint-map { min-height: 470px; aspect-ratio: auto; }
  .footprint-pin { max-width: 145px; padding: 7px 8px 7px 25px; }
  .footprint-pin strong { font-size: 13px; }
  .footprint-pin small { font-size: 11px; }
  .footprint-map-heading { top: 11px; left: 11px; }
  .footprint-map-heading span { font-size: 10px; }
  .footprint-map-heading strong { font-size: 14px; }
  .footprint-map-note { font-size: 11px; }
  .footprint-unlocated { bottom: 76px; }
  .footprint-index { padding: 11px; }
  .footprint-site-select { grid-template-columns: 42px minmax(0,1fr) 46px 52px; min-height: 92px; padding: 12px 46px 12px 12px; }
  .footprint-site-copy strong { font-size: 16px; }
  .footprint-site-copy span { font-size: 14px; }
  .footprint-site-copy small { font-size: 12px; }
  .footprint-network-details dt { font-size: 11px; }
  .footprint-network-details dd { font-size: 14px; line-height: 1.55; }
  .footprint-site-list, .footprint-network-details { grid-template-columns: 1fr; }
  .entity-context-row span { font-size: 12px; }
  .entity-grid, .entity-grid-services, .info-grid { grid-template-columns: 1fr; }
  .entity-card { padding: 18px; }
  .entity-kicker { font-size: 11px; }
  .entity-title, .entity-hardware-title { font-size: 20px; line-height: 1.25; }
  .entity-actions { gap: 6px; opacity: 1; }
  .icon-only-btn { width: 42px; height: 42px; }
  .entity-meta-grid { gap: 10px; margin-top: 18px; }
  .entity-meta-block { padding: 13px 14px; }
  .entity-meta-label, .meta-label { margin-bottom: 7px; font-size: 11px; }
  .entity-meta-value, .meta-value { font-size: 16px; line-height: 1.5; }
  .entity-copy-row { align-items: flex-start; }
  .entity-copy-row > .entity-link,
  .entity-copy-row > .entity-chip-link,
  .entity-copy-row > .entity-mono { flex: 1 1 auto; }
  .entity-mono { overflow: visible; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
  .entity-link, .entity-chip-link, .rustdesk-card-link { align-items: flex-start; }
  .entity-link span, .entity-chip-link span { overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
  .entity-link .ui-inline-icon, .entity-chip-link .ui-inline-icon { flex: 0 0 auto; margin-top: 4px; }
  .copy-btn { width: 40px; height: 40px; }
  .entity-note { padding: 14px; font-size: 16px; line-height: 1.6; }
  .entity-note-standalone { font-size: 15px; line-height: 1.65; }
  .entity-subpanel { padding: 14px; }
  .entity-subpanel-head { font-size: 11px; }
  .entity-chip-row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 7px; padding-top: 10px; }
  .entity-chip-row > .entity-copy-row { width: 100%; }
  .entity-chip-name { font-size: 15px; }
  .entity-chip-link { font-size: 14px; line-height: 1.45; }
  .entity-chip-muted, .entity-chip-anchor { font-size: 14px; line-height: 1.4; }
  .entity-chip-anchor { max-width: 100%; padding: 5px 9px; overflow-wrap: anywhere; }
  .info-panel:last-child { grid-column: auto; }
  .info-panel { padding: 18px; }
  #infoSection .meta-label { font-size: 12px; }
  #infoSection .meta-value { font-size: 17px; }
  .panel-title { font-size: 20px; }
  .panel-description { min-height: 0; font-size: 17px; line-height: 1.55; }
  .panel-body-text { font-size: 17px; line-height: 1.65; }
  .meta-wrap, .text-action { font-size: 15px; }
  .entity-hardware-title { font-size: 19px; }
  .entity-hardware-card { display: grid !important; gap: 14px; padding: 14px; }
  .entity-hardware-image { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .entity-hardware-pair { font-size: 16px; line-height: 1.55; }
  .rustdesk-card-title, .rustdesk-card-link { font-size: 16px; line-height: 1.5; }
  .topology-branch { grid-template-columns: 1fr; gap: 0; padding: 12px; }
  .map-legend { color: var(--text-muted); font-size: 13px; }
  .topology-host-name { overflow: visible; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
  .topology-host-meta { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
  .topology-host button { font-size: 14px; }
  .topology-connector { min-height: 48px; }
  .topology-connector::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(var(--cyan), var(--violet)); }
  .topology-connector::after { top: 0; left: calc(50% - 2px); animation: flow-dot-mobile 2.8s linear infinite; }
  @keyframes flow-dot-mobile { to { top: calc(100% - 5px); left: calc(50% - 2px); background: var(--violet); } }
  .topology-services { grid-template-columns: 1fr; padding: 14px 0 0; }
  .topology-services::before { top: 0; bottom: auto; left: 10%; right: 10%; width: auto; height: 1px; }
  .topology-service { align-items: flex-start; min-height: 58px; padding: 11px 12px; }
  .topology-service::before { top: -15px; left: 50%; width: 1px; height: 14px; }
  .topology-service-name, .topology-service-domain { overflow: visible; line-height: 1.4; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
  .topology-service-name { font-size: 16px; }
  .topology-service-domain { color: var(--text-muted); font-size: 14px; }
  .topology-service-actions .icon-only-btn { width: 40px; height: 40px; }
  .rescue-status { font-size: 11px; }
  .rescue-output { font-size: 13px; line-height: 1.7; }
  .modal-shell, .auth-shell { align-items: flex-end; padding: 10px; }
  .modal-panel { max-height: 92vh; border-radius: 18px; }
  .modal-title { font-size: 22px; }
  .modal-form { gap: 19px; }
  .modal-field-label, .modal-form label > span { font-size: 15px; }
  .modal-form input, .modal-form textarea, .modal-form select { min-height: 48px; font-size: 16px; }
  .modal-field-tip, .modal-form label > p { font-size: 13px; }
  .auth-panel { padding: 28px 23px; }
  .auth-description { font-size: 16px; }
  .auth-field > span { font-size: 15px; }
  .auth-input { font-size: 16px; }
  .auth-error { font-size: 14px; }
  .toast { font-size: 15px; }
  .side-nav-item { min-width: 72px; min-height: 60px; padding: 6px 8px; font-size: 12px; }
  .toast-region { top: auto; right: 16px; bottom: 88px; left: 16px; width: auto; }
}

@media (max-width: 430px) {
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn { gap: 6px; padding-inline: 8px; }
  .hero-actions .btn[data-view-target="map"] { grid-column: 1 / -1; }
  .side-nav { justify-content: flex-start; }
  .entity-meta-grid-server { grid-template-columns: 1fr; }
  .entity-topline { gap: 10px; }
  .entity-card { padding: 15px; }
  .entity-mark { width: 44px; height: 44px; }
  .entity-actions .icon-only-btn { width: 40px; height: 40px; }
  .info-meta-list p { grid-template-columns: 1fr; gap: 4px; }
  .info-meta-list .meta-label { margin-top: 0; }
  .meta-value { text-align: left; }
  .sensitive-value { justify-items: start; }
  .atlas-heading-actions { grid-template-columns: 1fr; }
  .map-mode-toggle { grid-column: 1; }
  .atlas-summary-grid article { grid-template-columns: 34px auto; }
  .atlas-summary-icon { width: 34px; height: 34px; }
  .atlas-summary-grid strong { font-size: 21px; }
  .atlas-filter-row { flex-wrap: wrap; margin: 0; padding: 0; overflow-x: visible; }
  .atlas-site-head { grid-template-columns: 38px minmax(0,1fr); }
  .atlas-site-actions { grid-column: 2; grid-row: auto; justify-self: end; }
  .atlas-site-meta { padding-left: 0; }
  .atlas-host-card { grid-template-columns: 40px minmax(0,1fr); }
  .atlas-host-card > .atlas-edit-btn { grid-column: 2; justify-self: end; }
  .atlas-host-badges { grid-column: 1 / -1; }
  .footprint-map { min-height: 430px; }
  .footprint-pin { max-width: 112px; }
  .footprint-pin small { display: none; }
  .footprint-pin.is-selected small { display: block; }
  .footprint-unlocated { right: 9px; bottom: 82px; left: 9px; justify-content: flex-start; }
  .footprint-unlocated > span { text-align: left; }
  .footprint-site-select { grid-template-columns: 40px minmax(0,1fr) 45px; }
  .footprint-site-count:last-child { display: none; }
  .modal-head { padding: 17px; }
  .modal-form { padding: 18px; }
  .modal-actions { padding: 14px 18px; }
}

@media (max-width: 360px) {
  .hero-actions .btn { font-size: 14px; }
  .entity-topline { display: grid; grid-template-columns: 44px minmax(0, 1fr); }
  .entity-actions { grid-column: 2; justify-self: end; margin-top: 8px; }
}

/* Website operations are explicit, timestamped observations, not telemetry. */
.hosting-view { min-width: 0; }
.hosting-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hosting-view > .view-heading .hosting-actions { flex-shrink: 0; }
.hosting-view .btn { min-height: 44px; }
.hosting-host { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.hosting-metric { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.hosting-metric > strong { color: var(--text); font-size: 18px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.hosting-caption { color: #a6b6c9; font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.hosting-muted { color: #a6b6c9; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.hosting-notice { margin: 0 0 18px; padding: 12px 15px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--cyan-soft); color: var(--text); font-size: 15px; overflow-wrap: anywhere; }
.hosting-error { border-color: rgba(255,111,145,.35); background: rgba(255,111,145,.08); color: #ffb3c4; }
.hosting-sites { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.hosting-site { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface-soft); transition: border-color 160ms ease; }
.hosting-site.is-selected { border-color: var(--cyan); }
.hosting-site-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hosting-site-head > div { min-width: 0; }
.hosting-site h3 { margin: 6px 0; font-size: 21px; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.hosting-address { margin: 0 0 12px; color: var(--cyan); font-size: 14px; overflow-wrap: anywhere; }
.hosting-badge { flex-shrink: 0; padding: 4px 9px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-soft); background: rgba(255,255,255,.035); font-size: 12px; line-height: 1.5; text-transform: capitalize; }
.hosting-badge-good { color: #b8f7dc; border-color: rgba(94,230,173,.28); background: rgba(94,230,173,.05); }
.hosting-badge-error { color: #ffb3c4; border-color: rgba(255,111,145,.3); background: rgba(255,111,145,.06); }
.hosting-facts { margin: 10px 0 0; }
.hosting-fact { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(0, 1.4fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(142,176,211,.08); font-size: 14px; }
.hosting-fact:last-child { border-bottom: 0; }
.hosting-fact dt { color: #a6b6c9; }
.hosting-fact dd { margin: 0; color: var(--text-soft); overflow-wrap: anywhere; }
.hosting-site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: auto; padding-top: 20px; }
.hosting-site-foot > span { flex: 1 1 130px; font-size: 12px; }
.hosting-empty { grid-column: 1 / -1; color: var(--text-soft); padding: 26px 0; }
.hosting-jobs:empty { display: none; }
.hosting-jobs { margin-bottom: 22px; }
.hosting-job { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 16px; border: 1px solid var(--border-violet); border-radius: 13px; background: var(--violet-soft); }
.hosting-job > strong { font-size: 15px; overflow-wrap: anywhere; }
.hosting-job > .hosting-muted { flex-basis: 100%; }
.hosting-detail { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border-strong); scroll-margin-top: calc(var(--topbar-height) + 18px); }
.hosting-detail-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 16px; }
.hosting-detail-head h3 { margin: 5px 0; font-size: 27px; letter-spacing: -.03em; overflow-wrap: anywhere; }
.hosting-detail-head p { margin: 0; }
.hosting-detail-head > .btn { flex-shrink: 0; }
.hosting-detail > .hosting-notice { margin-top: 18px; }
.hosting-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 22px; }
.hosting-detail-panel { padding: 20px; min-width: 0; border: 1px solid var(--border); border-radius: 14px; background: rgba(13,20,34,.65); }
.hosting-detail-panel:last-child { grid-column: 1 / -1; }
.hosting-detail-panel h4 { margin: 0 0 10px; font-size: 17px; }
.hosting-detail-panel .hosting-fact { font-size: 15px; }
.hosting-detail-panel > p { margin-bottom: 0; }
.hosting-log-details, .hosting-help { margin-top: 20px; border: 1px solid var(--border); border-radius: 14px; background: rgba(13,20,34,.4); }
.hosting-log-details > summary, .hosting-help > summary { padding: 17px 20px; color: var(--text-soft); font-weight: 600; font-size: 15px; cursor: pointer; min-height: 54px; }
.hosting-log-details[open] > summary, .hosting-help[open] > summary { border-bottom: 1px solid var(--border); }
.hosting-output { padding: 20px; margin: 0; max-height: 360px; overflow: auto; color: var(--text-soft); font-family: var(--font-mono); font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.hosting-history { padding: 12px 24px 14px 38px; font-size: 14px; color: var(--text-soft); }
.hosting-history li + li { margin-top: 12px; }
.hosting-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 32px; padding: 22px; }
.hosting-help h3 { margin: 0 0 8px; color: var(--text); font-size: 17px; }
.hosting-help p { margin: 8px 0 0; color: #a6b6c9; font-size: 15px; line-height: 1.7; }
.hosting-dialog { width: min(660px, calc(100% - 32px)); max-height: 90dvh; padding: 0; overflow: auto; border: 1px solid var(--border-strong); border-radius: 20px; color: var(--text); background: #0a0f1a; box-shadow: 0 35px 100px rgba(0,0,0,.58); }
.hosting-dialog::backdrop { background: rgba(1,3,8,.84); backdrop-filter: blur(12px); }
.hosting-dialog .modal-head { position: sticky; top: 0; z-index: 1; background: #0a0f1a; }
.hosting-dialog .modal-actions { position: sticky; bottom: 0; background: #0a0f1a; }
.hosting-dialog > .hosting-notice { margin: 0 22px 20px; }
.hosting-form-intro { margin: 0; color: var(--text-soft); font-size: 15px; }
.hosting-form .modal-field-label { font-size: 14px; }
.hosting-form .modal-field-tip { color: #a6b6c9; font-size: 13px; }
.hosting-form input, .hosting-form select { min-height: 44px; }
.hosting-form .hosting-checkbox { grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 8px 12px; }
.hosting-form .hosting-checkbox input { grid-column: 1; grid-row: 1; width: 20px; height: 20px; min-height: 20px; accent-color: var(--cyan); }
.hosting-form .hosting-checkbox > span { grid-column: 2; }
.hosting-form .hosting-checkbox > p { grid-column: 2; }
.hosting-plan { margin: 0; padding-left: 22px; color: var(--text-soft); font-size: 15px; line-height: 1.65; }
.hosting-plan li + li { margin-top: 10px; }
.hosting-plan-warnings { padding: 16px; border: 1px solid rgba(255,196,107,.25); border-radius: 12px; color: #ffda9f; background: rgba(255,196,107,.05); }
.hosting-plan-warnings h4 { margin: 0 0 8px; font-size: 15px; }
.hosting-plan-warnings ul { margin: 0; padding-left: 20px; font-size: 14px; }
.hosting-delete-review { min-width: 0; padding: 18px; border: 1px solid rgba(255,111,145,.3); border-radius: 14px; background: rgba(255,111,145,.04); }
.hosting-delete-review > h4, .hosting-resource-group h4, .hosting-job-result h4 { margin: 0 0 10px; font-size: 16px; }
.hosting-delete-address { margin: 0; color: var(--text); font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.hosting-resource-group { margin-top: 20px; }
.hosting-resources { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hosting-resources li { display: grid; gap: 5px; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.hosting-resources strong, .hosting-resources code { color: var(--text-soft); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.hosting-resources code { font-family: var(--font-mono); }
.hosting-resources p { margin: 0; }
.hosting-delete-review > .hosting-muted { margin-bottom: 0; }
.hosting-job-result { padding: 20px; }
.hosting-job-result > :first-child { margin-top: 0; }
.hosting-job-result > :last-child { margin-bottom: 0; }
.hosting-export, .hosting-download-offer { margin-top: 16px; padding: 18px; border: 1px solid var(--border-strong); border-radius: 13px; background: var(--surface-soft); }
.hosting-export > strong { display: block; overflow-wrap: anywhere; }
.hosting-export > p:last-child { margin-bottom: 0; }
.hosting-download-offer h4 { margin: 0; font-size: 16px; }
@media (max-width: 1200px) {
  .hosting-view > .view-heading { flex-direction: column; }
  .hosting-host { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hosting-sites { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hosting-site { padding: 18px; }
  .hosting-site-head { flex-wrap: wrap; gap: 8px; }
  .hosting-site-head > div { flex: 1 1 200px; }
  .hosting-metric { padding: 13px; }
  .hosting-metric > strong { font-size: 16px; }
  .hosting-muted, .hosting-fact, .hosting-site-foot > span { font-size: 14px; }
  .hosting-detail-head { flex-direction: column; }
  .hosting-detail-grid, .hosting-help-grid { grid-template-columns: 1fr; }
  .hosting-detail-panel { padding: 16px; }
  .hosting-help-grid { padding: 18px; }
  .hosting-detail-panel:last-child { grid-column: auto; }
  .hosting-fact { grid-template-columns: minmax(100px, .8fr) minmax(0, 1.1fr); gap: 12px; }
  .hosting-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .hosting-dialog .modal-actions { flex-wrap: wrap; }
  .hosting-dialog .modal-actions .btn { flex: 1 1 auto; }
  .hosting-form input, .hosting-form select { font-size: 16px; }
  .hosting-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-transparency: reduce) {
  .command-sidebar, .command-topbar, .section-block, .view-panel { backdrop-filter: none; background: var(--surface-strong); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ambient-pointer { display: none; }
}
