Skip to content

armgit / ARES

Public Imported from GitHub
0

ARES - authorized red-team engagement automation with dashboard, campaign scope, module orchestration, OPSEC controls, encrypted vault, and reporting.

59.5 KB
Raw Blame
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  /* ======================================================================
     ARES design system — enterprise, crimson-on-dark, Operate mode.
     Surfaces are a tone-step ladder (depth via tone, not hairlines).
     Crimson is unified to one scale and spent only on action / selection /
     live state. Secondary text is tinted cool, never flat gray.
     ====================================================================== */

  /* Surfaces — deepest (ground) to most raised */
  --ground:        #08090c;   /* body / app ground */
  --surface:       #0c0e12;   /* content work area */
  --panel:         #121419;   /* cards, panels, inputs at rest */
  --panel-2:       #171a20;   /* raised panel / input hover */
  --panel-3:       #1e2127;   /* selected / active raised */
  --chrome:        #0e1014;   /* sidebar + topbar: the second neutral layer */
  --chrome-2:      #14161c;   /* controls inside chrome */

  /* Hairlines — used sparingly; prefer a tone step */
  --line:          rgba(255, 255, 255, 0.06);
  --line-2:        rgba(255, 255, 255, 0.10);
  --line-strong:   rgba(255, 255, 255, 0.16);

  /* Ink — tinted cool, not gray */
  --ink:           #f3f4f7;
  --ink-2:         #abaeb8;
  --ink-3:         #777b86;
  --ink-faint:     #565a64;

  /* Crimson — one scale, the brand accent */
  --accent:        #dc2626;
  --accent-hover:  #ef4444;
  --accent-press:  #b91c1c;
  --accent-ink:    #ffffff;
  --accent-wash:   rgba(220, 38, 38, 0.13);
  --accent-wash-2: rgba(220, 38, 38, 0.22);
  --accent-line:   rgba(220, 38, 38, 0.40);
  --ares-accent:   var(--accent);   /* back-compat for existing references */

  /* Semantic state — tuned for the dark ground */
  --ok:            #34d399;  --ok-wash:    rgba(52, 211, 153, 0.13);  --ok-line:   rgba(52, 211, 153, 0.34);
  --warn:          #f5b942;  --warn-wash:  rgba(245, 185, 66, 0.13);  --warn-line: rgba(245, 185, 66, 0.34);
  --danger:        #f26770;  --danger-wash:rgba(242, 103, 112, 0.13); --danger-line:rgba(242,103,112,0.34);
  --info:          #5fa8f5;  --info-wash:  rgba(95, 168, 245, 0.13);  --info-line: rgba(95, 168, 245, 0.34);
  --live:          #34d399;  /* operational / running */

  /* Radii */
  --r-xs: 4px;  --r-sm: 6px;  --r-md: 8px;  --r-lg: 12px;  --r-xl: 16px;  --r-pill: 999px;

  /* Elevation — real depth carries offset + blur; only for things that float */
  --shadow-pop:   0 12px 32px -10px rgba(0, 0, 0, 0.65), 0 3px 10px -4px rgba(0, 0, 0, 0.55);
  --shadow-chrome: 1px 0 0 rgba(255, 255, 255, 0.04), 8px 0 24px -16px rgba(0, 0, 0, 0.8);

  /* Type — one family, fixed rem scale (~1.18 ratio), Operate density */
  --font-ui:   'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --fs-display: 1.75rem;   /* 28 — page hero figure */
  --fs-title:   1.3125rem; /* 21 — page title */
  --fs-h:       1rem;      /* 16 — panel heading */
  --fs-body:    0.875rem;  /* 14 — body / controls */
  --fs-sm:      0.8125rem; /* 13 */
  --fs-label:   0.75rem;   /* 12 — section labels */
  --fs-micro:   0.6875rem; /* 11 — meta */

  /* Motion */
  --ease:   cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur:    160ms;
  --dur-sm: 110ms;

  color: var(--ink);
  background: var(--ground);
  font-family: var(--font-ui);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

/* Tabular figures for data/metrics — alignment that reads as "built" */
.tnum, .metric-value, .stat-value, table td, table th { font-variant-numeric: tabular-nums; }

* {
  box-sizing: border-box;
}

*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--ares-accent, #b91c1c);
  outline-offset: 2px;
  border-radius: 4px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-ui);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}

/* Browser surfaces themed from the palette (not left at browser defaults) */
::selection { background: var(--accent-wash-2); color: var(--ink); }

* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.10);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

code, kbd, samp, pre, .font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 252px minmax(0, 1fr);
  background: var(--ground);
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 74px minmax(0, 1fr);
}

.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding-inline: 0.65rem;
}

.sidebar-collapsed .sidebar-title,
.sidebar-collapsed .sidebar-subtitle,
.sidebar-collapsed .nav-group-label,
.sidebar-collapsed .sidebar-footer,
.sidebar-collapsed .nav-count-badge,
.sidebar-collapsed .nav-link .nav-label {
  display: none;
}

.sidebar-collapsed .sidebar-nav {
  padding-inline: 0.65rem;
}

.sidebar-collapsed .nav-link {
  justify-content: center;
  padding-inline: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  height: 100vh;
  flex-direction: column;
  background: var(--chrome);
  color: var(--ink);
  box-shadow: var(--shadow-chrome);
}

.sidebar-brand {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.05rem;
}

.sidebar-mark {
  height: 34px;
  width: 34px;
  border-radius: var(--r-sm);
  object-fit: contain;
  background: var(--chrome-2);
  border: 1px solid var(--line);
}

.sidebar-title {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.sidebar-subtitle {
  margin-top: 0.12rem;
  color: var(--ink-3);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.sidebar-nav {
  display: grid;
  gap: 1rem;
  overflow-y: auto;
  padding: 0.9rem 0.75rem;
}

.nav-group-label {
  margin: 0.15rem 0 0.4rem 0.7rem;
  color: var(--ink-faint);
  font-size: 0.675rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 0.6rem;
  border-radius: var(--r-sm);
  padding: 0.4rem 0.6rem;
  color: var(--ink-2);
  font-size: 0.845rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--dur-sm) var(--ease), color var(--dur-sm) var(--ease);
}

.nav-link:hover {
  background: var(--panel);
  color: var(--ink);
}

.nav-link.active {
  background: var(--accent-wash);
  color: var(--ink);
  font-weight: 600;
}

.nav-link.active::before {
  position: absolute;
  left: -0.75rem;
  top: 50%;
  height: 18px;
  width: 3px;
  transform: translateY(-50%);
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  background: var(--accent);
  content: "";
}

.nav-count-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.35rem;
  border-radius: var(--r-pill);
  background: var(--panel-2);
  color: var(--ink-2);
  font-size: 0.68rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.nav-link.active .nav-count-badge { background: var(--accent-wash-2); color: var(--ink); }

.nav-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 650;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  padding: 1px 4px;
  min-width: 28px;
  height: 18px;
  border-radius: var(--r-xs);
  background: var(--chrome-2);
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: color var(--dur-sm) var(--ease), border-color var(--dur-sm) var(--ease), background var(--dur-sm) var(--ease);
}

.nav-link:hover .nav-code { color: var(--ink-2); border-color: var(--line-2); }

.nav-link.active .nav-code {
  color: var(--accent-hover);
  border-color: var(--accent-line);
  background: var(--accent-wash);
}

.sidebar-collapsed .nav-link .nav-code {
  min-width: 32px;
  height: 22px;
  font-size: 0.7rem;
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
}

.sidebar-enclave-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--r-md);
  background: var(--chrome-2);
  border: 1px solid var(--line);
}

.sidebar-enclave-title {
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.sidebar-enclave-sub {
  color: var(--ink-3);
  font-size: 0.66rem;
  margin-top: 0.08rem;
}

.user-chip-avatar,
.profile-avatar-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  font-weight: 600;
}

.main-shell {
  min-width: 0;
  background: var(--ground);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--chrome);
  padding: 0.5rem 1.35rem;
  color: var(--ink);
}

.topbar-left,
.topbar-right,
.page-actions,
.section-action {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.topbar-left,
.topbar-right {
  min-width: 0;
}

/* Left cluster (holds the search) grows into the free space so the search can
   reach its ~520px target on wide screens and shrink on narrow ones (F3). */
.topbar-left {
  flex: 1 1 auto;
}

.topbar-search {
  display: flex;
  /* Grows to fill the search slot and shrinks instead of overflowing. A hard
     vw-based min-width here used to ignore the 248px sidebar and force horizontal
     page overflow below ~1024px (F3). Width is now driven by the flex wrap. */
  min-width: 0;
  width: 100%;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--chrome-2);
  padding: 0.45rem 0.75rem;
  color: var(--ink-3);
  font-size: 0.82rem;
  font-weight: 500;
  transition: border-color var(--dur-sm) var(--ease), box-shadow var(--dur-sm) var(--ease), background var(--dur-sm) var(--ease);
}

.topbar-search:hover { border-color: var(--line-2); }

.topbar-search:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-line);
  background: var(--panel);
}

.topbar-search-wrap {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 520px;
}

.topbar-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  font-size: 0.84rem;
}

.topbar-search input:focus-visible {
  outline: none;
}

.topbar-scope-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--chrome-2);
  padding: 0.35rem 0.65rem;
  color: var(--ink-2);
  font-size: 0.8rem;
  transition: border-color var(--dur-sm) var(--ease), box-shadow var(--dur-sm) var(--ease);
}

.topbar-scope-wrap:hover { border-color: var(--line-2); }

.topbar-scope-wrap:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-line);
}

.topbar-scope-select {
  border: 0;
  background: transparent;
  color: #f4f4f5;
  font-size: 0.8rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  max-width: 180px;
}

.topbar-scope-select:focus-visible {
  outline: none;
}

.topbar-scope-select option {
  background: var(--panel);
  color: var(--ink);
}

.topbar-search input::placeholder {
  color: var(--ink-3);
}

.search-kbd-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  min-width: 18px;
  padding: 0 4px;
  border-radius: var(--r-xs);
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.search-results {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 35;
  display: grid;
  width: min(520px, 76vw);
  overflow: hidden;
  border: 1px solid #27272a;
  border-radius: 6px;
  background: #121215;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.search-results button {
  display: grid;
  gap: 0.16rem;
  border: 0;
  border-bottom: 1px solid #1f1f23;
  background: #121215;
  padding: 0.62rem 0.75rem;
  color: #f4f4f5;
  text-align: left;
  transition: background 100ms ease;
}

.search-results button:hover,
.search-results button:focus {
  background: #1c1c20;
  outline: none;
}

.search-results button:focus-visible {
  background: #1c1c20;
  outline: 2px solid var(--ares-accent, #b91c1c);
  outline-offset: -2px;
}

.search-results button:last-child {
  border-bottom: 0;
}

.search-results strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f4f4f5;
}

.search-results span,
.search-empty {
  color: #a1a1aa;
  font-size: 0.76rem;
  font-weight: 500;
}

.search-empty {
  padding: 0.72rem 0.78rem;
}

.icon-button {
  position: relative;
  display: inline-flex;
  height: 34px;
  width: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #27272a;
  border-radius: 6px;
  background: #121215;
  color: #a1a1aa;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.icon-button:hover {
  background: #1c1c20;
  border-color: #3f3f46;
  color: #f4f4f5;
}

.icon-button-small {
  height: 28px;
  width: 28px;
}

.icon-button.has-badge > span {
  position: absolute;
  right: -0.32rem;
  top: -0.32rem;
  display: inline-flex;
  min-width: 1rem;
  height: 1rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f43f5e;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
}

.notification-drawer {
  position: absolute;
  right: 1.2rem;
  top: calc(100% + 0.45rem);
  z-index: 40;
  width: min(360px, calc(100vw - 1.8rem));
  border: 1px solid #27272a;
  border-radius: 8px;
  background: #121215;
  padding: 0.85rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.notification-list {
  display: grid;
  gap: 0.55rem;
}

.notification-item {
  display: grid;
  gap: 0.35rem;
  border: 1px solid #27272a;
  border-radius: 6px;
  background: #18181b;
  padding: 0.62rem;
}

.notification-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}

.notification-item strong {
  color: #f4f4f5;
  font-size: 0.82rem;
  font-weight: 600;
}

.notification-item p {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.35;
}

.notification-warn {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
}

.notification-danger {
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.08);
}

.user-chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 0.55rem;
  border-left: 1px solid #27272a;
  padding-left: 0.75rem;
}

.user-chip-avatar {
  height: 28px;
  width: 28px;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #f4f4f5;
  font-size: 0.75rem;
}

.user-chip strong,
.user-chip small {
  display: block;
  line-height: 1.1;
}

.user-chip strong {
  color: #f4f4f5;
  font-size: 0.78rem;
  font-weight: 600;
}

.user-chip small {
  margin-top: 0.1rem;
  color: #71717a;
  font-size: 0.68rem;
  font-weight: 500;
}

.topbar-status-btn,
.topbar-heartbeat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #27272a;
  border-radius: 6px;
  background: #141417;
  padding: 0.28rem 0.65rem;
  color: #e4e4e7;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.topbar-status-btn:hover,
.topbar-heartbeat:hover {
  border-color: #3f3f46;
  background: #18181e;
}

.topbar-status-btn .status-dot,
.heartbeat-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.topbar-status-btn .status-dot.online,
.heartbeat-dot.online {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.topbar-status-btn .status-dot.warning,
.heartbeat-dot.warning {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.topbar-status-btn .status-title,
.heartbeat-text {
  font-size: 0.73rem;
  font-weight: 500;
  color: #e4e4e7;
}

.topbar-status-btn .status-pill-count,
.heartbeat-badge {
  color: #71717a;
  font-size: 0.68rem;
  border-left: 1px solid #27272a;
  padding-left: 0.45rem;
}

.telemetry-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 40;
  width: min(320px, calc(100vw - 2rem));
  border: 1px solid #27272a;
  border-radius: 8px;
  background: #141417;
  padding: 0.85rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
}

.telemetry-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #222228;
}

.telemetry-popover-header strong {
  font-size: 0.82rem;
  color: #f4f4f5;
}

.telemetry-popover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.popover-stat {
  padding: 0.5rem;
  border-radius: 6px;
  background: #18181d;
  border: 1px solid #222228;
}

.popover-stat span {
  display: block;
  font-size: 0.68rem;
  color: #71717a;
}

.popover-stat strong {
  display: block;
  font-size: 0.82rem;
  color: #f4f4f5;
  font-family: ui-monospace, SFMono-Regular, monospace;
  margin-top: 0.15rem;
}

.operator-menu-wrap {
  position: relative;
}

.operator-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #222227;
  border-radius: 6px;
  background: #121216;
  padding: 0.32rem 0.6rem;
  color: #f4f4f5;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.operator-trigger:hover {
  border-color: #3f3f46;
  background: #18181e;
}

.operator-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  width: 26px;
  border-radius: 999px;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

.operator-info {
  text-align: left;
  line-height: 1.15;
}

.operator-info strong {
  display: block;
  font-size: 0.78rem;
  color: #f4f4f5;
}

.operator-info small {
  display: block;
  font-size: 0.66rem;
  color: #71717a;
  font-weight: 500;
}

.chevron-indicator {
  color: #71717a;
  transition: transform 120ms ease;
}

.chevron-indicator.open {
  transform: rotate(180deg);
}

.operator-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 45;
  min-width: 220px;
  border: 1px solid #27272a;
  border-radius: 8px;
  background: #121216;
  padding: 0.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.75);
}

.operator-dropdown-header {
  padding: 0.5rem 0.65rem 0.65rem;
  border-bottom: 1px solid #222228;
}

.operator-dropdown-title {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #71717a;
}

.operator-dropdown-badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 0.68rem;
  font-weight: 600;
}

.operator-dropdown-sub {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #a1a1aa;
}

.operator-dropdown-actions {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.45rem;
}

.operator-action-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 0.45rem 0.65rem;
  color: #e4e4e7;
  font-size: 0.78rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease;
}

.operator-action-item:hover {
  background: #1e1e24;
  color: #ffffff;
}

.operator-action-item.danger {
  color: #fda4af;
}

.operator-action-item.danger:hover {
  background: rgba(244, 63, 94, 0.12);
  color: #fecdd3;
}

.content-shell {
  margin: 0 auto;
  width: min(100%, 1500px);
  padding: 1rem 1.2rem 2rem;
}

.content-shell:has(.cobalt-graph-container) {
  padding: 0.35rem 0.75rem 0.5rem;
  max-width: 100%;
}

.page {
  display: grid;
  gap: 1rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.1rem 0 0.95rem;
  margin-bottom: 0.25rem;
}

.page-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.72rem;
}

.page-icon {
  display: inline-flex;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #27272a;
  border-radius: 6px;
  background: #18181b;
  color: #f4f4f5;
}

.section-eyebrow {
  margin: 0 0 0.15rem;
  color: var(--ink-3);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.page-header h1,
.section-header h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.page-header h1 {
  font-size: var(--fs-title);
  line-height: 1.2;
}

.page-header p,
.section-header p {
  margin: 0.28rem 0 0;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 400;
}

.page-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.page-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line);
  padding-left: 0.25rem;
}

.page-tabs button {
  min-height: 34px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0 0.75rem;
  color: var(--ink-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--dur-sm) var(--ease), border-color var(--dur-sm) var(--ease);
}

.page-tabs button:hover {
  color: var(--ink);
}

.page-tabs button.active {
  border-bottom-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}

.page-tabs button:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 2px;
}

.page-content {
  display: grid;
  gap: 1rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.section-header h2 {
  font-size: 0.92rem;
  line-height: 1.25;
}

.panel.p-4 {
  padding: 0.85rem;
}

.panel-subtle {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: var(--r-md);
  padding: 0.95rem 1.15rem;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.panel-subtle:hover {
  border-color: var(--line-2);
  background: var(--panel-3);
}

.panel-subtle .section-header {
  margin-bottom: 0.65rem;
}

.panel-subtle .section-header h2 {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e4e4e7;
  letter-spacing: -0.01em;
}

.dashboard-empty-hero {
  border: 1px solid #27272a;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 0%, rgba(6, 182, 212, 0.08) 0%, rgba(18, 18, 21, 0.9) 70%, #0c0c0e 100%);
  padding: 3.5rem 2rem 2.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.fresh-hero-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.15);
  margin-bottom: 1.25rem;
}

.dashboard-empty-hero h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fafafa;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.dashboard-empty-hero p {
  max-width: 540px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #a1a1aa;
  margin: 0 0 1.75rem;
}

.fresh-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.fresh-readiness-panel {
  margin-top: 1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.82fr);
  gap: 1rem;
}

.side-stack {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.two-column-grid,
.module-layout,
.graph-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
  gap: 1rem;
}

.module-layout {
  grid-template-columns: minmax(360px, 0.95fr) minmax(380px, 1fr);
}

.graph-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.compact-form-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 140px auto;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--panel-2);
  padding: 0.45rem 0.75rem;
  color: var(--ink);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.15;
  transition:
    background var(--dur-sm) var(--ease),
    border-color var(--dur-sm) var(--ease),
    color var(--dur-sm) var(--ease),
    transform 80ms ease;
}

.btn:hover {
  border-color: var(--line-strong);
  background: var(--panel-3);
  color: var(--ink);
}

.btn:active {
  transform: scale(0.98);
}

.btn-compact {
  min-height: 28px;
  padding: 0.3rem 0.55rem;
  font-size: 0.76rem;
}

.btn:disabled,
.btn:disabled:hover {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.btn-primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.btn-primary:active {
  background: var(--accent-press);
  border-color: var(--accent-press);
}

.btn-danger {
  border-color: var(--danger-line);
  background: var(--danger-wash);
  color: var(--danger);
}

.btn-danger:hover {
  border-color: var(--danger);
  background: var(--danger-wash);
  color: var(--danger);
}

.btn-topbar {
  border-color: var(--line-2);
  background: var(--chrome-2);
  color: var(--ink);
}

.btn-topbar:hover {
  background: var(--panel-2);
  border-color: var(--line-strong);
}

.field {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 0.45rem 0.68rem;
  color: var(--ink);
  font-size: var(--fs-body);
  transition: border-color var(--dur-sm) var(--ease), box-shadow var(--dur-sm) var(--ease);
}

.field::placeholder,
.field-with-icon input::placeholder {
  color: var(--ink-3);
}

.field:focus,
.field:focus-visible,
.field-with-icon:focus-within {
  border-color: var(--accent-line);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-wash);
}

textarea.field {
  line-height: 1.45;
  resize: vertical;
}

.field-with-icon {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 0 0.62rem;
  color: var(--ink-3);
  transition: border-color var(--dur-sm) var(--ease), box-shadow var(--dur-sm) var(--ease);
}

.field-with-icon input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
  font-size: var(--fs-body);
}

.field-with-icon input:focus-visible {
  outline: none;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #d4d4d8;
  font-size: 0.84rem;
  font-weight: 500;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border: 1px solid var(--warn-line);
  border-radius: var(--r-sm);
  background: var(--warn-wash);
  padding: 0.58rem 0.66rem;
  color: var(--warn);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.notice-warning {
  border-color: var(--warn-line);
  background: var(--warn-wash);
  color: var(--warn);
}

.notice-danger {
  border-color: var(--danger-line);
  background: var(--danger-wash);
  color: var(--danger);
}

.notice-info,
.notice-active {
  border-color: var(--info-line);
  background: var(--info-wash);
  color: var(--info);
}

.notice-optimal,
.notice-success {
  border-color: var(--ok-line);
  background: var(--ok-wash);
  color: var(--ok);
}

.defense-feasibility-card {
  border: 1px solid #27272a;
  background: #121215;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
}

.defense-feasibility-card.danger {
  border-color: rgba(244, 63, 94, 0.3);
  background: #150f12;
}

.defense-feasibility-card.warning {
  border-color: rgba(245, 158, 11, 0.3);
  background: #15130f;
}

.defense-feasibility-card.optimal {
  border-color: rgba(16, 185, 129, 0.25);
  background: #0f1512;
}

.loading-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a1a1aa;
  font-size: 0.84rem;
  font-weight: 500;
}

.spin {
  animation: spin 0.9s linear infinite;
}

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

.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--panel-2);
  color: var(--ink-2);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.badge {
  padding: 0.2rem 0.45rem;
}

.status-pill {
  min-height: 22px;
  padding: 0.22rem 0.5rem;
}

.badge-high,
.badge-critical,
.status-high,
.status-critical,
.status-danger {
  border-color: var(--danger-line);
  background: var(--danger-wash);
  color: var(--danger);
}

.badge-medium,
.badge-warn,
.badge-warning,
.status-medium,
.status-warn,
.status-warning {
  border-color: var(--warn-line);
  background: var(--warn-wash);
  color: var(--warn);
}

.badge-low,
.badge-optimal,
.badge-safe,
.badge-info,
.status-low,
.status-optimal,
.status-safe,
.status-info {
  border-color: var(--ok-line);
  background: var(--ok-wash);
  color: var(--ok);
}

.telemetry-live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #27272a;
  border-radius: 6px;
  background: #141417;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: #d4d4d8;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator-dot.active {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.status-indicator-dot.pending {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.status-indicator-text {
  font-size: 0.72rem;
  font-weight: 500;
  color: #e4e4e7;
}

.status-indicator-time {
  color: #71717a;
  font-size: 0.68rem;
  border-left: 1px solid #27272a;
  padding-left: 0.45rem;
}

.telemetry-panel {
  padding: 0.9rem;
}

.telemetry-chart {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.35rem;
  border-top: 1px solid #27272a;
  padding-top: 0.9rem;
}

.telemetry-bar {
  display: grid;
  grid-template-columns: 112px minmax(120px, 1fr) 48px;
  align-items: center;
  gap: 0.75rem;
  color: #a1a1aa;
  font-size: 0.8rem;
  font-weight: 500;
}

.telemetry-bar-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.telemetry-bar-track.is-na {
  background: rgba(24, 24, 27, 0.3);
  border: 1px dashed rgba(113, 113, 122, 0.4);
}

.telemetry-bar-track.is-zero {
  background: rgba(24, 24, 27, 0.55);
  border: 1px solid rgba(63, 63, 70, 0.6);
}

.telemetry-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: #e4e4e7;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.telemetry-bar-fill.danger {
  background: #f43f5e;
}

.telemetry-bar strong {
  color: #f4f4f5;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, monospace;
  text-align: right;
  letter-spacing: -0.02em;
}

.telemetry-bar strong.is-na {
  color: #71717a;
  font-weight: 500;
}

.telemetry-bar strong.is-zero {
  color: #a1a1aa;
}

.telemetry-strip {
  border: 1px solid #27272a;
  border-radius: 6px;
  background: #18181b;
  padding: 0.72rem;
}

.telemetry-strip span,
.telemetry-strip strong {
  display: block;
}

.telemetry-strip span {
  color: #71717a;
  font-size: 0.72rem;
  font-weight: 600;
}

.telemetry-strip strong {
  margin-top: 0.15rem;
  color: #f4f4f5;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.telemetry-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 0.9rem;
  border-top: 1px solid #27272a;
  padding-top: 0.75rem;
  color: #71717a;
  font-size: 0.76rem;
  font-weight: 500;
}

.telemetry-footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 0.65rem;
}

.mini-stat {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  padding: 0.6rem;
}

.mini-stat span,
.mini-stat small {
  display: block;
  color: var(--ink-3);
  font-size: 0.72rem;
  font-weight: 500;
}

.mini-stat strong {
  display: block;
  margin-top: 0.12rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
  line-height: 1.15;
}

.mini-stat small {
  margin-top: 0.15rem;
  overflow-wrap: anywhere;
}

.mini-stat-icon {
  display: inline-flex;
  height: 32px;
  width: 32px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--chrome);
  color: var(--ink);
}

.highlight-list {
  display: grid;
  gap: 0.15rem;
}

.highlight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #1f1f23;
  padding: 0.75rem 0;
}

.highlight-row:first-child {
  padding-top: 0.1rem;
}

.highlight-row:last-child {
  border-bottom: 0;
  padding-bottom: 0.1rem;
}

.highlight-row strong,
.highlight-row span {
  display: block;
}

.highlight-row strong {
  color: #f4f4f5;
  font-size: 0.84rem;
  font-weight: 600;
}

.highlight-row span {
  margin-top: 0.15rem;
  color: #71717a;
  font-size: 0.74rem;
  font-weight: 500;
}

.highlight-value {
  min-width: 50px;
  border-radius: 6px;
  padding: 0.22rem 0.55rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.highlight-low {
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
}

.highlight-medium {
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.08);
  color: #fbbf24;
}

.highlight-high {
  border: 1px solid rgba(244, 63, 94, 0.25);
  background: rgba(244, 63, 94, 0.08);
  color: #fb7185;
}

.highlight-neutral {
  border: 1px solid #27272a;
  background: #18181b;
  color: #d4d4d8;
}

.monthly-stat {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: 0.2rem;
  margin-bottom: 0.75rem;
}

.monthly-stat span {
  color: #f4f4f5;
  font-size: 1.55rem;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.monthly-stat small {
  color: #71717a;
  font-size: 0.8rem;
  font-weight: 500;
}

.sparkline {
  display: flex;
  height: 84px;
  align-items: end;
  gap: 0.18rem;
  border-bottom: 1px solid #27272a;
  padding: 0.35rem 0;
  overflow: hidden;
}

.sparkline span {
  flex: 1 1 0;
  min-width: 2px;
  max-width: 12px;
  border-radius: 2px 2px 1px 1px;
  background: #71717a;
  opacity: 0.8;
  transition: background 120ms ease;
}

.sparkline span:hover {
  background: #f4f4f5;
}

.sparkline-axis {
  display: flex;
  gap: 0.18rem;
  min-height: 0.85rem;
  margin-top: 0.25rem;
  overflow: hidden;
  color: #71717a;
  font-size: 0.64rem;
  line-height: 1;
}

.sparkline-axis span {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
}

.sparkline-axis span:first-child {
  text-align: left;
}

.sparkline-axis span:last-child {
  text-align: right;
}

/* -- Mission Control HUD & Adversary Pipeline (Anti-Slop Double-Bezel) -- */

.overview-shell {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.overview-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex-shrink: 0;
}

.overview-quick-actions .btn {
  padding-inline: 0.7rem;
}

.hud-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 1024px) {
  .hud-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hud-bento-grid {
    grid-template-columns: 1fr;
  }
}

/* Metric tiles — clean tone-step cards (depth via surface, not bezels) */
.hud-bezel-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.hud-bezel-card:hover {
  border-color: var(--line-2);
  background: var(--panel-2);
}

.hud-bezel-inner {
  background: transparent;
  border-radius: inherit;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 108px;
}

.hud-card-title {
  color: var(--ink-3);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0;
}

.hud-card-value {
  color: var(--ink);
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.4rem 0;
  font-variant-numeric: tabular-nums;
}

.hud-card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.hud-context-text {
  font-size: var(--fs-label);
  color: var(--ink-3);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tier 2 Workstation: Clean 50/50 Grid */
.workstation-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.overview-content-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.pulse-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pulse-stat-cell {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.85rem;
}

.pulse-stat-label {
  font-size: var(--fs-label);
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0;
}

.pulse-stat-value {
  margin-top: 0.3rem;
  font-size: var(--fs-h);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Tier 3 Table enhancements */
.campaign-table-row {
  cursor: pointer;
  transition: background 120ms ease;
}

.campaign-table-row:hover {
  background: var(--panel-2);
}

.campaign-table-row.is-selected {
  background: var(--accent-wash);
}

.campaign-table-row.is-selected td:first-child {
  box-shadow: inset 2px 0 0 var(--accent);
}

.table-panel {
  overflow: hidden;
  padding: 0.85rem;
}

.table-scroll {
  overflow-x: auto;
}

.table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.58rem;
  text-align: left;
  vertical-align: middle;
}

.table th {
  color: var(--ink-3);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.table td {
  color: var(--ink-2);
  font-size: var(--fs-body);
}

.table tr:last-child td {
  border-bottom: 0;
}

.muted-cell {
  color: #71717a;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--panel-2);
  padding: 0.82rem;
  color: var(--ink-3);
  font-size: var(--fs-body);
  font-weight: 500;
}

.detail-panel {
  padding: 0.85rem;
}

/* Raw JSON disclosure — demoted, closed by default (power-user escape hatch) */
.raw-disclosure {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.raw-disclosure-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  list-style: none;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  user-select: none;
}

.raw-disclosure-summary::-webkit-details-marker {
  display: none;
}

.raw-disclosure-summary:hover {
  color: var(--ink);
}

.raw-disclosure-chevron {
  color: var(--ink-3);
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.raw-disclosure[open] .raw-disclosure-chevron {
  transform: rotate(90deg);
}

.raw-disclosure-hint {
  font-size: var(--fs-micro);
  font-family: var(--font-mono);
  color: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  padding: 0.05rem 0.3rem;
}

.raw-disclosure-clear {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border: 0;
  color: var(--ink-3);
  font-size: var(--fs-micro);
  cursor: pointer;
  transition: color 110ms ease;
}

.raw-disclosure-clear:hover {
  color: var(--danger);
}

.raw-disclosure-body {
  padding: 0 0.85rem 0.85rem;
}

.inline-summary,
.detail-summary {
  border-top: 1px solid #27272a;
  padding-top: 0.85rem;
}

.detail-summary {
  padding-bottom: 0.1rem;
}

.advanced-details {
  margin-top: 0.65rem;
}

.advanced-details.compact {
  margin-top: 0.45rem;
}

.advanced-details summary {
  cursor: pointer;
  color: #71717a;
  font-size: 0.76rem;
  font-weight: 500;
}

.json-box {
  max-height: 340px;
  overflow: auto;
  margin-top: 0.45rem;
  border-radius: 6px;
  background: #09090b;
  border: 1px solid #27272a;
  color: #e4e4e7;
  padding: 0.7rem;
  font-size: 0.76rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
  line-height: 1.45;
}

.compact-list {
  display: grid;
  gap: 0.55rem;
}

.compact-row {
  border: 1px solid #27272a;
  border-radius: 6px;
  background: #18181b;
  padding: 0.72rem;
}

.template-card,
.catalog-card {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  border: 1px solid #27272a;
  border-radius: 6px;
  background: #18181b;
  padding: 0.74rem;
  color: #f4f4f5;
  text-align: left;
  transition: border-color 120ms ease, background 120ms ease;
}

.template-card:hover,
.catalog-card:hover {
  border-color: #52525b;
  background: #222226;
}

.template-card.active,
.catalog-card.active {
  border-color: #f4f4f5;
  box-shadow: inset 2px 0 0 #f4f4f5;
  background: #222226;
}

.template-card small,
.catalog-card small {
  color: #a1a1aa;
  font-size: 0.78rem;
  line-height: 1.35;
}

.preview-card {
  border-left: 2px solid #f4f4f5;
  border: 1px solid #27272a;
  border-left-width: 3px;
  border-left-color: #f4f4f5;
  background: #18181b;
  padding: 0.72rem 0.85rem;
  border-radius: 6px;
}

.cvss-card,
.diff-card {
  border: 1px solid #27272a;
  background: #121216;
}

.entity-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.55rem;
  row-gap: 0.15rem;
  align-items: start;
  border: 1px solid #27272a;
  border-radius: 6px;
  background: #18181b;
  padding: 0.72rem;
}

.entity-card svg {
  grid-row: span 2;
  margin-top: 0.1rem;
  color: #d4d4d8;
}

.graph-panel {
  min-height: 580px;
}

.graph-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.graph-campaign-select,
.graph-ingest-form label,
.graph-filter-group {
  display: grid;
  gap: 0.34rem;
  color: #a1a1aa;
  font-size: 0.76rem;
  font-weight: 600;
}

.graph-campaign-select {
  width: min(100%, 360px);
}

.graph-workspace {
  display: grid;
  gap: 0.85rem;
}

.graph-filters,
.graph-active-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  border: 1px solid #27272a;
  border-radius: 6px;
  background: #18181b;
  padding: 0.62rem;
}

.graph-filter-title {
  color: #f4f4f5;
  font-size: 0.8rem;
  font-weight: 600;
}

.graph-filter-group {
  min-width: 132px;
}

.graph-filter-group .field {
  min-height: 31px;
  font-size: 0.78rem;
}

.graph-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.filter-chip {
  border: 1px solid #27272a;
  border-radius: 999px;
  background: #18181b;
  padding: 0.22rem 0.48rem;
  color: #a1a1aa;
  font-size: 0.72rem;
  font-weight: 600;
}

.filter-chip.active {
  border-color: #f4f4f5;
  background: #27272a;
  color: #ffffff;
}

.graph-path-only-toggle {
  margin-left: auto;
  font-size: 0.78rem;
}

.graph-active-path {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
  font-size: 0.82rem;
  font-weight: 500;
}

.graph-active-path .btn {
  margin-left: auto;
}

.graph-canvas {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid #27272a;
  border-radius: 6px;
  background: #09090b;
}

.graph-canvas .react-flow__controls {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(18, 18, 21, 0.92);
  backdrop-filter: blur(8px);
  padding: 3px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.graph-canvas .react-flow__controls-button {
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 6px !important;
  color: #e4e4e7 !important;
  fill: #e4e4e7 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transition: background-color 120ms ease, color 120ms ease, transform 100ms ease;
}

.graph-canvas .react-flow__controls-button:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  fill: #ffffff !important;
}

.graph-canvas .react-flow__controls-button:active {
  transform: scale(0.95);
}

.graph-canvas .react-flow__controls-button svg {
  max-width: 13px !important;
  max-height: 13px !important;
  fill: currentColor !important;
}

/* Cyber Patch Socket Handles */
.graph-canvas .ares-flow-handle {
  width: 7px !important;
  height: 7px !important;
  background: #ffffff !important;
  border: 1.5px solid #09090b !important;
  border-radius: 50% !important;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.45) !important;
  pointer-events: none !important;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.graph-canvas .ares-flow-node:hover .ares-flow-handle {
  box-shadow: 0 0 8px #ffffff, 0 0 14px rgba(255, 255, 255, 0.95) !important;
  transform: scale(1.2);
}

/* Connecting White Cables */
.graph-canvas .react-flow__edge-path {
  stroke: #ffffff !important;
  stroke-width: 2.2px !important;
  stroke-linecap: round;
  fill: none !important;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.45));
}

.graph-canvas .react-flow__edge.animated .react-flow__edge-path {
  stroke-dasharray: 6 4 !important;
  animation: aresCableSignal 1.8s linear infinite !important;
}

@keyframes aresCableSignal {
  from {
    stroke-dashoffset: 20;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.ares-flow-node {
  min-width: 148px;
  max-width: 210px;
  border: 1px solid #27272a;
  border-left: 3px solid var(--node-color);
  border-radius: 6px;
  background: #18181b;
  padding: 0.45rem 0.55rem;
  color: #f4f4f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: opacity 120ms ease, box-shadow 120ms ease;
}

.ares-flow-node.selected {
  box-shadow: 0 0 0 2px #f4f4f5;
}

.ares-flow-node.dimmed {
  opacity: 0.28;
}

.ares-flow-node-type,
.ares-flow-node small {
  display: block;
  color: #71717a;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ares-flow-node strong {
  display: block;
  margin: 0.16rem 0;
  overflow: hidden;
  color: #f4f4f5;
  font-size: 0.78rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ares-flow-node small {
  width: fit-content;
  border-radius: 999px;
  padding: 0.08rem 0.3rem;
}

.graph-side-panel {
  align-self: stretch;
  min-height: 300px;
  padding: 0.78rem;
}

.graph-side-heading,
.graph-detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  color: #f4f4f5;
}

.graph-side-heading {
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.84rem;
}

.graph-detail-heading span,
.graph-detail-heading strong {
  display: block;
}

.graph-detail-heading span,
.graph-detail-route {
  color: #71717a;
  font-size: 0.72rem;
  font-weight: 500;
}

.graph-detail-heading strong {
  margin-top: 0.14rem;
  color: #f4f4f5;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.graph-detail-route {
  overflow-wrap: anywhere;
}

.graph-detail-empty {
  color: #71717a;
  font-size: 0.82rem;
  line-height: 1.45;
}

.graph-detail-list {
  display: grid;
  gap: 0.52rem;
  margin: 0.8rem 0 0;
}

.graph-detail-list div {
  border-top: 1px solid #1f1f23;
  padding-top: 0.48rem;
}

.graph-detail-list dt {
  color: #71717a;
  font-size: 0.69rem;
  font-weight: 600;
  text-transform: capitalize;
}

.graph-detail-list dd {
  margin: 0.14rem 0 0;
  overflow-wrap: anywhere;
  color: #d4d4d8;
  font-size: 0.78rem;
  line-height: 1.4;
}

.attack-path-list {
  display: grid;
  gap: 0.5rem;
}

.attack-path-card {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  border: 1px solid #27272a;
  border-radius: 6px;
  background: #18181b;
  padding: 0.62rem;
  text-align: left;
  transition: border-color 120ms ease, background 120ms ease;
}

.attack-path-card:hover,
.attack-path-card.active {
  border-color: #52525b;
  background: #222226;
}

.attack-path-card span,
.attack-path-card small {
  color: #71717a;
  font-size: 0.7rem;
  font-weight: 500;
}

.attack-path-card strong {
  overflow-wrap: anywhere;
  color: #f4f4f5;
  font-size: 0.8rem;
  font-weight: 600;
}

.graph-ingest-form {
  display: grid;
  max-width: 620px;
  gap: 0.75rem;
}

.graph-ingest-form h2,
.graph-ingest-form p {
  margin: 0;
}

.graph-ingest-form h2 {
  color: #f4f4f5;
  font-size: 0.95rem;
}

.graph-ingest-form p:not(.notice) {
  margin-top: 0.2rem;
  color: #a1a1aa;
  font-size: 0.82rem;
  line-height: 1.4;
}

.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #27272a;
  padding: 0.82rem 0;
}

.key-row:last-of-type {
  padding-bottom: 0;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.profile-avatar-light {
  height: 38px;
  width: 38px;
  background: #27272a;
  border: 1px solid #3f3f46;
  color: #f4f4f5;
}

.event-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  border: 1px solid #27272a;
  border-radius: 6px;
  background: #18181b;
  padding: 0.76rem;
}

.event-marker {
  width: 4px;
  border-radius: 999px;
  background: #f4f4f5;
}

.event-card strong {
  color: #f4f4f5;
  font-size: 0.88rem;
  font-weight: 600;
}

.event-card p {
  margin: 0.35rem 0 0;
  color: #a1a1aa;
  font-size: 0.84rem;
}

.event-card small {
  display: block;
  margin-top: 0.25rem;
  color: #71717a;
  font-size: 0.74rem;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

@media (max-width: 1180px) {
  .dashboard-grid,
  .two-column-grid,
  .module-layout,
  .graph-layout {
    grid-template-columns: 1fr;
  }

  .compact-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .app-shell {
    display: block;
  }

  .app-shell.sidebar-collapsed .sidebar {
    display: none;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebar-brand {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.75rem;
  }

  .nav-group {
    min-width: 180px;
  }

  .topbar-search {
    min-width: 0;
    width: 100%;
  }

  .topbar-search-wrap {
    flex: 1 1 260px;
  }

  .topbar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 700px) {
  .topbar,
  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-left,
  .topbar-right,
  .page-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .content-shell {
    padding: 0.85rem;
  }

  .page-heading {
    align-items: flex-start;
  }

  .telemetry-bar {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .telemetry-bar strong {
    text-align: left;
  }

  .section-header {
    display: grid;
  }

  .key-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .graph-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .graph-campaign-select {
    width: 100%;
  }

  .graph-path-only-toggle {
    margin-left: 0;
  }

  .graph-canvas {
    min-height: 390px;
  }
}

/* ==========================================================================
   Login Page Animations
   Each animation is motivated - see inline rationale.
   ========================================================================== */

/* Entry stagger - communicates hierarchy: brand → copy → pillars → card */
@keyframes loginSlideFade {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0);    }
}

.animate-login-enter {
  animation: loginSlideFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Status beacon - communicates "live": DAG engine is running, not static */
@keyframes beaconPulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.4; transform: scale(1.2); }
}

.animate-beacon {
  animation: beaconPulse 2.4s ease-in-out infinite;
}

/* Ambient breathe - communicates the system is active, not idle.
   Slow enough (9s) to be subliminal, not distracting. */
@keyframes aresBreathe {
  0%, 100% { opacity: 0.5; transform: scale(0.96); }
  50%       { opacity: 1;   transform: scale(1.04); }
}

.animate-ares-breathe {
  animation: aresBreathe 9s ease-in-out infinite;
}

/* Subtle organic floating animation for the ARES Dragon identity */
@keyframes aresFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}

.animate-ares-float {
  animation: aresFloat 5s ease-in-out infinite;
}

/* Production-grade infinite engineering grid drift */
@keyframes gridPan {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 40px 40px;
  }
}

.animate-grid-drift {
  animation: gridPan 20s linear infinite;
}

/* Ambient atmospheric light glide */
@keyframes spotlightDrift {
  0% {
    transform: translate(-50%, -20%) scale(1);
    opacity: 0.18;
  }
  50% {
    transform: translate(-42%, -5%) scale(1.15);
    opacity: 0.30;
  }
  100% {
    transform: translate(-55%, -15%) scale(0.95);
    opacity: 0.18;
  }
}

.animate-spotlight-drift {
  animation: spotlightDrift 14s ease-in-out infinite alternate;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ARES SIGNATURE INTERACTION - Crimson Plasma Shockwave
   Triggered imperatively from AresIgniteButton on mousedown.
   The spawned <span> reads this keyframe by name via inline style.
────────────────────────────────────────────────────────────────────────────── */

@keyframes aresShockwave {
  0% {
    transform: scale(0);
    opacity: 1;
    box-shadow:
      0 0 0 2px rgba(220, 38, 38, 0.9),
      0 0 0 4px rgba(220, 38, 38, 0.5),
      0 0 24px 8px rgba(220, 38, 38, 0.35);
    background: radial-gradient(
      circle,
      rgba(239, 68, 68, 0.25) 0%,
      rgba(220, 38, 38, 0.08) 40%,
      transparent 70%
    );
  }
  60% {
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 0;
    box-shadow:
      0 0 0 1.5px rgba(220, 38, 38, 0.15),
      0 0 32px 12px rgba(220, 38, 38, 0.04);
    background: transparent;
  }
}

/* Hover: laser-sweep border - crimson line travels the full perimeter once */
.ares-ignite-idle {
  position: relative;
}

.ares-ignite-idle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* Conic sweep mask starting from top, rotating clockwise, crimson */
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(220, 38, 38, 0.9) 40deg,
    rgba(239, 68, 68, 0.5) 70deg,
    transparent 110deg,
    transparent 360deg
  );
  /* Clip so only the border perimeter is visible */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  opacity: 0;
  transform: rotate(0deg);
  transition: opacity 80ms ease;
  pointer-events: none;
}

.ares-ignite-idle:hover::after {
  opacity: 1;
  animation: aresLaserSweep 750ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes aresLaserSweep {
  0%   { transform: rotate(0deg);   opacity: 1; }
  85%  { transform: rotate(360deg); opacity: 1; }
  100% { transform: rotate(360deg); opacity: 0; }
}

/* Loading state: slow crimson perimeter pulse - system is active */
.ares-ignite-loading {
  position: relative;
  animation: aresLoadingPulse 1.6s ease-in-out infinite;
}

@keyframes aresLoadingPulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(220, 38, 38, 0),
      inset 0 0 0 0 rgba(220, 38, 38, 0);
  }
  50% {
    box-shadow:
      0 0 14px 2px rgba(220, 38, 38, 0.25),
      inset 0 0 8px 0 rgba(220, 38, 38, 0.08);
  }
}

/* Respect reduced-motion: remove all shockwave & sweep animations */
@media (prefers-reduced-motion: reduce) {
  .ares-ignite-idle::after { display: none; }
  .ares-ignite-loading { animation: none; }
}

/* Chrome / Edge / Safari Autofill Dark Theme Enforcement */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #09090b inset !important;
  box-shadow: 0 0 0 1000px #09090b inset !important;
  -webkit-text-fill-color: #f4f4f5 !important;
  caret-color: #f4f4f5 !important;
  border-color: #27272a !important;
  transition: background-color 5000s ease-in-out 0s;
}

input:-webkit-autofill:focus {
  border-color: #dc2626 !important;
  -webkit-box-shadow: 0 0 0 1000px #09090b inset, 0 0 0 1px #dc2626 !important;
  box-shadow: 0 0 0 1000px #09090b inset, 0 0 0 1px #dc2626 !important;
}

/* ==========================================================================
   Keyboard Focus Visible & Accessibility Specific Overrides (Item 9)
   Preserve component border-radii while keyboard focus-visible is active
   ========================================================================== */

.btn:focus-visible,
.btn-compact:focus-visible,
.icon-button:focus-visible,
.icon-button-small:focus-visible,
.nav-link:focus-visible,
.topbar-status-btn:focus-visible,
.topbar-heartbeat:focus-visible,
.operator-trigger:focus-visible,
.rounded-md:focus-visible,
[class*="rounded-md"]:focus-visible {
  border-radius: 6px;
}

.panel:focus-visible,
.card:focus-visible,
.notification-item:focus-visible,
.rounded-lg:focus-visible,
[class*="rounded-lg"]:focus-visible {
  border-radius: 8px;
}

.rounded-full:focus-visible,
[class*="rounded-full"]:focus-visible,
.btn-rounded:focus-visible,
.user-chip-avatar:focus-visible,
.profile-avatar-light:focus-visible,
.operator-avatar:focus-visible,
.status-pill:focus-visible,
.badge:focus-visible {
  border-radius: 999px;
}