:root {
  --ink: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --paper: #ffffff;
  --canvas: #f8fafc;
  --forest: #0f3833;
  --forest-2: #0a2723;
  --teal: #0d9488;
  --teal-soft: #ccfbf1;
  --coral: #f43f5e;
  --coral-soft: #ffe4e6;
  --yellow: #eab308;
  --yellow-soft: #fef9c3;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --focus: #0d9488;
  --shadow-sm: 0 4px 12px -2px rgba(15, 56, 51, 0.05), 0 2px 4px -2px rgba(15, 56, 51, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(15, 56, 51, 0.08), 0 8px 10px -6px rgba(15, 56, 51, 0.04);
  --shadow-lg: 0 25px 50px -12px rgba(10, 39, 35, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --topbar-height: 68px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.picker-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
  letter-spacing: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

/* Accessibility Skip Link */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  color: #fff;
  border-radius: var(--radius-sm);
  background: var(--forest);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.public-app {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Topbar Header */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-height);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--forest);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.app-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, 1440px);
  height: 100%;
  margin: 0 auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand-link:hover {
  opacity: 0.9;
}

.brand-link img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.brand-copy > span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.topbar-action {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.app-topbar .icon-button {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.18);
}

.app-topbar .icon-button:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.topbar-action {
  display: inline-flex;
  width: auto;
  padding: 0 16px;
  gap: 8px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.topbar-action:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.icon-button i,
.topbar-action i {
  font-size: 1.2rem;
}

/* Program Header Banner */
.program-band {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.program-band::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  content: "";
  background: var(--coral);
}

.program-band::after {
  position: absolute;
  right: 6%;
  bottom: 0;
  width: 160px;
  height: 5px;
  content: "";
  border-radius: 4px 4px 0 0;
  background: var(--yellow);
}

.program-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  width: min(100% - 40px, 1440px);
  min-height: 160px;
  margin: 0 auto;
  padding: 24px 0;
}

.program-heading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 22px;
}

.program-logo {
  display: grid;
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--canvas);
  box-shadow: var(--shadow-sm);
}

.program-logo img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.program-logo-fallback {
  color: var(--forest);
  font-size: 1.7rem;
  font-weight: 800;
}

.eyebrow,
.workspace-kicker {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.program-heading h1 {
  max-width: 960px;
  margin: 0;
  color: var(--ink);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.program-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.program-mark {
  display: grid;
  min-width: 160px;
  padding: 8px 0 8px 20px;
  gap: 2px;
  border-left: 3px solid var(--yellow);
}

.program-mark strong {
  color: var(--forest);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.program-mark span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mobile-picker-trigger {
  display: none;
}

/* Selection Band / Filter Toolbar */
.selection-band {
  position: relative;
  z-index: 10;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--forest);
  box-shadow: var(--shadow-sm);
}

.selection-inner {
  width: min(100% - 40px, 1440px);
  margin: 0 auto;
  padding: 20px 0 24px;
}

.selection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.selection-heading h2 {
  margin: 0 0 3px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.selection-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
}

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

.field {
  min-width: 0;
}

.field.is-hidden {
  display: none;
}

.field label {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.select-wrap {
  position: relative;
  display: block;
}

.select-wrap > i {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  color: var(--teal);
  font-size: 1.1rem;
  pointer-events: none;
  transform: translateY(-50%);
}

.select-wrap select {
  width: 100%;
  height: 48px;
  padding: 0 38px 0 42px;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  outline: 0;
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  appearance: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s var(--ease-out);
}

.select-wrap select:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.select-wrap select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(244, 197, 79, 0.3);
}

.select-wrap select:disabled {
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.08);
  background: #f1f5f9;
  cursor: not-allowed;
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  color: #64748b;
  font-size: 1rem;
  pointer-events: none;
  transform: translateY(-50%);
}

.sheet-close,
.sheet-handle,
.picker-done {
  display: none;
}

.picker-done:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.selection-backdrop {
  display: none;
}

/* Schedule Main Workspace */
.schedule-main {
  width: min(100% - 40px, 1440px);
  margin: 0 auto;
  padding: 32px 0 64px;
}

/* Empty State */
.schedule-empty {
  display: grid;
  min-height: 440px;
  place-items: center;
}

.empty-content {
  width: min(100%, 520px);
  padding: 32px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--paper);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.empty-illustration {
  width: min(100%, 240px);
  height: 180px;
  object-fit: contain;
  animation: empty-float 5s ease-in-out infinite;
}

.empty-content h2 {
  margin: 20px 0 8px;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.empty-content p {
  max-width: 420px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.empty-picker-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 22px;
  padding: 0 20px;
  gap: 8px;
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--teal);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  transition: all 0.2s var(--ease-out);
}

.empty-picker-action:hover {
  background: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.schedule-workspace {
  min-width: 0;
}

/* Schedule Heading & Context Chips */
.schedule-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.schedule-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.schedule-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.context-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  color: #334155;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--paper);
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* KPI Badges */
.schedule-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.schedule-kpi {
  display: grid;
  min-width: 92px;
  padding: 12px 20px;
  gap: 2px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.schedule-kpi:last-child {
  border-right: 0;
}

.schedule-kpi strong {
  color: var(--forest);
  font-size: 1.15rem;
  font-weight: 800;
}

.schedule-kpi span {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Schedule Toolbar */
.schedule-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.search-wrap {
  position: relative;
  max-width: 510px;
}

.search-wrap > i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--muted);
  font-size: 1.1rem;
  transform: translateY(-50%);
}

.search-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 42px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: 0;
  background: var(--paper);
  font-size: 0.82rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease-out);
}

.search-wrap input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.15s ease;
}

.search-clear:hover {
  background: var(--canvas);
}

.view-switch {
  display: inline-flex;
  height: 46px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f1f5f9;
}

.view-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 0 14px;
  gap: 6px;
  color: var(--muted);
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.view-switch button.is-active {
  color: var(--forest);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.view-switch i {
  font-size: 1.05rem;
}

.primary-action,
.secondary-action,
.toolbar-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.primary-action,
.toolbar-download {
  color: #fff;
  border: 1px solid var(--teal);
  background: var(--teal);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.2);
}

.primary-action:hover,
.toolbar-download:hover {
  border-color: #0f766e;
  background: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.secondary-action {
  color: var(--forest);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.secondary-action:hover {
  background: var(--canvas);
  border-color: #94a3b8;
}

/* Main Table Structure */
.table-shell {
  overflow: auto;
  max-height: calc(100vh - 120px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.schedule-table {
  width: 100%;
  min-width: 930px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.schedule-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.schedule-table thead {
  position: sticky;
  top: 0;
  z-index: 4;
}

.schedule-table thead th {
  height: 52px;
  padding: 10px 8px;
  color: #475569;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f1f5f9;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.schedule-table thead th:nth-child(2) {
  box-shadow: inset 0 3px var(--coral);
}

.schedule-table thead th:nth-child(3) {
  box-shadow: inset 0 3px var(--yellow);
}

.schedule-table thead th:nth-child(4) {
  box-shadow: inset 0 3px var(--teal);
}

.schedule-table thead th:nth-child(5) {
  box-shadow: inset 0 3px var(--blue);
}

.schedule-table thead th:nth-child(6) {
  box-shadow: inset 0 3px #8b5cf6;
}

.schedule-table thead th:last-child,
.schedule-table tbody td:last-child {
  border-right: 0;
}

.time-heading {
  width: 92px;
}

.schedule-table tbody th,
.schedule-table tbody td {
  height: 82px;
  padding: 6px;
  vertical-align: top;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.schedule-table tbody tr:last-child th,
.schedule-table tbody tr:last-child td {
  border-bottom: 0;
}

.time-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 92px;
  padding-top: 14px !important;
  color: var(--ink);
  background: #f8fafc;
  text-align: center;
  box-shadow: 1px 0 0 var(--line);
}

.time-cell strong,
.time-cell span {
  display: block;
}

.time-cell strong {
  font-size: 0.78rem;
  font-weight: 700;
}

.time-cell span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 500;
}

.class-cell {
  background: #fff;
}

.empty-cell {
  background-color: #fafafa;
}

/* Class Card Item Inside Grid */
.schedule-class {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 70px;
  padding: 10px 11px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--teacher, var(--teal));
  border-left-width: 4px;
  border-radius: 6px;
  background: var(--teacher-soft, var(--teal-soft));
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.schedule-class:hover {
  z-index: 3;
  box-shadow: 0 10px 20px -5px rgba(15, 56, 51, 0.15);
  transform: translateY(-2px);
}

.schedule-class strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.schedule-class span {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  color: #475569;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-class i {
  color: var(--teacher, var(--teal));
}

.schedule-class .class-room {
  color: var(--forest);
  font-weight: 700;
}

.recess-row th {
  height: 48px !important;
}

.recess-label {
  height: 48px !important;
  padding: 0 !important;
  vertical-align: middle !important;
  color: #854d0e;
  background: var(--yellow-soft) !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}

.recess-label i {
  margin-right: 6px;
}

/* Day Panel / List View Layout */
.day-panel {
  min-width: 0;
}

.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: none;
}

.day-tabs::-webkit-scrollbar {
  display: none;
}

.day-tab {
  min-width: 78px;
  height: 44px;
  flex: 1 0 auto;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.day-tab[aria-selected="true"] {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
  box-shadow: var(--shadow-sm);
}

.day-list {
  position: relative;
  display: grid;
  gap: 12px;
  padding-left: 0;
}

.day-class {
  position: relative;
  display: grid;
  grid-template-columns: 82px 5px minmax(0, 1fr) 42px;
  align-items: stretch;
  min-height: 100px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.day-class:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.day-time {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 12px 8px;
  color: var(--forest);
  background: #f1f5f9;
  font-size: 0.85rem;
  font-weight: 800;
}

.day-time span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
}

.day-accent {
  background: var(--teacher, var(--teal));
}

.day-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  padding: 14px 16px;
  gap: 6px;
}

.day-copy strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.day-copy span {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-copy i {
  color: var(--teacher, var(--teal));
}

.day-copy .day-room {
  color: var(--forest);
  font-weight: 700;
}

.day-open {
  align-self: center;
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s ease;
}

.day-open:hover {
  color: var(--forest);
}

.day-open i {
  font-size: 1.4rem;
}

.day-recess {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #854d0e;
  border: 1px solid #fef08a;
  border-radius: var(--radius-sm);
  background: var(--yellow-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.no-results {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper);
  font-size: 0.88rem;
  text-align: center;
}

.no-results i {
  color: var(--teal);
  font-size: 2.2rem;
}

/* Modal Dialog */
.class-dialog {
  width: min(calc(100% - 32px), 480px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.class-dialog::backdrop {
  background: rgba(10, 39, 35, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dialog-head {
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 22px;
  color: #fff;
  background: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dialog-head .icon-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.dialog-head .icon-button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.dialog-body {
  padding: 26px;
}

.dialog-accent {
  width: 56px;
  height: 5px;
  margin-bottom: 16px;
  border-radius: 4px;
  background: var(--teacher, var(--teal));
}

.dialog-body h2 {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.dialog-details {
  display: grid;
  margin: 0;
  gap: 20px;
}

.dialog-detail {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.dialog-detail > i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--teal);
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
  font-size: 1.15rem;
}

.dialog-detail dt {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dialog-detail dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

/* Mobile Actionbar & Toast */
.mobile-actionbar {
  display: none;
}

.app-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: flex;
  max-width: min(calc(100% - 40px), 380px);
  min-height: 50px;
  padding: 12px 18px;
  align-items: center;
  gap: 10px;
  color: #fff;
  border-radius: var(--radius-sm);
  background: var(--forest-2);
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem;
  font-weight: 500;
}

.app-toast i {
  color: var(--yellow);
  font-size: 1.2rem;
}

@keyframes empty-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Mobile Responsive Breakpoints */
@media (max-width: 900px) {
  :root {
    --topbar-height: 58px;
  }

  .app-topbar-inner,
  .program-band-inner,
  .schedule-main {
    width: min(100% - 28px, 720px);
  }

  .brand-link img {
    width: 36px;
    height: 36px;
  }

  .brand-copy > span,
  .topbar-action span {
    display: none;
  }

  .topbar-action {
    width: 42px;
    padding: 0;
  }

  .program-band::before {
    width: 5px;
  }

  .program-band::after,
  .program-mark {
    display: none;
  }

  .program-band-inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 20px 0;
    gap: 16px;
  }

  .program-heading {
    align-items: flex-start;
    gap: 14px;
  }

  .program-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
  }

  .program-logo img {
    width: 52px;
    height: 52px;
  }

  .eyebrow {
    margin-bottom: 4px;
    font-size: 0.62rem;
  }

  .status-dot {
    width: 6px;
    height: 6px;
    margin-right: 6px;
  }

  .program-heading h1 {
    font-size: 1.3rem;
    line-height: 1.2;
  }

  .program-subtitle {
    display: none;
  }

  .mobile-picker-trigger {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    width: 100%;
    min-height: 56px;
    padding: 8px 12px;
    align-items: center;
    color: var(--forest);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--canvas);
    box-shadow: var(--shadow-sm);
    text-align: left;
  }

  .mobile-picker-trigger > i:first-child {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    border-radius: 6px;
    background: var(--coral);
    font-size: 1.1rem;
  }

  .mobile-picker-trigger > i:last-child {
    color: var(--muted);
    font-size: 1.25rem;
  }

  .mobile-picker-trigger span {
    display: grid;
    gap: 1px;
  }

  .mobile-picker-trigger small {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .mobile-picker-trigger strong {
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .selection-band {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    color: var(--ink);
    border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    background: var(--paper);
    box-shadow: var(--shadow-lg);
    transform: translateY(calc(100% + 30px));
    visibility: hidden;
    transition: transform 260ms var(--ease-out), visibility 260ms var(--ease-out);
  }

  .selection-band.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .selection-inner {
    width: 100%;
    padding: 12px 20px max(20px, env(safe-area-inset-bottom));
  }

  .sheet-handle {
    display: block;
    width: 44px;
    height: 4px;
    margin: 0 auto 16px;
    border-radius: 4px;
    background: var(--line-strong);
  }

  .selection-heading {
    margin-bottom: 18px;
  }

  .selection-heading h2 {
    margin-bottom: 3px;
    font-size: 1.15rem;
  }

  .selection-heading p {
    color: var(--muted);
    font-size: 0.76rem;
  }

  .sheet-close {
    display: inline-grid;
    color: var(--muted);
    border-color: var(--line);
    background: var(--canvas);
  }

  .selection-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .field label {
    color: #475569;
    font-size: 0.64rem;
  }

  .select-wrap select {
    height: 52px;
    border-color: var(--line-strong);
    font-size: 0.85rem;
  }

  .picker-done {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    margin-top: 20px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--teal);
    font-size: 0.84rem;
    font-weight: 700;
  }

  .selection-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(10, 39, 35, 0.6);
    backdrop-filter: blur(4px);
  }

  .schedule-main {
    padding: 20px 0 100px;
  }

  .schedule-empty {
    min-height: calc(100dvh - 305px);
  }

  .empty-content {
    padding: 20px 12px 32px;
  }

  .empty-illustration {
    width: min(100%, 200px);
    height: 150px;
  }

  .empty-content h2 {
    margin-top: 14px;
    font-size: 1.25rem;
  }

  .empty-content p {
    padding: 0 8px;
    font-size: 0.82rem;
  }

  .empty-picker-action {
    min-height: 48px;
  }

  .schedule-heading {
    display: grid;
    align-items: start;
    gap: 14px;
    margin-bottom: 16px;
  }

  .schedule-heading h2 {
    font-size: 1.35rem;
  }

  .schedule-context {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .schedule-context::-webkit-scrollbar {
    display: none;
  }

  .context-chip {
    flex: 0 0 auto;
  }

  .schedule-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 0;
    background: transparent;
    box-shadow: none;
    gap: 8px;
  }

  .schedule-kpi {
    min-width: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: var(--radius-sm);
  }

  .schedule-kpi:nth-child(1) {
    background: var(--coral-soft);
  }

  .schedule-kpi:nth-child(2) {
    background: var(--teal-soft);
  }

  .schedule-kpi:nth-child(3) {
    background: var(--yellow-soft);
  }

  .schedule-toolbar {
    position: sticky;
    top: calc(var(--topbar-height) + 1px);
    z-index: 30;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 -14px 12px;
    padding: 10px 14px;
    gap: 8px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .search-wrap {
    max-width: none;
  }

  .search-wrap input {
    height: 44px;
    font-size: 0.78rem;
  }

  .view-switch {
    height: 44px;
  }

  .view-switch button {
    min-width: 42px;
    padding: 0;
  }

  .view-switch button span {
    display: none;
  }

  .view-switch i {
    font-size: 1.2rem;
  }

  .toolbar-download {
    display: none;
  }

  .day-tabs {
    position: sticky;
    top: calc(var(--topbar-height) + 64px);
    z-index: 25;
    margin: 0 -14px 12px;
    padding: 8px 14px 10px;
    background: var(--canvas);
  }

  .day-tab {
    min-width: 60px;
    height: 42px;
  }

  .day-list {
    gap: 10px;
  }

  .day-class {
    grid-template-columns: 70px 5px minmax(0, 1fr) 36px;
    min-height: 105px;
  }

  .day-time {
    padding: 10px 6px;
    font-size: 0.8rem;
  }

  .day-copy {
    padding: 12px 10px;
  }

  .day-copy strong {
    font-size: 0.86rem;
  }

  .day-copy span {
    font-size: 0.7rem;
  }

  .mobile-actionbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 6px max(10px, env(safe-area-inset-right)) env(safe-area-inset-bottom)
      max(10px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -10px 30px rgba(10, 39, 35, 0.08);
  }

  .mobile-actionbar button {
    display: grid;
    min-width: 0;
    min-height: 52px;
    padding: 4px 2px;
    place-items: center;
    align-content: center;
    gap: 2px;
    color: var(--muted);
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-size: 0.62rem;
    font-weight: 700;
  }

  .mobile-actionbar button:first-child {
    color: var(--coral);
  }

  .mobile-actionbar button:last-child {
    color: var(--teal);
  }

  .mobile-actionbar i {
    font-size: 1.35rem;
  }

  .class-dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 52px);
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
  }

  .dialog-body {
    padding: 22px 20px;
  }

  .app-toast {
    right: 14px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: 14px;
    max-width: none;
  }
}

@media (max-width: 430px) {
  .brand-copy strong {
    max-width: 150px;
  }

  .program-heading h1 {
    font-size: 1.15rem;
  }

  .schedule-main,
  .program-band-inner,
  .app-topbar-inner {
    width: calc(100% - 24px);
  }

  .schedule-toolbar {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .day-tabs {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .day-class {
    grid-template-columns: 64px 5px minmax(0, 1fr) 32px;
  }

  .day-copy span {
    max-width: 100%;
  }
}

@media print {
  .app-topbar,
  .selection-band,
  .selection-backdrop,
  .schedule-toolbar,
  .mobile-actionbar,
  .empty-picker-action,
  .mobile-picker-trigger {
    display: none !important;
  }

  body,
  .public-app {
    background: #fff;
  }

  .program-band-inner,
  .schedule-main {
    width: 100%;
  }

  .schedule-main {
    padding: 20px 0;
  }

  .table-shell {
    overflow: visible;
    max-height: none;
    box-shadow: none;
  }
}

/* ==========================================================================
   IDENTIDAD DINAMICA DEL PROGRAMA
   El programa tematiza la interfaz; --teacher sigue controlando las clases.
   ========================================================================== */
:root {
  --program-color: #2563eb;
  --program-dark: #123b75;
  --program-deep: #091b3d;
  --program-highlight: #5c85e9;
  --program-soft: #e9f0fd;
  --program-soft-strong: #d4e0fa;
  --program-rgb: 37, 99, 235;
  --program-contrast: #ffffff;
}

body {
  background:
    radial-gradient(circle at 4% 18%, rgba(var(--program-rgb), 0.055), transparent 24rem),
    radial-gradient(circle at 96% 46%, rgba(var(--program-rgb), 0.035), transparent 28rem),
    linear-gradient(180deg, #f7f9fd 0%, #f3f6fb 100%);
}

::selection {
  color: var(--program-contrast);
  background: var(--program-color);
}

.skip-link {
  background: var(--program-dark);
}

.app-topbar::before {
  background: linear-gradient(180deg, var(--program-color), var(--program-highlight));
}

.brand-link img {
  border-color: var(--program-soft-strong);
  background: linear-gradient(145deg, #ffffff, var(--program-soft));
  box-shadow: 0 9px 22px rgba(var(--program-rgb), 0.12);
}

.app-topbar .icon-button:hover {
  color: var(--program-dark);
  border-color: var(--program-soft-strong);
  background: var(--program-soft);
  box-shadow: 0 9px 22px rgba(var(--program-rgb), 0.12);
}

.topbar-action,
.primary-action,
.toolbar-download,
.empty-picker-action,
.picker-done {
  color: #fff;
  border-color: var(--program-dark);
  background: linear-gradient(135deg, var(--program-color), var(--program-dark));
  box-shadow: 0 10px 22px rgba(var(--program-rgb), 0.2);
}

.topbar-action:hover,
.primary-action:hover,
.toolbar-download:hover,
.empty-picker-action:hover {
  color: #fff;
  border-color: var(--program-deep);
  background: linear-gradient(135deg, var(--program-dark), var(--program-deep));
  box-shadow: 0 14px 28px rgba(var(--program-rgb), 0.27);
}

.program-band {
  background:
    radial-gradient(circle at 80% 18%, rgba(var(--program-rgb), 0.28), transparent 18rem),
    radial-gradient(circle at 14% 120%, rgba(var(--program-rgb), 0.5), transparent 24rem),
    linear-gradient(116deg, var(--program-deep) 0%, var(--program-dark) 54%, var(--program-color) 145%);
}

.program-logo {
  border-color: rgba(var(--program-rgb), 0.32);
  box-shadow: 0 24px 50px rgba(var(--program-rgb), 0.22), inset 0 1px 0 #fff;
}

.program-logo-fallback {
  color: var(--program-dark);
}

.eyebrow {
  color: #fff;
  border-color: rgba(var(--program-rgb), 0.42);
  background: rgba(var(--program-rgb), 0.26);
}

.status-dot {
  background: var(--program-highlight);
  box-shadow: 0 0 0 5px rgba(var(--program-rgb), 0.2);
}

.selection-inner::before {
  background: linear-gradient(90deg, var(--program-color), var(--program-highlight) 55%, transparent 95%);
}

.select-wrap > i,
.workspace-kicker,
.no-results i {
  color: var(--program-color);
}

.select-wrap select:hover:not(:disabled) {
  border-color: var(--program-soft-strong);
  box-shadow: 0 9px 20px rgba(var(--program-rgb), 0.08);
}

.select-wrap select:focus,
.search-wrap input:focus {
  border-color: var(--program-color);
  box-shadow: 0 0 0 4px rgba(var(--program-rgb), 0.12);
}

.empty-content {
  background:
    radial-gradient(circle at 50% -20%, rgba(var(--program-rgb), 0.12), transparent 23rem),
    #fff;
}

.schedule-kpi:first-child::before {
  background: var(--program-color);
}

.schedule-kpi:first-child strong {
  color: var(--program-dark);
}

.view-switch button.is-active,
.secondary-action:hover,
.day-tab:hover,
.day-open:hover {
  color: var(--program-dark);
}

.view-switch button.is-active,
.day-open:hover {
  background: var(--program-soft);
}

.schedule-table thead th:nth-child(n+2) {
  box-shadow: inset 0 4px var(--program-color);
}

.schedule-table thead th:nth-child(3),
.schedule-table thead th:nth-child(5) {
  box-shadow: inset 0 4px var(--program-highlight);
}

.day-tab:hover {
  border-color: var(--program-soft-strong);
  background: var(--program-soft);
}

.day-tab[aria-selected="true"] {
  color: #fff;
  border-color: var(--program-dark);
  background: linear-gradient(135deg, var(--program-color), var(--program-dark));
  box-shadow: 0 12px 26px rgba(var(--program-rgb), 0.23);
}

.dialog-head,
.app-toast {
  background:
    radial-gradient(circle at 88% -80%, rgba(var(--program-rgb), 0.62), transparent 42%),
    linear-gradient(120deg, var(--program-deep), var(--program-dark));
}

.dialog-detail > i {
  color: var(--program-dark);
  border-color: var(--program-soft-strong);
  background: var(--program-soft);
}

.app-toast i {
  color: var(--program-highlight);
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline-color: rgba(var(--program-rgb), 0.3);
}

@media (max-width: 900px) {
  .mobile-picker-trigger > i:first-child {
    background: linear-gradient(135deg, var(--program-highlight), var(--program-color));
  }

  .mobile-actionbar button:first-child,
  .mobile-actionbar button:last-child {
    color: var(--program-dark);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .status-dot,
  .day-accent,
  .dialog-accent {
    forced-color-adjust: none;
  }
}
/* ========================================================================== 
   PORTAL DE HORARIOS — REDISEÑO INSTITUCIONAL PREMIUM
   Paleta: azul marino, azul real, celeste y blanco.
   Mantiene intactos los selectores y el comportamiento JavaScript existente.
   ========================================================================== */

:root {
  --ink: #0b1739;
  --muted: #64748b;
  --line: #e4eaf3;
  --line-strong: #cfd8e6;
  --paper: #ffffff;
  --canvas: #f4f7fb;
  --forest: #081a3d;
  --forest-2: #051126;
  --teal: #1d4ed8;
  --teal-soft: #eaf1ff;
  --coral: #2563eb;
  --coral-soft: #eaf2ff;
  --yellow: #f59e0b;
  --yellow-soft: #fff7df;
  --blue: #0ea5e9;
  --blue-soft: #e9f8ff;
  --focus: #2563eb;
  --shadow-sm: 0 8px 24px rgba(15, 38, 82, 0.06);
  --shadow-md: 0 18px 46px rgba(15, 38, 82, 0.10);
  --shadow-lg: 0 34px 90px rgba(4, 18, 48, 0.28);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --topbar-height: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  max-width: 100%;
  overflow-x: hidden;
  background: var(--canvas);
}

body {
  max-width: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 18%, rgba(var(--program-rgb), 0.055), transparent 24rem),
    radial-gradient(circle at 96% 46%, rgba(var(--program-rgb), 0.035), transparent 28rem),
    linear-gradient(180deg, #f7f9fd 0%, #f3f6fb 100%);
}

::selection {
  color: var(--program-contrast);
  background: var(--program-color);
}

.skip-link {
  background: var(--program-dark);
  border-radius: 12px;
}

/* --------------------------------------------------------------------------
   CABECERA DEL PORTAL
   -------------------------------------------------------------------------- */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--topbar-height);
  color: var(--ink);
  border-bottom: 1px solid rgba(207, 216, 230, 0.8);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(14, 35, 76, 0.06);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.app-topbar::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: linear-gradient(180deg, var(--program-color), var(--program-highlight));
}

.app-topbar-inner {
  width: min(100% - 52px, 1480px);
}

.brand-link {
  gap: 13px;
  color: var(--ink);
}

.brand-link:hover {
  opacity: 1;
}

.brand-link img {
  width: 46px;
  height: 46px;
  padding: 4px;
  border: 1px solid var(--program-soft-strong);
  border-radius: 15px;
  background: linear-gradient(145deg, #ffffff, var(--program-soft));
  filter: none;
  box-shadow: 0 9px 22px rgba(var(--program-rgb), 0.12);
}

.brand-copy {
  gap: 1px;
}

.brand-copy strong {
  color: #0a1a3a;
  font-size: 0.97rem;
  font-weight: 800;
  letter-spacing: -0.018em;
}

.brand-copy > span {
  color: #718096;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.topbar-actions {
  gap: 9px;
}

.icon-button,
.topbar-action {
  min-width: 44px;
  height: 44px;
  border-radius: 13px;
}

.app-topbar .icon-button {
  color: #284166;
  border-color: #dce5f1;
  background: #f8faff;
}

.app-topbar .icon-button:hover {
  color: var(--program-dark);
  border-color: var(--program-soft-strong);
  background: var(--program-soft);
  box-shadow: 0 9px 22px rgba(var(--program-rgb), 0.12);
}

.topbar-action {
  color: #fff;
  border-color: var(--program-dark);
  background: linear-gradient(135deg, var(--program-color), var(--program-dark));
  box-shadow: 0 10px 22px rgba(var(--program-rgb), 0.19);
}

.topbar-action:hover {
  color: #fff;
  border-color: var(--program-deep);
  background: linear-gradient(135deg, var(--program-dark), var(--program-deep));
  box-shadow: 0 13px 27px rgba(var(--program-rgb), 0.25);
}

/* --------------------------------------------------------------------------
   HERO INSTITUCIONAL DEL PROGRAMA
   -------------------------------------------------------------------------- */
.program-band {
  position: relative;
  overflow: visible;
  color: #fff;
  border: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(var(--program-rgb), 0.28), transparent 18rem),
    radial-gradient(circle at 14% 120%, rgba(var(--program-rgb), 0.5), transparent 24rem),
    linear-gradient(116deg, var(--program-deep) 0%, var(--program-dark) 54%, var(--program-color) 145%);
  box-shadow: none;
  isolation: isolate;
}

.program-band::before {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, black, transparent 85%);
  -webkit-mask-image: linear-gradient(to right, black, transparent 85%);
  opacity: 0.55;
  pointer-events: none;
}

.program-band::after {
  position: absolute;
  top: 34px;
  right: 8%;
  bottom: auto;
  left: auto;
  width: 190px;
  height: 190px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.035);
  transform: rotate(24deg);
}

.program-band-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 52px, 1480px);
  min-height: 244px;
  padding: 38px 0 68px;
}

.program-heading {
  gap: 25px;
}

.program-logo {
  width: 102px;
  height: 102px;
  border: 1px solid rgba(var(--program-rgb), 0.32);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 50px rgba(var(--program-rgb), 0.22), inset 0 1px 0 #fff;
}

.program-logo img {
  width: 80px;
  height: 80px;
}

.program-logo-fallback {
  color: var(--program-dark);
  font-size: 2rem;
}

.eyebrow {
  display: inline-flex;
  min-height: 30px;
  margin-bottom: 12px;
  padding: 0 12px;
  align-items: center;
  color: #fff;
  border: 1px solid rgba(var(--program-rgb), 0.42);
  border-radius: 999px;
  background: rgba(var(--program-rgb), 0.26);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.105em;
  backdrop-filter: blur(8px);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--program-highlight);
  box-shadow: 0 0 0 5px rgba(var(--program-rgb), 0.2);
}

.program-heading h1 {
  max-width: 920px;
  color: #fff;
  font-size: clamp(1.95rem, 3.25vw, 2.8rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.043em;
}

.program-subtitle {
  max-width: 760px;
  margin-top: 12px;
  color: rgba(226, 238, 255, 0.78);
  font-size: 0.96rem;
  line-height: 1.65;
}

.program-mark {
  min-width: 205px;
  padding: 20px 22px;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-left: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 38px rgba(1, 11, 31, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.program-mark strong {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 850;
}

.program-mark span {
  color: rgba(219, 234, 254, 0.72);
  font-size: 0.64rem;
}

/* --------------------------------------------------------------------------
   SELECTOR PRINCIPAL — TARJETA SUPERPUESTA
   -------------------------------------------------------------------------- */
.selection-band {
  z-index: 20;
  color: var(--ink);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.selection-inner {
  position: relative;
  width: min(100% - 52px, 1480px);
  margin-top: -42px;
  padding: 24px 26px 28px;
  border: 1px solid rgba(218, 227, 240, 0.96);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 58px rgba(15, 38, 82, 0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.selection-inner::before {
  position: absolute;
  top: 0;
  right: 26px;
  left: 26px;
  height: 3px;
  content: "";
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, var(--program-color), var(--program-highlight) 55%, transparent 95%);
}

.selection-heading {
  margin-bottom: 19px;
}

.selection-heading h2 {
  color: #0a1a3a;
  font-size: 1.08rem;
  font-weight: 820;
}

.selection-heading p {
  color: #718096;
  font-size: 0.78rem;
}

.selection-grid {
  gap: 13px;
}

.field {
  position: relative;
}

.field label {
  margin-bottom: 8px;
  color: #425574;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.075em;
}

.select-wrap {
  border-radius: 14px;
}

.select-wrap > i {
  left: 15px;
  color: var(--program-color);
  font-size: 1.12rem;
}

.select-wrap select {
  height: 54px;
  padding-left: 43px;
  color: #172442;
  border: 1px solid #dce5f1;
  border-radius: 14px;
  background: #f8faff;
  font-size: 0.83rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.select-wrap select:hover:not(:disabled) {
  border-color: var(--program-soft-strong);
  background: #fff;
  box-shadow: 0 9px 20px rgba(var(--program-rgb), 0.08);
}

.select-wrap select:focus {
  border-color: var(--program-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--program-rgb), 0.12);
}

.select-wrap select:disabled {
  color: #9aa7ba;
  border-color: #e9edf4;
  background: #f1f4f8;
}

.select-chevron {
  color: #6f7f96;
}

/* --------------------------------------------------------------------------
   ÁREA DE HORARIOS
   -------------------------------------------------------------------------- */
.schedule-main {
  width: min(100% - 52px, 1480px);
  padding: 34px 0 76px;
}

.schedule-empty {
  min-height: 470px;
}

.empty-content {
  width: min(100%, 660px);
  padding: 44px 38px;
  border: 1px solid #dfe7f2;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% -20%, rgba(var(--program-rgb), 0.12), transparent 23rem),
    #fff;
  box-shadow: var(--shadow-md);
}

.empty-illustration {
  width: min(100%, 250px);
  height: 184px;
}

.empty-content h2 {
  margin-top: 21px;
  color: #0b1d43;
  font-size: 1.62rem;
  font-weight: 830;
  letter-spacing: -0.03em;
}

.empty-content p {
  color: #6b7a90;
  font-size: 0.9rem;
}

.empty-picker-action {
  min-height: 50px;
  padding: 0 23px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--program-color), var(--program-dark));
  box-shadow: 0 14px 30px rgba(var(--program-rgb), 0.24);
}

.empty-picker-action:hover {
  background: linear-gradient(135deg, var(--program-dark), var(--program-deep));
  box-shadow: 0 18px 36px rgba(var(--program-rgb), 0.3);
}

.schedule-heading {
  align-items: center;
  margin-bottom: 16px;
  padding: 20px 22px;
  border: 1px solid #e0e7f1;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.workspace-kicker {
  margin-bottom: 5px;
  color: var(--program-color);
  font-size: 0.66rem;
  letter-spacing: 0.105em;
}

.schedule-heading h2 {
  color: #0a1a3a;
  font-size: clamp(1.5rem, 2.3vw, 1.95rem);
  font-weight: 850;
  letter-spacing: -0.037em;
}

.schedule-context {
  gap: 7px;
  margin-top: 11px;
}

.context-chip {
  min-height: 30px;
  padding: 0 12px;
  color: #425574;
  border: 1px solid #dfe7f2;
  background: #f8faff;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: none;
}

.schedule-kpis {
  grid-template-columns: repeat(3, minmax(104px, 1fr));
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  gap: 9px;
}

.schedule-kpi {
  position: relative;
  min-width: 108px;
  padding: 14px 17px;
  overflow: hidden;
  border: 1px solid #dfe7f2;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f6f9ff);
  box-shadow: 0 8px 20px rgba(15, 38, 82, 0.055);
}

.schedule-kpi::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  content: "";
  background: var(--program-color);
}

.schedule-kpi:nth-child(2)::before {
  background: #0ea5e9;
}

.schedule-kpi:nth-child(3)::before {
  background: #6366f1;
}

.schedule-kpi strong {
  color: var(--program-dark);
  font-size: 1.28rem;
  font-weight: 860;
}

.schedule-kpi:nth-child(2) strong {
  color: #0369a1;
}

.schedule-kpi:nth-child(3) strong {
  color: #4338ca;
}

.schedule-kpi span {
  color: #718096;
  font-size: 0.58rem;
}

/* Toolbar */
.schedule-toolbar {
  grid-template-columns: minmax(270px, 1fr) auto auto;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid #e0e7f1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.search-wrap {
  max-width: 590px;
}

.search-wrap > i {
  color: #718096;
}

.search-wrap input {
  height: 48px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: #f4f7fb;
  box-shadow: none;
}

.search-wrap input:hover {
  background: #eef3f9;
}

.search-wrap input:focus {
  border-color: var(--program-soft-strong);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--program-rgb), 0.11);
}

.search-clear {
  border-radius: 9px;
}

.view-switch {
  height: 48px;
  border-color: #dfe7f2;
  border-radius: 13px;
  background: #f4f7fb;
}

.view-switch button {
  border-radius: 10px;
}

.view-switch button.is-active {
  color: var(--program-dark);
  background: var(--program-soft);
  box-shadow: 0 7px 18px rgba(15, 38, 82, 0.10);
}

.primary-action,
.secondary-action,
.toolbar-download {
  min-height: 48px;
  border-radius: 13px;
}

.primary-action,
.toolbar-download {
  border-color: var(--program-dark);
  background: linear-gradient(135deg, var(--program-color), var(--program-dark));
  box-shadow: 0 10px 22px rgba(var(--program-rgb), 0.2);
}

.primary-action:hover,
.toolbar-download:hover {
  border-color: var(--program-deep);
  background: linear-gradient(135deg, var(--program-dark), var(--program-deep));
  box-shadow: 0 14px 28px rgba(var(--program-rgb), 0.27);
}

.secondary-action {
  color: #17315f;
  border-color: #d5dfed;
  background: #fff;
}

.secondary-action:hover {
  color: var(--program-dark);
  border-color: var(--program-soft-strong);
  background: var(--program-soft);
}

/* --------------------------------------------------------------------------
   TABLA SEMANAL
   -------------------------------------------------------------------------- */
.table-shell {
  max-height: calc(100vh - 132px);
  border: 1px solid #dce5f1;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 23px 56px rgba(15, 38, 82, 0.10);
}

.schedule-table thead th {
  height: 60px;
  color: #274264;
  border-color: #e2e9f2;
  background: linear-gradient(180deg, #fbfcfe, #f4f7fb);
  font-size: 0.67rem;
  letter-spacing: 0.085em;
}

.schedule-table thead th:nth-child(n+2) {
  box-shadow: inset 0 4px var(--program-color);
}

.schedule-table thead th:nth-child(3),
.schedule-table thead th:nth-child(5) {
  box-shadow: inset 0 4px var(--program-highlight);
}

.schedule-table tbody th,
.schedule-table tbody td {
  height: 90px;
  padding: 7px;
  border-color: #ebeff5;
}

.time-cell {
  color: #17315f;
  background: linear-gradient(180deg, #f8faff, #f3f6fb);
  box-shadow: 1px 0 0 #e0e7f1;
}

.time-cell strong {
  font-size: 0.79rem;
  font-weight: 800;
}

.time-cell span {
  color: #7a889d;
}

.class-cell {
  background: #fff;
}

.empty-cell {
  background:
    linear-gradient(135deg, rgba(247, 249, 252, 0.82), rgba(255, 255, 255, 0.96));
}

.schedule-class {
  min-height: 76px;
  padding: 11px 12px;
  border-width: 1px;
  border-left-width: 4px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 72%),
    var(--teacher-soft, #eaf2ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.schedule-class:hover {
  box-shadow: 0 15px 31px -12px rgba(13, 35, 76, 0.28);
  transform: translateY(-3px);
}

.schedule-class strong {
  color: #112445;
  font-size: 0.75rem;
  font-weight: 790;
}

.schedule-class span {
  color: #627188;
}

.schedule-class .class-room {
  color: #203b64;
}

.recess-label {
  color: #8a5400;
  border-color: #f4dfad !important;
  background:
    repeating-linear-gradient(-45deg, #fffaf0, #fffaf0 10px, #fff4d8 10px, #fff4d8 20px) !important;
}

/* --------------------------------------------------------------------------
   VISTA POR DÍA
   -------------------------------------------------------------------------- */
.day-tabs {
  gap: 9px;
}

.day-tab {
  height: 46px;
  color: #5d6e85;
  border-color: #dfe7f2;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(15, 38, 82, 0.045);
}

.day-tab:hover {
  color: var(--program-dark);
  border-color: var(--program-soft-strong);
  background: var(--program-soft);
}

.day-tab[aria-selected="true"] {
  color: #fff;
  border-color: var(--program-dark);
  background: linear-gradient(135deg, var(--program-color), var(--program-dark));
  box-shadow: 0 12px 26px rgba(var(--program-rgb), 0.23);
}

.day-list {
  gap: 13px;
}

.day-class {
  min-height: 108px;
  border-color: #dfe7f2;
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.day-class:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.day-time {
  color: #17315f;
  background: linear-gradient(150deg, #f8faff, #eef3f9);
}

.day-accent {
  width: 6px;
}

.day-copy {
  padding: 16px 18px;
}

.day-copy strong {
  color: #112445;
  font-size: 0.95rem;
  font-weight: 790;
}

.day-copy span {
  color: #64748b;
}

.day-copy .day-room {
  color: #203b64;
}

.day-open {
  width: 36px;
  height: 36px;
  margin-right: 8px;
  border-radius: 11px;
}

.day-open:hover {
  color: var(--program-dark);
  background: var(--program-soft);
}

.day-recess,
.no-results {
  border-radius: 16px;
}

.no-results {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.no-results i {
  color: var(--program-color);
}

/* --------------------------------------------------------------------------
   MODAL, TOAST Y ELEMENTOS FLOTANTES
   -------------------------------------------------------------------------- */
.class-dialog {
  width: min(calc(100% - 32px), 510px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 25px;
  box-shadow: 0 38px 95px rgba(2, 14, 42, 0.38);
}

.class-dialog::backdrop {
  background: rgba(3, 15, 40, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dialog-head {
  height: 64px;
  background:
    radial-gradient(circle at 88% -80%, rgba(var(--program-rgb), 0.62), transparent 42%),
    linear-gradient(120deg, var(--program-deep), var(--program-dark));
}

.dialog-body {
  padding: 30px;
}

.dialog-accent {
  width: 64px;
  height: 6px;
}

.dialog-body h2 {
  color: #0a1a3a;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.dialog-detail > i {
  color: var(--program-dark);
  border: 1px solid var(--program-soft-strong);
  border-radius: 12px;
  background: var(--program-soft);
}

.dialog-detail dt {
  color: #718096;
}

.dialog-detail dd {
  color: #172442;
}

.dialog-footer {
  padding: 18px 24px;
  background: #f6f8fc;
}

.app-toast {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  background: linear-gradient(135deg, var(--program-deep), var(--program-dark));
  box-shadow: 0 24px 60px rgba(2, 14, 42, 0.32);
}

.app-toast i {
  color: var(--program-highlight);
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(var(--program-rgb), 0.3);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root {
    --topbar-height: 62px;
  }

  .app-topbar-inner,
  .program-band-inner,
  .schedule-main {
    width: min(100% - 28px, 760px);
  }

  .brand-link img {
    width: 39px;
    height: 39px;
    border-radius: 12px;
  }

  .app-topbar .icon-button,
  .topbar-action {
    width: 42px;
    height: 42px;
  }

  .program-band-inner {
    min-height: 218px;
    padding: 26px 0 72px;
  }

  .program-heading {
    gap: 15px;
  }

  .program-logo {
    width: 70px;
    height: 70px;
    border-radius: 19px;
  }

  .program-logo img {
    width: 55px;
    height: 55px;
  }

  .eyebrow {
    min-height: 26px;
    margin-bottom: 8px;
    padding: 0 9px;
    font-size: 0.57rem;
  }

  .program-heading h1 {
    color: #fff;
    font-size: 1.42rem;
  }

  .program-subtitle {
    display: block;
    max-width: 540px;
    margin-top: 8px;
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .mobile-picker-trigger {
    min-height: 60px;
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-picker-trigger > i:first-child {
    border-radius: 11px;
    background: linear-gradient(135deg, var(--program-highlight), var(--program-color));
  }

  .mobile-picker-trigger > i:last-child,
  .mobile-picker-trigger small {
    color: rgba(219, 234, 254, 0.74);
  }

  .selection-band {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    color: var(--ink);
    border-top: 1px solid #dce5f1;
    border-radius: 24px 24px 0 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -25px 70px rgba(2, 14, 42, 0.24);
    transform: translateY(calc(100% + 30px));
    visibility: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .selection-band.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .selection-inner {
    width: 100%;
    margin-top: 0;
    padding: 12px 20px max(22px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .selection-inner::before {
    display: none;
  }

  .select-wrap select {
    height: 54px;
    border-color: #dce5f1;
    background: #f7f9fd;
  }

  .picker-done {
    min-height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--program-color), var(--program-dark));
    box-shadow: 0 14px 28px rgba(var(--program-rgb), 0.23);
  }

  .selection-backdrop {
    background: rgba(2, 14, 42, 0.62);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
  }

  .schedule-main {
    padding: 22px 0 104px;
  }

  .schedule-heading {
    display: grid;
    align-items: start;
    gap: 15px;
    padding: 18px;
    border-radius: 19px;
  }

  .schedule-heading h2 {
    font-size: 1.38rem;
  }

  .schedule-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .schedule-kpi {
    min-width: 0;
    padding: 11px 11px 11px 14px;
    border-radius: 13px;
  }

  .schedule-toolbar {
    position: sticky;
    top: calc(var(--topbar-height) + 1px);
    z-index: 30;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 -14px 13px;
    padding: 10px 14px;
    gap: 8px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: rgba(244, 247, 251, 0.93);
    box-shadow: 0 10px 24px rgba(15, 38, 82, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .search-wrap input,
  .view-switch {
    height: 46px;
  }

  .day-tabs {
    background: rgba(244, 247, 251, 0.96);
  }

  .day-tab {
    min-width: 64px;
    border-radius: 12px;
  }

  .day-class {
    grid-template-columns: 72px 6px minmax(0, 1fr) 38px;
    border-radius: 17px;
  }

  .mobile-actionbar {
    border-top-color: #dce5f1;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -16px 40px rgba(15, 38, 82, 0.11);
  }

  .mobile-actionbar button:first-child,
  .mobile-actionbar button:last-child {
    color: var(--program-dark);
  }

  .class-dialog {
    border-radius: 24px 24px 0 0;
  }
}

@media (max-width: 560px) {
  .app-topbar-inner,
  .program-band-inner,
  .schedule-main {
    width: calc(100% - 24px);
  }

  .brand-copy strong {
    max-width: 178px;
  }

  .program-band-inner {
    min-height: 224px;
    padding-top: 23px;
  }

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

  .program-logo {
    width: 64px;
    height: 64px;
    border-radius: 17px;
  }

  .program-logo img {
    width: 49px;
    height: 49px;
  }

  .program-heading h1 {
    font-size: 1.2rem;
  }

  .program-subtitle {
    font-size: 0.74rem;
  }

  .schedule-heading {
    margin-right: -2px;
    margin-left: -2px;
  }

  .schedule-kpi strong {
    font-size: 1.12rem;
  }

  .schedule-kpi span {
    font-size: 0.53rem;
  }

  .day-class {
    grid-template-columns: 66px 5px minmax(0, 1fr) 34px;
  }
}

@media print {
  html,
  body {
    background: #fff !important;
  }

  .program-band {
    color: #111827;
    background: #fff;
  }

  .program-heading h1,
  .program-subtitle,
  .program-mark strong,
  .program-mark span {
    color: #111827;
  }

  .selection-inner,
  .schedule-heading,
  .schedule-toolbar,
  .table-shell {
    border-color: #d7dce7;
    background: #fff;
    box-shadow: none;
  }
}
