@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght@100..700&display=swap");.app-root {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  background: var(--bg-app);
  color: var(--text-primary);
}

.app-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.app-main {
  flex: 1;
  padding: 1.5rem;
  overflow: auto;
}

.app-main-fullscreen {
  flex: 1;
  padding: 0;
  overflow: auto;
  width: 100%;
  height: 100vh;
}

.page-root {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.page-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.page-title {
  font-size: var(--text-1-55); /* +2px */
  font-weight: 600;
  letter-spacing: 0.01em;
}

.page-subtitle {
  font-size: var(--text-1-1); /* +2px */
  color: var(--text-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: var(--text-0-9); /* +2px */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-muted);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

/* --- SOC / SIEM premium components ----------------------------------- */
.soc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.soc-kpi-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  padding: var(--space-4);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: none;
  min-height: 118px;
}

.soc-kpi-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.soc-kpi-title {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--text-muted);
  font-size: var(--text-0-85);
}

.soc-kpi-value {
  margin-top: 0.6rem;
  font-size: var(--text-2);
  font-weight: 700;
  color: var(--text-primary);
}

.soc-kpi-subtitle {
  margin-top: 0.35rem;
  color: var(--text-secondary);
  font-size: var(--text-0-95);
}

.soc-kpi-delta {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-1);
  color: var(--text-secondary);
  font-size: var(--text-0-8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.soc-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18);
}

.soc-section-title {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--text-muted);
  font-size: var(--text-0-85);
}

.soc-activity-filters {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-3);
}

.soc-table-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.soc-table-dot i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.soc-table-sev-critical {
  color: var(--severity-critical-text);
}
.soc-table-sev-high {
  color: var(--severity-high-text);
}
.soc-table-sev-medium {
  color: var(--severity-medium-text);
}
.soc-table-sev-low {
  color: var(--severity-low-text);
}

.soc-table-link {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

.soc-table-link:hover {
  text-decoration: underline;
}

.soc-delta-tone-success {
  color: var(--severity-low-text);
}
.soc-delta-tone-warning {
  color: var(--severity-high-text);
}
.soc-delta-tone-critical {
  color: var(--severity-critical-text);
}
.soc-delta-tone-info {
  color: var(--severity-medium-text);
}
.soc-delta-tone-muted {
  color: var(--text-secondary);
}

.soc-align-left {
  text-align: left;
}

.soc-align-center {
  text-align: center;
}

.soc-align-right {
  text-align: right;
}

.soc-data-row {
  /* mantiene el estilo de hover propio del sistema .table */
}

.soc-data-row-clickable {
  cursor: pointer;
}

.soc-skeleton-line {
  height: var(--soc-skeleton-line-height, 10px);
  border-radius: 999px;
  background: var(--bg-surface-3);
  position: relative;
  overflow: hidden;
}

.soc-skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--accent-400-rgb), 0.25) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
}

.soc-error {
  color: var(--status-danger-text);
}

.soc-skeleton-stack {
  display: grid;
  gap: 10px;
}

.soc-justify-end {
  justify-content: flex-end;
}

@media (max-width: 1200px) {
  .soc-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .soc-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  border-radius: var(--r-card);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4) var(--space-5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-inline {
  border-radius: var(--r-input);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  padding: var(--space-3);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.card-inline:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.filters .field-control {
  flex: 1;
  min-width: 200px;
}

.map-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--space-4);
}

.map-view {
  position: relative;
  min-height: 340px;
}

.map-canvas {
  position: relative;
  width: 100%;
  min-height: 340px;
  height: 100%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(var(--accent-400-rgb), 0.18) 0%,
    rgba(var(--accent-600-rgb), 0.12) 40%,
    var(--bg-surface-1) 75%
  );
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.map-canvas canvas {
  width: 100% !important;
  height: 100% !important;
}

.map-gradient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(var(--accent-400-rgb), 0.12), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(var(--accent-600-rgb), 0.1), transparent 55%),
    linear-gradient(180deg, rgba(var(--neutral-950-rgb), 0.2), rgba(var(--neutral-950-rgb), 0.5));
  mix-blend-mode: screen;
  opacity: 0.9;
}

.map-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
}
.map-empty-title {
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--link);
}
.map-empty-sub {
  color: var(--text-secondary);
  max-width: 520px;
  font-size: var(--text-0-95);
}

.map-tooltip {
  position: absolute;
  z-index: 10;
  min-width: 180px;
  padding: 0.65rem 0.9rem;
  border-radius: 0.85rem;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.map-side-panels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mini-card {
  border-radius: 1rem;
  padding: 0.9rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.campaign-row,
.actor-row,
.cve-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.actor-row {
  align-items: center;
}

.abbrev {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--selected-bg);
  color: var(--text-secondary);
  font-size: var(--text-0-85);
  margin-right: 0.5rem;
}

.map-search {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  z-index: 6;
}

.map-search input {
  flex: 1;
  border-radius: 1rem;
  border: none;
  padding: 0.6rem 1rem;
  background: var(--bg-surface-2);
  color: inherit;
  border: 1px solid var(--border-subtle);
  max-width: 420px;
  width: 100%;
}

.map-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 6;
}

.tactic-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}

.tactic-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tactic-bar {
  width: 100%;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--bg-surface-3);
  overflow: hidden;
}

.tactic-bar div {
  height: 100%;
  border-radius: 999px;
}

@media (max-width: 1100px) {
  .map-card {
    grid-template-columns: 1fr;
  }
  .map-side-panels {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .mini-card {
    flex: 1;
    min-width: 220px;
  }
}

@media (max-width: 768px) {
  .map-search {
    position: static;
    margin-bottom: 0.75rem;
  }
  .map-controls {
    position: static;
    justify-content: flex-end;
  }
  .map-card {
    gap: 0.5rem;
  }
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-0-95);
  min-width: max(520px, 100%);
}

.table th,
.table td {
  padding: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.table th {
  position: sticky;
  top: 0;
  background: var(--bg-surface-1);
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-size: var(--text-0-75);
}

.table tbody tr:nth-child(even) {
  background: var(--bg-surface-1);
}

.table tbody tr:hover {
  background: var(--hover-overlay);
}

.user-directory-table td:last-child,
.user-directory-table th:last-child {
  width: 120px;
  text-align: right;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .page-root {
    padding: var(--space-4);
  }
  .card {
    padding: var(--space-4);
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .filters {
    flex-direction: column;
  }
  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-responsive .table {
    display: table;
    overflow: visible;
  }
  .table th,
  .table td {
    white-space: nowrap;
  }
  .user-directory-table {
    min-width: 0;
  }
  .user-directory-table thead {
    display: none;
  }
  .user-directory-table tbody,
  .user-directory-table tr,
  .user-directory-table td {
    display: block;
    width: 100%;
  }
  .user-directory-table tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    background: var(--bg-surface-1);
    padding: 0.45rem 0.7rem;
  }
  .user-directory-table td {
    white-space: normal;
    border-bottom: 1px dashed var(--border-subtle);
    text-align: left !important;
    padding: 0.5rem 0;
  }
  .user-directory-table td:last-child {
    border-bottom: none;
    padding-top: 0.65rem;
  }
  .user-directory-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
  }
  .stack-on-mobile {
    flex-direction: column;
    align-items: stretch;
  }
  .stack-on-mobile > * {
    width: 100%;
  }
  .handover-notes {
    max-width: 100%;
  }
  .field-min-180,
  .field-min-220,
  .field-min-260 {
    min-width: 0;
    width: 100%;
  }
  .responsive-min-width {
    min-width: 0;
    width: 100%;
  }
  .email-actions-col {
    width: auto;
  }
  .topbar {
    flex-wrap: wrap;
    height: auto;
    gap: 0.5rem;
  }
  .topbar-left,
  .topbar-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .topbar-logo-text,
  .topbar-user-text {
    display: none;
  }
  .theme-toggle {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .siem-root {
    flex-direction: column;
  }
  .siem-panel {
    width: 100%;
  }
  .siem-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .siem-toolbar-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .siem-search {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-title {
    font-size: var(--text-1);
  }
  .card-subtitle {
    font-size: var(--text-0-95);
  }
  .card-value {
    font-size: var(--text-1-5);
  }
  .stack-horizontal {
    flex-direction: column;
    align-items: stretch;
  }
  .stack-horizontal > * {
    width: 100%;
  }
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.filters-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text-muted);
  font-size: var(--text-0-95);
}

.card-title {
  font-size: var(--text-1-1); /* +2px */
  font-weight: 500;
  color: var(--text-primary);
}

.link {
  color: var(--link);
  text-decoration: none;
}

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

.card-subtitle {
  font-size: var(--text-1); /* +2px */
  color: var(--text-muted);
}

.card-value {
  font-size: var(--text-1-7); /* +2px */
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border-radius: 999px;
  font-size: var(--text-0-9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.risk-chip {
  gap: var(--space-2);
  font-weight: 600;
}

.risk-chip-counts {
  font-size: var(--text-0-8);
  opacity: 0.8;
}

.risk-critical {
  border-color: var(--severity-critical-text);
  color: var(--severity-critical-text);
  background: var(--severity-critical-bg);
}

.risk-high {
  border-color: var(--severity-high-text);
  color: var(--severity-high-text);
  background: var(--severity-high-bg);
}

.risk-medium {
  border-color: var(--severity-medium-text);
  color: var(--severity-medium-text);
  background: var(--severity-medium-bg);
}

.risk-low {
  border-color: var(--severity-low-text);
  color: var(--severity-low-text);
  background: var(--severity-low-bg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-h);
  padding: 0 var(--space-4);
  border-radius: var(--r-input);
  font-size: var(--text-1-05);
  border: 1px solid rgba(var(--accent-400-rgb), 0.35);
  cursor: pointer;
  background: rgba(var(--accent-400-rgb), 0.14);
  color: var(--text-primary);
  box-shadow: none;
  transition:
    background 0.15s ease-out,
    border-color 0.15s ease-out,
    transform 0.12s ease-out;
}

.btn:hover {
  background: rgba(var(--accent-400-rgb), 0.18);
  transform: translateY(-1px);
}

.btn-primary {
  background: rgba(var(--accent-400-rgb), 0.18);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: rgba(var(--accent-400-rgb), 0.24);
}

.btn-secondary {
  background: rgba(60, 248, 255, 0.10);
  border-color: rgba(60, 248, 255, 0.35);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(60, 248, 255, 0.14);
  border-color: rgba(60, 248, 255, 0.6);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--hover-overlay);
  color: var(--text-primary);
}

.btn-danger {
  background: linear-gradient(135deg, #ff4d6d, #c9183c);
  color: var(--text-inverse);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #ff6b84, #d32048);
  box-shadow: 0 12px 30px rgba(255, 77, 109, 0.45);
}

.btn-sm {
  min-height: calc(var(--control-h) - var(--space-2));
  padding: 0 var(--space-3);
  border-radius: var(--r-input);
  font-size: var(--text-0-95);
}

.stack-vertical {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stack-horizontal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

/* Email Security dashboard — Threat volume “Top senders” (avoids overflow on narrow cards) */
.threat-volume-sender-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.threat-volume-sender-email {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.threat-volume-sender-bar-wrap {
  min-width: 0;
}
.threat-volume-sender-bar-track {
  height: 8px;
  border-radius: 6px;
  background: var(--hover-overlay);
  overflow: hidden;
}
.threat-volume-sender-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: var(--accent-400);
  min-width: 2px;
  transition: width 0.2s ease;
}
.threat-volume-sender-count {
  flex-shrink: 0;
  justify-self: end;
}
@media (max-width: 640px) {
  .threat-volume-sender-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 6px;
  }
  .threat-volume-sender-email {
    grid-column: 1 / -1;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: unset;
  }
  .threat-volume-sender-bar-wrap {
    grid-column: 1;
  }
  .threat-volume-sender-count {
    grid-column: 2;
    align-self: center;
    justify-self: end;
  }
}

.stack-on-mobile {
  flex-wrap: wrap;
}

.stack-on-mobile > * {
  min-width: 0;
}

.full-width {
  width: 100%;
}

.fluid-panel {
  width: min(720px, 100%);
  margin-inline: auto;
}

.responsive-min-width {
  min-width: clamp(160px, 28vw, 260px);
}

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--bg-app);
  padding: var(--space-4);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-error {
  padding: 0.75rem;
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-text);
  border-radius: 4px;
  color: var(--status-danger-text);
  margin-bottom: 1rem;
}

.auth-demo {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.severity-row {
  display: flex;
  justify-content: space-between;
  width: clamp(120px, 20vw, 160px);
}

.cti-fallback-card {
  margin: 2rem auto;
  max-width: min(680px, 100%);
}

.handover-notes {
  max-width: 220px;
}

.field-min-180 {
  min-width: 180px;
}

.field-min-220 {
  min-width: 220px;
}

.field-min-260 {
  min-width: 260px;
}

.email-actions-col {
  width: clamp(160px, 30vw, 260px);
}

.workplan-flow {
  width: 100%;
  min-height: 320px;
  height: min(480px, 60vh);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-1);
}

.field input,
.field select,
.field textarea {
  border-radius: var(--r-input);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  min-height: var(--control-h);
  padding: 0 var(--space-3);
  font-size: var(--text-1-05);
  color: inherit;
  backdrop-filter: blur(10px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-400);
  box-shadow: var(--focus-ring);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: var(--text-1); /* +2px */
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.field-label {
  color: var(--text-muted);
}

.field-control {
  border-radius: var(--r-input);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  padding: 0.4rem 0.6rem;
  font-size: var(--text-1-05); /* +2px */
  backdrop-filter: blur(10px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.field-control:focus {
  outline: none;
  border-color: var(--accent-400);
  box-shadow: var(--focus-ring);
}

.field-error {
  color: var(--status-danger-text);
  font-size: var(--text-0-9);
}

.tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.9rem;
}

.tab {
  flex: 1;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: var(--text-1); /* +2px */
  text-align: center;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition:
    background 0.12s ease-out,
    color 0.12s ease-out,
    box-shadow 0.12s ease-out,
    transform 0.05s ease-out;
}

.tab-active {
  background: linear-gradient(120deg, var(--accent-500), var(--accent-600));
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
  transform: translateY(-0.5px);
}

.severity-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: var(--text-0-95); /* +2px */
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.severity-informational {
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
}

.severity-low {
  background: var(--severity-low-bg);
  border: 1px solid var(--severity-low-text);
  color: var(--severity-low-text);
}

.severity-medium {
  background: var(--severity-medium-bg);
  border: 1px solid var(--severity-medium-text);
  color: var(--severity-medium-text);
}

.severity-high {
  background: var(--severity-high-bg);
  border: 1px solid var(--severity-high-text);
  color: var(--severity-high-text);
}

.severity-critical {
  background: var(--severity-critical-bg);
  border: 1px solid var(--severity-critical-text);
  color: var(--severity-critical-text);
}

.donut-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
}

.donut-chart {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  position: relative;
  box-shadow:
    inset 0 0 30px rgba(var(--neutral-950-rgb), 0.35),
    0 10px 30px rgba(var(--neutral-950-rgb), 0.45);
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin-top: -40px;
  margin-left: -40px;
  border-radius: 999px;
  background: var(--bg-surface-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  box-shadow: inset 0 0 20px rgba(var(--neutral-950-rgb), 0.35);
}

.donut-value {
  font-size: var(--text-1-4);
  font-weight: 600;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-content {
  background-color: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.5rem;
  width: min(700px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.modal-title {
  font-size: var(--text-1-25);
  font-weight: 600;
}

.modal-subtitle {
  font-size: var(--text-0-9);
  color: var(--text-muted);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: var(--text-1-5);
  cursor: pointer;
}

.modal-body {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  display: flex;
  justify-content: flex-end;
  z-index: 120;
}

.drawer-panel {
  width: min(560px, 96vw);
  height: 100%;
  background: var(--bg-surface-1);
  border-left: 1px solid var(--border-subtle);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.drawer-title {
  font-size: var(--text-1-25);
  font-weight: 600;
}

.drawer-subtitle {
  color: var(--text-muted);
  font-size: var(--text-0-95);
}

.drawer-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: auto;
  padding-right: 0.5rem;
}

.drawer-fields {
  display: grid;
  gap: 0.9rem;
}

.drawer-field {
  display: grid;
  gap: 0.35rem;
}

.drawer-field-label {
  font-size: var(--text-0-85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.drawer-field-value {
  font-size: var(--text-0-98);
}

.drawer-field-value.mono {
  font-family: var(--font-mono);
}

.drawer-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drawer-section-title {
  font-size: var(--text-0-8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-fields-after-sections {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.tag.timeline-kind-alert {
  border: 1px solid var(--palette-f87171);
  color: var(--palette-f87171);
  background: transparent;
}

.tag.timeline-kind-event {
  border: 1px solid var(--palette-60a5fa);
  color: var(--palette-60a5fa);
  background: transparent;
}

.tag.timeline-kind-incident {
  border: 1px solid var(--palette-fbbf24);
  color: var(--palette-fbbf24);
  background: transparent;
}

.tag.timeline-kind-response {
  border: 1px solid var(--palette-34d399);
  color: var(--palette-34d399);
  background: transparent;
}

.tag.timeline-kind-default {
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  background: transparent;
}

.drawer-json {
  border: 1px solid var(--border-subtle);
  border-radius: 0.8rem;
  background: var(--bg-surface-2);
  overflow: hidden;
}

.drawer-json-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-json-title {
  font-weight: 600;
}

.drawer-json-body {
  margin: 0;
  padding: 0.85rem 0.9rem;
  font-size: var(--text-0-85);
  font-family: var(--font-mono);
  white-space: pre-wrap;
  color: var(--text-secondary);
  max-height: 280px;
  overflow: auto;
}

/* PasswordGuard — KeePass-inspired vault layout */
.vault-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vault-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 960px) {
  .vault-shell {
    grid-template-columns: 1fr;
  }
}

.vault-aside {
  border-radius: var(--radius-md, 0.85rem);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(165deg, var(--bg-surface-2) 0%, rgba(15, 18, 28, 0.92) 100%);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vault-aside-title {
  font-size: var(--text-0-75);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
}

.vault-aside-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: var(--text-0-9);
}

.vault-aside-stat strong {
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.vault-main {
  min-width: 0;
}

.vault-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.vault-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.45rem;
  font-size: var(--text-0-8);
  font-weight: 600;
  background: rgba(96, 165, 250, 0.12);
  color: var(--accent-300, #93c5fd);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.vault-drawer-section-title {
  font-size: var(--text-0-75);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 1rem 0 0.5rem;
  font-weight: 700;
}

/* Network Security — live feed (polling) */
.net-live-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  margin-bottom: 1rem;
}

.net-live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--text-0-85);
}

.net-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.net-live-dot-off {
  background: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.net-live-terminal {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  background: #07080d;
  border: 1px solid var(--border-subtle);
  border-radius: 0.65rem;
  padding: 0.85rem 1rem;
  max-height: min(52vh, 480px);
  overflow: auto;
  color: #b8c0d4;
}

.net-live-line {
  margin: 0 0 0.35rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.net-live-line-muted {
  color: #5c6578;
}

.passwordguard-timeline {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
}

.passwordguard-timeline-title {
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.passwordguard-timeline-empty {
  color: var(--text-muted);
}

.passwordguard-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.passwordguard-timeline-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: var(--space-3);
  align-items: start;
}

.passwordguard-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 4px;
  background: var(--accent-400);
  box-shadow: 0 0 0 3px rgba(var(--accent-400-rgb), 0.2);
}

.passwordguard-timeline-action {
  font-weight: 600;
}

.passwordguard-timeline-meta {
  color: var(--text-muted);
  font-size: var(--text-0-9);
}

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 200;
  max-width: 360px;
}

.toast {
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-subtle);
  border-radius: 0.85rem;
  padding: 0.85rem 0.95rem;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 0.5rem;
}

.toast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.toast-title {
  font-weight: 600;
}

.toast-message {
  color: var(--text-muted);
  font-size: var(--text-0-95);
}

.toast-details summary {
  cursor: pointer;
  color: var(--link);
  font-size: var(--text-0-85);
}

.toast-details pre {
  margin-top: 0.5rem;
  font-size: var(--text-0-8);
  white-space: pre-wrap;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: var(--text-1-1);
  cursor: pointer;
}

.toast-success {
  border-color: var(--status-success-text);
}

.toast-error {
  border-color: var(--status-danger-text);
}

.toast-warning {
  border-color: var(--status-warning-text);
}

.toast-info {
  border-color: var(--status-info-text);
}

.state {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  text-align: center;
}

.state-title {
  font-weight: 600;
}

.state-text {
  color: var(--text-muted);
  font-size: var(--text-0-95);
}

.state-action {
  margin-top: 0.4rem;
}

.state-details summary {
  cursor: pointer;
  color: var(--link);
  font-size: var(--text-0-85);
}

.state-details pre {
  margin-top: 0.5rem;
  font-size: var(--text-0-8);
  white-space: pre-wrap;
}

.state-loading {
  align-items: center;
  justify-items: center;
}

.state-spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--link);
  animation: spin 1s linear infinite;
}

.debug-panel {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  display: grid;
  gap: 0.4rem;
  font-size: var(--text-0-8);
  max-width: 340px;
  z-index: 190;
}

.debug-panel-title {
  font-weight: 600;
  color: var(--link);
}

.debug-panel-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
}

.debug-panel-row code {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-0-75);
  word-break: break-all;
}

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

.code-block {
  background-color: var(--bg-surface-2);
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-0-9);
  white-space: pre-wrap;
  word-break: break-word;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: var(--text-0-92); /* +2px */
  text-transform: uppercase;
  letter-spacing: 0.09em;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.ot-root .status-live,
.ot-root .status-online,
.ot-root .status-done {
  border-color: var(--status-success-text);
  color: var(--status-success-text);
}

.ot-root .status-stale,
.ot-root .status-degraded {
  border-color: var(--status-warning-text);
  color: var(--status-warning-text);
}

.ot-root .status-offline,
.ot-root .status-failed,
.ot-root .status-closed {
  border-color: var(--status-danger-text);
  color: var(--status-danger-text);
}

.ot-root .status-running,
.ot-root .status-open {
  border-color: var(--status-info-text);
  color: var(--status-info-text);
}

.ot-root .status-queued {
  border-color: var(--status-info-text);
  color: var(--status-info-text);
}

.ot-root .status-in-progress {
  border-color: var(--status-warning-text);
  color: var(--status-warning-text);
}

.status-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--status-success-text);
}

.status-in-progress .status-pill-dot {
  background: var(--status-warning-text);
}

.status-closed .status-pill-dot {
  background: var(--text-muted);
}

.ot-root .loading-skeleton-line {
  display: block;
  height: 10px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--hover-overlay) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
}

@keyframes skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.ot-root .table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.ot-root .pagination-info {
  color: var(--text-muted);
  font-size: var(--text-0-95);
}

.ot-root .pagination-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ot-root .pagination-page {
  color: var(--text-muted);
  font-size: var(--text-0-95);
}

.ot-root .ot-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  font-size: var(--text-0-85);
  color: var(--text-muted);
}

.ot-root .text-link {
  background: none;
  border: none;
  color: var(--link);
  font-size: var(--text-1);
  cursor: pointer;
  padding: 0;
}

.ot-root .text-link:hover {
  text-decoration: underline;
}

.ot-root .table-row-actions {
  opacity: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--text-1);
}

.ot-root .table tbody tr:hover .table-row-actions,
.ot-root .table tbody tr:focus-within .table-row-actions {
  opacity: 1;
}

.ot-root .table-row-clickable {
  cursor: pointer;
}

.ot-root .ot-kpi-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 150px;
}

.ot-root .ot-kpi-icon {
  font-size: 1.6rem;
}

.ot-root .ot-kpi-value {
  font-size: var(--text-1-7);
  font-weight: 600;
}

.ot-root .ot-kpi-label {
  color: var(--text-muted);
  font-size: var(--text-0-95);
}

.ot-root .ot-kpi-meta {
  color: var(--text-muted);
  font-size: var(--text-0-9);
}

.ot-root .ot-kpi-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ot-root .ot-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--space-4);
}

.ot-root .ot-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ot-root .ot-activity-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-2);
}

.ot-root .ot-activity-summary {
  font-size: var(--text-1);
}

.ot-root .ot-activity-meta {
  font-size: var(--text-0-85);
  color: var(--text-muted);
}

.ot-root .ot-activity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ot-root .ot-protocol-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ot-root .ot-filter-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(6px);
}

.ot-root .direction-pill-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ot-root .direction-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-muted);
  font-size: var(--text-0-85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.ot-root .direction-pill-active {
  background: var(--accent-400);
  color: var(--text-inverse);
  border-color: var(--accent-400);
}

.ot-root .direction-pill-icon {
  font-size: 0.9rem;
}

.ot-root .capability-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ot-root .capability-badge {
  text-transform: none;
  letter-spacing: normal;
}

.ot-root .evidence-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ot-root .evidence-list-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
}

.ot-root .evidence-key {
  color: var(--text-muted);
  font-size: var(--text-0-9);
}

.ot-root .evidence-value {
  color: var(--text-primary);
}

.ot-root .ot-simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ot-root .ot-simple-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.ot-root .ot-simple-list li:last-child {
  border-bottom: none;
}

.ot-root .ot-upload-card {
  text-align: center;
  border-style: dashed;
  border-width: 2px;
  border-color: var(--border-subtle);
}

.ot-root .ot-upload-icon {
  font-size: 2.8rem;
}

.ot-root .ot-upload-title {
  margin-top: 0.5rem;
  font-size: var(--text-1-1);
}

.ot-root .ot-upload-subtitle {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: var(--text-0-9);
}

.ot-root .ot-upload-input {
  margin: 1rem auto 0;
}

.ot-root .ot-upload-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-surface-3);
  overflow: hidden;
  margin-top: 0.75rem;
}

.ot-root .ot-upload-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--accent-400);
  transition: width 0.3s ease-out;
}

.ot-root .ot-ordered-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-muted);
}

.ot-root .drawer-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1rem;
}

@media (max-width: 1024px) {
  .ot-root .ot-main-grid {
    grid-template-columns: 1fr;
  }
}

.alert-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.8rem;
  border-radius: 0.7rem;
  cursor: pointer;
  transition:
    background 0.08s ease-out,
    transform 0.06s ease-out,
    box-shadow 0.08s ease-out;
}

.alert-row:hover {
  background: var(--hover-overlay);
  transform: translateY(-0.5px);
  box-shadow: var(--shadow-sm);
}

.alert-row-button {
  border: none;
  background: transparent;
  width: 100%;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.alert-row-button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 0.7rem;
}

.alert-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.alert-row-title {
  font-size: var(--text-1-1); /* +2px */
  font-weight: 500;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

.alert-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: var(--text-0-95); /* +2px */
  color: var(--text-muted);
}

.tag {
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--border-subtle);
  font-size: var(--text-0-9); /* +2px */
}

.muted {
  color: var(--text-muted);
  font-size: var(--text-1); /* +2px */
}

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

@media (max-width: 768px) {
  .app-main {
    padding: 1rem;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.theme-toggle {
  min-width: 108px;
}

.topbar-icon-button {
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface-2);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.topbar-icon-button:hover {
  border-color: var(--accent-400);
  box-shadow: var(--shadow-sm);
}

.topbar-hamburger {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.topbar-hamburger span {
  width: 20px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--text-primary);
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.topbar-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at top, var(--accent-400) 0, var(--accent-600) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-0-8);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-inverse);
}

.topbar-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.topbar-logo-title {
  font-size: var(--text-1-15); /* +2px */
  font-weight: 600;
}

.topbar-logo-subtitle {
  font-size: var(--text-0-95); /* +2px */
  color: var(--text-muted);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.topbar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at top, var(--bg-surface-2) 0, var(--bg-surface-1) 65%);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-0-8);
  font-weight: 600;
}

.topbar-user-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.topbar-user-name {
  font-size: var(--text-1-05); /* +2px */
}

.topbar-user-role {
  font-size: var(--text-0-95); /* +2px */
  color: var(--text-muted);
}

.topbar-shift-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--selected-bg);
  border: 1px solid var(--accent-400);
  font-size: var(--text-0-92); /* +2px */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.sidebar {
  width: 260px;
  padding: 0.9rem 0.65rem;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-surface-1);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: fixed;
  inset: 56px auto 0 0;
  transform: translateX(-100%);
  transition: transform 0.18s ease-out;
  z-index: 50;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.sidebar-open {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.4rem;
  margin-bottom: 0.5rem;
}

.sidebar-burger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.15s ease-out;
}

.sidebar-burger:hover {
  background: var(--hover-overlay);
}

.sidebar-burger span {
  width: 24px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 999px;
  transition: all 0.2s ease-out;
}

.sidebar-logo {
  font-size: var(--text-1-15); /* +2px */
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-section-title {
  font-size: var(--text-0-95); /* +2px */
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding: 0 0.4rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-mobile-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.7rem;
  text-decoration: none;
  color: inherit;
  transition:
    background 0.11s ease-out,
    transform 0.06s ease-out,
    box-shadow 0.11s ease-out,
    border-color 0.11s ease-out;
  border: 1px solid transparent;
}

.sidebar-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: currentColor;
}

.sidebar-link-label {
  font-size: var(--text-1-05); /* +2px */
  flex: 1;
}

.sidebar-link-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sidebar-link:hover {
  background: var(--hover-overlay);
  border-color: var(--border-strong);
  transform: translateY(-0.5px);
  box-shadow: var(--shadow-sm);
}

.sidebar-link-active {
  background: var(--selected-bg);
  border-color: var(--accent-400);
  box-shadow: var(--shadow-sm);
}

.sidebar-icon {
  width: 28px;
  height: 28px;
  border-radius: 0.7rem;
  background: var(--bg-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 1.6;
}

.sidebar-label {
  font-size: var(--text-1-05); /* +2px */
}

.sidebar-section-pill {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.1rem 0.55rem;
  font-size: var(--text-0-92); /* +2px */
  color: var(--text-muted);
}

.sidebar-backdrop {
  position: fixed;
  inset: 56px 0 0 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(4px);
  z-index: 40;
  cursor: pointer;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  max-width: 100%;
  overflow-y: hidden;
  scrollbar-gutter: stable both-edges;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-0-95);
  min-width: max(520px, 100%);
}

.table.scrollable {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 480px;
  overflow-y: auto;
}

.table-row {
  display: grid;
  grid-template-columns: 180px 140px 120px 140px 1fr;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: inherit;
  text-align: left;
}

.table-row.table-header {
  border: none;
  background: transparent;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.table-row:not(.table-header) {
  cursor: pointer;
  transition:
    border-color 0.12s ease-out,
    transform 0.08s ease-out;
}

.table-row:not(.table-header):hover {
  border-color: var(--accent-400);
  transform: translateY(-1px);
}

button.table-row {
  background: none;
  border: none;
  width: 100%;
}

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

.table tbody tr {
  cursor: pointer;
  transition: background 0.12s ease-out;
}

.table tbody tr:hover {
  background: var(--hover-overlay);
}

.table-row-active {
  background: var(--selected-bg);
}

.sidebar-link-active,
.table-row-active,
.kql-table-row-selected,
.tab-active,
.ti-hunt-list-item.is-active {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.sidebar-link-active::before,
.table-row-active::before,
.kql-table-row-selected::before,
.tab-active::before,
.ti-hunt-list-item.is-active::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    120% 120% at 50% 50%,
    rgba(46, 252, 138, 0.32) 0%,
    rgba(56, 189, 248, 0.22) 40%,
    rgba(168, 85, 247, 0.12) 60%,
    transparent 75%
  );
  opacity: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

.sidebar-link-active > *,
.table-row-active > *,
.kql-table-row-selected > *,
.tab-active > *,
.ti-hunt-list-item.is-active > * {
  position: relative;
  z-index: 1;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-wide {
  width: min(900px, 95vw);
}

.inventory-page {
  gap: 1.5rem;
}

.inventory-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: var(--text-0-95);
  color: var(--text-muted);
}

.inventory-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.inventory-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.inventory-filter span {
  font-size: var(--text-0-85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.inventory-table-card {
  padding: 1.2rem;
}

.inventory-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.inventory-table th {
  font-size: var(--text-0-8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.inventory-table td {
  vertical-align: middle;
}

.inventory-mono {
  font-family: var(--font-mono);
  font-size: var(--text-0-85);
  color: var(--text-muted);
}

.inventory-link {
  color: var(--link);
  font-weight: 600;
}

.inventory-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: var(--text-0-85);
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.inventory-status-approved {
  color: var(--status-success-text);
  background: var(--status-success-bg);
  border-color: var(--status-success-text);
}

.inventory-status-vulnerable {
  color: var(--status-danger-text);
  background: var(--status-danger-bg);
  border-color: var(--status-danger-text);
}

.inventory-status-neutral {
  color: var(--text-muted);
  background: var(--bg-surface-3);
  border-color: var(--border-subtle);
}

.inventory-modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 1.5rem;
}

.inventory-modal {
  width: min(960px, 95vw);
  max-height: 90vh;
  overflow: hidden;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.inventory-modal-header,
.inventory-modal-footer {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.inventory-modal-footer {
  border-top: 1px solid var(--border-subtle);
  border-bottom: none;
  justify-content: flex-end;
}

.inventory-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.inventory-upload {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.inventory-upload-header {
  font-size: var(--text-0-95);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.inventory-upload-box {
  border: 2px dashed var(--border-subtle);
  border-radius: 0.9rem;
  padding: 2rem;
  text-align: center;
  background: var(--bg-surface-2);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.inventory-upload-box:focus-visible {
  outline: 2px solid var(--accent, #60a5fa);
  outline-offset: 2px;
}

.inventory-upload-box-active {
  border-color: var(--accent, #60a5fa);
  background: color-mix(in srgb, var(--accent, #60a5fa) 12%, var(--bg-surface-2));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent, #60a5fa) 35%, transparent);
}

.list {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.list li {
  margin-bottom: 0.3rem;
}

.sandbox-dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg-surface-2);
}

.sandbox-dropzone-icon {
  font-size: var(--text-2);
  margin-bottom: 0.5rem;
}

.sandbox-dropzone-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.sandbox-dropzone-subtitle {
  color: var(--text-muted);
}

.sandbox-mini {
  padding: 0.75rem 1rem;
}

.sandbox-verdict {
  font-size: var(--text-1-4);
  font-weight: 700;
}

.sandbox-verdict.malicious {
  color: var(--status-danger-text);
}

.progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--bg-surface-3);
  margin: 0.5rem 0;
  overflow: hidden;
}

.progress-track {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--data-viz1), var(--data-viz2));
}

/* --- SIEM --- */
.siem-root {
  display: flex;
  gap: 1.5rem;
}

.siem-panel {
  width: 260px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: fit-content;
}

.siem-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.siem-profile {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.siem-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.siem-profile-name {
  font-weight: 600;
}

.siem-profile-email {
  font-size: var(--text-0-85);
  color: var(--text-muted);
}

.siem-panel-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.siem-panel-title {
  font-size: var(--text-1);
  font-weight: 600;
}

.siem-panel-subtitle {
  color: var(--text-muted);
  font-size: var(--text-0-9);
}

.siem-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.siem-checkbox {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: var(--text-0-95);
}

.siem-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.siem-search {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  padding: 0.6rem 1rem;
  color: inherit;
}

.siem-toolbar-right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.siem-live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
}
.siem-live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--palette-94a3b8);
}
.siem-live-dot.connected {
  background: var(--palette-34d399);
}
.siem-live-dot.connecting,
.siem-live-dot.reconnecting {
  background: var(--palette-fbbf24);
}
.siem-live-dot.offline {
  background: var(--palette-f87171);
}

.siem-range {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: inherit;
  padding: 0.4rem 0.8rem;
}

.siem-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.siem-metric-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1rem;
}

.siem-metric-label {
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.siem-metric-value {
  font-size: var(--text-2);
  font-weight: 600;
}

.siem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.siem-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.siem-card {
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.2rem;
  background: var(--bg-surface-1);
}

.siem-card.large {
  min-height: 240px;
}

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

.siem-card-title {
  font-weight: 600;
}

.siem-card-subtitle {
  color: var(--text-muted);
  font-size: var(--text-0-85);
}

.siem-card-actions {
  font-size: var(--text-0-85);
}

.siem-eps-value {
  font-size: var(--text-2-8);
  font-weight: 600;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.siem-eps-delta {
  font-size: var(--text-1);
}

.siem-eps-delta.positive {
  font-size: var(--text-1);
  color: var(--status-success-text);
}

.siem-eps-delta.negative {
  color: var(--status-danger-text);
}

.siem-eps-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: var(--text-0-85);
}

.siem-sparkline {
  margin-top: 1rem;
}

.eps-sparkline {
  width: 100%;
  height: 120px;
}

.sparkline-grid line {
  stroke: var(--border-subtle);
  stroke-dasharray: 3 4;
  opacity: 0.7;
}

.sparkline-area {
  fill: url(#epsGradient);
}

.sparkline-line {
  fill: none;
  stroke: var(--data-viz1);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--data-viz1), transparent 55%));
}

.sparkline-dot {
  fill: var(--data-viz1);
  stroke: var(--bg-surface-1);
  stroke-width: 1.5;
}

.siem-placeholder {
  border: 1px dashed var(--border-subtle);
  height: 220px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-1-1);
}

.siem-placeholder-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.siem-placeholder-link:hover {
  color: var(--accent-hover, var(--accent));
  text-decoration: underline;
}

.siem-bar-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.siem-bar-item {
  display: grid;
  grid-template-columns: 1fr 3fr auto;
  gap: 0.5rem;
  align-items: center;
}

.siem-bar-track {
  background: var(--bg-surface-3);
  border-radius: 999px;
  height: 6px;
  position: relative;
}

.siem-bar-fill {
  background: linear-gradient(90deg, var(--data-viz1), var(--data-viz2));
  height: 100%;
  border-radius: 999px;
}

.siem-bar-value {
  font-size: var(--text-0-85);
  color: var(--text-muted);
}

.siem-table {
  display: flex;
  flex-direction: column;
}

.siem-table-head,
.siem-table-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.6fr 2fr;
  gap: 0.5rem;
  padding: 0.75rem;
}

.siem-table-head span,
.siem-table-row span {
  min-width: 0;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.siem-table-head {
  font-size: var(--text-0-85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.siem-table-row {
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  text-align: left;
  cursor: pointer;
}

.siem-table-row:hover {
  border-color: var(--accent-400);
}

.siem-table-body {
  gap: 0.3rem;
}

/* KQL Workbench ------------------------------------------------------ */
.kql-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
}

.kql-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.kql-title {
  font-size: var(--text-1-5);
  font-weight: 600;
}

.kql-subtitle {
  color: var(--text-muted);
}

.kql-metrics {
  display: flex;
  gap: 1rem;
}

.kql-metric {
  background: var(--bg-surface-2);
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  min-width: 140px;
}

.kql-metric span {
  display: block;
  font-size: var(--text-0-75);
  color: var(--text-muted);
}

.kql-metric strong {
  font-size: var(--text-1-35);
  color: var(--text-primary);
}

.kql-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
}

.kql-editor-card {
  background: var(--bg-surface-1);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}

.kql-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.kql-toolbar-left {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.kql-limit-field {
  display: flex;
  flex-direction: column;
  font-size: var(--text-0-75);
  color: var(--text-muted);
  gap: 0.25rem;
}

.kql-limit-field input {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  padding: 0.35rem 0.5rem;
  color: var(--text-primary);
  width: 96px;
}

.kql-connection {
  font-size: var(--text-0-85);
  color: var(--text-muted);
}

.kql-toolbar-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.kql-editor-input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: var(--text-0-94);
  line-height: 1.5;
  background: var(--bg-surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1rem;
  min-height: 200px;
  resize: vertical;
}

.kql-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: var(--text-0-85);
  color: var(--text-muted);
}

.kql-status-item {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.kql-error {
  color: var(--status-danger-text);
}

.kql-fields {
  flex-wrap: wrap;
}

.kql-field-pill {
  background: var(--bg-surface-3);
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: var(--text-0-75);
}

.kql-sidepanel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kql-side-section {
  background: var(--bg-surface-1);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kql-side-title {
  font-weight: 600;
}

.kql-side-subtitle {
  color: var(--text-muted);
  font-size: var(--text-0-85);
}

.kql-sample,
.kql-history {
  width: 100%;
  text-align: left;
  border: none;
  background: var(--bg-surface-2);
  border-radius: 0.75rem;
  padding: 0.6rem 0.8rem;
  color: inherit;
  cursor: pointer;
}

.kql-sample + .kql-sample,
.kql-history + .kql-history {
  margin-top: 0.5rem;
}

.kql-sample:hover,
.kql-history:hover {
  background: var(--hover-overlay);
}

.kql-sample-label {
  font-weight: 600;
}

.kql-sample-description {
  color: var(--text-muted);
  font-size: var(--text-0-85);
}

.kql-results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
}

.kql-results-card {
  background: var(--bg-surface-1);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kql-results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.kql-results-title {
  font-weight: 600;
}

.kql-results-subtitle {
  color: var(--text-muted);
  font-size: var(--text-0-85);
}

.kql-table-wrapper {
  overflow-x: auto;
}

.kql-table {
  min-width: 100%;
}

.kql-table-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.25rem;
  font-size: var(--text-0-85);
  color: var(--text-muted);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-subtle);
}

.kql-table-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.25rem;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
}

.kql-table-row:hover {
  background: var(--hover-overlay);
}

.kql-table-row-selected {
  background: var(--selected-bg);
}

.kql-side-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kql-mini-card {
  background: var(--bg-surface-1);
  border-radius: 1rem;
  padding: 1rem;
}

.kql-mini-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.kql-mini-card-title {
  font-weight: 600;
}

.kql-mini-card-subtitle {
  color: var(--text-muted);
  font-size: var(--text-0-85);
}

.kql-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.kql-timeline-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-0-85);
}

.kql-timeline-row span:first-child {
  min-width: 140px;
  color: var(--text-muted);
}

.kql-timeline-bar {
  flex: 1;
  background: var(--bg-surface-3);
  border-radius: 999px;
  height: 8px;
  position: relative;
}

.kql-timeline-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--data-viz2), var(--data-viz1));
}

.kql-json-viewer {
  background: var(--bg-surface-2);
  color: var(--text-primary);
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--text-0-85);
  max-height: 320px;
  overflow: auto;
}

@media (max-width: 1200px) {
  .kql-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .kql-results-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .kql-sidepanel {
    flex-direction: row;
  }
}

@media (max-width: 900px) {
  .kql-sidepanel {
    flex-direction: column;
  }

  .kql-metrics {
    flex-direction: column;
  }
}

/* Threat intel + hunting workspace */
.alert {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  color: var(--text-primary);
}

.alert-error {
  border-color: rgba(239, 83, 80, 0.45);
  background: rgba(239, 83, 80, 0.12);
  color: var(--text-primary);
}

.alert-info {
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.12);
}

.alert-warn {
  border-color: rgba(255, 193, 7, 0.4);
  background: rgba(255, 193, 7, 0.12);
}

.badge-benign {
  border-color: rgba(76, 175, 80, 0.45);
  color: var(--text-primary);
  background: rgba(76, 175, 80, 0.15);
}

.badge-suspicious {
  border-color: rgba(255, 193, 7, 0.45);
  color: var(--text-primary);
  background: rgba(255, 193, 7, 0.18);
}

.badge-malicious {
  border-color: rgba(239, 83, 80, 0.5);
  color: var(--text-primary);
  background: rgba(239, 83, 80, 0.2);
}

.badge-unknown {
  border-color: rgba(144, 164, 174, 0.45);
  background: rgba(144, 164, 174, 0.15);
}

.provider-status {
  text-transform: capitalize;
  letter-spacing: 0.03em;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  font-size: var(--text-0-85);
  color: var(--text-primary);
}

.ti-console-inputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.ti-console-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ti-console-actions {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
}

.ti-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-0-9);
  color: var(--text-muted);
}

.ti-observable-value {
  font-size: var(--text-1-2);
  font-weight: 600;
  margin-top: var(--space-2);
}

.ti-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.ti-provider-status-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.ti-provider-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.ti-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.ti-related-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: var(--bg-surface-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.ti-related-value {
  font-weight: 600;
  word-break: break-word;
}

.ti-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.ti-provider-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  background: var(--bg-surface-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ti-provider-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.ti-provider-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ti-provider-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.ti-reference-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.ti-reference-list a {
  color: var(--palette-00e5ff);
  font-size: var(--text-0-9);
}

.ti-summary {
  font-size: var(--text-0-95);
  color: var(--text-secondary);
}

.ti-raw-details {
  margin-top: var(--space-2);
}

.ti-raw-details pre {
  margin-top: var(--space-2);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  max-height: 260px;
  overflow: auto;
  font-size: var(--text-0-85);
}

.ti-batch-controls {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: var(--space-4);
}

.ti-batch-textarea {
  min-height: 220px;
  resize: vertical;
}

.ti-batch-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ti-batch-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.ti-stat {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: var(--bg-surface-2);
}

.ti-preview-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
  max-height: 320px;
  overflow: auto;
}

.ti-preview-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-surface-2);
}

.ti-load-more {
  margin-top: var(--space-3);
  display: flex;
  justify-content: center;
}

.ti-map-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
}

.ti-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  z-index: 60;
}

.ti-modal {
  width: min(720px, 100%);
  max-height: 80vh;
  overflow: auto;
  border-radius: var(--radius-xl);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ti-modal-header,
.ti-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.ti-modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ti-modal-section pre {
  margin-top: var(--space-2);
  max-height: 260px;
  overflow: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: var(--space-3);
  background: var(--bg-surface-2);
  font-size: var(--text-0-85);
}

.ti-hunts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-4);
}

.ti-hunts-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ti-inline-input {
  display: flex;
  gap: var(--space-2);
}

.ti-ioc-list {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 240px;
  overflow: auto;
}

.ti-ioc-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-surface-2);
}

.ti-hunt-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.ti-hunt-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  text-align: left;
}

.ti-hunt-list-item.is-active {
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.35);
}

.ti-query-pack {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ti-query-pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.ti-query-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ti-query-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface-2);
}

.ti-query-item code {
  font-size: var(--text-0-9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ti-query-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1200px) {
  .ti-console-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ti-map-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ti-batch-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .ti-hunts-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 800px) {
  .ti-console-inputs {
    grid-template-columns: minmax(0, 1fr);
  }

  .ti-query-pack-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
:root {
  --auto-primary: var(--accent-500);
  --auto-primary-soft: rgba(var(--accent-500-rgb), 0.18);
  --auto-bg: var(--bg-app);
  --auto-panel: var(--bg-glass);
  --auto-border: var(--border-subtle);
}

.auto-root {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  color: var(--text-primary);
}

.auto-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.auto-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--auto-border);
  box-shadow: var(--shadow-sm);
}

.auto-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auto-title h1 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  margin: 0;
}

.auto-title p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-12);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.auto-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .auto-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .auto-header-actions {
    width: 100%;
  }

  .auto-header-actions .auto-button {
    flex: 1 1 auto;
  }
}

.auto-button {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: var(--text-12);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border 150ms ease;
}

.auto-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.auto-button:active {
  transform: translateY(1px);
}

.auto-button.primary {
  background: var(--auto-primary);
  color: var(--text-inverse);
  border-color: transparent;
  box-shadow: 0 0 18px rgba(var(--accent-500-rgb), 0.35);
}

.auto-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auto-toggle .material-symbols-outlined {
  font-size: 18px;
}

.auto-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  padding-bottom: 2px;
}

.auto-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  font-size: var(--text-13);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border 150ms ease;
  white-space: nowrap;
}

.auto-tab:hover {
  color: var(--text-secondary);
}

.auto-tab.active {
  color: var(--auto-primary);
  border-bottom-color: var(--auto-primary);
}

.auto-panel {
  background: var(--auto-panel);
  border: 1px solid var(--auto-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.auto-glass {
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(60, 248, 255, 0.08), transparent 55%),
    radial-gradient(120% 120% at 90% 10%, rgba(176, 107, 255, 0.08), transparent 55%),
    var(--bg-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--auto-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.auto-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 1100px) {
  .auto-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .auto-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.auto-kpi-card {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--auto-border);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border 150ms ease, transform 150ms ease;
}

.auto-kpi-card:hover {
  border-color: rgba(var(--accent-500-rgb), 0.45);
  transform: translateY(-2px);
}

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

.auto-kpi-label {
  font-size: var(--text-11);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: var(--font-semibold);
}

.auto-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--auto-primary);
  background: var(--auto-primary-soft);
}

.auto-kpi-value {
  font-size: var(--text-30);
  font-weight: var(--font-bold);
}

.auto-kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-12);
  font-weight: var(--font-bold);
}

.auto-kpi-note {
  font-size: var(--text-10);
  color: var(--text-muted);
  font-style: italic;
}

.auto-grid-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--space-6);
}

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

.auto-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-13);
}

.auto-table thead th {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--text-10);
  color: var(--text-muted);
  border-bottom: 1px solid var(--auto-border);
  padding: 12px 16px;
}

.auto-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auto-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.auto-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-size: var(--text-10);
  font-weight: var(--font-bold);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auto-badge.success {
  color: var(--status-success-text);
  background: var(--status-success-bg);
}

.auto-badge.warn {
  color: var(--status-warning-text);
  background: var(--status-warning-bg);
}

.auto-badge.danger {
  color: var(--status-danger-text);
  background: var(--status-danger-bg);
}

.auto-badge.primary {
  color: var(--auto-primary);
  background: var(--auto-primary-soft);
}

.auto-badge.muted {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
}

.auto-sidebar-card {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--auto-border);
}

.auto-risk-item {
  border-left: 3px solid var(--status-danger);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auto-risk-item.warn {
  border-left-color: var(--status-warning);
}

.auto-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.auto-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.auto-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.auto-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.auto-background-glow {
  position: fixed;
  width: 40%;
  height: 40%;
  filter: blur(120px);
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.auto-background-glow.primary {
  top: -10%;
  left: -10%;
  background: rgba(var(--accent-500-rgb), 0.12);
}

.auto-background-glow.blue {
  bottom: -5%;
  right: -5%;
  background: rgba(76, 125, 255, 0.1);
}

.auto-banner {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.05);
  font-size: var(--text-12);
}

.auto-banner button {
  border: none;
  background: none;
  color: var(--auto-primary);
  font-weight: var(--font-semibold);
  cursor: pointer;
}

.auto-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-4);
}

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

.auto-input,
.auto-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--auto-border);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 10px 12px;
  font-size: var(--text-13);
}

.auto-pill-group {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--auto-border);
}

.auto-pill {
  flex: 1;
  padding: 6px 8px;
  font-size: var(--text-11);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 10px;
}

.auto-pill.active {
  background: var(--auto-primary);
  color: var(--text-inverse);
}

.auto-checkbox-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--auto-border);
  background: rgba(0, 0, 0, 0.35);
}

.auto-checkbox-card input {
  margin-top: 4px;
}

.auto-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-18);
  font-weight: var(--font-semibold);
}

.auto-section-title .material-symbols-outlined {
  color: var(--auto-primary);
}

.auto-activity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 1100px) {
  .auto-activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .auto-activity-grid {
    grid-template-columns: 1fr;
  }
}

.auto-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-6);
}

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

.auto-simulation {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.auto-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.auto-toolbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.auto-toolbar-actions .auto-input {
  min-width: 220px;
  flex: 1 1 220px;
}

.auto-rules-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 360px;
  gap: var(--space-6);
}

@media (max-width: 1300px) {
  .auto-rules-grid {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .auto-rules-grid > aside:last-of-type {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .auto-rules-grid {
    grid-template-columns: 1fr;
  }
}

.auto-code {
  font-family: var(--font-mono);
  font-size: var(--text-11);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--auto-border);
  color: rgba(var(--accent-500-rgb), 0.8);
}

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

.auto-divider {
  border-top: 1px solid var(--auto-border);
}

:root {
  color-scheme: dark;
  --font-sans: "Aeonik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-1-1: 1.1rem;
  --text-0-75: 0.75rem;
  --text-0-8: 0.8rem;
  --text-0-85: 0.85rem;
  --text-0-9: 0.9rem;
  --text-0-92: 0.92rem;
  --text-0-94: 0.94rem;
  --text-0-95: 0.95rem;
  --text-0-98: 0.98rem;
  --text-1: 1rem;
  --text-1-05: 1.05rem;
  --text-1-15: 1.15rem;
  --text-1-25: 1.25rem;
  --text-1-35: 1.35rem;
  --text-1-4: 1.4rem;
  --text-1-5: 1.5rem;
  --text-1-55: 1.55rem;
  --text-1-7: 1.7rem;
  --text-2: 2rem;
  --text-2-8: 2.8rem;
  --text-10: 0.625rem;
  --text-11: 0.6875rem;
  --text-12: 0.75rem;
  --text-13: 0.8125rem;
  --text-14: 0.875rem;
  --text-15: 0.9375rem;
  --text-16: 1rem;
  --text-18: 1.125rem;
  --text-20: 1.25rem;
  --text-22: 1.375rem;
  --text-24: 1.5rem;
  --text-28: 1.75rem;
  --text-30: 1.875rem;
  --text-32: 2rem;
  --text-36: 2.25rem;

  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;

  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 1.75rem;
  --radius-2xl: 2rem;
  --r-card: 24px;
  --r-input: 16px;

  --control-h: 2.75rem;

  /* Palette */
  --palette-00e5ff: #00e5ff;
  --palette-050814: #050814;
  --palette-0bda5b: #0bda5b;
  --palette-10b981: #10b981;
  --palette-111418: #111418;
  --palette-137fec: #137fec;
  --palette-1f2937: #1f2937;
  --palette-210: #210;
  --palette-2234: #2234;
  --palette-22c55e: #22c55e;
  --palette-283039: #283039;
  --palette-2dd4bf: #2dd4bf;
  --palette-34d399: #34d399;
  --palette-374151: #374151;
  --palette-389: #389;
  --palette-38bdf8: #38bdf8;
  --palette-3a4450: #3a4450;
  --palette-3b82f6: #3b82f6;
  --palette-402: #402;
  --palette-405: #405;
  --palette-475569: #475569;
  --palette-4921: #4921;
  --palette-4922: #4922;
  --palette-4b5563: #4b5563;
  --palette-60a5fa: #60a5fa;
  --palette-64748b: #64748b;
  --palette-6b7280: #6b7280;
  --palette-7cb7ff: #7cb7ff;
  --palette-8921: #8921;
  --palette-94a3b8: #94a3b8;
  --palette-9ca3af: #9ca3af;
  --palette-9dabb9: #9dabb9;
  --palette-a855f7: #a855f7;
  --palette-c084fc: #c084fc;
  --palette-d1d5db: #d1d5db;
  --palette-dc2626: #dc2626;
  --palette-e11d48: #e11d48;
  --palette-e2e8f0: #e2e8f0;
  --palette-eab308: #eab308;
  --palette-ef4444: #ef4444;
  --palette-f43f5e: #f43f5e;
  --palette-f59e0b: #f59e0b;
  --palette-f87171: #f87171;
  --palette-f97316: #f97316;
  --palette-fa6238: #fa6238;
  --palette-facc15: #facc15;
  --palette-fb923c: #fb923c;
  --palette-fbbf24: #fbbf24;
  --palette-fff: #fff;
  --palette-000: #000;
  --palette-020617: #020617;
  --palette-030712: #030712;
  --palette-0369a1: #0369a1;
  --palette-050713: #050713;
  --palette-0b0f14: #0b0f14;
  --palette-0b1120: #0b1120;
  --palette-0d1014: #0d1014;
  --palette-0f1115: #0f1115;
  --palette-0f172a: #0f172a;
  --palette-0f3c69: #0f3c69;
  --palette-0f66bd: #0f66bd;
  --palette-101922: #101922;
  --palette-111827: #111827;
  --palette-151a21: #151a21;
  --palette-151b22: #151b22;
  --palette-151c24: #151c24;
  --palette-161a1f: #161a1f;
  --palette-18212b: #18212b;
  --palette-1b2631: #1b2631;
  --palette-1b6fd1: #1b6fd1;
  --palette-1c2127: #1c2127;
  --palette-1c232d: #1c232d;
  --palette-1c242c: #1c242c;
  --palette-1c252e: #1c252e;
  --palette-1d4ed8: #1d4ed8;
  --palette-1e242b: #1e242b;
  --palette-1e293b: #1e293b;
  --palette-1e3a8a: #1e3a8a;
  --palette-24303d: #24303d;
  --palette-252e3a: #252e3a;
  --palette-28323c: #28323c;
  --palette-2c3642: #2c3642;
  --palette-2d3540: #2d3540;
  --palette-2f80ed: #2f80ed;
  --palette-334155: #334155;
  --palette-3b4754: #3b4754;
  --palette-6aaef4: #6aaef4;
  --palette-6ee7b7: #6ee7b7;
  --palette-7c2d12: #7c2d12;
  --palette-86efac: #86efac;
  --palette-9333ea: #9333ea;
  --palette-93c5fd: #93c5fd;
  --palette-b91c1c: #b91c1c;
  --palette-bbf7d0: #bbf7d0;
  --palette-bfdbfe: #bfdbfe;
  --palette-e0e7ff: #e0e7ff;
  --palette-e5e7eb: #e5e7eb;
  --palette-f6f7f8: #f6f7f8;
  --palette-f9fafb: #f9fafb;
  --palette-fca5a5: #fca5a5;
  --palette-fecaca: #fecaca;
  --palette-fee2e2: #fee2e2;
  --palette-fef9c3: #fef9c3;
  --palette-ffedd5: #ffedd5;
  --palette-ffffff: #ffffff;
  --palette-2efc8a: #2efc8a;
  --palette-05070f: #05070f;
  --palette-0b1221: #0b1221;
  --palette-0ea5e9: #0ea5e9;
  --palette-111a2b: #111a2b;
  --palette-22d3ee: #22d3ee;
  --palette-2563eb: #2563eb;
  --palette-8b5cf6: #8b5cf6;
  --palette-cbd5f5: #cbd5f5;
  --palette-f8fafc: #f8fafc;

  /* Alpha palette */
  --alpha-120-53-15-0_2: rgba(120, 53, 15, 0.2);
  --alpha-120-53-15-0_3: rgba(120, 53, 15, 0.3);
  --alpha-127-29-29-0_2: rgba(127, 29, 29, 0.2);
  --alpha-127-29-29-0_3: rgba(127, 29, 29, 0.3);
  --alpha-14-165-233-0_12: rgba(14, 165, 233, 0.12);
  --alpha-154-52-18-0_2: rgba(154, 52, 18, 0.2);
  --alpha-16-185-129-0_12: rgba(16, 185, 129, 0.12);
  --alpha-168-85-247-0_12: rgba(168, 85, 247, 0.12);
  --alpha-168-85-247-0_2: rgba(168, 85, 247, 0.2);
  --alpha-19-127-236-0_2: rgba(19, 127, 236, 0.2);
  --alpha-20-83-45-0_3: rgba(20, 83, 45, 0.3);
  --alpha-225-29-72-0_1: rgba(225,29,72,0.1);
  --alpha-225-29-72-0_2: rgba(225,29,72,0.2);
  --alpha-225-29-72-0_5: rgba(225,29,72,0.5);
  --alpha-226-232-240-1: rgba(226, 232, 240, 1);
  --alpha-234-179-8-0_12: rgba(234, 179, 8, 0.12);
  --alpha-234-179-8-0_2: rgba(234, 179, 8, 0.2);
  --alpha-239-68-68-0_1: rgba(239, 68, 68, 0.1);
  --alpha-239-68-68-0_2: rgba(239, 68, 68, 0.2);
  --alpha-241-245-249-1: rgba(241, 245, 249, 1);
  --alpha-245-158-11-0_2: rgba(245, 158, 11, 0.2);
  --alpha-249-115-22-0_2: rgba(249, 115, 22, 0.2);
  --alpha-250-204-21-0_2: rgba(250, 204, 21, 0.2);
  --alpha-251-146-60-0_2: rgba(251, 146, 60, 0.2);
  --alpha-255-255-255-0_2: rgba(255,255,255,0.2);
  --alpha-30-41-59-1: rgba(30, 41, 59, 1);
  --alpha-30-64-175-0_3: rgba(30, 64, 175, 0.3);
  --alpha-31-41-55-0_6: rgba(31, 41, 55, 0.6);
  --alpha-34-197-94-0_12: rgba(34, 197, 94, 0.12);
  --alpha-34-197-94-0_2: rgba(34, 197, 94, 0.2);
  --alpha-55-65-81-0_5: rgba(55, 65, 81, 0.5);
  --alpha-59-130-246-0_12: rgba(59, 130, 246, 0.12);
  --alpha-59-130-246-0_2: rgba(59, 130, 246, 0.2);
  --alpha-59-130-246-0: rgba(59,130,246,0);
  --alpha-59-130-246-0_35: rgba(59,130,246,0.35);
  --alpha-59-130-246-0_95: rgba(59,130,246,0.95);
  --alpha-6-78-59-0_3: rgba(6, 78, 59, 0.3);
  --alpha-88-28-135-0_2: rgba(88, 28, 135, 0.2);
  --alpha-88-28-135-0_3: rgba(88, 28, 135, 0.3);

  /* Background layers */
  --bg-0: var(--palette-05070f);
  --bg-1: var(--palette-0b1221);
  --bg-2: var(--palette-111a2b);
  --bg-main: var(--bg-0);
  --bg-elevated: var(--bg-1);
  --bg-elevated-soft: var(--bg-2);
  --surface-glass: var(--alpha-17-24-39-0_72);

  /* Borders + shadows */
  --border-0: var(--alpha-148-163-184-0_18);
  --border-1: var(--alpha-148-163-184-0_32);
  --border-subtle: var(--border-0);
  --border-strong: var(--border-1);
  --shadow-sm: 0 10px 30px var(--alpha-7-12-24-0_35);
  --shadow-md: 0 24px 60px var(--alpha-5-8-20-0_55);
  --shadow-lg: 0 30px 80px var(--alpha-5-8-20-0_55);
  --shadow-glow: 0 0 24px var(--alpha-56-189-248-0_12);

  /* Typography */
  --fg-0: var(--palette-f8fafc);
  --fg-1: var(--palette-cbd5f5);
  --fg-muted: var(--palette-94a3b8);
  --text-primary: var(--fg-0);
  --text-secondary: var(--fg-1);
  --text-muted: var(--fg-muted);
  --text-main: var(--text-primary);

  /* Accents */
  --accent: #3cf8ff;
  --accent-soft: rgba(60, 248, 255, 0.22);
  --accent-strong: #11d8ff;
  --accent-2: #4aa3ff;
  --accent-violet: #b06bff;
  --accent-cyan: #3cf8ff;
  --mint: #32ff9a;
  --cyan: #3cf8ff;
  --purple: #b06bff;

  /* Semantic */
  --success: var(--palette-22c55e);
  --warning: var(--palette-f59e0b);
  --danger: var(--palette-f87171);
  --info: var(--palette-38bdf8);

  /* Severity */
  --severity-low: var(--palette-22c55e);
  --severity-med: var(--palette-38bdf8);
  --severity-high: var(--palette-f97316);
  --severity-critical: var(--palette-ef4444);

  /* Focus */
  --ring: 0 0 0 3px var(--alpha-56-189-248-0_35);
  --focus-ring: var(--ring);
}
:root {
  /* Protoxol brand accents */
  --accent-300: #7dfbff;
  --accent-400: #3cf8ff;
  --accent-500: #11d8ff;
  --accent-600: #0aa3d1;
  --accent-700: #06799e;

  --accent-300-rgb: 125, 251, 255;
  --accent-400-rgb: 60, 248, 255;
  --accent-500-rgb: 17, 216, 255;
  --accent-600-rgb: 10, 163, 209;
  --accent-700-rgb: 6, 121, 158;

  /* Neutral scale */
  --neutral-0: #ffffff;
  --neutral-50: #f8fafc;
  --neutral-100: #e2e8f0;
  --neutral-200: #cbd5f5;
  --neutral-300: #94a3b8;
  --neutral-400: #64748b;
  --neutral-500: #475569;
  --neutral-600: #334155;
  --neutral-700: #1e293b;
  --neutral-800: #151a21;
  --neutral-850: #111418;
  --neutral-900: #0c1014;
  --neutral-950: #06080a;

  --neutral-0-rgb: 255, 255, 255;
  --neutral-50-rgb: 248, 250, 252;
  --neutral-100-rgb: 226, 232, 240;
  --neutral-200-rgb: 203, 213, 245;
  --neutral-300-rgb: 148, 163, 184;
  --neutral-400-rgb: 100, 116, 139;
  --neutral-900-rgb: 12, 16, 20;
  --neutral-950-rgb: 6, 8, 10;

  /* Status */
  --success-500: #32ff9a;
  --warning-500: #f59e0b;
  --danger-500: #dc3545;
  --info-500: #38bdf8;
  --severity-high: #f97316;

  --success-500-rgb: 50, 255, 154;
  --warning-500-rgb: 245, 158, 11;
  --danger-500-rgb: 220, 53, 69;
  --info-500-rgb: 56, 189, 248;
  --severity-high-rgb: 249, 115, 22;

  /* Data visualization */
  --data-viz1: var(--accent-400);
  --data-viz2: #7cb7ff;
  --data-viz3: #8b5cf6;
  --data-viz4: #f59e0b;
  --data-viz5: #22c55e;
  --data-viz6: #ef4444;
  --data-viz7: #a855f7;
  --data-viz8: #f97316;
}
:root,
[data-theme="dark"] {
  color-scheme: dark;

  --bg-app: #05070b;
  --bg-surface-1: rgba(10, 16, 22, 0.96);
  --bg-surface-2: rgba(16, 25, 33, 0.96);
  --bg-surface-3: rgba(20, 30, 40, 0.96);
  --bg-glass: rgba(16, 25, 33, 0.6);
  --bg-glass-strong: rgba(10, 16, 22, 0.96);
  --bg-overlay: rgba(5, 7, 11, 0.78);

  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(0, 0, 0, 0.2);
  --border: rgba(255, 255, 255, 0.1);

  /* SOC aliases (para componentes reutilizables) */
  --bg-sidebar: var(--bg-surface-1);
  --bg-panel: var(--bg-surface-2);

  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-inverse: #05070b;

  --link: var(--accent-400);
  --link-hover: var(--accent-300);

  --border-subtle: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.26);

  --hover-overlay: rgba(60, 248, 255, 0.1);
  --selected-bg: rgba(60, 248, 255, 0.22);

  --focus-ring-rgb: 60, 248, 255;
  --focus-ring: 0 0 0 3px rgba(var(--focus-ring-rgb), 0.35);

  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 rgba(56, 189, 248, 0);

  --status-success: var(--success-500);
  --status-success-bg: rgba(var(--success-500-rgb), 0.18);
  --status-success-text: var(--success-500);
  --status-warning: var(--warning-500);
  --status-warning-bg: rgba(var(--warning-500-rgb), 0.18);
  --status-warning-text: var(--warning-500);
  --status-danger: var(--danger-500);
  --status-danger-bg: rgba(var(--danger-500-rgb), 0.18);
  --status-danger-text: var(--danger-500);
  --status-info: var(--info-500);
  --status-info-bg: rgba(var(--info-500-rgb), 0.18);
  --status-info-text: var(--info-500);

  --severity-low-text: var(--success-500);
  --severity-low-bg: rgba(var(--success-500-rgb), 0.2);
  /* SOC: medium = blue */
  --severity-medium-text: var(--info-500);
  --severity-medium-bg: rgba(var(--info-500-rgb), 0.2);
  --severity-high-text: var(--severity-high);
  --severity-high-bg: rgba(var(--severity-high-rgb), 0.2);
  --severity-critical-text: var(--danger-500);
  --severity-critical-bg: rgba(var(--danger-500-rgb), 0.2);
}
[data-theme="light"] {
  color-scheme: light;

  --bg-app: var(--neutral-50);
  --bg-surface-1: var(--neutral-0);
  --bg-surface-2: var(--neutral-50);
  --bg-surface-3: var(--neutral-100);
  --bg-glass: rgba(var(--neutral-0-rgb), 0.72);
  --bg-glass-strong: rgba(var(--neutral-0-rgb), 0.9);
  --bg-overlay: rgba(var(--neutral-900-rgb), 0.55);

  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-600);
  --text-muted: var(--neutral-400);
  --text-inverse: var(--neutral-0);

  --link: var(--accent-600);
  --link-hover: var(--accent-500);

  --border-subtle: rgba(var(--neutral-900-rgb), 0.12);
  --border-strong: rgba(var(--neutral-900-rgb), 0.28);

  --hover-overlay: rgba(var(--accent-400-rgb), 0.12);
  --selected-bg: rgba(var(--accent-400-rgb), 0.2);

  --focus-ring-rgb: var(--accent-400-rgb);
  --focus-ring: 0 0 0 3px rgba(var(--focus-ring-rgb), 0.35);

  --shadow-sm: 0 10px 30px rgba(var(--neutral-900-rgb), 0.15);
  --shadow-md: 0 24px 60px rgba(var(--neutral-900-rgb), 0.2);
  --shadow-lg: 0 30px 80px rgba(var(--neutral-900-rgb), 0.25);
  --shadow-glow: 0 0 24px rgba(var(--accent-400-rgb), 0.25);

  --status-success: var(--success-500);
  --status-success-bg: rgba(var(--success-500-rgb), 0.15);
  --status-success-text: var(--success-500);
  --status-warning: var(--warning-500);
  --status-warning-bg: rgba(var(--warning-500-rgb), 0.15);
  --status-warning-text: var(--warning-500);
  --status-danger: var(--danger-500);
  --status-danger-bg: rgba(var(--danger-500-rgb), 0.15);
  --status-danger-text: var(--danger-500);
  --status-info: var(--info-500);
  --status-info-bg: rgba(var(--info-500-rgb), 0.15);
  --status-info-text: var(--info-500);

  --severity-low-text: var(--success-500);
  --severity-low-bg: rgba(var(--success-500-rgb), 0.15);
  /* SOC: medium = blue */
  --severity-medium-text: var(--info-500);
  --severity-medium-bg: rgba(var(--info-500-rgb), 0.15);
  --severity-high-text: var(--severity-high);
  --severity-high-bg: rgba(var(--severity-high-rgb), 0.15);
  --severity-critical-text: var(--danger-500);
  --severity-critical-bg: rgba(var(--danger-500-rgb), 0.15);
}
@font-face {
  font-family: "Aeonik";
  src: url("/fonts/Aeonik-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("/fonts/Aeonik-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aeonik";
  src: url("/fonts/Aeonik-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body,
#root {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}
html {
  background-color: var(--bg-app);
  color: var(--text-primary);
}
@media (min-width: 1200px) and (max-width: 1600px) {
  html {
    font-size: 17px;
  }
}
body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  position: relative;
  overflow: hidden;
}
#root {
  position: relative;
  z-index: 1;
}
body::before {
  content: "";
  display: none; /* SOC UI: sin “glow”/gradientes grandes */
}
body::after {
  content: "";
  display: none; /* SOC UI: sin patrón llamativo (se mantiene por bordes/subtle texture) */
}
a {
  color: var(--link);
}
a:hover {
  color: var(--link-hover);
}
button {
  font-family: inherit;
}
input,
textarea,
select {
  font-family: inherit;
  background-color: transparent;
  color: inherit;
}
::selection {
  background: var(--selected-bg);
  color: var(--text-primary);
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface-2);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}
