@font-face {
  font-family: "Pretendard GOV";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/krds-uiux@1.1.0/resources/fonts/PretendardGOV-Regular.subset.woff2") format("woff2");
}

@font-face {
  font-family: "Pretendard GOV";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/krds-uiux@1.1.0/resources/fonts/PretendardGOV-Medium.subset.woff2") format("woff2");
}

@font-face {
  font-family: "Pretendard GOV";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/krds-uiux@1.1.0/resources/fonts/PretendardGOV-Bold.subset.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --krds-primary-5: #ecf2fe;
  --krds-primary-10: #d8e5fd;
  --krds-primary-20: #b1cefb;
  --krds-primary-50: #256ef4;
  --krds-primary-60: #0b50d0;
  --krds-primary-70: #083891;
  --krds-secondary-5: #eef2f7;
  --krds-secondary-70: #063a74;
  --krds-gray-0: #fff;
  --krds-gray-5: #f4f5f6;
  --krds-gray-10: #e6e8ea;
  --krds-gray-20: #cdd1d5;
  --krds-gray-30: #b1b8be;
  --krds-gray-50: #6d7882;
  --krds-gray-60: #58616a;
  --krds-gray-70: #464c53;
  --krds-gray-90: #1e2124;
  --krds-gray-95: #131416;
  --krds-danger-5: #fdefec;
  --krds-danger-50: #de3412;
  --krds-danger-60: #bd2c0f;
  --krds-warning-5: #fff3db;
  --krds-warning-50: #9e6a00;
  --krds-success-5: #eaf6ec;
  --krds-success-50: #228738;
  --krds-information-5: #e7f4fe;
  --krds-information-50: #0b78cb;

  --space-1: 1px;
  --space-2: 2px;
  --space-3: 3px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-20: 20px;
  --space-24: 24px;
  --space-26: 26px;
  --space-28: 28px;
  --space-30: 30px;
  --space-32: 32px;
  --space-34: 34px;
  --space-36: 36px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-58: 58px;
  --space-64: 64px;
  --space-72: 72px;
  --space-80: 80px;
  --text-10: 10px;
  --text-12: 12px;
  --text-13: 13px;
  --text-14: 14px;
  --text-15: 15px;
  --text-18: 18px;
  --text-20: 20px;
  --text-24: 24px;
  --text-26: 26px;
  --text-30: 30px;
  --text-36: 36px;

  --bg: var(--krds-gray-5);
  --bg-deep: var(--krds-gray-10);
  --panel: var(--krds-gray-0);
  --panel-soft: var(--krds-gray-5);
  --panel-strong: var(--krds-secondary-5);
  --ink: var(--krds-gray-90);
  --ink-strong: var(--krds-gray-95);
  --muted: var(--krds-gray-60);
  --muted-soft: var(--krds-gray-50);
  --line: var(--krds-gray-20);
  --line-soft: var(--krds-gray-10);
  --line-strong: var(--krds-gray-30);
  --blue: var(--krds-primary-50);
  --blue-dark: var(--krds-primary-60);
  --blue-soft: var(--krds-primary-20);
  --blue-tint: var(--krds-primary-5);
  --blue-tint-strong: var(--krds-primary-10);
  --blue-text: var(--krds-primary-60);
  --student-call-backdrop: color-mix(in srgb, var(--krds-gray-95) 96%, transparent);
  --student-call-panel: var(--krds-secondary-70);
  --student-call-ink: var(--krds-gray-0);
  --student-call-muted: var(--krds-primary-20);
  --student-call-detail: var(--krds-primary-10);
  --student-call-form-class-min: 120px;
  --student-call-form-field-min: 180px;
  --student-call-form-message-min: 260px;
  --student-call-action-min: 150px;
  --student-call-overlay-max: 1500px;
  --student-call-name-max: 180px;
  --student-call-destination-max: 78px;
  --student-call-close-min: 160px;
  --st-holiday: var(--krds-danger-50);
  --holiday-bg: var(--krds-danger-5);
  --holiday-text: var(--krds-danger-60);
  --st-change: var(--krds-warning-50);
  --st-change-tx: #614100;
  --change-bg: var(--krds-warning-5);
  --change-bg-strong: #ffe0a3;
  --change-text: #614100;
  --st-new: var(--krds-danger-50);
  --st-new-tx: var(--krds-danger-60);
  --new-change-bg: var(--krds-danger-5);
  --new-change-bg-strong: #fcdfd9;
  --new-change-text: var(--krds-danger-60);
  --st-event: var(--krds-success-50);
  --st-event-tx: #285d33;
  --event-bg: var(--krds-success-5);
  --event-bg-strong: #d8eedd;
  --event-text: #285d33;
  --green: var(--krds-success-50);
  --green-soft: #285d33;
  --danger: var(--krds-danger-50);
  --danger-soft: var(--krds-danger-60);
  --overlay: rgb(19 20 22 / 68%);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgb(19 20 22 / 6%);
  --shadow-md: 0 8px 24px rgb(19 20 22 / 8%);
  --shadow-lg: 0 16px 40px rgb(19 20 22 / 16%);
  --shadow-today: inset 0 0 0 2px var(--krds-primary-50);
  --shadow-today-strong: inset 0 0 0 3px var(--krds-primary-50);
  --shadow-selected: inset 0 0 0 2px var(--krds-primary-50);
  --control-compact: var(--space-40);
  --control-touch: var(--space-48);
  --content-max: 1280px;
  --page-gutter: clamp(var(--space-16), 3vw, var(--space-32));
  --download-card-min-height: 340px;
  --motion-fast: 160ms;
  font-family: "Pretendard GOV", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: var(--krds-gray-5);
  --bg-deep: var(--krds-gray-10);
  --panel: var(--krds-gray-0);
  --panel-soft: var(--krds-gray-5);
  --panel-strong: var(--krds-secondary-5);
  --ink: var(--krds-gray-90);
  --ink-strong: var(--krds-gray-95);
  --muted: var(--krds-gray-60);
  --muted-soft: var(--krds-gray-50);
  --line: var(--krds-gray-20);
  --line-soft: var(--krds-gray-10);
  --line-strong: var(--krds-gray-30);
  --blue: var(--krds-primary-50);
  --blue-dark: var(--krds-primary-60);
  --blue-soft: var(--krds-primary-20);
  --blue-tint: var(--krds-primary-5);
  --blue-tint-strong: var(--krds-primary-10);
  --blue-text: var(--krds-primary-60);
  --st-holiday: var(--krds-danger-50);
  --holiday-bg: var(--krds-danger-5);
  --holiday-text: var(--krds-danger-60);
  --st-change: var(--krds-warning-50);
  --st-change-tx: #614100;
  --change-bg: var(--krds-warning-5);
  --change-bg-strong: #ffe0a3;
  --change-text: #614100;
  --st-new: var(--krds-danger-50);
  --st-new-tx: var(--krds-danger-60);
  --new-change-bg: var(--krds-danger-5);
  --new-change-bg-strong: #fcdfd9;
  --new-change-text: var(--krds-danger-60);
  --st-event: var(--krds-success-50);
  --st-event-tx: #285d33;
  --event-bg: var(--krds-success-5);
  --event-bg-strong: #d8eedd;
  --event-text: #285d33;
  --green: var(--krds-success-50);
  --green-soft: #285d33;
  --danger: var(--krds-danger-50);
  --danger-soft: var(--krds-danger-60);
  --overlay: rgb(19 20 22 / 68%);
  --shadow-sm: 0 1px 2px rgb(19 20 22 / 6%);
  --shadow-md: 0 8px 24px rgb(19 20 22 / 8%);
  --shadow-lg: 0 16px 40px rgb(19 20 22 / 16%);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131416;
  --bg-deep: #000;
  --panel: #1e2124;
  --panel-soft: #272a2e;
  --panel-strong: #33363d;
  --ink: #fff;
  --ink-strong: #fff;
  --muted: #cdd1d5;
  --muted-soft: #b1b8be;
  --line: #58616a;
  --line-soft: #33363d;
  --line-strong: #8a949e;
  --blue: #86aff9;
  --blue-dark: #4c87f6;
  --blue-soft: #b1cefb;
  --blue-tint: rgb(37 110 244 / 18%);
  --blue-tint-strong: rgb(37 110 244 / 28%);
  --blue-text: #b1cefb;
  --st-holiday: #f48771;
  --holiday-bg: rgb(222 52 18 / 18%);
  --holiday-text: #fcdfd9;
  --st-change: #ffc95c;
  --st-change-tx: #ffe0a3;
  --change-bg: rgb(255 177 20 / 16%);
  --change-bg-strong: rgb(255 177 20 / 24%);
  --change-text: #ffe0a3;
  --st-new: #f48771;
  --st-new-tx: #fcdfd9;
  --new-change-bg: rgb(222 52 18 / 18%);
  --new-change-bg-strong: rgb(222 52 18 / 26%);
  --new-change-text: #fcdfd9;
  --st-event: #7ec88e;
  --st-event-tx: #d8eedd;
  --event-bg: rgb(34 135 56 / 22%);
  --event-bg-strong: rgb(34 135 56 / 32%);
  --event-text: #d8eedd;
  --green: #7ec88e;
  --green-soft: #d8eedd;
  --danger: #f48771;
  --danger-soft: #fcdfd9;
  --shadow-sm: none;
  --shadow-md: 0 8px 24px rgb(0 0 0 / 30%);
  --shadow-lg: 0 16px 40px rgb(0 0 0 / 48%);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  line-height: 1.5;
  word-break: keep-all;
}

button,
input,
select,
textarea {
  letter-spacing: -0.01em;
}

button,
a,
input,
select,
textarea {
  transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
}

:focus-visible {
  outline: var(--space-3) solid var(--krds-primary-50);
  outline-offset: var(--space-2);
}

.skip-link {
  position: fixed;
  top: var(--space-8);
  left: var(--space-8);
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--radius-md);
  background: var(--krds-gray-95);
  color: var(--krds-gray-0);
  padding: var(--space-10) var(--space-16);
  font-weight: 700;
  text-decoration: none;
  transition: none;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  gap: 0;
  min-height: 0;
  border-bottom-color: var(--line-soft);
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  padding: 0;
  backdrop-filter: blur(var(--space-12));
}

.topbar-utility,
.topbar .nav {
  width: min(var(--content-max), calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
}

.topbar-utility {
  display: flex;
  align-items: center;
  min-height: var(--space-80);
}

.brand {
  flex: none;
  gap: var(--space-12);
  padding-block: var(--space-12);
}

.brand:hover {
  opacity: 1;
}

.brand-logo {
  width: var(--space-40);
  height: var(--space-40);
  opacity: 1;
}

.brand-copy {
  display: grid;
  gap: var(--space-1);
}

.brand-name {
  color: var(--ink-strong);
  font-size: var(--text-20);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-description {
  color: var(--muted);
  font-size: var(--text-12);
  white-space: nowrap;
}

.nav {
  grid-row: 2;
  align-self: stretch;
  justify-content: space-between;
  gap: var(--space-16);
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-button {
  position: relative;
  min-height: var(--space-64);
  border-bottom-width: var(--space-3);
  color: var(--ink);
  padding-inline: var(--space-16);
  font-size: var(--text-18);
  font-weight: 700;
  white-space: nowrap;
}

.nav-button:hover {
  background: var(--blue-tint);
  color: var(--blue-dark);
}

.nav-button.is-active {
  border-bottom-color: var(--blue);
  color: var(--blue-dark);
  font-weight: 700;
}

.student-call-form {
  display: grid;
  grid-template-columns: minmax(var(--student-call-form-class-min), 0.55fr) minmax(var(--student-call-form-field-min), 0.9fr) minmax(var(--student-call-form-field-min), 0.9fr) minmax(var(--student-call-form-message-min), 1.5fr);
  gap: var(--space-16);
}

.student-call-send {
  justify-self: start;
  min-width: var(--student-call-action-min);
}

.student-call-status {
  border: var(--space-1) solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  color: var(--muted);
  padding: var(--space-12);
  font-size: var(--text-14);
  line-height: 1.5;
}

.board-student-call {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(var(--space-10), 2vh, var(--space-28));
  background: var(--student-call-backdrop);
  color: var(--student-call-ink);
  text-align: center;
}

.board-student-call-card {
  display: grid;
  place-items: center;
  gap: clamp(var(--space-6), 1.2vh, var(--space-18));
  width: min(100%, var(--student-call-overlay-max));
  max-height: calc(100dvh - var(--space-56));
  min-width: 0;
  overflow-y: auto;
  border: var(--space-3) solid var(--blue);
  border-radius: var(--radius-lg);
  background: var(--student-call-panel);
  padding: clamp(var(--space-16), 3vh, var(--space-40)) clamp(var(--space-20), 5vw, var(--space-80));
  box-shadow: var(--shadow-lg);
}

.board-student-call-label,
.board-student-call-class,
.board-student-call-message,
.board-student-call-destination {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.board-student-call-label {
  color: var(--student-call-muted);
  font-size: clamp(var(--text-18), min(3vw, 6vh), var(--space-48));
  font-weight: 700;
  letter-spacing: 0.12em;
}

.board-student-call h2 {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  color: var(--student-call-ink);
  font-size: clamp(var(--space-48), min(11vw, 18vh), var(--student-call-name-max));
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.board-student-call-destination {
  color: var(--student-call-ink);
  font-size: clamp(var(--space-28), min(5vw, 9vh), var(--student-call-destination-max));
  font-weight: 700;
  line-height: 1.25;
}

.board-student-call-message {
  color: var(--student-call-detail);
  font-size: clamp(var(--text-20), min(3vw, 6vh), var(--space-48));
  line-height: 1.4;
}

.board-student-call-class {
  color: var(--student-call-muted);
  font-size: clamp(var(--text-18), min(2vw, 4.5vh), var(--space-34));
  font-weight: 600;
}

.board-student-call-close {
  min-width: var(--student-call-close-min);
  min-height: var(--space-56);
  border: var(--space-1) solid var(--student-call-ink);
  border-radius: var(--radius-md);
  background: var(--student-call-ink);
  color: var(--student-call-panel);
  padding-inline: var(--space-24);
  font-size: var(--text-18);
  font-weight: 700;
}

.theme-button,
.board-theme-button {
  width: auto;
  min-width: var(--space-64);
  height: var(--control-touch);
  border-color: var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--ink);
  padding-inline: var(--space-12);
  font-size: var(--text-13);
  font-weight: 700;
}

.theme-button:hover,
.board-theme-button:hover {
  border-color: var(--blue);
  background: var(--blue-tint);
  color: var(--blue-dark);
}

main {
  width: min(var(--content-max), calc(100% - (var(--page-gutter) * 2)));
  margin-block: var(--space-40) var(--space-72);
}

.krds-page {
  background: var(--panel);
}

.krds-page-header {
  border-bottom: var(--space-1) solid var(--line-soft);
  padding-bottom: var(--space-20);
}

.krds-page-header h2 {
  margin: 0;
}

.krds-field label {
  letter-spacing: -0.02em;
}

.krds-segmented {
  align-self: end;
}

.krds-tabs {
  margin-top: var(--space-20);
}

.krds-table {
  border: var(--space-1) solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.krds-badge-group {
  padding-top: var(--space-12);
}

.page,
.login-panel,
.admin-workspace {
  border-color: var(--line-soft);
  border-radius: var(--space-12);
  padding: clamp(var(--space-20), 3vw, var(--space-40));
  box-shadow: var(--shadow-sm);
}

h1,
h2,
h3 {
  color: var(--ink-strong);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(var(--text-26), 3vw, var(--text-36));
  line-height: 1.25;
}

h3 {
  font-size: var(--text-20);
  line-height: 1.35;
}

.eyebrow {
  margin-bottom: var(--space-6);
  color: var(--blue-dark);
  font-size: var(--text-14);
  font-weight: 700;
}

.muted {
  line-height: 1.65;
}

.view-tools,
.admin-head,
.teacher-view-head,
.download-head,
.privacy-head,
.api-page-head {
  align-items: flex-end;
  gap: var(--space-24);
  margin-bottom: var(--space-28);
}

.field {
  gap: var(--space-8);
}

.field label,
.wallpaper-tool-group > strong {
  color: var(--ink);
  font-size: var(--text-14);
  font-weight: 700;
}

input,
select,
textarea {
  min-height: var(--control-touch);
  border: var(--space-1) solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--ink);
  padding: var(--space-10) var(--space-12);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--krds-gray-70);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 var(--space-2) var(--blue-tint-strong);
}

.admin-tab,
.filter-tab,
.ghost-button,
.primary-button,
.danger-button,
.text-button,
.download-button,
.guide-trigger-btn,
.android-download-btn {
  min-height: var(--control-touch);
  border-radius: var(--radius-md);
  padding-inline: var(--space-16);
  font-size: var(--text-15);
  font-weight: 700;
}

.primary-button,
.download-button {
  border-color: var(--krds-primary-50);
  background: var(--krds-primary-50);
  color: var(--krds-gray-0);
}

.primary-button:hover,
.download-button:hover {
  border-color: var(--krds-primary-60);
  background: var(--krds-primary-60);
  color: var(--krds-gray-0);
}

.primary-button:active,
.download-button:active,
.ghost-button:active,
.danger-button:active {
  transform: translateY(var(--space-1));
}

.ghost-button,
.admin-tab,
.filter-tab {
  border-color: var(--line-strong);
  background: var(--panel);
}

.ghost-button:hover,
.admin-tab:hover,
.filter-tab:hover {
  border-color: var(--blue);
  background: var(--blue-tint);
  color: var(--blue-dark);
}

.admin-tab.is-active,
.filter-tab.is-active {
  border-color: var(--blue);
  background: var(--blue-tint);
  color: var(--blue-dark);
}

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

.danger-button:hover {
  background: var(--new-change-bg);
}

.segmented {
  gap: var(--space-4);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--panel-soft);
  padding: var(--space-4);
}

.segmented-option {
  min-height: var(--space-40);
  border: 0;
  border-radius: var(--space-4);
  color: var(--muted);
  padding-inline: var(--space-14);
  font-size: var(--text-14);
  font-weight: 500;
}

.segmented-option + .segmented-option {
  border-left: 0;
}

.segmented-option.is-active {
  background: var(--panel);
  color: var(--blue-dark);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.day-tabs {
  gap: var(--space-4);
  border-bottom: var(--space-1) solid var(--line);
  margin-bottom: var(--space-20);
}

.day-tab {
  min-height: var(--space-64);
  border-bottom-width: var(--space-3);
  padding: var(--space-10) var(--space-16);
  font-size: var(--text-15);
}

.day-tab span {
  font-size: var(--text-12);
}

.day-tab:hover {
  background: var(--blue-tint);
  color: var(--blue-dark);
}

.day-tab.is-active {
  border-bottom-color: var(--blue);
  color: var(--blue-dark);
}

.schedule-grid,
.teacher-week-grid,
.academic-calendar-frame,
.table-shell {
  border-color: var(--line);
  border-radius: var(--space-8);
  background: var(--line-soft);
}

.corner-cell,
.period-head,
.class-head,
.teacher-grid-corner,
.teacher-day-head,
.teacher-period-head,
.academic-calendar-weekdays span,
.table th {
  background: var(--panel-strong);
  color: var(--ink);
  font-weight: 700;
}

.lesson-cell,
.teacher-week-cell,
.academic-calendar-day,
.table td {
  background: var(--panel);
}

.lesson-cell:hover,
.teacher-week-cell:hover,
.academic-calendar-day:hover {
  background: color-mix(in srgb, var(--panel) 90%, var(--krds-primary-5));
}

.legend {
  gap: var(--space-8);
  margin-top: var(--space-16);
  font-size: var(--text-13);
}

.legend-item {
  min-height: var(--space-32);
  border-radius: var(--space-4);
  background: var(--panel-soft);
  padding: var(--space-4) var(--space-10);
}

.legend-swatch {
  width: var(--space-8);
  height: var(--space-8);
  border-radius: 50%;
}

.teacher-view-summary,
.admin-account-form,
.subsection,
.list-item,
.api-key-result,
.privacy-summary,
.privacy-content section,
.wallpaper-tools,
.download-card {
  border-color: var(--line-soft);
  border-radius: var(--space-8);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.teacher-view-summary span,
.privacy-badge,
.download-type {
  border-radius: var(--space-4);
  background: var(--blue-tint);
  color: var(--blue-dark);
  font-weight: 700;
}

.download-grid {
  gap: var(--space-20);
}

.download-card {
  min-height: var(--download-card-min-height);
  padding: var(--space-24);
}

.download-button {
  justify-self: stretch;
}

.download-note {
  border-left-width: var(--space-4);
  border-radius: 0 var(--space-4) var(--space-4) 0;
  background: var(--change-bg);
  color: var(--ink);
  padding: var(--space-10) var(--space-12);
}

.academic-calendar {
  margin-top: var(--space-40);
  border-top: var(--space-1) solid var(--line-soft);
  padding-top: var(--space-32);
}

.academic-calendar-event {
  border-left-width: var(--space-4);
  border-radius: var(--space-4);
}

.modal-overlay {
  background: var(--overlay);
  backdrop-filter: blur(var(--space-4));
}

.modal-content {
  border-color: var(--line-soft);
  border-radius: var(--space-12);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}

.global-status {
  border-radius: var(--space-8);
}

.footer {
  align-items: flex-start;
  justify-content: space-between;
  margin-top: calc(var(--space-32) * -1);
  border-top: var(--space-1) solid var(--line);
  padding-block: var(--space-28) var(--space-40);
  color: var(--muted);
  font-size: var(--text-13);
  text-align: left;
}

.footer > div {
  display: grid;
  gap: var(--space-4);
}

.footer-disclosure {
  color: var(--muted);
  font-size: var(--text-12);
}

.footer strong {
  color: var(--ink);
  font-size: var(--text-15);
}

.footer-meta {
  justify-items: end;
}

.footer-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: var(--space-3);
}

body.board-mode .page-view,
body.slideshow-mode .slideshow-page {
  border-radius: 0;
  box-shadow: none;
}

body.board-mode .footer > div:first-child {
  display: flex;
  gap: var(--space-8);
}

body.board-mode .footer > div:first-child span,
body.board-mode .footer-meta {
  display: none;
}

body.board-mode .footer {
  height: var(--board-footer-height);
  padding: 0;
}

body.board-mode .board-theme-button {
  width: auto;
  min-width: var(--space-72);
  padding-inline: var(--space-12);
  font-size: clamp(var(--text-14), 1.5vh, var(--text-24));
}

body.board-mode select {
  border-color: var(--blue);
  background: var(--panel);
  color: var(--ink);
}

body.board-mode .board-lesson.is-event {
  color: var(--krds-gray-0);
}

body.board-mode .board-lesson.is-merge {
  color: var(--ink);
}

body.board-mode .board-lesson {
  overflow: hidden;
}

body.board-mode .board-lesson strong,
body.board-mode .board-lesson small {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

body.board-mode .board-lesson strong {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

body.board-mode .board-lesson small {
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

body.board-mode .board-lesson.is-event strong,
body.board-mode .board-lesson.is-merge strong {
  font-size: clamp(var(--text-13), 1.6vh, var(--text-30));
}

body.board-mode .board-lesson.is-event small,
body.board-mode .board-lesson.is-merge small {
  font-size: clamp(var(--text-10), 1vh, var(--text-18));
}

@media (max-width: 1024px) {
  .topbar {
    padding: 0;
  }

  .nav {
    min-width: 0;
  }

  .student-call-form {
    grid-template-columns: 1fr 1fr;
  }

  .nav-button {
    min-height: var(--space-48);
  }

  .view-tools,
  .admin-head,
  .teacher-view-head,
  .download-head,
  .privacy-head,
  .api-page-head {
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: 0;
  }

  .topbar-utility {
    min-height: var(--space-64);
  }

  .brand-logo {
    width: var(--space-34);
    height: var(--space-34);
  }

  .brand-name {
    font-size: var(--text-18);
  }

  .brand-description {
    display: none;
  }

  .theme-button {
    min-width: var(--space-58);
    height: var(--control-touch);
  }

  .nav {
    width: 100%;
    margin-inline: 0;
    justify-content: flex-start;
    padding-inline: var(--page-gutter);
  }

  .nav-button {
    min-height: var(--space-48);
    padding-inline: var(--space-10);
    font-size: var(--text-14);
  }

  .student-call-form {
    grid-template-columns: 1fr;
  }

  main {
    width: 100%;
    margin-block: var(--space-16) var(--space-48);
  }

  .page,
  .login-panel,
  .admin-workspace {
    border-inline: 0;
    border-radius: 0;
    padding: var(--space-20) var(--page-gutter) var(--space-28);
  }

  h2 {
    font-size: var(--text-26);
  }

  .view-tools,
  .admin-head,
  .teacher-view-head,
  .download-head,
  .privacy-head,
  .api-page-head {
    gap: var(--space-16);
    margin-bottom: var(--space-20);
  }

  .day-tab {
    min-height: var(--space-56);
    padding-inline: var(--space-12);
  }

  .legend-note {
    flex-basis: 100%;
    margin-left: 0;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    min-height: 0;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - (var(--page-gutter) * 2));
    margin: calc(var(--space-16) * -1) auto 0;
  }

  .footer-meta {
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
