@font-face {
  font-family: "A2Z";
  src: url("../fonts/atoz-6-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "A2Z";
  src: url("../fonts/atoz-7-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "A2Z";
  src: url("../fonts/atoz-8-extrabold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "A2Z";
  src: url("../fonts/atoz-9-black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Semantic design tokens (phase 6) */
  --color-primary: #2e9b5a;
  --color-primary-hover: #174a2c;
  --color-primary-active: #143d27;
  --color-primary-soft: #e8f5e9;
  --color-primary-strong: #1f5c38;
  --color-primary-border: #2e7d4e;

  --color-bg: #eef3f8;
  --color-surface: #ffffff;
  --color-surface-subtle: #f3f8f4;
  --color-border: #d8e0ea;
  --color-border-strong: #b8c5d5;

  --color-text: #101820;
  --color-text-muted: #5b6675;
  --color-text-on-primary: #ffffff;

  --color-success: #1f5c38;
  --color-success-bg: #e8f5e9;
  --color-warning: #a15c13;
  --color-warning-bg: #fff8e8;
  --color-danger: #a43d3d;
  --color-danger-bg: #fff5f5;
  --color-info: #286f5f;
  --color-info-bg: #eef6f0;

  --color-focus: #143d27;
  --color-focus-inner: #ffffff;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  --shadow-sm: 0 5px 14px rgba(46, 95, 62, 0.04);
  --shadow-card: 0 12px 30px rgba(31, 45, 61, 0.08);
  --shadow-modal: 0 18px 48px rgba(36, 74, 48, 0.18);

  --duration-fast: 120ms;
  --duration-normal: 200ms;

  /* Legacy aliases (do not remove in phase 6) */
  --bg: var(--color-bg);
  --panel: var(--color-surface);
  --line: var(--color-border);
  --line-strong: var(--color-border-strong);
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --primary: var(--color-info);
  --primary-dark: #1f574b;
  --sidebar-bg: #8fcc8f;
  --sidebar-bg-deep: #6fb86f;
  --sidebar-text: #163214;
  --sidebar-muted: #20451e;
  --sidebar-hover: rgba(255, 255, 255, 0.38);
  --sidebar-border: rgba(28, 88, 28, 0.2);
  --warning: var(--color-warning);
  --danger: var(--color-danger);
  --shadow: var(--shadow-card);
  --font-sans: "A2Z", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tf-green: var(--color-primary);
  --tf-green-dark: var(--color-primary-strong);
  --tf-green-soft: var(--color-primary-soft);
  --tf-bg: #e8f2ed;
  --tf-bg-soft: var(--color-surface-subtle);
  --tf-border: #c8e0cc;
  --tf-text: #1a3d2e;
  --tf-muted: #4d6b5b;
  --tf-text-muted: var(--color-text-muted);
  --tf-focus-inner: var(--color-focus-inner);
  --tf-focus-outer: var(--color-focus);
  --tf-danger: var(--color-danger);
  --tf-shadow: 0 10px 28px rgba(46, 95, 62, 0.06);
  --tf-btn-radius: var(--radius-md);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-weight: 600;
  overscroll-behavior-y: auto;
  touch-action: manipulation;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  margin: 0;
  padding: 0;
  text-align: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  touch-action: manipulation;
}

.app-shell--guest {
  grid-template-columns: 188px minmax(0, 1fr);
}

.sidebar {
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-deep) 100%);
  color: var(--sidebar-text);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.app-shell--guest .sidebar {
  gap: 16px;
  padding: 18px 14px;
}

.sidebar-guest-panel {
  display: grid;
  gap: 8px;
}

.sidebar-guest-notice {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--sidebar-border);
  color: var(--sidebar-text);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  padding: 10px 12px;
}

.guest-auth-nav a {
  font-size: 14px;
}

.login-required-notice {
  background: #fff8e8;
  border: 1px solid #e8d4a8;
  color: #6a4f12;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
  padding: 10px 12px;
}

.brand {
  display: grid;
  gap: 8px;
}

.brand-link {
  background: transparent;
  display: block;
  text-decoration: none;
}

.brand-logo {
  background: transparent;
  display: block;
  height: 56px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.sidebar .brand-logo {
  filter: none;
}

.brand-subtitle {
  color: var(--sidebar-muted);
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav a {
  align-items: center;
  color: var(--sidebar-text);
  display: flex;
  gap: 10px;
  text-decoration: none;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
}

.nav-icon {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  height: 22px;
  justify-content: center;
  opacity: 0.88;
  width: 22px;
}

.nav-icon svg {
  display: block;
  fill: none;
  height: 20px;
  stroke: currentColor;
  width: 20px;
}

.nav-label {
  line-height: 1.3;
}

.teacher-nav a {
  font-size: 14px;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-group + .nav-group {
  margin-top: 4px;
}

.nav-group-heading {
  color: var(--sidebar-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin: 8px 4px 2px;
  text-transform: none;
}

.nav-group--account {
  border-top: 1px solid var(--sidebar-border);
  margin-top: 10px;
  padding-top: 10px;
}

.nav-group--admin .nav-group-heading {
  margin-top: 4px;
}

.guest-auth-nav a.active,
.guest-auth-nav a:hover,
.public-nav a.active,
.public-nav a:hover {
  background: var(--sidebar-hover);
  border-color: var(--sidebar-border);
  color: var(--sidebar-text);
  font-weight: 700;
}

.teacher-nav a.active,
.teacher-nav a:hover {
  background: rgba(22, 50, 20, 0.72);
  border-color: transparent;
  color: #f4fff4;
  font-weight: 700;
}

.teacher-nav a.active .nav-icon,
.teacher-nav a:hover .nav-icon {
  opacity: 1;
}

.public-nav {
  border-top: 1px solid var(--sidebar-border);
  padding-top: 14px;
}

.public-nav a {
  font-size: 13px;
  padding-bottom: 9px;
  padding-top: 9px;
}

.sidebar-footer {
  margin-top: auto;
  color: var(--sidebar-muted);
  font-size: 13px;
}

.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
  overscroll-behavior-y: auto;
  padding: 24px;
  touch-action: manipulation;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

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

.sidebar-toggle {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.main--mint,
.main--dashboard,
.main--classes,
.main--info-pages,
.main--select {
  background: linear-gradient(180deg, var(--tf-bg) 0%, #eef6f0 42%, var(--tf-bg-soft) 100%);
}

.main--info-pages .topbar-main,
.main--select .topbar-main,
.main--login .topbar-main {
  display: none;
}

.main--login .view {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
}

.main--login .login-box {
  margin: 0 auto;
  text-align: center;
}

.main--login .login-header,
.main--login .login-notice,
.main--login .login-legal-notice,
.main--login .login-actions,
.main--login .login-embedded-hint {
  text-align: center;
}

.main--login .panel-header.login-header {
  justify-content: center;
}

.main--select .view {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  overflow: visible;
}

.main--select {
  position: relative;
}

.main--select .select-sticker {
  filter: drop-shadow(0 10px 18px rgba(31, 45, 61, 0.16));
  height: auto;
  left: 0;
  object-fit: contain;
  pointer-events: none;
  position: absolute;
  top: 4px;
  transform: rotate(-20deg);
  user-select: none;
  width: min(240px, 32vw);
  z-index: 2;
}

.main--select .select-money {
  bottom: 8px;
  filter: drop-shadow(0 10px 18px rgba(31, 45, 61, 0.16));
  height: auto;
  object-fit: contain;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: rotate(10deg);
  user-select: none;
  width: min(220px, 28vw);
  z-index: 2;
}

.main--select .access-page {
  width: 100%;
}

.main--info-pages .topbar,
.main--select .topbar,
.main--login .topbar {
  justify-content: flex-end;
  margin-bottom: 12px;
}

.topbar--info .account {
  align-items: center;
  background: #ffffff;
  border: 1px solid #c8e0cc;
  border-radius: var(--tf-btn-radius);
  gap: 10px;
  padding: 6px 8px 6px 16px;
}

.topbar--info #account-name {
  color: var(--tf-text);
  font-weight: 800;
}

.topbar--info #logout-button {
  background: #ffffff;
  border-color: var(--tf-border);
  border-radius: var(--tf-btn-radius);
  box-shadow: none;
  color: #3d5c4a;
  font-weight: 700;
  min-height: 36px;
  padding: 6px 14px;
}

.topbar--info #logout-button::after {
  content: " →";
}

@media (min-width: 769px) {
  .main--info-pages .topbar:has(.account.hidden),
  .main--select .topbar:has(.account.hidden),
  .main--login .topbar:has(.account.hidden) {
    display: none;
  }
}

@media (max-width: 768px) {
  .main--info-pages .topbar,
  .main--select .topbar,
  .main--login .topbar {
    grid-template-areas: "toggle account";
    grid-template-columns: auto 1fr;
  }

  .main--info-pages .topbar:has(.account.hidden),
  .main--select .topbar:has(.account.hidden),
  .main--login .topbar:has(.account.hidden) {
    grid-template-areas: "toggle";
    grid-template-columns: 1fr;
  }
}

/* Accessibility phase 2: keyboard focus, target size, and reduced motion. */
.skip-link {
  background: #ffffff;
  border: 2px solid var(--tf-focus-outer);
  border-radius: 10px;
  color: var(--tf-focus-outer);
  font-weight: 900;
  left: 12px;
  padding: 10px 14px;
  position: fixed;
  top: 12px;
  transform: translateY(-160%);
  transition: transform 0.12s ease;
  z-index: 5000;
}

.skip-link:focus-visible {
  outline: 3px solid var(--tf-focus-inner);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--tf-focus-outer);
  transform: translateY(0);
}

:where(
  a[href],
  button,
  input:not([type="hidden"]),
  select,
  textarea,
  summary,
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 3px solid var(--tf-focus-inner);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--tf-focus-outer);
}

.fieldset-reset {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.fieldset-reset legend {
  color: inherit;
  font-weight: 800;
  margin-bottom: 6px;
  padding: 0;
}

.calendar-day-event-count {
  align-self: flex-end;
}

.button,
button {
  min-height: 40px;
}

.question-row select {
  min-height: 40px;
}

.check-row label,
.weekday-checkbox,
.notification-choice {
  min-height: 40px;
}

.check-row input[type="checkbox"],
.check-row input[type="radio"],
.weekday-checkbox input,
.notification-choice input,
.tuition-payment-paid-toggle input {
  flex: 0 0 24px;
  height: 24px;
  min-height: 24px;
  min-width: 24px;
  width: 24px;
}

button:disabled,
.button[aria-disabled="true"],
[role="button"][aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

button[aria-busy="true"]:disabled,
button.is-loading:disabled {
  cursor: wait;
}

button:disabled:hover {
  filter: none;
  transform: none;
}

@media (pointer: coarse), (max-width: 820px) {
  .inline-button,
  .table a,
  .roster-table a,
  .info-footer-link,
  .policy-scroll-btn,
  .tf-toast-close,
  .tf-modal-close {
    align-items: center;
    display: inline-flex;
    min-height: 40px;
    padding-block: 8px;
  }

  .inline-button,
  .table a,
  .roster-table a {
    min-width: 40px;
  }
}

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

  .tf-toast,
  .tf-modal,
  .sidebar-backdrop,
  .button,
  button,
  .card,
  .panel {
    transform: none;
  }

  .sidebar,
  .sidebar-backdrop,
  .tf-modal,
  .tf-modal-backdrop {
    animation: none !important;
    transition: none !important;
  }

  .tf-toast,
  .tf-toast--leaving {
    transform: none;
    transition: none;
  }
}

.main--mint .view,
.main--dashboard .view,
.main--classes .view {
  gap: 20px;
}

.main--dashboard {
  background: linear-gradient(180deg, var(--tf-bg) 0%, #eef6f0 42%, var(--tf-bg-soft) 100%);
}

.topbar--mint h1,
.topbar--dashboard h1 {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.topbar--mint h1::after,
.topbar--dashboard h1::after {
  color: #f0c030;
  content: "✦";
  font-size: 18px;
  line-height: 1;
}

.topbar--mint .eyebrow,
.topbar--dashboard .eyebrow {
  color: var(--tf-muted);
  font-size: 13px;
  font-weight: 700;
}

.topbar--mint h1,
.topbar--dashboard h1 {
  color: var(--tf-text);
  font-size: 28px;
  font-weight: 900;
}

.topbar--mint .account,
.topbar--dashboard .account {
  align-items: center;
  background: #ffffff;
  border: 1px solid #c8e0cc;
  border-radius: var(--tf-btn-radius);
  gap: 10px;
  padding: 6px 8px 6px 16px;
}

.topbar--mint #account-name,
.topbar--dashboard #account-name {
  color: var(--tf-text);
  font-weight: 800;
}

.dashboard-account-badge {
  background: #e8f5e9;
  border-radius: var(--tf-btn-radius);
  color: #2d7b4c;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
}

.topbar--mint #logout-button,
.topbar--dashboard #logout-button {
  background: #ffffff;
  border-color: var(--tf-border);
  border-radius: var(--tf-btn-radius);
  box-shadow: none;
  color: #3d5c4a;
  font-weight: 700;
  min-height: 36px;
  padding: 6px 14px;
}

.topbar--mint #logout-button::after,
.topbar--dashboard #logout-button::after {
  content: " →";
}

.main--classes .panel {
  background: #ffffff;
  border: 1px solid var(--tf-border);
  border-radius: 24px;
  box-shadow: var(--tf-shadow);
}

.topbar--mint h1,
.topbar--classes h1 {
  align-items: center;
  color: var(--tf-text);
  display: inline-flex;
  font-size: 28px;
  font-weight: 900;
  gap: 8px;
}

.topbar--mint h1::after,
.topbar--classes h1::after {
  color: #f0c030;
  content: "✦";
  font-size: 18px;
  line-height: 1;
}

.topbar--mint .eyebrow,
.topbar--classes .eyebrow {
  color: var(--tf-muted);
  font-size: 13px;
  font-weight: 700;
}

.topbar--mint .account,
.topbar--classes .account {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-btn-radius);
  gap: 10px;
  padding: 6px 8px 6px 16px;
}

.topbar--mint #account-name,
.topbar--classes #account-name {
  color: var(--tf-text);
  font-weight: 800;
}

.topbar--mint #logout-button,
.topbar--classes #logout-button {
  background: #ffffff;
  border-color: var(--tf-border);
  border-radius: var(--tf-btn-radius);
  box-shadow: none;
  color: #3d5c4a;
  font-weight: 700;
  min-height: 36px;
  padding: 6px 14px;
}

.topbar--mint #logout-button::after,
.topbar--classes #logout-button::after {
  content: " →";
}

.app-page,
.report-layout,
.mypage-layout {
  display: grid;
  gap: 20px;
}

.main--mint .panel:not(.login-box) {
  background: #ffffff;
  border: 1px solid var(--tf-border);
  border-radius: 24px;
  box-shadow: var(--tf-shadow);
  padding: 22px 24px;
}

.main--mint .panel-header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.main--mint .panel-header h2 {
  color: var(--tf-text);
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 6px;
}

.main--mint .panel-header p {
  color: var(--tf-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.main--mint .panel-header > a.button.dark,
.main--mint .panel-header > .button.dark,
.main--mint .panel-header > button.button.dark,
.main--mint .panel-header > .panel-header-actions > a.button.dark,
.main--mint .panel-header > .panel-header-actions > .button.dark,
.main--mint .panel-header > .panel-header-actions > button.button.dark,
.main--mint .actions > a.button.dark,
.main--mint .actions button.button.dark,
.main--mint .actions button.dark,
.main--mint .actions .button.dark,
.main--mint .form .actions > button[type="submit"],
.main--mint a.section-cta,
.main--mint .panel-header > a.button.dark:visited,
.main--mint .panel-header > .button.dark:visited,
.main--mint .panel-header > button.button.dark:visited,
.main--mint .panel-header > .panel-header-actions > a.button.dark:visited,
.main--mint .panel-header > .panel-header-actions > .button.dark:visited,
.main--mint .panel-header > .panel-header-actions > button.button.dark:visited,
.main--mint .actions > a.button.dark:visited,
.main--mint .actions button.button.dark:visited,
.main--mint .actions button.dark:visited,
.main--mint .actions .button.dark:visited,
.main--mint a.section-cta:visited {
  align-items: center;
  background: var(--tf-green-dark);
  border: 1.5px solid #2e7d4e;
  border-radius: var(--tf-btn-radius);
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  gap: 6px;
  min-height: 44px;
  padding: 10px 22px;
  text-decoration: none;
  white-space: nowrap;
}

.main--mint .panel-header > .panel-header-actions > a.button.light,
.main--mint .panel-header > .panel-header-actions > .button.light,
.main--mint .panel-header > .panel-header-actions > button.button.light {
  align-items: center;
  background: var(--tf-green-soft);
  border: 1.5px solid #7bc99a;
  border-radius: var(--tf-btn-radius);
  color: var(--tf-green-dark);
  display: inline-flex;
  font-weight: 800;
  gap: 6px;
  min-height: 44px;
  padding: 10px 22px;
  text-decoration: none;
  white-space: nowrap;
}

.main--mint .panel-header > a.button.dark:hover,
.main--mint .panel-header > .button.dark:hover,
.main--mint .panel-header > button.button.dark:hover,
.main--mint .panel-header > .panel-header-actions > a.button.dark:hover,
.main--mint .panel-header > .panel-header-actions > .button.dark:hover,
.main--mint .panel-header > .panel-header-actions > button.button.dark:hover,
.main--mint .actions > a.button.dark:hover,
.main--mint .actions button.button.dark:hover,
.main--mint .actions button.dark:hover,
.main--mint .actions .button.dark:hover,
.main--mint .form .actions > button[type="submit"]:hover,
.main--mint a.section-cta:hover {
  background: #174a2c;
  border-color: var(--tf-green-dark);
  color: #ffffff;
}

.main--mint .panel-header > .panel-header-actions > a.button.light:hover,
.main--mint .panel-header > .panel-header-actions > .button.light:hover,
.main--mint .panel-header > .panel-header-actions > button.button.light:hover {
  background: #dff3e4;
  border-color: var(--tf-green);
  color: #174a2c;
}

.main--mint .table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.main--mint .table th {
  background: #f0faf2;
  border-bottom: 1px solid #dceee0;
  color: #3d5c4a;
  font-size: 12px;
  font-weight: 800;
  padding: 12px 14px;
  text-align: left;
}

.main--mint .table td {
  border-bottom: 1px solid #e8f2ed;
  color: #2f4a3a;
  font-size: 14px;
  padding: 14px;
  vertical-align: top;
}

.main--mint .table tbody tr:last-child td {
  border-bottom: 0;
}

.main--mint .table th:first-child {
  border-top-left-radius: 14px;
}

.main--mint .table th:last-child {
  border-top-right-radius: 14px;
}

.main--mint .empty {
  background: #f7fbf8;
  border: 1px dashed var(--tf-border);
  border-radius: 16px;
  color: var(--tf-muted);
  padding: 18px;
  text-align: center;
}

.main--mint .button.secondary,
.main--mint button.secondary,
.main--mint a.button.secondary {
  background: #ffffff;
  border: 1.5px solid #5cb87a;
  border-radius: var(--tf-btn-radius);
  color: var(--tf-green-dark);
  font-weight: 700;
}

.main--mint .button.secondary:hover,
.main--mint button.secondary:hover,
.main--mint a.button.secondary:hover {
  background: #f4fbf6;
  border-color: #3d9a5c;
}

.main--mint button.danger,
.main--mint .button.danger {
  background: #ffffff;
  border: 1.5px solid #e8b4b4;
  border-radius: var(--tf-btn-radius);
  color: var(--tf-danger);
  font-weight: 700;
}

.main--mint button.danger:hover,
.main--mint .button.danger:hover {
  background: #fff5f5;
  border-color: #d49090;
}

.main--mint .badge,
.main--mint .code-pill {
  border-radius: var(--tf-btn-radius);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
}

.main--mint .badge.active,
.main--mint .badge.pending,
.main--mint .badge.usable,
.main--mint .badge.ready,
.main--mint .badge.correct_first_try,
.main--mint .badge.correct_after_retry {
  background: var(--tf-green-soft);
  color: #246b3b;
}

.main--mint .badge.retry_pending {
  background: #fff4cc;
  color: #735000;
  border-color: #f0d060;
}

.main--mint .badge.question_needed {
  background: #fdeaea;
  color: #a43d3d;
  border-color: #e4b9b9;
}

.main--mint .form .field label {
  color: #3d5c4a;
  font-weight: 800;
}

.main--mint .form input,
.main--mint .form select,
.main--mint .form textarea {
  border-color: #d4e8d8;
  border-radius: 10px;
}

.main--mint .form input:focus-visible,
.main--mint .form select:focus-visible,
.main--mint .form textarea:focus-visible {
  border-color: #5cb87a;
}

.main--mint .page-subsection {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 26px;
}

.account {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.view {
  display: grid;
  flex: 1 1 auto;
  gap: 16px;
  overscroll-behavior-y: auto;
  touch-action: manipulation;
}

.app-bootstrap-loading {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 240px;
  padding: 48px 24px;
}

.app-bootstrap-loading-text {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.view a:not(.button):not(.roster-card-cta):not(.section-cta):not(.inline-button.dark):not(.list-filter-chip):not(.info-hero-landing-link) {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.view a:not(.button):not(.roster-card-cta):not(.section-cta):not(.inline-button.dark):not(.list-filter-chip):not(.info-hero-landing-link):hover,
.view a:not(.button):not(.roster-card-cta):not(.section-cta):not(.inline-button.dark):not(.list-filter-chip):not(.info-hero-landing-link):visited {
  color: var(--text);
  text-decoration: none;
}

.view a:not(.button):not(.roster-card-cta):not(.section-cta):not(.inline-button.dark):not(.list-filter-chip):not(.info-hero-landing-link):hover {
  opacity: 0.82;
}

.site-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 8px 12px;
  justify-content: center;
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  width: 100%;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer-brand {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.site-footer-logo {
  height: 24px;
  object-fit: contain;
  opacity: 0.92;
  width: auto;
}

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.onboarding-panel {
  border-color: #c8ddd7;
}

.onboarding-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.onboarding-progress {
  align-items: baseline;
  color: var(--muted);
  display: inline-flex;
  flex-shrink: 0;
  gap: 4px;
  white-space: nowrap;
}

.onboarding-progress strong {
  color: var(--primary);
  font-size: 28px;
  line-height: 1;
}

.onboarding-steps {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.onboarding-step {
  align-items: center;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  padding: 12px 14px;
}

.onboarding-step.is-complete {
  background: #f8fafc;
}

.onboarding-step.is-current {
  background: #f4faf8;
  border-color: #9fc8bc;
}

.onboarding-step.is-pending {
  opacity: 0.88;
}

.onboarding-step-marker {
  align-items: center;
  background: #eef3f8;
  border: 1px solid var(--line);
  border-radius: var(--tf-btn-radius);
  color: var(--muted);
  display: inline-flex;
  font-size: 13px;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.onboarding-step.is-complete .onboarding-step-marker {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.onboarding-step.is-current .onboarding-step-marker {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 800;
}

.onboarding-step-copy {
  display: grid;
  gap: 4px;
}

.onboarding-step-copy strong {
  font-size: 15px;
}

.onboarding-step-copy p {
  margin: 0;
}

.onboarding-step-status {
  color: var(--primary);
  font-size: 13px;
  white-space: nowrap;
}

.onboarding-step-action {
  white-space: nowrap;
}

.onboarding-panel-compact .onboarding-head h2 {
  font-size: 20px;
}

.onboarding-blocker .onboarding-panel {
  box-shadow: none;
  margin-top: 4px;
  padding: 0;
  border: 0;
}

.dashboard-page {
  display: grid;
  gap: 20px;
}

.dashboard-section {
  display: grid;
  gap: 14px;
}

.dashboard-section-head {
  display: grid;
  gap: 4px;
}

.dashboard-section-title {
  color: var(--tf-text-strong, #1f5c38);
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.dashboard-section-desc,
.dashboard-section-note,
.dashboard-section-empty {
  color: var(--tf-text-muted, #5f7468);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.dashboard-hero-eyebrow {
  color: #3d5c4a;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.dashboard-action-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-action-card {
  background: var(--tf-surface, #fff);
  border: 1px solid var(--tf-border, #d7e7dc);
  border-radius: 18px;
  box-shadow: var(--tf-shadow, 0 8px 20px rgba(46, 95, 62, 0.06));
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 18px;
}

.dashboard-action-card--attention {
  border-color: #b8dcc0;
}

.dashboard-action-card--clear {
  background: #f8fcf9;
}

.dashboard-action-card-body {
  display: grid;
  gap: 12px;
}

.dashboard-action-card-title {
  color: var(--tf-text-strong, #1f5c38);
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.dashboard-action-card-metric {
  align-items: baseline;
  display: flex;
  gap: 4px;
  margin: 2px 0 0;
}

.dashboard-action-card-count {
  color: var(--tf-text-strong, #1f5c38);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.dashboard-action-card--clear .dashboard-action-card-count {
  color: #5f7468;
  font-size: 28px;
}

.dashboard-action-card-unit {
  color: #5f7468;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-action-card-desc {
  color: #5f7468;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.dashboard-action-card-cta {
  justify-self: start;
  min-height: 40px;
}

.dashboard-activity-card {
  background: var(--tf-surface, #fff);
  border: 1px solid var(--tf-border, #d7e7dc);
  border-radius: 18px;
  box-shadow: var(--tf-shadow, 0 8px 20px rgba(46, 95, 62, 0.06));
  padding: 8px 0;
}

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

.dashboard-activity-item {
  align-items: flex-start;
  border-bottom: 1px solid #edf4ef;
  display: grid;
  gap: 8px;
  padding: 14px 18px;
}

.dashboard-activity-item:last-child {
  border-bottom: 0;
}

.dashboard-activity-item-main {
  display: grid;
  gap: 8px;
}

.dashboard-activity-badge {
  background: #edf7f0;
  border-radius: 999px;
  color: #2f6a45;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  width: fit-content;
}

.dashboard-activity-text {
  color: #2f4638;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.dashboard-activity-text strong {
  color: #1f5c38;
}

.dashboard-activity-time {
  color: #6a7f73;
  font-size: 12px;
}

.dashboard-onboarding-card {
  align-items: center;
  background: linear-gradient(135deg, #edf7f0 0%, #f7fbf8 100%);
  border: 1px solid #c9e2d0;
  border-radius: 20px;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.dashboard-onboarding-copy {
  display: grid;
  gap: 10px;
}

.dashboard-onboarding-copy h2 {
  color: #1f5c38;
  font-size: 20px;
  margin: 0;
}

.dashboard-onboarding-copy p {
  color: #3d5c4a;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.dashboard-quick-add {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-quick-add-link {
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #d7e0e8;
  border-radius: 999px;
  color: #1a3d2e;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  text-decoration: none;
}

.dashboard-quick-add-link:hover,
.dashboard-quick-add-link:visited {
  background: #ffffff;
  color: #1a3d2e;
  text-decoration: none;
}

.list-filter-bar {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.list-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.list-filter-chip {
  align-items: center;
  background: #f4faf6;
  border: 1px solid #cfe5d6;
  border-radius: 999px;
  color: #2f6a45;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  text-decoration: none;
}

.list-filter-chip:hover {
  background: #eaf6ee;
}

.list-filter-chip.is-active {
  background: #2f6a45;
  border-color: #2f6a45;
  color: #fff;
}

.view a.list-filter-chip.is-active,
.view a.list-filter-chip.is-active:hover,
.view a.list-filter-chip.is-active:visited,
.view a.list-filter-chip--all.is-active,
.view a.list-filter-chip--all.is-active:hover,
.view a.list-filter-chip--all.is-active:visited {
  color: #fff;
  opacity: 1;
  text-decoration: none;
}

.list-filter-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.list-filter-status {
  color: #5f7468;
  font-size: 14px;
  margin: 0;
}

.list-filter-reset {
  min-height: 40px;
}

.list-filter-note {
  color: #5f7468;
  font-size: 13px;
  margin: 0 0 12px;
}

.submission-missing-summary,
.submission-recent-landing-summary {
  color: #3f5648;
  font-size: 14px;
  margin: 0 0 14px;
}

.submission-missing-groups {
  display: grid;
  gap: 14px;
}

.submission-missing-group {
  border: 1px solid #d9e5dd;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
}

.submission-missing-group-header h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.submission-missing-group-header p {
  margin: 0;
  color: #5f7468;
  font-size: 13px;
}

.submission-missing-student-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.submission-missing-student-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6faf7;
}

.submission-missing-student-name {
  font-weight: 600;
}

.submission-recent-landing {
  margin-bottom: 12px;
}

.submission-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.submission-recent-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid #d9e5dd;
  border-radius: 12px;
  background: #fff;
}

.submission-recent-item-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.submission-recent-student {
  font-size: 15px;
}

.submission-recent-title {
  color: #1f5b3d;
  text-decoration: none;
  word-break: break-word;
}

.submission-recent-time {
  color: #5f7468;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 430px) {
  .submission-missing-student-item .inline-button,
  .submission-type-tabs .list-filter-chip,
  .list-filter-chip {
    min-height: 40px;
  }
}

/* Account deletion lifecycle and AI retention (privacy policy v1.4). */
.mypage-deletion-panel {
  border: 1px solid rgba(185, 52, 52, 0.25);
}

.mypage-deletion-warning {
  background: rgba(185, 52, 52, 0.06);
  border: 1px solid rgba(185, 52, 52, 0.16);
  border-radius: 16px;
  color: var(--text, #24352f);
  padding: 18px 20px;
}

.mypage-deletion-warning strong {
  color: var(--danger, #b93434);
  display: block;
  margin-bottom: 10px;
}

.mypage-deletion-warning ul {
  line-height: 1.7;
  margin: 0;
  padding-left: 1.2rem;
}

.mypage-deletion-status,
.account-deletion-status {
  min-height: 1.5em;
}

.account-deletion-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: min(680px, calc(100vh - 170px));
  padding: 24px;
}

.account-deletion-card {
  background: #fff;
  border: 1px solid rgba(59, 117, 96, 0.2);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(31, 73, 59, 0.11);
  max-width: 720px;
  padding: clamp(24px, 5vw, 46px);
  width: 100%;
}

.account-deletion-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 4px 0 14px;
}

.account-deletion-lead,
.account-deletion-note {
  line-height: 1.7;
}

.account-deletion-schedule {
  background: var(--mint-soft, #edf9f4);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 18px 20px;
}

.account-deletion-schedule div {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

.account-deletion-schedule dt {
  color: var(--text-muted, #5f6b7a);
  font-weight: 700;
}

.account-deletion-schedule dd {
  font-weight: 800;
  margin: 0;
  text-align: right;
}

.account-deletion-actions .button,
.mypage-deletion-panel .button {
  min-height: 44px;
}

.report-ai-retention {
  background: rgba(55, 137, 109, 0.08);
  border-left: 4px solid var(--mint-deep, #37896d);
  border-radius: 10px;
  line-height: 1.55;
  margin-top: 14px;
  padding: 12px 14px;
}

.report-ai-retention p {
  margin: 0;
}

.report-ai-retention p + p {
  color: var(--text-muted, #5f6b7a);
  font-size: 0.9rem;
  margin-top: 4px;
}

@media (max-width: 620px) {
  .account-deletion-page {
    align-items: flex-start;
    min-height: auto;
    padding: 12px 0;
  }

  .account-deletion-card {
    border-radius: 18px;
    padding: 24px 18px;
  }

  .account-deletion-schedule div {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-deletion-schedule dd {
    text-align: left;
  }

  .account-deletion-actions,
  .mypage-deletion-panel .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-deletion-actions .button,
  .mypage-deletion-panel .actions .button {
    width: 100%;
  }
}

/* Beta access and entitlement flow */
#app.route-access-pending {
  visibility: hidden;
}

body.landing-route-active {
  background: #e8f2ed;
  overflow: hidden;
}

body.landing-route-active .app-shell {
  display: block;
  min-height: 100vh;
}

body.landing-route-active .sidebar,
body.landing-route-active .sidebar-backdrop,
body.landing-route-active .topbar,
body.landing-route-active .site-footer {
  display: none !important;
}

body.landing-route-active .main,
body.landing-route-active .view {
  margin: 0;
  max-width: none;
  min-height: 100vh;
  padding: 0;
  width: 100%;
}

.landing-main-frame {
  background: #e8f2ed;
  border: 0;
  display: block;
  height: 100vh;
  height: 100dvh;
  width: 100%;
}

.archived-student-list {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
}

.archived-student-list > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 800;
  gap: 10px;
  min-height: 44px;
  width: fit-content;
}

.archived-student-list > summary:focus-visible {
  border-radius: 8px;
  outline: 3px solid color-mix(in srgb, var(--color-primary) 36%, transparent);
  outline-offset: 3px;
}

.archived-student-list[open] > summary {
  margin-bottom: var(--space-2);
}

.access-page {
  margin: 0 auto;
  max-width: 1040px;
  width: 100%;
}

.access-page-heading {
  margin: 0 auto var(--space-6);
  max-width: 720px;
  text-align: center;
}

.access-page-heading h2,
.access-hero-card h2,
.purchase-card h2,
.access-message-card h2 {
  color: var(--tf-text);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 8px 0 12px;
}

.eyebrow {
  color: var(--color-primary-strong);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0;
}

.access-hero-card,
.purchase-card,
.access-message-card {
  background: var(--color-surface);
  border: 1px solid var(--tf-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
}

.access-hero-card {
  align-items: center;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr) minmax(180px, 300px);
}

.access-main-illustration {
  height: auto;
  justify-self: center;
  max-width: 100%;
}

.access-primary-action {
  margin-top: var(--space-4);
}

.plan-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.plan-card.is-selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46, 155, 90, 0.12);
}

.plan-card h3,
.plan-card p {
  margin: 0;
}

.plan-card .button {
  margin-top: auto;
}

.plan-price strong {
  font-size: 1.5rem;
}

.plan-beta-label {
  color: var(--color-primary-strong);
  font-weight: 800;
}

.main--select .access-page-heading .eyebrow {
  color: #111111;
}

.main--select .access-page-heading h2,
.main--select .plan-beta-label {
  color: #2e9b5a;
}

.main--select .access-page-heading h2 {
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.85), 0 8px 14px rgba(255, 255, 255, 0.55);
}

.main--select .plan-card .button.dark,
.main--select .plan-card .button.dark:visited {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.08) 46%, rgba(0, 0, 0, 0.08) 100%),
    #2e9b5a;
  border-color: #2e9b5a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #ffffff;
  opacity: 1;
}

.main--select .plan-card .button.dark:hover,
.main--select .plan-card .button.dark:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.1) 46%, rgba(0, 0, 0, 0.1) 100%),
    #24854c;
  border-color: #24854c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: #ffffff;
  opacity: 1;
}

.purchase-card,
.access-message-card {
  max-width: 760px;
}

.purchase-summary {
  background: var(--color-surface-subtle);
  border-radius: var(--radius-lg);
  margin: 24px 0;
  padding: 8px 20px;
}

.purchase-summary > div {
  align-items: baseline;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 14px 0;
}

.purchase-summary > div:last-child {
  border-bottom: 0;
}

.purchase-summary dt {
  color: var(--color-text-muted);
}

.purchase-summary dd {
  margin: 0;
  text-align: right;
}

.access-callout {
  background: var(--color-warning-bg);
  border: 1px solid #efd9ad;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  padding: 16px;
}

.access-callout p,
.access-message-text {
  line-height: 1.7;
  margin-bottom: 0;
}

.admin-beta-page {
  display: grid;
  gap: var(--space-5);
}

.admin-beta-config-form,
.admin-beta-tester-form {
  max-width: 680px;
}

.checkbox-row {
  align-items: center;
  display: flex;
  gap: 10px;
  min-height: 44px;
}

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

.admin-beta-table td {
  max-width: 300px;
  overflow-wrap: anywhere;
}

.admin-commerce-page {
  display: grid;
  gap: var(--space-5);
}

.admin-commerce-form {
  max-width: 920px;
}

.admin-commerce-form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-commerce-field--wide {
  grid-column: 1 / -1;
}

.admin-readiness-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  max-width: 680px;
  padding: 0;
}

.admin-readiness-list li {
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 0;
}

.status-badge--ready {
  background: #e2f6ea;
  color: #176b3a;
}

.status-badge--blocked {
  background: #fff0ed;
  color: #9b3127;
}

.success-text {
  color: #176b3a;
  font-weight: 800;
}

.admin-product-template-actions,
.admin-product-row-actions,
.admin-payment-methods {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-product-template-actions {
  margin-bottom: 20px;
}

.admin-product-table-wrap {
  margin-top: 24px;
}

.admin-product-table td {
  max-width: 280px;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.admin-product-row-actions .button,
.admin-product-template-actions .button {
  min-height: 44px;
}

.admin-manual-entitlement-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-manual-entitlement-form {
  align-content: start;
  background: var(--color-surface-soft, #f6faf7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.admin-manual-entitlement-form h3 {
  margin: 0 0 4px;
}

@media (max-width: 820px) {
  .admin-commerce-form-grid,
  .admin-manual-entitlement-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-commerce-field--wide {
    grid-column: auto;
  }
}

.button[aria-busy="true"] {
  cursor: wait;
}

@media (max-width: 820px) {
  .main--select .access-page-heading {
    position: relative;
  }

  .main--select .plan-select-stage {
    overflow: visible;
    position: relative;
  }

  .main--select .select-sticker {
    left: -8px;
    top: -14px;
    width: 56px;
  }

  .main--select .select-money {
    bottom: -36px;
    right: -6px;
    width: 96px;
  }

  .access-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .access-main-illustration {
    max-width: 220px;
    order: -1;
  }

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

  .purchase-summary > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .purchase-summary dd {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .access-hero-card,
  .purchase-card,
  .access-message-card,
  .plan-card {
    border-radius: var(--radius-lg);
    padding: 20px;
  }

  .access-page .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .access-page .actions .button {
    justify-content: center;
    width: 100%;
  }
}

.dashboard-calendar-card--compact {
  padding: 18px;
}

.dashboard-calendar-card--compact .dashboard-calendar-desc {
  font-size: 13px;
}

.dashboard-calendar-card--compact .dashboard-calendar-legend {
  gap: 6px;
}

@media (min-width: 1181px) {
  .dashboard-action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dashboard-hero-card {
  align-items: stretch;
  background: linear-gradient(135deg, #dff3e4 0%, #e8f7ec 48%, #f0faf2 100%);
  border: 1px solid #b8dcc0;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(46, 95, 62, 0.08);
  display: block;
  overflow: hidden;
  padding: 28px 32px;
}

.dashboard-hero-main {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.dashboard-hero-stats {
  margin-top: 16px;
}

.dashboard-hero-stats .mint-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-hero-content {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.dashboard-hero-title {
  color: #1f5c38;
  font-size: 24px;
  font-weight: 900;
  margin: 0;
}

.dashboard-hero-desc {
  color: #3d5c4a;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.dashboard-hero-actions {
  margin-top: 4px;
}

.dashboard-hero-cta {
  background: #ffffff;
  border: 1.5px solid #5cb87a;
  border-radius: var(--tf-btn-radius);
  color: #1f5c38;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 22px;
}

.dashboard-hero-cta:hover {
  background: #f4fbf6;
  border-color: #3d9a5c;
  color: #174a2c;
}

.dashboard-hero-cta-icon {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.dashboard-hero-mascot {
  flex-shrink: 0;
}

.dashboard-hero-mascot img {
  display: block;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  width: 120px;
}

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

.dashboard-grid--homework {
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 0.9fr);
}

.dashboard-side-stack {
  display: grid;
  gap: 20px;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  min-height: 260px;
}

.dashboard-side-stack .dashboard-card {
  min-height: 0;
}

.dashboard-grid--secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-calendar-card {
  align-self: stretch;
  background: #ffffff;
  border: 1px solid #c8e0cc;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(46, 95, 62, 0.06);
  display: grid;
  gap: 16px;
  margin: 0;
  min-height: 260px;
  padding: 24px;
}

.dashboard-calendar-head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.dashboard-calendar-title {
  color: #1a3d2e;
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 6px;
}

.dashboard-calendar-desc {
  color: var(--tf-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.dashboard-calendar-nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.dashboard-calendar-month-label {
  color: #1a3d2e;
  font-size: 16px;
  font-weight: 800;
  min-width: 108px;
  text-align: center;
}

.dashboard-calendar-nav-btn {
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #c8e0cc;
  border-radius: var(--tf-btn-radius);
  color: #3d5c4a;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  min-width: 36px;
  padding: 0;
}

.dashboard-calendar-nav-btn:hover {
  background: #f0faf2;
  border-color: #9ecc5a;
}

.dashboard-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.calendar-legend-item {
  align-items: center;
  color: #4a6356;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
}

.calendar-legend-item::before,
.calendar-dot {
  border-radius: var(--tf-btn-radius);
  content: "";
  display: inline-block;
  height: 8px;
  width: 8px;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
  color: var(--tf-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  background: #f7fbf8;
  border: 1px solid #dceee0;
  border-radius: 14px;
  color: #315f3c;
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 10px 8px;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.calendar-day:hover {
  background: #eef8f0;
  border-color: #9ecc5a;
  color: #315f3c;
}

.calendar-day--blank {
  background: transparent;
  border-color: transparent;
  cursor: default;
  min-height: 0;
  padding: 0;
}

.calendar-day--selected {
  background: #dff3e4;
  border-color: #5cb87a;
  box-shadow: inset 0 0 0 1px #5cb87a;
}

.calendar-day--today .calendar-day-number {
  color: #246b3b;
}

.calendar-day--selected .calendar-day-number {
  color: #1f5c38;
}

.calendar-day-number {
  color: #315f3c;
  font-size: 14px;
  font-weight: 800;
}

.calendar-day-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.calendar-day-event-count {
  color: #315f3c;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.dashboard-calendar-day-detail {
  background: #f7fbf8;
  border: 1px solid #e0efe4;
  border-radius: 16px;
  padding: 14px 16px;
}

.dashboard-calendar-day-detail-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dashboard-calendar-event-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboard-calendar-event-list a {
  color: var(--text);
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.dashboard-calendar-event-list .calendar-event-type {
  color: var(--muted);
  font-size: 11px;
}

.dashboard-calendar-event-list .calendar-event-title {
  font-weight: 800;
}

.calendar-event-lesson::before,
.calendar-event-lesson.calendar-dot {
  background: #16a34a;
}

.calendar-event-homework-due::before,
.calendar-event-homework-due.calendar-dot {
  background: #d97706;
}

.calendar-event-homework-submit::before,
.calendar-event-homework-submit.calendar-dot {
  background: #286f5f;
}

.calendar-event-mock-submit::before,
.calendar-event-mock-submit.calendar-dot {
  background: #3b8fd9;
}

.calendar-event-peeping::before,
.calendar-event-peeping.calendar-dot {
  background: #7c3aed;
}

.calendar-event-default::before,
.calendar-event-default.calendar-dot {
  background: #94a3b8;
}

.dashboard-card {
  background: #ffffff;
  border: 1px solid #c8e0cc;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(46, 95, 62, 0.06);
  display: grid;
  gap: 14px;
  grid-template-rows: auto 1fr auto;
  min-height: 260px;
  padding: 22px 24px;
}

.dashboard-card-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.dashboard-card-head-text {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.dashboard-card-head h3 {
  color: #1a3d2e;
  font-size: 16px;
  font-weight: 900;
  margin: 0;
}

.dashboard-card-count {
  color: #2e9b5a;
  flex-shrink: 0;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.dashboard-card-icon {
  align-items: center;
  background: #e8f5e9;
  border-radius: var(--tf-btn-radius);
  color: #2e7d4e;
  display: inline-flex;
  flex-shrink: 0;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.dashboard-card-icon svg {
  height: 22px;
  width: 22px;
}

.dashboard-card--bottom .dashboard-card-count {
  font-size: 40px;
}

.dashboard-card-body {
  align-self: start;
  width: 100%;
}

.dashboard-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboard-list li {
  border-bottom: 1px solid #e0efe4;
  display: grid;
  gap: 3px;
  padding-bottom: 9px;
}

.dashboard-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dashboard-list a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.dashboard-list a:hover {
  color: var(--text);
  opacity: 0.82;
}

.dashboard-list a.timeline-homework {
  color: var(--primary-dark);
}

.dashboard-list a.timeline-mock-exam {
  color: #3379b8;
}

.dashboard-list a.timeline-question {
  color: var(--danger);
}

.dashboard-list a.timeline-homework:hover {
  color: var(--primary-dark);
}

.dashboard-list a.timeline-mock-exam:hover {
  color: #3379b8;
}

.dashboard-list a.timeline-question:hover {
  color: var(--danger);
}

.dashboard-list small {
  color: var(--tf-muted);
  font-size: 12px;
  line-height: 1.4;
}

.dashboard-card-action {
  background: #ffffff;
  border: 1.5px solid #c8e0cc;
  border-radius: 12px;
  color: #3d5c4a;
  font-weight: 800;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 16px;
  width: 100%;
}

.dashboard-card-action:hover {
  background: #f4fbf6;
  border-color: #9ecc5a;
  color: #1f5c38;
}

.dashboard-card-action-arrow {
  color: var(--tf-muted);
  font-weight: 700;
}

.classes-page {
  display: grid;
  gap: 20px;
}

.classes-panel-tabs {
  display: none;
}

.classes-page .roster-card {
  background: #ffffff;
  border: 1px solid #c8e0cc;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(46, 95, 62, 0.06);
  display: grid;
  gap: 18px;
  overflow: visible;
  padding: 22px 24px;
}

.classes-page .roster-card-head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

.classes-page .roster-card-head-text {
  align-items: flex-start;
  display: flex;
  flex: 1 1 auto;
  gap: 14px;
  min-width: 0;
}

.classes-page .roster-card-icon {
  align-items: center;
  background: #e8f5e9;
  border-radius: var(--tf-btn-radius);
  color: #2e7d4e;
  display: inline-flex;
  flex-shrink: 0;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.classes-page .roster-card-icon svg {
  height: 22px;
  width: 22px;
}

.classes-page .roster-card-title {
  color: #1a3d2e;
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 6px;
}

.classes-page .roster-card-desc {
  color: var(--tf-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.classes-page .roster-card-cta,
.classes-page .roster-card-cta:visited,
.classes-page .roster-card-cta:hover,
.classes-page .roster-card-cta:active {
  align-items: center;
  background: var(--tf-green-dark);
  border: 1.5px solid #2e7d4e;
  border-radius: var(--tf-btn-radius);
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  gap: 6px;
  min-height: 44px;
  padding: 10px 22px;
  text-decoration: none;
  white-space: nowrap;
}

.classes-page .roster-card-cta:hover {
  background: #174a2c;
  border-color: #1f5c38;
  color: #ffffff;
  opacity: 1;
}

.classes-page .roster-card-cta-icon {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.classes-page .roster-card-body {
  width: 100%;
}

.classes-page .roster-empty {
  background: #f7fbf8;
  border: 1px dashed #c8e0cc;
  border-radius: 16px;
  color: var(--tf-muted);
  margin: 0;
  padding: 18px;
  text-align: center;
}

.classes-page .roster-table-wrap:not(.roster-table-wrap--stack) {
  overscroll-behavior-y: auto;
  overflow-x: auto;
  touch-action: pan-x pan-y pinch-zoom;
  width: 100%;
}

.classes-page .roster-table:not(.roster-table--stack) {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 640px;
  width: 100%;
}

.classes-page .roster-table thead th {
  background: #f0faf2;
  border-bottom: 1px solid #dceee0;
  color: #3d5c4a;
  font-size: 12px;
  font-weight: 800;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}

.classes-page .roster-table thead th:first-child {
  border-top-left-radius: 14px;
}

.classes-page .roster-table thead th:last-child {
  border-top-right-radius: 14px;
}

.classes-page .roster-table tbody td {
  border-bottom: 1px solid #e8f2ed;
  color: #2f4a3a;
  font-size: 14px;
  padding: 14px;
  vertical-align: top;
}

.classes-page .roster-table tbody tr:last-child td {
  border-bottom: 0;
}

.classes-page .roster-table-name {
  color: #1a3d2e;
  font-weight: 800;
}

.classes-page .roster-count-badge {
  align-items: center;
  background: #e8f5e9;
  border-radius: var(--tf-btn-radius);
  color: #2e7d4e;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-width: 28px;
  padding: 4px 10px;
}

.classes-page .roster-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.classes-page .roster-action-group--compact {
  gap: 6px;
}

.classes-page .roster-action-group--stack {
  width: 100%;
}

.classes-page .roster-btn {
  border-radius: var(--tf-btn-radius);
  font-size: 13px;
  font-weight: 700;
  min-height: 34px;
  padding: 6px 12px;
}

.classes-page a.roster-btn.secondary,
.classes-page button.roster-btn.secondary {
  background: #ffffff;
  border: 1.5px solid #5cb87a;
  color: #1f5c38;
}

.classes-page a.roster-btn.secondary:hover,
.classes-page button.roster-btn.secondary:hover {
  background: #f4fbf6;
  border-color: #3d9a5c;
  color: #174a2c;
}

.classes-page button.roster-btn.danger,
.classes-page .roster-btn.danger {
  background: #ffffff;
  border: 1.5px solid #e8b4b4;
  color: #a43d3d;
}

.classes-page button.roster-btn.danger:hover,
.classes-page .roster-btn.danger:hover {
  background: #fff5f5;
  border-color: #d49090;
  color: #8f3232;
}

.class-memo-cell {
  max-width: 220px;
  min-width: 120px;
  vertical-align: top;
}

.classes-page .student-list-panel .class-memo-cell {
  max-width: min(420px, 38vw);
  min-width: 200px;
  width: 100%;
}

.classes-page .student-list-panel .roster-table thead th:last-child,
.classes-page .student-list-panel .roster-table tbody td.class-memo-cell {
  width: 32%;
}

.class-memo-write-btn {
  width: 100%;
}

.class-memo-preview {
  background: #f4fbf6;
  border: 1px solid #d8ebe0;
  border-radius: 10px;
  color: var(--tf-text, #1a3d2e);
  cursor: pointer;
  display: block;
  font-size: 13px;
  line-height: 1.45;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
  word-break: break-word;
}

.class-memo-preview:hover {
  background: #eaf7ef;
  border-color: #7bc99a;
}

.class-memo-modal {
  width: min(460px, calc(100vw - 32px));
}

.class-memo-editor-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.class-memo-editor-field label {
  color: var(--tf-text-muted, #5a7a6a);
  font-size: 13px;
  font-weight: 700;
}

.class-memo-editor-field textarea {
  border: 1.5px solid #d8ebe0;
  border-radius: 12px;
  font: inherit;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
  width: 100%;
}

.class-memo-editor-field textarea:focus-visible {
  border-color: #5cb87a;
}

.class-memo-view-body {
  background: #f8fcf9;
  border: 1px solid #e2efe8;
  border-radius: 12px;
  color: var(--tf-text, #1a3d2e);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 16px;
  max-height: 240px;
  overflow: auto;
  padding: 14px 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

.tuition-fee-write-btn,
.tuition-fee-preview {
  background: #ffffff;
  border: 1.5px solid #d8ebe0;
  border-radius: 10px;
  color: var(--tf-text, #1a3d2e);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  max-width: 100%;
  padding: 8px 12px;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
  word-break: break-word;
}

.tuition-fee-preview:hover,
.tuition-fee-write-btn:hover {
  background: #eaf7ef;
  border-color: #7bc99a;
}

.tuition-fee-modal select,
.tuition-fee-amount-input,
.tuition-payment-date-input {
  border: 1.5px solid #d8ebe0;
  border-radius: 12px;
  font: inherit;
  padding: 12px 14px;
  width: 100%;
}

.tuition-fee-amount-input:focus-visible,
.tuition-fee-modal select:focus-visible,
.tuition-payment-date-input:focus-visible {
  border-color: #5cb87a;
}

.tuition-payment-date-btn {
  align-items: flex-start;
  background: #ffffff;
  border: 1.5px solid #d8ebe0;
  border-radius: 10px;
  color: var(--tf-text, #1a3d2e);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font: inherit;
  gap: 6px;
  max-width: 100%;
  min-width: 112px;
  padding: 8px 12px;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tuition-payment-date-btn:hover {
  background: #eaf7ef;
  border-color: #7bc99a;
}

.tuition-payment-date-btn--plain {
  gap: 0;
}

.tuition-payment-date-value {
  font-size: 13px;
  font-weight: 700;
}

.tuition-payment-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 8px;
}

.tuition-payment-status.is-unpaid {
  background: #ffe9e9;
  color: #a61b1b;
}

.tuition-payment-status.is-paid {
  background: #e8f8df;
  color: #2f7136;
}

.tuition-payment-paid-toggle {
  align-items: center;
  color: #2f4a3a;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}

.tuition-payment-paid-toggle input {
  accent-color: #3f8f45;
  height: 18px;
  width: 18px;
}

.tuition-payment-paid-toggle input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.mock-exam-pdf-pending-panel {
  margin-top: 16px;
}

.mock-exam-pdf-pending-list {
  display: grid;
  gap: 12px;
}

.mock-exam-pdf-pending-card {
  border: 1px solid #d7ead9;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.mock-exam-pdf-pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mock-exam-pdf-recovery-banner {
  background: #fff8e8;
  border: 1px solid #f0d9a6;
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 14px;
}

.mock-exam-pdf-retry-panel {
  margin-top: 12px;
}

.tuition-fee-view-body {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.roster-card-icon--tuition svg {
  color: #2e9b5a;
}

.classes-page .roster-btn--primary,
.classes-page .roster-btn--primary:visited,
.classes-page .roster-btn--primary:hover,
.classes-page .roster-btn--primary:active {
  background: var(--tf-green-dark);
  border: 1.5px solid #2e7d4e;
  color: #ffffff;
}

.classes-page .roster-btn--primary:hover {
  background: #174a2c;
  border-color: #1f5c38;
  color: #ffffff;
}

.classes-page .roster-invite-cell {
  display: grid;
  gap: 7px;
  min-width: 230px;
}

.classes-page .roster-invite-chips {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.classes-page .roster-code-chip {
  align-items: center;
  background: #f7fbf8;
  border: 1px solid #c8e0cc;
  border-radius: 8px;
  color: #1a3d2e;
  display: inline-flex;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 800;
  min-height: 28px;
  padding: 3px 10px;
}

.classes-page .roster-status-chip {
  align-items: center;
  border-radius: var(--tf-btn-radius);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  min-height: 24px;
  padding: 3px 10px;
}

.classes-page .roster-status-chip.active,
.classes-page .roster-status-chip.pending,
.classes-page .roster-status-chip.usable {
  background: #e8f5e9;
  color: #246b3b;
}

.classes-page .roster-status-chip.revoked,
.classes-page .roster-status-chip.disabled {
  background: #f1f5f9;
  color: #526274;
}

.classes-page .roster-status-chip.claimed {
  background: #e0f2fe;
  color: #0369a1;
}

.classes-page .roster-muted-text {
  color: var(--tf-muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

.stat {
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 16px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat strong {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}

/* Button system — semantic variants + legacy aliases (phase 6) */
.button,
a.button {
  align-items: center;
  border-radius: var(--radius-md);
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: var(--space-2);
  justify-content: center;
  min-height: 40px;
  padding: 10px 13px;
  text-decoration: none;
  transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.button--primary,
.button.dark,
a.button.dark,
button.button--primary,
button.button.dark,
.button--primary:visited,
.button.dark:visited,
a.button.dark:visited,
button.button--primary:visited,
button.button.dark:visited {
  background: var(--color-primary-strong);
  border: 1.5px solid var(--color-primary-border);
  color: var(--color-text-on-primary);
  font-weight: 800;
}

.button--primary:hover,
.button.dark:hover,
a.button.dark:hover,
button.button--primary:hover,
button.button.dark:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-strong);
  color: var(--color-text-on-primary);
}

.button--secondary,
.button.secondary,
a.button.secondary,
button.button--secondary,
button.button.secondary {
  background: var(--color-surface);
  border: 1.5px solid #5cb87a;
  color: var(--color-primary-strong);
  font-weight: 700;
}

.button--secondary:hover,
.button.secondary:hover,
a.button.secondary:hover,
button.button--secondary:hover,
button.button.secondary:hover {
  background: #f4fbf6;
  border-color: #3d9a5c;
  color: var(--color-primary-hover);
}

.button--ghost,
.button.light,
a.button.light,
button.button--ghost,
button.button.light {
  background: var(--color-primary-soft);
  border: 1.5px solid #7bc99a;
  color: var(--color-primary-strong);
  font-weight: 800;
}

.button--ghost:hover,
.button.light:hover,
a.button.light:hover,
button.button--ghost:hover,
button.button.light:hover {
  background: #dff3e4;
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
}

.button--danger,
.button.danger,
a.button.danger,
button.button--danger,
button.button.danger {
  background: var(--color-surface);
  border: 1.5px solid #e8b4b4;
  color: var(--color-danger);
  font-weight: 700;
}

.button--danger:hover,
.button.danger:hover,
a.button.danger:hover,
button.button--danger:hover,
button.button.danger:hover {
  background: var(--color-danger-bg);
  border-color: #d49090;
  color: #8f3232;
}

.button.small,
button.button.small {
  font-size: 12px;
  min-height: 32px;
  padding: 6px 10px;
}

.button:focus-visible,
a.button:focus-visible,
button.button:focus-visible {
  outline: 3px solid var(--color-focus-inner);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--color-focus);
}

.panel-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.privacy-request-admin .actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  max-width: 420px;
}

.privacy-request-admin .actions .button {
  flex: 1 1 auto;
  font-size: 12px;
  min-height: 36px;
  padding: 6px 10px;
}

.form-hint {
  color: var(--tf-muted, #4d6b5b);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.recurring-options.hidden {
  display: none;
}

.field-label {
  color: var(--tf-text, #1a3d2e);
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}

.weekday-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weekday-checkbox {
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #d8ebe0;
  border-radius: 12px;
  color: var(--tf-text, #1a3d2e);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
}

.weekday-checkbox:has(input:checked) {
  background: var(--tf-green-soft, #e8f5e9);
  border-color: #7bc99a;
  color: var(--tf-green-dark, #1f5c38);
}

.weekday-checkbox input {
  accent-color: var(--tf-green, #2e9b5a);
}

.recurring-monthly-days {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 8px;
}

.recurring-monthly-day {
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #d8ebe0;
  border-radius: 10px;
  color: var(--tf-text, #1a3d2e);
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 0;
}

.recurring-monthly-day:hover {
  background: #f4fbf6;
  border-color: #7bc99a;
}

.recurring-monthly-day.is-selected {
  background: var(--tf-green-soft, #e8f5e9);
  border-color: var(--tf-green, #2e9b5a);
  color: var(--tf-green-dark, #1f5c38);
}

.attendance-input-btn {
  font-size: 11px;
  min-height: 28px;
  padding: 4px 8px;
  white-space: nowrap;
}

.main--mint .table th.schedule-attendance-cell,
.main--mint .table td.schedule-attendance-cell,
.schedule-attendance-cell {
  min-width: 72px;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
  vertical-align: middle;
  width: 72px;
}

.schedule-attendance-cell .inline-button,
.schedule-attendance-cell .attendance-badge {
  margin: 0;
}

.attendance-badge {
  align-items: center;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  min-height: 24px;
  min-width: 42px;
  padding: 4px 8px;
}

.attendance-badge--present {
  background: #e8f5e9;
  color: #1f7a43;
}

.attendance-badge--late {
  background: #fff8db;
  color: #765200;
  cursor: pointer;
}

.attendance-badge--absent {
  background: #fdecec;
  color: #a43d3d;
  cursor: pointer;
}

.attendance-modal {
  width: min(420px, calc(100vw - 32px));
}

.attendance-status-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.attendance-option {
  background: #ffffff;
  border: 1.5px solid #d8ebe0;
  border-radius: 12px;
  color: var(--tf-text, #1a3d2e);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 12px;
}

.attendance-option.is-selected.attendance-option--present {
  background: #e8f5e9;
  border-color: #7bc99a;
  color: #1f7a43;
}

.attendance-option.is-selected.attendance-option--late {
  background: #fff8db;
  border-color: #e8c547;
  color: #765200;
}

.attendance-option.is-selected.attendance-option--absent {
  background: #fdecec;
  border-color: #e0a0a0;
  color: #a43d3d;
}

.attendance-reason-field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.attendance-reason-field label {
  color: var(--tf-text, #1a3d2e);
  font-size: 14px;
  font-weight: 800;
}

.attendance-reason-field textarea {
  min-height: 96px;
  resize: vertical;
}

.attendance-reason-view {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.attendance-reason-view p {
  background: #f8fffb;
  border: 1px solid #d8ebe0;
  border-radius: 12px;
  color: var(--tf-text, #1a3d2e);
  line-height: 1.6;
  margin: 0;
  padding: 14px 16px;
  white-space: pre-wrap;
}

.status-warning {
  color: var(--warning);
  font-weight: 700;
}

.config-warning {
  border-color: #f2c98f;
  color: var(--warning);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

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

.table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  background: #f8fafc;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  background: #e8f2ef;
  color: var(--primary-dark);
  border: 1px solid #b8d5ce;
  font-size: 13px;
}

.badge.draft {
  background: #f6efe4;
  color: var(--warning);
  border-color: #e5c8a4;
}

.badge.closed {
  background: #f6e8e8;
  color: var(--danger);
  border-color: #e4b9b9;
}

.badge.active {
  background: #e8f2ef;
  color: var(--primary-dark);
  border-color: #b8d5ce;
}

.badge.pending {
  background: #e8f2ef;
  color: var(--primary-dark);
  border-color: #b8d5ce;
}

.badge.claimed {
  background: #e8eef8;
  color: #2e5d9f;
  border-color: #b8c9e8;
}

.badge.revoked {
  background: #f6e8e8;
  color: var(--danger);
  border-color: #e4b9b9;
}

.badge.submitted {
  background: #e8f2ef;
  color: var(--primary-dark);
  border-color: #b8d5ce;
}

.badge.late-submitted {
  background: #f6efe4;
  color: var(--warning);
  border-color: #e5c8a4;
}

.badge.missing {
  background: #eef3f8;
  color: var(--muted);
  border-color: var(--line-strong);
}

.badge.overdue {
  background: #f6e8e8;
  color: var(--danger);
  border-color: #e4b9b9;
}

.badge.correct_first_try {
  background: #e8f2ef;
  color: var(--primary-dark);
  border-color: #b8d5ce;
}

.badge.retry_pending {
  background: #fff4cc;
  color: #735000;
  border-color: #f0d060;
}

.badge.correct_after_retry {
  background: #e8f2ef;
  color: var(--primary-dark);
  border-color: #b8d5ce;
}

.badge.question_needed {
  background: #fdeaea;
  color: #a43d3d;
  border-color: #e4b9b9;
}

.submission-type-tabs {
  margin: 0 0 14px;
}

.submission-type-tabs .list-filter-chips {
  gap: 8px;
}

.submission-type-tabs a.list-filter-chip,
.submission-type-tabs a.submission-type-tab {
  flex: 0 0 auto;
}

.submissions-page .submission-type-tabs a.list-filter-chip.is-active,
.submission-type-tabs a.list-filter-chip.is-active,
.submission-type-tabs a.submission-type-tab.active {
  background: #2f6a45;
  border-color: #2f6a45;
  color: #fff;
}

.view .submissions-page .submission-type-tabs a.list-filter-chip.is-active,
.view .submissions-page .submission-type-tabs a.list-filter-chip.is-active:hover,
.view .submissions-page .submission-type-tabs a.list-filter-chip.is-active:visited,
.view .submission-type-tabs a.submission-type-tab.active,
.view .submission-type-tabs a.submission-type-tab.active:hover,
.view .submission-type-tabs a.submission-type-tab.active:visited {
  color: #fff;
  opacity: 1;
  text-decoration: none;
}

.submission-type-tabs a.list-filter-chip:not(.is-active),
.submission-type-tabs a.submission-type-tab:not(.active) {
  background: #f4faf6;
  border: 1px solid #cfe5d6;
  color: #2f6a45;
}

.main--mint .mypage-layout {
  gap: 20px;
}

.main--mint .mypage-hero,
.main--mint .mypage-account-panel,
.main--mint .report-panel,
.main--mint .homework-list-panel,
.main--mint .mint-list-panel,
.main--mint .mint-section-card {
  border: 1px solid var(--tf-border);
  border-radius: 24px;
  box-shadow: var(--tf-shadow);
}

.mypage-layout {
  display: grid;
  gap: 14px;
  overflow: visible;
  position: relative;
}

.mypage-layout > .panel {
  position: relative;
  z-index: 1;
}

.mypage-sticker {
  filter: drop-shadow(0 10px 18px rgba(31, 45, 61, 0.16));
  height: auto;
  object-fit: contain;
  pointer-events: none;
  position: absolute;
  user-select: none;
  width: auto;
  z-index: 3;
}

.mypage-sticker--hero {
  height: clamp(180px, 26vw, 240px);
  right: 10px;
  top: 10px;
  transform: rotate(-5deg);
}

.mypage-hero {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 168px;
  padding-right: clamp(170px, 28vw, 250px);
}

.mypage-hero-copy h2 {
  margin: 4px 0 6px;
}

.mypage-table th {
  width: 140px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 820px) {
  .mypage-sticker--hero {
    height: 150px;
    opacity: 0.95;
    right: 4px;
    top: 4px;
  }

  .mypage-hero {
    min-height: 148px;
    padding-right: 150px;
  }
}

.submission-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.submission-summary span {
  border: 1px solid var(--line);
  background: #f8fafc;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 13px;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkbox-row.compact-checkbox {
  font-size: 13px;
  color: var(--muted);
}

.answer-details {
  max-width: 680px;
}

.submission-table td,
.submission-table th {
  white-space: nowrap;
}

.submission-files {
  display: grid;
  gap: 4px;
  min-width: 180px;
  white-space: normal;
}

.submission-file {
  display: grid;
  gap: 2px;
}

.submission-file small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.submission-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}

.table-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inline-button,
a.inline-button,
button.inline-button {
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #5cb87a;
  border-radius: var(--tf-btn-radius);
  color: var(--tf-green-dark, #1f5c38);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 30px;
  padding: 6px 12px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.inline-button:hover,
a.inline-button:hover,
button.inline-button:hover {
  background: #f4fbf6;
  border-color: #3d9a5c;
  color: #174a2c;
}

.inline-button.dark,
a.inline-button.dark,
button.inline-button.dark,
.inline-button.dark:visited,
a.inline-button.dark:visited,
button.inline-button.dark:visited {
  background: var(--tf-green-dark, #1f5c38);
  border-color: #2e7d4e;
  color: #ffffff;
}

.inline-button.dark:hover,
a.inline-button.dark:hover,
button.inline-button.dark:hover {
  background: #174a2c;
  border-color: var(--tf-green-dark, #1f5c38);
  color: #ffffff;
}

.inline-button.danger,
button.inline-button.danger {
  background: #ffffff;
  border-color: #e8b4b4;
  color: #a43d3d;
}

.inline-button.danger:hover,
button.inline-button.danger:hover {
  background: #fff5f5;
  border-color: #d49090;
  color: #8f3232;
}

.inline-button--chip {
  border-radius: 10px;
  font-weight: 800;
  min-height: 28px;
  min-width: 28px;
  padding: 4px 8px;
}

.inline-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.main--mint .table .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.main--mint .table .actions .button.secondary,
.main--mint .table .actions a.button.secondary {
  border-radius: var(--tf-btn-radius);
  font-size: 12px;
  min-height: 30px;
  padding: 6px 12px;
}

.main--mint .table .actions button.danger,
.main--mint .table .actions .button.danger {
  background: #ffffff;
  border: 1.5px solid #e8b4b4;
  border-radius: var(--tf-btn-radius);
  color: #a43d3d;
  font-size: 12px;
  min-height: 30px;
  padding: 6px 12px;
}

.main--mint .table .actions button.danger:hover,
.main--mint .table .actions .button.danger:hover {
  background: #fff5f5;
  border-color: #d49090;
  color: #8f3232;
}

.cute-empty-state {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: center;
  padding: 4px 0;
}

.cute-empty-state--compact {
  min-height: 100px;
}

.cute-empty-state--large {
  min-height: 100%;
  width: 100%;
}

.cute-empty-mascot {
  flex-shrink: 0;
  height: 96px;
  margin-right: -4px;
  object-fit: contain;
  width: auto;
}

.cute-empty-state--compact .cute-empty-mascot {
  height: 88px;
}

.cute-empty-state--large .cute-empty-mascot {
  height: clamp(120px, 50%, 150px);
  margin-right: -6px;
  max-height: 150px;
}

.cute-empty-bubble {
  align-self: center;
  background: #ffffff;
  border: 2px solid #c8e8a8;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(111, 184, 111, 0.12);
  flex: 0 1 auto;
  margin-top: 0;
  max-width: calc(100% - 92px);
  min-width: 0;
  padding: 8px 10px;
  position: relative;
  width: fit-content;
}

.cute-empty-state--large .cute-empty-bubble {
  max-width: calc(100% - 148px);
}

.cute-empty-state--large .cute-empty-bubble p {
  font-size: 13px;
}

.cute-empty-bubble::before {
  border: 8px solid transparent;
  border-right-color: #c8e8a8;
  content: "";
  left: -15px;
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
}

.cute-empty-bubble::after {
  border: 6px solid transparent;
  border-right-color: #ffffff;
  content: "";
  left: -10px;
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
}

.cute-empty-state--large .cute-empty-bubble::before,
.cute-empty-state--large .cute-empty-bubble::after {
  top: 36%;
}

.cute-empty-bubble p {
  color: #4f6b3f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.cute-empty-bubble-sub {
  color: #6b8558;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 2px;
}

.cute-empty-state--calendar {
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
}

.cute-empty-state--calendar .cute-empty-mascot {
  height: 62px;
  margin-right: -2px;
}

.cute-empty-state--calendar .cute-empty-bubble {
  max-width: calc(100% - 68px);
  padding: 5px 8px;
}

.cute-empty-state--calendar .cute-empty-bubble p {
  font-size: 11px;
  line-height: 1.25;
}

.cute-empty-state--calendar .cute-empty-bubble::before {
  border-width: 6px;
  left: -12px;
  top: 40%;
}

.cute-empty-state--calendar .cute-empty-bubble::after {
  border-width: 5px;
  left: -8px;
  top: 40%;
}

.dashboard-card-body:has(.cute-empty-state--large) {
  display: flex;
  min-height: 170px;
}

.dashboard-card-body .cute-empty-state--large {
  flex: 1;
}

.dashboard-calendar-day-detail .cute-empty-state {
  justify-content: center;
}

.compact-empty {
  padding: 10px 12px;
  margin-bottom: 12px;
}

.debug-small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 6px 0 10px;
}

.form {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.field > span {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  padding: 10px 11px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field textarea.json-input {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
}

.advanced-json {
  border: 1px solid var(--line);
  background: #f8fafc;
  padding: 12px;
}

.advanced-json summary {
  cursor: pointer;
  font-weight: 700;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.check-row.stacked {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.check-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.check-row input {
  width: auto;
}

.inline-fields {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.inline-fields select,
.inline-fields input {
  width: auto;
  min-width: 140px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.invite-cell {
  display: grid;
  gap: 7px;
  min-width: 230px;
}

.code-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 8px;
  margin-right: 6px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 800;
}

.muted-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.empty {
  color: var(--muted);
  padding: 18px;
  border: 1px dashed var(--line-strong);
  background: #fbfcfe;
}

.page-subsection {
  margin-top: 28px;
}

.login-box {
  box-sizing: border-box;
  max-width: 520px;
  min-width: 0;
  width: 100%;
}

.login-box #login-config-warning,
.login-box #login-config-warning .config-warning,
.login-box .login-header p,
.login-box .login-notice p,
.login-box .login-legal-notice {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.login-header h2 {
  font-size: clamp(25px, 3.6vw, 31px);
}

.login-header p {
  font-size: 16px;
  line-height: 1.55;
}

.login-embedded-hint {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.login-embedded-hint a {
  color: var(--color-primary);
  text-decoration: underline;
}

.login-actions {
  margin-top: 4px;
}

.google-login-button {
  background: #ffffff;
  border: 1.5px solid #5cb87a;
  border-radius: var(--tf-btn-radius);
  color: #1f5c38;
  font-size: 18px;
  font-weight: 700;
  gap: 12px;
  justify-content: center;
  min-height: 56px;
  padding: 14px 22px;
  width: 100%;
}

.google-login-button:hover,
.google-login-button:focus-visible {
  background: #f4fbf6;
  border-color: #3d9a5c;
  color: #174a2c;
}

.google-login-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.google-login-icon {
  display: inline-flex;
  flex-shrink: 0;
  height: 24px;
  width: 24px;
}

.google-login-icon svg {
  display: block;
  height: 24px;
  width: 24px;
}

html:has(body.landing-page) {
  overflow-x: clip;
}

.landing-page {
  background-color: #e8f2ed;
  background-image:
    radial-gradient(ellipse 110% 70% at 50% -15%, rgba(168, 220, 186, 0.45) 0%, transparent 58%),
    radial-gradient(ellipse 80% 55% at 100% 100%, rgba(190, 228, 200, 0.35) 0%, transparent 52%),
    linear-gradient(
      168deg,
      #dff3e8 0%,
      #e8f2ed 32%,
      #eef6f0 58%,
      #e4f0e8 82%,
      #dcece4 100%
    );
  color: var(--tf-text);
  font-family: var(--font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

body.landing-page.app-loading-active {
  overflow: hidden;
}

body.landing-page.app-loading-active .landing-page-main {
  visibility: hidden;
}

.landing-page-main {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(12px, env(safe-area-inset-top, 0px)) 24px calc(132px + env(safe-area-inset-bottom, 0px));
}

.landing-page-main > .public-nav {
  align-self: center;
  border: none;
  gap: 8px 10px;
  justify-content: center;
  margin: 0 auto 12px;
  max-width: min(1080px, 100%);
  padding: 0;
  width: 100%;
}

.landing-page-cta {
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  margin: 0;
  padding: 14px 24px calc(18px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  position: fixed;
  right: 0;
  z-index: 20;
}

.landing-page-cta .landing-page-start-btn {
  pointer-events: auto;
}

.landing-page-hero {
  --landing-emphasis-col: 1ch;
  --landing-display-size: clamp(38px, 8.5vw, 58px);
  --landing-text-color: #1a3d2e;
  --landing-accent-color: #2e9b5a;
  --landing-emphasis-shift: -0.18em;
  --landing-line-height: 1.12;
  --landing-line-gap: 0.24em;
  align-items: flex-start;
  align-self: center;
  display: flex;
  flex-direction: column;
  font-size: var(--landing-display-size);
  gap: var(--landing-line-gap);
  margin: 0;
  max-width: min(680px, 100%);
  min-height: calc(var(--landing-line-height) * 2em + var(--landing-line-gap));
  width: max-content;
}

.landing-page-typing-line {
  color: var(--landing-text-color);
  column-gap: 0.08em;
  display: grid;
  font-family: var(--font-sans);
  font-size: inherit;
  font-weight: 900;
  font-variation-settings: normal;
  grid-template-columns: var(--landing-emphasis-col) max-content;
  justify-items: start;
  letter-spacing: -0.038em;
  line-height: var(--landing-line-height);
  margin: 0;
  min-height: calc(var(--landing-line-height) * 1em);
  width: max-content;
}

.landing-page-typing-emphasis {
  color: var(--landing-accent-color);
  display: block;
  font-family: var(--font-sans);
  font-weight: 900;
  grid-column: 1;
  letter-spacing: -0.06em;
  margin-left: var(--landing-emphasis-shift);
  text-align: left;
  width: var(--landing-emphasis-col);
}

.landing-page-typing-rest {
  align-items: baseline;
  color: var(--landing-text-color);
  display: inline-flex;
  font-family: var(--font-sans);
  font-weight: 900;
  grid-column: 2;
  letter-spacing: -0.034em;
  white-space: nowrap;
}

.landing-page-typing-cursor {
  animation: landing-page-cursor 1s step-end infinite;
  background-color: #2e9b5a;
  border-radius: 1px;
  display: none;
  flex-shrink: 0;
  height: 0.9em;
  margin-left: 0.1em;
  opacity: 1;
  vertical-align: baseline;
  width: 0.12em;
  min-width: 4px;
}

.landing-page-hero--typing-done .landing-page-typing-cursor {
  display: inline-block;
}

@keyframes landing-page-cursor {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.15;
  }
}

.landing-page-intro {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4.5vh, 36px);
  width: 100%;
}

.landing-page-sticker {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s ease,
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.landing-page-showcase-band {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.landing-page-intro--typing-done .landing-page-sticker {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.landing-page-intro--typing-done .landing-page-showcase-band {
  opacity: 1;
  transition-delay: 0.18s;
}

.landing-page-reveal {
  opacity: 0;
  transform: translateY(56px);
  transition:
    opacity 0.7s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.landing-page-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.landing-page-showcase .landing-page-reveal:nth-child(2) {
  transition-delay: 0.14s;
}

.landing-page-roster-aside.landing-page-reveal {
  transition-delay: 0.06s;
}

.landing-page-roster-cards .landing-page-reveal:nth-child(1) {
  transition-delay: 0.04s;
}

.landing-page-roster-cards .landing-page-reveal:nth-child(2) {
  transition-delay: 0.14s;
}

.landing-page-roster-cards .landing-page-reveal:nth-child(3) {
  transition-delay: 0.24s;
}

.landing-page-sticker {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  margin-top: clamp(4px, 1vh, 10px);
  max-width: min(100%, 420px);
}

.landing-page-sticker-image {
  filter: drop-shadow(0 12px 22px rgba(31, 45, 61, 0.14));
  flex-shrink: 0;
  height: clamp(112px, 24vw, 168px);
  margin-right: -10px;
  object-fit: contain;
  width: auto;
}

.landing-page-sticker-bubble {
  background: #ffffff;
  border: 2.5px solid #b8dcc8;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(46, 95, 62, 0.1);
  max-width: min(260px, 58vw);
  padding: 12px 16px;
  position: relative;
}

.landing-page-sticker-bubble::before {
  border: 9px solid transparent;
  border-right-color: #b8dcc8;
  content: "";
  left: -17px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.landing-page-sticker-bubble::after {
  border: 7px solid transparent;
  border-right-color: #ffffff;
  content: "";
  left: -12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.landing-page-sticker-bubble p {
  color: #1a3d2e;
  font-family: var(--font-sans);
  font-size: clamp(15px, 3.8vw, 18px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.35;
  margin: 0;
  text-align: center;
}

.landing-page-sticker-accent {
  color: #2e9b5a;
}

.landing-page-showcase-band,
.landing-page-phone-band,
.landing-page-ai-band {
  background-image:
    radial-gradient(ellipse 80% 70% at 18% 20%, rgba(255, 255, 255, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse 70% 60% at 88% 85%, rgba(46, 155, 90, 0.16) 0%, transparent 55%),
    linear-gradient(168deg, #c8e8d2 0%, #b4ddc2 38%, #a8d6b8 68%, #bce2c8 100%);
  box-sizing: border-box;
  margin-left: -24px;
  margin-right: -24px;
  padding: clamp(28px, 5vh, 52px) 24px;
  width: calc(100% + 48px);
}

.landing-page-phone-band,
.landing-page-ai-band {
  margin-top: clamp(28px, 5vh, 48px);
  padding: clamp(36px, 6vh, 64px) 24px;
}

.landing-page-ai-band {
  display: grid;
  gap: 22px;
  justify-items: center;
}

.landing-page-ai-lead {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.45;
  margin: 0;
  max-width: min(1120px, 100%);
  text-align: center;
}

.landing-page-ai-lead-accent {
  color: #2e9b5a;
}

.landing-ai-row {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  margin: 0 auto;
  max-width: min(1120px, 100%);
  width: 100%;
}

.landing-ai-parent-col {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.landing-ai-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(31, 92, 56, 0.08);
  box-sizing: border-box;
  padding: 20px 20px 16px;
  pointer-events: none;
  width: 100%;
}

.landing-parent-generate {
  cursor: pointer;
  pointer-events: auto;
}

.landing-parent-generate.is-blinking {
  animation: landing-parent-blink 1.05s ease-in-out infinite;
}

.landing-parent-result {
  display: none;
  gap: 12px;
}

.landing-parent-result.is-visible {
  display: grid;
}

.landing-parent-result .button {
  cursor: pointer;
  pointer-events: auto;
}

@keyframes landing-parent-blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    background: #e8f7ee;
    opacity: 0.62;
    transform: scale(1.04);
  }
}

.landing-page-ai-band .report-ai-section {
  border-top: 0;
  padding-top: 0;
}

.landing-page-ai-band .report-section h3 {
  background: transparent;
}

.landing-page-ai-band .button {
  cursor: default;
}

.landing-page-ai-band .landing-parent-generate,
.landing-page-ai-band .landing-parent-result .button {
  cursor: pointer;
}

.landing-page-ai-band .button.is-disabled,
.landing-page-ai-band input:disabled:not(:checked) {
  opacity: 0.7;
}

.landing-page-ai-band .teacher-copy-check input:checked {
  accent-color: #1f8f4a;
  opacity: 1;
}

.landing-page-ai-band .report-ai-textarea {
  color: #1f2b24;
  min-height: 336px;
  overflow: hidden;
  resize: none;
}

.landing-page-ai-band .report-parent-script {
  background: #f4faf6;
  border: 1px solid #d4eadb;
  border-radius: 18px;
}

.landing-page-ai-band .report-tone-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
}

.landing-page-ai-band .report-tone-control strong {
  grid-column: 2;
  justify-self: center;
}

.landing-page-ai-band .report-tone-slider {
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #1f8f4a 0 50%, #d7ddd9 50% 100%);
  border-radius: 999px;
  height: 6px;
  opacity: 1;
}

.landing-page-ai-band .report-tone-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: #1f8f4a;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(31, 92, 56, 0.28);
  height: 16px;
  width: 16px;
}

.landing-page-ai-band .report-tone-slider::-moz-range-thumb {
  background: #1f8f4a;
  border: 2px solid #ffffff;
  border-radius: 50%;
  height: 16px;
  width: 16px;
}

.landing-ai-footer {
  border: 0;
  color: #4a6554;
  margin: 16px auto 0;
  max-width: min(1120px, 100%);
  padding: 0;
  text-align: center;
}

.landing-page-closing {
  color: #111111;
  font-family: var(--font-sans);
  font-size: clamp(32px, 5.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.45;
  margin: clamp(12px, 2.5vh, 28px) auto 0;
  padding: 8px 12px 0;
  text-align: center;
}

.landing-page-closing-accent {
  color: #2e9b5a;
}

.landing-break-mobile {
  display: none;
}

.landing-page-phone-caption-mobile {
  display: none;
}

.landing-page-tagline {
  color: #7ed957;
  font-family: var(--font-sans);
  font-size: clamp(28px, 4.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.4;
  margin: clamp(28px, 5vh, 48px) auto 8px;
  padding: 8px 12px 0;
  text-align: center;
}

.landing-page-tagline-accent {
  color: #2e9b5a;
  font-weight: 900;
}

.landing-student-row {
  align-items: start;
  display: grid;
  gap: clamp(16px, 2.2vw, 22px);
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  justify-content: center;
  margin: clamp(16px, 3vh, 28px) auto 12px;
  max-width: min(1120px, 100%);
  width: 100%;
}

.landing-student-home {
  margin: 0;
  max-width: 300px;
  pointer-events: none;
  width: 100%;
}

.landing-student-aside {
  display: grid;
  gap: 10px;
  min-width: 0;
  pointer-events: none;
  width: 100%;
}

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

.landing-student-copy {
  align-items: center;
  background: #e8f6ee;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(31, 92, 56, 0.08);
  box-sizing: border-box;
  color: #111111;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}

.landing-student-copy:has(.landing-student-copy-sticker) {
  grid-template-columns: minmax(0, 1fr) 88px;
  padding: 10px 10px 10px 16px;
}

.landing-student-copy-sticker {
  display: block;
  height: auto;
  justify-self: end;
  width: 88px;
}

.landing-feature-cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-feature-card.landing-roster-card {
  border-radius: 20px;
  gap: 8px;
  padding: 12px;
}

.landing-feature-card .landing-roster-head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.landing-feature-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.landing-feature-tools {
  display: grid;
  gap: 6px;
}

.landing-feature-search {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d7e0e8;
  border-radius: 10px;
  color: #8a9a90;
  display: flex;
  font-size: 11px;
  font-weight: 600;
  justify-content: space-between;
  min-height: 32px;
  padding: 4px 6px 4px 10px;
}

.landing-feature-selects,
.landing-feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.landing-feature-selects span {
  background: #ffffff;
  border: 1px solid #d7e0e8;
  border-radius: 8px;
  color: #3d5c4a;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 8px;
}

.landing-feature-tabs span {
  background: #ffffff;
  border: 1px solid #b7d8c2;
  border-radius: 999px;
  color: #1f5c38;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 9px;
}

.landing-feature-tabs .is-active {
  background: #1f5c38;
  border-color: #1f5c38;
  color: #ffffff;
}

.landing-feature-card .landing-roster-table {
  zoom: 0.72;
}

.landing-feature-card .landing-roster-body {
  overflow-x: auto;
}

.landing-feature-card--schedule,
.landing-feature-card--schedule .landing-roster-body {
  overflow: hidden;
}

.landing-feature-card--schedule .landing-roster-body::-webkit-scrollbar {
  display: none;
}

.landing-feature-pill {
  background: #ffffff;
  border: 1px solid #b7d8c2;
  border-radius: 999px;
  color: #1f5c38;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 3px 7px;
  white-space: nowrap;
}

.landing-feature-pill--mint {
  background: #e8f5e9;
  border-color: #cfe6d4;
}

.landing-feature-pill--muted {
  background: #f3f5f4;
  border-color: #d8e0dc;
  color: #5f7468;
}

.landing-feature-pill--late {
  background: #f3b46a;
  border-color: #f3b46a;
  color: #ffffff;
}

.landing-student-copy .landing-student-copy-title {
  color: #2e9b5a;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
  margin: 0 0 8px;
}

.landing-student-copy p:not(.landing-student-copy-title) {
  color: #111111;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
  margin: 0;
}

.landing-student-screen {
  aspect-ratio: 390 / 844;
  background: #ebf9f2;
  border: 0;
  border-radius: 16px;
  box-sizing: border-box;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  height: auto;
  outline: 0;
  overflow: hidden;
  padding: 6.8% 4.8% 4.6%;
  position: relative;
  width: 100%;
}

.landing-student-head {
  align-items: center;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) 40cqw;
  margin-bottom: 4.2cqw;
  min-height: 40cqw;
  position: relative;
}

.landing-student-head-copy {
  position: relative;
  z-index: 1;
}

.landing-student-head-copy p {
  color: #111111;
  font-family: var(--font-sans);
  font-size: 7.4cqw;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.26;
  margin: 0;
}

.landing-student-sparkle {
  color: #3aa85a;
  display: block;
  font-size: 3.4cqw;
  line-height: 1;
  margin-top: 2cqw;
}

.landing-student-sticker {
  display: block;
  height: auto;
  justify-self: end;
  margin-right: -1.6cqw;
  margin-top: -1cqw;
  width: 40cqw;
  z-index: 2;
}

.landing-student-menu {
  display: grid;
  flex: 0 0 auto;
  gap: 3.8cqw;
  position: relative;
  z-index: 1;
}

.landing-student-item {
  align-items: center;
  background: #ffffff;
  border-radius: 6.4cqw;
  box-shadow: 0 4px 12px rgba(70, 140, 90, 0.1);
  display: grid;
  gap: 3cqw;
  grid-template-columns: 13cqw minmax(0, 1fr) 7cqw;
  min-height: 25.2cqw;
  padding: 3.2cqw 3.6cqw;
}

.landing-student-icon {
  align-items: center;
  background: #e4f4ea;
  border-radius: 2.8cqw;
  display: flex;
  height: 13cqw;
  justify-content: center;
  width: 13cqw;
}

.landing-student-icon svg {
  display: block;
  height: 8.2cqw;
  width: 8.2cqw;
}

.landing-student-item-copy {
  display: grid;
  gap: 0.7cqw;
  min-width: 0;
}

.landing-student-item-copy strong {
  color: #111111;
  font-size: 5cqw;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.landing-student-item-copy small {
  color: #6f7d75;
  font-size: 3.3cqw;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.landing-student-go {
  align-items: center;
  background: #d8f0e0;
  border-radius: 50%;
  color: #1f8f4a;
  display: flex;
  font-size: 4.6cqw;
  font-weight: 700;
  height: 7cqw;
  justify-content: center;
  line-height: 1;
  width: 7cqw;
}

.landing-student-welcome {
  color: #3f8a4e;
  flex: 0 0 auto;
  font-size: 4.2cqw;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 4.4cqw 0 0;
  position: relative;
  text-align: center;
  z-index: 1;
}

.landing-student-waves {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.landing-student-wave {
  aspect-ratio: 1;
  background: #dff5e8;
  border-radius: 50%;
  height: auto;
  position: absolute;
}

.landing-student-wave--left {
  bottom: -7.1%;
  left: -25.4%;
  width: 61.6%;
}

.landing-student-wave--right {
  background: #e3f7eb;
  bottom: -5.2%;
  right: -21.2%;
  width: 53.6%;
}

.landing-student-nav {
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(70, 140, 90, 0.1);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
  min-height: 11.2cqw;
  padding: 1.1cqw 1.4cqw;
  position: relative;
  z-index: 2;
}

.landing-student-nav span {
  color: #6d7a72;
  font-size: 3.6cqw;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}

.landing-student-nav .is-active {
  background: #d8f3e2;
  border-radius: 999px;
  color: #1f5c38;
  padding: 1.8cqw 0;
}

.landing-page-report {
  box-sizing: border-box;
  display: grid;
  gap: 18px;
  justify-items: center;
  margin: clamp(4px, 1.5vh, 16px) auto 0;
  max-width: min(920px, 100%);
  padding: 4px 0 8px;
  width: 100%;
}

.landing-page-report-lead {
  color: #111111;
  font-family: var(--font-sans);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.45;
  margin: 0;
}

.landing-page-report-accent {
  color: #2e9b5a;
}

.landing-report-form {
  display: grid;
  width: 100%;
}

.landing-page-report .report-section-card {
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 92, 56, 0.06);
  pointer-events: none;
}

.landing-page-report .report-period-preset {
  cursor: default;
}

.landing-page-report .field select,
.landing-page-report .landing-report-date {
  appearance: none;
  background-color: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-sizing: border-box;
  color: #1a3d2e;
  cursor: default;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
}

.landing-page-report .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231f5c38' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  padding: 10px 32px 10px 11px;
}

.landing-page-report .field select:disabled {
  color: #1a3d2e;
  opacity: 1;
}

.landing-page-report .landing-report-date {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Crect x='1.5' y='2.5' width='13' height='12' rx='2' fill='none' stroke='%231f5c38' stroke-width='1.4'/%3E%3Cpath fill='none' stroke='%231f5c38' stroke-width='1.4' d='M1.5 6h13M5 1.4v2.4M11 1.4v2.4'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  padding: 10px 36px 10px 11px;
}

.landing-page-report .report-actions,
.landing-page-report .button {
  cursor: default;
  pointer-events: none;
}

.landing-page-report-lead,
.landing-report-stage {
  max-width: 760px;
  width: 100%;
}

.landing-report-stage {
  position: relative;
}

.landing-report-generate {
  position: relative;
  transition: filter 0.12s ease, transform 0.12s ease;
}

.landing-report-generate.is-pressed {
  filter: brightness(0.88);
  transform: translateY(1px) scale(0.98);
}

.landing-report-cursor {
  --mx: 48%;
  --my: 58%;
  filter: drop-shadow(0 6px 10px rgba(17, 17, 17, 0.22));
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translate(var(--mx), var(--my));
  transition:
    opacity 0.22s ease,
    transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 6;
}

.landing-report-cursor.is-ready {
  opacity: 1;
}

.landing-report-cursor.is-clicking {
  transform: translate(var(--mx), var(--my)) scale(0.84);
  transition-duration: 0.12s;
}

.landing-report-cursor.is-done {
  opacity: 0;
}

.landing-report-result {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease;
}

.landing-report-result.is-visible {
  grid-template-rows: 1fr;
  opacity: 1;
}

.landing-report-result-inner {
  min-height: 0;
  overflow: hidden;
}

.landing-report-result.is-visible .landing-report-result-inner {
  overflow: visible;
}

.landing-report-result.is-visible.is-collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
}

.landing-report-result.is-visible.is-collapsed .landing-report-result-inner {
  overflow: hidden;
}

.landing-report-toggle-wrap {
  display: none;
  justify-content: center;
  padding: 2px 0 16px;
  width: 100%;
}

.landing-report-toggle-wrap.is-ready {
  display: flex;
}

.landing-page-report .landing-report-toggle {
  background: #ffffff;
  border: 1.5px solid #1f5c38;
  border-radius: 999px;
  box-sizing: border-box;
  color: #1f5c38;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  height: 42px;
  letter-spacing: 0;
  line-height: 1;
  min-height: 42px;
  min-width: 120px;
  padding: 0;
  pointer-events: auto;
  position: relative;
}

.landing-report-toggle-label {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  line-height: 1;
  position: absolute;
  text-align: center;
  width: 100%;
}

.landing-page-report .landing-report-toggle:hover,
.landing-page-report .landing-report-toggle:focus-visible {
  background: #f0faf2;
}

.landing-page-report .report-document {
  border-radius: 18px;
  overflow: hidden;
  pointer-events: none;
}

.landing-page-report .report-comment-print {
  display: grid;
}

@media (prefers-reduced-motion: reduce) {
  .landing-report-cursor {
    display: none;
  }

  .landing-report-result,
  .landing-report-generate {
    transition: none;
  }

  .landing-parent-generate.is-blinking {
    animation: none;
  }
}

.landing-page-phone-row {
  align-items: start;
  display: grid;
  gap: clamp(18px, 3vw, 32px);
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.92fr);
  margin: 0 auto;
  max-width: min(1180px, 100%);
  width: 100%;
}

.landing-page-phone-col {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  order: 2;
}

.landing-page-phone-lead,
.landing-page-phone-caption {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.45;
  margin: 0;
}

.landing-page-phone-lead {
  color: #111111;
  font-size: clamp(18px, 2.1vw, 24px);
}

.landing-page-phone-caption {
  align-items: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  font-size: clamp(15px, 1.7vw, 18px);
  left: -10%;
  max-width: none;
  pointer-events: none;
  position: absolute;
  text-align: center;
  top: 91%;
  width: 120%;
  z-index: 3;
}

.landing-page-phone-caption-svg {
  display: block;
  margin-bottom: -58px;
  overflow: visible;
  transform: translateY(8px);
  width: 100%;
}

.landing-page-phone-caption-svg text {
  fill: #ffffff;
  filter: none;
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  stroke: none;
  text-shadow: none;
}

.landing-page-phone-caption-svg .landing-page-phone-accent {
  fill: #2e9b5a;
  stroke: none;
}

.landing-page-phone-caption-rest {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
  margin: 0;
  position: relative;
  transform: translateY(-2px);
  z-index: 1;
}

.landing-page-phone-accent {
  color: #2e9b5a;
}

.landing-page-phone-wrap {
  --landing-phone-screen-left: 35.73%;
  --landing-phone-screen-top: 19.62%;
  --landing-phone-screen-width: 29.90%;
  --landing-phone-screen-height: 38.04%;
  justify-self: center;
  margin-bottom: clamp(36px, 8vw, 56px);
  overflow: visible;
  position: relative;
  width: min(520px, 100%);
}

.landing-page-phone-cards {
  display: grid;
  gap: 16px;
  min-width: 0;
  order: 1;
}

.landing-peep-tools {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.landing-peep-search {
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #d7e0e8;
  border-radius: 12px;
  display: flex;
  min-width: 0;
  overflow: hidden;
}

.landing-peep-search-field {
  color: #8a9a91;
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
  padding: 8px 10px;
  white-space: nowrap;
}

.landing-peep-search-btn {
  background: #f3f7f4;
  border-left: 1.5px solid #d7e0e8;
  color: #1f5c38;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
}

.landing-peep-select {
  background: #ffffff;
  border: 1.5px solid #d7e0e8;
  border-radius: 12px;
  color: #1a3d2e;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
}

.landing-peep-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.landing-peep-pill {
  background: #ffffff;
  border: 1.5px solid #d7e0e8;
  border-radius: 999px;
  color: #1a3d2e;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
}

.landing-peep-pill.is-active {
  background: #1f5c38;
  border-color: #1f5c38;
  color: #ffffff;
}

.landing-page-phone {
  display: block;
  filter: drop-shadow(0 22px 36px rgba(31, 45, 61, 0.18));
  height: auto;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
  position: relative;
  width: 100%;
  z-index: 2;
}

.landing-page-phone-screen {
  background: #e8f1eb;
  border-radius: 22.7% / 17.8%;
  container-type: inline-size;
  height: var(--landing-phone-screen-height);
  isolation: isolate;
  left: var(--landing-phone-screen-left);
  overflow: hidden;
  pointer-events: auto;
  position: absolute;
  top: var(--landing-phone-screen-top);
  width: var(--landing-phone-screen-width);
  z-index: 1;
}

.landing-phone-app {
  background: #e8f1eb;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  height: 100%;
  min-height: 0;
  width: 100%;
}

.landing-phone-app-head {
  background: #f4faf6;
  display: grid;
  flex: 0 0 auto;
  gap: 1.4cqw;
  padding: 2cqw 2.1cqw 0;
}

.landing-phone-app-nav {
  align-items: center;
  display: grid;
  gap: 1.4cqw;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.landing-phone-app-back {
  align-items: center;
  background: #ffffff;
  border: 1.2px solid #2e9b5a;
  border-radius: 1.6cqw;
  color: #2e9b5a;
  display: inline-flex;
  font-size: 3cqw;
  font-weight: 800;
  justify-content: center;
  letter-spacing: -0.03em;
  line-height: 1;
  min-height: 6.2cqw;
  padding: 1cqw 2cqw;
  white-space: nowrap;
}

.landing-phone-app-title {
  color: #111111;
  font-size: 4.1cqw;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-phone-app-timer {
  color: #2f4a3a;
  font-size: 3.2cqw;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.landing-phone-app-meta {
  color: #5f7468;
  display: flex;
  font-size: 3cqw;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: -0.02em;
}

.landing-phone-app-progress {
  background: #d7e8de;
  border-radius: 999px;
  height: 1.5cqw;
  overflow: hidden;
}

.landing-phone-app-progress-fill {
  background: #2e9b5a;
  display: block;
  height: 100%;
  width: 6%;
}

.landing-phone-app-scroll {
  -ms-overflow-style: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.5cqw 2cqw 1.6cqw;
  scrollbar-width: none;
}

.landing-phone-app-scroll::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

.landing-phone-app-card {
  background: #ffffff;
  border-radius: 3.6cqw;
  box-shadow: 0 1.2cqw 3cqw rgba(31, 45, 61, 0.06);
  color: #1a3d2e;
  display: grid;
  gap: 2cqw;
  padding: 3.4cqw 3.2cqw 3.8cqw;
}

.landing-phone-app-chapter {
  font-size: 5.1cqw;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0;
}

.landing-phone-app-section {
  font-size: 4cqw;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.6cqw 0 0;
}

.landing-phone-app-bullets {
  color: #2f4a3a;
  display: grid;
  font-size: 3.3cqw;
  font-weight: 600;
  gap: 0.8cqw;
  letter-spacing: -0.02em;
  line-height: 1.45;
  margin: 0;
  padding-left: 4.2cqw;
}

.landing-phone-app-formula,
.landing-phone-app-formulas {
  background: #eef2f6;
  border-radius: 2cqw;
  font-size: 3.6cqw;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
  margin: 0;
  padding: 2cqw 2.2cqw;
  text-align: center;
}

.landing-phone-app-formulas {
  background: #fff1f1;
  display: grid;
  gap: 1.2cqw;
  text-align: left;
}

.landing-phone-app-formulas p {
  margin: 0;
}

.landing-phone-app-table {
  border-collapse: collapse;
  font-size: 3.2cqw;
  width: 100%;
}

.landing-phone-app-table th,
.landing-phone-app-table td {
  border: 1px solid #d7e0e8;
  padding: 1.4cqw 1.6cqw;
  text-align: left;
  vertical-align: middle;
}

.landing-phone-app-table th {
  background: #f3f6f8;
  color: #3d5c4a;
  font-weight: 800;
}

.landing-phone-app-example {
  font-size: 3.6cqw;
  font-weight: 800;
  margin: 1cqw 0 0;
}

.landing-phone-app-problem {
  color: #2f4a3a;
  font-size: 3.3cqw;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
  margin: 0;
}

.landing-phone-app-rule {
  border: 0;
  border-top: 1px dashed #d7e0e8;
  margin: 1.2cqw 0;
}

.landing-phone-blank {
  background: #ffffff;
  border: 0.11em solid #111111;
  border-radius: 0.06em;
  box-sizing: border-box;
  display: inline-block;
  height: 1.12em;
  margin: 0 0.08em;
  vertical-align: -0.18em;
  width: 1.12em;
}

.landing-phone-app-bar {
  background: #f4faf6;
  display: grid;
  flex: 0 0 auto;
  gap: 1.6cqw;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 1.5cqw 2cqw 2.2cqw;
}

.landing-phone-app-btn {
  align-items: center;
  border-radius: 2.2cqw;
  display: inline-flex;
  font-size: 3.6cqw;
  font-weight: 800;
  justify-content: center;
  letter-spacing: -0.02em;
  min-height: 8.4cqw;
}

.landing-phone-app-btn.is-disabled {
  background: #cfd8d3;
  color: #ffffff;
}

.landing-phone-app-btn.is-ghost {
  background: #ffffff;
  border: 1.4px solid #2e9b5a;
  color: #2e9b5a;
}

.landing-phone-app-btn.is-next {
  background: #2e9b5a;
  color: #ffffff;
}

.landing-page-showcase {
  align-items: center;
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  justify-content: center;
  margin: 0 auto;
  max-width: min(1120px, 100%);
  width: 100%;
}

.landing-page-promo {
  background: #ffffff;
  border: none;
  border-radius: 22px;
  box-shadow: none;
  color: #000000;
  flex: 1 1 320px;
  max-width: min(440px, 48vw);
  min-width: min(300px, 100%);
  padding: clamp(18px, 2.8vw, 26px) clamp(24px, 3.5vw, 36px);
}

.landing-page-promo-title {
  color: #000000;
  font-family: var(--font-sans);
  font-size: clamp(17px, 2.35vw, 22px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.45;
  margin: 0 0 12px;
}

.landing-page-promo-title strong {
  font-weight: 900;
}

.landing-page-promo-accent {
  color: #2e9b5a;
}

.landing-page-promo-features {
  color: #000000;
  display: grid;
  font-family: var(--font-sans);
  font-size: clamp(15px, 2.05vw, 18px);
  font-weight: 700;
  gap: 6px;
  letter-spacing: -0.02em;
  line-height: 1.4;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.landing-page-promo-summary {
  color: #000000;
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.95vw, 17px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
  margin: 0;
}

.landing-page-roster {
  align-items: center;
  display: grid;
  gap: clamp(16px, 3vw, 32px);
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  margin-inline: auto;
  margin-top: clamp(36px, 6vh, 64px);
  max-width: min(1180px, 100%);
  overflow: visible;
  padding-bottom: 4px;
  width: 100%;
}

.landing-page-roster-cards {
  display: grid;
  gap: 16px;
  min-width: 0;
  order: 2;
}

.landing-page-roster-aside {
  align-items: center;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-self: center;
  max-width: 100%;
  order: 1;
  position: relative;
  width: 100%;
}

.landing-page-roster-dino {
  display: block;
  filter: drop-shadow(0 14px 22px rgba(31, 45, 61, 0.16));
  height: auto;
  margin: 0 auto -42px;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
  position: relative;
  width: min(380px, 100%);
  z-index: 2;
}

.landing-page-roster-copy {
  background: #2f9b58;
  border-radius: 28px;
  box-sizing: border-box;
  color: #ffffff;
  display: grid;
  gap: 8px;
  padding: 40px 22px 28px;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 1;
}

.landing-page-roster-copy-title,
.landing-page-roster-copy-line,
.landing-page-roster-copy-desc {
  color: #ffffff;
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  margin: 0;
}

.landing-page-roster-copy-title {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.35;
}

.landing-page-roster-copy-title strong {
  font-weight: 900;
}

.landing-page-roster-copy-line,
.landing-page-roster-copy-desc {
  font-size: clamp(14px, 1.7vw, 16px);
  font-weight: 700;
  line-height: 1.45;
}

.landing-page-roster::-webkit-scrollbar {
  display: none;
}

.landing-roster-card {
  background: #ffffff;
  border: 1.5px solid #d7e0e8;
  border-radius: 32px;
  box-shadow: none;
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  padding: 14px 14px 12px;
}

.landing-roster-head {
  align-items: flex-start;
  display: grid;
  gap: 8px 10px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
}

.landing-roster-icon {
  align-items: center;
  background: #e8f5e9;
  border-radius: 10px;
  color: #2e7d4e;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.landing-roster-icon svg {
  height: 16px;
  width: 16px;
}

.landing-roster-title {
  color: #1a3d2e;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 2px;
}

.landing-roster-desc {
  color: #5f7468;
  font-size: 11px;
  line-height: 1.35;
  margin: 0;
}

.landing-roster-cta {
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #d7e0e8;
  border-radius: 999px;
  color: #1a3d2e;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 3px;
  line-height: 1;
  min-height: 30px;
  padding: 5px 10px;
  white-space: nowrap;
}

.landing-roster-body {
  overflow: hidden;
}

.landing-roster-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 0;
  table-layout: auto;
  width: 100%;
  zoom: 0.78;
}

.landing-roster-card--wide .landing-roster-table,
.landing-roster-card--class .landing-roster-table,
.landing-roster-card .landing-roster-table {
  min-width: 0;
}

.landing-roster-table th,
.landing-roster-table td {
  font-size: 11px;
  line-height: 1.25;
  padding: 6px 5px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.landing-roster-table th {
  background: #f0faf2;
  color: #3d5c4a;
  font-weight: 800;
  white-space: nowrap;
}

.landing-roster-table th:first-child {
  border-radius: 14px 0 0 0;
}

.landing-roster-table th:last-child {
  border-radius: 0 14px 0 0;
}

.landing-roster-table td {
  border-bottom: 1px solid #e8f2ed;
  color: #2f4a3a;
  font-weight: 600;
}

.landing-roster-table tbody tr:last-child td {
  border-bottom: 0;
}

.landing-roster-name {
  color: #1a3d2e;
  font-weight: 800;
  white-space: nowrap;
}

.landing-roster-count {
  align-items: center;
  background: #e8f5e9;
  border-radius: 999px;
  color: #2e7d4e;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  min-width: 20px;
  padding: 2px 6px;
}

.landing-roster-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
}

.landing-roster-btn {
  align-items: center;
  background: #ffffff;
  border: 1px solid #5cb87a;
  border-radius: 999px;
  color: #1f5c38;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  min-height: 24px;
  padding: 3px 7px;
  white-space: nowrap;
}

.landing-roster-btn--danger {
  border-color: #e8b4b4;
  color: #a43d3d;
}

.landing-roster-btn--primary {
  background: #1f5c38;
  border-color: #1f5c38;
  color: #ffffff;
}

.landing-roster-memo {
  background: #f4fbf6;
  border: 1px solid #d8ebe0;
  border-radius: 8px;
  color: #1a3d2e;
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  max-width: none;
  padding: 3px 6px;
  white-space: nowrap;
}

.landing-roster-invite {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.landing-roster-invite-chips {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
}

.landing-roster-code {
  background: #f3f6f4;
  border-radius: 6px;
  color: #1a3d2e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 3px 5px;
}

.landing-roster-status {
  background: #e8f8df;
  border-radius: 999px;
  color: #2f7136;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
}

.landing-roster-hint {
  display: none;
}

.landing-roster-fee,
.landing-roster-write,
.landing-roster-date {
  background: #ffffff;
  border: 1px solid #d8ebe0;
  border-radius: 8px;
  color: #1a3d2e;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  white-space: nowrap;
}

.landing-roster-date {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.landing-roster-check-wrap {
  display: inline-flex;
  gap: 4px;
  max-width: none;
}

.landing-roster-check {
  align-items: center;
  color: #2f4a3a;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  gap: 4px;
}

.landing-roster-check input {
  accent-color: #3f8f45;
  height: 12px;
  width: 12px;
}

.landing-roster-paid {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 8px;
  white-space: nowrap;
}

.landing-roster-paid.is-paid {
  background: #e8f8df;
  color: #2f7136;
}

.landing-roster-paid.is-unpaid {
  background: #ffe9e9;
  color: #a61b1b;
}

.landing-page-computer {
  --landing-screen-left: 28.5%;
  --landing-screen-top: 11.9%;
  --landing-screen-width: 53.3%;
  --landing-screen-height: 42.4%;
  flex: 0 1 auto;
  margin: 0;
  max-width: min(580px, 64vw);
  position: relative;
  width: min(580px, 64vw);
}

.landing-page-computer-frame {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
  pointer-events: none;
  position: relative;
  width: 100%;
  z-index: 2;
}

.landing-page-computer-screen {
  background: #eef3f8;
  border-radius: 13% 13% 15% 15% / 17% 17% 19% 19%;
  box-shadow:
    inset 0 0 14px rgba(28, 58, 42, 0.05),
    inset 0 1px 6px rgba(28, 58, 42, 0.03);
  container-type: inline-size;
  height: var(--landing-screen-height);
  isolation: isolate;
  left: var(--landing-screen-left);
  overflow: hidden;
  perspective: 1100px;
  pointer-events: auto;
  position: absolute;
  top: var(--landing-screen-top);
  transform: perspective(1100px) rotateX(1.5deg);
  transform-origin: 50% 47%;
  width: var(--landing-screen-width);
  z-index: 1;
}

.landing-page-computer-screen::after {
  border-radius: inherit;
  background: radial-gradient(
    ellipse 97% 94% at 50% 48%,
    transparent 70%,
    rgba(20, 45, 32, 0.025) 88%,
    rgba(20, 45, 32, 0.055) 100%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.landing-mock-scroll {
  border-radius: inherit;
  height: 100%;
  -ms-overflow-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
  scrollbar-width: none;
  width: 100%;
  z-index: 1;
}

.landing-mock-scroll::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

.landing-mock-dashboard {
  background: #eef3f8;
  box-sizing: border-box;
  display: grid;
  font-family: var(--font-sans);
  gap: 2.2cqw;
  padding: 1.8cqw 1.6cqw 2.4cqw;
  width: 100%;
}

.landing-mock-topbar {
  align-items: center;
  border-bottom: 1px solid #d8e0ea;
  display: flex;
  justify-content: space-between;
  padding-bottom: 1.4cqw;
}

.landing-mock-page-title {
  color: #1f5c38;
  font-size: 5.6cqw;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.landing-mock-account {
  background: #dff3e8;
  border: 1px solid #b8dcc8;
  border-radius: 999px;
  color: #1f5c38;
  font-size: 3.8cqw;
  font-weight: 800;
  line-height: 1;
  padding: 1.2cqw 3.2cqw;
  white-space: nowrap;
}

.landing-mock-hero {
  background: linear-gradient(135deg, #dff3e4 0%, #e8f7ec 48%, #f0faf2 100%);
  border: 1px solid #b8dcc0;
  border-radius: 2.8cqw;
  display: grid;
  gap: 0.6cqw;
  padding: 2cqw 2.4cqw;
}

.landing-mock-hero--banner {
  align-items: center;
  display: flex;
  gap: 2cqw;
  justify-content: space-between;
}

.landing-mock-hero-copy {
  display: grid;
  gap: 0.6cqw;
  min-width: 0;
}

.landing-mock-hero-mascot {
  flex-shrink: 0;
  height: auto;
  object-fit: contain;
  width: 14cqw;
}

.landing-mock-hero-eyebrow {
  color: #4d6b5b;
  font-size: 3.4cqw;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.landing-mock-hero-title {
  color: #1f5c38;
  font-size: 5.4cqw;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.landing-mock-hero-desc {
  color: #3d5c4a;
  font-size: 3.6cqw;
  line-height: 1.25;
  margin: 0;
}

.landing-mock-section {
  display: grid;
  gap: 1.2cqw;
}

.landing-mock-section-desc {
  color: #5f7468;
  font-size: 3.2cqw;
  line-height: 1.35;
  margin: 0;
}

.landing-mock-section-title {
  color: #1f5c38;
  font-size: 4.4cqw;
  font-weight: 800;
  margin: 0;
}

.landing-mock-action-grid {
  display: grid;
  gap: 1.2cqw;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-mock-action-card {
  background: #fff;
  border: 1px solid #d7e7dc;
  border-radius: 2.4cqw;
  box-shadow: 0 2px 6px rgba(46, 95, 62, 0.04);
  display: grid;
  gap: 0.5cqw;
  padding: 1.6cqw;
}

.landing-mock-action-card--attention {
  border-color: #b8dcc0;
}

.landing-mock-action-card--clear {
  background: #f8fcf9;
}

.landing-mock-action-title {
  color: #1f5c38;
  font-size: 3.6cqw;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.landing-mock-action-metric {
  align-items: baseline;
  display: flex;
  gap: 0.5cqw;
  margin: 0;
}

.landing-mock-action-metric strong {
  color: #1f5c38;
  font-size: 6.4cqw;
  font-weight: 900;
  line-height: 1;
}

.landing-mock-action-card--clear .landing-mock-action-metric strong {
  color: #5f7468;
  font-size: 5.6cqw;
}

.landing-mock-action-metric span {
  color: #5f7468;
  font-size: 3.2cqw;
  font-weight: 700;
}

.landing-mock-action-desc {
  color: #5f7468;
  font-size: 3cqw;
  line-height: 1.25;
  margin: 0;
}

.landing-mock-action-cta {
  background: #fff;
  border: 1px solid #c8e0cc;
  border-radius: 999px;
  color: #1f5c38;
  display: inline-block;
  font-size: 2.8cqw;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0.4cqw;
  padding: 1cqw 2.4cqw;
}

.landing-mock-calendar {
  background: #fff;
  border: 1px solid #d7e7dc;
  border-radius: 2.8cqw;
  display: grid;
  gap: 1.2cqw;
  padding: 1.8cqw;
}

.landing-mock-cal-head {
  align-items: flex-start;
  display: flex;
  gap: 1.2cqw;
  justify-content: space-between;
}

.landing-mock-cal-title {
  color: #1a3d2e;
  font-size: 3.8cqw;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.landing-mock-cal-desc {
  color: #5f7468;
  font-size: 2.8cqw;
  line-height: 1.3;
  margin: 0.4cqw 0 0;
}

.landing-mock-cal-month {
  color: #1a3d2e;
  font-size: 3.4cqw;
  font-weight: 800;
  margin: 0;
  white-space: nowrap;
}

.landing-mock-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8cqw 1.4cqw;
}

.landing-mock-cal-legend-item {
  align-items: center;
  color: #4a6356;
  display: inline-flex;
  font-size: 2.6cqw;
  font-weight: 700;
  gap: 0.6cqw;
}

.landing-mock-cal-legend-item::before {
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 1.6cqw;
  width: 1.6cqw;
}

.landing-mock-cal-legend-item--lesson::before {
  background: #5cb87a;
}

.landing-mock-cal-legend-item--due::before {
  background: #e8a04a;
}

.landing-mock-cal-legend-item--submit::before {
  background: #6eb8e8;
}

.landing-mock-cal-weekdays,
.landing-mock-cal-grid {
  display: grid;
  gap: 0.6cqw;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.landing-mock-cal-weekdays span {
  color: #5f7468;
  font-size: 2.6cqw;
  font-weight: 700;
  text-align: center;
}

.landing-mock-cal-day {
  align-items: center;
  aspect-ratio: 1;
  color: #3d5c4a;
  display: flex;
  flex-direction: column;
  font-size: 2.8cqw;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  position: relative;
}

.landing-mock-cal-day--blank {
  visibility: hidden;
}

.landing-mock-cal-day--today {
  background: #dff3e8;
  border-radius: 50%;
  color: #1f5c38;
}

.landing-mock-cal-day--selected {
  box-shadow: 0 0 0 1px #5cb87a;
}

.landing-mock-cal-day--dot::after {
  background: #5cb87a;
  border-radius: 50%;
  bottom: 0.4cqw;
  content: "";
  height: 1.2cqw;
  position: absolute;
  width: 1.2cqw;
}

.landing-mock-cal-detail {
  background: #f4fbf6;
  border: 1px solid #d7e7dc;
  border-radius: 1.8cqw;
  color: #4d6b5b;
  font-size: 2.8cqw;
  line-height: 1.35;
  margin: 0;
  padding: 1.2cqw 1.4cqw;
  text-align: center;
}

.landing-mock-activity {
  align-items: center;
  background: #fff;
  border: 1px solid #d7e7dc;
  border-radius: 2.8cqw;
  display: flex;
  gap: 1.2cqw;
  justify-content: center;
  min-height: 14cqw;
  padding: 1.6cqw;
}

.landing-mock-activity-mascot {
  flex-shrink: 0;
  height: auto;
  object-fit: contain;
  width: 10cqw;
}

.landing-mock-activity-empty {
  background: #fff;
  border: 1px solid #c8e8a8;
  border-radius: 2cqw;
  color: #3d5c4a;
  font-size: 3cqw;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  padding: 1.2cqw 1.6cqw;
}

.landing-mock-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1cqw;
}

.landing-mock-quick-link {
  background: #fff;
  border: 1px solid #c8e0cc;
  border-radius: 999px;
  color: #1f5c38;
  font-size: 3cqw;
  font-weight: 800;
  line-height: 1.2;
  padding: 1.2cqw 2.6cqw;
}

@media (max-width: 860px) {
  .landing-student-row {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .landing-student-aside,
  .landing-student-copy,
  .landing-student-copy-row {
    max-width: 520px;
    width: 100%;
  }

  .landing-student-copy-row,
  .landing-feature-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-ai-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-page-roster {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-page-roster-aside {
    max-width: 320px;
  }

  .landing-page-roster-dino {
    width: min(280px, 68vw);
  }

  .landing-page-phone-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-page-report .report-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .landing-page-showcase {
    align-items: center;
    flex-direction: column;
    gap: 16px;
  }

  .landing-page-computer {
    max-width: min(520px, 94vw);
    width: min(520px, 94vw);
  }

  .landing-page-promo {
    align-self: center;
    flex: 0 0 auto;
    height: auto;
    max-width: min(520px, 94vw);
    min-height: 0;
    min-width: 0;
    padding: 14px 16px;
    width: fit-content;
  }

  .landing-page-phone-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-page-phone-wrap {
    margin-bottom: 72px;
    width: min(520px, 100%);
  }

  .landing-page-promo-title {
    margin: 0 0 8px;
  }

  .landing-page-promo-features {
    gap: 4px;
    margin: 0 0 8px;
  }

  .landing-page-phone-caption-svg,
  .landing-page-phone-caption-rest {
    display: none;
  }

  .landing-page-phone-caption {
    bottom: auto;
    left: 0;
    margin-top: 10px;
    top: 100%;
    width: 100%;
  }

  .landing-page-phone-caption-mobile {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 800;
    gap: 8px;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin: 0;
    text-align: center;
  }

  .landing-break-mobile {
    display: block;
  }

  .landing-space-desktop {
    display: none;
  }

  .landing-page-report-lead {
    font-size: clamp(22px, 6.4vw, 28px);
    text-align: center;
  }

  .landing-page-closing {
    font-size: clamp(26px, 7.2vw, 34px);
  }

  .landing-page-report .report-document {
    font-size: 13px;
    gap: 14px;
    padding: 16px 12px;
  }

  .landing-page-report .report-doc-header {
    gap: 10px;
    padding-bottom: 10px;
  }

  .landing-page-report .report-doc-title {
    font-size: 18px;
    margin: 0 0 4px;
  }

  .landing-page-report .report-doc-eyebrow,
  .landing-page-report .report-doc-meta {
    font-size: 12px;
  }

  .landing-page-report .report-doc-logo {
    height: 36px;
    max-width: 120px;
  }

  .landing-page-report .report-info-row {
    gap: 8px;
    grid-template-columns: 1fr 1fr;
  }

  .landing-page-report .report-info-row span,
  .landing-page-report .report-info-row strong {
    font-size: 12px;
  }

  .landing-page-report .report-summary-cards {
    gap: 8px;
  }

  .landing-page-report .report-summary-card {
    gap: 4px;
    padding: 10px 8px;
  }

  .landing-page-report .report-summary-title {
    font-size: 11px;
    word-break: keep-all;
  }

  .landing-page-report .report-summary-value {
    font-size: 22px;
  }

  .landing-page-report .report-summary-caption {
    font-size: 10px;
    line-height: 1.35;
    word-break: keep-all;
  }

  .landing-page-report .report-lesson-overview {
    gap: 4px;
    padding: 10px 12px;
  }

  .landing-page-report .report-lesson-line {
    font-size: 13px;
    line-height: 1.45;
  }

  .landing-page-report .report-section {
    gap: 8px;
  }

  .landing-page-report .report-section h3 {
    font-size: 14px;
  }

  .landing-page-report .report-chart {
    padding: 8px 6px 4px;
  }

  .landing-page-report .report-table,
  .landing-page-report .report-table th,
  .landing-page-report .report-table td {
    font-size: 11px;
  }

  .landing-page-report .report-comment-print p,
  .landing-page-report .report-section p {
    font-size: 13px;
    line-height: 1.5;
  }

  .landing-roster-card,
  .landing-feature-card,
  .landing-roster-body,
  .landing-feature-card .landing-roster-body,
  .landing-page-report .report-table-wrap,
  .landing-mock-scroll {
    max-width: 100%;
    min-width: 0;
    overflow: clip;
    overflow-x: clip;
  }

  .landing-roster-body,
  .landing-feature-card .landing-roster-body,
  .landing-page-report .report-table-wrap,
  .landing-mock-scroll {
    -ms-overflow-style: none;
    overflow: clip;
    overflow-x: clip;
    overscroll-behavior-x: none;
    scrollbar-width: none;
    touch-action: pan-y;
  }

  .landing-roster-body::-webkit-scrollbar,
  .landing-feature-card .landing-roster-body::-webkit-scrollbar,
  .landing-page-report .report-table-wrap::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 420px) {
  .landing-page-sticker {
    max-width: 100%;
    padding: 0 4px;
  }

  .landing-page-sticker-image {
    height: clamp(96px, 28vw, 120px);
    margin-right: -6px;
  }

  .landing-page-sticker-bubble {
    max-width: min(220px, 52vw);
    padding: 10px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-page-sticker,
  .landing-page-showcase-band,
  .landing-page-reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .landing-page-computer-screen {
    transform: none;
  }

  .landing-page-typing-cursor {
    animation: landing-page-cursor 1s step-end infinite !important;
    animation-duration: 1s !important;
    animation-iteration-count: infinite !important;
    opacity: 1;
  }
}

.landing-page-start-btn.button.dark {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-height: 56px;
  min-width: 220px;
  padding: 14px 28px;
}

.landing-page-start-btn.button.dark:hover,
.landing-page-start-btn.button.dark:focus-visible {
  color: var(--color-text-on-primary);
}

.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.login-mascot {
  display: block;
  height: 132px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.login-logo {
  display: block;
  height: 56px;
  object-fit: contain;
  width: auto;
}

.info-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.info-logo-frame {
  background: #101820;
  border: 1px solid var(--text);
  border-radius: 6px;
  display: inline-block;
  line-height: 0;
  overflow: hidden;
  width: fit-content;
}

.info-logo {
  display: block;
  height: 64px;
  object-fit: contain;
  width: auto;
}

.login-notice {
  background: #f8fbf9;
  border: 1px solid #cfe1db;
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 14px;
}

.login-notice p {
  color: var(--muted);
  margin: 0;
}

.login-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.login-links a {
  color: var(--primary-dark);
  font-size: 13px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

.login-legal-notice {
  color: var(--tf-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 14px 0 0;
}

.teacher-copy-panel {
  background: #f7fbf8;
  border: 1px solid #c8e0cc;
  border-radius: 16px;
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 16px 18px;
}

.teacher-copy-panel p {
  color: #2f4a3a;
  line-height: 1.55;
  margin: 0;
}

.teacher-copy-panel strong {
  color: #1a3d2e;
}

.teacher-copy-note {
  color: var(--tf-muted);
  font-size: 13px;
}

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

.teacher-copy-check {
  align-items: flex-start;
  color: #2f4a3a;
  display: flex;
  gap: 10px;
  line-height: 1.5;
}

.teacher-copy-check input {
  flex-shrink: 0;
  margin-top: 3px;
}

.teacher-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-copy-panel--invite {
  margin-bottom: 18px;
}

.teacher-copy-panel--notifications {
  margin-bottom: 20px;
}

.notifications-hero-copy .teacher-copy-panel--notifications {
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  gap: 8px;
  margin: 10px 0 0;
  padding: 12px 14px;
}

.notifications-hero-copy .teacher-copy-panel--notifications p {
  font-size: 12px;
  line-height: 1.5;
}

.notifications-hero-copy .teacher-copy-panel--notifications .teacher-copy-note {
  font-size: 11px;
  line-height: 1.45;
}

.teacher-copy-panel--report-ai {
  margin-bottom: 14px;
}

@keyframes teacher-copy-panel-shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-5px);
  }

  40% {
    transform: translateX(5px);
  }

  60% {
    transform: translateX(-3px);
  }

  80% {
    transform: translateX(3px);
  }
}

.teacher-copy-panel--shake {
  animation: teacher-copy-panel-shake 0.45s ease;
}

.signup-panel {
  border-top: 1px solid #d8e1dd;
  margin-top: 16px;
  padding-top: 16px;
}

#teacher-signup-recaptcha:not(:empty) {
  min-height: 78px;
}

.info-page-shell {
  display: grid;
  gap: 20px;
  margin: 0 auto;
  max-width: 920px;
  width: 100%;
}

.info-page-header {
  position: relative;
  padding: 8px 4px 4px;
}

.info-page-header-blob {
  background: radial-gradient(circle at 70% 20%, rgba(46, 155, 90, 0.14) 0%, rgba(46, 155, 90, 0) 68%);
  border-radius: var(--tf-btn-radius);
  height: 120px;
  pointer-events: none;
  position: absolute;
  right: -12px;
  top: -20px;
  width: 180px;
}

.info-page-eyebrow {
  color: var(--tf-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  text-transform: none;
}

.info-page-label {
  color: var(--tf-green-dark);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 8px;
}

.info-page-title {
  color: var(--tf-text);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
}

.info-page-desc {
  color: var(--tf-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

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

.info-hero-card,
.info-section-card,
.policy-document-card,
.info-alert {
  background: #ffffff;
  border: 1px solid var(--tf-border);
  border-radius: 24px;
  box-shadow: var(--tf-shadow);
  padding: 22px 24px;
}

.info-hero-card {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.info-hero-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.info-hero-lead {
  color: var(--tf-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
  margin: 0;
}

.view a.info-hero-landing-link,
.view a.info-hero-landing-link:hover,
.view a.info-hero-landing-link:visited {
  color: var(--tf-green-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: fit-content;
}

.view a.info-hero-landing-link:hover {
  color: var(--tf-green);
}

.info-hero-note,
.info-section-card p,
.info-feature-card p,
.info-alert p,
.policy-section p,
.policy-meta p {
  color: var(--tf-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.info-hero-mascot {
  flex-shrink: 0;
  height: auto;
  max-height: 132px;
  object-fit: contain;
  width: 108px;
}

.info-section-title,
.policy-section h3 {
  color: var(--tf-text);
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 14px;
}

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

.info-feature-card {
  background: var(--tf-bg-soft);
  border: 1px solid #dceee0;
  border-radius: 18px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.info-feature-icon {
  align-items: center;
  background: var(--tf-green-soft);
  border-radius: 12px;
  color: var(--tf-green-dark);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.info-feature-icon svg {
  height: 22px;
  width: 22px;
}

.info-feature-card h4 {
  color: var(--tf-text);
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.info-alert {
  display: grid;
  gap: 8px;
}

.info-alert strong {
  color: var(--tf-text);
  font-size: 14px;
  font-weight: 800;
}

.info-alert--mint {
  background: #f4fbf6;
  border-color: #cfe8d6;
}

.info-alert--warning {
  background: #fff8eb;
  border-color: #f0d9a6;
}

.info-alert--warning strong {
  color: #946600;
}

.policy-document-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.policy-card-head {
  background: linear-gradient(180deg, #f4fbf6 0%, #f8fcf9 100%);
  border-bottom: 1px solid #e0efe4;
  padding: 18px 24px;
}

.policy-card-head h3 {
  color: #1a3d2e;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.policy-card-body {
  display: grid;
  gap: 16px;
  padding: 20px 24px 24px;
}

.policy-document-card .policy-section {
  border-top: 1px solid #e8f2ed;
  padding: 22px 24px;
}

.policy-document-card .policy-section:first-child {
  border-top: 0;
}

.policy-section ul,
.policy-list {
  color: var(--tf-text);
  line-height: 1.75;
  margin: 0;
  padding-left: 20px;
}

.policy-section li + li,
.policy-list li + li {
  margin-top: 8px;
}

.policy-purpose-section {
  display: grid;
  gap: 16px;
}

.policy-purpose-lead {
  background: #f7fbf8;
  border: 1px solid #e4f0e7;
  border-radius: 14px;
  color: #2f4a3c;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
  margin: 0;
  padding: 14px 16px;
}

.policy-purpose-block {
  background: #fafcfa;
  border: 1px solid #e8f2ed;
  border-radius: 16px;
  padding: 16px 18px;
}

.policy-purpose-block + .policy-purpose-block,
.policy-purpose-lead + .policy-purpose-block,
.policy-table-wrap + .policy-purpose-block {
  margin-top: 0;
}

.policy-purpose-heading {
  color: #1a3d2e;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 12px;
}

.policy-purpose-list {
  color: #3f5649;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  list-style: disc;
  margin: 0;
  padding-left: 1.4em;
}

.policy-purpose-list ::marker {
  color: #5cb87a;
}

.policy-purpose-list li + li {
  margin-top: 8px;
}

.policy-purpose-list--flat {
  list-style: none;
  padding-left: 0;
}

.policy-purpose-list--flat li {
  background: #fafcfa;
  border: 1px solid #e8f2ed;
  border-radius: 14px;
  padding: 14px 16px;
}

.policy-purpose-list--flat li + li {
  margin-top: 10px;
}

.policy-purpose-note {
  background: #fffaf0;
  border-left: 3px solid #e3c56d;
  border-radius: 0 12px 12px 0;
  color: #4a5c52;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  margin: 0;
  padding: 12px 14px;
}

.policy-purpose-block .policy-purpose-note {
  background: #fffaf0;
  border: 1px solid #f0e4c8;
  border-left: 3px solid #e3c56d;
  border-radius: 12px;
  margin-top: 12px;
  padding: 12px 14px;
}

.policy-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.policy-detail-list div {
  display: grid;
  gap: 6px;
}

.policy-detail-list dt {
  color: #1f5c38;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.policy-detail-list dd {
  color: #3f5649;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  margin: 0;
}

.policy-detail-list--flat {
  gap: 0;
}

.policy-detail-list--flat div {
  border-top: 1px solid #e8f2ed;
  padding: 14px 0;
}

.policy-detail-list--flat div:first-child {
  border-top: 0;
  padding-top: 0;
}

.policy-agency-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.policy-agency-list li {
  background: #fafcfa;
  border: 1px solid #e8f2ed;
  border-radius: 14px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.policy-agency-name {
  color: #1a3d2e;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.policy-agency-contact {
  color: #4a6356;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.policy-table-wrap {
  background: #fafcfa;
  border: 1px solid #e8f2ed;
  border-radius: 16px;
  overflow-x: auto;
  padding: 4px;
  -webkit-overflow-scrolling: touch;
}

.policy-domestic-notice {
  background: #f4faf6;
  border: 1px solid #d8ebe0;
  border-radius: 16px;
  margin-bottom: 16px;
  padding: 16px 18px;
}

.policy-domestic-notice p {
  color: #2f4a3c;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  margin: 0;
}

.policy-domestic-notice code {
  background: #edf7f0;
  border-radius: 6px;
  color: #1a3d2e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 2px 6px;
}

.policy-table-wrap--cross-border {
  margin-top: 12px;
}

.policy-data-table--cross-border {
  min-width: 980px;
  table-layout: auto;
}

.policy-data-table--cross-border th[scope="row"],
.policy-data-table--cross-border thead th {
  min-width: 148px;
  white-space: normal;
}

.policy-data-table--cross-border td {
  min-width: 108px;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: keep-all;
}

.policy-data-table--cross-border td:nth-child(3),
.policy-data-table--cross-border th[scope="row"] {
  min-width: 220px;
}

.policy-data-table--cross-border td:nth-child(6) {
  min-width: 180px;
}

.policy-retention-table,
.policy-data-table {
  background: #ffffff;
  border-collapse: collapse;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
  min-width: 640px;
  overflow: hidden;
  width: 100%;
}

.policy-retention-table th,
.policy-retention-table td,
.policy-data-table th,
.policy-data-table td {
  border: 1px solid #e4f0e7;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.policy-retention-table thead th,
.policy-data-table thead th {
  background: #edf7f0;
  color: #1a3d2e;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.policy-retention-table tbody tr:nth-child(even) td,
.policy-data-table tbody tr:nth-child(even) td {
  background: #fbfdfb;
}

.policy-retention-table tbody th,
.policy-data-table tbody th {
  background: #f4faf6;
  color: #1a3d2e;
  font-weight: 800;
  min-width: 132px;
}

.policy-retention-table td,
.policy-data-table td {
  color: #3f5649;
}

.info-page-shell--privacy {
  max-width: 960px;
}

.info-page-shell--terms {
  max-width: 960px;
}

.info-page-shell--privacy .info-page-body {
  gap: 20px;
}

.info-page-shell--terms .info-page-body {
  gap: 20px;
}

.info-page-shell--terms .info-page-desc,
.info-page-shell--privacy .info-page-desc {
  color: #4a6356;
  font-size: 15px;
  line-height: 1.8;
}

.info-page-shell--terms .policy-document-card,
.info-page-shell--privacy .policy-document-card {
  border-color: #d4e8da;
  box-shadow: 0 10px 28px rgba(46, 95, 62, 0.05);
}

.policy-terms-paragraph {
  color: #3f5649;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.85;
  margin: 0;
}

.policy-purpose-heading--sub {
  border-top: 1px solid #e8f2ed;
  margin-top: 4px;
  padding-top: 16px;
}

.policy-card-body > .policy-purpose-heading--sub:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.policy-terms-def-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.policy-terms-def-list div {
  background: #fafcfa;
  border: 1px solid #e8f2ed;
  border-radius: 14px;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
}

.policy-terms-def-list dt {
  color: #1f5c38;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.policy-terms-def-list dd {
  color: #3f5649;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  margin: 0;
}

.info-page-shell--privacy .policy-meta--intro {
  background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
}

.info-page-shell--privacy .policy-meta--intro .contact-dl {
  gap: 0;
}

.info-page-shell--privacy .policy-meta--intro .contact-dl div {
  border-top: 1px solid #e8f2ed;
  gap: 6px;
  padding: 14px 0;
}

.info-page-shell--privacy .policy-meta--intro .contact-dl div:first-child {
  border-top: 0;
  padding-top: 0;
}

.info-page-shell--privacy .policy-meta--intro dt {
  color: #1f5c38;
  font-size: 13px;
  font-weight: 800;
}

.info-page-shell--privacy .policy-meta--intro dd {
  color: #2f4a3c;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.info-page-shell--privacy .policy-document-card {
  border-color: #d4e8da;
  box-shadow: 0 10px 28px rgba(46, 95, 62, 0.05);
}

@media (min-width: 769px) {
  .info-page-shell--privacy .policy-meta--intro .contact-dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .info-page-shell--privacy .policy-meta--intro .contact-dl div:nth-child(2) {
    border-top: 0;
    padding-top: 0;
  }
}

.policy-warning {
  border-radius: 0 0 24px 24px;
  border-top: 1px solid #f0d9a6;
  box-shadow: none;
}

.policy-scroll-nav {
  bottom: 24px;
  display: grid;
  gap: 8px;
  position: fixed;
  right: 20px;
  z-index: 40;
}

.policy-scroll-btn {
  background: #ffffff;
  border: 1.5px solid #c8e0cc;
  border-radius: var(--tf-btn-radius);
  box-shadow: 0 8px 24px rgba(46, 95, 62, 0.12);
  color: #1f5c38;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  min-height: 40px;
  padding: 8px 16px;
  white-space: nowrap;
}

.policy-scroll-btn:hover {
  background: #f4fbf6;
  border-color: #9ecc5a;
}

.policy-scroll-btn:focus-visible {
  outline: 3px solid var(--tf-focus-inner);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--tf-focus-outer);
}

.info-page-bottom {
  height: 1px;
  width: 100%;
}

@media (max-width: 768px) {
  .policy-scroll-nav {
    bottom: 16px;
    right: 12px;
  }

  .policy-scroll-btn {
    font-size: 12px;
    min-height: 38px;
    padding: 8px 14px;
  }
}

.policy-meta-label {
  color: var(--tf-green-dark);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 6px;
}

.contact-dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.contact-dl div {
  display: grid;
  gap: 4px;
}

.contact-dl dt {
  color: var(--tf-muted);
  font-size: 12px;
  font-weight: 800;
}

.contact-dl dd {
  color: var(--tf-text);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
}

.contact-help-card {
  align-items: center;
  display: flex;
  gap: 14px;
}

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

.inquiry-form-cta {
  align-items: center;
  align-self: start;
  background: #f4fbf6;
  border: 1.5px solid #b8dcc0;
  border-radius: var(--tf-btn-radius);
  color: #1f5c38;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.inquiry-form-cta::after {
  content: "↗";
  font-size: 13px;
  line-height: 1;
}

.inquiry-form-cta:hover {
  background: #ffffff;
  border-color: #5cb87a;
  color: #174a2c;
}

.contact-help-mascot {
  flex-shrink: 0;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  width: 64px;
}

.contact-email {
  color: var(--tf-muted);
  margin: 0;
}

.contact-email a,
.tf-link {
  color: var(--tf-green-dark);
  font-weight: 700;
  text-decoration: none;
}

.contact-email a:hover,
.tf-link:hover {
  text-decoration: underline;
}

.info-footer {
  border-top: 1px solid var(--tf-border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  padding-top: 18px;
}

.info-footer-link {
  background: #ffffff;
  border: 1.5px solid #cfe8d6;
  border-radius: var(--tf-btn-radius);
  color: var(--tf-green-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  text-decoration: none;
}

.info-footer-link:hover {
  background: #f4fbf6;
  border-color: #5cb87a;
}

.info-footer-link.active {
  background: var(--tf-green-soft);
  border-color: var(--tf-green);
  color: var(--tf-green-dark);
}

.accuracy-good {
  font-weight: 700;
}

.accuracy-bad {
  font-weight: 700;
}

.accuracy-value {
  font-weight: 800;
}

.accuracy-good .accuracy-value {
  color: #15803d;
}

.accuracy-bad .accuracy-value {
  color: var(--danger);
}

.hidden {
  display: none !important;
}

.image-load-shell {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  max-width: 100%;
  min-height: 64px;
  min-width: 64px;
  position: relative;
}

.image-loading-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  text-align: center;
}

.image-load-shell.is-pending .image-loading-label {
  display: block;
}

.image-load-shell.is-loaded .image-loading-label,
.image-load-shell.is-error .image-loading-label {
  display: none;
}

.image-load-shell.is-pending img {
  height: 0;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.image-load-shell.is-loaded img {
  display: block;
  height: auto;
  opacity: 1;
  position: static;
  width: auto;
}

.image-load-shell.is-error img {
  display: none;
}

.image-load-shell.is-error::after {
  color: #8a4b4b;
  content: "이미지를 불러올 수 없습니다.";
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  text-align: center;
}

.peeping-image-frame .image-load-shell {
  min-height: 320px;
  min-width: 100%;
  width: 100%;
}

.peeping-image-frame .image-load-shell.is-loaded {
  min-height: 0;
  width: auto;
}

body.app-loading-active {
  overflow: hidden;
}

body.app-loading-active .app-shell {
  visibility: hidden;
}

.app-loading {
  align-items: center;
  background: linear-gradient(165deg, #e8f8ea 0%, #dff3e4 38%, #eef8f1 72%, #f7fcf8 100%);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 3000;
}

.app-loading.is-visible {
  animation: app-loading-fade-in 0.22s ease-out;
}

.app-loading-screen {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 32px 20px;
  position: relative;
  width: 100%;
}

.app-loading-sky {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
}

.app-loading-blob {
  border-radius: var(--tf-btn-radius);
  filter: blur(0.5px);
  opacity: 0.55;
  position: absolute;
}

.app-loading-blob--1 {
  animation: app-loading-float 7s ease-in-out infinite;
  background: radial-gradient(circle at 30% 30%, #b8e8bc, #8fd498 70%);
  height: 180px;
  left: -40px;
  top: 12%;
  width: 180px;
}

.app-loading-blob--2 {
  animation: app-loading-float 8.5s ease-in-out infinite reverse;
  animation-delay: -2s;
  background: radial-gradient(circle at 30% 30%, #d4f2d8, #a8ddb0 70%);
  height: 140px;
  right: -20px;
  top: 18%;
  width: 140px;
}

.app-loading-blob--3 {
  animation: app-loading-float 9s ease-in-out infinite;
  animation-delay: -4s;
  background: radial-gradient(circle at 30% 30%, #c8efd0, #9ed9a8 70%);
  bottom: 10%;
  height: 220px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
}

.app-loading-sparkle {
  animation: app-loading-sparkle 2.4s ease-in-out infinite;
  color: #5cb878;
  font-size: 18px;
  opacity: 0.75;
  position: absolute;
}

.app-loading-sparkle--1 {
  animation-delay: 0s;
  left: 18%;
  top: 22%;
}

.app-loading-sparkle--2 {
  animation-delay: 0.8s;
  font-size: 14px;
  right: 20%;
  top: 30%;
}

.app-loading-sparkle--3 {
  animation-delay: 1.4s;
  bottom: 24%;
  font-size: 16px;
  right: 28%;
}

.app-loading-card {
  align-items: center;
  animation: app-loading-card-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(143, 204, 143, 0.45);
  border-radius: 28px;
  box-shadow:
    0 18px 40px rgba(40, 111, 95, 0.12),
    0 4px 14px rgba(40, 111, 95, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  padding: 34px 28px 30px;
  position: relative;
  text-align: center;
  width: min(88vw, 320px);
  z-index: 1;
}

.app-loading-mascot-wrap {
  margin-bottom: 6px;
  position: relative;
}

.app-loading-mascot {
  animation: app-loading-bounce 1.1s ease-in-out infinite;
  display: block;
  height: 88px;
  object-fit: contain;
  position: relative;
  width: 88px;
  z-index: 1;
}

.app-loading-shadow {
  animation: app-loading-shadow 1.1s ease-in-out infinite;
  background: rgba(40, 111, 95, 0.18);
  border-radius: var(--tf-btn-radius);
  bottom: 2px;
  height: 12px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 52px;
  z-index: 0;
}

.app-loading-title {
  color: var(--primary-dark);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}

.app-loading-text {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.app-loading-dots {
  display: inline-flex;
  gap: 1px;
  margin-left: 2px;
  min-width: 1.2em;
}

.app-loading-dots span {
  animation: app-loading-dot 1.2s ease-in-out infinite;
  display: inline-block;
  font-weight: 900;
}

.app-loading-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.app-loading-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes app-loading-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes app-loading-card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes app-loading-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-14px);
  }
}

@keyframes app-loading-shadow {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) scaleX(1);
  }

  45% {
    opacity: 0.28;
    transform: translateX(-50%) scaleX(0.72);
  }
}

@keyframes app-loading-dot {
  0%,
  70%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes app-loading-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-16px) scale(1.04);
  }
}

@keyframes app-loading-sparkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.9) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.15) rotate(12deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-loading.is-visible,
  .app-loading-card,
  .app-loading-mascot,
  .app-loading-shadow,
  .app-loading-blob,
  .app-loading-sparkle,
  .app-loading-dots span {
    animation: none !important;
  }
}

.peeping-editor {
  display: grid;
  gap: 14px;
}

.peeping-editor-heading {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.peeping-editor-heading h2 {
  margin: 0;
}

.peeping-save-indicator {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.peeping-autosave-note {
  margin: 8px 0 0;
}

.peeping-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.peeping-page-tabs button,
.peeping-page-tab {
  background: #ffffff;
  border: 1.5px solid #5cb87a;
  border-radius: var(--tf-btn-radius);
  color: var(--tf-green-dark, #1f5c38);
  font-weight: 700;
}

.peeping-page-tabs button:hover,
.peeping-page-tab:hover {
  background: #f4fbf6;
  border-color: #3d9a5c;
  color: #174a2c;
}

.peeping-page-tabs button.active,
.peeping-page-tab.active {
  background: var(--tf-green-dark, #1f5c38);
  border-color: #2e7d4e;
  color: #ffffff;
}

.peeping-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.peeping-editor-preview {
  min-width: 0;
  overflow: auto;
  border: 1px solid var(--line);
  background: #f8fafc;
  padding: 12px;
}

.peeping-editor-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  min-width: 280px;
  min-height: 360px;
  background: #ffffff;
}

.peeping-editor-stage.image-ready {
  min-width: 0;
  min-height: 0;
}

.peeping-image-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  background: #ffffff;
  border: 1px solid var(--line);
}

.peeping-page-image {
  display: block;
  width: auto;
  max-width: min(100%, 980px);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.peeping-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  line-height: 1;
}

.peeping-blank-box {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid rgba(31, 87, 75, 0.95);
  background: rgba(40, 111, 95, 0.32);
  color: #ffffff;
  font-weight: 800;
  line-height: 1;
  padding: 0;
  min-height: 0;
  min-width: 0;
}

.peeping-blank-box:hover,
.peeping-blank-box.selected {
  background: rgba(40, 111, 95, 0.55);
  border-color: #0b2d26;
}

.peeping-blank-box.draft {
  background: rgba(39, 110, 176, 0.22);
  border-color: rgba(39, 110, 176, 0.95);
  pointer-events: none;
}

.peeping-editor-side {
  display: grid;
  gap: 16px;
}

.peeping-blank-form,
.peeping-blank-list {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 14px;
}

.peeping-blank-form {
  display: grid;
  gap: 16px;
}

.peeping-blank-form .field {
  margin: 0;
}

.peeping-blank-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.peeping-blank-actions button {
  width: 100%;
}

.compact-table th,
.compact-table td {
  padding: 8px 8px;
}

.compact-empty {
  margin: 8px 0 0;
}

#peeping-editor-status.error {
  color: var(--danger);
  border-color: rgba(164, 61, 61, 0.35);
}

@media (max-width: 980px) {
  .peeping-editor-grid {
    grid-template-columns: 1fr;
  }
}

.question-list {
  display: grid;
  gap: 8px;
}

.question-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 56px minmax(96px, 120px) minmax(90px, 160px) minmax(180px, 1fr);
}

.compact-textarea {
  border: 1px solid #cfd8e3;
  font: inherit;
  min-width: 180px;
  padding: 6px;
  resize: vertical;
  width: 100%;
}

.feedback-box {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

@media (max-width: 820px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell,
  .app-shell--guest {
    grid-template-columns: 1fr;
    max-width: 100%;
    min-width: 0;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .sidebar-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid #b8dcc0;
    border-radius: 12px;
    color: #1f5c38;
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    line-height: 1;
    min-width: 44px;
    padding: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .sidebar-toggle:hover,
  .sidebar-toggle:focus-visible {
    background: #f4fbf6;
    border-color: #5cb87a;
  }

  .sidebar-toggle:focus-visible {
    outline: 3px solid var(--tf-focus-inner);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--tf-focus-outer);
  }

  .sidebar-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 18px;
  }

  .sidebar-toggle-icon span {
    background: currentColor;
    border-radius: 1px;
    display: block;
    height: 2px;
    width: 100%;
  }

  .sidebar-backdrop {
    background: rgba(22, 50, 20, 0.48);
    display: block;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.22s ease;
    z-index: 190;
  }

  .sidebar-backdrop:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    bottom: 0;
    box-shadow: 8px 0 32px rgba(22, 50, 20, 0.18);
    left: 0;
    max-width: min(280px, 86vw);
    overflow-y: auto;
    padding: 18px 14px;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    width: min(280px, 86vw);
    z-index: 200;
  }

  .app-shell.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .app-shell--guest .sidebar {
    padding: 18px 14px;
  }

  .teacher-nav,
  .public-nav,
  .guest-auth-nav {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    height: 48px;
  }

  .main {
    min-width: 0;
    overflow-x: hidden;
    padding: 12px;
  }

  .main--mint .panel:not(.login-box) {
    padding: 16px 12px;
  }

  .view,
  .mint-page,
  .classes-page,
  .app-page,
  .notifications-page,
  .mint-workspace,
  .panel,
  .roster-card,
  .roster-card-body,
  .mint-section-card {
    max-width: 100%;
    min-width: 0;
  }

  .topbar {
    align-items: start;
    display: grid;
    gap: 8px 10px;
    grid-template-areas:
      "toggle account"
      "main main";
    grid-template-columns: auto 1fr;
    margin-bottom: 16px;
  }

  .sidebar-toggle {
    grid-area: toggle;
  }

  .topbar-main {
    grid-area: main;
    min-width: 0;
  }

  .topbar h1 {
    font-size: 19px;
    line-height: 1.25;
    word-break: keep-all;
  }

  .eyebrow {
    font-size: 11px;
    margin-bottom: 2px;
    white-space: nowrap;
  }

  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .onboarding-head {
    flex-direction: column;
  }

  .onboarding-step {
    align-items: flex-start;
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .onboarding-step-action,
  .onboarding-step-status {
    grid-column: 2;
    justify-self: start;
  }

  .dashboard-hero-card {
    display: grid;
    padding: 18px 16px;
  }

  .dashboard-hero-title,
  .mint-hero-title,
  .notifications-hero-title,
  .report-hero-title {
    font-size: 20px;
    line-height: 1.3;
    word-break: keep-all;
  }

  .dashboard-hero-desc,
  .mint-hero-desc,
  .notifications-hero-desc,
  .report-hero-desc {
    font-size: 13px;
    line-height: 1.5;
  }

  .dashboard-hero-stats .mint-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mint-stat-grid,
  .notifications-stat-grid,
  .report-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mint-stat-value,
  .notifications-stat-value,
  .report-stat-value {
    font-size: 18px;
  }

  .mint-stat-label,
  .notifications-stat-label,
  .report-stat-label {
    font-size: 11px;
    white-space: nowrap;
  }

  .mint-hero,
  .notifications-hero,
  .report-hero {
    padding: 14px 12px;
  }

  .dashboard-hero-mascot {
    justify-self: center;
  }

  .topbar--mint .account,
  .topbar--dashboard .account,
  .topbar--classes .account,
  .topbar--info .account,
  .account {
    align-self: start;
    background: transparent;
    border: 0;
    border-radius: 0;
    flex: 0 0 auto;
    font-size: 13px;
    gap: 8px;
    grid-area: account;
    justify-content: flex-end;
    justify-self: end;
    margin-left: auto;
    max-width: 100%;
    padding: 0;
    width: auto;
  }

  .topbar #account-name,
  .topbar--mint #account-name,
  .topbar--dashboard #account-name,
  .topbar--classes #account-name,
  .topbar--info #account-name {
    color: var(--tf-text);
    font-weight: 800;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar .dashboard-account-badge {
    display: none;
  }

  .topbar #logout-button,
  .topbar--mint #logout-button,
  .topbar--dashboard #logout-button,
  .topbar--classes #logout-button,
  .topbar--info #logout-button {
    background: #b8e8bc;
    border: 1.5px solid #8fcc8f;
    border-radius: 12px;
    box-shadow: none;
    color: #1f5c38;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    min-height: 40px;
    min-width: 40px;
    padding: 8px 12px;
  }

  .topbar #logout-button::after,
  .topbar--mint #logout-button::after,
  .topbar--dashboard #logout-button::after,
  .topbar--classes #logout-button::after {
    content: none;
  }

  .topbar #logout-button:hover,
  .topbar #logout-button:focus-visible,
  .topbar--mint #logout-button:hover,
  .topbar--mint #logout-button:focus-visible,
  .topbar--dashboard #logout-button:hover,
  .topbar--dashboard #logout-button:focus-visible,
  .topbar--classes #logout-button:hover,
  .topbar--classes #logout-button:focus-visible {
    background: #a8ddb0;
    border-color: #7bc48a;
  }

  .topbar #logout-button:focus-visible,
  .topbar--mint #logout-button:focus-visible,
  .topbar--dashboard #logout-button:focus-visible,
  .topbar--classes #logout-button:focus-visible {
    outline: 3px solid var(--tf-focus-inner);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--tf-focus-outer);
  }

  .account .button {
    min-height: 40px;
  }

  .classes-page .roster-card {
    padding: 14px 12px;
  }

  .classes-panel-tabs {
    background: #eef6f0;
    background: color-mix(in srgb, var(--tf-bg, #eef6f0) 88%, #ffffff);
    border: 1px solid #c8e0cc;
    border-radius: 14px;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 4px;
    position: sticky;
    top: 8px;
    z-index: 6;
  }

  .classes-panel-tab {
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: #3d5c4a;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    min-height: 40px;
    padding: 8px 6px;
  }

  .classes-panel-tab.is-active {
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(46, 95, 62, 0.08);
    color: #1f5c38;
  }

  .classes-workspace[data-active-panel="classes"] .roster-card--students,
  .classes-workspace[data-active-panel="classes"] .roster-card--tuition,
  .classes-workspace[data-active-panel="students"] .roster-card--classes,
  .classes-workspace[data-active-panel="students"] .roster-card--tuition,
  .classes-workspace[data-active-panel="tuition"] .roster-card--classes,
  .classes-workspace[data-active-panel="tuition"] .roster-card--students {
    display: none;
  }

  .classes-page .roster-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .classes-page .roster-card-head-text > div {
    min-width: 0;
  }

  .classes-page .roster-card-cta {
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    width: 100%;
  }

  .classes-page .roster-table-wrap.roster-table-wrap--stack,
  .roster-table-wrap--stack {
    max-width: 100%;
    overflow: visible;
    width: 100%;
  }

  .main--mint .roster-table-wrap--stack {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    padding: 0;
  }

  .classes-page .roster-table.roster-table--stack,
  .roster-table--stack,
  .table.roster-table--stack {
    border-collapse: collapse;
    display: block;
    min-width: 0 !important;
    width: 100% !important;
  }

  .main--mint .mint-table-wrap:has(.roster-table--stack),
  .main--mint .panel:has(.table.roster-table--stack),
  .main--mint .report-table-wrap:has(.roster-table--stack),
  .other-tests-table-wrap:has(.roster-table--stack) {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    padding: 0;
  }

  .main--mint .mint-table-wrap > .table.roster-table--stack,
  .main--mint .panel:has(.table.roster-table--stack) .table.roster-table--stack,
  .main--mint .report-table-wrap .table.roster-table--stack {
    min-width: 0 !important;
    width: 100% !important;
  }

  .roster-table--stack thead {
    display: none;
  }

  .roster-table--stack tbody {
    display: block;
    width: 100%;
  }

  .roster-table--stack tbody tr {
    background: #f7fbf8;
    border: 1px solid #dcefe1;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 10px;
    overflow: visible;
    padding: 12px;
    width: 100%;
  }

  .roster-table--stack tbody tr:last-child {
    margin-bottom: 0;
  }

  .roster-table--stack tbody td {
    align-items: flex-start;
    border: 0;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    line-height: 1.45;
    overflow-wrap: anywhere;
    padding: 8px 0;
    text-align: right;
    vertical-align: top;
    white-space: normal;
    width: 100%;
    word-break: keep-all;
  }

  .roster-table--stack.submission-table td,
  .roster-table--stack.submission-table th,
  .roster-table--stack .notification-job-cell,
  .roster-table--stack .notification-job-head {
    white-space: normal;
  }

  .roster-table--stack.notification-job-table,
  .roster-table--stack.notification-job-table th,
  .roster-table--stack.notification-job-table td {
    min-width: 0;
    width: auto;
  }

  .roster-table--stack .notification-job-cell--content,
  .roster-table--stack .notification-job-cell--error {
    max-width: none;
    min-width: 0;
  }

  .roster-table--stack.other-tests-table .other-tests-actions-cell,
  .roster-table--stack.other-tests-table th:last-child {
    background: transparent;
    box-shadow: none;
    min-width: 0;
    position: static;
  }

  .roster-table--stack tbody td[data-label="상태"] {
    order: -3;
  }

  .roster-table--stack tbody td.roster-table-name {
    order: -2;
  }

  .roster-table--stack tbody td[data-label="관리"],
  .roster-table--stack tbody td[data-label="파일"],
  .roster-table--stack tbody td[data-label="파일 수"],
  .roster-table--stack tbody td[data-label="피드백"],
  .roster-table--stack tbody td[data-label="상세"] {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    order: 20;
    text-align: left;
  }

  .roster-table--stack tbody td[data-label="관리"]::before,
  .roster-table--stack tbody td[data-label="파일"]::before,
  .roster-table--stack tbody td[data-label="파일 수"]::before,
  .roster-table--stack tbody td[data-label="피드백"]::before,
  .roster-table--stack tbody td[data-label="상세"]::before {
    flex: none;
    width: 100%;
  }

  .other-tests-table.roster-table--stack tbody td[data-label="시험 종류"] {
    order: -3;
  }

  .other-tests-table.roster-table--stack tbody td[data-label="시험 제목"] {
    order: -2;
  }

  .other-tests-table.roster-table--stack tbody td[data-label="상태"] {
    order: 0;
  }

  .notification-job-table.roster-table--stack tbody td[data-label="상태"] {
    order: -4;
  }

  .notification-job-table.roster-table--stack tbody td[data-label="예약/발송"],
  .notification-job-table.roster-table--stack tbody td[data-label="생성 시각"] {
    order: -3;
  }

  .notification-job-table.roster-table--stack tbody td[data-label="콘텐츠"] {
    order: -2;
  }

  .roster-table--stack tbody td[data-label="날짜"] {
    order: -2;
  }

  .roster-table--stack tbody td[data-label="출결"] {
    order: -1;
  }

  .roster-table--stack tbody td[data-label="대상"].roster-table-name {
    order: -3;
  }

  .roster-table--stack .table-row-actions,
  .roster-table--stack .other-tests-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .roster-table--stack .table-row-actions .inline-button,
  .roster-table--stack .other-tests-row-actions .inline-button,
  .roster-table--stack .table-row-actions a.inline-button {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    min-height: 40px;
    min-width: 0;
  }

  .roster-table--stack .submission-files,
  .roster-table--stack .feedback-box,
  .roster-table--stack .answer-details {
    text-align: left;
    width: 100%;
  }

  .mypage-account-table {
    min-width: 0 !important;
    width: 100% !important;
  }

  .mypage-account-table tbody,
  .mypage-account-table tr {
    display: block;
    width: 100%;
  }

  .mypage-account-table tr {
    border-bottom: 1px solid #e8f2ed;
    display: grid;
    gap: 8px;
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 10px 0;
  }

  .mypage-account-table tr:last-child {
    border-bottom: 0;
  }

  .mypage-account-table th,
  .mypage-account-table td {
    border: 0;
    display: block;
    padding: 0;
    text-align: left;
    white-space: normal;
    word-break: break-word;
  }

  .mypage-account-table th {
    color: var(--tf-muted);
    font-size: 12px;
    font-weight: 800;
  }

  .mypage-account-table-wrap {
    overflow: visible;
  }

  .roster-table--stack tbody td:first-child {
    padding-top: 0;
  }

  .roster-table--stack tbody td:last-child {
    padding-bottom: 0;
  }

  .classes-page .roster-table--stack tbody tr {
    border-bottom: 0;
  }

  .classes-page .roster-table--stack tbody td {
    border-bottom: 1px solid #e8f2ed;
    font-size: 13px;
    padding: 8px 0;
  }

  .classes-page .roster-table--stack tbody td:last-child {
    border-bottom: 0;
  }

  .roster-table--stack tbody td::before {
    color: var(--tf-muted);
    content: attr(data-label);
    flex: 0 0 78px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.45;
    text-align: left;
  }

  .roster-table--stack tbody td.roster-table-name {
    border-bottom: 1px solid #dcefe1;
    display: block;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 4px;
    padding: 0 0 10px;
    text-align: left;
  }

  .roster-table--stack tbody td.roster-table-name::before {
    content: none;
  }

  .roster-table--stack .roster-invite-cell {
    min-width: 0;
    text-align: left;
    width: 100%;
  }

  .roster-table--stack tbody td[data-label="앱 시작 코드"] {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }

  .roster-table--stack tbody td[data-label="앱 시작 코드"]::before {
    flex: none;
    width: 100%;
  }

  .roster-table--stack tbody td[data-label="관리"] {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }

  .roster-table--stack tbody td[data-label="관리"]::before {
    flex: none;
    width: 100%;
  }

  .roster-table--stack .roster-action-group,
  .roster-table--stack .roster-action-group--compact,
  .roster-table--stack .roster-action-group--stack {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .classes-page .roster-table--stack .roster-action-group,
  .classes-page .roster-table--stack .roster-action-group--compact,
  .classes-page .roster-table--stack .roster-action-group--stack {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .roster-table--stack .roster-btn,
  .roster-table--stack a.roster-btn {
    font-size: 12px;
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
    width: 100%;
  }

  .classes-page .roster-table--stack .roster-btn,
  .classes-page .roster-table--stack a.roster-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
    width: auto;
  }

  .classes-page .roster-invite-hint,
  .classes-page .tuition-payment-paid-hint {
    display: none;
  }

  .classes-page .class-memo-cell,
  .classes-page .student-list-panel .class-memo-cell,
  .classes-page .student-list-panel .roster-table tbody td.class-memo-cell,
  .classes-page .roster-table--stack tbody td.class-memo-cell,
  .classes-page .roster-table--stack tbody td[data-label="비고"] {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    max-width: none;
    min-width: 0;
    text-align: left;
    width: 100%;
  }

  .classes-page .roster-table--stack tbody td.class-memo-cell::before,
  .classes-page .roster-table--stack tbody td[data-label="비고"]::before {
    flex: none;
    width: 100%;
  }

  .classes-page .roster-table--stack .class-memo-preview,
  .classes-page .roster-table--stack .class-memo-write-btn {
    box-sizing: border-box;
    max-width: none;
    min-width: 0;
    white-space: normal;
    width: 100%;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .classes-page .roster-card-desc {
    font-size: 12px;
  }

  .classes-page .roster-card-icon {
    height: 36px;
    width: 36px;
  }

  .classes-page .roster-card-title {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .classes-page .tuition-payment-date-btn,
  .classes-page .tuition-fee-write-btn,
  .classes-page .tuition-fee-preview {
    min-width: 0;
    width: 100%;
  }

  .classes-page .list-filter-search-control {
    grid-template-columns: minmax(0, 1fr);
  }

  .classes-page .list-filter-search-button {
    min-height: 40px;
    width: 100%;
  }

  .roster-table--stack .roster-code-chip,
  .roster-table--stack .roster-status-chip {
    font-size: 11px;
  }

  .roster-table--stack .roster-muted-text {
    font-size: 11px;
    line-height: 1.4;
  }

  .roster-table-wrap:not(.roster-table-wrap--stack) {
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .roster-table:not(.roster-table--stack) {
    min-width: 480px;
    width: max-content;
  }

  .classes-page .roster-invite-cell {
    min-width: 0;
  }

  .dashboard-action-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .dashboard-grid--homework,
  .dashboard-grid--secondary {
    grid-template-columns: 1fr;
  }

  .dashboard-side-stack {
    min-height: 0;
  }

  .dashboard-card-count {
    font-size: 28px;
  }

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

  .info-page-shell {
    gap: 16px;
    padding: 0;
  }

  .info-page-title {
    font-size: 22px;
    line-height: 1.3;
    word-break: keep-all;
  }

  .info-page-desc {
    font-size: 14px;
    line-height: 1.55;
  }

  .info-hero-card,
  .contact-help-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .info-hero-card,
  .info-section-card,
  .policy-document-card .policy-section,
  .policy-card-head,
  .policy-card-body,
  .info-alert {
    border-radius: 20px;
    padding: 18px 16px;
  }

  .policy-card-head {
    padding: 16px;
  }

  .policy-card-body {
    gap: 14px;
    padding: 16px;
  }

  .policy-card-head h3 {
    font-size: 17px;
  }

  .policy-purpose-lead,
  .policy-purpose-block,
  .policy-agency-list li,
  .policy-purpose-list--flat li {
    border-radius: 14px;
  }

  .policy-retention-table,
  .policy-data-table {
    font-size: 12px;
    min-width: 560px;
  }

  .policy-data-table--cross-border {
    min-width: 880px;
  }

  .policy-domestic-notice {
    padding: 14px 16px;
  }

  .policy-domestic-notice p {
    font-size: 13px;
  }

  .info-hero-lead {
    font-size: 15px;
    line-height: 1.45;
  }

  .info-hero-mascot {
    max-height: 100px;
    width: 88px;
  }

  .info-footer {
    gap: 8px;
  }

  .info-footer-link {
    font-size: 12px;
    padding: 7px 12px;
  }

  .table th,
  .table td {
    font-size: 12px;
    padding: 8px 6px;
  }

  .main--mint .table th,
  .main--mint .table td {
    font-size: 12px;
    padding: 8px 6px;
  }

  .notification-job-table {
    min-width: 480px;
  }

  .notification-job-table th,
  .notification-job-table td {
    font-size: 11px;
    padding: 8px 6px;
  }

  .main--mint .report-table-wrap,
  .main--mint .roster-table-wrap:not(.roster-table-wrap--stack),
  .main--mint .mint-table-wrap {
    -webkit-overflow-scrolling: touch;
    margin: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    padding: 0 0 2px;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .main--mint .mint-table-wrap > .table,
  .main--mint .panel:has(.table) .table {
    min-width: 480px;
    width: max-content;
  }

  .mint-section-head p,
  .panel-header p {
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .site-footer {
    flex-wrap: wrap;
    font-size: 12px;
    gap: 6px 10px;
    justify-content: center;
    overflow-wrap: anywhere;
    word-break: keep-all;
  }

  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-header > .button,
  .panel-header > a.button,
  .panel-header > button.button,
  .panel-header > .panel-header-actions {
    justify-content: center;
    min-height: 44px;
    width: 100%;
  }

  .panel-header-actions > .button,
  .panel-header-actions > a.button,
  .panel-header-actions > button.button {
    width: 100%;
  }

  .schedules-page .panel-header p {
    font-size: 12px;
  }

  .schedules-page .panel-header-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    width: 100%;
  }

  .schedules-page .panel-header-actions > .button,
  .schedules-page .panel-header-actions > a.button {
    font-size: 13px;
    min-height: 40px;
    padding: 8px 10px;
    width: 100%;
  }

  .schedules-page .list-filter-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedules-page .list-filter-chip {
    width: 100%;
  }

  .schedules-page .roster-table--stack tbody td[data-label="제목"].roster-table-name {
    order: -4;
  }

  .schedules-page .roster-table--stack tbody td[data-label="날짜"] {
    order: -3;
  }

  .schedules-page .roster-table--stack tbody td[data-label="출결"] {
    order: 8;
  }

  .schedules-page .roster-table--stack tbody td.is-empty {
    display: none;
  }

  .main--mint .schedules-page .table td.schedule-attendance-cell,
  .schedules-page .roster-table--stack tbody td.schedule-attendance-cell,
  .schedules-page .roster-table--stack tbody td[data-label="출결"] {
    align-items: stretch;
    box-sizing: border-box;
    flex-direction: column;
    gap: 8px;
    max-width: none;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
    width: 100%;
  }

  .schedules-page .roster-table--stack tbody td.schedule-attendance-cell::before,
  .schedules-page .roster-table--stack tbody td[data-label="출결"]::before {
    flex: none;
    width: 100%;
  }

  .schedules-page .roster-table--stack .attendance-input-btn,
  .schedules-page .roster-table--stack .attendance-badge {
    box-sizing: border-box;
    flex: none;
    max-width: none;
    min-height: 40px;
    min-width: 0;
    padding: 8px 12px;
    white-space: nowrap;
    width: 100%;
  }

  .schedules-page .schedule-filter-summary {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .schedules-page .schedule-filter-summary-actions {
    width: 100%;
  }

  .schedules-page .schedule-filter-summary-actions .inline-button,
  .schedules-page .schedule-filter-summary-actions .list-filter-reset {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 40px;
  }

  .button {
    min-height: 44px;
  }

  .question-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

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

  .report-summary-cards {
    grid-template-columns: 1fr;
  }

  .report-info-row {
    grid-template-columns: 1fr 1fr;
  }

  .report-document {
    gap: 24px;
    padding: 20px 16px;
  }

  .report-section {
    gap: 14px;
  }

  .report-chart {
    margin-bottom: 8px;
    padding: 10px 8px 6px;
  }

  .report-chart-label {
    font-size: 9px;
  }
}

.report-layout,
.report-page {
  display: grid;
  gap: 18px;
  overflow: visible;
  position: relative;
}

.report-compose-panel {
  position: relative;
  z-index: 1;
}

.report-panel {
  padding-right: clamp(170px, 30vw, 280px);
  position: relative;
  z-index: 1;
}

.report-page .report-compose-panel,
.report-page .report-panel {
  padding-right: clamp(12px, 2vw, 20px);
}

.report-hero {
  align-items: stretch;
  background: linear-gradient(135deg, #dff3e4 0%, #e8f7ec 48%, #f0faf2 100%);
  border: 1px solid #b8dcc0;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(46, 95, 62, 0.08);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.9fr);
  padding: 24px 26px;
}

.report-hero-main {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  grid-column: 1;
  justify-content: space-between;
}

.report-stat-grid {
  align-self: start;
  display: grid;
  gap: 10px;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-hero-copy {
  display: grid;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
}

.report-hero-eyebrow {
  color: #3d7a52;
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}

.report-hero-title {
  color: #1f5c38;
  font-size: 24px;
  font-weight: 900;
  margin: 0;
}

.report-hero-desc {
  color: #3d5c4a;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  max-width: 560px;
}

.report-stat-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #cfe8d6;
  border-radius: 16px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.report-stat-label {
  color: var(--tf-muted);
  font-size: 12px;
  font-weight: 700;
}

.report-stat-value {
  color: #1f5c38;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.report-stat-card--subject .report-stat-value,
.report-stat-card--export .report-stat-value {
  font-size: 18px;
}

.report-workspace {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
}

.report-section-card {
  background: #f7fbf8;
  border: 1px solid #dceee0;
  border-radius: 18px;
  display: grid;
  gap: 14px;
  padding: 16px 18px;
}

.report-section-card + .report-section-card {
  margin-top: 14px;
}

.report-section-head {
  display: grid;
  gap: 4px;
}

.report-section-head h3 {
  color: #1f5c38;
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.report-section-head p {
  color: var(--tf-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.report-period-summary {
  color: #2e7d4e;
  font-weight: 700;
}

.report-period-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-period-preset {
  background: #ffffff;
  border: 1.5px solid #cfe8d6;
  border-radius: var(--tf-btn-radius);
  color: #1f5c38;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.report-period-preset:hover,
.report-period-preset.is-active {
  background: #f0faf2;
  border-color: #5cb87a;
  color: #174a2c;
}

.report-period-preset.is-active {
  box-shadow: 0 0 0 2px rgba(46, 155, 90, 0.12);
}

.report-actions {
  margin-top: 16px;
}

.report-alert {
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  margin: 12px 0 0;
  padding: 12px 14px;
}

.report-alert--error {
  background: #fff5f5;
  border: 1px solid #f0c7c7;
  color: #8f3232;
}

.report-guide-panel {
  position: sticky;
  top: 16px;
}

.report-guide-shell {
  background: #ffffff;
  border: 1px solid #dceee0;
  border-radius: 22px;
  box-shadow: var(--tf-shadow, 0 10px 28px rgba(31, 45, 61, 0.08));
  display: grid;
  gap: 12px;
  padding: 18px;
}

.report-guide-label {
  color: #3d7a52;
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}

.report-guide-card {
  background: linear-gradient(180deg, #f4fbf6 0%, #eef6f0 100%);
  border: 1px solid #dceee0;
  border-radius: 16px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.report-guide-title {
  color: #1f5c38;
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.report-guide-meta {
  color: var(--tf-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.report-guide-steps {
  color: #3d5c4a;
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  padding-left: 18px;
}

.report-guide-note {
  color: var(--tf-muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.report-empty-panel {
  padding: 8px 0 4px;
}

.report-empty-state {
  align-items: center;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 12px 0 8px;
  text-align: center;
}

.report-empty-mascot {
  height: auto;
  max-height: 96px;
  object-fit: contain;
  width: 80px;
}

.report-loading-panel {
  text-align: center;
}

.report-output {
  display: grid;
  gap: 16px;
}

@media (max-width: 1100px) {
  .report-workspace {
    grid-template-columns: 1fr;
  }

  .report-guide-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .report-hero-main {
    flex-wrap: wrap;
  }

  .promo-sticker--report {
    margin: 0;
    width: 100%;
  }

  .promo-sticker--report .promo-sticker-image {
    height: 88px;
  }

  .promo-sticker--report .promo-sticker-bubble {
    max-width: min(100%, 200px);
  }

  .report-hero {
    grid-template-columns: 1fr;
  }

  .report-hero-main,
  .report-stat-grid {
    grid-column: auto;
    grid-row: auto;
  }
}

.promo-sticker {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  pointer-events: none;
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 3;
}

.promo-sticker-image {
  filter: drop-shadow(0 10px 18px rgba(31, 45, 61, 0.16));
  flex-shrink: 0;
  height: clamp(128px, 17vw, 176px);
  margin-right: -6px;
  object-fit: contain;
  transform: rotate(-5deg);
  width: auto;
}

.promo-sticker-bubble {
  background: #ffffff;
  border: 2px solid #c8e8a8;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(111, 184, 111, 0.14);
  max-width: 220px;
  padding: 10px 12px;
  position: relative;
  width: fit-content;
}

.promo-sticker-bubble::before {
  border: 8px solid transparent;
  border-right-color: #c8e8a8;
  content: "";
  left: -15px;
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
}

.promo-sticker-bubble::after {
  border: 6px solid transparent;
  border-right-color: #ffffff;
  content: "";
  left: -10px;
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
}

.promo-sticker-bubble p {
  color: #4f6b3f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
}

.promo-sticker--report {
  align-self: flex-start;
  flex-shrink: 0;
  margin: -4px 0 0;
  max-width: none;
  position: static;
  width: auto;
}

.promo-sticker--report .promo-sticker-image {
  height: clamp(96px, 11vw, 128px);
  margin-left: 0;
  margin-right: 0;
  transform: rotate(-4deg);
}

.promo-sticker--report .promo-sticker-bubble {
  max-width: 188px;
}

.homework-list-panel {
  overflow: visible;
}

.homework-list-header {
  align-items: center;
}

.homework-list-heading {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
}

.promo-sticker--reverse {
  flex-direction: row-reverse;
}

.promo-sticker--reverse .promo-sticker-image {
  margin-left: -6px;
  margin-right: 0;
}

.promo-sticker--reverse .promo-sticker-bubble::before {
  border-left-color: #c8e8a8;
  border-right-color: transparent;
  left: auto;
  right: -15px;
}

.promo-sticker--reverse .promo-sticker-bubble::after {
  border-left-color: #ffffff;
  border-right-color: transparent;
  left: auto;
  right: -10px;
}

.promo-sticker--homework-list {
  flex-shrink: 0;
  margin: -8px 0 -8px 8px;
  max-width: none;
  position: static;
  width: auto;
}

.promo-sticker--homework-list .promo-sticker-image {
  height: clamp(96px, 12vw, 132px);
  margin-right: 0;
  transform: rotate(4deg);
}

.promo-sticker--homework-list .promo-sticker-bubble {
  max-width: 188px;
}

@media (max-width: 900px) {
  .homework-list-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .promo-sticker--homework-list {
    margin: 8px 0 0;
    width: 100%;
  }

  .promo-sticker--homework-list .promo-sticker-image {
    height: 88px;
  }

  .promo-sticker--homework-list .promo-sticker-bubble {
    max-width: min(100%, 200px);
  }
}

@media (max-width: 900px) {
  .promo-sticker-image {
    height: 108px;
  }

  .promo-sticker-bubble {
    max-width: 168px;
    padding: 8px 10px;
  }

  .promo-sticker-bubble p {
    font-size: 11px;
    line-height: 1.35;
  }
}

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

.report-form .field label {
  font-weight: 600;
}

.report-document {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--text);
  display: grid;
  gap: 20px;
  padding: 32px;
}

.report-document .report-doc-title,
.report-document .report-section h3,
.report-document .report-info-row strong,
.report-document .report-summary-value,
.report-document .report-table th,
.report-document .badge {
  font-weight: 600;
}

.report-doc-header {
  align-items: flex-start;
  border-bottom: 2px solid var(--text);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 16px;
}

.report-doc-eyebrow {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 4px;
}

.report-doc-title {
  font-size: 24px;
  margin: 0 0 6px;
}

.report-doc-meta {
  color: var(--muted);
  margin: 0;
}

.report-doc-logo {
  background: transparent;
  display: block;
  height: 52px;
  max-width: 180px;
  object-fit: contain;
  width: auto;
}

.report-info-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-info-row > div {
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.report-info-row span {
  color: var(--muted);
  font-size: 12px;
}

.report-info-row strong {
  font-size: 15px;
}

.report-summary-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-summary-card {
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding: 16px;
}

.report-summary-title {
  color: var(--muted);
  font-size: 13px;
}

.report-summary-value {
  font-size: 30px;
  line-height: 1;
}

.report-summary-caption {
  color: var(--muted);
  font-size: 12px;
}

.report-lesson-overview {
  background: #f8fffb;
  border: 1px solid #d8ebe0;
  border-radius: 16px;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
}

.report-lesson-line {
  color: var(--tf-text, #1a3d2e);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
  margin: 0;
}

.report-section {
  display: grid;
  gap: 12px;
  position: relative;
}

.report-section h3 {
  background: #ffffff;
  border-left: 4px solid var(--primary);
  font-size: 17px;
  margin: 0;
  padding-left: 10px;
  position: relative;
  z-index: 1;
}

.report-chart {
  border: 1px solid var(--line);
  margin-bottom: 4px;
  overflow: hidden;
  padding: 12px 12px 8px;
}

.report-chart svg {
  display: block;
  height: auto;
  max-height: 240px;
  overflow: hidden;
  width: 100%;
}

.report-table-wrap {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  overflow-x: auto;
  touch-action: pan-x pan-y pinch-zoom;
  width: 100%;
}

.report-chart-grid {
  stroke: #e3e9f0;
  stroke-width: 1;
}

.report-chart-axis {
  fill: #9aa6b4;
  font-size: 11px;
}

.report-chart-line {
  stroke: var(--primary);
  stroke-width: 2.5;
}

.report-chart-dot {
  fill: var(--primary);
}

.report-chart-value {
  fill: var(--text);
  font-size: 11px;
  font-weight: 600;
}

.report-chart-label {
  fill: #6b7785;
  font-size: 10px;
}

.report-table {
  min-width: 0;
  width: 100%;
}

.report-table th,
.report-table td {
  padding: 8px 10px;
  vertical-align: top;
  white-space: normal;
}

.report-table th:nth-child(2),
.report-table td:nth-child(2) {
  min-width: 120px;
  word-break: keep-all;
}

.report-table--wide {
  min-width: 520px;
}

.report-ai-section {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

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

.report-ai-textarea {
  border: 1px solid var(--line-strong);
  line-height: 1.7;
  min-height: 180px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

.report-parent-script {
  background: #f7fbf8;
  border: 1px solid #dceee0;
  border-radius: 18px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.report-parent-script-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.report-parent-script h4,
.report-parent-card h5 {
  color: #1f5c38;
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.report-tone-control {
  align-items: center;
  color: #52685c;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: space-between;
}

.report-tone-control strong {
  color: #1f5c38;
  font-size: 14px;
}

.report-tone-slider-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(140px, 1fr) auto;
}

.report-tone-slider-row span {
  color: var(--tf-muted);
  font-size: 12px;
  font-weight: 700;
}

.report-tone-slider {
  accent-color: #1f8f4a;
  width: 100%;
}

.report-parent-output {
  display: grid;
  gap: 12px;
}

.report-parent-card {
  background: #ffffff;
  border: 1px solid #dceee0;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.report-parent-card-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.report-parent-script-body {
  color: #1f2b24;
  font-size: 14px;
  line-height: 1.75;
  white-space: normal;
}

.report-parent-script-body p {
  margin: 0 0 10px;
}

.report-parent-script-body p:last-child {
  margin-bottom: 0;
}

.report-ai-model {
  color: #1f5c38;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.report-ai-model--fallback {
  color: #9a6700;
}

.print-only {
  display: none !important;
}

.report-comment-print {
  display: grid;
  gap: 12px;
}

.report-comment-body {
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.85;
  padding: 18px 20px;
}

.report-comment-body p {
  margin: 0 0 14px;
}

.report-comment-body p:last-child {
  margin-bottom: 0;
}

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

.report-doc-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  padding-top: 12px;
}

.report-doc-footer p {
  margin: 0;
}

#report-print-root {
  display: none;
}

@media print {
  @page {
    margin: 10mm;
    size: A4;
  }

  body {
    background: #ffffff !important;
    margin: 0 !important;
  }

  body.printing-report > *:not(#report-print-root) {
    display: none !important;
  }

  body.printing-report #report-print-root {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .sidebar,
  .topbar,
  .site-footer,
  .app-loading,
  .no-print {
    display: none !important;
  }

  .app-shell {
    display: block !important;
    min-height: auto !important;
  }

  .main {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .view {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .report-layout {
    display: block !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .report-output {
    display: block !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    width: 100% !important;
  }

  .report-document {
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .print-only {
    display: grid !important;
  }

  .report-ai-section[data-has-comment="false"] {
    display: none !important;
  }

  .report-ai-section[data-has-comment="true"] {
    border-top: 0;
    padding-top: 0;
  }

  .report-comment-print {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-comment-body {
    background: #ffffff;
    border: 1px solid #d7dee8;
    border-radius: 0;
    box-shadow: none;
    color: #1f2933;
    font-size: 14px;
    line-height: 1.9;
    padding: 16px 18px;
  }

  .report-section {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  .app-loading {
    display: none !important;
  }
}

.notifications-page {
  display: grid;
  gap: 18px;
  position: relative;
}

.notifications-compose-panel {
  padding-right: clamp(12px, 2vw, 20px);
  position: relative;
  z-index: 1;
}

.notifications-hero {
  align-items: stretch;
  background: linear-gradient(135deg, #dff3e4 0%, #e8f7ec 48%, #f0faf2 100%);
  border: 1px solid #b8dcc0;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(46, 95, 62, 0.08);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.9fr);
  padding: 24px 26px;
}

.notifications-hero-main {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  grid-column: 1;
  justify-content: space-between;
  min-width: 0;
}

.notifications-hero-copy {
  display: grid;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
}

.notifications-hero-eyebrow {
  color: #3d7a52;
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}

.notifications-hero-title {
  color: #1f5c38;
  font-size: 24px;
  font-weight: 900;
  margin: 0;
}

.notifications-hero-desc {
  color: #3d5c4a;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  max-width: 560px;
}

.notifications-stat-grid {
  align-self: start;
  display: grid;
  gap: 10px;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notifications-stat-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #cfe8d6;
  border-radius: 16px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.notifications-stat-label {
  color: var(--tf-muted);
  font-size: 12px;
  font-weight: 700;
}

.notifications-stat-value {
  color: #1f5c38;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.notifications-stat-card--sent .notifications-stat-value {
  color: #2e7d4e;
}

.notifications-stat-card--pending .notifications-stat-value {
  color: #9a6b00;
}

.notifications-stat-card--failed .notifications-stat-value {
  color: #a43d3d;
}

.notifications-workspace {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
}

.notification-section-card {
  background: #f7fbf8;
  border: 1px solid #dceee0;
  border-radius: 18px;
  display: grid;
  gap: 14px;
  padding: 16px 18px;
}

.notification-section-card + .notification-section-card {
  margin-top: 14px;
}

.notification-section-head {
  display: grid;
  gap: 4px;
}

.notification-section-head h3 {
  color: #1f5c38;
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.notification-section-head p {
  color: var(--tf-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.notification-target-summary {
  color: #2e7d4e;
  font-weight: 700;
}

.notification-choice-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notification-choice-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notification-choice-card {
  background: #ffffff;
  border: 1.5px solid #dceee0;
  border-radius: 16px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.notification-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.notification-choice-card:has(input:checked) {
  background: #f0faf2;
  border-color: #5cb87a;
  box-shadow: 0 0 0 2px rgba(46, 155, 90, 0.12);
}

.notification-choice-title {
  color: #1f5c38;
  font-size: 14px;
  font-weight: 800;
}

.notification-choice-desc {
  color: var(--tf-muted);
  font-size: 12px;
  line-height: 1.45;
}

.notification-checkbox-grid,
.notification-student-grid,
.checkbox-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.notification-target-panel {
  display: grid;
  gap: 10px;
}

.notification-checkbox-grid,
.notification-student-grid {
  background: #ffffff;
  border: 1px solid #e8f2ed;
  border-radius: 14px;
  padding: 12px;
}

.notification-checkbox-row {
  background: #f7fbf8;
  border: 1px solid #e8f2ed;
  border-radius: 12px;
  padding: 10px 12px;
}

.notification-student-grid .checkbox-row {
  align-items: flex-start;
}
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notification-form-grid--stack {
  grid-template-columns: 1fr;
}

.notification-actions {
  margin-top: 16px;
}

.notification-alert {
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  margin: 12px 0 0;
  padding: 12px 14px;
}

.notification-alert--error {
  background: #fff5f5;
  border: 1px solid #f0c7c7;
  color: #8f3232;
}

.notification-alert--success {
  background: #f0faf2;
  border: 1px solid #cfe8d6;
  color: #1f5c38;
}

.notifications-preview-panel {
  position: sticky;
  top: 16px;
}

.notification-preview-shell {
  background: #ffffff;
  border: 1px solid #dceee0;
  border-radius: 22px;
  box-shadow: var(--tf-shadow, 0 10px 28px rgba(31, 45, 61, 0.08));
  display: grid;
  gap: 12px;
  padding: 18px;
}

.notification-preview-label {
  color: #3d7a52;
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}

.notification-phone-frame {
  background: linear-gradient(180deg, #f4fbf6 0%, #eef6f0 100%);
  border: 1px solid #dceee0;
  border-radius: 18px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.notification-phone-status {
  color: var(--tf-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.notification-preview-card {
  background: #ffffff;
  border: 1px solid #e8f2ed;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(46, 95, 62, 0.08);
  display: grid;
  gap: 8px;
  padding: 14px;
}

.notification-preview-app {
  color: #2e7d4e;
  font-size: 11px;
  font-weight: 800;
  margin: 0;
}

.notification-preview-title {
  color: #1f5c38;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.notification-preview-text {
  color: #3d5c4a;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.notification-preview-meta {
  color: var(--tf-muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 4px 0 0;
}

.notification-preview-note {
  color: var(--tf-muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.notifications-history-panel .panel-header h3 {
  font-size: 18px;
  margin: 0 0 4px;
}

.notification-history-scroll {
  -webkit-overflow-scrolling: touch;
  max-height: 20rem;
  overflow: auto;
  overscroll-behavior: contain;
}

@media (max-width: 820px) {
  .notification-history-scroll {
    max-height: 42rem;
  }
}

.notifications-empty-history {
  align-items: center;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 12px 0 4px;
  text-align: center;
}

.notifications-empty-mascot {
  height: auto;
  max-height: 88px;
  object-fit: contain;
  width: 72px;
}

.notification-type-chip {
  background: #f0faf2;
  border: 1px solid #cfe8d6;
  border-radius: var(--tf-btn-radius);
  color: #1f5c38;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  white-space: nowrap;
}

.notification-error-text {
  color: #a43d3d;
  font-size: 13px;
}

.field-hint {
  color: var(--tf-muted);
  font-size: 12px;
  margin: 6px 0 0;
}

.notification-student-grid .checkbox-row span {
  display: grid;
  gap: 2px;
}

.notification-job-table {
  min-width: 960px;
  table-layout: auto;
}

.notification-job-table th,
.notification-job-table td {
  vertical-align: middle;
}

.notification-job-table th {
  white-space: nowrap;
  word-break: keep-all;
}

.notification-job-head--target,
.notification-job-cell--target {
  min-width: 52px;
}

.notification-job-cell--time,
.notification-job-cell--target,
.notification-job-cell--status,
.notification-job-cell--type,
.notification-job-head--time,
.notification-job-head--type,
.notification-job-head--status,
.notification-job-head--target {
  white-space: nowrap;
  width: 1%;
}

.notification-job-cell--content {
  min-width: 168px;
  white-space: nowrap;
}

.notification-job-cell--error {
  line-height: 1.45;
  max-width: 280px;
  min-width: 200px;
  white-space: normal;
}

.notification-job-cell--error .notification-error-text {
  display: inline-block;
  max-width: 280px;
}

@media (max-width: 1100px) {
  .notifications-workspace {
    grid-template-columns: 1fr;
  }

  .notifications-preview-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .notifications-hero {
    grid-template-columns: 1fr;
  }

  .notification-form-grid,
  .notification-choice-grid,
  .notification-choice-grid--compact {
    grid-template-columns: 1fr;
  }
}

/* TutorFit feedback, upload, and dense table polish */
.tf-modal-backdrop {
  align-items: center;
  background: rgba(23, 46, 31, 0.28);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 3000;
}

.tf-modal {
  background: #fff;
  border: 1px solid #d8eadb;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(36, 74, 48, 0.18);
  display: grid;
  gap: 12px;
  max-width: 440px;
  padding: 26px;
  text-align: center;
  width: min(100%, 440px);
}

@media (max-width: 430px) {
  .tf-modal.class-memo-modal,
  .tf-modal.attendance-modal,
  .tf-modal.tuition-fee-modal {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    width: min(100%, calc(100vw - 24px));
  }

  .tf-modal-backdrop {
    align-items: flex-start;
    padding: 12px;
  }
}

.tf-modal-icon {
  align-items: center;
  background: #eaf8ed;
  border-radius: var(--tf-btn-radius);
  color: #2f9a4a;
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  justify-self: center;
  width: 48px;
}

.tf-modal-icon--danger {
  background: #fff0f0;
  color: #cf4d4d;
}

.tf-modal-title {
  color: #173522;
  font-size: 22px;
  margin: 0;
}

.tf-modal-message {
  color: #58705f;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.tf-modal-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
}

.tf-modal-actions--stack {
  grid-template-columns: 1fr;
}

.tf-modal .button {
  align-items: center;
  border-radius: var(--tf-btn-radius);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
}

.tf-toast-stack {
  display: grid;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  position: fixed;
  right: 20px;
  top: 20px;
  width: 420px;
  z-index: 3100;
}

.tf-toast {
  align-items: center;
  background: #fff;
  border: 1px solid #d8eadb;
  border-left: 5px solid #40b45d;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(36, 74, 48, 0.14);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 14px 14px 16px;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.tf-toast--error {
  border-left-color: #e15b5b;
}

.tf-toast--success {
  border-left-color: #32a852;
}

.tf-toast--leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.tf-toast-message {
  color: #21402c;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.tf-toast-close {
  align-items: center;
  background: #eff8f1;
  border: 0;
  border-radius: var(--tf-btn-radius);
  color: #2f8f49;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.tf-upload-card {
  align-items: center;
  background: linear-gradient(135deg, #fbfffc 0%, #eef9f0 100%);
  border: 1.5px dashed #9ed8aa;
  border-radius: 20px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  padding: 16px;
}

.tf-upload-card strong {
  color: #1f5c38;
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.tf-upload-card p {
  color: var(--tf-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.tf-upload-card input[type="file"] {
  background: #fff;
  border: 1px solid #cfe8d6;
  border-radius: 14px;
  color: #3d5c4a;
  cursor: pointer;
  padding: 8px;
  width: 100%;
}

.tf-upload-card input[type="file"]::file-selector-button {
  background: #33aa50;
  border: 0;
  border-radius: var(--tf-btn-radius);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  margin-right: 12px;
  padding: 9px 14px;
}

.main--mint .panel:has(.table),
.main--mint .report-table-wrap,
.main--mint .roster-table-wrap:not(.roster-table-wrap--stack),
.main--mint .mint-table-wrap {
  background: #fff;
  border: 1px solid #dcefe1;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(46, 95, 62, 0.08);
  overflow-x: auto;
}

.main--mint .panel:has(.table) .table,
.main--mint .report-table-wrap .table,
.main--mint .roster-table-wrap .roster-table,
.main--mint .mint-table-wrap .table {
  box-shadow: none;
  margin: 0;
}

.mint-table-wrap--flat {
  box-shadow: none;
}

.main--mint .table th,
.main--mint .roster-table thead th {
  background: #eef9f0;
  color: #1f5c38;
  font-weight: 800;
}

.main--mint .empty,
.main--mint .roster-empty,
.main--mint .compact-empty {
  background: #f5fcf6;
  border: 1px solid #d8eadb;
  border-radius: 18px;
  color: #4f6b58;
  line-height: 1.65;
  padding: 16px;
}

.submission-files {
  background: #f8fdf9;
  border: 1px solid #d8eadb;
  border-radius: 16px;
  padding: 12px;
}

.submission-file {
  background: #fff;
  border: 1px solid #e2efe5;
  border-radius: 14px;
  padding: 10px 12px;
}

.submission-file-actions .button,
.submission-file-actions button {
  border-radius: var(--tf-btn-radius);
}

@media (max-width: 640px) {
  .tf-modal-actions {
    grid-template-columns: 1fr;
  }

  .tf-toast-stack {
    left: 16px;
    right: 16px;
    top: 16px;
    width: auto;
  }
}

.mint-page {
  display: grid;
  gap: 18px;
  position: relative;
}

.mint-hero {
  align-items: stretch;
  background: linear-gradient(135deg, #dff3e4 0%, #e8f7ec 48%, #f0faf2 100%);
  border: 1px solid #b8dcc0;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(46, 95, 62, 0.08);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.9fr);
  padding: 24px 26px;
}

.mint-hero-main {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  grid-column: 1;
  justify-content: space-between;
  min-width: 0;
}

.mint-hero-copy {
  display: grid;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
}

.mint-hero-eyebrow,
.mint-eyebrow {
  color: #3d7a52;
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}

.mint-eyebrow {
  margin-bottom: 4px;
}

.mint-hero-title {
  color: #1f5c38;
  font-size: 24px;
  font-weight: 900;
  margin: 0;
}

.mint-hero-desc {
  color: #3d5c4a;
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  max-width: 560px;
}

.mint-stat-grid {
  align-self: start;
  display: grid;
  gap: 10px;
  grid-column: 2;
  grid-row: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mint-stat-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #cfe8d6;
  border-radius: 16px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.mint-stat-label {
  color: var(--tf-muted);
  font-size: 12px;
  font-weight: 700;
}

.mint-stat-value {
  color: #1f5c38;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.mint-stat-card--accent .mint-stat-value {
  color: #2e7d4e;
}

.mint-stat-card--warn .mint-stat-value {
  color: #9a6b00;
}

.mint-workspace {
  display: grid;
  gap: 16px;
}

.mint-workspace--stack {
  grid-template-columns: minmax(0, 1fr);
}

.mint-list-panel {
  overflow: visible;
  position: relative;
  z-index: 1;
}

.mint-section-card {
  display: grid;
  gap: 16px;
}

.mint-section-head {
  display: grid;
  gap: 6px;
}

.mint-section-head h2 {
  color: #1a3d2e;
  font-size: 18px;
  font-weight: 900;
  margin: 0;
}

.mint-section-head p {
  color: var(--tf-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.field--subject .subject-input {
  width: 100%;
}

.mint-hero .promo-sticker,
.notifications-hero .promo-sticker {
  align-self: flex-start;
  flex-shrink: 0;
  margin: -4px 0 0;
  max-width: none;
  position: static;
  width: auto;
}

.mint-hero .promo-sticker .promo-sticker-image,
.notifications-hero .promo-sticker .promo-sticker-image {
  height: clamp(88px, 10vw, 116px);
  margin-left: 0;
  margin-right: 0;
}

.mint-hero .promo-sticker .promo-sticker-bubble,
.notifications-hero .promo-sticker .promo-sticker-bubble {
  max-width: 176px;
}

.mypage-layout.mint-page {
  gap: 18px;
}

.mypage-layout.mint-page .mypage-account-panel,
.mypage-layout.mint-page .mypage-connected-panel {
  padding-right: clamp(12px, 2vw, 20px);
}

.mypage-connected-empty {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  padding: 8px 2px 4px;
}

.mypage-connected-empty-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
  margin: 0;
}

.mypage-connected-empty-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.mypage-connected-empty-cta {
  margin-top: 4px;
}

.mypage-connected-table-wrap {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  overflow-x: auto;
  touch-action: pan-x pan-y pinch-zoom;
}

.mypage-connected-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.mypage-connected-table td {
  font-size: 14px;
  vertical-align: middle;
}

.mypage-connected-name {
  font-weight: 800;
}

.mypage-connected-chip {
  background: #e8f8ea;
  border: 1px solid #b8e4be;
  border-radius: var(--tf-btn-radius);
  color: #1f574b;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 5px 10px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .mint-hero,
  .notifications-hero {
    grid-template-columns: 1fr;
  }

  .mint-hero-main,
  .notifications-hero-main {
    flex-wrap: wrap;
    grid-column: auto;
    grid-row: auto;
  }

  .mint-stat-grid,
  .notifications-stat-grid {
    grid-column: auto;
    grid-row: auto;
  }

  .dashboard-hero-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-hero-mascot {
    align-self: flex-end;
  }

  .mint-hero .promo-sticker,
  .notifications-hero .promo-sticker {
    margin: 0;
    width: 100%;
  }
}

@media (max-width: 820px) {
  .classes-page .mint-hero,
  .schedules-page .mint-hero {
    gap: 12px;
    padding: 12px;
  }

  .classes-page .mint-hero-main,
  .schedules-page .mint-hero-main {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .classes-page .mint-hero-desc,
  .schedules-page .mint-hero-desc {
    display: none;
  }

  .classes-page .mint-stat-grid,
  .schedules-page .mint-stat-grid {
    gap: 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .classes-page .mint-stat-label,
  .schedules-page .mint-stat-label {
    font-size: 10px;
  }

  .classes-page .mint-hero .promo-sticker,
  .schedules-page .mint-hero .promo-sticker {
    flex: 0 0 auto;
    margin: 0;
    width: auto;
  }

  .classes-page .mint-hero .promo-sticker .promo-sticker-image,
  .schedules-page .mint-hero .promo-sticker .promo-sticker-image {
    height: 58px;
  }

  .classes-page .mint-hero .promo-sticker .promo-sticker-bubble,
  .schedules-page .mint-hero .promo-sticker .promo-sticker-bubble {
    display: none;
  }

  .classes-page .mint-stat-card,
  .schedules-page .mint-stat-card {
    padding: 8px 10px;
  }

  .classes-page .mint-stat-value,
  .schedules-page .mint-stat-value {
    font-size: 16px;
  }
}

@media (min-width: 641px) and (max-width: 1180px) {
  :root {
    --shadow: 0 6px 16px rgba(31, 45, 61, 0.045);
    --tf-shadow: 0 5px 14px rgba(46, 95, 62, 0.04);
  }

  .dashboard-hero-card,
  .dashboard-calendar-card,
  .dashboard-card,
  .classes-page .roster-card,
  .report-hero,
  .notifications-hero,
  .mint-hero {
    box-shadow: 0 5px 14px rgba(46, 95, 62, 0.045);
  }

  .app-loading-card {
    box-shadow:
      0 8px 18px rgba(40, 111, 95, 0.07),
      0 2px 8px rgba(40, 111, 95, 0.045);
  }

  .main--mint .panel:has(.table),
  .main--mint .report-table-wrap,
  .main--mint .roster-table-wrap:not(.roster-table-wrap--stack),
  .main--mint .mint-table-wrap {
    box-shadow: 0 5px 14px rgba(46, 95, 62, 0.045);
  }

  .cute-empty-bubble,
  .promo-sticker-bubble {
    box-shadow: 0 3px 8px rgba(111, 184, 111, 0.08);
  }

  .mypage-sticker,
  .promo-sticker-image {
    filter: drop-shadow(0 4px 8px rgba(31, 45, 61, 0.09));
  }

  .tf-modal {
    box-shadow: 0 10px 24px rgba(36, 74, 48, 0.1);
  }

  .tf-toast {
    box-shadow: 0 7px 18px rgba(36, 74, 48, 0.08);
  }
}
.mock-exam-builder-card {
  margin-top: 0;
}

.mock-exam-draft-list {
  display: grid;
  gap: 12px;
}

.mock-exam-draft-item {
  align-items: center;
  border: 1px solid #d7ebe1;
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
}

.mock-exam-draft-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mock-exam-draft-copy strong {
  color: #1a3d2e;
  font-size: 15px;
}

.mock-exam-draft-copy p {
  color: var(--tf-muted);
  font-size: 13px;
  margin: 0;
}

.mock-exam-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mock-exam-source-badge {
  margin-left: 8px;
  vertical-align: middle;
}

.mock-exam-builder-page .mint-list-panel {
  display: grid;
  gap: 0;
}

.mock-exam-builder-content {
  margin-top: 4px;
}

.mock-exam-builder-steps {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 20px;
  position: relative;
}

.mock-exam-builder-steps::before {
  background: #d7ebe1;
  content: "";
  height: 2px;
  left: 16%;
  position: absolute;
  right: 16%;
  top: 18px;
  z-index: 0;
}

.mock-exam-builder-step {
  align-items: center;
  color: var(--tf-muted);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.mock-exam-builder-step.is-current {
  color: #1a3d2e;
}

.mock-exam-builder-step.is-complete {
  color: #1f6b4d;
}

.mock-exam-builder-step-index {
  align-items: center;
  background: #fff;
  border: 2px solid #d7ebe1;
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  height: 36px;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  width: 36px;
}

.mock-exam-builder-step.is-current .mock-exam-builder-step-index {
  background: #1f6b4d;
  border-color: #1f6b4d;
  color: #fff;
}

.mock-exam-builder-step.is-complete .mock-exam-builder-step-index {
  background: #e8f8ef;
  border-color: #77c9a5;
  color: #1f6b4d;
}

.mock-exam-builder-step-label {
  line-height: 1.35;
  max-width: 120px;
}

.mock-exam-builder-last-saved {
  margin: -8px 0 16px;
}

.mock-exam-builder-actions {
  border-top: 1px solid #e3f0e8;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
}

.mock-exam-builder-basic-grid {
  gap: 16px;
  margin-bottom: 4px;
}

.mock-exam-builder-progress {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
}

.mock-exam-builder-progress-card {
  background: #f8fcf9;
  border: 1px solid #e2efe8;
  border-radius: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
}

.mock-exam-builder-progress-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mock-exam-builder-progress-text {
  color: #355748;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.mock-exam-builder-progress-percent {
  color: #1f6b4d;
  font-size: 14px;
  font-weight: 800;
}

.mock-exam-builder-progress-bar {
  background: #e6f2ec;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.mock-exam-builder-progress-bar span {
  background: linear-gradient(90deg, #3d9a5c, #1f6b4d);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 0;
  transition: width 0.2s ease;
}

.mock-exam-builder-question-heading-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mock-exam-builder-question-heading {
  color: #1a3d2e;
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.mock-exam-builder-type-badge {
  background: #eaf7ef;
  border: 1px solid #b9e2cb;
  border-radius: 999px;
  color: #1f6b4d;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
}

.mock-exam-builder-question-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(72px, 96px) minmax(0, 1fr);
}

.mock-exam-builder-question-nav {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 480px;
  overflow: auto;
  padding-right: 2px;
}

.mock-exam-builder-question-nav--horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-template-columns: none;
  margin-bottom: 16px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.mock-exam-builder-question-nav--horizontal .mock-exam-builder-question-nav-item {
  aspect-ratio: auto;
  min-height: 36px;
  min-width: 36px;
  padding: 0 10px;
}

.mock-exam-builder-question-nav-item {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid #d7ebe1;
  border-radius: 10px;
  color: #355748;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 40px;
  padding: 0;
  text-align: center;
}

.mock-exam-builder-question-nav-item.is-active {
  background: #1f6b4d;
  border-color: #1f6b4d;
  color: #fff;
}

.mock-exam-builder-question-nav-item.is-complete:not(.is-active) {
  background: #f3fbf7;
  border-color: #77c9a5;
}

.mock-exam-builder-question-editor {
  margin: 0;
  padding: 20px;
}

.mock-exam-builder-question-editor .field {
  margin-bottom: 18px;
}

.mock-exam-builder-question-editor textarea,
.mock-exam-builder-question-editor input,
.mock-exam-builder-question-editor select {
  font-size: 14px;
}

.mock-exam-builder-type-fields {
  margin-bottom: 4px;
}

.mock-exam-builder-type-panel {
  background: #fbfffd;
  border: 1px solid #e2efe8;
  border-radius: 14px;
  padding: 16px;
}

.mock-exam-builder-review-grid {
  gap: 12px;
  margin-bottom: 16px;
}

.mock-exam-builder-choice-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  margin-bottom: 10px;
}

.mock-exam-builder-choice-number {
  color: #1f6b4d;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.mock-exam-builder-choice-row input {
  width: 100%;
}

.mock-exam-builder-correct-choice {
  border: 0;
  margin: 0;
  padding: 0;
}

.mock-exam-builder-correct-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mock-exam-builder-correct-choice-item {
  align-items: center;
  background: #fff;
  border: 1.5px solid #d7ebe1;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
}

.mock-exam-builder-correct-choice-item:has(input:checked) {
  background: #eaf7ef;
  border-color: #5cb87a;
  color: #1f6b4d;
}

.mock-exam-builder-correct-choice legend {
  color: #355748;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  width: 100%;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 768px) {
  .mock-exam-builder-steps::before {
    display: none;
  }

  .mock-exam-builder-steps {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .mock-exam-builder-step {
    align-items: center;
    background: #f8fcf9;
    border: 1px solid #e3f0e8;
    border-radius: 12px;
    flex-direction: row;
    gap: 10px;
    padding: 10px 12px;
    text-align: left;
  }

  .mock-exam-builder-step.is-current {
    background: #e8f8ef;
    border-color: #77c9a5;
  }

  .mock-exam-builder-step-label {
    max-width: none;
  }

  .mock-exam-builder-basic-grid,
  .mock-exam-builder-review-grid {
    grid-template-columns: 1fr;
  }

  .mock-exam-builder-question-layout {
    grid-template-columns: 1fr;
  }

  .mock-exam-builder-question-nav {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    max-height: none;
  }
}

@media (max-width: 390px) {
  .mock-exam-draft-item,
  .mock-exam-builder-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mock-exam-builder-actions .button,
  .mock-exam-draft-item .button {
    width: 100%;
  }
}

.other-tests-card {
  margin-top: 0;
}

.other-tests-card .panel-header p {
  max-width: 640px;
}

.other-tests-filters {
  background: #f7fbf8;
  border: 1px solid #e8f2ed;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
  padding: 14px 16px;
}

.other-tests-filters .field > span {
  color: #3d5c4a;
  font-size: 13px;
  font-weight: 800;
}

.other-tests-table-wrap {
  overflow-x: auto;
}

.other-tests-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 210px;
}

.other-tests-actions-cell,
.other-tests-table th:last-child {
  background: #fff;
  box-shadow: -10px 0 16px rgba(46, 95, 62, 0.06);
  min-width: 210px;
  position: sticky;
  right: 0;
  z-index: 1;
}

.other-tests-table thead th:last-child {
  background: #eef9f0;
  z-index: 2;
}

.other-tests-load-more {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.other-test-type-modal {
  gap: 16px;
  max-width: 560px;
  text-align: left;
}

.other-test-type-modal .tf-modal-title,
.other-test-type-modal .tf-modal-message {
  text-align: center;
}

.other-test-type-modal .tf-modal-message {
  margin-bottom: 4px;
}

.other-test-type-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.other-test-type-modal button.other-test-type-option {
  align-items: center;
  appearance: none;
  background: #ffffff;
  border: 1.5px solid #dceee0;
  border-radius: 16px;
  box-shadow: none;
  color: #1f5c38;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  gap: 0;
  justify-content: center;
  line-height: 1.4;
  min-height: 56px;
  padding: 14px 16px;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  width: 100%;
}

.other-test-type-modal button.other-test-type-option:hover {
  background: #f4fbf7;
  border-color: #9fd4b0;
  color: #1f5c38;
}

.other-test-type-modal button.other-test-type-option.is-selected {
  background: #f0faf2;
  border-color: #5cb87a;
  box-shadow: 0 0 0 2px rgba(46, 155, 90, 0.12);
  color: #1f5c38;
}

.other-test-type-modal button.other-test-type-option .other-test-type-option-title {
  color: #1f5c38;
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  width: 100%;
}

.other-test-subject-picker {
  background: #f7fcf8;
  border: 1.5px solid #dceee0;
  border-radius: 16px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
}

.other-test-subject-picker legend {
  color: #1f5c38;
  font-size: 14px;
  font-weight: 800;
  padding: 0 4px;
}

.other-test-subject-choice-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.other-test-subject-choice {
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #dceee0;
  border-radius: 12px;
  color: #1f5c38;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  line-height: 1.35;
  min-height: 42px;
  padding: 10px 12px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.other-test-subject-choice:has(input:checked) {
  background: #f0faf2;
  border-color: #5cb87a;
  box-shadow: 0 0 0 2px rgba(46, 155, 90, 0.12);
}

.other-test-subject-choice input {
  accent-color: #2e9b5a;
  flex: 0 0 auto;
}

.other-test-subject-choice span {
  color: #1f5c38;
  font-weight: 700;
}

.other-test-type-modal button.other-test-type-option .other-test-type-option-desc {
  color: var(--tf-muted);
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.other-test-type-extra {
  display: grid;
  gap: 8px;
}

.other-test-type-extra-label {
  color: var(--tf-muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.other-test-kice-subtype-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.other-test-kice-subtype.is-selected {
  background: #f0faf2;
  border-color: #5cb87a;
  box-shadow: 0 0 0 2px rgba(46, 155, 90, 0.12);
}

.other-tests-form-page .panel-header h2 {
  margin-bottom: 8px;
}

.other-test-form-grid,
.other-test-subject-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.other-test-target-fieldset {
  border: 1px solid #d7ebe1;
  border-radius: 14px;
  margin: 16px 0;
  padding: 16px;
}

.other-test-target-fieldset legend {
  color: #1a3d2e;
  font-size: 14px;
  font-weight: 800;
  padding: 0 4px;
}

.other-test-target-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.other-test-target-mode label {
  align-items: center;
  color: #3d5c4a;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
}

.other-test-class-student-list {
  background: #f7fbf8;
  border: 1px solid #e8f2ed;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
}

.other-test-class-student-item {
  align-items: center;
  color: #1a3d2e;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
}

.other-test-photo-section {
  border: 1px solid #d7ebe1;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
}

.other-test-photo-head h3 {
  color: #1a3d2e;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 4px;
}

.other-test-student-scores {
  border: 1px solid #d7ebe1;
  border-radius: 14px;
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
}

.other-test-progress {
  color: #3d5c4a;
  font-size: 13px;
  font-weight: 700;
}

.other-test-student-tab {
  background: #eef8f2;
  border: 1px solid #d7ebe1;
  border-radius: 999px;
  color: #1a3d2e;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  margin: 0 8px 8px 0;
  padding: 8px 14px;
}

.other-test-student-tab:hover {
  background: #e4f4ea;
  border-color: #9fd4b0;
  color: #1a3d2e;
}

.other-test-student-tab.is-active {
  background: #2f6b4f;
  border-color: #2f6b4f;
  color: #fff;
}

.other-test-subject-card {
  background: #f7fbf8;
  border: 1px solid #d7ebe1;
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 14px;
}

.other-test-subject-card-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.other-test-subject-card-head strong {
  color: #1a3d2e;
  font-size: 14px;
  font-weight: 800;
}

.other-test-inquiry-slot h4 {
  color: #3d5c4a;
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 10px;
}

.other-test-photo-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.other-test-photo-item {
  align-items: center;
  background: #f7fbf8;
  border: 1px solid #e8f2ed;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  gap: 10px;
  padding: 10px 12px;
}

.other-test-photo-preview {
  border-radius: 8px;
  height: 64px;
  object-fit: cover;
  width: 64px;
}

.other-test-form-actions {
  margin-top: 8px;
}

.other-test-detail-meta {
  background: #f7fbf8;
  border: 1px solid #e8f2ed;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0;
  padding: 14px 16px;
}

.other-test-detail-meta dt {
  color: var(--tf-muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.other-test-detail-meta dd {
  color: #1a3d2e;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.other-test-detail-memo h3 {
  color: #1a3d2e;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 8px;
}

.other-test-detail-memo p {
  color: #3d5c4a;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.report-exam-records {
  display: grid;
  gap: 16px;
}

.report-exam-record-card {
  border: 1px solid #d7ebe1;
  border-radius: 14px;
  padding: 14px;
}

.report-exam-record-head {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.report-exam-type-badge {
  justify-self: start;
}

.report-exam-memo {
  margin-top: 10px;
}

@media (max-width: 768px) {
  .other-tests-filters,
  .other-test-form-grid,
  .other-test-subject-grid,
  .other-test-subject-choice-grid,
  .other-test-type-grid,
  .other-test-kice-subtype-grid,
  .other-test-detail-meta {
    grid-template-columns: 1fr;
  }
}

body :is(
  a[href],
  button,
  input:not([type="hidden"]),
  select,
  textarea,
  summary,
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 3px solid var(--tf-focus-inner);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--tf-focus-outer);
}

body :is(button, .button) {
  min-height: 40px;
}

body :is(
  .check-row input[type="checkbox"],
  .check-row input[type="radio"],
  .weekday-checkbox input,
  .notification-choice input,
  .tuition-payment-paid-toggle input
) {
  flex: 0 0 24px;
  height: 24px;
  min-height: 24px;
  min-width: 24px;
  width: 24px;
}

body input:is([type="checkbox"], [type="radio"]) {
  flex: 0 0 24px;
  height: 24px;
  min-height: 24px;
  min-width: 24px;
  width: 24px;
}

body .question-row select {
  min-height: 40px;
}

body :is(.table a, .roster-table a) {
  align-items: center;
  display: inline-flex;
  min-height: 24px;
}

body :is(.tf-toast-close, .tf-modal-close) {
  min-height: 24px;
  min-width: 24px;
}

body button.inline-button:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

body :is(input, select, textarea):disabled {
  background: #f1f5f9;
  color: #526274;
  cursor: not-allowed;
  opacity: 1;
}

@media (pointer: coarse), (max-width: 820px) {
  body :is(.tf-toast-close, .tf-modal-close) {
    min-height: 40px;
    min-width: 40px;
  }

  body :is(.site-footer a, .dashboard-list a) {
    align-items: center;
    display: inline-flex;
    min-height: 40px;
    min-width: 24px;
    padding-block: 8px;
  }
}

.student-detail-page {
  display: grid;
  gap: 16px;
  max-width: 100%;
  overflow-x: hidden;
}

.student-detail-header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.student-detail-header-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.student-detail-eyebrow {
  color: var(--text-muted, #5f6b7a);
  font-size: 0.875rem;
  margin: 0;
}

.student-detail-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
  margin: 0;
}

.student-detail-meta {
  color: var(--text-muted, #5f6b7a);
  margin: 0;
}

.student-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.student-detail-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.student-detail-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-detail-summary-card {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.student-detail-summary-title {
  font-size: 0.95rem;
  margin: 0;
}

.student-detail-summary-value {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.student-detail-summary-hint {
  color: var(--text-muted, #5f6b7a);
  font-size: 0.875rem;
  margin: 0;
}

.student-detail-summary-cta {
  justify-self: start;
  min-height: 40px;
}

.student-detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.student-detail-section .panel-header {
  align-items: flex-start;
  gap: 12px;
}

.student-detail-subtitle {
  font-size: 1rem;
  margin: 16px 0 8px;
}

.student-detail-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.student-detail-list-item {
  align-items: flex-start;
  border-top: 1px solid var(--border-subtle, #e6ebf0);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-top: 10px;
}

.student-detail-list-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.student-detail-list-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.student-detail-list-meta {
  color: var(--text-muted, #5f6b7a);
  font-size: 0.875rem;
  margin: 0;
}

.student-detail-dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.student-detail-dl > div {
  display: grid;
  gap: 4px;
}

.student-detail-dl dt {
  color: var(--text-muted, #5f6b7a);
  font-size: 0.875rem;
}

.student-detail-dl dd {
  margin: 0;
}

.student-detail-section--report .panel-header {
  align-items: center;
}

.compact-empty {
  font-size: 0.95rem;
  margin: 0;
}

.student-detail-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.student-detail-connection-note {
  color: var(--text-muted, #5f6b7a);
  font-size: 0.875rem;
  margin: 4px 0 0;
}

.schedule-student-filter-meta {
  margin-bottom: 12px;
}

.schedule-student-filter-field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  max-width: 100%;
}

.schedule-student-filter-field label {
  color: var(--text-muted, #5f6b7a);
  font-size: 0.875rem;
  font-weight: 700;
}

.schedule-student-filter {
  background: #fff;
  border: 1px solid #cfe5d6;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.schedule-filter-summary-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-filter-summary .list-filter-status {
  margin: 0;
}

@media (min-width: 768px) {
  .schedule-student-filter-field {
    max-width: 420px;
  }
}

@media (min-width: 1024px) {
  .student-detail-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .student-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-detail-section--report {
    grid-column: 1 / -1;
  }
}

.list-filter-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  max-width: 100%;
}

.list-filter-search-field,
.list-filter-select-field {
  display: grid;
  gap: 8px;
  max-width: 100%;
}

.list-filter-search-field label,
.list-filter-select-field label {
  color: var(--text-muted, #5f6b7a);
  font-size: 0.875rem;
  font-weight: 700;
}

.list-filter-search-control {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 100%;
}

.list-filter-search-input,
.list-filter-select {
  background: #fff;
  border: 1px solid #cfe5d6;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  max-width: 100%;
  min-height: 44px;
  padding: 0 12px;
  width: 100%;
}

.list-filter-select-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  max-width: 100%;
}

.list-filter-summary {
  align-items: flex-start;
}

.list-filter-summary-text {
  display: grid;
  gap: 4px;
}

.list-filter-search-status {
  color: var(--text-muted, #5f6b7a);
  font-size: 0.875rem;
  margin: 0;
}

.list-filter-summary-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-list-filter-toolbar .schedule-student-filter-field {
  margin-bottom: 0;
}

@media (max-width: 430px) {
  .list-filter-search-control {
    grid-template-columns: 1fr;
  }

  .list-filter-select-row {
    grid-template-columns: 1fr;
  }
}

/* Form state phase 15 */
.field-error {
  color: var(--danger, #c0392b);
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.form-error {
  color: var(--danger, #c0392b);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.form-error-summary {
  background: rgba(192, 57, 43, 0.06);
  border: 1px solid rgba(192, 57, 43, 0.2);
  border-radius: 10px;
  margin: 0 0 16px;
  overflow-x: auto;
  padding: 12px 14px;
}

.form-error-summary-title {
  font-weight: 600;
  margin: 0 0 8px;
}

.form-error-summary-list {
  margin: 0;
  padding-left: 1.1rem;
}

.form-error-summary-link {
  color: inherit;
  text-decoration: underline;
}

.section-error {
  background: rgba(192, 57, 43, 0.05);
  border: 1px solid rgba(192, 57, 43, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
}

.section-error-message {
  color: var(--danger, #c0392b);
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}

.section-error-retry {
  min-height: 40px;
}

.section-loading {
  color: var(--text-muted, #5f6b7a);
  font-size: 0.9375rem;
  margin: 0;
}

.empty-state {
  padding: 16px 0;
}

.empty-state--compact {
  padding: 8px 0;
}

.empty-state-title {
  font-weight: 600;
  margin: 0 0 6px;
}

.empty-state-description {
  color: var(--text-muted, #5f6b7a);
  margin: 0 0 12px;
}

.empty-state-action {
  min-height: 40px;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--danger, #c0392b);
}

button.is-submit-pending {
  position: relative;
}

@media (max-width: 430px) {
  .form-error-summary,
  .section-error,
  .field-error {
    max-width: 100%;
    overflow-x: auto;
  }

  .actions .button.is-submit-pending {
    min-width: 0;
    white-space: normal;
  }
}
