/* ── Extra styles for new features (modals, ping history, reboot, etc.) ── */
/* Hallmark · component: modal-workbench · genre: modern-minimal · theme: cobalt-carbon */

/* ══ RIPPLE EFFECT ══════════════════════════════════════════════════ */
@keyframes rippleOut {
  from { transform: scale(0); opacity: 0.25; }
  to   { transform: scale(1); opacity: 0; }
}
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  pointer-events: none;
  transform: scale(0);
  animation: rippleOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ══ MODAL OVERLAY (Hallmark Telemetry Standard) ══════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(13, 17, 23, 0.82);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%; max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px 30px;
  box-shadow:
    0 24px 48px -12px rgba(0,0,0,.85),
    0 0 0 1px var(--border),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(12px);
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-title {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
  margin: 0 0 20px;
  display: flex; align-items: center; gap: 10px;
  padding-right: 36px; /* space for close btn */
}
.modal-close {
  position: absolute !important; top: 18px !important; right: 18px !important; left: auto !important;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 6px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.modal-close:hover {
  background: rgba(248,81,73,0.15);
  border-color: rgba(248,81,73,0.4);
  color: var(--alert);
}
.modal-close:active {
  transform: translateY(1px);
}
.modal-close:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 1px;
}

/* ══ PING HISTORY MODAL ══════════════════════════════════════════════ */
.hist-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.hist-stat {
  background: rgba(31, 41, 55, 0.5); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px 14px; text-align: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.hist-stat .hs-val {
  font-family: var(--mono); font-size: 24px; font-weight: 700; color: #fff;
}
.hist-stat .hs-lbl {
  font-size: 11px; color: var(--text-muted); margin-top: 6px;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .5px;
}
.chart-wrap { position: relative; height: 200px; margin-top: 12px; }

/* Reboot & Diagnostics modal */
.ctrl-tab-btn {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-muted); font-family: var(--mono); font-size: 11px;
  font-weight: 600; padding: 8px 14px; cursor: pointer; display: inline-flex;
  align-items: center; gap: 6px; transition: all 0.15s ease;
}
.ctrl-tab-btn:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.ctrl-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.ctrl-hero-box {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.ctrl-hero-left .ch-name { font-size: 15px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.ctrl-hero-left .ch-meta { font-family: var(--mono); font-size: 11px; color: var(--text-muted); margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.ctrl-hero-right { display: flex; align-items: center; gap: 8px; }

.btn-web-admin {
  background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8; padding: 6px 12px; border-radius: 6px; font-family: var(--mono);
  font-size: 11px; font-weight: 600; cursor: pointer; display: inline-flex;
  align-items: center; gap: 6px; transition: all 0.15s ease;
}
.btn-web-admin:hover { background: rgba(56, 189, 248, 0.25); color: #fff; transform: translateY(-1px); }

/* Switch Port Matrix Rack */
.port-rack-container {
  background: #090d16; border: 1px solid #1e293b;
  border-radius: 8px; padding: 14px; margin-bottom: 14px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4);
}
.port-rack-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pr-title { font-family: var(--mono); font-size: 11px; font-weight: 700; color: #94a3b8; letter-spacing: 0.05em; text-transform: uppercase; }
.pr-badge-active {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3); color: #4ade80;
}
.port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}
.port-cell {
  background: #111827; border: 1px solid #1f2937;
  border-radius: 6px; padding: 8px 6px; text-align: center;
  transition: all 0.15s ease; position: relative;
}
.port-cell.is-up {
  border-color: rgba(34, 197, 94, 0.4);
  background: #0d1b1e;
}
.port-cell.is-down {
  opacity: 0.7;
}
.port-cell:hover { transform: translateY(-1px); border-color: var(--accent); }
.port-led {
  width: 7px; height: 7px; border-radius: 50%; margin: 0 auto 5px;
  background: #374151; transition: all 0.2s;
}
.port-cell.is-up .port-led {
  background: #22c55e; box-shadow: 0 0 8px #22c55e;
}
.port-num { font-family: var(--mono); font-size: 11px; font-weight: 700; color: #f1f5f9; }
.port-speed {
  font-family: var(--mono); font-size: 9px; margin-top: 3px;
  font-weight: 600; color: var(--text-muted);
}
.port-cell.is-up .port-speed { color: #38bdf8; }

.snmp-info-strip {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px; padding: 10px 12px; margin-bottom: 12px;
  font-family: var(--mono); font-size: 11px; color: #cbd5e1; line-height: 1.5;
}

/* NVR CCTV Telemetry & Storage Cards */
.nvr-storage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.nvr-hdd-card {
  background: #0f172a; border: 1px solid #1e293b;
  border-radius: 6px; padding: 12px; position: relative;
}
.nvr-hdd-card.ok { border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.05); }
.nvr-hdd-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.nvr-hdd-title { font-family: var(--mono); font-size: 11px; font-weight: 700; color: #fff; }
.nvr-hdd-badge {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  padding: 1px 6px; border-radius: 3px; background: rgba(34, 197, 94, 0.2);
  color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); text-transform: uppercase;
}
.nvr-hdd-cap { font-family: var(--mono); font-size: 17px; font-weight: 700; color: #38bdf8; }
.nvr-hdd-sub { font-family: var(--mono); font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.nvr-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.nvr-stat-card {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px; text-align: center;
}
.nvr-stat-val { font-family: var(--mono); font-size: 12px; font-weight: 700; color: #fff; word-break: break-all; }
.nvr-stat-lbl { font-family: var(--mono); font-size: 9.5px; color: var(--text-muted); text-transform: uppercase; margin-top: 3px; }

.nvr-stream-box {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: 6px; padding: 12px; margin-bottom: 14px;
  font-family: var(--mono); font-size: 11px; line-height: 1.6;
}
.nvr-stream-url {
  background: #090d16; border: 1px solid #1e293b;
  border-radius: 4px; padding: 7px 10px; color: #38bdf8;
  display: flex; justify-content: space-between; align-items: center; margin-top: 6px;
  word-break: break-all;
}

/* Config Backup tab */
.config-table-wrap {
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 14px;
}
.config-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11.5px; }
.config-table th { background: var(--panel-2); color: var(--text-muted); padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); }
.config-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--text); }
.config-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Incident Downtime & Ack */
.incident-ack-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px;
  border-radius: 4px; font-family: var(--mono); font-size: 10px; font-weight: 700;
}
.incident-ack-badge.unacked {
  background: rgba(248, 113, 113, 0.15); border: 1px solid rgba(248, 113, 113, 0.35); color: #f87171;
}
.incident-ack-badge.acked {
  background: rgba(251, 191, 36, 0.15); border: 1px solid rgba(251, 191, 36, 0.35); color: #fbbf24;
}
.btn-ack-incident {
  background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24; font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  padding: 4px 8px; border-radius: 4px; cursor: pointer; transition: all 0.15s;
}
.btn-ack-incident:hover { background: rgba(251, 191, 36, 0.25); color: #fff; }

.reboot-device-info {
  background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 8px; padding: 16px 20px; margin-bottom: 20px;
}
.reboot-device-info .di-name { font-size: 15px; color: #fff; font-weight: 600; }
.reboot-device-info .di-ip   { font-family: var(--mono); font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.reboot-confirm-input {
  width: 100%; padding: 10px 14px;
  background: var(--panel-2); border: 1px solid rgba(248, 113, 113, 0.4);
  color: var(--text); border-radius: 6px; font-family: var(--mono); font-size: 14px;
  transition: all 0.2s;
}
.reboot-confirm-input:focus { outline: none; border-color: var(--alert); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.3); }
.btn-danger {
  background: var(--alert); border: none; color: #fff;
  padding: 10px 20px; border-radius: 6px; font-family: var(--mono);
  font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 12px rgba(248, 113, 113, 0.4);
}
.btn-danger:hover { background: #EF4444; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(248, 113, 113, 0.4); }
.btn-danger:active { transform: translateY(1px); }
.btn-danger:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-test-ssh {
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); padding: 10px 16px; border-radius: 6px;
  font-family: var(--mono); font-size: 12.5px; cursor: pointer;
}
.btn-test-ssh:hover { border-color: var(--accent); color: var(--accent); background: rgba(56, 189, 248, 0.1); }

/* Password change modal */
.pwd-fields { display: flex; flex-direction: column; gap: 16px; }

/* User badge in header */
.user-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--border);
  border-radius: 5px; font-family: var(--mono); font-size: 11.5px;
  color: var(--text-muted); cursor: pointer;
  background: var(--panel-2); position: relative;
  transition: all 0.15s ease;
}
.user-badge:hover { border-color: var(--color-rule-focus); background: var(--color-paper-hover); }
.user-badge:active { transform: translateY(1px); }
.u-avatar-wrap { display: flex; align-items: center; gap: 6px; }
.user-badge .u-name { color: var(--text); font-weight: 600; }
.user-badge .u-role {
  font-size: 9.5px; font-weight: 700; background: rgba(56, 139, 253, 0.15); color: var(--accent);
  padding: 1px 5px; border-radius: 3px; border: 1px solid rgba(56, 139, 253, 0.3); letter-spacing: 0.04em;
}
.user-badge .u-caret { color: var(--color-ink-3); transition: transform 0.15s ease; }
.user-badge.open .u-caret { transform: rotate(180deg); }

.user-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 6px; min-width: 210px; z-index: 250;
  box-shadow: 0 16px 32px -8px rgba(0,0,0,0.7), 0 0 0 1px var(--color-rule);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  padding: 4px;
}

.user-badge.open .user-menu {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.user-menu-header { padding: 8px 10px 6px; }
.um-user { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--text); }
.um-sub { font-family: var(--mono); font-size: 9.5px; color: var(--color-ink-3); font-weight: 600; margin-top: 1px; }
.user-menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 7px 10px; background: none; border: none; border-radius: 4px;
  color: var(--text-muted); font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: all 0.12s ease;
}
.user-menu-item:hover { background: var(--color-paper-hover); color: var(--text); }
.user-menu-item:active { transform: translateY(1px); }
.user-menu-item.danger { color: var(--alert); }
.user-menu-item.danger:hover { background: rgba(248, 81, 73, 0.12); color: var(--alert); }
.user-menu hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* WS indicator */
.ws-indicator, .ws-telemetry-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 8px; border: 1px solid var(--border);
  border-radius: 5px; background: var(--panel-2);
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--text-muted);
}
.ws-dot { width: 6.5px; height: 6.5px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.ws-dot.connected { background: var(--ok); box-shadow: 0 0 0 1.5px rgba(63, 185, 80, 0.3); }
.ws-dot.reconnecting { background: var(--warn); box-shadow: 0 0 0 1.5px rgba(210, 153, 34, 0.3); }
.ws-dot.disconnected { background: var(--alert); box-shadow: 0 0 0 1.5px rgba(248, 81, 73, 0.3); }

/* Ping latency inline chip */
.latency-chip {
  font-family: var(--mono); font-size: 11px;
  padding: 3px 8px; border-radius: 4px;
  background: rgba(255,255,255,.05); color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid rgba(255,255,255,0.05);
}
.latency-chip.good  { color: var(--ok); border-color: rgba(52,211,153,0.2); background: rgba(52,211,153,0.05); }
.latency-chip.warn  { color: var(--warn); border-color: rgba(251,191,36,0.2); background: rgba(251,191,36,0.05); }
.latency-chip.bad   { color: var(--alert); border-color: rgba(248,113,113,0.2); background: rgba(248,113,113,0.05); }

/* Action button spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinning { animation: spin .7s linear infinite; display: inline-block; }


/* toast update — full definitions moved to bottom of file */


/* Device SSH section in form */
.ssh-section {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.ssh-toggle {
  background: none; border: none; color: var(--accent);
  font-family: var(--mono); font-size: 12px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 8px; padding: 0;
  margin-bottom: 14px; transition: color 0.2s;
}
.ssh-toggle:hover { color: #7DD3FC; }
.ssh-toggle .chevron { transition: transform .2s ease; }
.ssh-toggle.open .chevron { transform: rotate(90deg); }
.ssh-fields { display: none; }
.ssh-toggle.open + .ssh-fields { display: block; animation: slideDown 0.3s ease-out; }

/* Responsive */
@media (max-width: 520px) {
  .modal { padding: 24px 20px; max-width: calc(100vw - 32px); }
  .hist-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hist-stat { padding: 12px 10px; }
  .hist-stat .hs-val { font-size: 20px; }
}

/* ── MODEL 1: DASHBOARD GRID VIEW ─────────────────────────────────────── */
#grid-view-panel {
  height: 100%;
  overflow-y: auto;
  padding: 24px 32px;
}

/* ── 10.5 DASHBOARD GRID (Hallmark Industrial Telemetry Matrix) ───── */
#grid-view-panel {
  padding: 18px 24px;
  overflow-y: auto;
  height: 100%;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.grid-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  margin-bottom: 16px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  gap: 12px;
  flex-wrap: wrap;
}
.gt-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
}
.gt-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.gt-summary {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.gt-fault-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(248, 81, 73, 0.15);
  color: var(--alert);
  border: 1px solid rgba(248, 81, 73, 0.35);
  font-variant-numeric: tabular-nums;
}
.gt-ok-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(63, 185, 80, 0.15);
  color: var(--ok);
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.gt-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gt-control-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
}
.gt-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-ink-3);
  letter-spacing: 0.04em;
}
.gt-select {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-family: var(--sans);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.gt-select:focus {
  border-color: var(--color-focus);
}
.gt-view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.gt-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: var(--panel);
  border: none;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gt-btn:hover {
  color: var(--text);
  background: var(--color-paper-hover);
}
.gt-btn.active {
  background: var(--panel-2);
  color: var(--accent);
  font-weight: 700;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

/* Telemetry Instrument Card */
.bcard {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  position: relative;
}
.bcard:hover {
  transform: translateY(-2px);
  border-color: var(--color-rule-focus);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.6);
}
.bcard:active {
  transform: translateY(0);
}

.bcard.status-ok {
  border-left-color: var(--ok);
}
.bcard.status-warn {
  border-left-color: var(--warn);
  background: linear-gradient(to right, rgba(210, 153, 34, 0.04), var(--panel) 15%);
}
.bcard.status-alert {
  border-left-color: var(--alert);
  background: linear-gradient(to right, rgba(248, 81, 73, 0.06), var(--panel) 25%);
}
.bcard.status-idle {
  border-left-color: var(--idle);
}

.bcard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.bcard-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  margin-bottom: 3px;
}
.bcard-zone {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.bcard-id-tag {
  font-size: 9px;
  font-weight: 600;
  color: var(--color-ink-3);
  background: var(--panel-2);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.bcard-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.bcard-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.bcard-badge.ok {
  background: rgba(63, 185, 80, 0.12);
  color: var(--ok);
  border: 1px solid rgba(63, 185, 80, 0.25);
}
.bcard-badge.alert {
  background: rgba(248, 81, 73, 0.15);
  color: var(--alert);
  border: 1px solid rgba(248, 81, 73, 0.35);
}
.bcard-badge.warn {
  background: rgba(210, 153, 34, 0.12);
  color: var(--warn);
  border: 1px solid rgba(210, 153, 34, 0.3);
}
.bcard-badge.idle {
  background: var(--panel-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Health Gauge Segment */
.tcard-gauge-wrap {
  width: 100%;
  height: 4px;
  background: var(--panel-2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin: 1px 0;
}
.tcard-gauge-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.tcard-gauge-bar.is-ok {
  background: var(--ok);
}
.tcard-gauge-bar.is-alert {
  background: var(--alert);
}
.tcard-gauge-bar.is-warn {
  background: var(--warn);
}

/* Tabular Metrics Strip */
.tcard-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
}
.tcm-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.tcm-k {
  color: var(--color-ink-3);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tcm-v {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tcm-v.ok { color: var(--ok); }
.tcm-v.alert { color: var(--alert); }
.tcm-v.warn { color: var(--warn); }
.tcm-sep {
  color: var(--color-rule);
  font-size: 10px;
}

/* Device Pulse Roster */
.bcard-devices {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tcard-dev-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  background: var(--color-paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11.5px;
  transition: border-color 0.12s ease;
}
.tcard-dev-row.alert {
  border-color: rgba(248, 81, 73, 0.35);
  background: rgba(248, 81, 73, 0.05);
}
.tcard-dev-lead {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}
.tcard-dev-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tcard-dev-dot.s-online {
  background: var(--ok);
  box-shadow: 0 0 0 1.5px rgba(63, 185, 80, 0.25);
}
.tcard-dev-dot.s-offline {
  background: var(--alert);
  box-shadow: 0 0 0 1.5px rgba(248, 81, 73, 0.3);
}
.tcard-dev-dot.s-maintenance {
  background: var(--warn);
  box-shadow: 0 0 0 1.5px rgba(210, 153, 34, 0.25);
}
.tcard-dev-dot.s-unknown {
  background: var(--idle);
}
.tcard-dev-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  font-weight: 500;
  font-size: 11.5px;
}
.tcard-dev-trail {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
}
.tcard-dev-ip {
  color: var(--color-ink-3);
}
.tcard-dev-lat {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tcard-dev-tag {
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
}
.tcard-dev-tag.s-online {
  color: var(--ok);
  background: rgba(63, 185, 80, 0.1);
}
.tcard-dev-tag.s-offline {
  color: var(--alert);
  background: rgba(248, 81, 73, 0.15);
}
.tcard-dev-tag.s-maintenance {
  color: var(--warn);
  background: rgba(210, 153, 34, 0.15);
}

.bcard-foot {
  margin-top: 2px;
}
.bcard-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  touch-action: manipulation;
}
.bcard-btn:hover {
  background: var(--color-paper-hover);
  border-color: var(--color-rule-focus);
  color: var(--text);
}
.bcard-btn:active {
  transform: translateY(1px);
}

/* Compact Matrix Mode */
.matrix-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}
.matrix-tile {
  padding: 8px 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  border-left: 3px solid transparent;
}
.matrix-tile:hover {
  border-color: var(--color-rule-focus);
  background: var(--color-paper-hover);
  transform: translateY(-1px);
}
.matrix-tile:active {
  transform: translateY(0);
}
.matrix-tile.is-alert {
  border-left-color: var(--alert);
  background: rgba(248, 81, 73, 0.05);
}
.matrix-tile.is-warn {
  border-left-color: var(--warn);
}
.matrix-tile.is-ok {
  border-left-color: var(--ok);
}
.mt-code {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
}
.mt-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
}
.mt-status-tag {
  font-weight: 700;
  font-size: 9.5px;
}
.mt-status-tag.ok { color: var(--ok); }
.mt-status-tag.alert { color: var(--alert); }
.mt-status-tag.warn { color: var(--warn); }
.mt-status-tag.idle { color: var(--text-muted); }
.mt-count {
  color: var(--color-ink-3);
  font-variant-numeric: tabular-nums;
}

/* ══ 10.5.1 RESPONSIVE MOBILE DISCIPLINE (Hallmark Gates 34, 49, 50, 51) ══ */
@media (max-width: 768px) {
  #grid-view-panel {
    padding: 12px 12px max(16px, env(safe-area-inset-bottom));
  }
  .grid-toolbar {
    padding: 10px 12px;
    margin-bottom: 12px;
    gap: 8px;
    flex-direction: column;
    align-items: stretch;
  }
  .gt-left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .gt-tag {
    font-size: 10.5px;
    white-space: nowrap;
  }
  .gt-summary {
    display: none;
  }
  .gt-right {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .gt-control-group {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .gt-lbl {
    font-size: 9.5px;
    flex-shrink: 0;
  }
  .gt-select {
    flex: 1;
    min-width: 0;
    min-height: 42px;
    font-size: 12px;
    padding: 6px 10px;
    touch-action: manipulation;
  }
  .gt-view-toggle {
    display: flex;
    flex-shrink: 0;
  }
  .gt-btn {
    min-height: 42px;
    padding: 6px 11px;
    font-size: 10.5px;
    touch-action: manipulation;
  }

  .grid-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .bcard {
    padding: 12px 14px;
    gap: 9px;
  }
  .bcard-head {
    align-items: flex-start;
    gap: 8px;
  }
  .bcard-title {
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    min-width: 0;
  }
  .bcard-badge {
    font-size: 9.5px;
    padding: 3px 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .bcard-btn {
    min-height: 44px;
    font-size: 11px;
    white-space: nowrap;
    touch-action: manipulation;
  }

  .matrix-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .matrix-tile {
    min-height: 52px;
    padding: 8px 10px;
    touch-action: manipulation;
  }
}

@media (max-width: 480px) {
  #grid-view-panel {
    padding: 10px 10px max(14px, env(safe-area-inset-bottom));
  }
  .grid-toolbar {
    padding: 8px 10px;
    gap: 8px;
    margin-bottom: 10px;
  }
  .gt-tag {
    font-size: 9.5px;
  }
  .gt-lbl {
    display: none;
  }
  .gt-select {
    font-size: 11.5px;
    padding: 6px 8px;
    min-height: 40px;
  }
  .gt-btn {
    min-height: 40px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .grid-layout {
    gap: 10px;
  }
  .bcard {
    padding: 11px 12px;
    gap: 8px;
  }
  .bcard-title {
    font-size: 13.5px;
  }
  .bcard-badge {
    font-size: 9px;
    padding: 2.5px 5.5px;
  }

  /* 4-Quadrant Symmetrical Telemetry Monospace Quad */
  .tcard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 6px 4px;
    text-align: center;
  }
  .tcm-sep {
    display: none;
  }
  .tcm-item {
    flex-direction: column;
    gap: 1px;
    align-items: center;
    justify-content: center;
  }
  .tcm-k {
    font-size: 8px;
    letter-spacing: 0.03em;
  }
  .tcm-v {
    font-size: 11px;
  }

  .tcard-dev-row {
    padding: 5px 7px;
  }
  .tcard-dev-name {
    font-size: 11px;
  }
  .tcard-dev-trail {
    gap: 4px;
    font-size: 9.5px;
  }
  .tcard-dev-ip {
    font-size: 9.5px;
  }
  .tcard-dev-lat {
    font-size: 8.5px;
  }
}

@media (max-width: 360px) {
  #grid-view-panel {
    padding: 8px 6px max(12px, env(safe-area-inset-bottom));
  }
  .grid-toolbar {
    padding: 6px 8px;
    gap: 6px;
  }
  .gt-tag {
    font-size: 8.5px;
    letter-spacing: 0.04em;
  }
  .gt-fault-badge,
  .gt-ok-badge {
    font-size: 8.5px;
    padding: 2px 5px;
  }
  .gt-btn span {
    display: none;
  }
  .gt-btn {
    padding: 5px 8px;
  }

  .bcard {
    padding: 9px 10px;
    gap: 7px;
  }
  .bcard-meta {
    gap: 3px;
  }
  .bcard-zone {
    font-size: 8.5px;
  }
  .bcard-id-tag {
    font-size: 8px;
    padding: 1px 3px;
  }
  .bcard-title {
    font-size: 12.5px;
  }
  .bcard-badge {
    font-size: 8.5px;
    padding: 2px 4.5px;
  }

  /* Compact Roster on 320px: hide text tag, let IP and colored dot shine */
  .tcard-dev-tag {
    display: none;
  }
  .tcard-dev-name {
    font-size: 10.5px;
  }
  .tcard-dev-ip {
    font-size: 9px;
  }

  .bcard-btn {
    font-size: 10px;
    padding: 6px 8px;
    min-height: 42px;
  }

  .matrix-layout {
    gap: 4px;
  }
  .matrix-tile {
    padding: 6px 7px;
    min-height: 48px;
  }
  .mt-code {
    font-size: 8px;
  }
  .mt-name {
    font-size: 10.5px;
  }
  .mt-foot {
    font-size: 8.5px;
  }
  .mt-status-tag {
    font-size: 8.5px;
  }
}

/* Touch Device Interaction Physics */
@media (hover: none) {
  .bcard:hover {
    transform: none;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  }
  .matrix-tile:hover {
    transform: none;
    background: var(--panel);
  }
}

@media (pointer: coarse) {
  .bcard:active {
    transform: scale(0.995);
  }
  .matrix-tile:active {
    transform: scale(0.98);
    background: var(--color-paper-hover);
  }
  .gt-btn:active {
    transform: translateY(1px);
  }
  .bcard-btn:active {
    transform: translateY(1px);
    background: var(--panel-hover);
  }
}

/* ── FUTURISTIC SCI-FI RADIAL TOPOLOGY SVG ──────────────────────────────── */
@keyframes laserFlow {
  from { stroke-dashoffset: 40; }
  to { stroke-dashoffset: 0; }
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 8px var(--ok)); }
  50% { opacity: 1; filter: drop-shadow(0 0 16px var(--ok)); }
}

@keyframes pulseAlert {
  0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 10px var(--alert)); }
  50% { opacity: 1; filter: drop-shadow(0 0 22px var(--alert)); }
}

.radar-ring {
  fill: none;
  stroke: rgba(56, 189, 248, 0.12);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
}

.radar-ring-major {
  fill: none;
  stroke: rgba(56, 189, 248, 0.25);
  stroke-width: 2;
}

.radar-crosshair {
  stroke: rgba(56, 189, 248, 0.08);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.laser-line {
  fill: none;
  stroke: rgba(56, 189, 248, 0.4);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.5));
}

.laser-flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-dasharray: 8 12;
  animation: laserFlow 1.5s linear infinite;
  filter: drop-shadow(0 0 8px var(--accent));
}

.laser-alert {
  stroke: var(--alert);
  stroke-width: 2.5;
  stroke-dasharray: 6 6;
  animation: laserFlow 1s linear infinite;
  filter: drop-shadow(0 0 10px var(--alert));
}

.hud-node-group {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hud-node-group:hover {
  transform: scale(1.18);
}

.hud-node-circle {
  transition: all 0.3s ease;
}

.hud-node-circle.ok {
  fill: #064E3B;
  stroke: var(--ok);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 10px var(--ok));
  animation: pulseGlow 3s infinite ease-in-out;
}

.hud-node-circle.alert {
  fill: #7F1D1D;
  stroke: var(--alert);
  stroke-width: 3;
  filter: drop-shadow(0 0 14px var(--alert));
  animation: pulseAlert 1.5s infinite ease-in-out;
}

.hud-node-circle.warn {
  fill: #78350F;
  stroke: var(--warn);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 10px var(--warn));
}

.hud-node-circle.idle {
  fill: #1E293B;
  stroke: var(--idle);
  stroke-width: 2;
}

.hud-ring-outer {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 10 5 2 5;
  opacity: 0.6;
  transform-origin: center;
}

.hud-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  fill: #F3F4F6;
  text-anchor: middle;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.9));
}

/* ── GALAXY & MULTIVERSE CONSTELLATION SVG ──────────────────────────────── */
@keyframes stardustTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.3); }
}

@keyframes galaxyPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.08); }
}

@keyframes pulsarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.nebula-cloud {
  mix-blend-mode: screen;
  animation: galaxyPulse 6s ease-in-out infinite;
  transform-origin: center;
  pointer-events: none;
}

.stardust-particle {
  fill: #E2E8F0;
  animation: stardustTwinkle 3s ease-in-out infinite;
}

.constellation-beam {
  fill: none;
  stroke: rgba(56, 189, 248, 0.35);
  stroke-width: 1.8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.4));
}

.constellation-flow {
  fill: none;
  stroke: #38BDF8;
  stroke-width: 2.2;
  stroke-dasharray: 6 10;
  animation: laserFlow 1.2s linear infinite;
  filter: drop-shadow(0 0 10px #38BDF8);
}

.constellation-alert {
  stroke: #F87171;
  stroke-width: 2.5;
  stroke-dasharray: 6 6;
  animation: laserFlow 0.8s linear infinite;
  filter: drop-shadow(0 0 14px #F87171);
}

.cluster-orbit-ring {
  fill: none;
  stroke: rgba(147, 51, 234, 0.25);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
}

.star-node-group {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.star-node-group:hover {
  transform: scale(1.22);
}

.star-node-core {
  fill: #0F172A;
  stroke: #38BDF8;
  stroke-width: 3.5;
  filter: drop-shadow(0 0 16px #38BDF8);
}

.star-node-sun {
  fill: #1E1B4B;
  stroke: #C084FC;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 12px #C084FC);
}

.star-node-planet.ok {
  fill: #064E3B;
  stroke: #34D399;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 10px #34D399);
}

.star-node-planet.alert {
  fill: #7F1D1D;
  stroke: #F87171;
  stroke-width: 3;
  filter: drop-shadow(0 0 16px #F87171);
  animation: pulseAlert 1.5s infinite ease-in-out;
}

.star-node-planet.warn {
  fill: #78350F;
  stroke: #FBBF24;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 10px #FBBF24);
}

.star-node-planet.idle {
  fill: #1E293B;
  stroke: #64748B;
  stroke-width: 2;
}

.cosmic-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  fill: #F8FAFC;
  text-anchor: middle;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.95));
}

.cosmic-sublabel {
  font-family: var(--mono);
  font-size: 9.5px;
  fill: #94A3B8;
  text-anchor: middle;
  user-select: none;
  pointer-events: none;
}

/* ══ TOAST ENHANCED ═════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: rgba(17,24,39,0.96);
  border: 1px solid var(--accent);
  color: #fff;
  padding: 0;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  transition: all .35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 400;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(56,189,248,0.1);
  min-width: 240px; max-width: min(420px, 90vw);
  overflow: hidden;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-msg {
  display: block;
  padding: 14px 20px 10px;
}
.toast-progress {
  height: 3px;
  width: 100%;
  background: var(--accent);
  border-radius: 0 0 10px 10px;
  opacity: 0.7;
}
.toast-info  { border-color: var(--accent); box-shadow: 0 0 20px rgba(56,189,248,0.2), 0 10px 30px rgba(0,0,0,0.5); }
.toast-info  .toast-progress { background: var(--accent); }
.toast-ok    { border-color: var(--ok); box-shadow: 0 0 20px rgba(52,211,153,0.2), 0 10px 30px rgba(0,0,0,0.5); }
.toast-ok    .toast-progress { background: var(--ok); }
.toast-error { border-color: var(--alert); box-shadow: 0 0 20px rgba(248,113,113,0.2), 0 10px 30px rgba(0,0,0,0.5); }
.toast-error .toast-progress { background: var(--alert); }

/* (bcard rules standardized in Section 10.5 above) */

/* ══ SIDEBAR LOC-ITEM ENHANCEMENTS ══════════════════════════════════ */
.loc-item {
  border-radius: 6px;
  margin-bottom: 1px;
}
.loc-item:hover {
  transform: translateX(3px);
  transition: all 0.18s ease;
}
.loc-item.active {
  transform: translateX(3px);
}

/* ══ STAT CHIP HOVER ════════════════════════════════════════════════ */
.stat-chip {
  cursor: default;
  transition: all 0.2s ease;
}
.stat-chip:hover {
  border-color: var(--accent-dim);
  background: rgba(56,189,248,0.08);
  color: var(--text);
}

/* ══ TAB BUTTON ENHANCEMENT ══════════════════════════════════════════ */
.tab-btn {
  position: relative;
  overflow: hidden;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.tab-btn:hover::after { transform: scaleX(0.6); }
.tab-btn.active::after { display: none; }

/* ══ ICON BTN ENHANCED ═══════════════════════════════════════════════ */
.icon-btn {
  position: relative;
  overflow: hidden;
}
.icon-btn:active { transform: scale(0.9); }

/* ══ DEVICE TABLE ROW TRANSITION ════════════════════════════════════ */
.device-table tbody tr {
  transition: background 0.15s ease;
}
.device-table tbody tr:hover td {
  background: rgba(56,189,248,0.04) !important;
}

/* ══ ZONE HEAD ENHANCED ══════════════════════════════════════════════ */
.zone-head {
  border-radius: 6px;
  transition: all 0.2s ease;
}
.zone-head:hover .zname { color: var(--accent); }
.zone-group.open .zone-head { background: rgba(56,189,248,0.06); }

/* ══ ZONE ITEMS ANIMATION ════════════════════════════════════════════ */
@keyframes slideInItem {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.zone-group.open .loc-item {
  animation: slideInItem 0.2s ease-out backwards;
}
.zone-group.open .loc-item:nth-child(1) { animation-delay: 0.02s; }
.zone-group.open .loc-item:nth-child(2) { animation-delay: 0.04s; }
.zone-group.open .loc-item:nth-child(3) { animation-delay: 0.06s; }
.zone-group.open .loc-item:nth-child(4) { animation-delay: 0.08s; }
.zone-group.open .loc-item:nth-child(5) { animation-delay: 0.10s; }

/* ══ SEARCH INPUT ENHANCED ═══════════════════════════════════════════ */
.search-box {
  position: relative;
}
.search-box input {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.search-box input:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56,189,248,0.15), 0 0 0 3px var(--accent-glow) !important;
}

/* ══ BACK LINK ANIMATION ═════════════════════════════════════════════ */
.back-link {
  transition: all 0.2s ease !important;
}
.back-link:hover {
  transform: translateX(-3px);
  gap: 8px !important;
}

/* ══ FORM FIELD ENHANCED ══════════════════════════════════════════════ */
.field input:focus, .field select:focus, .field textarea:focus {
  transform: translateY(-1px);
}

/* ══ ADD BTN / PRIMARY BTN SHIMMER ══════════════════════════════════ */
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}
.add-btn, .btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary:active, .add-btn:active {
  transform: translateY(1px) !important;
  box-shadow: none !important;
}

/* ══ TOPO TABLE CELL HOVER ═══════════════════════════════════════════ */
.tc-bldg, .tc-parent {
  position: relative;
  overflow: hidden;
}
.tc-bldg::after, .tc-parent::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(56,189,248,0.05);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.tc-bldg:hover::after, .tc-parent:hover::after { opacity: 1; }

/* ══ HIST STAT HOVER ═════════════════════════════════════════════════ */
.hist-stat {
  transition: all 0.2s ease;
  cursor: default;
}
.hist-stat:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* ══ BCARD BTN ENHANCED ══════════════════════════════════════════════ */
.bcard-btn {
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}
.bcard-btn:active { transform: scale(0.97); }

/* ══ MOBILE IMPROVEMENTS & TOUCH OPTIMIZATIONS ═════════════════════════ */
button, a, input, select, textarea, .tab-btn, .mt-btn, .icon-btn, .add-btn, .loc-item, .zone-head {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

aside, .modal, #mobile-overlay {
  will-change: transform;
}

.topo-table-scroll, .mt-tree-container, .zone-list, #detail-panel, .device-table-wrap, .modal, .tabs {
  -webkit-overflow-scrolling: touch;
}

/* Always display manage topology action buttons on mobile / touch devices */
@media (hover: none), (max-width: 768px) {
  .mt-node-actions {
    opacity: 1 !important;
  }
}

@media (max-width: 768px) {
  .modal {
    padding: 16px 20px 24px;
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    max-height: 88vh;
    overflow-y: auto;
  }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-overlay.open .modal { transform: translateY(0) scale(1); }
  .modal { transform: translateY(100%); }
  
  .form-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .field.span-2, .field.span-3 { grid-column: span 1 !important; }
  
  /* Touch-friendly inputs */
  .field input, .field select, .field textarea {
    padding: 12px 14px;
    font-size: 14px;
    min-height: 44px;
    border-radius: 8px;
  }
  
  /* Pinned / Stretch action buttons at bottom of modals */
  .form-actions, div[style*="justify-content: flex-end"], div[style*="justify-content:flex-end"] {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 20px !important;
  }
  .form-actions button, div[style*="justify-content: flex-end"] button, div[style*="justify-content:flex-end"] button {
    flex: 1 !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  .hist-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hist-stat { padding: 12px 10px; }
  .hist-stat .hs-val { font-size: 20px; }
  .toast { bottom: 16px; min-width: calc(100vw - 32px); }
  .bcard-stats { grid-template-columns: repeat(3, 1fr); }
  
  .tabs { gap: 4px; padding: 10px 12px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab-btn { font-size: 12px; padding: 8px 14px; white-space: nowrap; flex: 0 0 auto; }

  /* Manage Topology Mobile Adjustments */
  .mt-header {
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .mt-header-right {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .mt-search-wrap {
    width: 100%;
  }
  .mt-search-input {
    width: 100% !important;
  }
  .mt-add-btn {
    width: 100%;
    justify-content: center;
  }
  .mt-stats-row {
    padding: 10px 16px;
    gap: 8px;
  }
  .mt-stat-card {
    flex: 1 1 calc(50% - 8px);
    padding: 8px 12px;
  }
  .mt-tree-container {
    padding: 12px 10px 30px;
  }
  .mt-node-row {
    min-height: 40px;
  }
  .mt-btn {
    padding: 4px 7px;
    font-size: 10px;
  }

  /* Detail Head Mobile Adjustments */
  .detail-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .detail-head .add-btn, .detail-head button {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

/* ══ SCROLLBAR THIN ══════════════════════════════════════════════════ */
.modal::-webkit-scrollbar,
.zone-list::-webkit-scrollbar,
.topo-table-scroll::-webkit-scrollbar { width: 5px; }
.modal::-webkit-scrollbar-thumb,
.zone-list::-webkit-scrollbar-thumb,
.topo-table-scroll::-webkit-scrollbar-thumb {
  background: rgba(100,116,139,0.4);
  border-radius: 4px;
}
.modal::-webkit-scrollbar-thumb:hover,
.zone-list::-webkit-scrollbar-thumb:hover { background: rgba(100,116,139,0.7); }

/* ══ PRINT STYLES ════════════════════════════════════════════════════ */
@media print {
  @page {
    margin: 1cm;
    size: A4 portrait;
  }
  body {
    background: #fff;
    color: #000;
    margin: 0;
    padding: 0;
  }
  header, aside, .tabs, .form-actions, .row-actions, .icon-btn, .add-btn, .back-link, #toast, .modal-overlay {
    display: none !important;
  }
  
  /* Reset flexbox layout, height: 100vh, dan overflow: hidden pada pembungkus luar agar bisa cetak multi-halaman */
  html, body, #app, .layout, main, .view, .device-table-wrap {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Sembunyikan panel non-aktif secara mutlak, tampilkan hanya panel aktif */
  .view-panel {
    display: none !important;
  }
  .view-panel.active {
    display: block !important;
    padding: 1.2cm !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  .device-table-wrap {
    width: 100% !important;
    overflow: visible !important;
  }
  .device-table {
    border: 1px solid #ddd;
    color: #000;
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed; /* Paksa lebar tabel fit mengikuti persentase */
    word-wrap: break-word; /* Teks kepanjangan turun ke bawah */
    font-size: 11px; /* Ukuran pas untuk kertas A4 */
    border-collapse: collapse; /* Hilangkan spasi ganda antar border */
  }
  
  /* Atur porsi lebar masing-masing 6 kolom agar seimbang di A4 */
  .device-table th:nth-child(1), .device-table td:nth-child(1) { width: 30%; } /* Perangkat */
  .device-table th:nth-child(2), .device-table td:nth-child(2) { width: 10%; } /* Lokasi */
  .device-table th:nth-child(3), .device-table td:nth-child(3) { width: 18%; } /* IP Address */
  .device-table th:nth-child(4), .device-table td:nth-child(4) { width: 12%; } /* Uptime */
  .device-table th:nth-child(5), .device-table td:nth-child(5) { width: 15%; } /* Est. Downtime */
  .device-table th:nth-child(6), .device-table td:nth-child(6) { width: 15%; } /* Latency */
  
  .device-table th { background: #f5f5f5; color: #000; padding: 8px 6px; font-weight: bold; }
  .device-table td { padding: 8px 6px; }
  .device-table td, .device-table th { border: 1px solid #ddd; }
  
  /* Cegah tabel terpotong aneh di halaman PDF */
  table { page-break-inside: auto; }
  tr { page-break-inside: avoid; page-break-after: auto; }
  thead { display: table-header-group; }
  tfoot { display: table-footer-group; }
  .stat-chip { background: none; border: 1px solid #000; color: #000; }
  .stat-chip b { color: #000; }
}

/* ══ FOCUS VISIBLE GLOBAL ════════════════════════════════════════════ */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus:not(:focus-visible) { outline: none; }

/* ══ SELECTION COLOR ═════════════════════════════════════════════════ */
.modal ::selection, .device-form ::selection {
  background: rgba(56,189,248,0.3);
  color: #fff;
}

/* ══ MANAGE TOPOLOGY UI ══════════════════════════════════════════════ */

/* Header Bar */
.mt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px 14px;
  background: linear-gradient(135deg, rgba(17,24,39,0.9), rgba(31,41,55,0.7));
  border-bottom: 1px solid rgba(55,65,81,0.6);
  gap: 16px;
  flex-wrap: wrap;
}
.mt-header-left { display: flex; flex-direction: column; gap: 4px; }
.mt-title { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: 0.3px; }
.mt-subtitle { font-size: 12px; color: var(--text-muted); }
.mt-header-right { display: flex; align-items: center; gap: 12px; }

/* Search */
.mt-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.mt-search-icon { position: absolute; left: 10px; font-size: 13px; pointer-events: none; opacity: 0.6; }
.mt-search-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(55,65,81,0.8);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  padding: 8px 14px 8px 32px;
  width: 220px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.mt-search-input:focus {
  border-color: var(--accent);
  background: rgba(56,189,248,0.06);
}
.mt-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: var(--accent);
  color: #04202A;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--mono);
  cursor: pointer;
  box-shadow: 0 4px 12px var(--accent-glow);
  transition: all 0.2s ease;
}
.mt-add-btn:hover {
  background: #7DD3FC;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

/* Base button utility classes */
.btn {
  font-family: var(--sans);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  transition: all 0.2s ease;
}
.btn.ok {
  background: var(--accent);
  color: #04202A;
  border: none;
  font-weight: 600;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.btn.ok:hover {
  background: #7DD3FC;
  transform: translateY(-1px);
}
.btn.idle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn.idle:hover {
  background: var(--panel-2);
  color: #fff;
}
.btn.alert {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.btn.alert:hover {
  background: rgba(248, 113, 113, 0.3);
}

/* Stats Row */
.mt-stats-row {
  display: flex;
  gap: 12px;
  padding: 12px 28px;
  background: rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(55,65,81,0.3);
  flex-wrap: wrap;
}
.mt-stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(55,65,81,0.5);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
}
.mt-stat-icon { font-size: 20px; }
.mt-stat-info { display: flex; flex-direction: column; }
.mt-stat-val { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.1; }
.mt-stat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* Tree Container */
.mt-tree-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 40px;
}
.mt-tree-container::-webkit-scrollbar { width: 6px; }
.mt-tree-container::-webkit-scrollbar-track { background: transparent; }
.mt-tree-container::-webkit-scrollbar-thumb { background: rgba(100,116,139,0.4); border-radius: 3px; }

/* Tree Nodes */
.mt-node { position: relative; margin: 1px 0; }
.mt-node-row {
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 4px;
  transition: background 0.12s;
  position: relative;
  min-height: 36px;
}
.mt-node-row:hover { background: rgba(56,189,248,0.06); }
.mt-node-row:hover .mt-node-actions { opacity: 1; }

/* Indent spacer */
.mt-indent-sp { display: inline-flex; flex-shrink: 0; }
.mt-indent-line {
  width: 20px;
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  height: 36px;
  vertical-align: middle;
}
.mt-indent-line::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(100,116,139,0.2);
}
.mt-indent-line.last::before { bottom: 50%; }
.mt-indent-line::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 50%;
  width: 10px; height: 1px;
  background: rgba(100,116,139,0.3);
}
.mt-indent-line.no-branch::after { display: none; }

/* Toggle button */
.mt-toggle {
  width: 20px; height: 20px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  font-size: 9px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(55,65,81,0.5);
  margin-right: 6px;
  transition: background 0.12s, color 0.12s, transform 0.15s;
}
.mt-toggle:hover { background: rgba(56,189,248,0.18); color: var(--accent); border-color: var(--accent); }
.mt-toggle.expanded { transform: rotate(90deg); }
.mt-toggle.leaf { opacity: 0; cursor: default; pointer-events: none; }

/* Node icon */
.mt-node-icon { font-size: 14px; margin-right: 6px; flex-shrink: 0; }

/* Kind badge */
.mt-kind {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-right: 8px;
}
.mt-kind-infra    { background: rgba(234,179,8,0.12);  color: #fbbf24; border: 1px solid rgba(234,179,8,0.25); }
.mt-kind-building { background: rgba(34,197,94,0.1);   color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }

/* Node label */
.mt-label {
  flex: 1;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mt-label mark {
  background: rgba(56,189,248,0.28);
  color: var(--accent);
  border-radius: 3px;
  padding: 0 2px;
  font-style: normal;
}

/* Child count */
.mt-child-count {
  font-size: 10px;
  background: rgba(100,116,139,0.18);
  color: var(--text-muted);
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
  flex-shrink: 0;
  font-weight: 600;
}

/* Actions (visible on hover) */
.mt-node-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  padding-left: 8px;
  opacity: 0;
  transition: opacity 0.12s;
  flex-shrink: 0;
}
.mt-btn {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.12s, transform 0.1s;
  white-space: nowrap;
}
.mt-btn:active { transform: scale(0.95); }
.mt-btn-edit { background: rgba(56,189,248,0.12); color: var(--accent); border: 1px solid rgba(56,189,248,0.28); }
.mt-btn-edit:hover { background: rgba(56,189,248,0.25); }
.mt-btn-del  { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.22); }
.mt-btn-del:hover  { background: rgba(239,68,68,0.22); }
.mt-btn-add  { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.22); }
.mt-btn-add:hover  { background: rgba(34,197,94,0.22); }

/* Children wrapper */
.mt-children { display: block; }
.mt-children.collapsed { display: none; }

/* Root depth-level color accent on left border */
.mt-node-row[data-depth="0"] .mt-label { color: var(--accent); font-weight: 700; font-size: 14.5px; }
.mt-node-row[data-depth="1"] .mt-label { color: #c084fc; }
.mt-node-row[data-depth="2"] .mt-label { color: #60a5fa; }
.mt-node-row[data-depth="3"] .mt-label { color: #34d399; }

/* Empty state */
.mt-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px;
  color: var(--text-muted); gap: 12px;
}
.mt-empty-icon { font-size: 48px; opacity: 0.35; }

/* Hidden node (search filter) */
.mt-node.hidden-node { display: none; }

/* ══ SLA REPORT RESPONSIVE UI ═════════════════════════════════════════ */
.sla-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sla-title-area {
  flex: 1 1 280px;
}
.sla-title-area h2 {
  font-size: 22px;
  margin: 0 0 6px;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
}
.sla-title-area p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.sla-avg {
  color: var(--ok);
  font-size: 16px;
}
.sla-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sla-btn-secondary {
  background: var(--panel-2) !important;
  border: 1px solid var(--border) !important;
  color: #fff !important;
  font-weight: 500 !important;
}
.sla-btn-primary {
  color: #04202A !important;
  font-weight: 600 !important;
}

@media (max-width: 768px) {
  #audit-panel, #offline-panel {
    padding: 16px !important;
  }
  .sla-header {
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }
  .sla-title-area {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .sla-title-area h2 {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin: 0 0 4px 0 !important;
  }
  .sla-title-area p {
    font-size: 12px !important;
    margin: 0 !important;
  }
  .sla-actions {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
    margin-top: 4px !important;
  }
  .sla-actions .add-btn {
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 9px 12px !important;
    font-size: 12px !important;
    margin: 0 !important;
  }
  .device-table-wrap {
    margin-top: 12px !important;
  }
}

/* ══ LOADING STATE ANIMATION ═════════════════════════════════════════ */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  gap: 12px;
  color: var(--text-muted);
  text-align: center;
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(56, 189, 248, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 0 15px var(--accent-glow);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-text {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.4px;
}
.loading-subtext {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.8;
}

/* Background Loading Badge */
.bg-loading-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 9px;
  border-radius: 12px;
  margin-left: 10px;
  vertical-align: middle;
  transition: opacity 0.3s ease;
}
.bg-spinner {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

/* ── 10.6 TOPOLOGY SCHEMATIC & CASCADE TREE (Hallmark Industrial Standard) ───── */
#view-topo {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: var(--color-paper);
}
#topo-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
#topo-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.topo-th-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ── Topo Mission-Control Toolbar ── */
.topo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
  z-index: 10;
}
.tt-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
}
.tt-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.tt-hud {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.tt-hud b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.tt-hud-sep {
  color: var(--color-rule);
  font-size: 10px;
}
.tt-fault-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(248, 81, 73, 0.15);
  color: var(--alert);
  border: 1px solid rgba(248, 81, 73, 0.35);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tt-ok-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(63, 185, 80, 0.15);
  color: var(--ok);
  border: 1px solid rgba(63, 185, 80, 0.3);
  white-space: nowrap;
}

.tt-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tt-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.tt-search-icon {
  position: absolute;
  left: 8px;
  color: var(--text-muted);
  pointer-events: none;
}
.tt-search-input {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 4px 24px 4px 26px;
  font-size: 11.5px;
  font-family: var(--sans);
  outline: none;
  width: 170px;
  transition: all 0.15s ease;
}
.tt-search-input:focus {
  border-color: var(--color-focus);
  width: 220px;
}
.tt-clear-search {
  position: absolute;
  right: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.tt-clear-search:hover { color: var(--text); }

.tt-btn-group {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tt-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  touch-action: manipulation;
}
.tt-btn:hover {
  color: var(--text);
  background: var(--color-paper-hover);
  border-color: var(--color-rule-focus);
}
.tt-btn:active {
  transform: translateY(1px);
}
.tt-btn.active, .tt-btn.tt-filter-fault.active {
  background: rgba(248, 81, 73, 0.15);
  border-color: rgba(248, 81, 73, 0.4);
  color: var(--alert);
  font-weight: 700;
}

/* ── Schematic Table View ── */
.topo-table-scroll {
  flex: 1;
  overflow: auto;
  padding: 20px 24px;
  position: relative;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
}
.topo-table-scroll:active {
  cursor: grabbing;
}
.topo-htable {
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  width: max-content;
  min-width: 100%;
}
.topo-row {}

/* Modular Schematic Cell */
.tc {
  border: 1px solid var(--border);
  background: var(--panel);
  vertical-align: middle;
  white-space: nowrap;
  padding: 0;
  min-width: 150px;
  max-width: 260px;
  position: relative;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  border-left: 3px solid transparent;
}
.tc:hover {
  z-index: 5;
  border-color: var(--color-rule-focus);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.tc.is-path-highlight {
  border-color: var(--accent) !important;
  background: rgba(56, 189, 248, 0.08) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}
.tc.is-search-match {
  border-color: #eab308 !important;
  background: rgba(234, 179, 8, 0.12) !important;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
}

.tc-in {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
}

/* Tier Badges & Labels */
.tc-tier-tag {
  font-size: 8px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.tc-tier-tag.core {
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.tc-tier-tag.dist {
  background: rgba(148, 163, 184, 0.15);
  color: var(--color-ink-2);
  border: 1px solid var(--border);
}
.tc-tier-tag.acc {
  background: rgba(100, 116, 139, 0.12);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.tc-tier-tag.bldg {
  background: rgba(63, 185, 80, 0.12);
  color: var(--ok);
  border: 1px solid rgba(63, 185, 80, 0.3);
}

/* Root Core Gateway */
.tc-root {
  min-width: 140px;
  border-left: 3px solid var(--accent);
  background: var(--panel-2);
}
.tc-root .tc-lbl {
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
}

/* Parent / Branch */
.tc-parent {
  cursor: pointer;
}
.tc-parent:hover .tc-chev {
  border-color: var(--accent);
  color: var(--accent);
}
.tc-chev {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

/* Collapsed Encapsulated Branch (Hallmark Non-Pulsing Industrial Standard) */
.tc-coll {
  border-style: solid;
  border-color: var(--color-rule-focus);
  background: var(--panel-2);
}
.tc-coll .tc-chev {
  background: var(--accent);
  color: #04202A;
  border-color: var(--accent);
  font-weight: 700;
}
.tc-coll-pill {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--color-ink-3);
  flex-shrink: 0;
}

/* Building Endpoint */
.tc-bldg {
  cursor: pointer;
  background: var(--panel);
}
.tc-bldg:hover {
  background: var(--color-paper-hover);
  transform: translateY(-1px);
}
.tc-lbl {
  color: var(--text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11.5px;
  font-weight: 500;
}
.tc-bldg .tc-lbl {
  color: var(--color-ink-1);
}
.tc-cnt {
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}

/* Status Spine Colors */
.tc.s-ok { border-left-color: var(--ok); }
.tc.s-alert { border-left-color: var(--alert); }
.tc.s-warn { border-left-color: var(--warn); }
.tc.s-idle { border-left-color: var(--idle); }

.tc-cnt.s-ok { color: var(--ok); background: rgba(63, 185, 80, 0.12); border-color: rgba(63, 185, 80, 0.25); }
.tc-cnt.s-alert { color: var(--alert); background: rgba(248, 81, 73, 0.15); border-color: rgba(248, 81, 73, 0.35); }
.tc-cnt.s-warn { color: var(--warn); background: rgba(210, 153, 34, 0.12); border-color: rgba(210, 153, 34, 0.3); }
.tc-cnt.s-idle { color: var(--text-muted); background: var(--panel-2); border-color: var(--border); }

/* ── Cascading Tree Mode (Mobile & Vertical NOC View) ── */
.topo-tree-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  -webkit-overflow-scrolling: touch;
}
.topo-tree-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 900px;
  margin: 0 auto;
}
.tt-node-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 4px;
  gap: 8px;
  transition: all 0.12s ease;
  font-family: var(--mono);
  cursor: pointer;
}
.tt-node-row:hover {
  background: var(--color-paper-hover);
  border-color: var(--color-rule-focus);
}
.tt-node-row.is-path-highlight {
  border-color: var(--accent) !important;
  background: rgba(56, 189, 248, 0.08) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}
.tt-node-row.s-ok { border-left-color: var(--ok); }
.tt-node-row.s-alert { border-left-color: var(--alert); background: rgba(248, 81, 73, 0.04); }
.tt-node-row.s-warn { border-left-color: var(--warn); }
.tt-node-row.s-idle { border-left-color: var(--idle); }
.tt-node-row.is-search-match {
  border-color: #eab308;
  background: rgba(234, 179, 8, 0.08);
}
.tt-node-lead {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.tt-guide-line {
  color: var(--border);
  font-size: 11px;
  user-select: none;
}
.tt-node-name {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tt-node-trail {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.tc-view-btn {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 6px;
  transition: all 0.12s ease;
  white-space: nowrap;
}
.tc-view-btn:hover {
  background: var(--accent);
  color: #04202A;
  border-color: var(--accent);
}

/* ── Legend Strip ── */
.topo-legend-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: var(--panel-2);
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
}
.tls-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tls-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tls-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.tls-dot.ok { background: var(--ok); }
.tls-dot.alert { background: var(--alert); }
.tls-dot.warn { background: var(--warn); }
.tls-dot.idle { background: var(--idle); }
.tls-hint {
  color: var(--color-ink-3);
}

/* ── Mobile Responsive Overrides for Topology (Hallmark Gates 34, 49, 50, 51) ── */
@media (max-width: 768px) {
  .topo-toolbar {
    padding: 8px 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .tt-left {
    width: 100%;
    justify-content: space-between;
  }
  .tt-hud {
    display: none;
  }
  .tt-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
  }
  .tt-search-wrap {
    flex: 1;
    min-width: 130px;
  }
  .tt-search-input {
    width: 100%;
    min-height: 38px;
    font-size: 11px;
  }
  .tt-search-input:focus {
    width: 100%;
  }
  .tt-btn-group {
    flex-shrink: 0;
  }
  .tt-btn {
    min-height: 38px;
    padding: 5px 7px;
    font-size: 10px;
  }
  .gt-view-toggle .gt-btn {
    min-height: 38px;
  }
  .topo-table-scroll {
    padding: 12px 10px;
  }
  .topo-tree-scroll {
    padding: 10px 8px;
  }
  .tls-hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .tt-btn-group .tt-btn:not(.tt-filter-fault) {
    display: none;
  }
  .tt-node-row {
    padding: 5px 6px;
    gap: 4px;
  }
  .tt-node-name {
    font-size: 11px;
  }
  .tc-tier-tag {
    font-size: 7.5px;
    padding: 0 3px;
  }
}

/* ── 10.7 LOCATION DETAIL & DEVICE TELEMETRY WORKBENCH (Hallmark Industrial Standard) ───── */

#detail-panel {
  height: 100%;
  overflow-y: auto;
  padding: 20px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--color-paper);
  -webkit-overflow-scrolling: touch;
}

/* ── Contextual Navigation Bar ── */
.detail-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -2px;
}
.detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  touch-action: manipulation;
}
.detail-back-btn:hover {
  background: var(--color-paper-hover);
  border-color: var(--color-rule-focus);
  color: var(--accent);
}
.detail-back-btn:active {
  transform: translateY(1px);
}

/* ── Site Mission Header ── */
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 6px;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  transition: border-color 0.15s ease;
}
.detail-head.s-ok {
  border-left-color: var(--ok);
}
.detail-head.s-alert {
  border-left-color: var(--alert);
  background: linear-gradient(to right, rgba(248, 81, 73, 0.05), var(--panel) 25%);
}
.detail-head.s-warn {
  border-left-color: var(--warn);
}
.detail-head.s-idle {
  border-left-color: var(--idle);
}

.dh-lead {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.dh-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.dh-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.dh-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  touch-action: manipulation;
}
.dh-btn:hover {
  background: var(--color-paper-hover);
  border-color: var(--color-rule-focus);
  color: var(--text);
}
.dh-btn:active {
  transform: translateY(1px);
}
.dh-btn.primary {
  background: var(--accent);
  color: #04202A;
  border: 1px solid var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
}
.dh-btn.primary:hover {
  background: #7DD3FC;
  border-color: #7DD3FC;
  color: #04202A;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* ── Site Telemetry Metrics Strip ── */
.detail-metrics-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
}

/* ── Device Control & Filter Bar ── */
.detail-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  gap: 12px;
  flex-wrap: wrap;
}
.df-status-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.df-pill {
  padding: 4px 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  touch-action: manipulation;
}
.df-pill:hover {
  background: var(--color-paper-hover);
  border-color: var(--color-rule-focus);
  color: var(--text);
}
.df-pill.active {
  background: var(--accent);
  color: #04202A;
  border-color: var(--accent);
  font-weight: 700;
}

.df-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.df-select {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-family: var(--sans);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.df-select:focus {
  border-color: var(--color-focus);
}
.df-search {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 4px 24px 4px 26px;
  font-size: 11.5px;
  font-family: var(--sans);
  outline: none;
  width: 170px;
  transition: all 0.15s ease;
}
.df-search:focus {
  border-color: var(--color-focus);
  width: 220px;
}

/* ── Desktop Industrial Table ── */
.device-table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 0;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  -webkit-overflow-scrolling: touch;
}
.device-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 780px;
}
.device-table th {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--color-ink-3);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  background: var(--panel-2);
  white-space: nowrap;
}
.device-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.device-table tr:last-child td {
  border-bottom: none;
}
.device-table tr.is-offline-row td {
  background: rgba(248, 81, 73, 0.03);
}

.dt-dev-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dt-dev-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.dt-dev-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}
.dt-dev-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.dt-ip-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dt-ip-code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--color-ink-1);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
}
.dt-ip-code:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
}
.dt-mac-code {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--color-ink-3);
  margin-top: 2px;
}
.dt-status-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.dt-notes {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--sans);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* ── Mobile Telemetry Device Cards (Dual Presentation) ── */
.dev-cards-mobile {
  display: none;
}
.dev-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease;
}
.dev-card.s-online {
  border-left-color: var(--ok);
}
.dev-card.s-offline {
  border-left-color: var(--alert);
  background: linear-gradient(to right, rgba(248, 81, 73, 0.05), var(--panel) 25%);
}
.dev-card.s-maintenance {
  border-left-color: var(--warn);
}
.dev-card.s-unknown {
  border-left-color: var(--idle);
}

.dev-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.dev-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--color-ink-3);
}
.dev-card-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin: 2px 0 0;
  line-height: 1.25;
}

.dev-card-network {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 8px;
  font-family: var(--mono);
  font-size: 11px;
}

.dev-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 2px;
}

/* ── Mobile Responsive Overrides for Location Detail (Hallmark Gates 49, 50, 52) ── */
@media (max-width: 768px) {
  #detail-panel {
    padding: 12px 12px max(20px, env(safe-area-inset-bottom));
    gap: 10px;
  }

  .detail-nav-bar {
    margin-bottom: 0;
  }
  .detail-back-btn {
    min-height: 38px;
    padding: 6px 12px;
    font-size: 11px;
    width: 100%;
    justify-content: center;
  }

  .detail-head {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .dh-lead {
    width: 100%;
  }
  .dh-title {
    font-size: 16px;
  }
  .dh-actions {
    width: 100%;
    display: flex;
    gap: 6px;
  }
  .dh-btn {
    flex: 1;
    min-height: 42px;
    justify-content: center;
    font-size: 11px;
    padding: 8px 10px;
  }

  /* Telemetry Quad Monospace Strip on Mobile */
  .detail-metrics-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px 10px;
  }
  .detail-metrics-strip .tcm-sep {
    display: none;
  }
  .detail-metrics-strip .tcm-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }
  .detail-metrics-strip .tcm-k {
    font-size: 8.5px;
  }
  .detail-metrics-strip .tcm-v {
    font-size: 12px;
  }

  /* Filter Bar Mobile */
  .detail-filter-bar {
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .df-status-group {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 4px;
    padding-bottom: 2px;
  }
  .df-status-group::-webkit-scrollbar {
    display: none;
  }
  .df-pill {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 6px 10px;
    font-size: 10.5px;
  }
  .df-right {
    width: 100%;
    display: flex;
    gap: 6px;
  }
  .df-select {
    flex: 1;
    min-height: 40px;
    font-size: 12px;
  }
  .df-search {
    width: 100% !important;
    min-height: 40px;
    font-size: 12px;
  }
  .detail-filter-bar .tt-search-wrap {
    flex: 1;
  }

  /* Dual Presentation: Hide Desktop Table on Mobile, Show Telemetry Cards */
  #detail-panel .device-table-wrap {
    display: none !important;
  }
  .dev-cards-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* Touch Target Discipline on Mobile Device Cards (>= 44px) */
  .dev-card-actions .icon-btn {
    min-width: 44px;
    min-height: 44px;
    border-radius: 6px;
    font-size: 14px;
    flex: 1;
  }
}

/* ── 10.8 OFFLINE INCIDENT & RECOVERY CONSOLE (Hallmark Industrial Standard) ───── */

#offline-panel {
  height: 100%;
  overflow-y: auto;
  padding: 20px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--color-paper);
  -webkit-overflow-scrolling: touch;
}

/* ── Incident Mission Header ── */
.offline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--alert);
  background: linear-gradient(to right, rgba(248, 81, 73, 0.06), var(--panel) 25%);
  border-radius: 6px;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
}
.oh-lead {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.oh-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--alert);
  letter-spacing: 0.06em;
}
.oh-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.oh-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.oh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  touch-action: manipulation;
}
.oh-btn:hover {
  background: var(--color-paper-hover);
  border-color: var(--color-rule-focus);
  color: var(--text);
}
.oh-btn:active {
  transform: translateY(1px);
}

/* ── Incident Telemetry Metrics Strip ── */
.offline-metrics-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
}

/* ── Incident Triage & Filter Bar ── */
.offline-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  gap: 12px;
  flex-wrap: wrap;
}
.of-status-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.of-pill {
  padding: 4px 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  touch-action: manipulation;
}
.of-pill:hover {
  background: var(--color-paper-hover);
  border-color: var(--color-rule-focus);
  color: var(--text);
}
.of-pill.active {
  background: var(--accent);
  color: #04202A;
  border-color: var(--accent);
  font-weight: 700;
}

.of-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.of-select {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-family: var(--sans);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.of-select:focus {
  border-color: var(--color-focus);
}
.of-search {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 4px 24px 4px 26px;
  font-size: 11.5px;
  font-family: var(--sans);
  outline: none;
  width: 170px;
  transition: all 0.15s ease;
}
.of-search:focus {
  border-color: var(--color-focus);
  width: 220px;
}

/* ── Location Action Button ── */
.off-loc-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
  touch-action: manipulation;
}
.off-loc-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent);
  transform: translateX(1px);
}
.off-loc-btn:active {
  transform: translateY(1px);
}

/* ── Mobile Fault Cards (Dual Presentation) ── */
.offline-cards-mobile {
  display: none;
}
.off-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--alert);
  background: linear-gradient(to right, rgba(248, 81, 73, 0.05), var(--panel) 25%);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.35);
}

.off-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.off-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--color-ink-3);
}
.off-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin: 2px 0 0;
  line-height: 1.25;
}

.off-card-loc-wrap {
  display: flex;
  align-items: center;
}

.off-card-net {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 8px;
  font-family: var(--mono);
  font-size: 11px;
}

.off-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 2px;
}

/* ── Mobile Responsive Overrides for Offline Console (Hallmark Gates 49, 50, 52) ── */
@media (max-width: 768px) {
  #offline-panel {
    padding: 12px 12px max(20px, env(safe-area-inset-bottom));
    gap: 10px;
  }

  .offline-head {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .oh-lead {
    width: 100%;
  }
  .oh-title {
    font-size: 16px;
  }
  .oh-actions {
    width: 100%;
    display: flex;
    gap: 6px;
  }
  .oh-btn {
    flex: 1;
    min-height: 42px;
    justify-content: center;
    font-size: 11px;
    padding: 8px 10px;
  }

  /* Telemetry Quad Strip on Mobile */
  .offline-metrics-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px 10px;
  }
  .offline-metrics-strip .tcm-sep {
    display: none;
  }
  .offline-metrics-strip .tcm-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }
  .offline-metrics-strip .tcm-k {
    font-size: 8.5px;
  }
  .offline-metrics-strip .tcm-v {
    font-size: 13px;
  }

  /* Filter Bar Mobile */
  .offline-filter-bar {
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .of-status-group {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 4px;
    padding-bottom: 2px;
  }
  .of-status-group::-webkit-scrollbar {
    display: none;
  }
  .of-pill {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 6px 10px;
    font-size: 10.5px;
  }
  .of-right {
    width: 100%;
    display: flex;
    gap: 6px;
  }
  .of-select {
    flex: 1;
    min-height: 40px;
    font-size: 12px;
  }
  .of-search {
    width: 100% !important;
    min-height: 40px;
    font-size: 12px;
  }
  .offline-filter-bar .tt-search-wrap {
    flex: 1;
  }

  /* Dual Presentation: Hide Desktop Table on Mobile, Show Fault Cards */
  #offline-panel .device-table-wrap {
    display: none !important;
  }
  .offline-cards-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* Touch Target Discipline on Mobile Fault Cards (>= 44px) */
  .off-card-actions .icon-btn {
    min-width: 44px;
    min-height: 44px;
    border-radius: 6px;
    font-size: 14px;
    flex: 1;
  }
}

/* ── 10.9 SLA REPORT & RELIABILITY INTELLIGENCE WORKBENCH (Hallmark Industrial Standard) ───── */

#report-panel {
  height: 100%;
  overflow-y: auto;
  padding: 20px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--color-paper);
  -webkit-overflow-scrolling: touch;
}

/* ── SLA Mission Header ── */
.sla-mission-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
}
.smh-lead {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.smh-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.smh-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.smh-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.smh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  touch-action: manipulation;
}
.smh-btn:hover {
  background: var(--color-paper-hover);
  border-color: var(--color-rule-focus);
  color: var(--text);
}
.smh-btn:active {
  transform: translateY(1px);
}
.smh-btn.primary {
  background: var(--accent);
  color: #04202A;
  border-color: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
}
.smh-btn.primary:hover {
  background: #7DD3FC;
  border-color: #7DD3FC;
  color: #04202A;
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* ── SLA Period Selector Toolbar ── */
.sla-period-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
}
.spb-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.spb-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-ink-3);
  letter-spacing: 0.05em;
}
.spb-pills {
  display: flex;
  align-items: center;
  gap: 4px;
}
.spb-pill {
  padding: 4px 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  touch-action: manipulation;
}
.spb-pill:hover {
  background: var(--color-paper-hover);
  border-color: var(--color-rule-focus);
  color: var(--text);
}
.spb-pill.active {
  background: var(--accent);
  color: #04202A;
  border-color: var(--accent);
  font-weight: 700;
}
.spb-right {
  display: flex;
  align-items: center;
}
.spb-subtext {
  font-size: 10px;
  color: var(--color-ink-3);
}

/* ── SLA Telemetry Metrics Strip ── */
.sla-metrics-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
}

/* ── SLA Triage & Filter Bar ── */
.sla-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  gap: 12px;
  flex-wrap: wrap;
}
.sfb-status-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.sfb-pill {
  padding: 4px 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  touch-action: manipulation;
}
.sfb-pill:hover {
  background: var(--color-paper-hover);
  border-color: var(--color-rule-focus);
  color: var(--text);
}
.sfb-pill.active {
  background: var(--accent);
  color: #04202A;
  border-color: var(--accent);
  font-weight: 700;
}

.sfb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sfb-select {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-family: var(--sans);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.sfb-select:focus {
  border-color: var(--color-focus);
}
.sfb-search {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 4px;
  padding: 4px 24px 4px 26px;
  font-size: 11.5px;
  font-family: var(--sans);
  outline: none;
  width: 170px;
  transition: all 0.15s ease;
}
.sfb-search:focus {
  border-color: var(--color-focus);
  width: 220px;
}

/* ── SLA Uptime Gauge Cell ── */
.sla-uptime-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 130px;
}

/* ── Mobile SLA Cards (Dual Presentation) ── */
.sla-cards-mobile {
  display: none;
}
.sla-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease;
}
.sla-card.ok {
  border-left-color: var(--ok);
}
.sla-card.warn {
  border-left-color: var(--warn);
}
.sla-card.alert {
  border-left-color: var(--alert);
  background: linear-gradient(to right, rgba(248, 81, 73, 0.05), var(--panel) 25%);
}

.sla-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.sla-card-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.25;
}
.sla-card-loc {
  display: flex;
  align-items: center;
}
.sla-card-pct {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.sla-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
}
.sc-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sc-k {
  color: var(--color-ink-3);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.sc-v {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sc-v.alert {
  color: var(--alert);
}

.sla-card-foot {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 2px;
}
.sla-card-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
}
.sla-card-action-btn:hover {
  background: var(--color-paper-hover);
  border-color: var(--accent);
}
.sla-card-action-btn:active {
  transform: translateY(1px);
}

/* ── Mobile Responsive Overrides for SLA Report (Hallmark Gates 34, 49, 50, 52) ── */
@media (max-width: 768px) {
  #report-panel {
    padding: 10px 10px max(24px, env(safe-area-inset-bottom)) !important;
    gap: 10px;
    overflow-x: hidden;
  }

  /* Mission Header Mobile */
  .sla-mission-head {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .smh-lead {
    width: 100%;
    min-width: 0;
  }
  .smh-title {
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
  }
  .smh-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .smh-btn {
    flex: 1;
    min-height: 44px;
    justify-content: center;
    font-size: 11px;
    padding: 0 10px;
    border-radius: 6px;
    touch-action: manipulation;
  }

  /* Period Selector Bar Mobile */
  .sla-period-bar {
    padding: 10px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .spb-left {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .spb-lbl {
    font-size: 9.5px;
    color: var(--color-ink-3);
    letter-spacing: 0.04em;
    font-weight: 700;
  }
  .spb-pills {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }
  .spb-pill {
    min-height: 42px;
    text-align: center;
    padding: 0 4px;
    font-size: 10.5px;
    font-weight: 600;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }
  .spb-right {
    display: none;
  }

  /* Telemetry Quad Strip on Mobile */
  .sla-metrics-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border-radius: 6px;
  }
  .sla-metrics-strip .tcm-sep {
    display: none;
  }
  .sla-metrics-strip .tcm-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 4px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    text-align: center;
    min-width: 0;
  }
  .sla-metrics-strip .tcm-k {
    font-size: 8px;
    text-align: center;
    line-height: 1.15;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
  .sla-metrics-strip .tcm-v {
    font-size: 13px;
    font-family: var(--mono);
  }

  /* Filter Bar Mobile */
  .sla-filter-bar {
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .sfb-status-group {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    gap: 4px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .sfb-status-group::-webkit-scrollbar {
    display: none;
  }
  .sfb-pill {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 12px;
    font-size: 11px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }
  .sfb-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .sfb-select {
    width: 100%;
    min-height: 44px;
    font-size: 12.5px;
    padding: 8px 12px;
    border-radius: 6px;
  }
  .sla-filter-bar .tt-search-wrap {
    width: 100%;
  }
  .sfb-search {
    width: 100% !important;
    min-height: 44px;
    font-size: 12.5px;
    padding: 8px 28px 8px 32px;
    border-radius: 6px;
  }

  /* Dual Presentation: Hide Desktop Table on Mobile, Show SLA Cards */
  #report-panel .device-table-wrap {
    display: none !important;
  }
  .sla-cards-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* SLA Mobile Card Refinements */
  .sla-card {
    padding: 12px 14px;
    border-radius: 8px;
    gap: 10px;
  }
  .sla-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
  }
  .sla-card-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
  }
  .sla-card-loc {
    margin-top: 4px;
  }
  .sla-card-loc .off-loc-btn {
    min-height: 32px;
    padding: 3px 8px;
    font-size: 10.5px;
  }
  .sla-card-pct {
    font-size: 16px;
  }
  .sla-card-meta-row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    padding: 8px 10px;
  }
  .sla-card-meta-row .sc-meta-item {
    min-width: 0;
  }
  .sla-card-meta-row .dt-ip-code {
    width: 100%;
    justify-content: center;
    font-size: 10px;
    padding: 4px 2px;
    min-height: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Touch Target Discipline on Mobile SLA Cards (>= 44px) */
  .sla-card-action-btn {
    min-height: 44px;
    font-size: 11.5px;
    border-radius: 6px;
  }
}

/* ── Specific Narrow Phone Breakpoint (≤ 420px) ── */
@media (max-width: 420px) {
  /* 2-column Telemetry Grid on Narrow Phones for Breathing Room */
  .sla-metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
  }
  .sla-metrics-strip .tcm-item {
    padding: 8px 6px;
    min-height: 52px;
  }
  .sla-metrics-strip .tcm-k {
    font-size: 8.5px;
    white-space: normal;
  }
  .sla-metrics-strip .tcm-v {
    font-size: 14px;
  }

  /* Compact Card Meta Row on Narrow Phones */
  .sla-card-meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 6px;
  }
  .sla-card-meta-row .sc-meta-item:first-child {
    grid-column: span 2;
  }
}

/* ── Ultra-Compact Phone Breakpoint (≤ 360px) ── */
@media (max-width: 360px) {
  .smh-actions {
    flex-direction: column;
    gap: 6px;
  }
  .smh-btn {
    width: 100%;
  }
  .spb-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
}

/* ── SECTION 10.10: HALLMARK REDESIGN — HIERARCHY & TAXONOMY MODAL (#zones-modal) ── */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 */
.zh-modal {
  max-width: 880px !important;
  width: 95% !important;
  max-height: 88vh;
  background: var(--panel, #0B1220) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.zh-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 10;
}
.zh-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Modal Header Benchmark */
.zh-modal-header {
  padding: 16px 20px 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(11, 18, 32, 0.98));
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  flex-shrink: 0;
}

.zh-lead {
  flex: 1;
  min-width: 260px;
}

.zh-callsign {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.zh-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
}

.zh-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.zh-desc {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Segmented Tabs */
.cat-tabs-segmented {
  display: inline-flex;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}

.cat-tab-pill {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.cat-tab-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.cat-tab-pill.active {
  background: var(--accent, #0284c7);
  color: #fff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.cat-tab-badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* Mini Telemetry Strip */
.zh-telemetry-strip {
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid var(--border);
  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  flex-shrink: 0;
}

.zh-telemetry-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.zh-tel-label {
  font-size: 9.5px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.zh-tel-val {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}

.zh-telemetry-sep {
  color: rgba(255, 255, 255, 0.15);
  font-weight: 300;
  font-size: 11px;
}

/* Modal Body */
.zh-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 20px;
  -webkit-overflow-scrolling: touch;
}

/* Toolbar Controls */
.zh-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.zh-toolbar-sub {
  align-items: center;
}

.zh-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}

.zh-filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.zh-filter-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.zh-select {
  height: 38px;
  padding: 0 12px;
  background: var(--panel-2, #1E293B);
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s ease;
}

.zh-select:focus {
  border-color: var(--accent);
}

.zh-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  display: flex;
  align-items: center;
}

.zh-search-wrap svg {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
}

.zh-search-field {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 32px;
  background: var(--panel-2, #1E293B);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #fff;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s ease;
}

.zh-search-field:focus {
  border-color: var(--accent);
}

.zh-action-btn {
  height: 38px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Form Card */
.zh-form-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.zh-form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 2fr 110px;
  gap: 12px;
}

.zh-form-grid-2 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
}

.zh-field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
  display: block;
  letter-spacing: 0.02em;
}

.zh-input-text {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: var(--bg, #020617);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #fff;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s ease;
}

.zh-input-text:focus {
  border-color: var(--accent);
}

.zh-input-text.uppercase {
  text-transform: uppercase;
}

.zh-form-err {
  color: var(--alert, #ef4444);
  font-size: 11.5px;
  margin: 8px 0 0;
  font-family: var(--mono);
}

.zh-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.zh-btn-cancel {
  height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

.zh-btn-submit {
  height: 36px;
  padding: 0 16px;
  font-size: 12px;
}

/* Desktop Table & Badges */
.zh-table-wrap {
  max-height: 380px;
  overflow-y: auto;
  margin: 0;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.zh-key-badge {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11.5px;
  display: inline-block;
}

.zh-count-pill {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.zh-count-pill.has-items {
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.25);
}

.zh-tbl-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* Dual Presentation Mobile Cards Container (Default Hidden on Desktop) */
.zh-cards-mobile {
  display: none;
}

/* ── Mobile Responsive Mode for Zones Modal (Hallmark Gates 34, 49, 50, 52) ── */
@media (max-width: 768px) {
  .zh-modal {
    width: 96% !important;
    max-height: 92vh !important;
    margin: 8px auto !important;
    border-radius: 10px !important;
  }

  .zh-modal-close {
    width: 44px;
    height: 44px;
    top: 8px;
    right: 8px;
    touch-action: manipulation;
  }

  .zh-modal-header {
    padding: 14px 14px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .zh-lead {
    min-width: 0;
    width: 100%;
    padding-right: 36px;
  }

  .zh-title {
    font-size: 15px;
    overflow-wrap: anywhere;
    min-width: 0;
  }

  .cat-tabs-segmented {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .cat-tab-pill {
    min-height: 44px;
    justify-content: center;
    font-size: 11px;
    padding: 0 8px;
    touch-action: manipulation;
  }

  /* Telemetry Strip Mobile: Compact 3-Column Grid */
  .zh-telemetry-strip {
    padding: 8px 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    text-align: center;
  }

  .zh-telemetry-sep {
    display: none;
  }

  .zh-telemetry-item {
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    min-width: 0;
  }

  .zh-tel-label {
    font-size: 8px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .zh-tel-val {
    font-size: 13px;
  }

  /* Modal Body Mobile */
  .zh-modal-body {
    padding: 10px 10px max(24px, env(safe-area-inset-bottom)) !important;
    overflow-x: hidden;
  }

  /* Toolbar Mobile */
  .zh-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .zh-filter-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }

  .zh-filter-item {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
  }

  .zh-select {
    width: 100% !important;
    min-height: 44px;
    font-size: 12.5px;
    border-radius: 6px;
  }

  .zh-search-wrap {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
  }

  .zh-search-field {
    width: 100% !important;
    min-height: 44px;
    font-size: 12.5px;
    border-radius: 6px;
  }

  .zh-action-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    font-size: 12px;
    border-radius: 6px;
    touch-action: manipulation;
  }

  /* Form Grids Mobile: Stack to Single Column */
  .zh-form-grid-3,
  .zh-form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .zh-input-text {
    min-height: 44px;
    font-size: 13px;
  }

  .zh-form-actions {
    display: flex;
    gap: 8px;
  }

  .zh-btn-cancel,
  .zh-btn-submit {
    flex: 1;
    min-height: 44px;
    justify-content: center;
    font-size: 12px;
    touch-action: manipulation;
  }

  /* Dual Presentation: Hide Desktop Table, Show Mobile Cards */
  .zh-table-wrap {
    display: none !important;
  }

  .zh-cards-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Mobile Hierarchy Card */
  .zh-card {
    background: var(--panel, #0F172A);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .zh-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .zh-card-key {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
  }

  .zh-card-order {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-muted);
  }

  .zh-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .zh-card-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .zh-card-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
    margin-top: 4px;
  }

  .zh-card-btn {
    flex: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    touch-action: manipulation;
  }
}

/* ── Specific Narrow Phone Breakpoint (≤ 420px) ── */
@media (max-width: 420px) {
  .zh-telemetry-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 6px;
  }

  .zh-tel-label {
    font-size: 7.5px;
  }

  .zh-tel-val {
    font-size: 12px;
  }

  .cat-tab-pill span:first-of-type {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ── SECTION 10.11: MOVE DEVICES FEATURE & WORKBENCH MODAL (#move-devices-modal) ── */
.action-btn-pill.move {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.28);
}
.action-btn-pill.move:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.45);
  color: #e9d5ff;
}

.zh-move-modal {
  background: var(--panel, #0B1220) !important;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px;
  overflow: hidden;
  padding: 0 !important;
}

.zh-move-header {
  padding: 16px 20px 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(11, 18, 32, 0.98));
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.zh-move-badge {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #c084fc;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.zh-move-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zh-move-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zh-move-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.zh-move-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zh-move-source-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.zh-move-source-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--mono);
}

.zh-move-source-val {
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.zh-move-dev-list-wrap {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(2, 6, 23, 0.6);
  overflow: hidden;
}

.zh-move-dev-header {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.zh-move-dev-scroll {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}

.zh-move-dev-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.12s ease;
}
.zh-move-dev-item:last-child {
  border-bottom: none;
}
.zh-move-dev-item:hover {
  background: rgba(168, 85, 247, 0.06);
}

.zh-move-dev-item input[type="checkbox"] {
  accent-color: #a855f7;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.zh-move-dev-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zh-move-dev-name {
  font-weight: 600;
  font-size: 12.5px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zh-move-dev-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.zh-move-target-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zh-move-target-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.zh-move-select {
  width: 100%;
  height: 42px;
  background: var(--bg, #020617);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 6px;
  color: #fff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}
.zh-move-select:focus {
  border-color: #c084fc;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.zh-move-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}

.zh-move-count-indicator {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
}
.zh-move-count-indicator strong {
  color: #c084fc;
}

.zh-move-btn-exec {
  background: linear-gradient(135deg, #9333ea, #7e22ce) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600 !important;
  padding: 0 18px !important;
  height: 40px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: opacity 0.15s ease !important;
}
.zh-move-btn-exec:hover {
  opacity: 0.9 !important;
}
.zh-move-btn-exec:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

@media (max-width: 768px) {
  .zh-move-modal {
    width: 96% !important;
    margin: 8px auto !important;
  }
  .zh-move-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .zh-move-btn-exec, .zh-move-btn-cancel {
    width: 100%;
  }
}

/* ── SECTION 10.12: HALLMARK REDESIGN — AUDIT TRAIL WORKBENCH (#view-audit / #audit-panel) ── */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 */
.aud-workbench {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Mission Head */
.aud-mission-head {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent, #38bdf8);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.5);
}

.aud-callsign {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent, #38bdf8);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.aud-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

.aud-title {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.aud-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.45;
}

.aud-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.aud-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.aud-btn-refresh {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.aud-btn-refresh:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.aud-btn-refresh.spinning svg {
  animation: spin 0.7s linear infinite;
}

.aud-btn-export {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}
.aud-btn-export:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #fff;
}

/* KPI Telemetry Strip */
.aud-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.aud-kpi-cell {
  padding: 12px 16px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aud-kpi-cell:last-child {
  border-right: none;
}

.aud-kpi-lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.aud-kpi-val {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.aud-kpi-val.is-crit {
  color: #f87171;
}
.aud-kpi-val.is-cyan {
  color: #38bdf8;
}
.aud-kpi-val.is-emerald {
  color: #34d399;
}

/* Toolbar & Triage */
.aud-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aud-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.aud-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  touch-action: manipulation;
}
.aud-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}
.aud-pill.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 700;
}
.aud-pill.active.is-crit {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.aud-pill-count {
  font-family: var(--mono);
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.aud-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.aud-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.aud-search-wrap svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.aud-search-input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  background: var(--bg, #020617);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #fff;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s ease;
}
.aud-search-input:focus {
  border-color: var(--accent, #38bdf8);
}

.aud-select {
  height: 38px;
  padding: 0 12px;
  background: var(--bg, #020617);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}
.aud-select:focus {
  border-color: var(--accent, #38bdf8);
}

/* Desktop Table Presentation */
.aud-table-wrap {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  max-height: 560px;
  overflow-y: auto;
  background: rgba(11, 18, 32, 0.85);
}

.aud-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.aud-table thead {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.98);
  z-index: 2;
  border-bottom: 1px solid var(--border);
}

.aud-table th {
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.aud-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.aud-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.aud-time-cell {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
  white-space: nowrap;
  line-height: 1.3;
}
.aud-time-rel {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
}

.aud-user-pill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Semantic Badges */
.aud-badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.aud-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}

.aud-badge.is-add {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.aud-badge.is-add .aud-badge-dot { background: #34d399; }

.aud-badge.is-move {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.32);
}
.aud-badge.is-move .aud-badge-dot { background: #c084fc; }

.aud-badge.is-crit {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.32);
}
.aud-badge.is-crit .aud-badge-dot { background: #f87171; }

.aud-badge.is-sys {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
}
.aud-badge.is-sys .aud-badge-dot { background: #38bdf8; }

.aud-target-dev {
  font-weight: 600;
  color: #fff;
}

.aud-details-text {
  font-family: var(--mono);
  font-size: 11px;
  color: #cbd5e1;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aud-ip-tag {
  font-family: var(--mono);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.aud-ip-tag:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
}

/* Mobile Feed Presentation (Default Hidden on Desktop) */
.aud-feed-mobile {
  display: none;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .aud-mission-head {
    padding: 14px;
  }
  .aud-actions {
    width: 100%;
  }
  .aud-btn {
    flex: 1;
    min-height: 44px;
    justify-content: center;
  }

  .aud-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .aud-kpi-cell:nth-child(2) {
    border-right: none;
  }
  .aud-kpi-cell:nth-child(3) {
    border-top: 1px solid var(--border);
  }
  .aud-kpi-cell:nth-child(4) {
    border-top: 1px solid var(--border);
    border-right: none;
  }

  .aud-search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .aud-select {
    min-height: 44px;
    width: 100%;
  }
  .aud-search-input {
    min-height: 44px;
  }

  .aud-pill {
    min-height: 38px;
    padding: 8px 12px;
  }

  /* Switch Dual Presentation */
  .aud-table-wrap {
    display: none;
  }
  .aud-feed-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .aud-card {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .aud-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .aud-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
  }

  .aud-card-target {
    font-weight: 700;
    color: #fff;
    font-size: 13px;
  }

  .aud-card-details {
    padding: 8px 10px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    font-family: var(--mono);
    font-size: 11px;
    color: #cbd5e1;
    word-break: break-word;
  }
}

/* ── SECTION 10.13: HALLMARK REDESIGN — OPERATOR ACCESS & RBAC WORKBENCH (#view-users / #users-panel) ── */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 */
.usr-workbench {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Mission Head */
.usr-mission-head {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent, #38bdf8);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.5);
}

.usr-callsign {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent, #38bdf8);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.usr-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

.usr-title {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.usr-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.45;
}

.usr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.usr-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.usr-btn-refresh {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.usr-btn-refresh:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.usr-btn-refresh.spinning svg {
  animation: spin 0.7s linear infinite;
}

.usr-btn-add {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}
.usr-btn-add:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #fff;
}

/* KPI Telemetry Strip */
.usr-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.usr-kpi-cell {
  padding: 12px 16px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.usr-kpi-cell:last-child {
  border-right: none;
}

.usr-kpi-lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.usr-kpi-val {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.usr-kpi-val.is-cyan { color: #38bdf8; }
.usr-kpi-val.is-emerald { color: #34d399; }
.usr-kpi-val.is-amber { color: #fbbf24; }
.usr-kpi-val.is-rose { color: #f87171; }

/* Triage Toolbar */
.usr-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.usr-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.usr-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  touch-action: manipulation;
}
.usr-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}
.usr-pill.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 700;
}
.usr-pill.active.is-amber {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.usr-search-wrap {
  position: relative;
  min-width: 220px;
}
.usr-search-wrap svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.usr-search-input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  background: var(--bg, #020617);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #fff;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.15s ease;
}
.usr-search-input:focus {
  border-color: var(--accent, #38bdf8);
}

/* Desktop Table View */
.usr-table-wrap {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(11, 18, 32, 0.85);
}

.usr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.usr-table thead {
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid var(--border);
}

.usr-table th {
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.usr-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.usr-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.usr-id-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.usr-name-col {
  display: flex;
  align-items: center;
  gap: 9px;
}

.usr-avatar-monogram {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.usr-avatar-monogram.is-viewer {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.28);
  color: #34d399;
}

.usr-username {
  font-weight: 700;
  color: #fff;
  font-size: 13px;
}

.usr-self-badge {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--accent, #38bdf8);
  background: rgba(56, 189, 248, 0.1);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-left: 4px;
}

/* Badges */
.usr-role-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.usr-role-badge.is-admin {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.usr-role-badge.is-viewer {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.usr-pwd-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.usr-pwd-badge.is-normal {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.usr-pwd-badge.is-warn {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.usr-table-actions {
  display: flex;
  gap: 6px;
}

.usr-action-btn {
  height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  transition: all 0.15s ease;
}
.usr-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.usr-action-btn.danger {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}
.usr-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #f87171;
  color: #fff;
}

/* Mobile Feed (Default Hidden on Desktop) */
.usr-feed-mobile {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .usr-mission-head {
    padding: 14px;
  }
  .usr-actions {
    width: 100%;
  }
  .usr-btn {
    flex: 1;
    min-height: 44px;
    justify-content: center;
  }

  .usr-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .usr-kpi-cell:nth-child(2) {
    border-right: none;
  }
  .usr-kpi-cell:nth-child(3) {
    border-top: 1px solid var(--border);
  }
  .usr-kpi-cell:nth-child(4) {
    border-top: 1px solid var(--border);
    border-right: none;
  }

  .usr-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .usr-search-wrap {
    width: 100%;
  }
  .usr-search-input {
    min-height: 44px;
  }

  .usr-table-wrap {
    display: none;
  }
  .usr-feed-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .usr-card {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .usr-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .usr-card-user {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .usr-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 11.5px;
  }

  .usr-card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
  }
  .usr-card-meta-row strong {
    font-family: var(--mono);
    color: #cbd5e1;
    font-weight: normal;
  }

  .usr-card-actions {
    display: flex;
    gap: 8px;
  }
  .usr-card-actions .usr-action-btn {
    flex: 1;
    min-height: 44px;
    justify-content: center;
    font-size: 12px;
  }
}

/* ── SECTION 10.14: HALLMARK REDESIGN — GATEWAY & WIRELESS SIGNAL MATRIX WORKBENCH (#view-routers) ── */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 */
.rt-workbench {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Mission Head */
.rt-mission-head {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent, #38bdf8);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.5);
}

.rt-callsign {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent, #38bdf8);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rt-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

.rt-title {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.rt-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.45;
}

.rt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rt-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.rt-btn-refresh {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.rt-btn-refresh:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.rt-btn-refresh.spinning svg {
  animation: spin 0.7s linear infinite;
}
#rt-scan-clients-btn svg,
#rt-scan-clients-btn.spinning svg {
  animation: none !important;
}
#rt-scan-clients-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.rt-btn-add {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}
.rt-btn-add:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #fff;
}

/* KPI Telemetry Strip */
.rt-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.rt-kpi-cell {
  padding: 12px 16px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rt-kpi-cell:last-child {
  border-right: none;
}

.rt-kpi-lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.rt-kpi-val {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.rt-kpi-val.is-cyan { color: #38bdf8; }
.rt-kpi-val.is-violet { color: #c084fc; }
.rt-kpi-val.is-emerald { color: #34d399; }
.rt-kpi-val.is-rose { color: #f87171; }

/* Router Section Header */
.rt-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.rt-section-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Rackmount Router Chassis Grid */
.rt-router-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}

.rt-chassis-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}
.rt-chassis-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.98);
  transform: translateY(-1px);
}
.rt-chassis-card.is-selected {
  border-color: #38bdf8;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.99));
  box-shadow: 0 0 16px -2px rgba(56, 189, 248, 0.35);
}
.rt-chassis-card.is-selected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.rt-chassis-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.rt-os-pill {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  text-transform: uppercase;
}

.rt-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}
.rt-status-indicator.active {
  color: #34d399;
}
.rt-status-indicator.idle {
  color: var(--text-muted);
}
.rt-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.rt-status-indicator.active .rt-led {
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}
.rt-status-indicator.idle .rt-led {
  background: var(--text-muted);
}

.rt-chassis-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.rt-chassis-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 11px;
}
.rt-chassis-meta-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}
.rt-chassis-meta-row strong {
  color: #cbd5e1;
}

.rt-chassis-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.rt-icon-btn {
  height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  transition: all 0.15s ease;
}
.rt-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.rt-icon-btn.danger {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}
.rt-icon-btn.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #f87171;
  color: #fff;
}

/* Inspected Client Workbench */
.rt-client-workbench {
  background: rgba(11, 18, 32, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rt-client-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.rt-client-title {
  margin: 0 0 2px;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
}
.rt-client-sub {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* Toolbar & Band Pills */
.rt-toolbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.rt-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.rt-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  touch-action: manipulation;
}
.rt-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.rt-pill.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-weight: 700;
}
.rt-pill.active.is-violet {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.45);
  color: #c084fc;
}
.rt-pill.active.is-emerald {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.4);
  color: #34d399;
}
.rt-pill.active.is-rose {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.4);
  color: #f87171;
}
.rt-pill.active.is-amber {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.rt-select-filter {
  box-sizing: border-box;
  height: 32px;
  padding: 0 10px;
  background: var(--color-paper, #0d1117);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rt-select-filter:focus {
  border-color: var(--accent, #38bdf8);
  box-shadow: 0 0 0 1px var(--accent, #38bdf8);
}

.rt-search-wrap {
  position: relative;
  width: 250px;
  max-width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}
.rt-search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-ink-3, var(--text-muted));
  pointer-events: none;
}
.rt-search-input {
  box-sizing: border-box;
  width: 100%;
  height: 32px;
  padding: 0 12px 0 32px;
  background: var(--color-paper, #0d1117);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rt-search-input::placeholder {
  color: var(--color-ink-3, #6e7681);
}
.rt-search-input:focus {
  border-color: var(--accent, #38bdf8);
  box-shadow: 0 0 0 1px var(--accent, #38bdf8);
}

/* Desktop Client Table */
.rt-table-wrap {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow-x: auto;
  background: rgba(11, 18, 32, 0.85);
}

.rt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.rt-table thead {
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid var(--border);
}

.rt-table th {
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.rt-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}
.rt-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Spectrum Band Badges */
.rt-band-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.rt-band-badge.is-5g {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.32);
}
.rt-band-badge.is-24g {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
}
.rt-band-badge.is-lan {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.28);
}

/* Monitoring Tag */
.rt-mon-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.rt-mon-badge.is-monitored {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.rt-mon-badge.is-guest {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.28);
}

/* Mobile Client Feed (Default Hidden) */
.rt-feed-mobile {
  display: none;
}

/* Firewall Quarantine / Blacklist Panel */
.rt-blacklist-panel {
  background: rgba(20, 10, 15, 0.85);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-left: 3px solid #f87171;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rt-blacklist-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.rt-blacklist-title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rt-blacklist-desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .rt-mission-head {
    padding: 14px;
  }
  .rt-actions {
    width: 100%;
  }
  .rt-btn {
    flex: 1;
    min-height: 44px;
    justify-content: center;
  }

  .rt-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rt-kpi-cell:nth-child(2) {
    border-right: none;
  }
  .rt-kpi-cell:nth-child(3) {
    border-top: 1px solid var(--border);
  }
  .rt-kpi-cell:nth-child(4) {
    border-top: 1px solid var(--border);
    border-right: none;
  }

  .rt-router-grid {
    grid-template-columns: 1fr;
  }

  .rt-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .rt-search-wrap {
    width: 100%;
  }
  .rt-search-input {
    min-height: 44px;
  }

  .rt-table-wrap {
    display: none;
  }
  .rt-feed-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .rt-client-card {
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .rt-client-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .rt-client-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 11.5px;
  }

  .rt-client-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
  }
  .rt-client-card-row strong {
    font-family: var(--mono);
    color: #cbd5e1;
    font-weight: normal;
  }

  .rt-client-card-actions {
    display: flex;
    gap: 8px;
  }
  .rt-client-card-actions button {
    flex: 1;
    min-height: 44px;
    justify-content: center;
    font-size: 12px;
  }
}

/* ── 10.15 MANAGE TOPOLOGY SCHEMATIC & CAD WORKBENCH (Hallmark Industrial Standard) ── */

.mt-workbench {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}

/* Mission Header */
.mt-mission-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 16px;
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.mt-head-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mt-callsign-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.mt-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: mtPulseLive 2s infinite ease-in-out;
}

@keyframes mtPulseLive {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px #38bdf8; }
  50% { transform: scale(1.3); opacity: 0.7; box-shadow: 0 0 14px #38bdf8; }
}

.mt-callsign {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mt-title {
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
  margin: 0;
}

.mt-sub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mt-sub-tag {
  font-size: 12px;
  color: #94a3b8;
}

.mt-node-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.mt-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mt-head-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--sans);
}

.mt-head-btn.is-preview {
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.mt-head-btn.is-preview:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #fff;
  border-color: rgba(148, 163, 184, 0.35);
}

.mt-head-btn.is-refresh {
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.mt-head-btn.is-refresh:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.mt-head-btn.is-primary {
  background: #0284c7;
  color: #fff;
  border: 1px solid #38bdf8;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}
.mt-head-btn.is-primary:hover {
  background: #0369a1;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.5);
  transform: translateY(-1px);
}

/* Telemetry Quad Strip */
.mt-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px 24px;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mt-kpi-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.mt-kpi-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.mt-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.mt-kpi-card.is-blue::before { background: #38bdf8; }
.mt-kpi-card.is-amber::before { background: #f59e0b; }
.mt-kpi-card.is-indigo::before { background: #818cf8; }
.mt-kpi-card.is-emerald::before { background: #10b981; }

.mt-kpi-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--mono);
}

.mt-kpi-val {
  font-size: 22px;
  font-weight: 700;
  color: #f8fafc;
  font-family: var(--mono);
  line-height: 1.1;
}

.mt-kpi-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

/* Triage & Control Toolbar */
.mt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(15, 23, 42, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.mt-pills-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mt-pill {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mt-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
}
.mt-pill.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.mt-pill-count {
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-family: var(--mono);
  background: rgba(0, 0, 0, 0.35);
}

.mt-tree-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mt-tree-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mt-tree-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.mt-search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 250px;
}

.mt-search-ico {
  position: absolute;
  left: 10px;
  color: #64748b;
  pointer-events: none;
}

.mt-search-inp {
  width: 100%;
  padding: 7px 28px 7px 32px;
  border-radius: 6px;
  font-size: 12.5px;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mt-search-inp:focus {
  border-color: #38bdf8;
  background: rgba(2, 6, 23, 0.8);
}

.mt-search-clear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 11px;
  padding: 2px 4px;
}
.mt-search-clear:hover {
  color: #fff;
}

/* Tree Container & Schematic Nodes */
.mt-tree-container {
  flex: 1;
  overflow-y: visible;
  overflow-x: auto;
  padding: 16px 24px 40px;
}

.mt-node {
  position: relative;
  margin: 2px 0;
}

.mt-node.hidden-node {
  display: none !important;
}

.mt-node-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 6px;
  padding: 4px 10px;
  background: rgba(30, 41, 59, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.12s ease;
  position: relative;
  min-height: 40px;
  gap: 8px;
}
.mt-node-row:hover {
  background: rgba(56, 189, 248, 0.06);
  border-color: rgba(56, 189, 248, 0.22);
}

/* Main Left Group in Node Row */
.mt-node-main {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

/* Depth Color Accents on left border */
.mt-node-row[data-depth="0"] {
  border-left: 3px solid #38bdf8;
  background: rgba(56, 189, 248, 0.04);
}
.mt-node-row[data-depth="1"] {
  border-left: 3px solid #818cf8;
}
.mt-node-row[data-depth="2"] {
  border-left: 3px solid #f59e0b;
}
.mt-node-row[data-depth="3"] {
  border-left: 3px solid #10b981;
}
.mt-node-row[data-depth="4"] {
  border-left: 3px solid #a855f7;
}

/* Indent tree line connectors */
.mt-indent-sp {
  display: inline-flex;
  flex-shrink: 0;
}

.mt-indent-line {
  width: 16px;
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  height: 40px;
  vertical-align: middle;
}
.mt-indent-line::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(148, 163, 184, 0.2);
}
.mt-indent-line.last::before {
  bottom: 50%;
}
.mt-indent-line::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: rgba(148, 163, 184, 0.25);
}

/* Toggle Arrow Button */
.mt-toggle {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
  padding: 0;
}
.mt-toggle:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}
.mt-toggle.expanded svg {
  transform: rotate(90deg);
}
.mt-toggle.leaf {
  opacity: 0;
  cursor: default;
  pointer-events: none;
}

/* Node Icon Badge */
.mt-node-ico-wrap {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mt-node-ico-wrap.is-infra {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.mt-node-ico-wrap.is-fo {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.mt-node-ico-wrap.is-building {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Micro-Chip Badges */
.mt-badge-chip {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.mt-badge-chip.is-root {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.mt-badge-chip.is-fo {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.mt-badge-chip.is-sw {
  background: rgba(129, 140, 248, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.3);
}
.mt-badge-chip.is-infra {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.mt-badge-chip.is-bldg {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Node Label & Sub-info */
.mt-node-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.mt-node-label {
  font-size: 13.5px;
  color: #f1f5f9;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mt-node-row[data-depth="0"] .mt-node-label {
  color: #38bdf8;
  font-weight: 700;
  font-size: 14px;
}

.mt-node-label mark {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  border-radius: 3px;
  padding: 0 2px;
  font-style: normal;
}

.mt-child-count {
  font-size: 10px;
  background: rgba(100, 116, 139, 0.18);
  color: #94a3b8;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
  font-family: var(--mono);
  flex-shrink: 0;
}

.mt-chip-devices {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  text-decoration: none;
}
.mt-chip-devices.is-clickable {
  cursor: pointer;
  transition: all 0.15s ease;
}
.mt-chip-devices.is-clickable:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}

.mt-depth-pill {
  font-family: var(--mono);
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: #64748b;
  flex-shrink: 0;
}

/* Actions in Node Row */
.mt-node-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.mt-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
  font-family: var(--sans);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}
.mt-act-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mt-act-btn.is-add {
  background: rgba(56, 189, 248, 0.08);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.22);
}
.mt-act-btn.is-add:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #fff;
}

.mt-act-btn.is-edit {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.mt-act-btn.is-edit:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.mt-act-btn.is-del {
  background: rgba(244, 63, 94, 0.08);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.2);
}
.mt-act-btn.is-del:hover {
  background: rgba(244, 63, 94, 0.22);
}

.mt-act-btn.is-move {
  padding: 3px 5px;
  color: #64748b;
  border-color: rgba(255, 255, 255, 0.05);
}
.mt-act-btn.is-move:hover {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.08);
}

/* Children block */
.mt-children {
  display: block;
}
.mt-children.collapsed {
  display: none !important;
}

/* Empty State */
.mt-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  gap: 12px;
  text-align: center;
}
.mt-empty-icon {
  width: 48px;
  height: 48px;
  color: #475569;
}
.mt-empty-text {
  font-size: 14px;
  color: #94a3b8;
}

/* Mobile Responsive Adjustments (Hallmark Gate 52) */
@media (max-width: 768px) {
  .mt-mission-head {
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .mt-head-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .mt-head-btn.is-primary {
    grid-column: span 2;
    min-height: 44px;
    justify-content: center;
  }
  .mt-head-btn.is-preview,
  .mt-head-btn.is-refresh {
    min-height: 40px;
    justify-content: center;
  }

  .mt-kpi-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px 16px;
    gap: 8px;
  }

  .mt-toolbar {
    padding: 10px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .mt-pills-wrap {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    flex-wrap: nowrap;
  }
  .mt-pill {
    white-space: nowrap;
    min-height: 38px;
  }

  .mt-tree-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .mt-tree-btn {
    min-height: 38px;
    justify-content: center;
  }

  .mt-search-box {
    width: 100%;
    min-width: 0;
  }
  .mt-search-inp {
    min-height: 40px;
  }

  .mt-tree-container {
    padding: 10px 8px 40px;
  }

  /* Compact indentation on mobile */
  .mt-indent-line {
    width: 8px;
  }

  .mt-node-row {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 10px;
    gap: 8px;
    min-height: auto;
  }

  .mt-node-main {
    width: 100%;
    min-width: 0;
  }

  .mt-node-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 6px;
  }

  .mt-act-btn {
    flex: 1;
    min-height: 38px;
    justify-content: center;
    font-size: 11.5px;
  }
}

/* ── Node Specification Modal (#node-modal) ── */
#node-modal .modal {
  max-width: 520px;
  width: 95%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent, #38bdf8);
  border-radius: 8px;
  padding: 24px 26px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
}

.nm-head {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nm-callsign-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.nm-callsign {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent, #38bdf8);
  letter-spacing: 0.12em;
}

.nm-id-chip {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent, #38bdf8);
}

.nm-form-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nm-field {
  display: flex;
  flex-direction: column;
}

.nm-field label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nm-field input,
.nm-field select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  font-size: 13.5px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.nm-field input:focus,
.nm-field select:focus {
  outline: none;
  border-color: var(--accent, #38bdf8);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.nm-field select {
  cursor: pointer;
}

#node-parent-id {
  font-family: var(--mono), monospace;
  font-size: 12.5px;
  line-height: 1.4;
}

.nm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── 10.16 HALLMARK DESTRUCTIVE ACTION CONFIRMATION MODAL (#delete-confirm-modal) ── */

.del-modal-card {
  max-width: 480px;
  width: 95%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.99));
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-left: 3px solid #f43f5e;
  border-radius: 8px;
  padding: 24px 26px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 24px rgba(244, 63, 94, 0.08);
}

.del-modal-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.del-callsign-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.del-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
  display: inline-block;
  animation: delPulseLive 2s infinite ease-in-out;
}

@keyframes delPulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.del-callsign {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #f43f5e;
  letter-spacing: 0.12em;
}

.del-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.del-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.del-target-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 14px;
}

.del-target-type {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #f43f5e;
  white-space: nowrap;
}

.del-target-name {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text, #f1f5f9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.del-desc {
  margin: 0;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted, #94a3b8);
}

.del-warning-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 6px;
  padding: 10px 12px;
  color: #fbbf24;
}

.del-warn-ico {
  flex-shrink: 0;
  margin-top: 1px;
}

.del-warn-content {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
  color: #fef08a;
}

.del-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.del-btn-cancel {
  background: transparent;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  color: var(--text-muted, #94a3b8);
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 38px;
}

.del-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.del-btn-cancel:focus-visible {
  outline: 2px solid var(--accent, #38bdf8);
  outline-offset: 2px;
}

.del-btn-confirm {
  background: #e11d48;
  border: 1px solid #f43f5e;
  color: #fff;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  min-height: 38px;
}

.del-btn-confirm:hover {
  background: #f43f5e;
  box-shadow: 0 6px 16px rgba(244, 63, 94, 0.45);
  transform: translateY(-1px);
}

.del-btn-confirm:active {
  transform: translateY(0);
}

.del-btn-confirm:focus-visible {
  outline: 2px solid #fb7185;
  outline-offset: 2px;
}

.del-btn-confirm.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

/* Mobile Responsiveness for Confirmation Dialog */
@media (max-width: 480px) {
  .del-modal-card {
    padding: 20px 18px;
  }
  .del-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .del-btn-cancel,
  .del-btn-confirm {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
}

/* ── SECTION 10.17: HALLMARK BANDWIDTH TELEMETRY & ENTERPRISE TOOLS ── */
.rt-traffic-section {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rt-traffic-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.rt-traffic-callsign {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent, #38bdf8);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rt-traffic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.rt-traffic-card {
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #38bdf8;
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s ease;
}

.rt-traffic-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.85);
}

.rt-traffic-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rt-traffic-name {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

.rt-traffic-type-badge {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.rt-traffic-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.rt-traffic-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11.5px;
}

.rt-traffic-lbl {
  color: var(--text-muted, #94a3b8);
  font-size: 10px;
  font-weight: 600;
}

.rt-traffic-val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rt-traffic-val.rx {
  color: #34d399; /* Emerald for download/RX */
}

.rt-traffic-val.tx {
  color: #a78bfa; /* Purple for upload/TX */
}

.rt-traffic-empty {
  padding: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(2, 6, 23, 0.4);
  border-radius: 6px;
  border: 1px dashed var(--border);
}

/* ── EXCEL BULK IMPORT MODAL & DROPZONE (HALLMARK TELEMETRY) ── */
.import-modal-card {
  max-width: 980px !important;
  width: 95% !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 24px 28px !important;
  background: var(--panel) !important;
  border: 1px solid var(--border) !important;
}

.import-dropzone {
  border: 2px dashed var(--color-rule);
  border-radius: 8px;
  background: var(--color-paper-2);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.import-dropzone:hover,
.import-dropzone.dragover {
  border-color: var(--accent);
  background: var(--color-paper-hover);
}

.import-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  text-align: left;
}

.import-preview-table th {
  position: sticky;
  top: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--color-ink-2);
  padding: 7px 10px;
  white-space: nowrap;
  z-index: 2;
}

.import-preview-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}

.import-preview-table tbody tr:hover {
  background: var(--color-paper-hover);
}

.import-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.import-badge.new {
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid rgba(63, 185, 80, 0.4);
  color: var(--color-ok);
}

.import-badge.update {
  background: rgba(56, 139, 253, 0.15);
  border: 1px solid rgba(56, 139, 253, 0.4);
  color: var(--accent);
}

.import-badge.error {
  background: rgba(248, 81, 73, 0.15);
  border: 1px solid rgba(248, 81, 73, 0.4);
  color: var(--color-alert);
}

.import-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--panel);
  border: 1px solid var(--border);
}

.rt-rssi-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  white-space: nowrap;
}



