@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 {
  --bg: #eef3f8;
  --panel: #ffffff;
  --line: #d8e0ea;
  --line-strong: #b8c5d5;
  --text: #101820;
  --muted: #5b6675;
  --primary: #286f5f;
  --primary-dark: #1f574b;
  --sidebar-bg: #8fcc8f;
  --sidebar-bg-deep: #6fb86f;
  --sidebar-text: #163214;
  --sidebar-muted: #2f5a2c;
  --sidebar-hover: rgba(255, 255, 255, 0.38);
  --sidebar-border: rgba(28, 88, 28, 0.2);
  --warning: #a15c13;
  --danger: #a43d3d;
  --shadow: 0 12px 30px rgba(31, 45, 61, 0.08);
  --font-sans: "A2Z", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tf-green: #2e9b5a;
  --tf-green-dark: #1f5c38;
  --tf-green-soft: #e8f5e9;
  --tf-bg: #e8f2ed;
  --tf-bg-soft: #f3f8f4;
  --tf-border: #c8e0cc;
  --tf-text: #1a3d2e;
  --tf-muted: #5a7a68;
  --tf-danger: #a43d3d;
  --tf-shadow: 0 10px 28px rgba(46, 95, 62, 0.06);
}

* {
  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;
}

.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;
}

.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 {
  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 {
  background: linear-gradient(180deg, var(--tf-bg) 0%, #eef6f0 42%, var(--tf-bg-soft) 100%);
}

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

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

.topbar--info .account {
  align-items: center;
  background: #ffffff;
  border: 1px solid #c8e0cc;
  border-radius: 999px;
  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: 999px;
  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) {
    display: none;
  }
}

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

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

.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: 999px;
  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: 999px;
  color: #2e7d4e;
  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: 999px;
  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: 999px;
  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: 999px;
  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 .actions > a.button.dark:first-child,
.main--mint .actions button.dark,
.main--mint .actions .button.dark,
.main--mint a.section-cta {
  align-items: center;
  background: var(--tf-green);
  border: 1.5px solid #2e7d4e;
  border-radius: 999px;
  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 > a.button.dark:hover,
.main--mint .panel-header > .button.dark:hover,
.main--mint .panel-header > button.button.dark:hover,
.main--mint .actions button.dark:hover,
.main--mint .actions .button.dark:hover,
.main--mint a.section-cta:hover {
  background: #268a4f;
  border-color: var(--tf-green-dark);
  color: #ffffff;
}

.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: #6b8576;
  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: 10px;
  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: 10px;
  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: 999px;
  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: #2e7d4e;
}

.main--mint .badge.retry_pending {
  background: #fff4cc;
  color: #9a6b00;
  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,
.main--mint .form select:focus,
.main--mint .form textarea:focus {
  border-color: #5cb87a;
  outline: 2px solid rgba(92, 184, 122, 0.2);
}

.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;
  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) {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.view a:not(.button):hover,
.view a:not(.button):visited {
  color: var(--text);
  text-decoration: none;
}

.view a:not(.button):hover {
  opacity: 0.82;
}

.site-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 8px;
  margin-top: 18px;
}

.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(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px;
}

.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: 999px;
  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-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: 999px;
  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: #5a7a68;
  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: 1px solid #c8e0cc;
  border-radius: 10px;
  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: 999px;
  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: #6b8576;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  background: #f7fbf8;
  border: 1px solid #dceee0;
  border-radius: 14px;
  color: #7cb87a;
  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: #5a9a4a;
}

.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: #3d9a5c;
}

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

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

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

.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: 999px;
  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: #3b8fd9;
}

.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: #3b8fd9;
}

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

.dashboard-list small {
  color: #6b8576;
  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: #6b8576;
  font-weight: 700;
}

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

.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;
  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: 999px;
  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: #5a7a68;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.classes-page .roster-card-cta {
  align-items: center;
  background: #2e9b5a;
  border: 1.5px solid #2e7d4e;
  border-radius: 999px;
  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: #268a4f;
  border-color: #1f5c38;
  color: #ffffff;
}

.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: #6b8576;
  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: 999px;
  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: 10px;
  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;
}

.classes-page .roster-btn--primary {
  background: #2e9b5a;
  border: 1.5px solid #2e7d4e;
  color: #ffffff;
}

.classes-page .roster-btn--primary:hover {
  background: #268a4f;
  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: 999px;
  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: #2e7d4e;
}

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

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

.classes-page .roster-muted-text {
  color: #6b8576;
  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,
button {
  border: 1px solid var(--primary-dark);
  background: var(--primary);
  color: #ffffff;
  padding: 10px 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

.button:hover,
button:hover {
  background: var(--primary-dark);
}

.button.secondary,
button.secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line-strong);
}

.button.secondary:hover,
button.secondary:hover {
  background: #f4f7fa;
}

.button.dark,
button.dark,
a.button.dark {
  background: var(--text);
  border-color: var(--text);
  color: #ffffff;
}

.button.dark:hover,
button.dark:hover,
a.button.dark:hover {
  background: #2a3440;
  border-color: #2a3440;
}

.button.danger,
button.danger {
  background: var(--danger);
  border-color: #7d2f2f;
  color: #ffffff;
}

.button.danger:hover,
button.danger:hover {
  background: #7d2f2f;
}

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

.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: #9a6b00;
  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 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.submission-type-tab {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.submission-type-tab.active {
  background: var(--text);
  border-color: var(--text);
  color: #ffffff;
}

.view a.submission-type-tab.active,
.view a.submission-type-tab.active:hover,
.view a.submission-type-tab.active:visited {
  color: #ffffff;
  opacity: 1;
}

.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: 999px;
  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 {
  background: var(--tf-green, #2e9b5a);
  border-color: #2e7d4e;
  color: #ffffff;
}

.inline-button.dark:hover,
a.inline-button.dark:hover,
button.inline-button.dark:hover {
  background: #268a4f;
  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: wait;
  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: 999px;
  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: 999px;
  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 {
  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 {
  max-width: 520px;
}

.login-header h2 {
  font-size: clamp(28px, 4vw, 34px);
}

.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(--accent);
  text-decoration: underline;
}

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

.google-login-button {
  background: #ffffff;
  border: 1px solid #dadce0;
  color: #1f1f1f;
  font-size: 18px;
  font-weight: 600;
  gap: 12px;
  justify-content: center;
  min-height: 56px;
  padding: 14px 22px;
  width: 100%;
}

.google-login-button:hover,
.google-login-button:focus-visible {
  background: #f8f9fa;
  border-color: #c6c9cc;
  color: #1f1f1f;
}

.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;
}

.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;
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

.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: 999px;
  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;
}

.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: #9a6b00;
}

.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-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: 999px;
  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: 2px solid #5cb87a;
  outline-offset: 2px;
}

.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: 999px;
  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: 999px;
  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: 999px;
  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: 999px;
  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: var(--text);
  border-color: var(--text);
  color: #ffffff;
}

.peeping-page-tabs button:hover,
.peeping-page-tab:hover {
  background: #2a3440;
  border-color: #2a3440;
  color: #ffffff;
}

.peeping-page-tabs button.active,
.peeping-page-tab.active {
  background: #2a3440;
  border-color: #2a3440;
  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;
    outline: none;
  }

  .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;
    outline: none;
  }

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

  .classes-page .roster-card {
    padding: 14px 12px;
  }

  .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 {
    border-collapse: collapse;
    display: block;
    min-width: 0;
    width: 100%;
  }

  .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: block;
    margin-bottom: 10px;
    overflow: hidden;
    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;
    padding: 8px 0;
    text-align: right;
    vertical-align: top;
    white-space: normal;
    width: 100%;
    word-break: keep-all;
  }

  .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: #5a7a68;
    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%;
  }

  .roster-table--stack .roster-btn,
  .roster-table--stack a.roster-btn {
    font-size: 12px;
    justify-content: center;
    min-height: 36px;
    padding: 6px 10px;
    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-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;
  }

  .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: flex-start;
    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 {
    justify-content: center;
    min-height: 44px;
    width: 100%;
  }

  .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: #6b8576;
  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: #6b8576;
  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: 999px;
  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: #6b8576;
  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: #6b8576;
  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-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: #6b8576;
  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: #6b8576;
  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: #6b8576;
  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: #6b8576;
  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: #6b8576;
  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: #6b8576;
  font-size: 12px;
  line-height: 1.5;
  margin: 4px 0 0;
}

.notification-preview-note {
  color: #6b8576;
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.notifications-history-panel .panel-header h3 {
  font-size: 18px;
  margin: 0 0 4px;
}

.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: 999px;
  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: #6b8576;
  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);
}

.tf-modal-icon {
  align-items: center;
  background: #eaf8ed;
  border-radius: 999px;
  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 .button {
  align-items: center;
  border-radius: 999px;
  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: 999px;
  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: #6b8576;
  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: 999px;
  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: 999px;
}

@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 {
  color: #3d7a52;
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}

.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: #6b8576;
  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: #5a7a68;
  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: 999px;
  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 (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);
  }
}
