/* ── Scanner Page — scoped styles ───────────────────────────────────
   All classes prefixed with .ns- to avoid conflicts with IT Nexus CSS.
   Teal accent: #14b8a8  |  Dark bg: #07101a  |  Surface: #0f1a25
─────────────────────────────────────────────────────────────────── */

/* CSS variables scoped to the scanner page.
   IT Nexus dark mode = default (:root), light mode = html[data-theme="light"]
   IT Nexus variables: --bg-card, --bg-secondary, --bg-tertiary,
                       --text-primary, --text-secondary, --text-muted,
                       --border-color
*/
.ns-page {
  --ns-teal:        #14b8a8;
  --ns-teal-2:      #2dd2c2;
  --ns-teal-dim:    rgba(20,184,168,0.14);
  --ns-teal-glow:   0 0 0 1px rgba(20,184,168,0.18), 0 30px 60px -20px rgba(20,184,168,0.22);

  --ns-success:     #22c55e;
  --ns-warning:     #f59e0b;
  --ns-danger:      #ef4444;
  --ns-info:        #3b82f6;
  --ns-purple:      #7c3aed;

  --ns-r-sm:  8px;
  --ns-r-md:  12px;
  --ns-r-lg:  18px;

  /* Reference IT Nexus actual variable names (dark = default) */
  --ns-surface:       var(--bg-card, #1e293b);
  --ns-surface-2:     var(--bg-secondary, #1e293b);
  --ns-surface-3:     var(--bg-tertiary, #334155);
  --ns-text:          var(--text-primary, #f1f5f9);
  --ns-text-2:        var(--text-secondary, #94a3b8);
  --ns-text-3:        var(--text-muted, #64748b);
  --ns-border:        var(--border-color, #334155);
  --ns-border-strong: var(--border-color, #475569);
  --ns-shadow-sm:     0 1px 3px rgba(0,0,0,0.35);
}

/* Light mode — IT Nexus sets html[data-theme="light"] */
html[data-theme="light"] .ns-page {
  --ns-surface:       var(--bg-card, #ffffff);
  --ns-surface-2:     var(--bg-secondary, #ffffff);
  --ns-surface-3:     var(--bg-tertiary, #f5f5f7);
  --ns-text:          var(--text-primary, #1d1d1f);
  --ns-text-2:        var(--text-secondary, #424245);
  --ns-text-3:        var(--text-muted, #6e6e73);
  --ns-border:        var(--border-color, #e5e5e7);
  --ns-border-strong: var(--border-color, #d1d1d6);
  --ns-shadow-sm:     0 1px 2px rgba(15,23,42,0.06), 0 1px 1px rgba(15,23,42,0.04);
  --ns-success:       #16a34a;
  --ns-warning:       #d97706;
  --ns-danger:        #dc2626;
}

/* ── Layout ─────────────────────────────────────────────────────── */
.ns-page {
  max-width: 1480px;
  margin: 0 auto;
  padding-bottom: 80px;
}

/* ── Hero ───────────────────────────────────────────────────────── */
.ns-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: flex-end;
  margin-bottom: 32px;
}

.ns-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ns-teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ns-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ns-success);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
  display: inline-block;
  animation: ns-pulse 1.6s ease-out infinite;
}

@keyframes ns-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.ns-h1 {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ns-text);
  /* Force visibility regardless of parent color inheritance */
  -webkit-text-fill-color: var(--ns-text);
}

.ns-lead {
  font-size: 14.5px;
  color: var(--ns-text-3);
  max-width: 660px;
  line-height: 1.55;
}

.ns-lead strong {
  color: var(--ns-text-2);
  font-weight: 500;
}

.ns-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.ns-btn {
  appearance: none;
  border: 1px solid var(--ns-border-strong);
  background: var(--ns-surface);
  color: var(--ns-text);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: background .14s, transform .08s, border-color .14s;
}
.ns-btn:hover  { background: var(--ns-surface-3); border-color: var(--ns-border-strong); }
.ns-btn:active { transform: scale(0.98); }
.ns-btn svg    { width: 14px; height: 14px; }

.ns-btn-primary {
  background: var(--ns-teal);
  color: #fff;
  border-color: var(--ns-teal);
}
.ns-btn-primary:hover {
  background: var(--ns-teal-2);
  border-color: var(--ns-teal-2);
}

.ns-btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 8px;
}

/* ── Stats grid ──────────────────────────────────────────────────── */
.ns-stats {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

@media (max-width: 1080px) {
  .ns-stats { grid-template-columns: 1fr 1fr; }
}

.ns-stat {
  position: relative;
  overflow: hidden;
  background: var(--ns-surface);
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-r-lg);
  padding: 22px 24px;
  box-shadow: var(--ns-shadow-sm);
  transition: border-color .15s;
}
.ns-stat:hover { border-color: var(--ns-border-strong); }

.ns-stat-feature {
  background:
    linear-gradient(155deg, rgba(20,184,168,0.18), rgba(20,184,168,0.04) 60%),
    var(--ns-surface);
  border-color: rgba(20,184,168,0.22);
  box-shadow: var(--ns-teal-glow);
}

.ns-stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ns-text-3);
  margin: 0 0 14px;
}

.ns-stat-tag {
  background: var(--ns-teal-dim);
  color: var(--ns-teal);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.ns-stat-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ns-text);
}

.ns-stat-value-danger { color: var(--ns-danger) !important; }

.ns-stat-unit {
  font-size: 16px;
  color: var(--ns-text-3);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ns-delta-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  color: var(--ns-success);
  font-weight: 600;
  background: rgba(34,197,94,0.10);
  padding: 3px 8px;
  border-radius: 999px;
  margin-top: 10px;
  width: fit-content;
}

.ns-stat-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ns-text-2);
  margin-top: 14px;
}

.ns-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ns-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ns-text-3);
  display: inline-block;
}
.ns-dot-green  { background: var(--ns-success);  box-shadow: 0 0 6px rgba(34,197,94,0.4); }
.ns-dot-red    { background: var(--ns-danger);   box-shadow: 0 0 6px rgba(239,68,68,0.4); }
.ns-dot-yellow { background: var(--ns-warning); }

.ns-stat-desc {
  font-size: 12.5px;
  color: var(--ns-text-3);
  margin-top: 10px;
}

.ns-sparkline {
  position: absolute;
  right: 24px;
  top: 22px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
}
.ns-sparkline span {
  width: 4px;
  border-radius: 1.5px;
  background: var(--ns-teal);
  opacity: 0.5;
}

/* ── Section titles ──────────────────────────────────────────────── */
.ns-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 4px 14px;
}
.ns-section-title h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ns-text);
}
.ns-section-title .ns-meta {
  font-size: 12.5px;
  color: var(--ns-text-3);
}

/* ── Attention cards ─────────────────────────────────────────────── */
.ns-attn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.ns-attn-grid.ns-attn-1 { grid-template-columns: minmax(0,480px) 1fr 1fr; }
.ns-attn-grid.ns-attn-2 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 1080px) { .ns-attn-grid { grid-template-columns: 1fr !important; } }

.ns-attn {
  background: var(--ns-surface);
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-r-lg);
  padding: 22px;
  box-shadow: var(--ns-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ns-attn-danger { border-color: rgba(239,68,68,0.28); }
.ns-attn-warn   { border-color: rgba(245,158,11,0.28); }

.ns-attn-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ns-attn-icn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ns-attn-icn-danger { background: rgba(239,68,68,0.14); color: var(--ns-danger); }
.ns-attn-icn-warn   { background: rgba(245,158,11,0.16); color: var(--ns-warning); }
.ns-attn-icn svg    { width: 18px; height: 18px; }

.ns-attn-info { flex: 1; min-width: 0; }

.ns-attn-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ns-text);
}

.ns-attn-sub {
  font-size: 12px;
  color: var(--ns-text-3);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ns-attn-sev {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.ns-attn-sev-danger { background: rgba(239,68,68,0.14); color: var(--ns-danger); }
.ns-attn-sev-warn   { background: rgba(245,158,11,0.16); color: var(--ns-warning); }

.ns-attn-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.ns-attn-num {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}
.ns-attn-num-danger { color: var(--ns-danger); }
.ns-attn-num-warn   { color: var(--ns-warning); }
.ns-attn-unit { font-size: 13.5px; color: var(--ns-text-3); font-weight: 500; }
.ns-attn-of   { font-size: 13.5px; color: var(--ns-text-3); margin-left: 2px; }

.ns-attn-bar {
  height: 6px;
  border-radius: 99px;
  background: var(--ns-surface-3);
  overflow: hidden;
  margin-top: 12px;
}
.ns-attn-bar span { display: block; height: 100%; border-radius: 99px; }
.ns-attn-bar-danger span { background: var(--ns-danger); }
.ns-attn-bar-warn   span { background: var(--ns-warning); }

.ns-attn-body {
  font-size: 13px;
  color: var(--ns-text-2);
  line-height: 1.55;
}

.ns-attn-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* ── Main grid ───────────────────────────────────────────────────── */
.ns-main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1180px) { .ns-main-grid { grid-template-columns: 1fr; } }

/* ── Segmented type filter ───────────────────────────────────────── */
.ns-seg {
  display: inline-flex;
  background: var(--ns-surface);
  border: 1px solid var(--ns-border);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 14px;
  overflow-x: auto;
  max-width: 100%;
}

.ns-seg-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ns-text-3);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: background .14s, color .14s;
}
.ns-seg-btn:hover { color: var(--ns-text); }
.ns-seg-btn svg   { width: 14px; height: 14px; opacity: 0.85; }

.ns-seg-btn-active {
  background: var(--ns-teal-dim);
  color: var(--ns-teal);
}

.ns-seg-num {
  background: var(--ns-surface-3);
  color: var(--ns-text-3);
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
}
.ns-seg-num-active {
  background: rgba(20,184,168,0.20);
  color: var(--ns-teal);
}

/* ── Toolbar ─────────────────────────────────────────────────────── */
.ns-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ns-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 1;
  min-width: 280px;
  max-width: 460px;
}
.ns-search svg {
  position: absolute;
  left: 13px;
  width: 15px;
  height: 15px;
  color: var(--ns-text-3);
  pointer-events: none;
}
.ns-search input {
  width: 100%;
  background: var(--ns-surface);
  color: var(--ns-text);
  border: 1px solid var(--ns-border-strong);
  border-radius: 11px;
  padding: 10px 14px 10px 38px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.ns-search input::placeholder { color: var(--ns-text-3); }
.ns-search input:focus {
  border-color: var(--ns-teal);
  box-shadow: 0 0 0 3px rgba(20,184,168,0.18);
}

.ns-select-wrap { position: relative; }
.ns-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--ns-surface);
  color: var(--ns-text);
  border: 1px solid var(--ns-border-strong);
  border-radius: 11px;
  padding: 10px 32px 10px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.ns-select:focus {
  border-color: var(--ns-teal);
  box-shadow: 0 0 0 3px rgba(20,184,168,0.18);
}
.ns-select-chevron {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: var(--ns-text-3);
  pointer-events: none;
}

.ns-toolbar-count {
  font-size: 12.5px;
  color: var(--ns-text-3);
  margin-left: auto;
}

/* ── Table card ──────────────────────────────────────────────────── */
.ns-card {
  background: var(--ns-surface);
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-r-lg);
  box-shadow: var(--ns-shadow-sm);
  overflow: hidden;
}

.ns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ns-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ns-text-3);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ns-border);
  background: var(--ns-surface-2);
  white-space: nowrap;
}
.ns-table th:first-child { padding-left: 22px; }
.ns-table th:last-child  { padding-right: 22px; text-align: right; }

.ns-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--ns-border);
  vertical-align: middle;
}
.ns-table td:first-child { padding-left: 22px; }
.ns-table td:last-child  { padding-right: 22px; text-align: right; }
.ns-table tbody tr:last-child td { border-bottom: 0; }

.ns-table tbody tr {
  transition: background .12s;
  cursor: pointer;
}
.ns-table tbody tr:hover { background: var(--ns-surface-2); }

.ns-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: var(--ns-surface-2);
  border-top: 1px solid var(--ns-border);
  font-size: 12.5px;
  color: var(--ns-text-3);
}

/* ── Device cell ─────────────────────────────────────────────────── */
.ns-device-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ns-device-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ns-surface-3);
  color: var(--ns-text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ns-device-icon svg { width: 17px; height: 17px; }
.ns-device-icon-teal   { background: var(--ns-teal-dim); color: var(--ns-teal); }
.ns-device-icon-blue   { background: rgba(59,130,246,0.14); color: var(--ns-info); }
.ns-device-icon-orange { background: rgba(245,158,11,0.16); color: var(--ns-warning); }
.ns-device-icon-purple { background: rgba(124,58,237,0.14); color: var(--ns-purple); }
.ns-device-icon-green  { background: rgba(34,197,94,0.14); color: var(--ns-success); }

.ns-device-info { min-width: 0; flex: 1; }

.ns-device-name {
  font-weight: 600;
  color: var(--ns-text);
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
  letter-spacing: -0.005em;
}

.ns-device-sub {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: var(--ns-text-3);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Telemetry ───────────────────────────────────────────────────── */
.ns-telemetry {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 160px;
  max-width: 240px;
}
.ns-telemetry-head {
  font-size: 10.5px;
  color: var(--ns-text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.ns-telemetry-val {
  font-size: 12.5px;
  color: var(--ns-text-2);
  line-height: 1.4;
}
.ns-telemetry-val strong { color: var(--ns-text); font-weight: 600; }
.ns-telemetry-empty { font-size: 11.5px; color: var(--ns-text-3); font-style: italic; }

.ns-micro-bar {
  width: 140px;
  height: 5px;
  border-radius: 99px;
  background: var(--ns-surface-3);
  overflow: hidden;
  margin-top: 2px;
}
.ns-micro-bar span        { display: block; height: 100%; background: var(--ns-teal); border-radius: 99px; }
.ns-micro-bar-warn  span  { background: var(--ns-warning); }
.ns-micro-bar-danger span { background: var(--ns-danger); }

/* ── Source chips ────────────────────────────────────────────────── */
.ns-sources { display: flex; gap: 4px; flex-wrap: wrap; }

.ns-source {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--ns-surface-3);
  color: var(--ns-text-3);
  text-transform: uppercase;
}
.ns-source-snmp  { background: rgba(20,184,168,0.14); color: var(--ns-teal); }
.ns-source-dns   { background: rgba(245,158,11,0.16); color: var(--ns-warning); }
.ns-source-mdns  { background: rgba(245,158,11,0.16); color: var(--ns-warning); }
.ns-source-unifi { background: rgba(59,130,246,0.14); color: var(--ns-info); }
.ns-source-ad    { background: rgba(124,58,237,0.14); color: var(--ns-purple); }

/* ── Status badges ───────────────────────────────────────────────── */
.ns-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ns-badge-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

.ns-badge-online { background: rgba(34,197,94,0.12); color: var(--ns-success); }
.ns-badge-online .ns-badge-dot { background: var(--ns-success); box-shadow: 0 0 6px rgba(34,197,94,0.5); }

.ns-badge-offline { background: rgba(239,68,68,0.14); color: var(--ns-danger); }
.ns-badge-offline .ns-badge-dot { background: var(--ns-danger); }

.ns-badge-warn { background: rgba(245,158,11,0.14); color: var(--ns-warning); }
.ns-badge-warn .ns-badge-dot { background: var(--ns-warning); }

.ns-badge-site {
  background: transparent;
  border: 1px solid var(--ns-border-strong);
  color: var(--ns-text-2);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
}

/* ── Side panel ──────────────────────────────────────────────────── */
.ns-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.ns-panel {
  background: var(--ns-surface);
  border: 1px solid var(--ns-border);
  border-radius: var(--ns-r-lg);
  box-shadow: var(--ns-shadow-sm);
  overflow: hidden;
}

.ns-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 20px 0;
}
.ns-panel-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ns-text-3);
}
.ns-panel-head .ns-meta { font-size: 11.5px; color: var(--ns-text-3); }
.ns-panel-head a { color: var(--ns-teal); font-size: 12px; text-decoration: none; cursor: pointer; }
.ns-panel-head a:hover { text-decoration: underline; }

.ns-panel-body { padding: 14px 20px 20px; }

/* ── Scan card ───────────────────────────────────────────────────── */
.ns-scan-card {
  background: linear-gradient(155deg, rgba(20,184,168,0.16), rgba(20,184,168,0.02) 80%), var(--ns-surface);
  border: 1px solid rgba(20,184,168,0.22);
  border-radius: var(--ns-r-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ns-scan-card-head  { font-size: 11px; color: var(--ns-teal); text-transform: uppercase; letter-spacing: 0.10em; font-weight: 700; }
.ns-scan-card-title { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ns-text); }
.ns-scan-card-body  { font-size: 12.5px; color: var(--ns-text-3); }
.ns-scan-card-body strong { color: var(--ns-text-2); font-weight: 500; }
.ns-scan-progress {
  height: 5px;
  background: rgba(20,184,168,0.15);
  border-radius: 99px;
  overflow: hidden;
}
.ns-scan-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ns-teal), var(--ns-teal-2));
  border-radius: 99px;
}

/* ── Module list ─────────────────────────────────────────────────── */
.ns-mod-list { display: flex; flex-direction: column; }

.ns-mod-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ns-border);
}
.ns-mod-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ns-mod-row:first-child { padding-top: 6px; }

.ns-mod-ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--ns-surface-3);
  color: var(--ns-text-3);
}
.ns-mod-ico-on  { background: var(--ns-teal-dim); color: var(--ns-teal); }
.ns-mod-ico svg { width: 14px; height: 14px; }

.ns-mod-meta { flex: 1; min-width: 0; }
.ns-mod-name   { font-size: 13px; font-weight: 600; color: var(--ns-text); }
.ns-mod-detail { font-size: 11.5px; color: var(--ns-text-3); margin-top: 1px; }

.ns-mod-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ns-success);
  flex-shrink: 0;
}
.ns-mod-status-warn { background: var(--ns-warning); }
.ns-mod-status-off  { background: var(--ns-text-3); }

/* ── Alert list (sidebar) ────────────────────────────────────────── */
.ns-alert-list { display: flex; flex-direction: column; gap: 10px; }

.ns-alert-row {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--ns-surface-2);
  border: 1px solid var(--ns-border);
  border-radius: 12px;
}

.ns-alert-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ns-alert-ico-warn { background: rgba(245,158,11,0.18); color: var(--ns-warning); }
.ns-alert-ico-err  { background: rgba(239,68,68,0.16);  color: var(--ns-danger); }
.ns-alert-ico svg  { width: 14px; height: 14px; }

.ns-alert-body  { flex: 1; min-width: 0; }
.ns-alert-title { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--ns-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-alert-desc  { font-size: 11.5px; color: var(--ns-text-3); margin-top: 3px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ns-alert-when  { font-size: 11px; color: var(--ns-text-3); margin-top: 6px; }

/* ── FAB ─────────────────────────────────────────────────────────── */
.ns-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--ns-teal), #0a7a78);
  color: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(20,184,168,0.45), 0 2px 6px rgba(0,0,0,0.3);
  transition: transform .15s;
  z-index: 50;
}
.ns-fab:hover { transform: scale(1.06); }
.ns-fab svg   { width: 22px; height: 22px; }

/* ── Empty state ─────────────────────────────────────────────────── */
.ns-empty {
  text-align: center;
  padding: 60px;
  color: var(--ns-text-3);
  font-size: 13px;
}
