:root {
  --bg: #080a0f;
  --panel: #10141f;
  --panel-2: #161c2b;
  --border: #252e42;
  --border-hi: #3a4a6b;
  --text: #e8eef8;
  --muted: #8b99b5;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.14);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.16);
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.14);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.09), transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(239, 68, 68, 0.08), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(34, 211, 238, 0.07), transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.crt-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
}

code, pre {
  font-family: var(--mono);
}

.hidden {
  display: none !important;
}

.bunker-shell {
  position: relative;
  z-index: 2;
  max-width: 1580px;
  margin: 0 auto;
  padding: 16px 20px 36px;
}

/* Topbar */
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(16, 20, 31, 0.96), rgba(22, 28, 43, 0.96));
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.brand-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 4px;
}

.brand-title {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.brand-sub {
  margin: 5px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 13px;
}

.telemetry-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 9px;
}

.stat-pill {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  display: flex;
  flex-direction: column;
}

.stat-pill.stat-ok {
  border-color: rgba(16, 185, 129, 0.5);
  background: var(--green-soft);
}

.stat-pill.stat-warn {
  border-color: rgba(245, 158, 11, 0.55);
  background: var(--amber-soft);
}

.stat-pill.stat-danger {
  border-color: rgba(239, 68, 68, 0.6);
  background: var(--red-soft);
}

.pill-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.pill-value {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

/* Connector Strip */
.connector-bar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 12px;
}

.connector-bar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.section-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.endpoint-chip {
  background: #090c14;
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
}

.connector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.conn-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.conn-card.live {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: inset 0 0 14px rgba(16, 185, 129, 0.07);
}

.conn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.conn-name {
  font-weight: 700;
  font-size: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.dot-live {
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
  animation: pulseGlow 2.2s ease-in-out infinite;
}

.dot-off {
  background: #475569;
}

.conn-status {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.conn-card.live .conn-status {
  color: var(--green);
  font-weight: 700;
}

.conn-role {
  font-size: 11px;
  color: var(--muted);
}

.conn-setup-link {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--cyan);
  text-decoration: none;
  margin-top: 2px;
}

.conn-setup-link:hover {
  text-decoration: underline;
}

/* Wipe Proof Banner */
.wipe-proof-banner {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.14), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(34, 211, 238, 0.65);
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 12px;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.15);
}

.wipe-proof-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wipe-scorecard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 6px;
}

.wipe-stat-box {
  background: rgba(8, 10, 15, 0.72);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}

.wipe-stat-box.survived {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.1);
}

.wipe-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.wipe-stat-val {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  margin-top: 2px;
}

.wipe-proof-banner p {
  margin: 4px 0 0;
  font-size: 12.5px;
}

/* Main Grid */
.bunker-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

@media (max-width: 1180px) {
  .bunker-grid {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel.alarm-shake {
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.22);
  animation: bunkerShake 0.45s ease-in-out;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 9px;
}

.panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.panel-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* Reactive Uncle Stage + Paranoia Geiger */
.uncle-stage {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 156px;
  gap: 12px;
  align-items: center;
  background: #0a0d15;
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (max-width: 780px) {
  .uncle-stage {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.uncle-stage.state-panic {
  border-color: rgba(239, 68, 68, 0.85);
  background: radial-gradient(circle at 18% 50%, rgba(239, 68, 68, 0.16), #0a0d15 62%);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.2);
}

.uncle-stage.state-clean {
  border-color: rgba(16, 185, 129, 0.65);
  background: radial-gradient(circle at 18% 50%, rgba(16, 185, 129, 0.12), #0a0d15 62%);
}

.uncle-avatar-wrap {
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.uncle-stage-mid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.stage-quip {
  font-size: 12.5px;
  color: var(--text);
  font-style: italic;
}

.geiger-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0d111c;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
}

.geiger-svg-host {
  width: 138px;
  height: 82px;
}

.geiger-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--mono);
  margin-top: -2px;
}

.geiger-caption span {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.geiger-caption strong {
  font-size: 13px;
  color: var(--amber);
}

.uncle-stage.state-panic .geiger-caption strong {
  color: #fca5a5;
}

.uncle-stage.state-clean .geiger-caption strong {
  color: #6ee7b7;
}

.siren-pulse {
  animation: sirenBlink 0.7s ease-in-out infinite;
}

/* Live Detonation Terminal */
.live-console {
  background: #06090e;
  border: 1px solid rgba(245, 158, 11, 0.55);
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.14);
}

.live-console-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(245, 158, 11, 0.12);
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: sirenBlink 0.7s infinite;
}

.live-console-log {
  margin: 0;
  padding: 10px 12px;
  font-size: 11.5px;
  color: #86efac;
  min-height: 118px;
  max-height: 180px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* Tabs */
.mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #0b0e16;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.tab-btn {
  background: transparent;
  color: var(--muted);
  border: none;
  border-radius: 6px;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--panel-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-hi);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.preset-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

.preset-chip {
  background: var(--panel-2);
  border: 1px solid var(--border-hi);
  color: var(--cyan);
  border-radius: 999px;
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  cursor: pointer;
}

.preset-chip:hover {
  background: var(--cyan-soft);
}

/* Specimens */
.specimen-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.specimen-card {
  text-align: left;
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.specimen-card:hover {
  border-color: var(--border-hi);
}

.specimen-card.selected {
  border-color: var(--amber);
  background: rgba(245, 158, 11, 0.1);
}

.specimen-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.specimen-title {
  font-weight: 700;
  font-size: 12px;
}

.specimen-desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.32;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Inputs & Buttons */
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field-help {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}

.text-input,
.text-area {
  width: 100%;
  background: #0b0e16;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
}

.text-input:focus,
.text-area:focus {
  outline: none;
  border-color: var(--amber);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

.btn-primary,
.btn-danger,
.btn-ghost {
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--mono);
  transition: opacity 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #090b10;
  border: none;
  padding: 12px 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  width: 100%;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover {
  opacity: 0.93;
}

.btn-primary:disabled,
.btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  border: none;
  padding: 10px 12px;
  font-size: 12px;
  width: 100%;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hi);
  padding: 7px 10px;
  font-size: 11px;
}

.btn-ghost:hover {
  background: var(--panel-2);
}

.btn-sm {
  padding: 4px 8px;
  font-size: 11px;
}

.inline-error {
  background: var(--red-soft);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fecaca;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
}

/* Badges & Chips */
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.badge-danger {
  background: var(--red-soft);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.55);
}

.badge-warn {
  background: var(--amber-soft);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.55);
}

.badge-ok {
  background: var(--green-soft);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.55);
}

.badge-cyan {
  background: var(--cyan-soft);
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.55);
}

.chip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* Center Forensic Readout */
.empty-state {
  border: 1px dashed var(--border-hi);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-title {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 6px;
}

.report-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.verdict-card {
  background: var(--panel-2);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  padding: 13px;
}

.verdict-card.verdict-danger {
  border-color: rgba(239, 68, 68, 0.7);
}

.verdict-card.verdict-ok {
  border-color: rgba(16, 185, 129, 0.65);
}

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

.verdict-provider {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.verdict-headline {
  margin: 8px 0;
  font-size: 15.5px;
}

.uncle-quote {
  margin: 0 0 10px;
  padding: 10px 12px;
  background: #0a0d15;
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  font-size: 13px;
}

.sub-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.fixes-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
}

.fixes-list li {
  margin-bottom: 4px;
}

.archive-badges {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sub-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

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

.sub-card-head h3 {
  margin: 0;
  font-size: 13px;
}

.jev-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.mini-metric {
  background: #0a0d15;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
}

.mini-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.mini-metric strong {
  font-family: var(--mono);
  font-size: 12.5px;
  margin-top: 2px;
}

.gauges {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gauge-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gauge-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
}

.gauge-track {
  height: 8px;
  background: #0a0d15;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gauge-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gauge-high {
  background: linear-gradient(90deg, #f97316, #ef4444);
}

.gauge-mid {
  background: var(--amber);
}

.gauge-low {
  background: var(--green);
}

.split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 720px) {
  .split-cards {
    grid-template-columns: 1fr;
  }
}

.audit-rows,
.diff-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11.5px;
}

.audit-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px;
  background: #0a0d15;
  border-radius: 5px;
}

.diff-created {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.11);
  padding: 4px 7px;
  border-radius: 5px;
}

.diff-modified {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.11);
  padding: 4px 7px;
  border-radius: 5px;
}

.diff-clean {
  color: #6ee7b7;
  padding: 4px 7px;
}

.code-box {
  margin: 0;
  background: #07090e;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px;
  font-size: 11.5px;
  overflow-x: auto;
  max-height: 180px;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-box-sm {
  max-height: 120px;
  margin-top: 4px;
  color: #fcd34d;
}

.syscall-box {
  margin-top: 8px;
}

.timeline-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  background: #0a0d15;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 12px;
}

.timeline-detail {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}

/* Right Column + Red-String Corkboard */
.wipe-card {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.42);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wipe-desc {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.sandbox-preview {
  background: #07090e;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  font-family: var(--mono);
  font-size: 11px;
  max-height: 100px;
  overflow-y: auto;
}

.wipe-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.boot-stamp {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}

.corkboard-card {
  border-color: rgba(239, 68, 68, 0.35);
}

.corkboard-stage {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #4c2d1d;
  background:
    radial-gradient(circle at 20% 20%, rgba(180, 110, 60, 0.22), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(120, 70, 35, 0.24), transparent 55%),
    #241811;
  margin-bottom: 8px;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.65);
}

.corkboard-svg {
  width: 100%;
  height: auto;
  display: block;
}

.memory-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 195px;
  overflow-y: auto;
}

.memory-item {
  background: #0a0d15;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 11.5px;
}

.memory-top {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  margin-bottom: 2px;
}

.memory-title {
  font-weight: 700;
  font-size: 11.5px;
}

.memory-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.box-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.box-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
}

.box-file-btn {
  text-align: left;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11.5px;
}

.box-file-btn.selected {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 11.5px;
  margin: 0 0 6px;
}

/* Collapse Modal Overlay */
.collapse-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.collapse-modal {
  background: var(--panel);
  border: 1px solid var(--cyan);
  border-radius: 14px;
  padding: 28px 34px;
  max-width: 460px;
  text-align: center;
  box-shadow: 0 0 46px rgba(34, 211, 238, 0.25);
}

.collapse-modal h2 {
  margin: 12px 0 6px;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--cyan);
}

.collapse-timer {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--amber);
  margin-top: 10px;
}

.collapse-sub {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes sirenBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

@keyframes bunkerShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
