/* ==========================================================================
   LunaNode — Orbital Mission Control Interface  (v2 · open HUD style)
   Style preview build · derived from docu.odt §7 (Benutzeroberfläche)
   ========================================================================== */

:root {
  /* Background colors */
  --bg-deep-space: #03050a;
  --bg-void-blue: #070b14;
  --bg-panel-dark: #0b1220;
  --bg-surface: #101a2b;

  /* Primary colors */
  --c-cyan: #42e8ff;
  --c-blue: #4a7dff;
  --c-violet: #9b6cff;

  /* Status colors */
  --s-operational: #31f5a6;
  --s-notice: #5ec8ff;
  --s-warning: #ffc857;
  --s-critical: #ff4d6d;
  --s-maintenance: #a879ff;
  --s-offline: #6b7280;

  /* Text colors */
  --t-primary: #f4f8ff;
  --t-secondary: #9dabc2;
  --t-muted: #64748b;

  /* Hairlines & glow (no solid card outlines — thin gradient lines only) */
  --line: rgba(157, 171, 194, 0.14);
  --line-cyan: rgba(66, 232, 255, 0.4);
  --glow-cyan: 0 0 22px rgba(66, 232, 255, 0.4);
  --glow-violet: 0 0 22px rgba(155, 108, 255, 0.35);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --sidebar-w: 230px;
  --cut: 16px; /* angular cut-corner size for framed panels */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep-space);
  color: var(--t-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
::selection { background: rgba(66, 232, 255, 0.28); color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
  border-radius: 3px;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(157, 171, 194, 0.22); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(66, 232, 255, 0.4); }

.mono { font-family: var(--font-mono); letter-spacing: 0.01em; }

/* ---------- Background: deep space + rings + grid + stars ---------- */
.space-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 1100px 700px at 78% -10%, rgba(155, 108, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 900px 650px at 8% 6%, rgba(74, 125, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 1000px 800px at 50% 115%, rgba(66, 232, 255, 0.07), transparent 60%),
    linear-gradient(180deg, var(--bg-deep-space) 0%, var(--bg-void-blue) 100%);
}
.space-bg::before {
  content: "";
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(157, 171, 194, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 171, 194, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 85% 65% at 65% 0%, #000 25%, transparent 75%);
}
.orbit-rings {
  position: absolute;
  top: -180px;
  right: -220px;
  width: 760px;
  height: 760px;
  pointer-events: none;
  opacity: 0.55;
}
.orbit-rings svg { width: 100%; height: 100%; }
.orbit-rings .r1 { transform-origin: 380px 380px; animation: spin 90s linear infinite; }
.orbit-rings .r2 { transform-origin: 380px 380px; animation: spin 130s linear infinite reverse; }
.orbit-rings .r3 { transform-origin: 380px 380px; animation: spin 200s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.stars { position: absolute; inset: 0; }
.stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #cfe4ff;
  opacity: 0.5;
  animation: twinkle 5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.85; }
}

/* ---------- App shell ---------- */
.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: 66px 1fr;
  grid-template-areas:
    "sidebar topbar"
    "sidebar main";
  min-height: 100vh;
}

/* ---------- Sidebar — frameless, single hairline boundary ---------- */
.sidebar {
  grid-area: sidebar;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.5), rgba(3, 5, 10, 0.2));
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 0 0 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 66px;
  padding: 0 22px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  position: relative;
  flex: none;
}
.brand-mark svg { width: 100%; height: 100%; animation: spin 40s linear infinite; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 14.5px; letter-spacing: 0.06em; background: linear-gradient(90deg, var(--t-primary), var(--c-cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text span { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-muted); }

.nav { flex: 1; padding: 10px 16px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
.nav-label {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-muted);
  padding: 16px 6px 7px;
  opacity: 0.75;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 6px 8px 12px;
  color: var(--t-secondary);
  font-size: 13px;
  position: relative;
  border-left: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-item .ic { width: 15px; height: 15px; flex: none; opacity: 0.75; transition: opacity 0.15s ease, filter 0.15s ease; }
.nav-item:hover { color: var(--t-primary); border-left-color: rgba(66, 232, 255, 0.35); }
.nav-item:hover .ic { opacity: 1; }
.nav-item.active {
  color: var(--t-primary);
  border-left-color: var(--c-cyan);
  text-shadow: 0 0 12px rgba(66, 232, 255, 0.5);
}
.nav-item.active .ic { opacity: 1; filter: drop-shadow(0 0 5px rgba(66, 232, 255, 0.7)); color: var(--c-cyan); }
.nav-item .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--t-muted);
}
.nav-item.crit .count { color: var(--s-critical); text-shadow: 0 0 8px rgba(255, 77, 109, 0.6); }
.nav-item .count.warn-count { color: var(--s-warning); }

.sidebar-foot {
  margin: 12px 22px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.sidebar-foot .row { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: var(--t-muted); }
.sidebar-foot .row + .row { margin-top: 7px; }
.sidebar-foot .val { color: var(--t-secondary); font-family: var(--font-mono); }

/* ---------- Topbar — open, hairline bottom only ---------- */
.topbar {
  grid-area: topbar;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
}
.global-status {
  display: flex;
  align-items: center;
  gap: 9px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--s-operational);
  box-shadow: 0 0 10px var(--s-operational);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.78); }
}
.global-status .label { font-size: 12px; color: var(--t-muted); letter-spacing: 0.02em; }
.global-status strong { color: var(--s-operational); font-weight: 600; text-shadow: 0 0 10px rgba(49, 245, 166, 0.5); }

.searchbar {
  flex: 1;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 2px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--t-muted);
  transition: border-color 0.15s ease;
}
.searchbar:focus-within { border-color: var(--line-cyan); }
.searchbar svg { width: 14px; height: 14px; flex: none; }
.searchbar input {
  background: none;
  border: none;
  outline: none;
  color: var(--t-primary);
  font-size: 13px;
  width: 100%;
}
.searchbar input::placeholder { color: var(--t-muted); }
.searchbar kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--t-muted);
}

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.clock { text-align: right; }
.clock .time { font-family: var(--font-mono); font-size: 15px; color: var(--t-primary); letter-spacing: 0.03em; }
.clock .date { font-size: 10px; color: var(--t-muted); }

.icon-btn {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--t-secondary);
  transition: color 0.15s ease, filter 0.15s ease;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { color: var(--c-cyan); filter: drop-shadow(0 0 6px rgba(66, 232, 255, 0.6)); }
.icon-btn .badge {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 20px;
  background: var(--s-critical);
  color: #1a0409;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 8px rgba(255, 77, 109, 0.7);
}

.profile { display: flex; align-items: center; gap: 9px; padding-left: 16px; border-left: 1px solid var(--line); }
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--c-cyan), var(--c-blue), var(--c-violet), var(--c-cyan));
  display: grid;
  place-items: center;
  position: relative;
}
.avatar::after {
  content: "SS";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--bg-deep-space);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--t-primary);
}
.profile .who { display: flex; flex-direction: column; line-height: 1.2; }
.profile .who strong { font-size: 12.5px; }
.profile .who span { font-size: 10px; color: var(--t-muted); }

/* ---------- Main ---------- */
.main {
  grid-area: main;
  padding: 30px 30px 48px;
  overflow-y: auto;
  position: relative;
}
.main-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 30px; gap: 24px; flex-wrap: wrap; position: relative; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-cyan);
  display: block;
  margin-bottom: 8px;
  text-shadow: 0 0 12px rgba(66, 232, 255, 0.5);
}
.main-head h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #ffffff 30%, var(--c-cyan) 75%, var(--c-violet) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(66, 232, 255, 0.18));
}
.main-head .sub { font-size: 12.5px; color: var(--t-muted); margin-top: 8px; }

.quick-actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; padding-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 0;
  font-size: 12.5px;
  color: var(--t-secondary);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: none;
  border-top: none; border-left: none; border-right: none;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 14px; height: 14px; }
.btn:hover { color: var(--t-primary); border-color: var(--line-cyan); }
.btn.primary {
  color: #04121a;
  background: linear-gradient(135deg, var(--c-cyan), var(--c-blue));
  border: none;
  border-radius: 3px;
  padding: 9px 16px;
  font-weight: 700;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 100%, 9px 100%);
}
.btn.primary:hover { box-shadow: 0 0 24px rgba(66, 232, 255, 0.55); }

/* ---------- Framed panels (angular, minimal — used only for dense grids) ---------- */
.frame {
  position: relative;
  background: linear-gradient(165deg, rgba(16, 26, 43, 0.32), rgba(11, 18, 32, 0.14));
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  padding: 20px 22px 18px;
}
.frame::before {
  /* top accent line following the cut corner */
  content: "";
  position: absolute;
  top: 0; left: var(--cut); right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(66, 232, 255, 0.75), rgba(155, 108, 255, 0.15) 70%, transparent);
}
.frame::after {
  /* bottom-left hairline + corner ticks */
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 0 0 1px rgba(157, 171, 194, 0.09);
  pointer-events: none;
}
.frame:hover::after { box-shadow: inset 0 0 0 1px rgba(66, 232, 255, 0.22); }
.frame-tick {
  position: absolute;
  width: 9px; height: 9px;
  border-top: 1.5px solid var(--c-cyan);
  border-right: 1.5px solid var(--c-cyan);
  top: 8px; right: 8px;
  opacity: 0.6;
}

.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h3 { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-secondary); font-weight: 600; }
.panel-head .meta { font-size: 10px; color: var(--t-muted); font-family: var(--font-mono); }
.panel-link { font-size: 11px; color: var(--c-cyan); }
.panel-link:hover { text-shadow: 0 0 10px rgba(66, 232, 255, 0.6); }

/* ---------- Open section (frameless, divided by hairlines) ---------- */
.open-section { margin-bottom: 40px; }
.open-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.open-head h2 { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-secondary); font-weight: 600; }
.open-head .meta { font-size: 10px; color: var(--t-muted); font-family: var(--font-mono); }

/* ---------- Grid rows ---------- */
.row { display: grid; gap: 20px; margin-bottom: 20px; align-items: start; }
.row-wide { grid-template-columns: 1.3fr 1fr; }
.row-triple { grid-template-columns: 1fr 1fr; }

/* ---------- Hero orbital core ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  margin-bottom: 6px;
}
.core {
  position: relative;
  width: 168px;
  height: 168px;
  flex: none;
  display: grid;
  place-items: center;
}
.core svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.core-ring-bg { fill: none; stroke: rgba(157, 171, 194, 0.1); stroke-width: 1.4; }
.core-ring-val { fill: none; stroke: var(--s-operational); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(49, 245, 166, 0.7)); transition: stroke-dashoffset 1.2s ease; }
.core-ring-dash { fill: none; stroke: rgba(66, 232, 255, 0.4); stroke-width: 1; stroke-dasharray: 2 6; animation: spin 60s linear infinite; transform-origin: center; }
.core-center { text-align: center; }
.core-center .num { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--t-primary); text-shadow: 0 0 18px rgba(49, 245, 166, 0.55); }
.core-center .lbl { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-muted); margin-top: 2px; }

/* ---------- Open stat strip (row 1) ---------- */
.stat-strip {
  display: flex;
  margin-bottom: 6px;
}
.stat-item {
  flex: 1;
  padding: 0 26px;
  border-left: 1px solid var(--line);
  transition: filter 0.15s ease;
}
.stat-item:first-child { padding-left: 0; border-left: none; }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stat-icon { width: 16px; height: 16px; color: var(--t-muted); }
.stat-item:hover .stat-icon { color: var(--c-cyan); }
.trend { font-family: var(--font-mono); font-size: 10.5px; }
.trend.up { color: var(--s-operational); }
.trend.down { color: var(--s-warning); }
.trend.flat { color: var(--t-muted); }
.stat-value {
  font-size: 34px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--t-primary);
}
.stat-item.ok .stat-value { text-shadow: 0 0 22px rgba(49, 245, 166, 0.25); }
.stat-item.warn .stat-value { text-shadow: 0 0 22px rgba(255, 200, 87, 0.3); color: var(--s-warning); }
.stat-value small { font-size: 14px; color: var(--t-muted); font-weight: 500; margin-left: 5px; }
.stat-label { font-size: 11.5px; color: var(--t-muted); margin-top: 8px; }

/* ---------- Metrics strip (row 2) ---------- */
.metric-strip { display: flex; }
.metric-col { flex: 1; padding: 0 26px; border-left: 1px solid var(--line); }
.metric-col:first-child { padding-left: 0; border-left: none; }
.metric-col .m-label { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-muted); margin-bottom: 14px; }

.gauge-wrap { display: flex; align-items: center; gap: 16px; }
.gauge { position: relative; width: 76px; height: 76px; flex: none; }
.gauge svg { transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: rgba(157, 171, 194, 0.1); stroke-width: 3; }
.gauge-value { fill: none; stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.gauge-center {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
}
.gauge-desc strong { display: block; font-size: 19px; }
.gauge-desc span { font-size: 10.5px; color: var(--t-muted); }

.metric-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.metric-row .name { font-size: 11.5px; color: var(--t-secondary); }
.metric-row .val { font-family: var(--font-mono); font-size: 11.5px; }
.meter { height: 2px; background: rgba(157, 171, 194, 0.1); overflow: hidden; margin-bottom: 12px; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-cyan), var(--c-blue)); box-shadow: 0 0 8px rgba(66, 232, 255, 0.6); }
.meter.warn > span { background: linear-gradient(90deg, var(--s-warning), #ff9a4d); box-shadow: 0 0 8px rgba(255, 200, 87, 0.5); }
.meter.crit > span { background: linear-gradient(90deg, var(--s-critical), #ff8ba0); box-shadow: 0 0 8px rgba(255, 77, 109, 0.5); }

.latency-line { height: 50px; }
.latency-line path.fill { fill: url(#latencyFill); }
.latency-line path.line { fill: none; stroke: var(--c-cyan); stroke-width: 1.4; filter: drop-shadow(0 0 4px rgba(66, 232, 255, 0.7)); }

/* ---------- Status badges (icon/label + color, never color alone) ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.status-badge .sdot { width: 6px; height: 6px; border-radius: 50%; }
.status-badge.operational { color: var(--s-operational); }
.status-badge.operational .sdot { background: var(--s-operational); box-shadow: 0 0 7px var(--s-operational); }
.status-badge.notice { color: var(--s-notice); }
.status-badge.notice .sdot { background: var(--s-notice); box-shadow: 0 0 7px var(--s-notice); }
.status-badge.warning { color: var(--s-warning); }
.status-badge.warning .sdot { background: var(--s-warning); box-shadow: 0 0 7px var(--s-warning); }
.status-badge.critical { color: var(--s-critical); }
.status-badge.critical .sdot { background: var(--s-critical); box-shadow: 0 0 7px var(--s-critical); animation: pulse-dot 1.6s ease-in-out infinite; }
.status-badge.maintenance { color: var(--s-maintenance); }
.status-badge.maintenance .sdot { background: var(--s-maintenance); box-shadow: 0 0 7px var(--s-maintenance); }
.status-badge.offline { color: var(--s-offline); }
.status-badge.offline .sdot { background: var(--s-offline); }

/* ---------- Node list / table (inside .frame) ---------- */
.node-list { display: flex; flex-direction: column; }
.node-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 0.95fr;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.15s ease;
}
.node-row:last-child { border-bottom: none; }
.node-row:hover { padding-left: 6px; }
.node-row .n-name { display: flex; flex-direction: column; gap: 2px; }
.node-row .n-name strong { font-size: 12.5px; }
.node-row .n-name span { font-size: 10.5px; color: var(--t-muted); font-family: var(--font-mono); }
.node-row .n-metric { font-family: var(--font-mono); font-size: 11.5px; color: var(--t-secondary); }
.table-head {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 0.95fr;
  gap: 10px;
  padding-bottom: 10px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t-muted);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}

/* ---------- Service matrix (inside .frame) ---------- */
.service-matrix { display: grid; grid-template-columns: repeat(3, 1fr); }
.service-cell {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-matrix .service-cell:nth-child(3n) { padding-right: 0; }
.service-cell .top { display: flex; align-items: center; justify-content: space-between; }
.service-cell .svc-name { font-size: 12px; font-weight: 600; }
.service-cell .svc-node { font-size: 10.5px; color: var(--t-muted); font-family: var(--font-mono); }

/* ---------- Live events — open vertical spine, no box ---------- */
.event-feed { position: relative; padding-left: 16px; }
.event-feed::before {
  content: "";
  position: absolute;
  left: 3px; top: 4px; bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(66, 232, 255, 0.5), rgba(66, 232, 255, 0.02));
}
.event {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 0 0 18px;
}
.event:last-child { padding-bottom: 0; }
.event .estat {
  position: absolute;
  left: -16px; top: 4px;
  width: 7px; height: 7px;
  border-radius: 50%;
}
.event .etext { font-size: 12px; color: var(--t-secondary); line-height: 1.5; }
.event .etext strong { color: var(--t-primary); font-weight: 600; }
.event .etime { display: block; font-size: 10px; color: var(--t-muted); font-family: var(--font-mono); margin-top: 3px; }

/* ---------- Cert list — open rows ---------- */
.cert-list { display: flex; flex-direction: column; }
.cert-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.cert-row:last-child { border-bottom: none; }
.cert-row .c-domain { font-family: var(--font-mono); font-size: 12px; flex: 1; color: var(--t-secondary); }

/* ---------- Bottom open strip (4 columns, hairline dividers) ---------- */
.bottom-strip { display: flex; }
.bottom-col { flex: 1; padding: 0 26px; border-left: 1px solid var(--line); }
.bottom-col:first-child { padding-left: 0; border-left: none; }
.mini-list { display: flex; flex-direction: column; }
.mini-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-item:first-child { padding-top: 0; }
.mini-item:last-child { border-bottom: none; padding-bottom: 0; }
.mini-item .title { font-size: 12px; color: var(--t-primary); font-weight: 500; }
.mini-item .meta { font-size: 10.5px; color: var(--t-muted); font-family: var(--font-mono); display: flex; gap: 8px; align-items: center; }

.empty-note { font-size: 11px; color: var(--t-muted); padding: 10px 0 0; }

/* ---------- Scanline sweep ---------- */
.scanline {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(66, 232, 255, 0.55), transparent);
  opacity: 0.5;
  animation: scan 7s linear infinite;
  pointer-events: none;
}
@keyframes scan {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { top: 100%; opacity: 0; }
}

/* ---------- Responsive (§7.6) ---------- */
@media (max-width: 1180px) {
  .stat-strip, .metric-strip, .bottom-strip { flex-wrap: wrap; row-gap: 22px; }
  .stat-item, .metric-col, .bottom-col { flex: 1 1 45%; }
  .stat-item:nth-child(odd), .metric-col:nth-child(odd), .bottom-col:nth-child(odd) { border-left: none; padding-left: 0; }
  .row-wide, .row-triple { grid-template-columns: 1fr; }
  .service-matrix { grid-template-columns: repeat(2, 1fr); }
  .service-matrix .service-cell:nth-child(3n) { padding-right: 14px; }
  .service-matrix .service-cell:nth-child(2n) { padding-right: 0; }
  .hero { grid-template-columns: 1fr; }
  .core { justify-self: start; }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; grid-template-areas: "topbar" "main"; grid-template-rows: auto 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 230px; transform: translateX(-100%); transition: transform 0.2s ease; z-index: 30; background: rgba(3,5,10,0.96); }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 40px rgba(0,0,0,0.5); }
  .searchbar { display: none; }
  .menu-btn { display: grid !important; }
  .topbar { flex-wrap: wrap; row-gap: 10px; padding: 12px 18px; height: auto; }
  .topbar-right { gap: 12px; }
  .main { padding: 24px 18px 40px; }
  .main-head h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .stat-item, .metric-col, .bottom-col { flex: 1 1 100%; border-left: none !important; padding-left: 0 !important; }
  .node-row, .table-head { grid-template-columns: 1.4fr 1fr; }
  .node-row .n-metric:nth-child(4), .node-row .n-metric:nth-child(5),
  .table-head span:nth-child(4), .table-head span:nth-child(5) { display: none; }
  .service-matrix { grid-template-columns: 1fr 1fr; }
  .clock .date { display: none; }
  .profile .who span { display: none; }
}

.menu-btn { display: none; }

/* ---------- Reduced motion (§7.4 accessibility requirement) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .scanline { display: none; }
}
