/**
 * Fijate Tools - Secuelas en boxeadores
 * Hoja de estilos canónica: tema oscuro por defecto (:root, [data-theme="dark"]),
 * soporte completo para tema claro ([data-theme="light"]), contención móvil estricta
 * y estilos de impresión clínica.
 */

:root,
[data-theme="dark"] {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Paleta maestra oscura por defecto */
  --bg-page: #090d16;
  --bg-body: #090d16;
  --bg-surface: #0f1624;
  --bg-card: #111827;
  --bg-card-header: #1a2436;
  --bg-elevated: #172033;
  --bg-input: #0b1120;

  --border-color: #263348;
  --border-focus: #38bdf8;

  --text-main: #f8fafc;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  /* Acento clínico azul / cobalto + estados traumatológicos */
  --primary: #38bdf8;
  --primary-color: #38bdf8;
  --primary-hover: #0ea5e9;
  --primary-light: rgba(56, 189, 248, 0.14);

  --accent-primary: #38bdf8;
  --accent-primary-hover: #7dd3fc;
  --accent-danger: #f87171;
  --accent-danger-solid: #ef4444;
  --accent-danger-bg: rgba(239, 68, 68, 0.14);
  --accent-warning: #fbbf24;
  --accent-warning-solid: #f59e0b;
  --accent-warning-bg: rgba(245, 158, 11, 0.14);
  --accent-success: #34d399;
  --accent-success-solid: #10b981;
  --accent-success-bg: rgba(16, 185, 129, 0.14);
  --accent-info: #38bdf8;
  --accent-info-bg: rgba(56, 189, 248, 0.14);

  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;

  --svg-bg: #080d18;
  --svg-silhouette: #1e293b;
  --svg-silhouette-stroke: #475569;
  --svg-bone: rgba(226, 232, 240, 0.25);
  --svg-xray-bg: #020814;
  --svg-xray-bone: #bae6fd;
  --svg-xray-glow: rgba(56, 189, 248, 0.55);

  --select-arrow-color: '%2394a3b8';

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --card-radius: 16px;
  --radius-full: 9999px;

  --shadow-card: 0 12px 30px -8px rgba(0, 0, 0, 0.48);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.42);
}

[data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-header: #f1f5f9;
  --bg-elevated: #f1f5f9;
  --bg-input: #ffffff;

  --border-color: #cbd5e1;
  --border-focus: #0284c7;

  --text-main: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;

  --primary: #0284c7;
  --primary-color: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: rgba(2, 132, 199, 0.1);

  --accent-primary: #0284c7;
  --accent-primary-hover: #0369a1;
  --accent-danger: #dc2626;
  --accent-danger-solid: #dc2626;
  --accent-danger-bg: #fef2f2;
  --accent-warning: #d97706;
  --accent-warning-solid: #d97706;
  --accent-warning-bg: #fffbeb;
  --accent-success: #059669;
  --accent-success-solid: #059669;
  --accent-success-bg: #ecfdf5;
  --accent-info: #0284c7;
  --accent-info-bg: #e0f2fe;

  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;

  --svg-bg: #f1f5f9;
  --svg-silhouette: #e2e8f0;
  --svg-silhouette-stroke: #64748b;
  --svg-bone: rgba(71, 85, 105, 0.25);
  --svg-xray-bg: #071324;
  --svg-xray-bone: #bae6fd;
  --svg-xray-glow: rgba(56, 189, 248, 0.55);

  --select-arrow-color: '%23334155';

  --shadow-card: 0 6px 22px -4px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.09);
}

/* Reset y base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6,
.brand-title,
.section-heading,
.hero-title {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.28;
}

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

/* Contenedores canónicos (no romper alineación horizontal de .tool-with-sidebar) */
.main-wrapper.tool-layout {
  width: 100%;
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  box-sizing: border-box;
  flex: 1 0 auto;
}

.tool-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
}

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}

/* Hero clínico e indicadores epidemiológicos */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-danger-solid), var(--primary-color), var(--accent-warning-solid));
  opacity: 0.9;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--accent-danger-bg);
  color: var(--accent-danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.95rem;
}

.hero-title {
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 800;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.02em;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 900px;
  margin: 0 0 1.45rem 0;
  line-height: 1.65;
}

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

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.15rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.68rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
  line-height: 1.15;
}

.stat-value.danger { color: var(--accent-danger); }
.stat-value.warn { color: var(--accent-warning); }
.stat-value.safe { color: var(--accent-success); }

.stat-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Tarjetas de módulo principal */
.tool-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.85rem;
  box-shadow: var(--shadow-sm);
}

.section-header-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-color);
}

.section-heading {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section-heading svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
  max-width: 760px;
}

/* Chips de filtro */
.filter-chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.filter-chip {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-chip:hover {
  border-color: var(--primary-color);
  color: var(--text-main);
}

.filter-chip.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #090d16;
}

[data-theme="light"] .filter-chip.active {
  color: #ffffff;
}

/* ==========================================================================
   1. EXPLORADOR ANATÓMICO MULTICAPA (SVG + FICHAS CLÍNICAS)
   ========================================================================== */
.anatomy-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.view-switch-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 0.28rem;
  border-radius: var(--radius-md);
}

.btn-view-mode,
.btn-xray-toggle {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.18s ease;
}

.btn-view-mode:hover,
.btn-xray-toggle:hover {
  color: var(--text-main);
}

.btn-view-mode.active {
  background: var(--primary-color);
  color: #090d16;
}

[data-theme="light"] .btn-view-mode.active {
  color: #ffffff;
}

.btn-xray-toggle {
  background: var(--bg-input);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.btn-xray-toggle.active {
  background: rgba(14, 165, 233, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

[data-theme="light"] .btn-xray-toggle.active {
  background: #0f172a;
  color: #7dd3fc;
  border-color: #0284c7;
}

.anatomy-workspace {
  display: grid;
  grid-template-columns: minmax(290px, 385px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.svg-stage-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  position: sticky;
  top: 78px;
}

.svg-stage-wrap {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: radial-gradient(ellipse at center, #1b263b 0%, #07111b 100%);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#boxing-anatomy-svg {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  height: auto;
  display: block;
  transition: background-color 0.3s ease;
}

#boxing-anatomy-svg .anatomy-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

#boxing-anatomy-svg .anatomy-layer.active {
  opacity: 1;
  visibility: visible;
}

#boxing-anatomy-svg .anatomy-img {
  user-select: none;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

#boxing-anatomy-svg .normal-img {
  opacity: 1;
}

#boxing-anatomy-svg .xray-only {
  opacity: 0;
}

#boxing-anatomy-svg.is-xray {
  background: radial-gradient(circle at 50% 45%, #0b223d 0%, var(--svg-xray-bg) 82%);
}

#boxing-anatomy-svg.is-xray .normal-img {
  opacity: 0;
}

#boxing-anatomy-svg.is-xray .xray-only {
  opacity: 1;
}

/* Hotspots interactivos del SVG */
.anatomy-hotspot {
  cursor: pointer;
  outline: none;
  transition: opacity 0.2s ease;
}

.anatomy-hotspot.dimmed {
  opacity: 0.22;
}

.anatomy-hotspot .hotspot-pulse {
  fill: rgba(239, 68, 68, 0.38);
  transform-box: fill-box;
  transform-origin: center;
  animation: hotspotPulse 2.2s infinite ease-out;
}

.anatomy-hotspot .hotspot-core {
  fill: #ef4444;
  stroke: #ffffff;
  stroke-width: 1.3;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.72));
  transition: r 0.15s ease, fill 0.15s ease, stroke-width 0.15s ease;
}

.anatomy-hotspot.sev-alta .hotspot-pulse { fill: rgba(245, 158, 11, 0.38); }
.anatomy-hotspot.sev-alta .hotspot-core { fill: #f59e0b; }

.anatomy-hotspot.sev-moderada .hotspot-pulse { fill: rgba(56, 189, 248, 0.38); }
.anatomy-hotspot.sev-moderada .hotspot-core { fill: #38bdf8; }

.anatomy-hotspot.active .hotspot-core,
.anatomy-hotspot:hover .hotspot-core,
.anatomy-hotspot:focus-visible .hotspot-core {
  stroke: #fef08a;
  stroke-width: 1.9;
}

.anatomy-hotspot.active .hotspot-pulse {
  fill: rgba(56, 189, 248, 0.52);
}

@keyframes hotspotPulse {
  0% { transform: scale(0.8); opacity: 0.85; }
  75% { transform: scale(1.42); opacity: 0.1; }
  100% { transform: scale(1.42); opacity: 0; }
}

.svg-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-dot-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.crit { background: #ef4444; }
.legend-dot.alta { background: #f59e0b; }
.legend-dot.mod { background: #38bdf8; }

.anatomy-caption-bar {
  margin-top: 0.75rem;
  padding: 0.65rem 0.8rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Banner de región activa */
.active-region-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.05rem;
  margin-bottom: 1rem;
  background: var(--primary-light);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
}

.region-banner-info h3 {
  margin: 0 0 0.15rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.region-banner-info p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.btn-secondary-sm {
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-secondary-sm:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Tarjetas de secuelas */
.sequelae-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.sequela-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.sequela-card:hover {
  border-color: var(--primary-color);
}

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

.sequela-system-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.sequela-card-title {
  margin: 0 0 0.2rem 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.sequela-popular {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

.severity-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.severity-pill.sev-critica {
  background: var(--accent-danger-bg);
  color: var(--accent-danger);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.severity-pill.sev-alta {
  background: var(--accent-warning-bg);
  color: var(--accent-warning);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.severity-pill.sev-moderada {
  background: var(--accent-info-bg);
  color: var(--accent-info);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.sequela-mech {
  font-size: 0.89rem;
  color: var(--text-secondary);
  margin: 0 0 0.95rem 0;
  line-height: 1.55;
}

.sequela-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.95rem;
  padding: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.sequela-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.meta-lbl {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

.meta-val {
  font-size: 0.81rem;
  color: var(--text-main);
  line-height: 1.38;
}

.irrev-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.irrev-bar {
  flex: 1 1 0%;
  min-width: 0;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  overflow: hidden;
}

.irrev-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

.irrev-fill.sev-critica { background: var(--accent-danger-solid); }
.irrev-fill.sev-alta { background: var(--accent-warning-solid); }
.irrev-fill.sev-moderada { background: var(--primary-color); }

.irrev-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.sequela-card-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-open-dossier {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-color);
  background: var(--primary-light);
  color: var(--primary-color);
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.18s ease;
}

.btn-open-dossier:hover {
  background: var(--primary-color);
  color: #090d16;
}

[data-theme="light"] .btn-open-dossier:hover {
  color: #ffffff;
}

.empty-state-box {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-input);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

/* ==========================================================================
   2. SIMULADORES BIOMECÁNICO Y SENSORIAL (CANVAS 2D)
   ========================================================================== */
.sim-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
}

.sim-tab-btn {
  min-height: 42px;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.18s ease;
}

.sim-tab-btn:hover {
  border-color: var(--primary-color);
  color: var(--text-main);
}

.sim-tab-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #090d16;
}

[data-theme="light"] .sim-tab-btn.active {
  color: #ffffff;
}

.sim-tab-panel {
  display: none;
}

.sim-tab-panel.active {
  display: block;
}

.sim-presets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.presets-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.btn-sim-preset,
.btn-sensory-mode {
  min-height: 38px;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-sim-preset:hover,
.btn-sensory-mode:hover {
  border-color: var(--primary-color);
  color: var(--text-main);
}

.btn-sim-preset.active,
.btn-sensory-mode.active {
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.sim-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Regla estricta para <select>: fondo y color explícitos claro/oscuro, flecha SVG, ellipsis */
.form-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0.55rem 40px 0.55rem 0.85rem;
  background-color: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease;
}

[data-theme="light"] .form-select {
  background-color: #ffffff;
  color: #0f172a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

.form-select option {
  background-color: var(--bg-card);
  color: var(--text-main);
}

[data-theme="light"] .form-select option {
  background-color: #ffffff;
  color: #0f172a;
}

.form-select:focus {
  outline: none;
  border-color: var(--border-focus);
}

.form-range {
  width: 100%;
  accent-color: var(--primary-color);
  cursor: pointer;
  height: 24px;
}

.sim-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.btn-primary-action {
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--primary-color);
  color: #090d16;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: background-color 0.18s ease, transform 0.15s ease;
}

[data-theme="light"] .btn-primary-action {
  color: #ffffff;
}

.btn-primary-action:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary-action {
  min-height: 42px;
  padding: 0.55rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: border-color 0.18s ease;
}

.btn-secondary-action:hover {
  border-color: var(--primary-color);
}

.btn-danger-outline {
  min-height: 42px;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: var(--accent-danger-bg);
  color: var(--accent-danger);
  font-family: var(--font-main);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.canvas-frame {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-input);
  margin-bottom: 1rem;
}

#impact-sim-canvas,
#sequelae-sim-canvas {
  display: block;
  width: 100%;
  touch-action: manipulation;
}

#sequelae-sim-canvas {
  cursor: crosshair;
}

.telemetry-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}

.telemetry-top-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.impact-risk-pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
}

.impact-risk-pill.level-low { background: var(--accent-success-bg); color: var(--accent-success); }
.impact-risk-pill.level-moderate { background: var(--accent-info-bg); color: var(--accent-info); }
.impact-risk-pill.level-high { background: var(--accent-warning-bg); color: var(--accent-warning); }
.impact-risk-pill.level-critical { background: var(--accent-danger-bg); color: var(--accent-danger); }

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.telemetry-item {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
}

.tel-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.tel-val {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.cumulative-strain-box {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.strain-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.strain-bar-track {
  width: 100%;
  height: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.strain-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
  transition: width 0.25s ease;
}

.sensory-controls-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sensory-modes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sensory-severity-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 240px;
  flex: 0 1 320px;
}

.spiral-tools-bar {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.sensory-telemetry-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.05rem;
}

.sensory-telemetry-box h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 700;
}

.sensory-telemetry-box p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   3. CALCULADORA ACTUARIAL DE EXPOSICIÓN CEREBRAL EN CARRERA
   ========================================================================== */
.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.calc-form-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  margin-bottom: 1.15rem;
}

.calc-form-group-full {
  grid-column: 1 / -1;
}

.calc-range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.calc-range-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
  background: var(--primary-light);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.calc-results-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.calc-score-header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.calc-gauge-circle {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(#38bdf8 90deg, var(--bg-input) 0deg);
  padding: 8px;
}

.calc-gauge-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#calc-gauge-num {
  font-family: var(--font-mono);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.calc-gauge-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.calc-risk-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.45rem;
}

.calc-risk-badge.level-low { background: var(--accent-success-bg); color: var(--accent-success); }
.calc-risk-badge.level-moderate { background: var(--accent-info-bg); color: var(--accent-info); }
.calc-risk-badge.level-high { background: var(--accent-warning-bg); color: var(--accent-warning); }
.calc-risk-badge.level-critical { background: var(--accent-danger-bg); color: var(--accent-danger); }

.calc-risk-summary {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.48;
}

.calc-hits-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.calc-hit-metric {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hit-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.hit-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.sys-bars-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.sys-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.sys-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.sys-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.25s ease;
}

.sys-bar-fill.ok { background: var(--accent-success-solid); }
.sys-bar-fill.warn { background: var(--accent-warning-solid); }
.sys-bar-fill.crit { background: var(--accent-danger-solid); }

.proj-timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.proj-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}

.proj-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.proj-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   4. GALERÍA DE CASOS HISTÓRICOS, COMPARADOR DE MODALIDADES E HITOS
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.case-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.case-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.case-era-badge {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary-color);
  margin-bottom: 0.45rem;
}

.case-name {
  margin: 0 0 0.2rem 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.case-record {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.case-diagnosis {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-danger);
  margin-bottom: 0.45rem;
}

.case-summary {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.case-card-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.case-lesson {
  font-size: 0.79rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.btn-case-detail {
  min-height: 38px;
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-case-detail:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Tablas clínicas responsivas */
.table-responsive-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-input);
  -webkit-overflow-scrolling: touch;
}

.clinical-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  text-align: left;
  font-size: 0.87rem;
}

.clinical-table th,
.clinical-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: top;
}

.clinical-table th {
  background: var(--bg-card-header);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-main);
}

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

.table-sub {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.mod-pill {
  display: inline-block;
  font-size: 0.77rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.mod-pill.mod-safe { background: var(--accent-success-bg); color: var(--accent-success); }
.mod-pill.mod-moderate { background: var(--accent-info-bg); color: var(--accent-info); }
.mod-pill.mod-warning { background: var(--accent-warning-bg); color: var(--accent-warning); }
.mod-pill.mod-danger { background: var(--accent-danger-bg); color: var(--accent-danger); }

.btn-table-open {
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--primary-color);
  background: var(--primary-light);
  color: var(--primary-color);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-table-open:hover {
  background: var(--primary-color);
  color: #090d16;
}

[data-theme="light"] .btn-table-open:hover {
  color: #ffffff;
}

/* Hitos médicos de seguridad */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.milestone-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.milestone-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-block;
  margin-bottom: 0.3rem;
}

.milestone-title {
  margin: 0 0 0.35rem 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.milestone-change {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0 0 0.5rem 0;
}

.milestone-why {
  font-size: 0.79rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 0.5rem;
}

/* Barra de búsqueda en tabla pericial */
.table-search-bar {
  margin-bottom: 1rem;
}

.table-search-input-wrap {
  position: relative;
  max-width: 460px;
  width: 100%;
}

.table-search-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

#table-search-input {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.85rem 0.55rem 2.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.88rem;
}

#table-search-input:focus {
  outline: none;
  border-color: var(--border-focus);
}

/* Nota médica informativa */
.clinical-disclaimer-note {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-warning-solid);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   5. MODAL ACCESIBLE DE EXPEDIENTE E INFORME
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 9, 18, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.modal-header {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-card-header);
}

#modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.btn-modal-close {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-body {
  padding: 1.35rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.modal-lead {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.modal-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}

.modal-section h4 {
  margin: 0 0 0.45rem 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-color);
}

.modal-section p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.modal-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.modal-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.modal-footer {
  padding: 0.95rem 1.35rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  background: var(--bg-card-header);
}

/* ==========================================================================
   6. ADAPTACIÓN RESPONSIVA Y CONTENCIÓN MÓVIL
   ========================================================================== */
@media (max-width: 960px) {
  .anatomy-workspace,
  .calc-layout {
    grid-template-columns: 1fr;
  }

  .svg-stage-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .main-wrapper.tool-layout {
    margin: 0.85rem auto 2rem;
    padding: 0 0.75rem;
  }

  .hero-card,
  .tool-section-card {
    padding: 1.15rem 1rem;
  }

  .calc-form-grid,
  .sequela-meta-grid,
  .calc-hits-box,
  .modal-two-col {
    grid-template-columns: 1fr;
  }

  .calc-score-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sim-actions-row > button,
  .modal-footer > button,
  .view-switch-group,
  .btn-xray-toggle,
  .sim-tab-btn,
  .btn-secondary-sm,
  .table-search-input-wrap {
    width: 100%;
    max-width: 100%;
  }

  .btn-view-mode {
    flex: 1 1 0%;
    justify-content: center;
    min-height: 40px;
  }

  .filter-chip,
  .btn-sim-preset,
  .btn-sensory-mode,
  .btn-table-open {
    min-height: 40px;
  }

  .form-select,
  .btn-primary-action,
  .btn-secondary-action,
  .btn-danger-outline,
  .btn-open-dossier,
  .btn-case-detail,
  .btn-xray-toggle,
  .sim-tab-btn,
  .btn-secondary-sm,
  #table-search-input {
    min-height: 42px;
    width: 100%;
    justify-content: center;
  }

  .sensory-severity-wrap {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   7. IMPRESIÓN CLÍNICA LIMPIA (SOLO EXPEDIENTE / INFORME ACTIVO)
   ========================================================================== */
@media print {
  .app-header,
  .tools-ad-banner-section,
  .tool-ad-sidebar,
  .tool-breadcrumbs,
  .related-tools-section,
  .amazon-affiliate-showcase,
  .fijate-footer,
  .modal-footer,
  .btn-modal-close {
    display: none !important;
  }

  body.has-open-modal .main-wrapper {
    display: none !important;
  }

  .modal-backdrop.active {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
  }

  .modal-backdrop.active .modal-container {
    max-width: 100% !important;
    max-height: none !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .modal-backdrop.active .modal-section {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
  }

  .modal-backdrop.active * {
    color: #0f172a !important;
  }
}
