/* cybersec.css — CEO Panel #21 🛡️ CyberSec
   Designed by: Johnny Black | KAAI v1.0
   Dark threat-level styling with red/amber/green indicators */

/* ── Panel container ─────────────────────────────────────────────────────── */
#panel-cybersec {
  background: var(--bg-secondary, #0d0d0d);
  color: var(--text-primary, #e0e0e0);
}

/* ── Inner wrapper (set by JS — avoids double-ID nesting) ─────────────────── */
.cs-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.cs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1a2a1a;
  padding-bottom: 0.75rem;
}
.cs-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #4cff91;
  letter-spacing: 0.05em;
  margin: 0;
}
.cs-header .cs-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.15rem;
}
.cs-refresh-btn {
  background: #111;
  border: 1px solid #2a2a2a;
  color: #4cff91;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
}
.cs-refresh-btn:hover { background: #1a2a1a; }

/* ── Readiness Tier Badge ────────────────────────────────────────────────── */
.cs-readiness-card {
  background: #111;
  border: 1px solid #1a3a1a;
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.cs-tier-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}
.cs-tier-badge .tier-icon { font-size: 2.5rem; line-height: 1; }
.cs-tier-badge .tier-num  { font-size: 0.65rem; color: #6b7280; margin-top: 0.2rem; }
.cs-readiness-info { flex: 1; }
.cs-readiness-info .tier-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e0e0e0;
}
.cs-readiness-info .tier-score {
  font-size: 2rem;
  font-weight: 700;
  color: #4cff91;
  line-height: 1.1;
}
.cs-readiness-info .tier-desc  { font-size: 0.75rem; color: #9ca3af; margin-top: 0.3rem; }
.cs-readiness-info .tier-rec   { font-size: 0.75rem; color: #f59e0b; margin-top: 0.5rem; font-style: italic; }
.cs-readiness-info .tier-progress {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.cs-tier-pip {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  background: #1f2937;
  transition: background 0.3s;
}
.cs-tier-pip.filled { background: #4cff91; }
.cs-tier-pip.current { background: #f59e0b; }

/* ── Threat level color variants ─────────────────────────────────────────── */
.cs-tier-1 .tier-score { color: #6b7280; }
.cs-tier-2 .tier-score { color: #92400e; }
.cs-tier-3 .tier-score { color: #d97706; }
.cs-tier-4 .tier-score { color: #2563eb; }
.cs-tier-5 .tier-score { color: #10b981; }
.cs-tier-6 .tier-score { color: #4cff91; text-shadow: 0 0 12px #4cff9150; }

/* ── Skill Matrix (14-attack bar chart) ──────────────────────────────────── */
.cs-skill-matrix {
  background: #111;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 1rem;
}
.cs-skill-matrix h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
}
.cs-attack-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}
.cs-attack-name {
  width: 160px;
  flex-shrink: 0;
  color: #d1d5db;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-bar-track {
  flex: 1;
  height: 8px;
  background: #1f2937;
  border-radius: 4px;
  overflow: hidden;
}
.cs-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
  background: #1f5c35;
}
.cs-bar-fill.score-low    { background: #7f1d1d; }
.cs-bar-fill.score-medium { background: #78350f; }
.cs-bar-fill.score-good   { background: #1e3a8a; }
.cs-bar-fill.score-high   { background: #065f46; }
.cs-bar-fill.score-max    { background: #4cff91; box-shadow: 0 0 6px #4cff9150; }
.cs-attack-score {
  width: 36px;
  text-align: right;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}
.cs-attack-tier {
  width: 16px;
  text-align: center;
  font-size: 0.8rem;
}
.cs-no-data { color: #4b5563; font-size: 0.8rem; font-style: italic; padding: 0.5rem 0; }

/* ── MITRE ATT&CK Heatmap ────────────────────────────────────────────────── */
.cs-mitre-section {
  background: #111;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 1rem;
}
.cs-mitre-section h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
}
.cs-mitre-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.cs-ttp-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 0.5rem;
  border-radius: 5px;
  border: 1px solid #1f2937;
  min-width: 80px;
  background: #0d1117;
  cursor: default;
  transition: transform 0.1s;
}
.cs-ttp-chip:hover { transform: scale(1.05); }
.cs-ttp-chip .ttp-id    { font-size: 0.65rem; color: #4b5563; font-family: monospace; }
.cs-ttp-chip .ttp-name  { font-size: 0.6rem; color: #9ca3af; text-align: center; margin-top: 0.2rem; line-height: 1.2; }
.cs-ttp-chip .ttp-cov   { font-size: 0.7rem; font-weight: 700; margin-top: 0.3rem; }
.cs-ttp-chip.cov-0   { border-color: #374151; } .cs-ttp-chip.cov-0   .ttp-cov { color: #4b5563; }
.cs-ttp-chip.cov-low { border-color: #7f1d1d; } .cs-ttp-chip.cov-low .ttp-cov { color: #ef4444; }
.cs-ttp-chip.cov-med { border-color: #78350f; } .cs-ttp-chip.cov-med .ttp-cov { color: #f59e0b; }
.cs-ttp-chip.cov-hi  { border-color: #065f46; } .cs-ttp-chip.cov-hi  .ttp-cov { color: #10b981; }
.cs-ttp-chip.cov-max { border-color: #4cff91; box-shadow: 0 0 6px #4cff9120; } .cs-ttp-chip.cov-max .ttp-cov { color: #4cff91; }
.cs-mitre-summary { font-size: 0.75rem; color: #6b7280; margin-top: 0.75rem; }

/* ── Attack Event Log ────────────────────────────────────────────────────── */
.cs-log-section {
  background: #111;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 1rem;
}
.cs-log-section h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
}
.cs-log-table-wrap { overflow-x: auto; }
.cs-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}
.cs-log-table th {
  background: #0d1117;
  color: #6b7280;
  font-weight: 600;
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #1f2937;
  white-space: nowrap;
}
.cs-log-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #111827;
  color: #d1d5db;
  vertical-align: middle;
}
.cs-log-table tr:hover td { background: #0d1117; }
.cs-pass-badge  { color: #4cff91; font-weight: 600; }
.cs-fail-badge  { color: #ef4444; font-weight: 600; }
.cs-score-cell  { font-variant-numeric: tabular-nums; font-weight: 700; }
.cs-score-cell.s-hi   { color: #4cff91; }
.cs-score-cell.s-med  { color: #f59e0b; }
.cs-score-cell.s-low  { color: #ef4444; }
.cs-stage-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  background: #1f2937;
  color: #9ca3af;
}
.cs-stage-foundation { background: #1e3a5f; color: #93c5fd; }
.cs-stage-drytest    { background: #3b1f2a; color: #f9a8d4; }
.cs-stage-handson    { background: #1a3a1a; color: #86efac; }

/* ── Seed button ─────────────────────────────────────────────────────────── */
.cs-seed-btn {
  background: #0d1a0d;
  border: 1px solid #1a3a1a;
  color: #4cff91;
  padding: 0.5rem 1.2rem;
  border-radius: 5px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.cs-seed-btn:hover { background: #0d2a0d; }
.cs-seed-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.cs-seed-result { font-size: 0.75rem; color: #6b7280; margin-top: 0.5rem; }

/* ── Loading / empty states ─────────────────────────────────────────────── */
.cs-loading { text-align: center; padding: 2rem; color: #4b5563; font-size: 0.85rem; }
.cs-loading::after { content: " ⏳"; }
.cs-error   { background: #1c0707; border: 1px solid #7f1d1d; border-radius: 5px;
              color: #fca5a5; padding: 0.75rem; font-size: 0.8rem; }

/* ── Kali VM Lab Section ────────────────────────────────────────────────── */
.cs-vm-section {
  background: #0d1117;
  border: 1px solid #1a3a2a;
  border-radius: 8px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cs-vm-header {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cs-vm-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #4cff91;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cs-vm-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Status dot */
.cs-vm-dot        { font-size: 0.95rem; line-height: 1; }
.cs-vm-dot-on     { color: #4cff91; text-shadow: 0 0 6px #4cff9180; }
.cs-vm-dot-warn   { color: #f59e0b; text-shadow: 0 0 6px #f59e0b80; }
.cs-vm-dot-off    { color: #4b5563; }

.cs-vm-state-label {
  font-size: 0.72rem;
  color: #9ca3af;
  font-family: monospace;
}

/* Control buttons (Start / Stop / Restore Snapshot) */
.cs-vm-ctrl-btns {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.cs-vm-ctrl-btns button {
  background: #111827;
  border: 1px solid #1f2937;
  color: #9ca3af;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cs-vm-ctrl-btns button:hover:not(:disabled) { background: #1f2937; color: #e0e0e0; }
.cs-vm-ctrl-btns button:disabled             { opacity: 0.35; cursor: not-allowed; }
.cs-vm-start-btn:hover:not(:disabled) { border-color: #4cff91 !important; color: #4cff91 !important; }
.cs-vm-stop-btn:hover:not(:disabled)  { border-color: #ef4444 !important; color: #ef4444 !important; }
.cs-vm-snap-btn:hover:not(:disabled)  { border-color: #f59e0b !important; color: #f59e0b !important; }

/* Launcher row */
.cs-vm-launcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  background: #111;
  border: 1px solid #1a2a1a;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
}
.cs-vm-label {
  font-size: 0.72rem;
  color: #6b7280;
  white-space: nowrap;
}
.cs-vm-exercise-select {
  flex: 1;
  min-width: 220px;
  background: #0d1117;
  border: 1px solid #1f2937;
  color: #d1d5db;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
}

/* 🐉 Launch button */
.btn-vm-run {
  background: linear-gradient(135deg, #0d2a1a, #1a4a2a);
  border: 1px solid #4cff91;
  color: #4cff91;
  padding: 0.45rem 1rem;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-vm-run:hover:not(:disabled) {
  background: linear-gradient(135deg, #143820, #2a6a3a);
  box-shadow: 0 0 10px #4cff9140;
}
.btn-vm-run:disabled { opacity: 0.35; cursor: not-allowed; }

/* Job status line */
.cs-vm-job-status {
  font-size: 0.78rem;
  min-height: 1.2rem;
}
.cs-vm-job-status code {
  background: #1f2937;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.7rem;
}

/* Jobs table wrapper */
.cs-vm-jobs-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cs-vm-jobs-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hard-rule notice */
.cs-vm-hard-rule-notice {
  font-size: 0.68rem;
  color: #4b5563;
  border-top: 1px solid #1f2937;
  padding-top: 0.6rem;
  line-height: 1.4;
}
.cs-vm-hard-rule-notice strong { color: #9ca3af; }
.cs-vm-hard-rule-notice code   { background: #1f2937; padding: 0.05rem 0.3rem; border-radius: 3px; font-family: monospace; }

/* ══════════════════════════════════════════════════════════════════════════
   How It Works Section
   ══════════════════════════════════════════════════════════════════════════ */
.cs-hiw-section {
  background: #0a0f0a;
  border: 1px solid #1a3a1a;
  border-radius: 8px;
  overflow: hidden;
}

.cs-hiw-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  background: #0d1a0d;
  border: none;
  border-bottom: 1px solid #1a3a1a;
  color: #4cff91;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  transition: background 0.15s;
}
.cs-hiw-toggle:hover { background: #112211; }
.cs-hiw-arrow        { font-size: 0.65rem; color: #4cff91; display: inline-block; }
.cs-hiw-toggle-label { flex: 1; }

.cs-hiw-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Hard Rule Banner */
.cs-hiw-rule-banner {
  background: #1c0a0a;
  border: 1px solid #7f1d1d;
  border-left: 3px solid #ef4444;
  border-radius: 5px;
  padding: 0.65rem 0.85rem;
  font-size: 0.75rem;
  color: #fca5a5;
  line-height: 1.5;
}
.cs-hiw-rule-banner strong { color: #f87171; }

/* Generic content block */
.cs-hiw-block {
  background: #111;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.cs-hiw-block-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #1f2937;
  padding-bottom: 0.4rem;
}

/* Architecture flow */
.cs-hiw-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.cs-hiw-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: #0d1117;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  min-width: 90px;
}
.cs-hiw-flow-icon  { font-size: 1.3rem; line-height: 1; }
.cs-hiw-flow-label { font-size: 0.65rem; color: #d1d5db; text-align: center; line-height: 1.3; }
.cs-hiw-flow-label span { color: #4b5563; font-family: monospace; }
.cs-hiw-flow-arrow { color: #4cff91; font-size: 1rem; font-weight: 700; }
.cs-hiw-flow-note  { font-size: 0.7rem; color: #6b7280; line-height: 1.5; }
.cs-hiw-flow-note strong { color: #9ca3af; }
.cs-hiw-flow-note code   { background: #1f2937; padding: 0.1rem 0.3rem; border-radius: 3px; font-family: monospace; }

/* Numbered steps */
.cs-hiw-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cs-hiw-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: #d1d5db;
  line-height: 1.5;
}
.cs-hiw-step-num {
  background: #1a3a1a;
  color: #4cff91;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}
.cs-hiw-steps strong { color: #e0e0e0; }
.cs-hiw-steps code   { background: #1f2937; padding: 0.1rem 0.3rem; border-radius: 3px; font-family: monospace; font-size: 0.68rem; }
.cs-hiw-cmd {
  background: #0d1117;
  border: 1px solid #1f2937;
  border-left: 2px solid #4cff91;
  color: #4cff91;
  font-family: monospace;
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  margin-top: 0.3rem;
}

/* Exercise→tool table */
.cs-hiw-table-wrap { overflow-x: auto; }
.cs-hiw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
}
.cs-hiw-table th {
  background: #0d1117;
  color: #6b7280;
  font-weight: 600;
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #1f2937;
}
.cs-hiw-table td {
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid #111827;
  color: #d1d5db;
}
.cs-hiw-table tr:hover td { background: #0d1117; }
.cs-hiw-table code { background: #1f2937; padding: 0.1rem 0.3rem; border-radius: 3px; font-family: monospace; }

/* Tier cards */
.cs-hiw-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.4rem;
}
.cs-hiw-tier-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.6rem;
  border-radius: 5px;
  border: 1px solid #1f2937;
  font-size: 0.7rem;
}
.cs-hiw-tier-card span:first-child { font-weight: 700; color: #e0e0e0; }
.cs-hiw-tier-card span:last-child  { color: #6b7280; font-size: 0.65rem; }
.cs-hiw-t1 { border-color: #374151; background: #0d1117; }
.cs-hiw-t2 { border-color: #92400e; background: #1c0e05; }
.cs-hiw-t3 { border-color: #d97706; background: #1c1205; }
.cs-hiw-t4 { border-color: #1d4ed8; background: #050b1c; }
.cs-hiw-t5 { border-color: #065f46; background: #050f0a; }
.cs-hiw-t6 { border-color: #4cff91; background: #030f05; box-shadow: 0 0 6px #4cff9120; }
.cs-hiw-t6 span:first-child { color: #4cff91; text-shadow: 0 0 8px #4cff9150; }
.cs-hiw-scoring-note { font-size: 0.7rem; color: #6b7280; line-height: 1.5; }
.cs-hiw-scoring-note strong { color: #9ca3af; }

/* Curriculum level pills */
.cs-hiw-levels { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cs-hiw-level {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.4rem 0.7rem;
  border-radius: 5px;
  font-size: 0.7rem;
  border: 1px solid #1f2937;
  min-width: 120px;
}
.cs-hiw-level strong { font-size: 0.72rem; }
.cs-hiw-level span   { color: #6b7280; font-size: 0.65rem; }
.cs-hiw-level-foundation { background: #051525; border-color: #1e3a5f; }
.cs-hiw-level-foundation strong { color: #93c5fd; }
.cs-hiw-level-dry        { background: #15050e; border-color: #3b1f2a; }
.cs-hiw-level-dry strong { color: #f9a8d4; }
.cs-hiw-level-handson    { background: #050f05; border-color: #1a3a1a; }
.cs-hiw-level-handson strong { color: #86efac; }

/* Safety list */
.cs-hiw-safety {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.cs-hiw-safety li {
  font-size: 0.72rem;
  color: #d1d5db;
  line-height: 1.5;
}
.cs-hiw-safety strong { color: #e0e0e0; }
.cs-hiw-safety code   { background: #1f2937; padding: 0.1rem 0.3rem; border-radius: 3px; font-family: monospace; font-size: 0.67rem; }

/* Key files */
.cs-hiw-files { display: flex; flex-direction: column; gap: 0.3rem; }
.cs-hiw-files div {
  font-size: 0.7rem;
  color: #6b7280;
  line-height: 1.4;
  padding: 0.25rem 0;
  border-bottom: 1px solid #111827;
}
.cs-hiw-files div:last-child { border-bottom: none; }
.cs-hiw-files code { background: #1f2937; padding: 0.1rem 0.3rem; border-radius: 3px; font-family: monospace; color: #4cff91; font-size: 0.68rem; }


/* ══════════════════════════════════════════════════════════════════════════
   Posture Score Widget
   ══════════════════════════════════════════════════════════════════════════ */
.cs-posture-widget {
  border-radius: 8px;
  border: 1px solid #1f2937;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: border-color 0.3s, background 0.3s;
}
.cs-posture-red    { background: #1a0000; border-color: #ef444440; }
.cs-posture-orange { background: #1a0a00; border-color: #f9731640; }
.cs-posture-yellow { background: #1a1500; border-color: #f59e0b40; }
.cs-posture-green  { background: #0a1a0a; border-color: #4cff9140; }
.cs-posture-unknown { background: #111; border-color: #1f2937; }

.cs-posture-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.cs-posture-center {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cs-posture-label {
  font-size: 0.72rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cs-posture-score {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}
.cs-posture-red    .cs-posture-score { color: #ef4444; text-shadow: 0 0 16px #ef444440; }
.cs-posture-orange .cs-posture-score { color: #f97316; text-shadow: 0 0 16px #f9731640; }
.cs-posture-yellow .cs-posture-score { color: #f59e0b; text-shadow: 0 0 16px #f59e0b40; }
.cs-posture-green  .cs-posture-score { color: #4cff91; text-shadow: 0 0 16px #4cff9140; }
.cs-posture-unknown .cs-posture-score { color: #4b5563; }

.cs-posture-denom {
  font-size: 0.85rem;
  color: #4b5563;
  font-weight: 400;
}
.cs-posture-badge {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}
.cs-posture-badge span:first-child {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: #1f2937;
  color: #9ca3af;
}
.cs-posture-badge span:last-child {
  font-size: 0.65rem;
  color: #4b5563;
  font-family: monospace;
}

/* ══════════════════════════════════════════════════════════════════════════
   Scan Status Bar
   ══════════════════════════════════════════════════════════════════════════ */
.cs-scan-status-bar {
  background: #0d1117;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-family: monospace;
  color: #6b7280;
  flex-wrap: wrap;
}
.cs-scan-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4cff91;
  box-shadow: 0 0 5px #4cff9180;
  flex-shrink: 0;
  animation: cs-scan-pulse 2s ease-in-out infinite;
}
@keyframes cs-scan-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.cs-scan-sep {
  color: #1f2937;
  font-weight: 300;
}

/* ══════════════════════════════════════════════════════════════════════════
   Findings Section
   ══════════════════════════════════════════════════════════════════════════ */
.cs-findings-section {
  background: #111;
  border: 1px solid #1f2937;
  border-radius: 8px;
  overflow: hidden;
}
.cs-findings-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: #0d1117;
  border-bottom: 1px solid #1f2937;
}
.cs-findings-header h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  flex: 1;
}
.cs-findings-actions {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
}
.cs-findings-actions button {
  background: #111827;
  border: 1px solid #1f2937;
  color: #9ca3af;
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cs-findings-actions button:hover:not(:disabled) { background: #1f2937; color: #e0e0e0; }
.cs-findings-actions button:disabled { opacity: 0.35; cursor: not-allowed; }
.cs-findings-actions .btn-scan-now:hover:not(:disabled)   { border-color: #4cff91; color: #4cff91; }
.cs-findings-actions .btn-report-mother:hover:not(:disabled) { border-color: #f59e0b; color: #f59e0b; }

.cs-findings-status {
  font-size: 0.7rem;
  color: #6b7280;
  padding: 0.5rem 1rem;
  font-family: monospace;
  background: #0a0f0a;
  border-bottom: 1px solid #1f2937;
  min-height: 1.6rem;
}
.cs-findings-summary {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: #0a0f0a;
  border-bottom: 1px solid #1f2937;
  font-size: 0.72rem;
  flex-wrap: wrap;
}
.cs-findings-summary span { color: #6b7280; }

.cs-sev-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
  vertical-align: middle;
  font-family: monospace;
}
.cs-finding-detail {
  font-size: 0.7rem;
  font-family: monospace;
  color: #9ca3af;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════════════════
   Security Briefs History
   ══════════════════════════════════════════════════════════════════════════ */
.cs-briefs-section {
  background: #0a0f0a;
  border: 1px solid #1a3a1a;
  border-radius: 8px;
  overflow: hidden;
}
.cs-briefs-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  background: #0d1a0d;
  border: none;
  border-bottom: 1px solid #1a3a1a;
  color: #4cff91;
  padding: 0.72rem 1rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  transition: background 0.15s;
}
.cs-briefs-toggle:hover { background: #112211; }
.cs-briefs-arrow {
  font-size: 0.65rem;
  color: #4cff91;
  display: inline-block;
  transition: transform 0.2s;
}
.cs-briefs-arrow.open { transform: rotate(90deg); }

.cs-briefs-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
}
.cs-brief-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #1a2a1a;
  transition: background 0.1s;
}
.cs-brief-item:last-child { border-bottom: none; }
.cs-brief-item:hover { background: #0d1a0d; }

.cs-brief-ts {
  font-size: 0.65rem;
  font-family: monospace;
  color: #4b5563;
}
.cs-brief-trigger {
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 600;
}
.cs-brief-summary {
  font-size: 0.72rem;
  color: #d1d5db;
  line-height: 1.45;
}


/* ════════════════════════════════════════════════════════════════════════ */
/* PHASE 7 — Sub-tabs + Attackers / Honeypot State / Timeline               */
/* ════════════════════════════════════════════════════════════════════════ */

.cs-subtabs {
  display: flex;
  gap: 4px;
  margin: 12px 0 16px;
  border-bottom: 1px solid #2d3748;
  padding-bottom: 0;
}
.cs-subtab {
  background: transparent;
  color: #9ca3af;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.cs-subtab:hover { color: #e5e7eb; }
.cs-subtab.active {
  color: #60a5fa;
  border-bottom-color: #60a5fa;
  font-weight: 600;
}
.cs-subtab-content { display: none; }
.cs-subtab-content.active { display: block; }

/* ── Severity badges (used by Attackers + Timeline feed) ──────────────── */
.cs-sev-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.cs-sev-info     { background: #374151; color: #d1d5db; }
.cs-sev-low      { background: #4b5563; color: #f3f4f6; }
.cs-sev-medium   { background: #ca8a04; color: #fef3c7; }
.cs-sev-high     { background: #ea580c; color: #fed7aa; }
.cs-sev-critical { background: #dc2626; color: #fee2e2; }

/* ── Attackers tab ────────────────────────────────────────────────────── */
.cs-attackers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
}
@media (max-width: 980px) {
  .cs-attackers-grid { grid-template-columns: 1fr; }
}
.cs-attacker-empty,
.cs-attacker-detail-empty {
  padding: 22px;
  background: #1f2937;
  border: 1px dashed #374151;
  border-radius: 6px;
  color: #9ca3af;
  font-size: 0.85rem;
}
.cs-attacker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.cs-attacker-table th,
.cs-attacker-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #2d3748;
}
.cs-attacker-table th {
  background: #1f2937;
  color: #9ca3af;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cs-attacker-row { cursor: pointer; transition: background 0.1s; }
.cs-attacker-row:hover { background: #1f2937; }
.cs-attacker-title-cell {
  color: #9ca3af;
  font-size: 0.78rem;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-attacker-hint { color: #6b7280; font-size: 0.72rem; margin-top: 8px; }
.cs-attacker-detail {
  padding: 14px;
  background: #111827;
  border: 1px solid #2d3748;
  border-radius: 6px;
}
.cs-attacker-detail-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.cs-attacker-detail-head h4 { margin: 0; color: #f3f4f6; }
.cs-attacker-score {
  font-size: 0.75rem; color: #fca5a5;
  background: #7f1d1d; padding: 2px 6px; border-radius: 3px;
}
.cs-attacker-meta {
  display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px;
  font-size: 0.8rem; margin: 0 0 12px;
}
.cs-attacker-meta dt { color: #9ca3af; }
.cs-attacker-meta dd { margin: 0; color: #e5e7eb; }
.cs-attacker-meta code { background: #0f172a; padding: 1px 4px; border-radius: 2px; font-size: 0.75rem; }
.cs-hassh-peers { color: #fbbf24; margin-left: 6px; font-size: 0.72rem; }
.cs-attacker-list { margin: 4px 0; padding-left: 18px; font-size: 0.78rem; color: #d1d5db; }
.cs-attacker-list li { margin: 2px 0; }
.cs-attacker-actions {
  margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px solid #1f2937;
}
.cs-action-btn {
  background: #1f2937; color: #e5e7eb; border: 1px solid #374151;
  padding: 5px 10px; border-radius: 4px; font-size: 0.75rem;
  cursor: pointer;
}
.cs-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cs-action-btn:not(:disabled):hover { background: #374151; }

/* ── Honeypot State tab ───────────────────────────────────────────────── */
.cs-hp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.cs-hp-card {
  padding: 16px 10px; text-align: center;
  background: #1f2937; border: 1px solid #374151; border-radius: 6px;
}
.cs-hp-card-icon { font-size: 1.8rem; }
.cs-hp-card-name { font-size: 0.8rem; color: #9ca3af; margin: 4px 0 6px; }
.cs-hp-card-stat { font-size: 1.4rem; color: #60a5fa; font-weight: 600; }
.cs-canary-table {
  width: 100%; margin-top: 6px;
  border-collapse: collapse; font-size: 0.82rem;
}
.cs-canary-table th, .cs-canary-table td {
  padding: 5px 8px; border-bottom: 1px solid #2d3748; text-align: left;
}
.cs-canary-table th { color: #9ca3af; font-weight: 500; font-size: 0.72rem; text-transform: uppercase; }
.cs-canary-tripped { color: #fca5a5; font-weight: 600; }
.cs-canary-ok      { color: #6ee7b7; }
.cs-canary-empty   { color: #6b7280; font-style: italic; text-align: center; padding: 14px !important; }
.cs-threat-pill {
  font-size: 0.7rem; padding: 2px 8px; border-radius: 9999px;
  margin-left: 8px; vertical-align: middle; text-transform: uppercase;
}
.cs-threat-none, .cs-threat-unknown    { background: #374151; color: #d1d5db; }
.cs-threat-low                         { background: #4b5563; color: #f3f4f6; }
.cs-threat-medium                      { background: #ca8a04; color: #fef3c7; }
.cs-threat-high                        { background: #ea580c; color: #fed7aa; }
.cs-threat-critical, .cs-threat-unreachable { background: #dc2626; color: #fee2e2; }

/* ── Timeline tab ─────────────────────────────────────────────────────── */
.cs-tl-bar {
  display: flex; align-items: flex-end; gap: 2px;
  height: 70px; padding: 4px;
  background: #0f172a; border: 1px solid #1f2937; border-radius: 4px;
}
.cs-tl-bucket {
  flex: 1; min-width: 6px; border-radius: 2px 2px 0 0;
  position: relative; cursor: help;
}
.cs-tl-bucket-count {
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  font-size: 0.6rem; color: #6b7280;
}
.cs-tl-none { background: #374151; }
.cs-tl-low  { background: #6b7280; }
.cs-tl-med  { background: #ca8a04; }
.cs-tl-high { background: #ea580c; }
.cs-tl-crit { background: #dc2626; }
.cs-tl-legend { display: flex; gap: 12px; margin: 18px 0 10px; font-size: 0.75rem; color: #9ca3af; }
.cs-tl-legend-item { display: flex; align-items: center; gap: 4px; }
.cs-tl-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.cs-tl-feed {
  max-height: 360px; overflow-y: auto;
  background: #0f172a; border: 1px solid #1f2937; border-radius: 4px;
}
.cs-tl-event-row {
  display: grid;
  grid-template-columns: 70px 80px 110px 130px 1fr;
  gap: 8px; padding: 4px 8px;
  border-bottom: 1px solid #1f2937; font-size: 0.78rem;
}
.cs-tl-event-row:hover { background: #111827; }
.cs-tl-event-ts  { color: #9ca3af; font-family: monospace; }
.cs-tl-event-cat { color: #93c5fd; font-size: 0.72rem; }
.cs-tl-event-ip  { color: #d1d5db; font-family: monospace; font-size: 0.75rem; }
.cs-tl-event-title { color: #e5e7eb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-timeline-empty { padding: 22px; text-align: center; color: #6b7280; font-style: italic; }

/* ════════════════════════════════════════════════════════════════════════ */
/* PHASE 5 — Red Team viz + filter toggle (Kali drill plan)                 */
/* ════════════════════════════════════════════════════════════════════════ */

/* Sub-tabs row — sub-tabs on the left, filter toggle pushed right */
.cs-subtabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
  border-bottom: 1px solid #2d3748;
}
.cs-subtabs-row .cs-subtabs {
  margin: 0;
  border-bottom: none;
}
.cs-filter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  background: #1f2937;
  border: 1px solid #2d3748;
  border-radius: 4px;
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 6px;
}
.cs-filter-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: #d1d5db;
}
.cs-filter-toggle input[type="radio"] {
  margin: 0;
  accent-color: #60a5fa;
}
.cs-filter-label {
  color: #6b7280 !important;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: default !important;
}

/* Red Team tab section */
.cs-rt { padding: 0; }
.cs-rt-block {
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.cs-rt-block h4 {
  margin: 0 0 10px 0;
  font-size: 0.85rem;
  color: #93c5fd;
  font-weight: 600;
}
.cs-rt-sublabel {
  font-size: 0.7rem;
  color: #6b7280;
  font-weight: 400;
  margin-left: 6px;
}

/* Coverage trend sparkline (chronological dots) */
.cs-rt-trend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  background: #111827;
  border-radius: 3px;
  min-height: 28px;
}
.cs-rt-trenddot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  cursor: help;
}

/* Per-exercise pass/fail strip — last 5 boxes each */
.cs-rt-exgrid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cs-rt-exrow {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 5px 8px;
  background: #111827;
  border-radius: 3px;
}
.cs-rt-exname {
  font-family: monospace;
  font-size: 0.78rem;
  color: #e5e7eb;
}
.cs-rt-boxes {
  display: inline-flex;
  gap: 3px;
}
.cs-rt-box {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  cursor: help;
}
.cs-rt-count {
  font-size: 0.7rem;
  color: #6b7280;
  font-family: monospace;
}

/* Pass / fail / partial color scheme (shared by dots + boxes + swatches) */
.cs-rt-pass    { background: #16a34a; }
.cs-rt-fail    { background: #dc2626; }
.cs-rt-partial { background: #ca8a04; }
.cs-rt-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* Coverage % pill in drills table */
.cs-rt-pct {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #f9fafb;
  font-family: monospace;
}
.cs-rt-pct.cs-rt-pass    { background: #16a34a; }
.cs-rt-pct.cs-rt-fail    { background: #dc2626; }
.cs-rt-pct.cs-rt-partial { background: #ca8a04; }

/* Drills + skips tables */
.cs-rt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.cs-rt-table th {
  text-align: left;
  padding: 6px 8px;
  background: #1f2937;
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-bottom: 1px solid #374151;
}
.cs-rt-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #1f2937;
  color: #d1d5db;
  vertical-align: top;
}
.cs-rt-table td code {
  color: #93c5fd;
  font-size: 0.74rem;
}
.cs-rt-drillrow { background: rgba(96, 165, 250, 0.04); }
.cs-rt-drillrow:hover { background: rgba(96, 165, 250, 0.10); }
.cs-rt-dim {
  color: #6b7280;
  font-style: italic;
  text-align: center;
}
.cs-rt-skips td:nth-child(2) code { color: #fbbf24; }

/* "DRILL" badge (reserved for future mixed real+drill views) */
.cs-drill-badge {
  display: inline-block;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 2px;
  background: #1e3a8a;
  color: #bfdbfe;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Filter-suppressed placeholder */
.cs-filter-suppressed {
  padding: 22px;
  background: #1f2937;
  border: 1px dashed #374151;
  border-radius: 4px;
  text-align: center;
  color: #9ca3af;
  font-style: italic;
}
.cs-filter-suppressed code { color: #d1d5db; font-style: normal; }

/* ════════════════════════════════════════════════════════════════════════ */
/* BLACKBOX-REACH — Reachability card (Ticket 4 of 4)                       */
/* BUG-2026-05-16-bb-reach-ui-status                                        */
/* ════════════════════════════════════════════════════════════════════════ */

.cs-reach-block {
  margin: 20px 0;
  padding: 14px 16px;
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 6px;
}
.cs-reach-block h4 {
  margin: 0 0 14px 0;
  font-size: 0.95rem;
  color: #e5e7eb;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.cs-reach-sublabel {
  font-size: 0.72rem;
  font-weight: 400;
  color: #6b7280;
  letter-spacing: 0.3px;
}

/* Three-card grid: side-by-side on wide screens, stacked on narrow */
.cs-reach-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1100px) {
  .cs-reach-cards { grid-template-columns: 1fr; }
}

.cs-reach-card {
  display: flex;
  flex-direction: column;
  background: #111827;
  border: 1px solid #1f2937;
  border-left-width: 4px;
  border-radius: 5px;
  padding: 12px 14px;
  min-height: 220px;
}

/* Status-driven color band on the left edge + header chip */
.cs-reach-green { border-left-color: #16a34a; }
.cs-reach-amber { border-left-color: #ca8a04; }
.cs-reach-red   { border-left-color: #dc2626; }
.cs-reach-grey  { border-left-color: #4b5563; }

.cs-reach-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.cs-reach-card-icon { font-size: 1.2rem; }
.cs-reach-card-title {
  font-weight: 600;
  color: #e5e7eb;
}
.cs-reach-card-status {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}
.cs-reach-green .cs-reach-card-status { background: #064e3b; color: #6ee7b7; }
.cs-reach-amber .cs-reach-card-status { background: #78350f; color: #fcd34d; }
.cs-reach-red   .cs-reach-card-status { background: #7f1d1d; color: #fca5a5; }
.cs-reach-grey  .cs-reach-card-status { background: #374151; color: #d1d5db; }

.cs-reach-card-body { flex: 1; }
.cs-reach-card-detail {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #9ca3af;
  margin: 0 0 8px 0;
}
.cs-reach-card-ticket {
  font-size: 0.7rem;
  color: #6b7280;
  margin: 0 0 10px 0;
}
.cs-reach-card-ticket code {
  color: #93c5fd;
  background: transparent;
  padding: 0;
}

/* Stats row (key/value pairs in a row) */
.cs-reach-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 0 0;
  padding-top: 10px;
  border-top: 1px solid #1f2937;
}
.cs-reach-card-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cs-reach-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #6b7280;
}
.cs-reach-stat-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e7eb;
  font-family: monospace;
}

/* Onion-address row with copy button */
.cs-reach-onion-addr {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 3px;
  margin: 6px 0;
}
.cs-reach-onion-hostname {
  flex: 1;
  font-family: monospace;
  font-size: 0.72rem;
  color: #c084fc;
  word-break: break-all;
  line-height: 1.3;
}
.cs-reach-onion-copy {
  flex-shrink: 0;
  background: #1f2937;
  border: 1px solid #374151;
  color: #d1d5db;
  border-radius: 3px;
  padding: 3px 7px;
  cursor: pointer;
  font-size: 0.85rem;
}
.cs-reach-onion-copy:hover { background: #374151; }

/* Card actions row */
.cs-reach-card-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #1f2937;
}
.cs-reach-action-btn {
  background: #1f2937;
  border: 1px solid #374151;
  color: #d1d5db;
  border-radius: 3px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.75rem;
  width: 100%;
}
.cs-reach-action-btn:hover:not(:disabled) {
  background: #374151;
  color: #f3f4f6;
}
.cs-reach-action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cs-reach-help {
  display: block;
  font-size: 0.7rem;
  color: #6b7280;
  font-family: monospace;
  text-align: center;
}

/* Wall-display mode — bump card prominence, bigger fonts */
body.fullscreen .cs-reach-card,
body[data-fullscreen="1"] .cs-reach-card {
  min-height: 260px;
}
body.fullscreen .cs-reach-card-title,
body[data-fullscreen="1"] .cs-reach-card-title {
  font-size: 1.15rem;
}
body.fullscreen .cs-reach-stat-value,
body[data-fullscreen="1"] .cs-reach-stat-value {
  font-size: 1.05rem;
}
