/* ═══════════════════════════════════════════════════════════════════════════
   Brutus v4 — Composer de entrenamientos (FAB + panel de registro)

   El panel envuelve el formulario METCON de SIEMPRE (renderTextFreeWodForm en
   wods.js). Esta hoja NO cambia su HTML: solo le da el lavado de cara dentro
   del panel (bloque "Formulario montado", al final).

   Reglas de la casa que sigue esta hoja:
   · CERO colores fijos. Todo sale de los tokens globales (--card, --text,
     --accent…) para que los 5 temas (oscuro, claro, cristal, deep-dark,
     pro-orange) funcionen sin parches por tema. Los tonos intermedios se
     calculan con color-mix() y llevan SIEMPRE un fallback plano antes.
   · Móvil primero: el panel es una hoja inferior a pantalla casi completa; a
     partir de 760px se convierte en diálogo centrado.
   · Objetivos táctiles de 44px mínimo e inputs a 16px (por debajo, iOS hace
     zoom al enfocar y descuadra el diálogo).
   · Foco visible siempre (:focus-visible), animaciones que se apagan con
     prefers-reduced-motion y refuerzo con prefers-contrast.
   ═══════════════════════════════════════════════════════════════════════════ */

.wc-fab,
.wc-overlay {
  /* Paleta local derivada de los tokens globales. Cada línea lleva primero el
     valor plano (motores sin color-mix) y luego el calculado. */
  --wc-surface: var(--card, #1a1a2e);
  --wc-surface-2: var(--card-hover, #222244);
  --wc-surface-2: color-mix(in srgb, var(--card, #1a1a2e) 88%, var(--text, #f0f0f0) 12%);
  --wc-line: var(--border, #2a2a4a);
  --wc-fg: var(--text, #f0f0f0);
  /* El --text-dim global se queda en 3.8:1 sobre las superficies de la hoja en
     tema claro (AA pide 4.5 para texto pequeño). Acercarlo un 22% al color de
     texto principal sube el contraste en TODOS los temas: en claro lo oscurece,
     en oscuro lo aclara. */
  --wc-fg-dim: var(--text-dim, #999);
  --wc-fg-dim: color-mix(in srgb, var(--text-dim, #999) 78%, var(--text, #f0f0f0) 22%);
  --wc-accent: var(--accent, #ff6b35);
  --wc-accent-soft: var(--accent-bg-subtle, rgba(255, 107, 53, 0.12));
  --wc-accent-line: var(--accent-border, rgba(255, 107, 53, 0.3));
  --wc-danger: var(--danger, #e74c3c);
  --wc-radius: 14px;
  --wc-gap: 12px;
  --wc-tap: 44px;
  --wc-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

/* ─── Botón flotante ─────────────────────────────────────────────────────── */

.wc-fab {
  position: fixed;
  /* Justo encima de la píldora de navegación, respetando el notch inferior. */
  bottom: calc(var(--nav-h, 76px) + 14px + env(safe-area-inset-bottom, 0px));
  right: calc(max(0px, (100vw - 480px) / 2) + 14px);
  /* Por debajo de la nav (100) y de los modales (1000): nunca tapa un diálogo. */
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 56px;
  min-height: 56px;
  padding: 0 16px;
  border: none;
  border-radius: 28px;
  background: var(--wc-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--accent-glow, rgba(255, 107, 53, 0.35)), 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.wc-fab[hidden] {
  display: none;
}

/* Mientras haya cualquier otro modal de la app abierto, el FAB se aparta. */
body:has(.modal-overlay:not(.hidden)) .wc-fab {
  display: none;
}

.wc-fab-icon {
  flex: none;
}

/* En móvil solo el icono: la etiqueta sigue en el DOM para los lectores. */
.wc-fab-label {
  display: none;
}

@media (min-width: 520px) {
  .wc-fab-label {
    display: inline;
  }
}

.wc-fab:hover {
  background: var(--accent-hover, #e85d2c);
  transform: translateY(-2px);
}

.wc-fab:active {
  transform: translateY(0) scale(0.96);
}

.wc-fab:focus-visible {
  outline: 3px solid var(--wc-fg);
  outline-offset: 3px;
}

/* ─── Fondo bloqueado ────────────────────────────────────────────────────── */

/* El scroll de la app vive en #screen-content, no en <body>: bloquear body no
   servía de nada y el fondo seguía desplazándose bajo el panel. */
html.wc-locked #screen-content {
  overflow: hidden !important;
}

/* ─── Capa y hoja ────────────────────────────────────────────────────────── */

.wc-overlay {
  position: fixed;
  inset: 0;
  /* Encima de los modales (1000), por debajo de los toasts (9999). */
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.wc-overlay[hidden] {
  display: none;
}

.wc-overlay.is-open {
  opacity: 1;
}

@supports (backdrop-filter: blur(4px)) {
  .wc-overlay {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
  }
}

.wc-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 94dvh;
  max-height: 94dvh;
  background: var(--wc-surface);
  color: var(--wc-fg);
  border: 1px solid var(--wc-line);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  box-shadow: var(--wc-shadow);
  overflow: hidden;
  transform: translateY(24px);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.wc-overlay.is-open .wc-sheet {
  transform: translateY(0);
}

.wc-sheet:focus {
  outline: none;
}

/* Asa: pista visual de "esto es una hoja que se cierra hacia abajo". */
.wc-grabber {
  width: 40px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: var(--wc-line);
  flex: none;
}

@media (min-width: 760px) {
  .wc-overlay {
    align-items: center;
    padding: 20px;
  }

  .wc-sheet {
    max-width: 720px;
    height: min(88dvh, 860px);
    border-radius: 20px;
    border-bottom: 1px solid var(--wc-line);
  }

  .wc-grabber {
    display: none;
  }
}

/* ─── Cabecera ───────────────────────────────────────────────────────────── */

.wc-head {
  display: flex;
  align-items: flex-start;
  gap: var(--wc-gap);
  padding: 14px 16px 10px;
  flex: none;
}

.wc-head h2 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.wc-subtitle {
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--wc-fg-dim);
}

.wc-head-text {
  flex: 1;
  min-width: 0;
}

.wc-icon-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--wc-tap);
  height: var(--wc-tap);
  border-radius: 12px;
  border: 1px solid var(--wc-line);
  background: var(--wc-surface-2);
  color: var(--wc-fg);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wc-icon-btn:hover {
  border-color: var(--wc-accent-line);
  color: var(--wc-accent);
}

/* ─── Pestañas (control segmentado) ──────────────────────────────────────── */

.wc-tabs {
  display: flex;
  gap: 4px;
  margin: 0 16px 12px;
  padding: 4px;
  border-radius: 14px;
  background: var(--wc-surface-2);
  flex: none;
}

.wc-tab {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 6px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--wc-fg-dim);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.wc-tab:hover {
  color: var(--wc-fg);
}

.wc-tab.is-active {
  background: var(--wc-surface);
  color: var(--wc-accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* ─── Cuerpo y paneles ───────────────────────────────────────────────────── */

.wc-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  /* Que el scroll del panel no arrastre la página de detrás. */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 16px;
}

.wc-panel {
  min-width: 0;
}

.wc-panel:focus {
  outline: none;
}

.wc-panel[hidden] {
  display: none;
}

/* ─── Campos propios (ficha de resultado del catálogo) ───────────────────── */

.wc-field {
  margin-bottom: 14px;
  border: none;
}

.wc-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wc-fg);
}

.wc-input {
  width: 100%;
  min-width: 0;
  min-height: var(--wc-tap);
  padding: 10px 12px;
  border: 1px solid var(--wc-line);
  border-radius: 12px;
  background: var(--wc-surface-2);
  color: var(--wc-fg);
  /* 16px exactos: por debajo, iOS hace zoom al enfocar. */
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wc-input::placeholder {
  color: var(--wc-fg-dim);
}

.wc-input:focus {
  outline: none;
  border-color: var(--wc-accent);
  box-shadow: 0 0 0 3px var(--wc-accent-soft);
}

.wc-textarea {
  min-height: 72px;
  resize: vertical;
  line-height: 1.5;
}

/* Tiempo HH:MM:SS */
.wc-time-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.wc-time-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.wc-time-box label {
  font-size: 0.72rem;
  color: var(--wc-fg-dim);
}

.wc-time-input {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.wc-time-sep {
  padding-top: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--wc-fg-dim);
}

/* Radios como tarjetas: área táctil grande y estado claro sin depender del
   dibujo nativo del control. */
.wc-radios {
  display: grid;
  gap: 8px;
}

.wc-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--wc-tap);
  padding: 8px 12px;
  border: 1px solid var(--wc-line);
  border-radius: 12px;
  background: var(--wc-surface-2);
  cursor: pointer;
  font-size: 0.9rem;
}

.wc-radio:has(input:checked) {
  border-color: var(--wc-accent);
  background: var(--wc-accent-soft);
}

.wc-radio:has(input:focus-visible) {
  outline: 3px solid var(--wc-accent);
  outline-offset: 2px;
}

.wc-radio input {
  accent-color: var(--wc-accent);
  width: 18px;
  height: 18px;
}

/* ─── Buscador del catálogo ──────────────────────────────────────────────── */

.wc-search {
  position: relative;
  margin-bottom: 10px;
}

.wc-search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--wc-fg-dim);
  pointer-events: none;
}

.wc-search-input {
  width: 100%;
  min-width: 0;
  min-height: var(--wc-tap);
  padding: 10px 44px 10px 38px;
  border: 1px solid var(--wc-line);
  border-radius: 12px;
  background: var(--wc-surface-2);
  color: var(--wc-fg);
  font-size: 16px;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.wc-search-input::-webkit-search-cancel-button {
  display: none;
}

.wc-search-input:focus {
  outline: none;
  border-color: var(--wc-accent);
  box-shadow: 0 0 0 3px var(--wc-accent-soft);
}

.wc-search-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--wc-fg-dim);
  cursor: pointer;
}

.wc-search-clear:hover {
  color: var(--wc-fg);
}

.wc-count {
  margin-bottom: 8px;
  font-size: 0.78rem;
  color: var(--wc-fg-dim);
}

/* ─── Lista del catálogo ─────────────────────────────────────────────────── */

.wc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wc-list:focus {
  outline: none;
}

.wc-list:focus-visible {
  outline: 2px solid var(--wc-accent-line);
  outline-offset: 4px;
  border-radius: 12px;
}

.wc-group {
  margin: 10px 2px 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wc-fg-dim);
}

.wc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius);
  background: var(--wc-surface-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.wc-item:hover {
  border-color: var(--wc-accent-line);
}

.wc-item:active {
  transform: scale(0.995);
}

/* is-active = opción bajo el cursor virtual del teclado (aria-activedescendant);
   is-selected = la que ya se ha elegido. Se distinguen a propósito. */
.wc-item.is-active {
  border-color: var(--wc-accent);
  box-shadow: 0 0 0 3px var(--wc-accent-soft);
}

.wc-item.is-selected {
  border-color: var(--wc-accent);
  background: var(--wc-accent-soft);
}

.wc-item-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--wc-surface);
  font-size: 1.1rem;
}

.wc-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wc-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wc-fg);
}

.wc-item-desc {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--wc-fg-dim);
  /* Dos líneas como mucho: las descripciones de WOD son largas y sin esto la
     lista se convierte en un muro de texto. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wc-more {
  width: 100%;
  min-height: var(--wc-tap);
  margin-top: 10px;
  border: 1px dashed var(--wc-line);
  border-radius: 12px;
  background: transparent;
  color: var(--wc-fg-dim);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.wc-more:hover {
  border-color: var(--wc-accent-line);
  color: var(--wc-accent);
}

/* ─── Estados vacíos ─────────────────────────────────────────────────────── */

.wc-empty {
  padding: 28px 16px;
  text-align: center;
}

.wc-empty-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
}

.wc-empty-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.wc-empty-text {
  font-size: 0.85rem;
  color: var(--wc-fg-dim);
}

/* ─── Ficha de resultado del catálogo ────────────────────────────────────── */

.wc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  margin-bottom: 12px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--wc-line);
  border-radius: 999px;
  background: var(--wc-surface-2);
  color: var(--wc-fg-dim);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.wc-back:hover {
  color: var(--wc-accent);
  border-color: var(--wc-accent-line);
}

.wc-result-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.wc-result-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.wc-result-desc {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--wc-fg-dim);
}

.wc-rx {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--wc-accent-line);
  border-radius: var(--wc-radius);
  background: var(--wc-accent-soft);
}

.wc-rx-title {
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wc-accent);
}

.wc-rx-list {
  list-style: none;
  display: grid;
  gap: 4px;
}

.wc-rx-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.wc-rx-val {
  color: var(--wc-fg-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 760px) {
  .wc-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }

  .wc-result-head,
  .wc-rx {
    grid-column: 1 / -1;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Formulario montado (renderTextFreeWodForm de wods.js)

   Lavado de cara, NO reescritura: el HTML y los ids son los de siempre, así que
   el registro sigue funcionando igual. Buena parte de ese formulario lleva
   estilos en línea (que ganan a estas reglas) — se respetan a propósito: aquí
   solo se ajusta lo que hace que "cante" dentro de la hoja.
   ═══════════════════════════════════════════════════════════════════════════ */

.wc-form-host {
  min-width: 0;
}

/* Las tarjetas exteriores del formulario sobran dentro de la hoja: serían una
   caja dentro de otra caja. Solo las de PRIMER nivel (registrar monta el
   formulario METCON suelto; editar lo monta dentro de #wod-form-section) —
   las de más adentro (el ayudante de texto/foto) conservan su aspecto de
   tarjeta. */
.wc-form-host>.card,
.wc-form-host>#wod-form-section>.card,
.wc-form-host #dynamic-form>.card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

/* Un único botón de guardar: el del pie del panel. Los del formulario se
   ocultan por CSS y no por JS a propósito — algunos se pintan más tarde
   (al elegir categoría, al cambiar de modo) y con JS habría que perseguirlos.
   Siguen en el DOM porque los flujos de wods.js los usan para su estado
   "registrando…", y el pie los pulsa por dentro. */
.wc-form-host #manual-submit-btn,
.wc-form-host #rm-register-btn,
.wc-form-host #cx-register-btn,
.wc-form-host button[onclick^="submitWod"] {
  display: none !important;
}

/* Los <h3> del formulario ("🏷️ Tipo de Ejercicio", "🏆 WOD HEROES", "METCON"…)
   pasan de titulares a etiquetas de sección: dentro de la hoja compiten con el
   título del panel y rompen la jerarquía. */
.wc-form-host .card>h3 {
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wc-fg-dim);
}

/* Título "✏️ Editando: X" que inserta _setEditFormChrome. */
.wc-form-host #form-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--wc-accent);
}

.wc-form-host .form-group {
  margin-bottom: 14px;
}

.wc-form-host label {
  color: var(--wc-fg);
}

/* Etiquetas secundarias del formulario (las que ya venían atenuadas en línea)
   se quedan como están; estas son las de bloque. */
.wc-form-host .form-group>label {
  font-weight: 600;
}

.wc-form-host input:not([type="checkbox"]):not([type="radio"]),
.wc-form-host select,
.wc-form-host textarea {
  border-radius: 12px;
  font-size: 16px;
}

.wc-form-host input:focus,
.wc-form-host select:focus,
.wc-form-host textarea:focus {
  border-color: var(--wc-accent);
  box-shadow: 0 0 0 3px var(--wc-accent-soft);
}

.wc-form-host .btn {
  border-radius: 12px;
  min-height: var(--wc-tap);
}

.wc-form-host .radio-opt,
.wc-form-host .checkbox-opt {
  min-height: 40px;
  border-radius: 12px;
}

/* El separador "luego" entre bloques: con más aire y una línea a cada lado se
   lee como lo que es (encadenado de bloques), no como texto perdido. */
.wc-form-host .mblock-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 !important;
}

.wc-form-host .mblock-sep::before,
.wc-form-host .mblock-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--wc-line);
}

/* ─── Pie ────────────────────────────────────────────────────────────────── */

.wc-foot {
  display: flex;
  align-items: center;
  gap: var(--wc-gap);
  flex: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--wc-line);
  background: var(--wc-surface);
}

.wc-status {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--wc-fg-dim);
}

.wc-status.is-error {
  color: var(--wc-danger);
  font-weight: 600;
}

.wc-primary {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--wc-tap);
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  background: var(--wc-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.wc-primary:hover:not(:disabled) {
  background: var(--accent-hover, #e85d2c);
}

.wc-primary:active:not(:disabled) {
  transform: scale(0.97);
}

.wc-primary:disabled {
  opacity: 0.6;
  cursor: progress;
}

.wc-primary.is-busy svg {
  animation: wc-spin 0.9s linear infinite;
}

@keyframes wc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── Foco visible, en un solo sitio ─────────────────────────────────────── */

.wc-overlay :focus-visible {
  outline: 3px solid var(--wc-accent);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ─── Solo para lectores de pantalla ─────────────────────────────────────── */

.wc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Preferencias del sistema ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {

  .wc-overlay,
  .wc-sheet,
  .wc-fab,
  .wc-item,
  .wc-primary {
    transition: none !important;
  }

  .wc-primary.is-busy svg {
    animation: none;
  }
}

/* Con contraste alto: bordes reales en vez de matices, y el estado activo se
   distingue por algo más que el color de fondo. */
@media (prefers-contrast: more) {

  .wc-item,
  .wc-input,
  .wc-search-input,
  .wc-radio {
    border-width: 2px;
  }

  .wc-item.is-selected {
    outline: 2px solid var(--wc-accent);
  }

  .wc-item-desc,
  .wc-status,
  .wc-count {
    color: var(--wc-fg);
  }
}

/* Pantallas muy bajas en horizontal: la hoja ocupa todo y compacta el aire. */
@media (max-height: 520px) {
  .wc-sheet {
    height: 100dvh;
    border-radius: 0;
  }

  .wc-head {
    padding-top: 8px;
    padding-bottom: 6px;
  }

  .wc-subtitle {
    display: none;
  }
}
