:root {
  --bg-deep: #04070d;
  --bg-panel: #09101d;
  --bg-card: #0e172a;
  --bg-input: #050912;
  --border-subtle: rgba(56, 189, 248, 0.2);
  --border-bright: rgba(16, 185, 129, 0.45);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --cyan: #38bdf8;
  --emerald: #10b981;
  --green: #4ade80;
  --amber: #f59e0b;
  --purple: #c084fc;
  --rose: #f43f5e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100dvh;
  background: radial-gradient(circle at 15% 15%, #0a1428 0%, var(--bg-deep) 70%);
  color: var(--text-primary);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

#soc-workspace {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  padding: 10px 12px;
  gap: 10px;
}

/* TOP TELEMETRY HEADER */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.65; }
}

.brand-block h1 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #f8fafc;
}

.sub-meta {
  font-size: 0.72rem;
  color: var(--cyan);
}

.metrics-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-pill {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.m-label {
  font-size: 0.6rem;
  color: var(--text-secondary);
  letter-spacing: 0.6px;
}

.m-val {
  font-size: 0.82rem;
  font-weight: 700;
  font-family: "JetBrains Mono", Consolas, monospace;
}

.cyan { color: var(--cyan); }
.green { color: var(--green); }
.amber { color: var(--amber); }
.purple { color: var(--purple); }

/* MAIN 3-COLUMN WORKBENCH */
.workbench-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 340px 1.15fr 1.15fr;
  gap: 10px;
  min-height: 0;
}

@media (max-width: 1100px) {
  html, body, #soc-workspace {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }
  .workbench-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .panel {
    min-height: 460px;
  }
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--cyan);
  flex-shrink: 0;
}

.sub-header {
  border-top: 1px solid rgba(56, 189, 248, 0.16);
}

.badge-stage {
  background: rgba(16, 185, 129, 0.16);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 0.68rem;
}

/* LEFT COLUMN: HOLOGRAPHIC CYBER ENTITY CORE */
.holo-viewport {
  position: relative;
  width: 100%;
  height: 235px;
  background: radial-gradient(circle at center, #081529 0%, #04070e 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

#cyber-core-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.holo-overlay-top {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.scan-status {
  font-size: 0.68rem;
  font-family: Consolas, monospace;
  color: var(--green);
  background: rgba(4, 7, 13, 0.78);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.holo-overlay-bottom {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  background: rgba(4, 7, 13, 0.82);
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.evo-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  color: #cbd5e1;
  margin-bottom: 3px;
}

.evo-bar-track {
  width: 100%;
  height: 6px;
  background: #060b14;
  border-radius: 4px;
  overflow: hidden;
}

.evo-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--purple));
  transition: width 0.35s ease;
}

/* COGNITIVE STREAM */
.cognitive-stream {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.69rem;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #050912;
}

.cog-line {
  color: #cbd5e1;
  border-left: 2px solid var(--cyan);
  padding-left: 7px;
}

.cog-line .cog-time {
  color: var(--text-secondary);
  font-size: 0.63rem;
}

.cog-line.synthesis {
  border-left-color: var(--purple);
  color: #e9d5ff;
}

.domain-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 7px 5px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.ai-label {
  color: #f472b6;
  font-weight: 800;
}

#d-ai {
  color: #ec4899;
}

.tag-ai {
  background: rgba(236, 72, 153, 0.22);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.5);
}

.darkweb-label {
  color: var(--rose);
  font-weight: 700;
}

#d-darkweb {
  color: var(--rose);
}

.d-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.6rem;
  color: var(--text-secondary);
}

.d-row b {
  font-size: 0.78rem;
  color: var(--cyan);
  font-family: Consolas, monospace;
}

/* CENTER COLUMN: LIVE SCRAPER & MEMORY FEED */
.search-memory-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(5, 9, 18, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.search-memory-bar input {
  flex: 1;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.74rem;
}

.filter-count {
  font-size: 0.68rem;
  color: var(--green);
  white-space: nowrap;
  font-family: Consolas, monospace;
}

.memory-feed {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intel-card {
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.73rem;
  line-height: 1.38;
  transition: border-color 0.2s;
}

.intel-card:hover {
  border-color: var(--green);
}

.intel-card.sev-critical { border-left-color: var(--rose); }
.intel-card.sev-high { border-left-color: var(--amber); }

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

.intel-badges {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: Consolas, monospace;
}

.tag-lang { background: rgba(192, 132, 252, 0.18); color: var(--purple); }
.tag-dom { background: rgba(56, 189, 248, 0.18); color: var(--cyan); }
.tag-cve { background: rgba(244, 63, 94, 0.2); color: #fda4af; }
.tag-mitre { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }

.intel-title {
  font-weight: 700;
  color: #f8fafc;
  font-size: 0.8rem;
}

.intel-summary {
  color: #cbd5e1;
}

.intel-original {
  font-size: 0.65rem;
  color: var(--text-secondary);
  border-left: 2px solid rgba(192, 132, 252, 0.45);
  padding-left: 6px;
  margin-top: 2px;
  font-style: italic;
}

.tag-translated {
  background: rgba(16, 185, 129, 0.18);
  color: var(--green);
}

.intel-timestamps {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-pub {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.intel-analysis {
  background: rgba(4, 7, 13, 0.65);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 0.69rem;
  color: #a7f3d0;
  font-family: Consolas, monospace;
}

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

.intel-btn-group {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}

.intel-source {
  font-size: 0.63rem;
  color: var(--text-secondary);
}

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

.btn-client-cta {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(16, 185, 129, 0.25));
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.6);
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-client-cta:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(16, 185, 129, 0.4));
  border-color: #fbbf24;
  transform: translateY(-1px);
}

.btn-link-card {
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-link-card:hover {
  background: rgba(56, 189, 248, 0.32);
  border-color: #7dd3fc;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-client-card {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 0.67rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-client-card:hover {
  background: rgba(245, 158, 11, 0.3);
  border-color: #fbbf24;
}

.chip-highlight {
  background: rgba(245, 158, 11, 0.16) !important;
  color: #fcd34d !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
}

.chip-highlight:hover {
  background: rgba(245, 158, 11, 0.28) !important;
}

.msg-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.btn-copy-msg {
  background: rgba(56, 189, 248, 0.14);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 0.61rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-copy-msg:hover {
  background: rgba(56, 189, 248, 0.28);
}

/* RIGHT COLUMN: MULTI-TURN CHAT WORKBENCH */
.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.chip {
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.67rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--cyan);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 94%;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.45;
}

.msg.user {
  align-self: flex-end;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.msg.assistant {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.msg-meta {
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--green);
  font-family: Consolas, monospace;
}

.msg.user .msg-meta {
  color: var(--cyan);
  text-align: right;
}

.msg-body {
  white-space: pre-wrap;
  color: #f1f5f9;
  user-select: text;
}

.chat-input-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(5, 9, 18, 0.9);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  flex-shrink: 0;
}

#chat-input {
  flex: 1;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  padding: 6px 9px;
  font-family: inherit;
  font-size: 0.75rem;
  resize: none;
}

/* BUTTONS & SELECTS */
select {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 0.7rem;
}

.btn-outline {
  background: rgba(56, 189, 248, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-mini {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 0.67rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-send {
  background: linear-gradient(135deg, #0284c7, #10b981);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

/* MODAL */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 5, 11, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  width: 92%;
  max-width: 480px;
  background: var(--bg-panel);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 0.95rem;
  color: var(--green);
}

.modal-desc {
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.field-label {
  font-size: 0.72rem;
  color: var(--cyan);
  font-weight: 600;
}

.modal-card input, .modal-card select {
  padding: 7px 10px;
  font-size: 0.78rem;
  width: 100%;
  background: var(--bg-input);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.modal-actions button {
  padding: 8px 12px;
  flex: 1;
}

.danger-zone-box {
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px dashed rgba(239, 68, 68, 0.45);
  border-radius: 8px;
}

.danger-zone-title {
  color: #f87171;
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.danger-zone-desc {
  color: #cbd5e1;
  font-size: 0.72rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.btn-danger-reset {
  width: 100%;
  padding: 9px 14px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.85), rgba(153, 27, 27, 0.95));
  color: #fff;
  border: 1px solid rgba(248, 113, 113, 0.55);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.3);
}

.btn-danger-reset:hover {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border-color: #f87171;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.55);
  transform: translateY(-1px);
}

/* ==========================================================================
   OPERATOR AUTHENTICATION GATE (LOGIN SCREEN)
   ========================================================================== */
.workspace-locked {
  filter: blur(14px) brightness(0.35);
  pointer-events: none;
  user-select: none;
  transition: filter 0.35s ease;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, rgba(9, 16, 29, 0.88) 0%, rgba(2, 5, 11, 0.97) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.auth-gate.hidden {
  display: none;
}

.auth-card {
  width: 100%;
  max-width: 410px;
  background: rgba(9, 16, 29, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 45px rgba(16, 185, 129, 0.18), inset 0 0 20px rgba(56, 189, 248, 0.06);
  border-radius: 14px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-badge {
  align-self: flex-start;
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.45);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.62rem;
  font-weight: 800;
  font-family: Consolas, monospace;
  letter-spacing: 0.8px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.auth-brand h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f8fafc;
}

.auth-sub {
  font-size: 0.74rem;
  color: var(--cyan);
  margin-bottom: 4px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.82rem;
  background: var(--bg-input);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 7px;
  font-family: Consolas, monospace;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.25);
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.71rem;
  color: var(--text-secondary);
  cursor: pointer;
  margin-top: 2px;
}

.auth-error {
  background: rgba(244, 63, 94, 0.16);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.5);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.auth-error.hidden {
  display: none;
}

.btn-auth-submit {
  background: linear-gradient(135deg, #0284c7, #10b981);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.auth-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  margin-top: 4px;
  font-size: 0.65rem;
  color: var(--green);
  text-align: center;
  font-family: Consolas, monospace;
}

.btn-lock {
  background: rgba(244, 63, 94, 0.14);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-lock:hover {
  background: rgba(244, 63, 94, 0.28);
}

/* ==========================================================================
   VIEW TABS & VISUAL MIND-MAP OBSERVATORY
   ========================================================================== */
.hidden {
  display: none !important;
}

.view-tabs {
  display: flex;
  background: rgba(5, 9, 18, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  padding: 2px;
  gap: 3px;
}

.btn-tab {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-tab:hover {
  color: #fff;
}

.btn-tab.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.45), rgba(16, 185, 129, 0.35));
  color: #f8fafc;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.28);
}

.btn-tab-glow {
  color: #fde68a;
}

.observatory-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
  min-height: 0;
}

@media (max-width: 1100px) {
  .observatory-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.mindmap-panel {
  position: relative;
  display: flex;
  flex-direction: column;
}

.mindmap-controls {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.mm-filter {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-secondary);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.mm-filter:hover, .mm-filter.active {
  background: rgba(56, 189, 248, 0.22);
  color: #fff;
  border-color: var(--cyan);
}

.mm-filter-ai {
  border-color: rgba(236, 72, 153, 0.55);
  color: #f472b6;
  background: rgba(236, 72, 153, 0.14);
}

.mm-filter-ai:hover, .mm-filter-ai.active {
  background: rgba(236, 72, 153, 0.35);
  color: #fff;
  border-color: #ec4899;
}

.mm-select {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.65rem;
}

.mm-search {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 0.65rem;
  width: 135px;
}

.mindmap-stage {
  position: relative;
  flex: 1;
  background: radial-gradient(circle at 50% 45%, #071428 0%, #03060c 85%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
}

#mindmap-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#mindmap-canvas:active {
  cursor: grabbing;
}

.mindmap-legend {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 7px 12px;
  background: rgba(4, 7, 13, 0.78);
  border-bottom: 1px solid rgba(56, 189, 248, 0.14);
  font-size: 0.66rem;
  color: #cbd5e1;
  pointer-events: none;
}

.mindmap-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  box-shadow: 0 0 6px currentColor;
}

.mm-hint {
  margin-left: auto;
  color: var(--cyan);
  font-family: Consolas, monospace;
}

.mindmap-inspector {
  position: relative;
  z-index: 2;
  margin: auto 12px 12px 12px;
  background: rgba(9, 16, 29, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-left: 4px solid var(--green);
  border-radius: 9px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
}

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

.mm-insp-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f8fafc;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mm-insp-summary {
  font-size: 0.71rem;
  color: #cbd5e1;
  line-height: 1.38;
  max-height: 58px;
  min-height: 40px;
  overflow-y: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mm-insp-actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

/* RIGHT COLUMN OF OBSERVATORY */
.observatory-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
}

.obs-chart-row {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .obs-chart-row {
    grid-template-columns: 1fr;
  }
}

.obs-card {
  flex-shrink: 0;
}

.obs-canvas-wrap {
  height: 195px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #071224 0%, #040811 100%);
  padding: 4px;
}

.obs-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 12-LANGUAGE SPECTRUM BARS */
.lang-spectrum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 10px;
  padding: 9px 11px;
  background: #050912;
}

.lang-bar-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lang-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-family: Consolas, monospace;
  color: #e2e8f0;
}

.lang-bar-track {
  width: 100%;
  height: 6px;
  background: #0b1324;
  border-radius: 4px;
  overflow: hidden;
}

.lang-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--green));
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* MITRE ATT&CK HEATMAP MATRIX */
.mitre-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 6px;
  padding: 9px 11px;
  background: #050912;
  max-height: 175px;
  overflow-y: auto;
}

.mitre-cell {
  border-radius: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(15, 23, 42, 0.85);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: transform 0.14s, border-color 0.14s;
}

.mitre-cell:hover {
  transform: translateY(-2px);
  border-color: #fbbf24;
}

.mitre-cell-id {
  font-size: 0.67rem;
  font-weight: 800;
  font-family: Consolas, monospace;
  color: #fcd34d;
}

.mitre-cell-name {
  font-size: 0.61rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mitre-cell-count {
  font-size: 0.6rem;
  font-family: Consolas, monospace;
  color: var(--green);
}

/* HARDWARE & STORAGE TELEMETRY PANEL IN OBSERVATORY */
.hw-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 9px 11px;
  background: #050912;
}

@media (max-width: 780px) {
  .hw-telemetry-grid {
    grid-template-columns: 1fr;
  }
}

.hw-box {
  background: rgba(14, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 7px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hw-box-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.hw-title {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #cbd5e1;
}

.hw-val {
  font-size: 0.72rem;
  font-family: Consolas, monospace;
}

.hw-bar-track {
  width: 100%;
  height: 7px;
  background: #070d19;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hw-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.45s ease;
}

.cyan-fill {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.green-fill {
  background: linear-gradient(90deg, #059669, #4ade80);
}

.amber-fill {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.hw-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.61rem;
  font-family: Consolas, monospace;
  color: var(--text-secondary);
}

/* ==========================================================================
   ACTIVE ATTACK PATTERN ALERT BANNER & CORROBORATED CAMPAIGN DOSSIERS
   ========================================================================== */
.btn-tab-alert {
  color: #fda4af;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-tab-alert.active {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.55), rgba(245, 158, 11, 0.4));
  color: #fff;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.45);
}

.pattern-pill {
  background: #e11d48;
  color: #fff;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 0.62rem;
  font-weight: 800;
  font-family: Consolas, monospace;
  box-shadow: 0 0 8px rgba(225, 29, 72, 0.7);
}

.active-attack-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(159, 18, 57, 0.92), rgba(124, 45, 18, 0.92), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(251, 113, 133, 0.75);
  border-left: 5px solid #f43f5e;
  border-radius: 9px;
  box-shadow: 0 0 22px rgba(244, 63, 94, 0.35);
  animation: bannerPulseGlow 2.4s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes bannerPulseGlow {
  0%, 100% { box-shadow: 0 0 14px rgba(244, 63, 94, 0.28); }
  50% { box-shadow: 0 0 26px rgba(244, 63, 94, 0.65); }
}

.aab-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.aab-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff2e55;
  box-shadow: 0 0 12px #ff2e55;
  flex-shrink: 0;
  animation: liveBlink 1s infinite alternate;
}

@keyframes liveBlink {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0.35; transform: scale(1.28); }
}

.aab-badge {
  background: rgba(0, 0, 0, 0.45);
  color: #fecdd3;
  border: 1px solid rgba(251, 113, 133, 0.6);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 0.63rem;
  font-weight: 800;
  font-family: Consolas, monospace;
  white-space: nowrap;
}

.aab-text {
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.btn-aab-view {
  background: #f43f5e;
  color: #fff;
  border: 1px solid #fda4af;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.btn-aab-view:hover {
  background: #e11d48;
  transform: translateY(-1px);
}

.btn-aab-dismiss {
  background: rgba(15, 23, 42, 0.6);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 0.68rem;
  cursor: pointer;
}

#pattern-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.pattern-dossier-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.pattern-dossier-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.campaign-card {
  background: rgba(11, 19, 35, 0.94);
  border: 1px solid rgba(244, 63, 94, 0.38);
  border-left: 4px solid #f43f5e;
  border-radius: 9px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.campaign-card.selected-campaign {
  border-color: #fbbf24;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.22);
}

.campaign-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.campaign-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pulse-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(225, 29, 72, 0.22);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.6);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.62rem;
  font-weight: 800;
  font-family: Consolas, monospace;
}

.campaign-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #f8fafc;
}

.campaign-desc {
  font-size: 0.71rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.corroborated-header {
  font-size: 0.66rem;
  font-weight: 800;
  color: #38bdf8;
  font-family: Consolas, monospace;
  letter-spacing: 0.4px;
  margin-top: 2px;
}

.corroborated-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(4, 8, 16, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 7px;
  padding: 7px 9px;
  max-height: 165px;
  overflow-y: auto;
}

.corroborated-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 5px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.14);
}

.corroborated-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.corroborated-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-family: Consolas, monospace;
  color: #94a3b8;
}

.corroborated-item-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #e2e8f0;
}

.campaign-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.btn-silence-pattern {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-silence-pattern:hover {
  background: rgba(244, 63, 94, 0.24);
  color: #fecdd3;
  border-color: #f43f5e;
}

.btn-restore-pattern {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-restore-pattern:hover {
  background: rgba(16, 185, 129, 0.35);
  color: #fff;
}

.archived-campaign-card {
  opacity: 0.88;
  border-color: rgba(148, 163, 184, 0.35);
  border-left-color: #64748b !important;
}

.archived-badge {
  background: rgba(100, 116, 139, 0.28);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.62rem;
  font-weight: 800;
  font-family: Consolas, monospace;
}

/* ==========================================================================
   FULL NIST SP 800-61r2 INCIDENT RESPONSE & THREAT INTELLIGENCE REPORT MODAL
   ========================================================================== */
.ir-modal-backdrop {
  z-index: 9500;
  padding: 18px;
}

.ir-modal-card {
  width: min(1240px, 96vw);
  height: min(90vh, 920px);
  background: #070e1b;
  border: 1px solid rgba(56, 189, 248, 0.48);
  border-radius: 12px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ir-modal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: linear-gradient(90deg, #0b1528, #0f1d36);
  border-bottom: 1px solid rgba(56, 189, 248, 0.28);
  flex-shrink: 0;
}

.ir-topbar-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ir-topbar-left h2 {
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
}

.ir-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ir-report-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #e2e8f0;
  font-size: 0.78rem;
  line-height: 1.5;
}

.ir-doc-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 47, 73, 0.55));
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-left: 5px solid #38bdf8;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ir-doc-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.ir-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.ir-meta-box {
  background: rgba(4, 8, 16, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ir-meta-label {
  font-size: 0.62rem;
  font-family: Consolas, monospace;
  color: #94a3b8;
  text-transform: uppercase;
}

.ir-meta-val {
  font-size: 0.76rem;
  font-weight: 800;
  color: #38bdf8;
  font-family: Consolas, monospace;
}

.ir-section {
  background: rgba(11, 19, 35, 0.86);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ir-h2 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #38bdf8;
  border-bottom: 1px solid rgba(56, 189, 248, 0.24);
  padding-bottom: 6px;
  letter-spacing: 0.4px;
}

.ir-h3 {
  font-size: 0.83rem;
  font-weight: 800;
  color: #fde047;
  margin-top: 4px;
}

.ir-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 900px) {
  .ir-charts-grid {
    grid-template-columns: 1fr;
  }
}

.ir-chart-box {
  background: #040812;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ir-chart-title {
  font-size: 0.7rem;
  font-weight: 800;
  font-family: Consolas, monospace;
  color: #cbd5e1;
}

.ir-chart-box canvas {
  width: 100%;
  height: 190px;
  object-fit: contain;
}

/* KILL-CHAIN VISUAL FLOW DIAGRAM */
.ir-killchain-diagram {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  background: #040812;
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
}

.kc-stage {
  flex: 1;
  min-width: 145px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-top: 3px solid #f43f5e;
  border-radius: 7px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kc-step-num {
  font-size: 0.62rem;
  font-family: Consolas, monospace;
  color: #fda4af;
  font-weight: 800;
}

.kc-step-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: #fff;
}

.kc-step-desc {
  font-size: 0.66rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.kc-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 1rem;
  font-weight: 800;
  padding: 0 2px;
}

/* TABLES IN NIST IR REPORT */
.ir-table-wrap {
  width: 100%;
  overflow-x: hidden;
}

.ir-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.75rem;
  line-height: 1.42;
  background: #060c18;
  border: 1px solid rgba(56, 189, 248, 0.32);
  -webkit-font-smoothing: antialiased;
}

.ir-table th {
  background: linear-gradient(180deg, rgba(16, 36, 66, 0.98), rgba(10, 24, 46, 0.98));
  color: #7dd3fc;
  font-weight: 800;
  text-align: left;
  padding: 9px 10px;
  border-bottom: 2px solid rgba(56, 189, 248, 0.45);
  border-right: 1px solid rgba(56, 189, 248, 0.14);
  font-family: Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ir-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  border-right: 1px solid rgba(148, 163, 184, 0.08);
  color: #f1f5f9;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ir-table tbody tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.42);
}

.ir-table-articles th:nth-child(1), .ir-table-articles td:nth-child(1) { width: 4%; }
.ir-table-articles th:nth-child(2), .ir-table-articles td:nth-child(2) { width: 11%; }
.ir-table-articles th:nth-child(3), .ir-table-articles td:nth-child(3) { width: 12%; }
.ir-table-articles th:nth-child(4), .ir-table-articles td:nth-child(4) { width: 7%; }
.ir-table-articles th:nth-child(5), .ir-table-articles td:nth-child(5) { width: 12%; }
.ir-table-articles th:nth-child(6), .ir-table-articles td:nth-child(6) { width: 25%; }
.ir-table-articles th:nth-child(7), .ir-table-articles td:nth-child(7) { width: 21%; }
.ir-table-articles th:nth-child(8), .ir-table-articles td:nth-child(8) { width: 8%; text-align: center; }

.ir-table tr:hover td {
  background: rgba(56, 189, 248, 0.06);
}

@media print {
  body * {
    visibility: hidden;
  }
  #ir-report-modal, #ir-report-modal * {
    visibility: visible;
  }
  #ir-report-modal {
    position: absolute;
    inset: 0;
    background: #070e1b !important;
    padding: 0;
  }
  .ir-modal-card {
    width: 100%;
    height: auto;
    border: none;
    box-shadow: none;
  }
  .ir-topbar-actions {
    display: none !important;
  }
  .ir-report-content {
    overflow: visible;
    height: auto;
  }
}

/* Asset Watchlist & IOC Provenance Badges */
.tag-asset-match {
  background: rgba(245, 158, 11, 0.22);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.55);
  font-weight: 800;
}

.tag-ioc-extracted {
  display: inline-block;
  margin-top: 3px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
  font-size: 0.62rem;
  font-weight: 700;
}

.tag-ioc-template {
  display: inline-block;
  margin-top: 3px;
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.62rem;
  font-weight: 600;
}

/* Full-Text Reader & AI Detection Rules */
.ft-modal-meta {
  padding: 10px 18px;
  font-size: 0.74rem;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.fulltext-modal-body {
  padding: 18px 22px;
  overflow-y: auto;
  max-height: 70vh;
  font-size: 0.86rem;
  line-height: 1.65;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-rules-box {
  background: #071324;
  border: 1px solid rgba(74, 222, 128, 0.45);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.ai-rules-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, monospace;
  font-size: 0.74rem;
  line-height: 1.5;
  color: #e2e8f0;
  max-height: 420px;
  overflow-y: auto;
}

/* Hot Hover Tooltips ([data-tooltip]) */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(7, 15, 30, 0.97);
  color: #e2e8f0;
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 0.71rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  width: max-content;
  max-width: 260px;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.2s ease 0.25s, transform 0.2s ease 0.25s;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Fullscreen 3D War-Room Mode */
.mindmap-panel:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  background: #030712;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.mindmap-panel:fullscreen .mindmap-stage {
  flex: 1;
  min-height: 0;
}

/* ============================================================================
   FULL-SCREEN CYBER WAR-ROOM DASHBOARD (CTOC)
   ============================================================================ */
#view-observatory.observatory-grid {
  grid-template-rows: auto 1fr;
}

#view-observatory:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  background: radial-gradient(circle at 30% 20%, #071426 0%, #02050c 100%);
  padding: 10px 12px;
  gap: 10px;
  overflow: hidden;
}

.warroom-kpi-bar {
  grid-column: 1 / -1;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 10px;
  background: linear-gradient(90deg, rgba(8, 23, 46, 0.96), rgba(11, 18, 32, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.32);
  box-shadow: 0 0 24px rgba(14, 165, 233, 0.12);
  flex-wrap: nowrap !important;
  overflow: hidden;
}

.wr-threatcon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 7px;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.45);
  flex-shrink: 0;
}

.wr-threatcon.elevated {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.45);
}

.wr-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 10px #f43f5e;
  animation: wrPulse 1.3s infinite ease-in-out;
}

.wr-threatcon.elevated .wr-pulse-dot {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}

@keyframes wrPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.45; }
}

.wr-tc-label {
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 700;
}

.wr-tc-val {
  font-size: 0.74rem;
  font-weight: 800;
  color: #fda4af;
  font-family: Consolas, monospace;
}

.wr-threatcon.elevated .wr-tc-val {
  color: #fcd34d;
}

.wr-kpi-tiles {
  display: flex;
  flex: 1;
  gap: 7px;
  flex-wrap: nowrap;
  min-width: 0;
}

.wr-kpi-tile {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: rgba(4, 9, 18, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 6px;
  padding: 4px 7px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  white-space: nowrap;
}

.wr-kpi-tile span {
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-weight: 700;
}

.wr-kpi-tile b {
  font-size: 0.88rem;
  font-family: Consolas, monospace;
  font-weight: 800;
}

.wr-kpi-tile b.cyan { color: #38bdf8; }
.wr-kpi-tile b.red { color: #fb7185; }
.wr-kpi-tile b.amber { color: #fbbf24; }
.wr-kpi-tile b.pink { color: #f472b6; }
.wr-kpi-tile b.green { color: #4ade80; }

.btn-warroom-fs {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 7px 13px;
  border-radius: 7px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn-warroom-fs:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.45), rgba(168, 85, 247, 0.45));
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.warroom-left-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.warroom-table-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wr-feed-header {
  flex-wrap: wrap;
  gap: 6px;
}

.wr-insp-dock {
  margin: 0 !important;
  flex-shrink: 0;
}

.wr-table-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
}

.wr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.69rem;
  font-family: Consolas, monospace;
}

.wr-table thead th {
  position: sticky;
  top: 0;
  background: #081224;
  color: #7dd3fc;
  text-align: left;
  padding: 6px 8px;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(56, 189, 248, 0.28);
  z-index: 1;
}

.wr-table tbody tr {
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
  cursor: pointer;
  transition: background 0.12s;
}

.wr-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.12);
}

.wr-table tbody tr.wr-row-selected {
  background: rgba(74, 222, 128, 0.14);
  outline: 1px solid rgba(74, 222, 128, 0.45);
}

.wr-table td {
  padding: 5px 8px;
  color: #cbd5e1;
  white-space: nowrap;
}

.wr-table td.wr-title-cell {
  white-space: normal;
  min-width: 220px;
  max-width: 390px;
  color: #f1f5f9;
  font-family: inherit;
  font-weight: 600;
}

.wr-sev-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
}

.wr-sev-CRITICAL { background: rgba(244, 63, 94, 0.24); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.5); }
.wr-sev-HIGH { background: rgba(245, 158, 11, 0.22); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.45); }
.wr-sev-MEDIUM { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.4); }

.wr-kpi-click {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.wr-kpi-click:hover {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(14, 165, 233, 0.12);
  transform: translateY(-1px);
}

.btn-source-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: #7dd3fc !important;
}

.btn-source-link:hover {
  background: rgba(56, 189, 248, 0.28) !important;
  color: #ffffff !important;
}

#severity-donut-canvas, #velocity-bars-canvas, #radar-canvas, .lang-row {
  cursor: pointer;
}

/* Full-Width Active Patterns Command Board */
.patterns-board-grid {
  grid-template-columns: 1fr !important;
  grid-template-rows: auto 1fr !important;
}

.patterns-top-panel {
  gap: 8px;
  padding-bottom: 8px;
}

.patterns-board-grid .pattern-dossier-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.patterns-board-grid .pattern-dossier-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 12px;
  align-content: start;
  padding: 12px;
  overflow-y: auto;
  flex: 1;
}

.wr-mustread-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  background: rgba(244, 63, 94, 0.25);
  color: #fecdd3;
  border: 1px solid rgba(244, 63, 94, 0.65);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.35);
}

.pat-ai-brief-box {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(14, 30, 58, 0.92), rgba(28, 16, 46, 0.88));
  border: 1px solid rgba(56, 189, 248, 0.42);
  font-size: 0.72rem;
  line-height: 1.44;
  color: #e2e8f0;
}

.pat-ai-tier-MUST_READ_CRITICAL {
  color: #fda4af;
  font-weight: 800;
}

.pat-ai-tier-HIGH_WATCH {
  color: #fcd34d;
  font-weight: 800;
}
