:root {
  color-scheme: light dark;

  /* ───────── Paleta Cálida y Orgánica ("Warm Studio") ───────── */
  --bg: light-dark(#faf8f5, #121319);
  --surface: light-dark(#ffffff, #1b1c26);
  --surface-2: light-dark(#f2eee8, #242534);
  --line: light-dark(#e6e1d6, #2e3042);
  --text: light-dark(#20212a, #f3f4fa);
  --muted: light-dark(#686b80, #9ba0b7);
  --accent: light-dark(#2563eb, #60a5fa);
  --accent-soft: light-dark(rgba(37, 99, 235, 0.1), rgba(96, 165, 250, 0.16));

  /* ───────── Radios Orgánicos (Squircles Suaves) ───────── */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  /* ───────── Elevaciones Aterciopeladas ───────── */
  --shadow-sm: 0 2px 6px -1px rgba(32, 33, 42, 0.04);
  --shadow-card: 0 4px 18px -2px rgba(32, 33, 42, 0.05);
  --shadow-hover: 0 8px 26px -3px rgba(32, 33, 42, 0.08);

  /* ───────── Asignaturas Accesibles (WCAG AA > 4.5:1 en ambos modos) ───────── */
  --mod-proye: light-dark(#0284c7, #38bdf8);
  --mod-color: light-dark(#b45309, #fbbf24);
  --mod-dibujo: light-dark(#6d28d9, #c084fc);
  --mod-fol: light-dark(#047857, #34d399);
  --mod-inter: light-dark(#be185d, #f472b6);
  --mod-anim: light-dark(#1d4ed8, #60a5fa);
  --mod-ingles: light-dark(#334155, #94a1b5);
  --mod-recreo: light-dark(#b45309, #fbbf24);
}

:root[data-theme="dark"]  { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

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

body {
  min-height: 100vh;
  padding: 1.5rem 1rem 3.5rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

/* ───────── Cabecera ───────── */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

#today-date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
  text-transform: capitalize;
}

/* Selector de Tema */
.theme-selector {
  display: flex;
  padding: 3px;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.theme-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 6px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-btn:hover {
  color: var(--text);
}

.theme-btn.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--line);
}

/* Botón de acceso al Tablero Kanban */
.btn-kanban {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-kanban:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-kanban svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Botón de suscripción a Calendario */
.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-calendar:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-calendar svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Botón de acceso de Administrador */
.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-admin:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-admin svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.btn-admin.is-active {
  background: color-mix(in srgb, var(--accent) 15%, var(--surface-2));
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* ───────── Panel Ahora / Siguiente ───────── */
.status-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.status-card {
  --c: var(--line);
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--c);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.2rem;
}

.status-card .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-card .title {
  font-size: 1.1rem;
  font-weight: 650;
}

.status-card .meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.status-card .timer {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  min-height: 1.15em;
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--surface-2);
}

.progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--c);
  transition: width 0.4s ease;
}

/* ───────── Tabla de escritorio ───────── */
.table-wrapper {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  table-layout: fixed;
}

th, td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  vertical-align: top;
}

tr > :first-child { border-left: 0; }
tr > :last-child  { border-right: 0; }
thead th          { border-top: 0; }
tbody tr:last-child > * { border-bottom: 0; }

th {
  background: var(--surface-2);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  padding: 0.7rem 0.5rem;
}

.time-col {
  width: 112px;
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

td.slot {
  --c: var(--line);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  box-shadow: inset 4px 0 0 var(--c);
  padding-left: 0.95rem;
}

td.empty-slot {
  background: color-mix(in srgb, var(--line) 5%, transparent);
}

td.break {
  background: var(--surface-2);
  color: var(--muted);
  text-align: center;
  vertical-align: middle;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem;
}

.slot-title {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
}

.slot-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.74rem;
  color: var(--muted);
}

/* ───────── Enfoque Visual por Asignatura (Desktop) ───────── */
table.has-focus td.slot {
  opacity: 0.25;
  transition: opacity 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

table.has-focus td.slot.is-focused {
  opacity: 1;
  position: relative;
  z-index: 2;
  box-shadow: inset 4px 0 0 var(--c), 0 0 0 2px var(--c), 0 4px 14px rgba(0, 0, 0, 0.18);
  filter: saturate(1.15);
}

table.has-focus td.empty-slot,
table.has-focus td.break {
  opacity: 0.25;
  transition: opacity 0.2s ease;
}

/* ───────── Leyenda de escritorio interactiva ───────── */
.legend-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
  align-items: center;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.legend-item:hover {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}

.legend-item.is-selected {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.legend-clear-btn {
  display: none;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.legend-clear-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.legend-clear-btn.is-visible {
  display: inline-block;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ───────── Vista móvil: Timeline vertical ───────── */
.timeline-view {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.day-tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--surface-2);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.day-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.day-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.day-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  touch-action: pan-y; /* Permite scroll vertical y habilita detección de swipe horizontal */
  transition: opacity 0.15s ease;
}

.timeline-empty-card {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 2rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
}

.timeline-empty-card .icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.timeline-empty-card .title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.timeline-empty-card .desc {
  font-size: 0.84rem;
  line-height: 1.4;
  max-width: 340px;
}

.timeline-card {
  --c: var(--line);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--c);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

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

.timeline-card-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.timeline-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  display: none;
}

.timeline-card-title {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--text);
}

.timeline-card-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Estados visuales en timeline */
.timeline-card.is-break {
  background: var(--surface-2);
  border-left-color: var(--muted);
}

.timeline-card.is-past {
  opacity: 0.45;
}

.timeline-card.is-active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: color-mix(in srgb, var(--c) 8%, var(--surface));
}

.timeline-card.is-active .timeline-badge {
  display: inline-block;
}

/* ───────── Modal de Suscripción a Calendario ───────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

.modal-backdrop.is-open .modal-dialog {
  transform: translateY(0);
}

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

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 4px;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.modal-feed-url {
  display: flex;
  gap: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem;
}

.modal-feed-url input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: monospace;
  font-size: 0.82rem;
  outline: none;
}

.modal-feed-url button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.modal-btn {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  cursor: pointer;
  background: var(--surface-2);
  color: var(--text);
  transition: all 0.15s ease;
}

.modal-btn:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

.modal-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.modal-btn.primary:hover {
  filter: brightness(1.1);
}

/* ───────── Panel de Próximas Entregas (Aules) ───────── */
.assignments-panel {
  display: none; /* Oculto por defecto hasta que lleguen datos de /api/aules */
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.assignments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.assignments-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.assignments-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.assignments-icon-box svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.assignments-heading {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.assignments-subheading {
  font-size: 0.76rem;
  color: var(--muted);
}

.assignments-counter {
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 10px;
}

.assignments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 0.85rem;
}

.assignment-card {
  --c: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--c);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.assignment-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.assignment-card.is-urgent {
  background: color-mix(in srgb, #ef4444 6%, var(--surface-2));
  border-color: color-mix(in srgb, #ef4444 30%, var(--line));
}

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

.assignment-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.assignment-countdown {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.assignment-countdown.urgent {
  color: #ef4444;
  font-weight: 700;
}

.assignment-title {
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--text);
  word-break: break-word;
}

.assignment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.assignment-due {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.assignment-due svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.assignment-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.assignment-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.assignment-link svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* ───────── Tarjeta destacada de Examen ───────── */
.assignment-card.is-exam {
  border-left-width: 7px;
  box-shadow: inset 0 0 16px color-mix(in srgb, var(--c) 18%, rgba(0, 0, 0, 0.12));
}

.assignment-card.is-exam:hover {
  box-shadow: inset 0 0 16px color-mix(in srgb, var(--c) 25%, rgba(0, 0, 0, 0.16)), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.assignment-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.exam-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--c) 22%, transparent);
  color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  padding: 1px 6px;
  border-radius: 4px;
}

.assignment-notes {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
  margin: 0;
}

.assignment-footer-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.assignment-admin-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-card-action {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-card-action:hover {
  color: var(--text);
  border-color: var(--accent);
}

.btn-card-action.delete:hover {
  color: #ef4444;
  border-color: #ef4444;
  background: color-mix(in srgb, #ef4444 10%, var(--surface));
}

.assignments-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-add-exam {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 20px;
  padding: 4px 12px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.btn-add-exam:hover {
  filter: brightness(1.1);
}

/* Botón contextual a Tablero Kanban en panel de entregas */
.btn-panel-kanban {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-panel-kanban:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-panel-kanban svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* ───────── Formularios en Diálogos Modales ───────── */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

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

.form-input, .form-select {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.form-error {
  font-size: 0.78rem;
  color: #ef4444;
  font-weight: 600;
  min-height: 1.1em;
}

/* ───────── Breakpoints Responsivos ───────── */
@media (max-width: 767px) {
  .table-wrapper, .legend-bar {
    display: none !important;
  }
  .timeline-view {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress > i,
  .timeline-card,
  .modal-dialog,
  .modal-backdrop,
  .assignment-card {
    transition: none !important;
  }
}

/* ───────── Accesibilidad (Screen Readers) ───────── */
.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;
}
