:root {
  --bg: #0b1220;
  --card: #111a2e;
  --surface: #16233a;
  --text: #e6e9f2;
  --text-muted: #8f9bb1;
  --muted: #a9b2c8;
  --primary: #4f8cff;
  --primary-contrast: #07101f;
  --danger: #ff5a6a;
  --border: #24304a;
  --link: #7eafff;
  --header-bg: rgba(11, 18, 32, 0.78);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --surface-softer: rgba(255, 255, 255, 0.03);
  --input-bg: rgba(255, 255, 255, 0.04);
  --focus-ring: rgba(79, 140, 255, 0.6);
  --primary-soft: rgba(79, 140, 255, 0.25);
  --danger-soft: rgba(255, 90, 106, 0.2);
  --primary-border: rgba(79, 140, 255, 0.5);
  --danger-border: rgba(255, 90, 106, 0.5);
  --table-head-bg: rgba(255, 255, 255, 0.04);
  --table-row-emphasis-bg: rgba(255, 255, 255, 0.03);
  --table-group-row-bg: rgba(255, 255, 255, 0.14);
  --status-normal-bg: rgba(255, 255, 255, 0.02);
  --status-weekend-bg: rgba(79, 140, 255, 0.12);
  --status-holiday-bg: rgba(80, 220, 130, 0.14);
  --status-teacher-absent-bg: rgba(255, 90, 106, 0.2);
  --status-student-absent-bg: rgba(255, 184, 76, 0.18);
  --status-salary-day-bg: rgba(180, 135, 255, 0.2);
  --status-demo-bg: rgba(84, 219, 255, 0.16);
  --status-briefing-bg: rgba(136, 186, 255, 0.18);
  --status-teacher-bday-bg: rgba(255, 140, 198, 0.2);
  --status-other-bg: rgba(180, 180, 180, 0.16);
  --quality-pass-border: rgba(50, 196, 125, 0.6);
  --quality-pass-text: #7de3b4;
  --quality-warning-border: rgba(255, 184, 76, 0.7);
  --quality-warning-text: #ffd18f;
  --quality-fail-border: rgba(244, 99, 99, 0.8);
  --quality-fail-text: #ffb3b3;
  --quality-unknown-border: rgba(168, 175, 190, 0.6);
  --quality-unknown-text: #cfd3dd;
  --status-reserved-color: #4f8cff;
  --status-completed-color: #3fb883;
  --status-noshow-color: #e06c75;
  --status-canceled-color: #c7a558;
  --status-active-border: rgba(34, 197, 94, 0.92);
  --status-active-bg: rgba(34, 197, 94, 0.28);
  --status-active-text: #dcfce7;
  --status-inactive-border: rgba(239, 68, 68, 0.92);
  --status-inactive-bg: rgba(239, 68, 68, 0.26);
  --status-inactive-text: #fee2e2;
  --status-pending-border: rgba(250, 204, 21, 0.92);
  --status-pending-bg: rgba(250, 204, 21, 0.3);
  --status-pending-text: #fef9c3;
  --pending-strong-bg: #dc3545;
  --pending-strong-text: #ffffff;
  --pending-warning-bg: #ffc107;
  --pending-warning-text: #111111;
  --pending-muted-bg: #6c757d;
  --pending-muted-text: #ffffff;
  --pending-row-bg: rgba(255, 193, 7, 0.2);
  --danger-text: #ffb3bd;
  --panel-soft-bg: rgba(255, 255, 255, 0.05);
  --penalty-head-teacher-bg: #ff4fd6;
  --penalty-head-late-bg: #ffe34d;
  --penalty-head-memo-bg: #57ff57;
  --penalty-head-penalty-bg: #69f0ff;
  --penalty-head-absent-bg: #ff4d4d;
  --penalty-head-text: #111111;
  --modal-surface: #101a2d;
  --modal-surface-alt: #16233a;
  --modal-backdrop: rgba(5, 12, 24, 0.78);
  --modal-shadow: 0 32px 96px rgba(2, 7, 17, 0.48);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f7fb;
  --card: #ffffff;
  --surface: #ffffff;
  --text: #122033;
  --text-muted: #66758c;
  --muted: #5e6b80;
  --primary: #2f67d8;
  --primary-contrast: #ffffff;
  --danger: #c8344b;
  --border: #d2dced;
  --link: #1d4fb5;
  --header-bg: rgba(244, 247, 251, 0.92);
  --surface-soft: rgba(17, 34, 51, 0.04);
  --surface-softer: rgba(17, 34, 51, 0.03);
  --input-bg: #ffffff;
  --focus-ring: rgba(47, 103, 216, 0.45);
  --primary-soft: rgba(47, 103, 216, 0.12);
  --danger-soft: rgba(200, 52, 75, 0.14);
  --primary-border: rgba(47, 103, 216, 0.45);
  --danger-border: rgba(200, 52, 75, 0.45);
  --table-head-bg: rgba(17, 34, 51, 0.06);
  --table-row-emphasis-bg: rgba(17, 34, 51, 0.04);
  --table-group-row-bg: rgba(17, 34, 51, 0.1);
  --status-normal-bg: rgba(17, 34, 51, 0.03);
  --status-weekend-bg: rgba(47, 103, 216, 0.12);
  --status-holiday-bg: rgba(48, 152, 101, 0.14);
  --status-teacher-absent-bg: rgba(200, 52, 75, 0.14);
  --status-student-absent-bg: rgba(214, 145, 24, 0.18);
  --status-salary-day-bg: rgba(130, 95, 220, 0.14);
  --status-demo-bg: rgba(22, 130, 170, 0.14);
  --status-briefing-bg: rgba(65, 122, 210, 0.14);
  --status-teacher-bday-bg: rgba(204, 74, 143, 0.14);
  --status-other-bg: rgba(94, 107, 128, 0.12);
  --quality-pass-border: rgba(33, 140, 90, 0.45);
  --quality-pass-text: #1f7a52;
  --quality-warning-border: rgba(196, 129, 21, 0.45);
  --quality-warning-text: #8f5a00;
  --quality-fail-border: rgba(200, 52, 75, 0.5);
  --quality-fail-text: #a1283f;
  --quality-unknown-border: rgba(94, 107, 128, 0.45);
  --quality-unknown-text: #566176;
  --status-reserved-color: #2f67d8;
  --status-completed-color: #20885a;
  --status-noshow-color: #b54355;
  --status-canceled-color: #8a6a26;
  --status-active-border: rgba(34, 197, 94, 0.9);
  --status-active-bg: rgba(34, 197, 94, 0.24);
  --status-active-text: #14532d;
  --status-inactive-border: rgba(220, 38, 38, 0.9);
  --status-inactive-bg: rgba(220, 38, 38, 0.2);
  --status-inactive-text: #7f1d1d;
  --status-pending-border: rgba(245, 158, 11, 0.9);
  --status-pending-bg: rgba(245, 158, 11, 0.24);
  --status-pending-text: #713f12;
  --pending-strong-bg: #c8344b;
  --pending-strong-text: #ffffff;
  --pending-warning-bg: #ffc107;
  --pending-warning-text: #111111;
  --pending-muted-bg: #6c757d;
  --pending-muted-text: #ffffff;
  --pending-row-bg: rgba(255, 193, 7, 0.23);
  --danger-text: #b0233b;
  --panel-soft-bg: rgba(17, 34, 51, 0.04);
  --penalty-head-teacher-bg: #ff8be2;
  --penalty-head-late-bg: #ffe47a;
  --penalty-head-memo-bg: #9ff29f;
  --penalty-head-penalty-bg: #9eeef7;
  --penalty-head-absent-bg: #ff8888;
  --penalty-head-text: #111111;
  --modal-surface: #ffffff;
  --modal-surface-alt: #f7faff;
  --modal-backdrop: rgba(15, 23, 42, 0.56);
  --modal-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

a:focus,
button:focus,
input:focus {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 10;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

@media (min-width: 1024px) {
  .container {
    max-width: none;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1600px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
}

.site-shell {
  min-height: 100vh;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-header-top {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.site-header-body {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  color: var(--text);
  font-weight: 700;
}

.nav {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav-mobile {
  display: block;
}

.site-nav-tree {
  display: none;
  width: 100%;
}

.tree-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tree-node {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-softer);
  overflow: hidden;
}

.tree-node > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  font-weight: 700;
}

.tree-node > summary::-webkit-details-marker {
  display: none;
}

.tree-node > summary::after {
  content: "▸";
  color: var(--muted);
  font-size: 0.85rem;
  transform-origin: center;
  transition: transform 140ms ease;
}

.tree-node[open] > summary {
  border-bottom: 1px solid var(--border);
}

.tree-node[open] > summary::after {
  transform: rotate(90deg);
}

.tree-links {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tree-links a,
.tree-link-button {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font: inherit;
}

.tree-links a:hover,
.tree-link-button:hover {
  background: var(--surface-soft);
  border-color: var(--border);
}

.tree-links a.active {
  background: var(--primary-soft);
  border-color: var(--primary-border);
}

.tree-link-form {
  margin: 0;
}

.linklike {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  cursor: pointer;
  min-height: 44px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

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

.dashboard-panel {
  margin: 0;
}

.dashboard-keyline {
  margin: 0;
  font-size: 1.05rem;
}

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

.form {
  max-width: 520px;
}

.field {
  margin: 12px 0;
}

label {
  display: block;
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
}

fieldset.field {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}

.checkbox input {
  width: auto;
  min-height: 20px;
}

.help {
  color: var(--muted);
  font-size: 0.95rem;
}

.error {
  background: var(--danger-soft);
  border: 1px solid var(--danger-border);
  padding: 10px 12px;
  border-radius: 10px;
  margin-top: 8px;
}

.messages {
  margin: 16px 0;
}

.message {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.primary,
button,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface-softer);
  cursor: pointer;
}

.primary {
  background: var(--primary);
  border-color: var(--primary-border);
  color: var(--primary-contrast);
  font-weight: 700;
}

.secondary {
  background: transparent;
}

.danger {
  background: var(--danger-soft);
  border-color: var(--danger-border);
}

.cta {
  width: 100%;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 18px 14px;
  border-radius: 14px;
  background: var(--primary-soft);
  border-color: var(--primary-border);
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.list-item-stack {
  align-items: flex-start;
}

.list-main {
  min-width: 0;
  flex: 1;
}

.list-title {
  font-weight: 700;
}

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

.role-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.role-head-main {
  min-width: min(320px, 100%);
}

.role-head-actions,
.role-actions,
.role-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

.role-head-actions form,
.role-actions form,
.role-list-actions form {
  margin: 0;
}

.role-list-item {
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
}

.role-list-main {
  flex: 0 1 auto;
  min-width: min(320px, 100%);
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.summary-cell {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 8px 10px;
}

.summary-label {
  font-size: 0.82rem;
  color: var(--muted);
}

.summary-value {
  font-weight: 700;
  margin-top: 4px;
}

.small-gap {
  margin-top: 8px;
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.badge-danger {
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.table-head-soft {
  background: var(--table-head-bg);
}

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

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

.status-normal {
  background: var(--status-normal-bg);
}

.status-weekend {
  background: var(--status-weekend-bg);
}

.status-holiday {
  background: var(--status-holiday-bg);
}

.status-teacher-absent {
  background: var(--status-teacher-absent-bg);
}

.status-student-absent {
  background: var(--status-student-absent-bg);
}

.status-salary-day {
  background: var(--status-salary-day-bg);
}

.status-demo {
  background: var(--status-demo-bg);
}

.status-briefing {
  background: var(--status-briefing-bg);
}

.status-teacher-bday {
  background: var(--status-teacher-bday-bg);
}

.status-other {
  background: var(--status-other-bg);
}

.quality-pass {
  border-color: var(--quality-pass-border);
  color: var(--quality-pass-text);
}

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

.quality-fail {
  border-color: var(--quality-fail-border);
  color: var(--quality-fail-text);
}

.quality-unknown {
  border-color: var(--quality-unknown-border);
  color: var(--quality-unknown-text);
}

.pill.success,
.pill.status-COMPLETED {
  border-color: var(--status-completed-color);
  color: var(--status-completed-color);
}

.pill.status-RESERVED {
  border-color: var(--status-reserved-color);
  color: var(--status-reserved-color);
}

.pill.status-NO_SHOW {
  border-color: var(--status-noshow-color);
  color: var(--status-noshow-color);
}

.pill.status-CANCELED {
  border-color: var(--status-canceled-color);
  color: var(--status-canceled-color);
}

.pill.status-ACTIVE,
.pill.status-active,
.badge.status-ACTIVE,
.badge.status-active {
  border-color: var(--status-active-border);
  background: var(--status-active-bg);
  color: var(--status-active-text);
  font-weight: 700;
}

.pill.status-INACTIVE,
.pill.status-inactive,
.badge.status-INACTIVE,
.badge.status-inactive {
  border-color: var(--status-inactive-border);
  background: var(--status-inactive-bg);
  color: var(--status-inactive-text);
  font-weight: 700;
}

.pill.status-PENDING,
.pill.status-pending,
.badge.status-PENDING,
.badge.status-pending {
  border-color: var(--status-pending-border);
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
  font-weight: 700;
}

.panel-soft {
  margin-top: 12px;
  padding: 10px;
  background: var(--panel-soft-bg);
  border-radius: 8px;
}

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

.status-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-chip-strong {
  background: var(--pending-strong-bg);
  color: var(--pending-strong-text);
}

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

.status-chip-muted {
  background: var(--pending-muted-bg);
  color: var(--pending-muted-text);
}

.theme-toggle {
  min-width: 146px;
  white-space: nowrap;
}

.teacher-page {
  display: grid;
  gap: 16px;
}

.teacher-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

.teacher-hero--compact {
  grid-template-columns: minmax(0, 1.7fr) minmax(420px, 1fr);
}

.teacher-hero-main,
.teacher-hero-side,
.teacher-panel,
.teacher-sticky-panel,
.teacher-subpanel {
  display: grid;
  gap: 12px;
}

.teacher-headline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.teacher-kicker {
  color: var(--muted);
  font-size: 0.95rem;
}

.teacher-primary-card {
  border: 1px solid var(--primary-border);
  background: linear-gradient(135deg, var(--primary-soft), var(--surface-softer));
}

.teacher-top-actions,
.teacher-chip-list,
.teacher-tabbar,
.teacher-filter-bar,
.teacher-inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.teacher-filter-bar--jump {
  width: min(320px, 100%);
}

.teacher-filter-bar--jump input[type="search"] {
  flex: 1 1 260px;
}

.teacher-chip,
.teacher-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text);
}

.teacher-tab.active {
  background: var(--primary-soft);
  border-color: var(--primary-border);
}

.teacher-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-size: 0.85rem;
}

.teacher-alert {
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
  color: var(--danger-text);
  border-radius: 12px;
  padding: 10px 12px;
}

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

.teacher-metrics--compact {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
}

.teacher-metric {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-softer);
  padding: 12px;
}

.teacher-metric-value {
  font-size: 1.5rem;
  font-weight: 800;
}

.teacher-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.teacher-dashboard-grid .card {
  align-self: start;
}

.teacher-grid-full {
  display: grid;
  gap: 16px;
}

.teacher-list-table {
  width: 100%;
  border-collapse: collapse;
}

.teacher-list-table th,
.teacher-list-table td {
  border-top: 1px solid var(--border);
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
}

.teacher-list-table th {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.teacher-list-row-link {
  color: var(--text);
  font-weight: 700;
}

.teacher-timeline {
  display: grid;
  gap: 10px;
}

.teacher-timeline-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-softer);
}

.teacher-timeline-row--compact {
  grid-template-columns: 92px minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.teacher-timeline-row.is-current {
  border-color: var(--primary-border);
  background: var(--primary-soft);
}

.teacher-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.teacher-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.teacher-sticky-panel {
  position: sticky;
  top: 24px;
}

.teacher-form-grid {
  display: grid;
  gap: 12px;
}

.teacher-form-section,
.teacher-summary-rail,
.teacher-browser-draft-list {
  display: grid;
  gap: 12px;
}

.teacher-report-context-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.teacher-report-context .teacher-metric strong {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
}

.teacher-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.teacher-muted-box {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--muted);
}

.teacher-empty-state {
  display: grid;
  gap: 10px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface-softer);
}

.teacher-empty-title {
  font-weight: 700;
}

.teacher-queue-list,
.teacher-summary-stack,
.teacher-rail-stack {
  display: grid;
  gap: 10px;
}

.teacher-queue-card,
.teacher-summary-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-softer);
}

.teacher-queue-card.is-active {
  border-color: var(--primary-border);
  background: var(--primary-soft);
}

.teacher-button-disabled {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
}

.teacher-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
}

.teacher-status.scheduled {
  border-color: var(--status-reserved-color);
  color: var(--status-reserved-color);
}

.teacher-status.live {
  border-color: var(--primary-border);
  background: var(--primary-soft);
  color: var(--text);
}

.teacher-status.late,
.teacher-status.draft {
  border-color: var(--quality-warning-border);
  background: color-mix(in srgb, var(--quality-warning-border) 16%, transparent);
  color: var(--quality-warning-text);
}

.teacher-status.completed {
  border-color: var(--status-completed-color);
  color: var(--status-completed-color);
}

.teacher-status.submitted {
  border-color: var(--status-completed-color);
  background: color-mix(in srgb, var(--status-completed-color) 8%, transparent);
  color: var(--status-completed-color);
}

.teacher-status.absent,
.teacher-status.canceled,
.teacher-status.report-missing,
.teacher-status.no_show,
.teacher-status.cancelled,
.teacher-status.missing {
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.teacher-empty {
  color: var(--muted);
  padding: 12px 0;
}

.teacher-summary-text {
  color: var(--muted);
  font-size: 0.95rem;
}

.teacher-report-picker {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.teacher-report-picker__input {
  width: 100%;
}

.teacher-skeleton-row {
  height: 76px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--surface-soft), var(--surface-softer), var(--surface-soft));
  background-size: 200% 100%;
  animation: teacher-skeleton 1.2s ease-in-out infinite;
}

.teacher-dashboard-modal {
  width: min(1280px, calc(100vw - 48px));
  max-width: 1280px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0;
  background: var(--modal-surface);
  color: var(--text);
  box-shadow: var(--modal-shadow);
}

.teacher-dashboard-modal::backdrop {
  background: var(--modal-backdrop);
}

.teacher-dashboard-modal,
.teacher-dashboard-modal__header,
.teacher-dashboard-modal__body,
.teacher-dashboard-modal .card,
.teacher-dashboard-modal .teacher-metric,
.teacher-dashboard-modal .teacher-summary-item,
.teacher-dashboard-modal .teacher-muted-box,
.teacher-dashboard-modal .teacher-queue-card {
  opacity: 1;
}

.teacher-dashboard-modal__header,
.teacher-dashboard-modal__body {
  background: var(--modal-surface);
}

.teacher-dashboard-modal .card,
.teacher-dashboard-modal .teacher-metric,
.teacher-dashboard-modal .teacher-summary-item,
.teacher-dashboard-modal .teacher-queue-card,
.teacher-dashboard-modal .teacher-muted-box {
  background: var(--modal-surface-alt);
}

.teacher-dashboard-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.teacher-dashboard-modal__body {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.25fr);
  gap: 16px;
  padding: 20px;
}

.teacher-dashboard-modal__context,
.teacher-dashboard-modal__editor {
  display: grid;
  gap: 14px;
  align-content: start;
}

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

.teacher-page a:focus-visible,
.teacher-page button:focus-visible,
.teacher-page input:focus-visible,
.teacher-page select:focus-visible,
.teacher-page textarea:focus-visible {
  outline: 3px solid var(--primary-border);
  outline-offset: 2px;
}

@media (max-width: 1023px) {
  .teacher-hero,
  .teacher-grid,
  .teacher-workspace,
  .teacher-split,
  .teacher-dashboard-modal__body,
  .teacher-form-row,
  .teacher-timeline-row {
    grid-template-columns: 1fr;
  }

  .teacher-metrics--compact {
    grid-template-columns: 1fr;
  }

  .teacher-dashboard-modal {
    width: min(100vw - 20px, 920px);
  }

  .teacher-sticky-panel {
    position: static;
  }
}

@media (min-width: 1024px) {
  .site-shell {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
  }

  .site-header {
    border-bottom: none;
    border-right: 1px solid var(--border);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
  }

  .site-header .container {
    margin: 0;
    height: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .site-header-inner {
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 14px;
    height: 100%;
  }

  .site-header-top {
    min-height: 0;
  }

  .site-header-body {
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }

  .site-nav-mobile {
    display: none;
  }

  .site-nav-tree {
    display: block;
    flex: 1;
    min-height: 0;
    overflow: auto;
  }

  .site-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }

  .site-controls .theme-toggle,
  .site-controls form,
  .site-controls select {
    width: 100%;
  }

  .site-main {
    margin: 0;
    width: 100%;
  }
}

.english-growth-page {
  display: grid;
  gap: 16px;
}

.english-growth-band-grid,
.english-growth-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.english-growth-band-card,
.english-growth-book-card {
  padding: 14px;
}

.english-growth-book-meta {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.english-growth-book-title {
  font-weight: 700;
  font-size: 1rem;
}

.english-growth-shelf {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.english-growth-admin-grid,
.english-growth-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.english-growth-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.english-growth-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
}

.english-growth-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(560px, 100%);
  background: var(--modal-surface);
  border-left: 1px solid var(--border);
  padding: 18px;
  overflow: auto;
  display: grid;
  gap: 12px;
  box-shadow: var(--modal-shadow);
}

@media (max-width: 720px) {
  .english-growth-admin-grid,
  .english-growth-history-grid,
  .english-growth-band-grid,
  .english-growth-book-grid {
    grid-template-columns: 1fr;
  }
}

.english-growth-lead-form {
  max-width: 760px;
}

.english-growth-modal-host {
  width: min(1200px, calc(100vw - 24px));
  max-width: 1200px;
}

.english-growth-modal-content {
  width: 100%;
}

.english-growth-modal-layout {
  display: block;
}

.teacher-books-page {
  gap: 18px;
}

.teacher-books-summary-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.teacher-books-stat {
  min-height: 124px;
}

.teacher-books-stat__label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.teacher-books-stat__value {
  font-size: clamp(2rem, 2.6vw, 2.5rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 8px;
}

.teacher-books-filters-panel {
  display: grid;
  gap: 16px;
}

.teacher-books-filters-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.teacher-books-filters-head h2,
.teacher-books-student-card h2,
.teacher-books-plan-card h2,
.teacher-books-empty-banner h2,
.teacher-book-passport-empty h2 {
  margin: 4px 0 0;
}

.teacher-books-filters {
  display: grid;
  gap: 12px;
}

.teacher-books-filters__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.teacher-books-filters__row label,
.teacher-books-assign-form label {
  display: grid;
  gap: 6px;
}

.teacher-books-filters__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.teacher-books-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.teacher-books-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-softer);
  font-weight: 700;
}

.teacher-books-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.teacher-books-toggle--compact {
  justify-self: start;
}

.teacher-books-student-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  gap: 16px;
}

.teacher-books-student-card,
.teacher-books-plan-card {
  display: grid;
  gap: 14px;
}

.teacher-books-student-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.teacher-books-student-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.teacher-books-student-cell {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-softer);
}

.teacher-books-student-cell__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 6px;
}

.teacher-books-student-cell__value {
  font-size: 1rem;
  font-weight: 800;
}

.teacher-books-plan-list {
  display: grid;
  gap: 10px;
}

.teacher-books-plan-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, var(--surface), var(--surface-softer));
}

.teacher-books-plan-item__label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.teacher-books-plan-item__title {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
}

.teacher-books-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.teacher-books-catalog {
  display: grid;
  gap: 14px;
}

.teacher-books-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.teacher-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.teacher-book-card {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(16, 33, 58, 0.08);
}

.teacher-book-card__cover--passport,
.teacher-book-passport__cover {
  color: #fff;
  position: relative;
  overflow: hidden;
}

.teacher-book-card__cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-book-card__cover-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 15, 30, 0.18) 0%, rgba(7, 15, 30, 0.08) 28%, rgba(7, 15, 30, 0.78) 100%),
    linear-gradient(140deg, rgba(10, 24, 48, 0.18), rgba(10, 24, 48, 0.48));
}

.teacher-book-card__cover--passport {
  min-height: 228px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.teacher-book-card__cover--passport::before,
.teacher-book-passport__cover::before {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -54px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.teacher-book-card__cover--passport::after,
.teacher-book-passport__cover::after {
  content: "";
  position: absolute;
  left: -26px;
  top: 18px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.teacher-book-card__cover--has-image::before,
.teacher-book-card__cover--has-image::after {
  background: rgba(255, 255, 255, 0.14);
}

.teacher-book-card__badge-row,
.teacher-book-passport .teacher-book-card__badge-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.teacher-book-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.teacher-book-badge--dark {
  background: rgba(16, 23, 39, 0.36);
}

.teacher-book-badge--green {
  background: rgba(31, 157, 96, 0.24);
}

.teacher-book-badge--blue {
  background: rgba(45, 107, 255, 0.24);
}

.teacher-book-badge--orange {
  background: rgba(245, 158, 11, 0.28);
}

.teacher-book-badge--purple {
  background: rgba(124, 92, 255, 0.25);
}

.teacher-book-badge--teal {
  background: rgba(18, 164, 168, 0.24);
}

.teacher-book-badge--slate {
  background: rgba(93, 109, 131, 0.3);
}

.teacher-book-badge--red {
  background: rgba(239, 68, 68, 0.28);
}

.teacher-book-card__hero,
.teacher-book-passport__title-wrap {
  position: relative;
  z-index: 1;
}

.teacher-book-card__hero-title,
.teacher-book-passport__title {
  font-size: clamp(1.7rem, 2.1vw, 2.2rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
  max-width: 85%;
}

.teacher-book-card__hero-subtitle,
.teacher-book-passport__subtitle {
  margin-top: 8px;
  font-size: 0.88rem;
  opacity: 0.88;
}

.teacher-book-card__body--passport {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.teacher-book-card__eyebrow {
  font-size: 0.74rem;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.teacher-book-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.teacher-book-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.18;
}

.teacher-book-card__status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-softer);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.teacher-book-fit-box {
  display: grid;
  gap: 6px;
  border: 1px solid #dbe7f6;
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(180deg, #f9fbff, #f4f8ff);
}

.teacher-book-fit-box__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.teacher-book-card__fit {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}

.teacher-book-card__story-blurb {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #c8ecee;
  background: linear-gradient(180deg, #f4fbfc, #e8f6f7);
  color: #17454b;
  line-height: 1.55;
  font-weight: 600;
}

.teacher-book-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-softer);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-muted);
}

.teacher-book-pill--blue {
  color: #1958cc;
  background: #eef4ff;
  border-color: #d6e3ff;
}

.teacher-book-pill--green {
  color: #177f4f;
  background: #eaf8f1;
  border-color: #cdebd9;
}

.teacher-book-pill--orange {
  color: #b67300;
  background: #fff5e4;
  border-color: #ffe3b0;
}

.teacher-book-pill--purple {
  color: #6c4bdb;
  background: #f3efff;
  border-color: #e0d5ff;
}

.teacher-book-pill--teal {
  color: #0c7b7f;
  background: #e7f7f8;
  border-color: #c8ecee;
}

.teacher-book-pill--slate {
  color: #50627b;
  background: #edf2f8;
  border-color: #dbe4ee;
}

.teacher-book-pill--red {
  color: #c33c3c;
  background: #fff1f1;
  border-color: #ffd7d7;
}

.teacher-book-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.teacher-books-modal-open {
  overflow: hidden;
}

.teacher-books-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.teacher-books-modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(6px);
}

.teacher-books-modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 12px;
  display: grid;
  gap: 12px;
  background: var(--modal-surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--modal-shadow);
}

.teacher-books-passport-rail {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 12px;
}

.teacher-book-passport,
.teacher-book-passport-empty {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(16, 33, 58, 0.1);
}

.teacher-book-passport__head {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafcff, #f4f8ff);
}

.teacher-books-modal .teacher-book-passport,
.teacher-books-modal .teacher-book-passport-empty {
  box-shadow: 0 18px 44px rgba(6, 15, 29, 0.18);
  background: var(--modal-surface-alt);
}

.teacher-book-passport__cover {
  min-height: 220px;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: default;
}

.teacher-book-passport__cover[data-book-cover-open] {
  cursor: zoom-in;
}

.teacher-book-passport__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.teacher-book-passport__body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.teacher-book-passport__cover-zoom {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(7, 15, 30, 0.38);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.teacher-books-cover-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.teacher-books-cover-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.84);
}

.teacher-books-cover-viewer__dialog {
  position: absolute;
  inset: 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border-radius: 28px;
  background: var(--modal-surface);
  border: 1px solid var(--border);
  box-shadow: var(--modal-shadow);
}

.teacher-books-cover-viewer__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.teacher-books-cover-viewer__body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  border-radius: 20px;
  background: rgba(7, 15, 30, 0.28);
  overflow: auto;
}

.teacher-books-cover-viewer__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(5, 12, 24, 0.28);
}

.teacher-book-passport__section {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: var(--surface-softer);
}

.teacher-book-passport__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.teacher-book-passport__section-title {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.teacher-book-passport__grid,
.teacher-book-passport__fit-grid,
.teacher-book-passport__sample-strip {
  display: grid;
  gap: 10px;
}

.teacher-book-passport__grid,
.teacher-book-passport__fit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teacher-book-passport__sample-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teacher-book-passport__meta,
.teacher-book-passport__sample-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.teacher-book-passport__meta-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.teacher-book-passport__meta-value {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
}

.teacher-book-note-box {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #12284d, #0c1c37);
  color: #fff;
  line-height: 1.6;
  font-weight: 600;
}

.teacher-book-note-box--story {
  background: linear-gradient(180deg, #0f5f68, #0c3e56);
}

.teacher-book-story-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.teacher-book-story-recommendation {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #d7e6f6;
  background: linear-gradient(180deg, #fbfdff, #f2f7fd);
}

.teacher-books-assign-form {
  display: grid;
  gap: 12px;
}

@media (max-width: 1400px) {
  .teacher-books-summary-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teacher-books-passport-rail {
    position: static;
  }

  .teacher-books-student-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .teacher-books-summary-board,
  .teacher-books-filters__row,
  .teacher-books-student-grid,
  .teacher-book-passport__grid,
  .teacher-book-passport__fit-grid,
  .teacher-book-passport__sample-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .teacher-books-grid {
    grid-template-columns: 1fr;
  }

  .teacher-books-filters__footer,
  .teacher-books-filters-head,
  .teacher-books-student-card__top,
  .teacher-books-toolbar {
    align-items: stretch;
  }

  .teacher-books-modal__dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 8px;
  }

  .teacher-books-cover-viewer__dialog {
    inset: 8px;
    padding: 10px;
  }
}

.english-growth-modal-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
