/* [project]/app/globals.css [app-client] (css) */
:root {
  --bg: #202b56;
  --bg-soft: #ffffff0d;
  --surface: #1a2248c7;
  --surface-strong: #202a56eb;
  --line: #ffe6bd24;
  --line-strong: #ffd69147;
  --gold: #f1cb87;
  --gold-strong: #ffe2b5;
  --text: #f7f3eb;
  --text-soft: #f7f3ebb8;
  --shadow: 0 28px 80px #00000057;
  --font-display: "Avenir Next", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --font-body: "Avenir Next", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: #0000;
  background-image: radial-gradient(circle at 10% 12%, #a8c0ff9e, #0000 0 34%), radial-gradient(circle at 88% 16%, #e2afff85, #0000 0 32%), radial-gradient(circle at 52% 84%, #7297ff6b, #0000 0 28%), linear-gradient(150deg, #0d1430 0%, #223063 34%, #5160ad 68%, #7b4db3 100%);
  background-position: 0 0, 0 0, 0 0, 0 0;
  background-repeat: repeat, repeat, repeat, repeat;
  background-size: auto, auto, auto, auto;
  background-attachment: fixed;
  background-origin: padding-box, padding-box, padding-box, padding-box;
  background-clip: border-box, border-box, border-box, border-box;
}

body.modal-open {
  overflow: hidden;
}

body:before {
  content: "";
  pointer-events: none;
  background-image: linear-gradient(#ffffff05 1px, #0000 1px), linear-gradient(90deg, #ffffff05 1px, #0000 1px);
  background-size: 24px 24px;
  position: fixed;
  inset: 0;
  -webkit-mask-image: radial-gradient(circle, #000, #0000 85%);
  mask-image: radial-gradient(circle, #000, #0000 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

input, select, textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  color: var(--text);
  background: linear-gradient(#ffffff0f, #ffffff06), #ffffff08;
  border: 1px solid #ffebcd24;
  border-radius: 16px;
  outline: none;
  padding: 14px 16px;
}

input[type="date"], input[type="datetime-local"] {
  appearance: none;
  block-size: 54px;
  inline-size: 100%;
  min-inline-size: 0;
  padding-right: 44px;
  line-height: 1.2;
  display: block;
}

input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  min-width: 0;
}

input[type="datetime-local"]::-webkit-date-and-time-value {
  text-align: left;
  min-width: 0;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: .82;
  cursor: pointer;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  opacity: .82;
  cursor: pointer;
}

textarea {
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--line-strong);
}

.auth-screen {
  grid-template-columns: 1.2fr .86fr;
  gap: 24px;
  min-height: 100vh;
  padding: 28px;
  display: grid;
}

.simple-auth-screen {
  place-items: center;
  min-height: 100vh;
  padding: 28px;
  display: grid;
}

.simple-auth-card {
  text-align: center;
  background: linear-gradient(145deg, #8693ff29, #ffffff05 44%, #181646eb),
    var(--surface);
  border-radius: 32px;
  width: min(100%, 520px);
  padding: 36px;
}

.login-logo-wrap {
  justify-content: center;
  align-items: center;
  min-height: 120px;
  margin-bottom: 10px;
  display: flex;
}

.login-logo {
  width: min(100%, 420px);
  height: auto;
}

.simple-auth-copy h1 {
  margin-top: 8px;
  font-size: clamp(2.1rem, 5vw, 3rem);
}

.simple-auth-intro {
  max-width: 28rem;
  color: var(--text-soft);
  margin: 16px auto 0;
  line-height: 1.7;
}

.simple-auth-panel {
  text-align: left;
  margin-top: 10px;
}

.credentials-box {
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 20px;
  margin-top: 18px;
  padding: 16px 18px;
}

.credentials-box p {
  color: var(--text-soft);
  margin: 0;
  line-height: 1.7;
}

.credentials-box p + p {
  margin-top: 8px;
}

.hero-panel, .auth-card, .sidebar, .glass-card, .phone-frame {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.hero-panel, .auth-card, .sidebar, .panel-card, .hero-banner, .metric-card, .inner-surface, .phone-frame {
  background: linear-gradient(155deg, #8a95ff24, #ffffff06 24%, #1b1f4ee0 66%, #281455f0),
    var(--surface);
}

.hero-panel {
  border-radius: 32px;
  flex-direction: column;
  gap: 28px;
  padding: 40px;
  display: flex;
}

.hero-mark {
  max-width: 520px;
}

.hero-copy h1, .section-heading h2, .page-heading h1, .hero-banner h1, .panel-card h2, .desktop-preview-sidebar h2, .phone-screen h2, .user-summary h2 {
  font-family: var(--font-display);
  letter-spacing: -.04em;
  margin: 0;
}

.hero-copy h1 {
  margin-top: 8px;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.tagline {
  color: var(--gold);
  margin: 10px 0 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.hero-intro, .page-heading p, .panel-card p, .user-summary p, .section-heading p, .muted-copy, .activity-list p, .stack-list li, .desktop-preview-sidebar p, .phone-screen p {
  color: var(--text-soft);
  line-height: 1.7;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--gold-strong);
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 800;
  display: inline-flex;
}

.role-grid, .stats-grid, .two-column-grid, .three-column-grid, .card-grid, .notice-grid, .portal-preview-grid {
  gap: 18px;
  display: grid;
}

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

.role-card {
  border-radius: 20px;
  padding: 18px;
}

.auth-panel {
  display: flex;
}

.auth-card {
  border-radius: 32px;
  width: 100%;
  padding: 34px;
}

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

.section-heading.compact {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-top: 8px;
  font-size: 1.8rem;
}

.stack-form, .stack-gap, .page-stack {
  gap: 18px;
  display: grid;
}

.stack-form label {
  gap: 10px;
  min-width: 0;
  display: grid;
}

.stack-form span {
  font-size: .9rem;
  font-weight: 700;
}

.primary-button, .secondary-button, .ghost-button, .quiet-action-button, .tab-button {
  cursor: pointer;
  touch-action: manipulation;
  border: 0;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform .18s, opacity .18s, background .18s;
  display: inline-flex;
}

.primary-button {
  color: #261506;
  background: linear-gradient(135deg, #f9e0b0, #c98c42);
  border-radius: 18px;
  padding: 16px 18px;
  font-weight: 800;
}

.ghost-button {
  color: var(--text);
  border: 1px solid var(--line);
  background: #ffffff0d;
  border-radius: 16px;
  padding: 14px 16px;
}

.secondary-button {
  color: var(--text);
  background: #ffffff14;
  border: 1px solid #ffe6bd2e;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 800;
}

.quiet-action-button {
  min-height: 44px;
  color: var(--text);
  background: linear-gradient(#ffffff14, #ffffff09), #ffffff0a;
  border: 1px solid #ffe6bd29;
  border-radius: 14px;
  padding: 11px 15px;
  font-size: .92rem;
  font-weight: 850;
  box-shadow: inset 0 1px #ffffff14;
}

.danger-button {
  color: #ffd5d5;
  background: #ff818114;
  border-color: #ff818147;
}

.quiet-action-button.danger-button {
  background: linear-gradient(#ff818124, #ff81810f), #ffffff08;
  border-color: #ff81814d;
}

.primary-button:hover, .secondary-button:hover, .ghost-button:hover, .quiet-action-button:hover, .tab-button:hover {
  transform: translateY(-2px);
}

.primary-button:disabled, .secondary-button:disabled, .ghost-button:disabled, .quiet-action-button:disabled, .tab-button:disabled {
  cursor: not-allowed;
  opacity: .54;
  transform: none;
}

.info-card, .success-panel, .inner-surface {
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 22px;
  padding: 18px;
}

.info-card h3, .success-panel h3, .inner-surface h3 {
  margin: 0 0 12px;
}

.stack-list {
  margin: 0;
  padding-left: 18px;
}

.form-error {
  color: #ff9d9d;
  margin: 0;
}

.form-success {
  color: #bff3d4;
  margin: 0;
}

.dashboard-shell {
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #040b16e0;
  flex-direction: column;
  gap: 22px;
  min-height: 100vh;
  padding: 24px 20px;
  display: flex;
  position: sticky;
  top: 0;
}

.sidebar-brand {
  gap: 14px;
  display: grid;
}

.sidebar-logo {
  width: min(100%, 180px);
  height: auto;
}

.sidebar-brand strong {
  font-size: 1.08rem;
  display: block;
}

.sidebar-brand p {
  color: var(--text-soft);
  margin: 6px 0 0;
  font-size: .92rem;
}

.user-summary {
  border-radius: 24px;
  padding: 18px;
}

.user-summary h2 {
  margin-top: 8px;
  font-size: 1.4rem;
}

.sidebar-password-link {
  width: 100%;
}

.sidebar-nav {
  gap: 20px;
  display: grid;
}

.nav-section p {
  color: var(--gold-strong);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 800;
}

.nav-section ul {
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.nav-section a {
  color: var(--text-soft);
  background: #ffffff08;
  border-radius: 14px;
  padding: 12px 14px;
  display: block;
}

.nav-section a.active {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: #ffdfaa1f;
}

.page-shell {
  min-width: 0;
  padding: 30px;
}

.page-stack > * {
  min-width: 0;
}

.mobile-sidebar-shell, .sidebar-mobile-header, .mobile-shell-bar, .sidebar-overlay {
  display: none;
}

.mobile-shell-copy {
  gap: 2px;
  display: grid;
}

.mobile-shell-copy strong {
  font-size: 1rem;
}

.mobile-shell-copy span {
  color: var(--text-soft);
  font-size: .86rem;
}

.page-heading h1, .hero-banner h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.hero-banner, .panel-card {
  border-radius: 28px;
  padding: 26px;
}

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

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

.metric-card {
  border-radius: 24px;
  padding: 22px;
}

.metric-card span {
  color: var(--text-soft);
  font-size: .92rem;
  display: block;
}

.metric-card strong {
  margin-top: 12px;
  font-size: 1.9rem;
  display: block;
}

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

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

.align-start {
  align-items: start;
}

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

.local-ai-card {
  gap: 18px;
}

.local-ai-card-head {
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  display: flex;
}

.local-ai-card-head h2, .local-ai-card-head p {
  margin: 0;
}

.local-ai-card-head p {
  margin-top: 8px;
}

.local-ai-status {
  color: #ffd5d5;
  background: #ff81811f;
  border: 1px solid #ff818138;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-width: 66px;
  padding: 8px 12px;
  font-size: .84rem;
  font-weight: 900;
  display: inline-flex;
}

.local-ai-status.is-running {
  color: #c9ffe6;
  background: #7ee8bc24;
  border-color: #7ee8bc47;
}

.local-ai-meta {
  gap: 12px;
  margin: 0;
  display: grid;
}

.local-ai-switch-row {
  background: #ffffff0b;
  border: 1px solid #ffe6bd1f;
  border-radius: 18px;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  display: flex;
}

.local-ai-switch-row > span {
  color: var(--text);
  font-weight: 850;
}

.ios-switch {
  cursor: pointer;
  background: #ffffff2e;
  border: 0;
  border-radius: 999px;
  width: 68px;
  height: 38px;
  padding: 0;
  transition: background .18s, box-shadow .18s, opacity .18s;
  position: relative;
  box-shadow: inset 0 0 0 1px #ffffff1f, inset 0 2px 8px #00000038;
}

.ios-switch:after {
  content: "";
  background: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  transition: transform .18s;
  position: absolute;
  top: 3px;
  left: 3px;
  box-shadow: 0 4px 12px #00000047;
}

.ios-switch.is-on {
  background: linear-gradient(#68e39f, #34c76f);
  box-shadow: inset 0 0 0 1px #ffffff2e, 0 8px 18px #34c76f38;
}

.ios-switch.is-on:after {
  transform: translateX(30px);
}

.ios-switch span {
  clip: rect(0 0 0 0);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.ios-switch:disabled {
  cursor: not-allowed;
  opacity: .56;
}

.local-ai-meta div {
  gap: 6px;
  min-width: 0;
  display: grid;
}

.local-ai-meta dt {
  color: var(--gold-strong);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 900;
}

.local-ai-meta dd {
  color: var(--text-soft);
  overflow-wrap: anywhere;
  margin: 0;
  line-height: 1.6;
}

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

.settings-field {
  gap: 8px;
  display: grid;
}

.settings-field > span {
  color: var(--gold-strong);
  font-size: .78rem;
  font-weight: 900;
}

.generation-ai-toggle {
  background: #ffffff0d;
  border: 1px solid #ffffff1a;
  border-radius: 16px;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  display: flex;
}

.generation-ai-toggle > span {
  color: var(--text-strong);
  font-weight: 900;
}

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

.card-topline {
  color: var(--text-soft);
  justify-content: space-between;
  gap: 12px;
  font-size: .9rem;
  display: flex;
}

.detail-block {
  margin-top: 18px;
}

.detail-block strong {
  margin-bottom: 8px;
  display: block;
}

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

.small-chip, .role-pill {
  border-radius: 999px;
  align-items: center;
  padding: 7px 12px;
  font-size: .82rem;
  font-weight: 700;
  display: inline-flex;
}

.small-chip {
  background: #ffffff0f;
}

.role-pill {
  width: fit-content;
}

.role-super_admin, .role-gold {
  color: #ffe1ac;
  background: #f1cb8724;
}

.role-admin, .role-blue {
  color: #b7d6ff;
  background: #6ca5ff24;
}

.role-teacher, .role-copper {
  color: #ffd0a1;
  background: #e4a27029;
}

.role-student, .role-green {
  color: #bdf3d7;
  background: #7ed4a729;
}

.role-parent, .role-sand {
  color: #ffe8be;
  background: #e1c79129;
}

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

.activity-list li {
  border-bottom: 1px solid #ffffff12;
  padding: 16px 0;
}

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

.activity-list strong {
  margin-bottom: 6px;
  display: block;
}

.table-wrap {
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}

.roster-table-wrap {
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  max-height: min(62vh, 560px);
  overflow: auto;
}

.table-wrap, .roster-table-wrap, .timetable-wrap, .attendance-book-table-wrap, .attendance-v2-scrollbar-top, .attendance-v2-table-wrap, .assignment-table-wrap, .mock-answer-grid-scroll, .assignment-inline-scroll, .assignment-inline-strip, .assignment-detail-card-scroll {
  scroll-behavior: smooth;
  scrollbar-color: #ffe2b575 #ffffff0f;
}

.table-wrap::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.roster-table-wrap::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.timetable-wrap::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.attendance-book-table-wrap::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.attendance-v2-scrollbar-top::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.attendance-v2-table-wrap::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.assignment-table-wrap::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.mock-answer-grid-scroll::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.assignment-inline-scroll::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.assignment-inline-strip::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.assignment-detail-card-scroll::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.table-wrap::-webkit-scrollbar-track {
  background: #ffffff0f;
  border-radius: 999px;
}

.roster-table-wrap::-webkit-scrollbar-track {
  background: #ffffff0f;
  border-radius: 999px;
}

.timetable-wrap::-webkit-scrollbar-track {
  background: #ffffff0f;
  border-radius: 999px;
}

.attendance-book-table-wrap::-webkit-scrollbar-track {
  background: #ffffff0f;
  border-radius: 999px;
}

.attendance-v2-scrollbar-top::-webkit-scrollbar-track {
  background: #ffffff0f;
  border-radius: 999px;
}

.attendance-v2-table-wrap::-webkit-scrollbar-track {
  background: #ffffff0f;
  border-radius: 999px;
}

.assignment-table-wrap::-webkit-scrollbar-track {
  background: #ffffff0f;
  border-radius: 999px;
}

.mock-answer-grid-scroll::-webkit-scrollbar-track {
  background: #ffffff0f;
  border-radius: 999px;
}

.assignment-inline-scroll::-webkit-scrollbar-track {
  background: #ffffff0f;
  border-radius: 999px;
}

.assignment-inline-strip::-webkit-scrollbar-track {
  background: #ffffff0f;
  border-radius: 999px;
}

.assignment-detail-card-scroll::-webkit-scrollbar-track {
  background: #ffffff0f;
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: #ffe2b575 padding-box padding-box;
  border: 3px solid #0000;
  border-radius: 999px;
}

.roster-table-wrap::-webkit-scrollbar-thumb {
  background: #ffe2b575 padding-box padding-box;
  border: 3px solid #0000;
  border-radius: 999px;
}

.timetable-wrap::-webkit-scrollbar-thumb {
  background: #ffe2b575 padding-box padding-box;
  border: 3px solid #0000;
  border-radius: 999px;
}

.attendance-book-table-wrap::-webkit-scrollbar-thumb {
  background: #ffe2b575 padding-box padding-box;
  border: 3px solid #0000;
  border-radius: 999px;
}

.attendance-v2-scrollbar-top::-webkit-scrollbar-thumb {
  background: #ffe2b575 padding-box padding-box;
  border: 3px solid #0000;
  border-radius: 999px;
}

.attendance-v2-table-wrap::-webkit-scrollbar-thumb {
  background: #ffe2b575 padding-box padding-box;
  border: 3px solid #0000;
  border-radius: 999px;
}

.assignment-table-wrap::-webkit-scrollbar-thumb {
  background: #ffe2b575 padding-box padding-box;
  border: 3px solid #0000;
  border-radius: 999px;
}

.mock-answer-grid-scroll::-webkit-scrollbar-thumb {
  background: #ffe2b575 padding-box padding-box;
  border: 3px solid #0000;
  border-radius: 999px;
}

.assignment-inline-scroll::-webkit-scrollbar-thumb {
  background: #ffe2b575 padding-box padding-box;
  border: 3px solid #0000;
  border-radius: 999px;
}

.assignment-inline-strip::-webkit-scrollbar-thumb {
  background: #ffe2b575 padding-box padding-box;
  border: 3px solid #0000;
  border-radius: 999px;
}

.assignment-detail-card-scroll::-webkit-scrollbar-thumb {
  background: #ffe2b575 padding-box padding-box;
  border: 3px solid #0000;
  border-radius: 999px;
}

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

.roster-table {
  min-width: 1260px;
}

.data-table th, .data-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #ffffff14;
  padding: 14px 12px;
}

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

.roster-table td {
  vertical-align: middle;
}

.data-table th {
  color: var(--gold-strong);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
}

.class-schedule-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.class-schedule-form-grid > * {
  min-width: 0;
}

.class-schedule-form-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  display: flex;
}

.class-meeting-list, .class-meeting-card {
  gap: 16px;
  display: grid;
}

.class-time-select-group {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.class-time-select-group > * {
  min-width: 0;
}

.timetable-wrap {
  border-radius: 18px;
  overflow: auto;
}

.timetable-table {
  min-width: 980px;
}

.timetable-table th, .timetable-table td {
  vertical-align: top;
}

.timetable-cell {
  gap: 10px;
  min-height: 76px;
  display: grid;
}

.timetable-class-card {
  background: #ffffff0d;
  border: 1px solid #ffffff14;
  border-radius: 16px;
  gap: 4px;
  padding: 12px 13px;
  display: grid;
}

.timetable-class-card strong {
  font-size: .96rem;
}

.timetable-class-card span {
  color: var(--text-soft);
  font-size: .88rem;
}

.timetable-empty {
  color: var(--text-soft);
}

.class-edit-chip {
  cursor: pointer;
  color: var(--text);
  border: 0;
}

.class-directory-table {
  min-width: 1100px;
}

.student-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 2px;
}

.student-form-grid > * {
  min-width: 0;
}

.assignment-date-field {
  width: 100%;
  min-width: 0;
}

.students-top-grid > .panel-card, .students-roster-panel {
  min-width: 0;
}

.student-photo-panel {
  gap: 14px;
  margin-top: 20px;
  display: grid;
}

.student-photo-upload {
  justify-content: flex-start;
  align-items: center;
  width: fit-content;
  display: inline-flex;
}

.student-photo-upload input {
  display: none;
}

.student-photo-upload-button {
  min-height: 48px;
}

.student-photo-file-name {
  margin: 0;
}

.student-photo-preview {
  aspect-ratio: 4 / 5;
  background: #ffffff0a;
  border: 1px dashed #ffffff24;
  border-radius: 20px;
  width: 100%;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.student-photo-preview-image {
  object-fit: cover;
}

.student-photo-preview-placeholder {
  text-align: center;
  color: var(--text-soft);
  place-content: center;
  gap: 8px;
  padding: 24px;
  display: grid;
  position: absolute;
  inset: 0;
}

.student-photo-preview-placeholder strong {
  color: var(--text);
}

.table-subtle {
  color: var(--text-soft);
  font-size: .88rem;
}

.table-subtle.inline {
  display: inline;
}

.student-roster-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}

.table-action-button {
  color: var(--text);
  cursor: pointer;
  background: #ffffff0d;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  padding: 8px 12px;
  transition: transform .18s, background .18s, border-color .18s, opacity .18s;
}

.table-action-button:hover {
  background: #ffffff14;
  transform: translateY(-1px);
}

.table-action-button:disabled {
  opacity: .58;
  cursor: default;
  transform: none;
}

.table-action-button.danger {
  color: #ffc0c0;
  border-color: #ff848438;
}

.roster-status-select {
  border-radius: 12px;
  min-width: 116px;
  padding: 10px 12px;
}

.status-chip {
  color: var(--text);
  background: #ffffff14;
  border-radius: 999px;
  align-items: center;
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 700;
  display: inline-flex;
}

.modal-backdrop {
  z-index: 70;
  overscroll-behavior: contain;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #0407149e;
  justify-content: center;
  align-items: flex-start;
  padding: 28px;
  display: flex;
  position: fixed;
  inset: 0;
  overflow-y: auto;
}

.modal-card {
  border-radius: 28px;
  width: min(100%, 900px);
  max-height: none;
  margin: auto 0;
  padding: 28px;
  overflow: visible;
}

.student-edit-sheet {
  gap: 22px;
  width: min(100%, 1120px);
  display: grid;
}

.student-edit-sheet-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.student-edit-close {
  flex-shrink: 0;
}

.student-edit-sheet-form {
  gap: 22px;
}

.student-edit-sheet-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .85fr);
  align-items: start;
  gap: 22px;
  display: grid;
}

.student-edit-photo-panel {
  position: sticky;
  top: 0;
}

.student-edit-photo-preview {
  min-height: 340px;
}

.student-edit-sheet-actions {
  background: linear-gradient(#090d1f00, #090d1ff0 42%);
  padding-top: 8px;
  position: sticky;
  bottom: 0;
}

.modal-action-row {
  justify-content: flex-end;
  gap: 12px;
  display: flex;
}

.student-form-span-two {
  grid-column: 1 / -1;
}

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

.attendance-book-layout {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  display: grid;
}

.attendance-book-generator, .attendance-book-list, .attendance-book-summary {
  gap: 16px;
  display: grid;
}

.attendance-book-list-grid {
  gap: 12px;
  display: grid;
}

.attendance-book-list-card {
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: #ffffff0a;
  border: 1px solid #ffffff14;
  border-radius: 18px;
  gap: 6px;
  padding: 14px 16px;
  transition: transform .18s, border-color .18s, background .18s;
  display: grid;
}

.attendance-book-list-card:hover {
  border-color: var(--line-strong);
  background: #ffffff0f;
  transform: translateY(-1px);
}

.attendance-book-list-card.selected {
  background: #ffd78f1f;
  border-color: #ffd78fa6;
}

.attendance-book-list-card span {
  color: var(--text-soft);
  font-size: .9rem;
}

.attendance-book-summary {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  align-items: start;
}

.attendance-book-summary-copy strong, .attendance-book-meeting-head strong, .attendance-book-student-copy strong, .attendance-book-summary-copy p {
  margin: 0;
}

.attendance-book-summary-controls {
  gap: 12px;
  display: grid;
}

.attendance-book-table-wrap {
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  -webkit-overflow-scrolling: touch;
  overflow: auto;
}

.attendance-book-table {
  min-width: 1180px;
}

.attendance-book-table th, .attendance-book-table td {
  vertical-align: top;
}

.attendance-book-meeting-head {
  gap: 6px;
  min-width: 150px;
  display: grid;
}

.attendance-book-meeting-head span {
  color: var(--text-soft);
  white-space: nowrap;
  font-size: .86rem;
}

.attendance-book-meeting-settings {
  gap: 10px;
  margin-top: 6px;
  display: grid;
}

.attendance-book-setting-field {
  gap: 6px;
  display: grid;
}

.attendance-book-setting-field span {
  color: var(--text-soft);
  white-space: nowrap;
  font-size: .78rem;
}

.attendance-book-setting-field input {
  border-radius: 12px;
  min-width: 0;
  padding: 10px 12px;
}

.attendance-book-meeting-total {
  background: #ffffff0d;
  border-radius: 14px;
  gap: 4px;
  padding: 10px 12px;
  display: grid;
}

.attendance-book-meeting-total span {
  color: var(--text-soft);
  white-space: nowrap;
  font-size: .78rem;
}

.attendance-book-meeting-total strong {
  white-space: nowrap;
}

.attendance-book-student {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 200px;
  display: grid;
}

.attendance-book-student-photo {
  background: #ffffff0f;
  border-radius: 16px;
  place-items: center;
  width: 56px;
  height: 56px;
  font-weight: 800;
  display: grid;
  position: relative;
  overflow: hidden;
}

.attendance-book-name-cell {
  white-space: nowrap;
  min-width: 110px;
}

.attendance-book-student-copy {
  gap: 4px;
  display: grid;
}

.attendance-book-student-copy span {
  color: var(--text-soft);
  font-size: .86rem;
}

.attendance-book-score-stack {
  gap: 10px;
  min-width: 140px;
  display: grid;
}

.attendance-book-score-stack.single {
  min-width: 110px;
}

.attendance-book-score-stack label {
  gap: 6px;
  display: grid;
}

.attendance-book-score-stack span {
  color: var(--text-soft);
  white-space: nowrap;
  font-size: .8rem;
}

.attendance-book-score-input {
  border-radius: 12px;
  min-width: 0;
  padding: 10px 12px;
}

.attendance-book-total {
  color: #d8fff1;
  white-space: nowrap;
  background: #7ee8bc1f;
  border-radius: 14px;
  justify-content: center;
  min-width: 72px;
  padding: 10px 12px;
  display: inline-flex;
}

.attendance-book-total.under-cutoff {
  color: #ffd0d0;
  background: #ff818124;
}

.attendance-hub-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.attendance-hub-button {
  text-align: center;
  min-height: 88px;
}

.attendance-book-page-card {
  gap: 18px;
  display: grid;
}

.attendance-book-create-form {
  max-width: 720px;
}

.attendance-book-head-controls {
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  display: flex;
}

.attendance-book-head-actions {
  flex-shrink: 0;
  justify-content: flex-end;
  display: flex;
}

.attendance-book-head-copy {
  text-align: left;
  gap: 6px;
  display: grid;
}

.attendance-book-head-copy span {
  color: var(--text-soft);
  font-size: .9rem;
}

.attendance-book-head-fields {
  align-items: end;
  gap: 12px;
  display: flex;
}

.attendance-book-head-fields label {
  gap: 6px;
  min-width: 124px;
  display: grid;
}

.attendance-book-head-fields span {
  color: var(--text-soft);
  font-size: .82rem;
}

.attendance-state-option {
  white-space: nowrap;
  background: #ffffff0a;
  border: 1px solid #ffffff0f;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-width: 78px;
  padding: 8px 10px;
  display: inline-flex;
}

.attendance-state-option.selected {
  background: #ffd78f1f;
  border-color: #ffd78f8c;
}

.attendance-state-option input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.attendance-book-reason-input, .attendance-book-note-input {
  border-radius: 12px;
  min-width: 160px;
  padding: 10px 12px;
}

.attendance-v2-page {
  gap: 18px;
  display: grid;
}

.attendance-v2-summary-card, .attendance-v2-manage-card, .attendance-v2-table-card {
  gap: 16px;
  display: grid;
}

.attendance-v2-summary-card {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  align-items: start;
}

.attendance-v2-summary-copy {
  gap: 8px;
  display: grid;
}

.attendance-v2-summary-copy h2, .attendance-v2-summary-copy p {
  margin: 0;
}

.attendance-v2-day-summary-list {
  color: var(--text-soft);
  gap: 6px;
  font-size: .92rem;
  display: grid;
}

.attendance-v2-summary-actions {
  align-items: start;
  gap: 12px;
  display: grid;
}

.attendance-v2-manage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.attendance-v2-manage-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  display: grid;
}

.attendance-v2-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.attendance-v2-action-card {
  text-align: left;
  min-height: 112px;
  color: var(--text);
  align-content: start;
  gap: 8px;
  text-decoration: none;
  transition: transform .15s, border-color .15s, box-shadow .15s;
  display: grid;
}

.attendance-v2-action-card:hover {
  border-color: #ffd78f47;
  transform: translateY(-1px);
  box-shadow: 0 16px 28px #070a1a3d;
}

.attendance-v2-table-card {
  overflow: hidden;
}

.attendance-v2-scrollbar-top {
  overscroll-behavior-inline: auto;
  scroll-behavior: auto;
  touch-action: pan-x pinch-zoom;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  height: 14px;
  overflow: auto hidden;
}

.attendance-v2-scrollbar-top > div {
  height: 1px;
}

.attendance-v2-table-wrap {
  overscroll-behavior: auto;
  scroll-behavior: auto;
  scrollbar-gutter: stable both-edges;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  max-width: 100%;
  overflow: auto;
}

.attendance-v2-table {
  touch-action: pan-x pan-y pinch-zoom;
  border-collapse: separate;
  border-spacing: 0;
  color: #24314f;
  --sticky-col-1-width: 136px;
  --sticky-col-2-width: 98px;
  --sticky-col-3-width: 130px;
  width: max-content;
  min-width: 1760px;
}

.attendance-v2-table th, .attendance-v2-table td {
  vertical-align: middle;
  white-space: nowrap;
  text-align: center;
  background: #fbfdffeb;
  border-bottom: 1px solid #8aa0c733;
  border-right: 1px solid #8aa0c73d;
  padding: 10px 12px;
}

.attendance-v2-table thead th {
  z-index: 12;
  color: #1f2a45;
  background: linear-gradient(#f6f9fffa, #e8effcfa);
  position: sticky;
  top: 0;
  box-shadow: inset 0 -1px #849abe2e;
}

.attendance-v2-table tbody td {
  background: #fcfdfff0;
}

.attendance-v2-table tbody tr:nth-child(2n) td {
  background: #f5f9fff0;
}

.attendance-v2-table th:first-child, .attendance-v2-table td:first-child {
  border-left: 1px solid #8aa0c73d;
}

.sticky-col {
  z-index: 13;
  background: linear-gradient(#f5f8fffc, #e8eefafc);
  position: sticky;
  box-shadow: 1px 0 #8aa0c72e;
}

.attendance-v2-table tbody .sticky-col {
  z-index: 8;
  background: #f7fafffc;
}

.sticky-col-1 {
  min-width: var(--sticky-col-1-width);
  width: var(--sticky-col-1-width);
  left: 0;
}

.sticky-col-2 {
  left: var(--sticky-col-1-width);
  min-width: var(--sticky-col-2-width);
  width: var(--sticky-col-2-width);
}

.sticky-col-3 {
  left: calc(var(--sticky-col-1-width) + var(--sticky-col-2-width));
  min-width: var(--sticky-col-3-width);
  width: var(--sticky-col-3-width);
}

.attendance-v2-name-cell {
  text-align: center;
  font-weight: 700;
}

.attendance-v2-subject-head {
  text-align: center;
  justify-items: center;
  gap: 4px;
  display: grid;
}

.attendance-v2-subject-head span {
  color: #43557ad1;
  font-size: .8rem;
}

.attendance-v2-header-stack {
  text-align: center;
  place-items: center;
  gap: 8px;
  min-width: 140px;
  display: grid;
}

.attendance-v2-header-bulk-buttons {
  justify-items: center;
  gap: 6px;
  display: grid;
}

.attendance-v2-attendance-options {
  grid-auto-columns: minmax(40px, auto);
  grid-auto-flow: column;
  justify-content: center;
  align-items: start;
  gap: 12px;
  display: grid;
}

.attendance-v2-attendance-options-header {
  gap: 16px;
}

.attendance-v2-header-score-grid {
  grid-template-columns: repeat(2, minmax(70px, 1fr));
  gap: 6px;
  width: 100%;
  display: grid;
}

.attendance-v2-header-score-grid label {
  text-align: center;
  justify-items: center;
  gap: 4px;
  display: grid;
}

.attendance-v2-bulk-retry-label {
  place-items: center;
  gap: 4px;
  display: grid;
}

.attendance-v2-header-score-grid em {
  color: #43557ad1;
  font-size: .74rem;
  font-style: normal;
}

.attendance-v2-photo-button {
  appearance: none;
  cursor: pointer;
  background: none;
  border: 0;
  place-items: center;
  margin: 0 auto;
  padding: 0;
  display: grid;
}

.attendance-v2-photo-frame {
  background: linear-gradient(#f2f7fff5, #e6eefbeb);
  border-radius: 16px;
  place-items: center;
  width: 56px;
  height: 56px;
  font-weight: 800;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #90a4c738;
}

.attendance-v2-attendance-cell {
  text-align: center;
  place-items: center;
  gap: 6px;
  min-width: 120px;
  display: grid;
}

.attendance-v2-attendance-cell label, .attendance-v2-retry-check {
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.attendance-v2-attendance-cell label, .attendance-v2-attendance-options label {
  place-items: center;
  gap: 4px;
  display: grid;
}

.attendance-v2-check {
  --attendance-check-color: #30c26b;
  cursor: pointer;
  place-self: center;
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin: 0;
  display: block;
}

.attendance-v2-table input[type="checkbox"].attendance-v2-check {
  appearance: none;
  background: linear-gradient(#fffffffa, #ebf1fbf0);
  border: 1px solid #8697b875;
  border-radius: 7px;
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 22px;
  margin: 0 auto;
  padding: 0;
  transition: background .14s, border-color .14s, box-shadow .14s, transform .14s;
  position: relative;
  box-shadow: inset 0 1px #ffffffe6, 0 1px 2px #1c28481f;
}

.attendance-v2-table input[type="checkbox"].attendance-v2-check:after {
  content: "";
  opacity: 0;
  border: 2px solid #fff;
  border-width: 0 2px 2px 0;
  width: 5px;
  height: 10px;
  transition: opacity .12s, transform .12s;
  position: absolute;
  top: 4px;
  left: 7px;
  transform: rotate(42deg)scale(.78);
}

.attendance-v2-table input[type="checkbox"].attendance-v2-check:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--attendance-check-color), #fff 18%);
  box-shadow: inset 0 1px #ffffffeb, 0 3px 8px #1c284829;
}

.attendance-v2-table input[type="checkbox"].attendance-v2-check:checked {
  border-color: color-mix(in srgb, var(--attendance-check-color), #1b2543 10%);
  background: linear-gradient(180deg, #ffffff29, #00000014),
    var(--attendance-check-color);
  box-shadow: inset 0 1px 0 #ffffff47,
    0 4px 10px color-mix(in srgb, var(--attendance-check-color), transparent 70%);
}

.attendance-v2-table input[type="checkbox"].attendance-v2-check:checked:after {
  opacity: 1;
  transform: rotate(42deg)scale(1);
}

.attendance-v2-table input[type="checkbox"].attendance-v2-check:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--attendance-check-color), transparent 68%);
  outline-offset: 2px;
}

.attendance-v2-table input[type="checkbox"].attendance-v2-check:disabled {
  cursor: not-allowed;
  opacity: .52;
  box-shadow: none;
}

.attendance-v2-check-present {
  --attendance-check-color: #28bf6f;
}

.attendance-v2-check-absent {
  --attendance-check-color: #6b63e8;
}

.attendance-v2-check-retry {
  --attendance-check-color: #f0a33b;
}

.attendance-v2-check-caption {
  color: #43557ad6;
  font-size: .72rem;
  line-height: 1;
  display: block;
}

.attendance-v2-attendance-cell small {
  color: #43557ad6;
  font-size: .74rem;
}

.attendance-v2-dt-cell, .attendance-v2-homework-cell, .attendance-v2-assignment-cell, .attendance-v2-return-cell, .attendance-v2-modal-form {
  text-align: center;
  place-items: center;
  gap: 8px;
  display: grid;
}

.attendance-v2-return-cell {
  box-sizing: border-box;
  width: 100%;
}

.attendance-v2-dt-cell {
  grid-template-columns: auto auto;
  gap: 10px;
  min-width: 136px;
}

.attendance-v2-header-score-input {
  width: 4.4rem !important;
  min-width: 4.4rem !important;
  padding: 4px 6px !important;
}

.attendance-v2-student-score-input {
  width: 5rem !important;
  min-width: 5rem !important;
  padding: 4px 6px !important;
}

.attendance-v2-dt-cell.pass input {
  color: #1f6a43;
  background: #e1f6e6f5;
  border-color: #45a55d94;
}

.attendance-v2-dt-cell.fail input {
  color: #9a5a17;
  background: #fff1dcf5;
  border-color: #eb99419e;
}

.attendance-v2-homework-cell {
  grid-template-columns: minmax(88px, auto) minmax(110px, 1fr);
  gap: 8px;
  min-width: 220px;
}

.attendance-v2-assignment-head {
  min-width: 140px;
}

.attendance-v2-assignment-detail-link {
  color: #314a7c;
  white-space: nowrap;
  background: #ffffffe6;
  border: 1px solid #3a53882e;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
  padding: .35rem .65rem;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .12s, border-color .12s, color .12s, transform .12s;
  display: inline-flex;
}

.attendance-v2-assignment-detail-link:hover, .attendance-v2-assignment-detail-link:focus-visible {
  color: #233761;
  background: #ecf4fffa;
  border-color: #3a538847;
  transform: translateY(-1px);
}

.attendance-v2-assignment-cell {
  white-space: normal;
  gap: 4px;
  min-width: 140px;
  line-height: 1.35;
}

.attendance-v2-assignment-cell strong, .attendance-v2-assignment-cell span {
  margin: 0;
}

.attendance-v2-assignment-cell strong {
  color: #24314f;
  font-size: .9rem;
}

.attendance-v2-assignment-cell span {
  color: #43557ad1;
  font-size: .76rem;
}

.attendance-v2-assignment-cell.completed strong {
  color: #1f6a43;
}

.attendance-v2-assignment-cell.partial strong {
  color: #a16419;
}

.attendance-v2-assignment-cell.pending strong, .attendance-v2-assignment-cell.empty strong {
  color: #43557ae0;
}

.attendance-v2-retry-check {
  place-items: center;
  gap: 4px;
  margin: 0;
  display: grid;
}

.attendance-v2-highlight-cell {
  background: none !important;
}

.attendance-v2-return-select {
  width: 100%;
}

.attendance-v2-return-cell-alert {
  background: #fff0d6eb;
  border: 1.5px solid #eb9941c7;
  border-radius: 14px;
  padding: 10px;
}

.attendance-v2-return-datetime-row {
  grid-template-columns: minmax(0, 1fr) 88px 88px;
  gap: 8px;
  width: 100%;
  display: grid;
}

.attendance-v2-text-input, .attendance-v2-comment, .attendance-v2-table select, .attendance-v2-table input, .attendance-v2-modal input, .attendance-v2-modal select, .attendance-v2-modal textarea {
  box-sizing: border-box;
  text-align: center;
  color: #24314f;
  background: #fffffff5;
  border: 1px solid #93a7c857;
  width: 100%;
  min-width: 0;
  box-shadow: inset 0 1px 2px #677da514;
}

.attendance-v2-comment {
  resize: vertical;
  align-self: stretch;
  min-height: 88px;
}

.attendance-v2-modal-overlay {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 60;
  background: #040916ad;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.attendance-v2-modal {
  background: linear-gradient(#0f142efa, #0b0f26fa);
  border: 1px solid #ffffff14;
  border-radius: 24px;
  width: min(100%, 780px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  box-shadow: 0 30px 80px #00000061;
}

.attendance-v2-modal-large {
  width: min(100%, 1080px);
}

.attendance-v2-modal-header, .attendance-v2-modal-body {
  padding: 18px 20px;
}

.attendance-v2-modal-header {
  border-bottom: 1px solid #ffffff14;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.attendance-v2-modal-header h3 {
  margin: 0;
}

.attendance-v2-report-list, .attendance-v2-remaining-list {
  gap: 12px;
  margin-bottom: 16px;
  display: grid;
}

.attendance-v2-report-modal-layout {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 18px;
  display: grid;
}

.attendance-v2-report-student-list {
  gap: 10px;
  max-height: 70vh;
  padding-right: 4px;
  display: grid;
  overflow-y: auto;
}

.attendance-v2-report-student-item {
  text-align: left;
  color: var(--text);
  background: #ffffff0f;
  border: 1px solid #9db5da38;
  border-radius: 18px;
  gap: 6px;
  padding: 14px 16px;
  transition: border-color .12s, background-color .12s, transform .12s;
  display: grid;
}

.attendance-v2-report-student-item:hover, .attendance-v2-report-student-item:focus-visible {
  background: #ffffff1c;
  border-color: #7699dd6b;
  transform: translateY(-1px);
}

.attendance-v2-report-student-item.selected {
  background: #7699dd24;
  border-color: #7699dd8f;
}

.attendance-v2-report-student-item strong {
  font-size: .96rem;
}

.attendance-v2-report-student-item span {
  color: var(--text-soft);
  font-size: .84rem;
}

.attendance-v2-report-preview-panel {
  align-content: start;
  gap: 16px;
  display: grid;
}

.attendance-v2-report-recipient-picker, .attendance-v2-report-recipient-options {
  gap: 10px;
  display: grid;
}

.attendance-v2-report-recipient-options label {
  color: var(--text);
  background: #ffffff0f;
  border: 1px solid #9db5da33;
  border-radius: 16px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  display: flex;
}

.attendance-v2-report-recipient-options label.selected {
  background: #7699dd24;
  border-color: #7699dd85;
}

.attendance-v2-rcs-preview {
  gap: 12px;
  display: grid;
}

.attendance-v2-rcs-preview-header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.attendance-v2-rcs-preview-header span {
  color: var(--text-soft);
  font-size: .84rem;
}

.attendance-v2-rcs-bubble {
  background: linear-gradient(#6c8cdb38, #486ec424);
  border: 1px solid #7699dd52;
  border-radius: 24px 24px 24px 10px;
  gap: 14px;
  padding: 18px;
  display: grid;
}

.attendance-v2-rcs-bubble pre {
  white-space: pre-wrap;
  font: inherit;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

.attendance-v2-rcs-actions {
  justify-content: flex-start;
  display: flex;
}

.attendance-v2-rcs-link-button {
  color: #fff;
  background: linear-gradient(135deg, #5885ff, #6e63ff);
  border: 0;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: .8rem 1.15rem;
  font-weight: 700;
  display: inline-flex;
  box-shadow: 0 10px 18px #3456b438;
}

.attendance-v2-rcs-link-button:disabled {
  opacity: .62;
  cursor: wait;
}

.attendance-v2-report-card, .attendance-v2-remaining-card {
  background: #ffffff0d;
  border-radius: 18px;
  gap: 8px;
  padding: 14px;
  display: grid;
}

.attendance-v2-report-card pre {
  white-space: pre-wrap;
  font: inherit;
  color: var(--text-soft);
  margin: 0;
}

.attendance-v2-report-note {
  color: var(--text-soft);
  margin: 0 0 16px;
  font-size: .92rem;
}

@media (max-width: 900px) {
  .attendance-v2-report-modal-layout {
    grid-template-columns: 1fr;
  }

  .attendance-v2-report-student-list {
    max-height: none;
  }

  .attendance-v2-rcs-preview-header {
    flex-direction: column;
    align-items: start;
  }
}

.attendance-v2-photo-modal-body {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  display: grid;
}

.attendance-v2-photo-modal-preview {
  aspect-ratio: 1;
  background: #ffffff0f;
  border-radius: 22px;
  place-items: center;
  display: grid;
  position: relative;
  overflow: hidden;
}

.attendance-v2-photo-modal-meta {
  gap: 12px;
  display: grid;
}

.weekly-report-page {
  background: radial-gradient(circle at 0 0, #796aff2e, #0000 32%), radial-gradient(circle at 100% 0, #48a1ff2e, #0000 28%), linear-gradient(#eef4ff 0%, #f8fbff 45%, #fff 100%);
  min-height: 100vh;
  padding: 32px 18px 48px;
  position: relative;
  overflow: hidden;
}

.weekly-report-watermark {
  pointer-events: none;
  opacity: .42;
  transform-origin: center;
  z-index: 0;
  align-content: center;
  gap: 96px;
  display: grid;
  position: fixed;
  inset: -12% -14%;
  transform: rotate(-24deg);
}

.weekly-report-watermark-row {
  justify-content: space-between;
  align-items: center;
  gap: 180px;
  display: flex;
}

.weekly-report-watermark-row:nth-child(2n) {
  padding-left: 180px;
}

.weekly-report-watermark-logo {
  opacity: .98;
  filter: grayscale(.02) contrast(1.12) saturate(1.02);
  mix-blend-mode: multiply;
  -webkit-user-select: none;
  user-select: none;
  width: 180px;
  height: auto;
}

.weekly-report-shell {
  z-index: 1;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  position: relative;
}

.weekly-report-hero, .weekly-report-card {
  isolation: isolate;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: #ffffff85;
  border: 1px solid #9db5da3d;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 46px #1f39671f;
}

.weekly-report-hero {
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 20px;
  padding: 28px;
  display: grid;
}

.weekly-report-eyebrow {
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #3e5d9cd1;
  margin: 0;
  font-size: .78rem;
  font-weight: 700;
}

.weekly-report-brand-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  display: flex;
}

.weekly-report-brand-logo {
  object-fit: contain;
  opacity: 1;
  filter: saturate(1.08) contrast(1.08);
  width: 180px;
  height: auto;
}

.weekly-report-hero h1 {
  color: #1a2b4f;
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 1.16;
}

.weekly-report-hero p {
  color: #354a71e6;
  margin: 6px 0 0;
}

.weekly-report-student-card {
  text-align: center;
  background: linear-gradient(#f1f7fff5, #fbfdfff0);
  border: 1px solid #a7bbe052;
  border-radius: 20px;
  justify-items: center;
  gap: 14px;
  padding: 18px;
  display: grid;
}

.weekly-report-student-photo {
  aspect-ratio: 1;
  color: #33518f;
  background: linear-gradient(135deg, #dce8ff, #f3f8ff);
  border-radius: 24px;
  place-items: center;
  width: 128px;
  font-size: 2.6rem;
  font-weight: 800;
  display: grid;
  position: relative;
  overflow: hidden;
}

.weekly-report-student-photo img {
  object-fit: cover;
}

.weekly-report-student-meta {
  gap: 6px;
  display: grid;
}

.weekly-report-student-meta strong {
  color: #1f3057;
  font-size: 1.08rem;
}

.weekly-report-student-meta span {
  color: #3b5077e0;
  font-size: .94rem;
}

.weekly-report-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  display: grid;
}

.weekly-report-card {
  gap: 16px;
  padding: 22px;
  display: grid;
}

.weekly-report-card h2 {
  color: #223763;
  margin: 0;
  font-size: 1.1rem;
}

.weekly-report-summary-list {
  gap: 12px;
  display: grid;
}

.weekly-report-summary-list > div {
  background: #f5f9ffeb;
  border: 1px solid #afc2e242;
  border-radius: 16px;
  gap: 4px;
  padding: 12px 14px;
  display: grid;
}

.weekly-report-summary-list span {
  color: #4b618bd6;
  font-size: .82rem;
}

.weekly-report-summary-list strong {
  color: #1c3059;
}

.weekly-report-comment {
  white-space: pre-wrap;
  color: #2b3d61eb;
  min-height: 92px;
  margin: 0;
  line-height: 1.7;
}

.weekly-report-dt-chart-wrap {
  gap: 12px;
  display: grid;
}

.weekly-report-dt-chart {
  grid-auto-columns: minmax(86px, 1fr);
  grid-auto-flow: column;
  align-items: end;
  gap: 12px;
  padding-bottom: 4px;
  display: grid;
  overflow-x: auto;
}

.weekly-report-dt-bar-card {
  text-align: center;
  justify-items: center;
  gap: 8px;
  min-width: 86px;
  display: grid;
}

.weekly-report-dt-bar-card strong {
  color: #223763;
  font-size: .88rem;
}

.weekly-report-dt-bar-card span {
  color: #384c73eb;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.25;
}

.weekly-report-dt-bar-card small, .weekly-report-dt-chart-note {
  color: #536589d6;
  font-size: .76rem;
}

.weekly-report-dt-bar-track {
  background: linear-gradient(#f5f9fffa, #ebf2fff5);
  border: 1px solid #abbddd47;
  border-radius: 18px;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  height: 180px;
  padding: 10px;
  display: flex;
  position: relative;
}

.weekly-report-dt-bar {
  z-index: 1;
  border-radius: 14px 14px 10px 10px;
  width: 100%;
  min-height: 8%;
  position: relative;
  box-shadow: 0 10px 20px #283f7124;
}

.weekly-report-dt-bar.pass {
  background: linear-gradient(#74d991 0%, #29a35e 100%);
}

.weekly-report-dt-bar.fail {
  background: linear-gradient(#ffc47a 0%, #f08a23 100%);
}

.weekly-report-dt-bar.neutral {
  background: linear-gradient(#a8bcdf 0%, #6f8fc0 100%);
}

.weekly-report-dt-cutoff-line {
  z-index: 3;
  pointer-events: none;
  border-top: 2px dashed #e88018e6;
  position: absolute;
  left: 8px;
  right: 8px;
}

.weekly-report-dt-cutoff-line span {
  color: #b35f04;
  white-space: nowrap;
  font-size: .7rem;
  font-weight: 700;
  position: absolute;
  top: -1.1rem;
  right: 0;
}

.weekly-report-dt-chart-current {
  grid-auto-columns: minmax(110px, 1fr);
}

.weekly-report-dt-bar-card-current {
  min-width: 110px;
}

.weekly-report-day-list, .weekly-report-meeting-list, .weekly-report-assignment-list {
  gap: 14px;
  display: grid;
}

.weekly-report-day-card, .weekly-report-meeting-card, .weekly-report-assignment-card {
  background: #f9fcfff5;
  border: 1px solid #a8bcdc4d;
  border-radius: 18px;
}

.weekly-report-day-card {
  gap: 14px;
  padding: 16px;
  display: grid;
}

.weekly-report-day-header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.weekly-report-day-header > div {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.weekly-report-day-header strong {
  color: #203663;
}

.weekly-report-day-header small {
  color: #4c6088d1;
}

.weekly-report-day-body {
  gap: 12px;
  display: grid;
}

.weekly-report-day-body > p, .weekly-report-meeting-note {
  color: #32476de6;
  margin: 0;
}

.weekly-report-day-body > p span {
  color: #39517e;
  margin-right: 8px;
  font-weight: 700;
  display: inline-block;
}

.weekly-report-meeting-card {
  gap: 12px;
  padding: 14px;
  display: grid;
}

.weekly-report-meeting-card header {
  gap: 4px;
  display: grid;
}

.weekly-report-meeting-card header strong {
  color: #21365f;
}

.weekly-report-meeting-card header span {
  color: #4b6089e0;
  font-size: .9rem;
}

.weekly-report-meeting-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.weekly-report-meeting-stats > div {
  background: #f0f6ffeb;
  border-radius: 14px;
  gap: 4px;
  padding: 10px 12px;
  display: grid;
}

.weekly-report-meeting-stats span {
  color: #4c628de0;
  font-size: .78rem;
}

.weekly-report-meeting-stats strong {
  color: #21385f;
}

.weekly-report-badge {
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 6px 12px;
  font-size: .8rem;
  font-weight: 700;
  display: inline-flex;
}

.weekly-report-badge.present {
  color: #1d7b43;
  background: #37af6a24;
}

.weekly-report-badge.absent {
  color: #7f2fad;
  background: #b05cd424;
}

.weekly-report-badge.pending {
  color: #486287;
  background: #7d92b524;
}

.weekly-report-badge.warning {
  color: #a85f00;
  background: #f1993629;
}

.weekly-report-score-pass {
  color: #147848;
}

.weekly-report-score-fail {
  color: #c26d00;
}

.weekly-report-assignment-card {
  gap: 6px;
  padding: 14px;
  display: grid;
}

.weekly-report-assignment-card strong {
  color: #1d335c;
}

.weekly-report-assignment-card span, .weekly-report-assignment-card small {
  color: #40547ae0;
}

.weekly-report-assignment-card.submitted, .weekly-report-assignment-card.sent {
  background: #f0fbf4f2;
  border-color: #4eb07b47;
}

.weekly-report-assignment-card.partial {
  background: #fff7e9f5;
  border-color: #ecaa534d;
}

.weekly-report-assignment-card.pending, .weekly-report-assignment-card.empty {
  background: #f8fbfff5;
  border-color: #afc2e24d;
}

.weekly-report-empty {
  color: #4e6080e0;
  margin: 0;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  inset: 0;
}

.checkin-screen {
  min-height: 100vh;
  padding: 112px 28px 28px;
  display: block;
}

.checkin-stage {
  gap: 20px;
  width: min(100%, 780px);
  display: grid;
}

.checkin-stage.minimal {
  justify-items: center;
  width: min(100%, 460px);
  margin: 0 auto;
}

.checkin-brand {
  place-items: center;
  min-height: 108px;
  display: grid;
}

.checkin-clock {
  z-index: 20;
  background: linear-gradient(155deg, #797aff33, #ffffff08 34%, #341c66c2);
  border: 1px solid #aaaeff2e;
  border-radius: 18px;
  justify-items: end;
  gap: 4px;
  padding: 12px 14px;
  display: grid;
  position: fixed;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  box-shadow: 0 16px 34px #0003;
}

.checkin-clock strong {
  color: var(--text);
  font-size: .92rem;
  font-weight: 700;
}

.checkin-clock span {
  color: var(--gold-strong);
  letter-spacing: .04em;
  font-size: 1.02rem;
  font-weight: 800;
}

.checkin-home-button {
  z-index: 20;
  min-width: 76px;
  min-height: 48px;
  color: var(--text);
  cursor: pointer;
  background: linear-gradient(155deg, #ffffff1a, #341c66c2);
  border: 1px solid #aaaeff33;
  border-radius: 18px;
  font-weight: 800;
  position: fixed;
  top: clamp(14px, 3vw, 28px);
  left: clamp(14px, 3vw, 28px);
  box-shadow: 0 16px 34px #0003;
}

.checkin-home-button:hover {
  color: var(--gold-strong);
  border-color: #ffe2b55c;
}

.checkin-logo {
  width: min(100%, 360px);
  height: auto;
}

.kiosk-shell {
  overflow: hidden;
}

.kiosk-minimal {
  text-align: center;
  width: 100%;
  max-width: 440px;
  padding: 26px;
}

.kiosk-form {
  gap: 16px;
}

.kiosk-password-input {
  text-align: center;
  letter-spacing: .18em;
  border-radius: 22px;
  min-height: 72px;
  font-size: 1.15rem;
}

.kiosk-password-input.error {
  border-color: #ff85a38c;
  box-shadow: 0 0 0 1px #ff85a333;
}

.kiosk-keypad {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.kiosk-keypad-button {
  min-height: 68px;
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  background: linear-gradient(150deg, #ffffff1f, #12183ee0);
  border: 1px solid #ffe2b52e;
  border-radius: 18px;
  font-size: 1.65rem;
  font-weight: 900;
  box-shadow: 0 14px 30px #0000002e;
}

.kiosk-keypad-button:hover, .kiosk-keypad-button:focus-visible {
  color: var(--gold-strong);
  border-color: #ffe2b56b;
}

.kiosk-keypad-button:active {
  transform: translateY(1px);
}

.kiosk-keypad-button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.kiosk-keypad-command {
  letter-spacing: 0;
  font-size: 1rem;
}

.checkin-feedback-slot {
  margin-top: 10px;
}

.checkin-feedback-slot.active {
  margin-top: 18px;
}

.checkin-result {
  background: #ffffff0a;
  border-radius: 24px;
  align-items: center;
  gap: 18px;
  padding: 22px;
  display: grid;
}

.checkin-result.success {
  border: 1px solid #7ed4a73d;
}

.checkin-result.success .checkin-ring {
  border-color: #7ff1b252;
}

.checkin-result.repeat {
  border: 1px solid #f1cb873d;
}

.checkin-result.error {
  background: linear-gradient(155deg, #82214d38, #ffffff05 28%, #2c153ce6);
  border: 1px solid #ff85a347;
}

.checkin-animation {
  width: 94px;
  height: 94px;
  position: relative;
}

.checkin-ring, .checkin-core {
  border-radius: 50%;
  position: absolute;
  inset: 0;
}

.checkin-ring {
  border: 2px solid #ffe2b547;
  animation: 1.8s ease-out infinite kioskPulse;
}

.checkin-ring.ring-two {
  animation-delay: .35s;
}

.checkin-animation.error .checkin-ring {
  border-color: #ff85a35c;
  animation-name: kioskPulseError;
}

.checkin-core {
  color: #261506;
  background: linear-gradient(135deg, #f9e0b0eb, #c98c42f0);
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  display: grid;
  inset: 16px;
  box-shadow: 0 18px 44px #0000003d;
}

.checkin-result.success .checkin-core {
  color: #08391e;
  background: linear-gradient(135deg, #b3ffd4fa, #2bc277f0);
}

.checkin-core.error {
  color: #fff4f7;
  background: linear-gradient(135deg, #ffacc4f5, #df4878f0);
}

.checkin-copy h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.checkin-copy p {
  margin: 0;
}

.checkin-copy p + p {
  margin-top: 8px;
}

.checkin-countdown {
  color: var(--gold-strong);
  font-weight: 800;
}

.checkin-actions {
  justify-content: center;
  margin-top: 14px;
  display: flex;
}

.checkin-secondary-button {
  min-height: 50px;
}

.change-password-form {
  text-align: left;
  gap: 12px;
  margin-top: 16px;
  display: grid;
}

.inline-form-error, .inline-form-success {
  margin: 12px 0 0;
  font-size: .95rem;
}

.inline-form-error {
  color: #ffbfd3;
}

.inline-form-success {
  color: #c8ffe3;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

@keyframes kioskPulse {
  0% {
    opacity: .95;
    transform: scale(.7);
  }

  70% {
    opacity: 0;
    transform: scale(1.12);
  }

  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@keyframes kioskPulseError {
  0% {
    opacity: .95;
    transform: scale(.72);
  }

  70% {
    opacity: 0;
    transform: scale(1.08);
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

.score-ring {
  gap: 6px;
  margin-top: 18px;
  display: grid;
}

.score-ring strong {
  font-size: 2.4rem;
}

.timeline-column {
  gap: 18px;
  display: grid;
}

.timeline-card {
  position: relative;
  overflow: hidden;
}

.timeline-card:before {
  content: "";
  background: linear-gradient(#f6d48f, #88602f);
  width: 5px;
  position: absolute;
  inset: 0 auto 0 0;
}

.bar-list {
  gap: 16px;
  display: grid;
}

.bar-item {
  gap: 8px;
  display: grid;
}

.bar-label {
  justify-content: space-between;
  display: flex;
}

.bar-track {
  background: #ffffff14;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.bar-fill {
  background: linear-gradient(135deg, #f6d893, #c4863e);
  border-radius: 999px;
  height: 100%;
}

.role-tab-row {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}

.tab-button {
  color: var(--text-soft);
  border: 1px solid var(--line);
  background: #ffffff0d;
  border-radius: 999px;
  padding: 12px 16px;
}

.tab-button.active {
  color: var(--text);
  border-color: var(--line-strong);
  background: #ffe0b124;
}

.portal-preview-grid {
  grid-template-columns: 1.25fr .75fr;
  align-items: start;
}

.desktop-preview {
  overflow: hidden;
}

.window-dots {
  gap: 8px;
  margin-bottom: 18px;
  display: flex;
}

.window-dots span {
  background: #ffffff29;
  border-radius: 999px;
  width: 12px;
  height: 12px;
}

.desktop-preview-grid {
  grid-template-columns: 270px 1fr;
  gap: 18px;
  display: grid;
}

.desktop-preview-sidebar {
  border-right: 1px solid #ffffff14;
  padding-right: 18px;
}

.desktop-preview-main {
  gap: 18px;
  display: grid;
}

.phone-frame {
  background: linear-gradient(#1f1f25f5, #090b10fa);
  border-radius: 36px;
  padding: 14px;
}

.phone-notch {
  background: #ffffff1f;
  border-radius: 999px;
  width: 110px;
  height: 28px;
  margin: 0 auto 12px;
}

.phone-screen {
  background: radial-gradient(circle at 100% 0, #f1cb872e, #0000 30%), linear-gradient(#102038, #0a1524 72%, #08111c);
  border-radius: 28px;
  min-height: 560px;
  padding: 20px;
}

.shortcut-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  display: grid;
}

.shortcut-tile {
  text-align: center;
  place-items: center;
  min-height: 92px;
  font-weight: 700;
  display: grid;
}

@media (max-width: 1240px) {
  .auth-screen, .dashboard-shell, .portal-preview-grid, .desktop-preview-grid, .stats-grid, .three-column-grid, .card-grid, .notice-grid, .two-column-grid, .students-top-grid, .student-form-grid, .class-schedule-form-grid, .assignment-setting-grid, .assignment-config-grid, .class-time-select-group {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    position: relative;
  }

  .desktop-preview-sidebar {
    border-bottom: 1px solid #ffffff14;
    border-right: 0;
    padding-bottom: 18px;
    padding-right: 0;
  }
}

@media (max-width: 820px) {
  .auth-screen, .simple-auth-screen, .page-shell, .hero-panel, .auth-card, .simple-auth-card, .hero-banner, .panel-card {
    padding: 22px;
  }

  .role-grid, .shortcut-grid, .compact-grid {
    grid-template-columns: 1fr;
  }

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

  .button-row {
    flex-direction: column;
  }

  .mobile-shell-bar {
    padding: 12px 14px;
  }

  .sidebar {
    width: min(320px, 100vw - 18px);
  }

  .student-form-span-two {
    grid-column: auto;
  }

  .roster-table-wrap {
    max-height: min(56vh, 460px);
  }

  .roster-table {
    min-width: 1120px;
  }
}

@media (max-width: 640px) {
  .simple-auth-card {
    width: 100%;
  }

  .login-logo-wrap {
    min-height: 96px;
  }

  .login-logo {
    width: min(100%, 260px);
  }

  .roster-table-wrap {
    max-height: min(52vh, 400px);
  }

  .roster-table {
    min-width: 980px;
  }

  .student-roster-actions {
    min-width: 124px;
  }

  .modal-backdrop {
    padding: 14px;
  }

  .modal-card {
    max-height: calc(100vh - 28px);
    padding: 22px;
  }

  .modal-action-row {
    flex-direction: column-reverse;
  }

  .student-edit-sheet-header, .student-edit-sheet-grid {
    grid-template-columns: 1fr;
  }

  .student-edit-sheet-header {
    align-items: stretch;
  }

  .student-edit-close {
    width: 100%;
  }

  .student-edit-photo-panel {
    position: static;
  }

  .student-edit-photo-preview {
    min-height: 260px;
  }
}

.student-week-grid, .student-board-stack {
  gap: 18px;
  display: grid;
}

.student-filter-shell, .student-empty-state {
  gap: 12px;
  display: grid;
}

.student-filter-summary {
  color: var(--text-soft);
  margin: 0;
  line-height: 1.6;
}

.student-empty-state strong, .student-empty-state p {
  margin: 0;
}

.student-card {
  border-radius: 28px;
  gap: 18px;
  padding: 26px;
  display: grid;
}

.student-card-top, .student-footer, .student-actions, .student-image-grid {
  gap: 14px;
  display: grid;
}

.student-card-top, .student-footer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.student-card-top {
  align-items: start;
}

.student-status, .student-meta {
  color: var(--text-soft);
  justify-self: end;
  font-size: .92rem;
}

.student-card h2, .student-image-card figcaption, .student-detail strong {
  margin: 0;
}

.student-card-copy, .student-detail p {
  color: var(--text-soft);
  margin: 0;
  line-height: 1.7;
}

.student-detail {
  background: #ffffff08;
  border: 1px solid #ffffff0f;
  border-radius: 20px;
  gap: 10px;
  padding: 16px 18px;
  display: grid;
}

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

.recording-submit-button {
  color: #072a23;
  background: linear-gradient(135deg, #7ee7c8, #2f9f89);
}

.batch-submit-button {
  color: #f8fbff;
  background: linear-gradient(135deg, #9cc4ff, #5868f2);
  min-width: 220px;
}

.shadowing-batch-submit-panel {
  justify-items: start;
  gap: 12px;
  display: grid;
}

.upload-field {
  gap: 10px;
  display: grid;
}

.upload-field span {
  font-size: .92rem;
  font-weight: 700;
}

.student-audio-player {
  width: 100%;
}

.student-feedback {
  border-radius: 16px;
  margin: 0;
  padding: 12px 14px;
  font-size: .94rem;
  line-height: 1.6;
}

.student-feedback.info {
  color: #c9ddff;
  background: #6daeff1f;
}

.student-feedback.success {
  color: #d6f8e4;
  background: #73d69e1f;
}

.student-feedback.error {
  color: #ffd8d8;
  background: #ff81811f;
}

.shadowing-report-card {
  gap: 14px;
}

.shadowing-report-card.compact {
  width: 100%;
  max-width: none;
  padding: 14px 16px;
}

.shadowing-report-error {
  border-color: #ff81813d;
}

.shadowing-report-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

.shadowing-report-header .role-pill {
  white-space: nowrap;
  flex: none;
  min-width: max-content;
}

.shadowing-total-score-pill {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  flex: none;
  min-width: max-content;
  line-height: 1;
  display: inline-flex;
}

.shadowing-report-header p, .shadowing-report-summary, .shadowing-report-list p {
  margin: 0;
}

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

.shadowing-score-card {
  border-radius: 18px;
  gap: 8px;
  padding: 12px 14px;
  display: grid;
}

.shadowing-score-card.featured {
  background: linear-gradient(145deg, #699cff2e, #906aff1f);
  border: 1px solid #91b3ff38;
  grid-column: 1 / -1;
}

.shadowing-score-card-head {
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  display: flex;
}

.shadowing-score-card-head span {
  color: var(--text-soft);
  white-space: nowrap;
  font-size: .82rem;
}

.shadowing-score-card-head strong {
  white-space: nowrap;
  font-size: 1.08rem;
}

.shadowing-score-meter {
  background: #ffffff14;
  border-radius: 999px;
  height: 11px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 2px #0d122247;
}

.shadowing-score-fill {
  border-radius: inherit;
  position: absolute;
  inset: 0 auto 0 0;
}

.shadowing-score-fill.featured, .shadowing-score-fill.good {
  background: linear-gradient(90deg, #7be4a2fa, #34c97beb);
}

.shadowing-score-fill.mid {
  background: linear-gradient(90deg, #76b4fff5, #616fffeb);
}

.shadowing-score-fill.low {
  background: linear-gradient(90deg, #ffb267f5, #ff7c54eb);
}

.shadowing-score-delta {
  white-space: nowrap;
  font-size: .76rem;
  line-height: 1.2;
}

.shadowing-score-delta.positive {
  color: #a5efc0;
}

.shadowing-score-delta.negative {
  color: #ffb49b;
}

.shadowing-score-delta.neutral {
  color: var(--text-soft);
}

.shadowing-report-summary {
  color: #f4f0ff;
  line-height: 1.7;
}

.shadowing-report-meta {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.shadowing-report-meta span, .shadowing-comparison-note {
  color: var(--text-soft);
  font-size: .88rem;
}

.shadowing-report-list {
  gap: 8px;
  display: grid;
}

.shadowing-report-list ul {
  color: var(--text-soft);
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
  display: grid;
}

.shadowing-history-chart {
  gap: 14px;
  display: grid;
  overflow: hidden;
}

.shadowing-history-chart-head {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.shadowing-history-chart-head span {
  color: var(--text-soft);
  font-size: .9rem;
}

.shadowing-history-chart svg {
  width: 100%;
  min-height: 240px;
}

.shadowing-history-chart line {
  stroke: #e2e8f038;
  stroke-width: 2px;
}

.shadowing-history-chart polyline {
  fill: none;
  stroke: #7ee7c8;
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shadowing-history-chart circle {
  fill: #f8fbff;
  stroke: #2f9f89;
  stroke-width: 3px;
}

.shadowing-history-chart text {
  fill: var(--text);
  text-anchor: middle;
  font-size: 12px;
  font-weight: 800;
}

.shadowing-history-chart .shadowing-history-axis-label {
  fill: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
}

.shadowing-history-axis-note {
  color: var(--text-soft);
  margin: 0;
  font-size: .86rem;
  line-height: 1.5;
}

.shadowing-history-list {
  gap: 10px;
  display: grid;
}

.shadowing-history-item {
  display: block;
}

.shadowing-history-item summary {
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  list-style: none;
  display: flex;
}

.shadowing-history-item summary::-webkit-details-marker {
  display: none;
}

.shadowing-history-detail-button {
  min-width: 58px;
  color: var(--text-soft);
  white-space: nowrap;
  background: #ffffff0a;
  border: 1px solid #e2e8f029;
  border-radius: 999px;
  flex: none;
  justify-content: center;
  align-items: center;
  padding: 7px 10px;
  font-size: .78rem;
  font-weight: 800;
  display: inline-flex;
}

.shadowing-history-detail-button .show-open, .shadowing-history-item[open] .shadowing-history-detail-button .show-closed {
  display: none;
}

.shadowing-history-item[open] .shadowing-history-detail-button .show-open {
  display: inline;
}

.shadowing-history-item summary > div:first-child {
  gap: 5px;
  min-width: 0;
  display: grid;
}

.shadowing-history-item strong {
  color: var(--text);
}

.shadowing-history-score {
  text-align: right;
  justify-items: end;
  gap: 4px;
  min-width: 118px;
  display: grid;
}

.shadowing-history-score strong {
  white-space: nowrap;
}

.shadowing-history-score-pill {
  padding: 7px 11px;
  font-size: .82rem;
}

.shadowing-history-score span {
  color: var(--text-soft);
  white-space: nowrap;
  font-size: .86rem;
}

.shadowing-history-detail {
  border-top: 1px solid #e2e8f01f;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  display: grid;
}

.shadowing-history-detail .student-card {
  box-shadow: none;
  background: none;
  border: 0;
  gap: 14px;
  padding: 0;
}

.shadowing-history-detail .student-card > .student-card-top, .shadowing-history-detail .student-card > h2, .shadowing-history-detail .student-card > .student-card-copy {
  display: none;
}

.mock-answer-grid-scroll {
  margin-top: 18px;
  overflow-x: auto;
}

.omr-sheet-wrap {
  border: 1px solid #ffffff14;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: inset 0 1px #ffffff14;
}

.omr-sheet {
  color: #2d251b;
  background: linear-gradient(90deg, #c53b3b24 0 4px, #0000 4px) 18px 0 / 56px 100%, linear-gradient(#fff9, #f4ead6fa) 0 0 / 100% 100%;
  padding: 24px;
}

.omr-sheet-header {
  border-bottom: 2px solid #785d3929;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 18px;
  display: flex;
}

.omr-sheet-header h3 {
  letter-spacing: -.03em;
  margin: 6px 0 0;
  font-size: 1.6rem;
}

.omr-sheet-header p, .omr-mark-guide p {
  color: #2d251bb8;
  margin: 0;
  line-height: 1.6;
}

.omr-sheet-label {
  color: #4f3a1fd6;
  letter-spacing: .16em;
  background: #8c704a1a;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .74rem;
  font-weight: 800;
  display: inline-flex;
}

.omr-sheet-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 180px;
  display: grid;
}

.omr-meta-card {
  background: #ffffff85;
  border: 1px solid #785d391f;
  border-radius: 18px;
  gap: 4px;
  padding: 12px 14px;
  display: grid;
}

.omr-meta-card span {
  color: #4f3a1fb3;
  font-size: .78rem;
  font-weight: 700;
}

.omr-meta-card strong {
  font-size: 1rem;
}

.omr-mark-guide {
  background: #ffffff6b;
  border: 1px dashed #785d3938;
  border-radius: 18px;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  display: flex;
}

.omr-guide-bullet {
  background: radial-gradient(circle, #3f301db3 0 36%, #0000 38%);
  border: 2px solid #3f301d6b;
  border-radius: 999px;
  width: 18px;
  height: 18px;
}

.omr-columns {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 18px;
  width: 100%;
  min-width: 0;
  display: grid;
}

.omr-column {
  background: linear-gradient(#ffffffa8, #fdf8efe6), repeating-linear-gradient(#0000 0 33px, #8b6f4714 33px 34px);
  border: 1px solid #785d391f;
  border-radius: 22px;
  padding: 18px 16px;
  box-shadow: inset 0 1px #fffc;
}

.omr-column-header {
  color: #4f3a1fcc;
  border-bottom: 1px solid #785d391f;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  font-size: .84rem;
  font-weight: 800;
  display: grid;
}

.omr-column-header > span {
  white-space: nowrap;
  font-size: .92rem;
}

.omr-choice-labels, .omr-bubbles {
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  display: grid;
}

.omr-choice-labels span {
  text-align: center;
}

.omr-rows {
  display: grid;
}

.omr-row {
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  display: grid;
}

.omr-question-number {
  color: #372916e0;
  text-align: right;
  white-space: nowrap;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  padding-right: 4px;
  font-weight: 800;
  display: flex;
  position: relative;
}

.omr-question-number span {
  z-index: 1;
  position: relative;
}

.omr-question-number.is-incorrect:before, .omr-question-number.is-incorrect:after {
  content: "";
  pointer-events: none;
  position: absolute;
}

.omr-correct-circle {
  object-fit: contain;
  pointer-events: none;
  width: 40px;
  height: 40px;
  position: absolute;
  top: -8px;
  right: -8px;
}

.omr-question-number.is-incorrect:before {
  background: #cd2626eb;
  border-radius: 999px;
  width: 19px;
  height: 3.5px;
  top: 13px;
  right: 6px;
  transform: rotate(-53deg);
  box-shadow: 0 0 0 .35px #941c1c52;
}

.omr-question-number.is-incorrect:after {
  content: none;
}

.omr-bubble {
  cursor: pointer;
  background: none;
  border: 0;
  place-items: center;
  height: 32px;
  padding: 0;
  display: grid;
  position: relative;
}

.omr-bubble-ring, .omr-bubble-fill {
  border-radius: 999px;
  transition: transform .16s, opacity .16s, border-color .16s, background .16s;
  position: absolute;
}

.omr-bubble-ring {
  background: #ffffffb8;
  border: 2px solid #3d2f1c73;
  width: 20px;
  height: 20px;
}

.omr-bubble-fill {
  opacity: 0;
  background: #372916d1;
  width: 10px;
  height: 10px;
  transform: scale(.4);
}

.omr-bubble.selected .omr-bubble-ring {
  background: #f8efd6f5;
  border-color: #271e10e0;
}

.omr-bubble.selected .omr-bubble-fill {
  opacity: 1;
  transform: scale(1);
}

.omr-bubble:hover .omr-bubble-ring {
  border-color: #271e10b8;
}

.omr-bubble:disabled {
  cursor: default;
}

.submitted-answer-summary {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}

.submitted-answer-chip {
  background: #ffffff0d;
  border: 1px solid #ffffff14;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: .92rem;
}

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

.student-image-card {
  background: #ffffff08;
  border: 1px solid #ffffff0f;
  border-radius: 22px;
  gap: 10px;
  margin: 0;
  padding: 16px;
  display: grid;
}

.student-image-card img {
  background: #ffffff0a;
  border-radius: 16px;
  width: 100%;
}

.answer-sheet-card {
  background: #f1cb8714;
  border-color: #f1cb872e;
}

.assignment-panel-grid {
  gap: 18px;
  display: grid;
}

.assignment-admin-card {
  align-items: stretch;
}

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

.assignment-meta-grid p {
  margin: 0;
}

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

.assignment-submission-grid-wide {
  grid-template-columns: minmax(0, 1fr);
}

.assignment-submission-grid-audio {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.assignment-submission-card {
  align-self: start;
  gap: 12px;
  display: grid;
}

.assignment-submission-card strong, .assignment-submission-card figcaption strong {
  margin: 0;
}

.assignment-submission-card figcaption {
  gap: 6px;
  display: grid;
}

.assignment-submission-card figcaption span {
  color: var(--text-soft);
  font-size: .9rem;
}

.assignment-results-wrap {
  border-radius: 18px;
}

.assignment-results-table {
  min-width: 680px;
}

.assignment-results-table td {
  vertical-align: middle;
}

.assignment-results-card-list, .assignment-overview-card-list {
  display: none;
}

.assignment-results-card {
  gap: 14px;
  display: grid;
}

.assignment-preview-grid {
  grid-template-columns: minmax(0, 320px);
}

.assignment-table-wrap {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: min(62vh, 560px);
  overflow: auto;
}

.assignment-nav-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  display: grid;
}

.materials-builder-grid, .materials-review-grid, .materials-export-grid {
  gap: 18px;
  display: grid;
}

.materials-builder-grid, .materials-export-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.materials-review-grid {
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
}

.materials-dropzone, .materials-guidance, .materials-text-panel, .materials-preview-column, .materials-plan-card, .materials-export-result {
  border-radius: 22px;
  gap: 12px;
  padding: 18px;
  display: grid;
}

.materials-dropzone p, .materials-guidance p, .materials-text-panel p, .materials-warning-card p, .materials-plan-card p {
  margin: 0;
}

.csat-type-tabs {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin: 22px 0;
  display: grid;
}

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

.csat-subnav a {
  min-height: 44px;
  color: var(--text);
  background: #ffffff0a;
  border: 1px solid #ffe2b524;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 10px 14px;
  font-weight: 800;
  display: inline-flex;
}

.csat-subnav a.active {
  color: var(--gold-strong);
  background: #f1cb871f;
  border-color: #ffe2b56b;
}

.csat-type-tabs button {
  min-height: 58px;
  color: var(--text);
  cursor: pointer;
  background: #ffffff0a;
  border: 1px solid #ffe2b524;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  display: flex;
}

.csat-type-tabs button.active {
  background: #f1cb871f;
  border-color: #ffe2b56b;
}

.csat-type-tabs button span {
  font-weight: 800;
}

.csat-type-tabs button strong {
  min-width: 28px;
  min-height: 28px;
  color: var(--gold-strong);
  background: #ffe2b529;
  border-radius: 999px;
  place-items: center;
  display: grid;
}

.csat-workbench-grid {
  align-items: start;
}

.csat-panel-heading, .csat-example-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.csat-panel-heading {
  justify-content: space-between;
}

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

.csat-form-actions .quiet-action-button {
  color: #f7f3ebeb;
  background: linear-gradient(#ffffff1c, #ffffff0b), #ffffff0b;
  border-color: #ffe6bd33;
  border-radius: 16px;
  min-height: 52px;
  padding: 0 18px;
  font-size: .9rem;
  font-weight: 850;
  box-shadow: inset 0 1px #ffffff1a, 0 10px 22px #070c1f1f;
}

.csat-form-actions .quiet-action-button.danger-button {
  color: #ffe1e1;
  background: linear-gradient(#ff8e8e29, #ff8e8e12), #ffffff09;
  border-color: #ff8e8e5c;
}

.csat-example-actions {
  margin-top: 12px;
}

.compact-button {
  border-radius: 8px;
  min-height: 36px;
  padding: 8px 12px;
  font-size: .88rem;
  font-weight: 800;
}

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

.csat-generation-type-grid {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  display: grid;
}

.csat-generation-type-grid label {
  cursor: pointer;
  background: #ffffff0a;
  border: 1px solid #ffe2b524;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  display: flex;
}

.csat-generation-type-grid label.active {
  background: #f1cb871f;
  border-color: #ffe2b56b;
}

.csat-generation-type-grid input {
  width: auto;
}

.csat-analysis-stack, .csat-example-list, .csat-variant-result {
  gap: 14px;
  display: grid;
}

.csat-rulebook-list {
  gap: 18px;
  display: grid;
}

.csat-rulebook-card {
  gap: 18px;
}

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

.csat-rulebook-update {
  background: #7ed4a712;
  border: 1px solid #7ed4a72e;
  border-radius: 8px;
  gap: 10px;
  padding: 16px;
  display: grid;
}

.csat-rulebook-update p {
  margin: 0;
}

.csat-generated-card {
  background: #ffffff09;
  border: 1px solid #ffe2b51f;
  border-radius: 8px;
  gap: 12px;
  padding: 16px;
  display: grid;
}

.csat-analysis-group {
  background: #ffffff09;
  border: 1px solid #ffe2b51f;
  border-radius: 8px;
  gap: 8px;
  padding: 14px;
  display: grid;
}

.csat-analysis-group strong, .csat-variant-result strong {
  color: var(--gold-strong);
}

.csat-example-list .materials-warning-card {
  margin: 0;
}

.csat-variant-result h3 {
  margin: 0;
  font-size: 1.08rem;
}

.csat-variant-result p, .csat-variant-result ol {
  margin: 0;
}

.csat-variant-result ol {
  padding-left: 0;
  list-style: none;
}

.csat-generated-passage {
  white-space: pre-line;
}

.csat-underlined-target {
  text-underline-offset: .16em;
  text-decoration-thickness: 1px;
}

.materials-file-picker {
  gap: 10px;
  display: grid;
}

.materials-file-picker span {
  min-height: 52px;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  background: #ffffff0d;
  border: 1px dashed #b9c6ff47;
  border-radius: 18px;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  display: inline-flex;
}

.materials-file-picker input {
  display: none;
}

.materials-action-row {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}

.materials-progress {
  background: #7ea1ff14;
  border: 1px solid #7ba9ff3d;
  border-radius: 18px;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  display: grid;
}

.materials-progress-meta {
  color: var(--text-soft);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  display: flex;
}

.materials-progress-meta strong {
  color: var(--text);
}

.materials-progress-bar {
  background: #ffffff24;
  border-radius: 999px;
  min-height: 10px;
  position: relative;
  overflow: hidden;
}

.materials-progress-bar span {
  border-radius: inherit;
  background: linear-gradient(90deg, #61d2fff2, #7888fff2);
  min-height: 10px;
  transition: width .22s;
  display: block;
  box-shadow: 0 0 18px #7888ff47;
}

.materials-progress-details {
  color: var(--text-soft);
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  font-size: .84rem;
  line-height: 1.55;
  display: grid;
}

.materials-preview-column {
  min-width: 0;
}

.materials-image-list {
  gap: 12px;
  display: grid;
}

.materials-image-card {
  background: #ffffff0a;
  border: 1px solid #b9c6ff1f;
  border-radius: 18px;
  gap: 10px;
  padding: 12px;
  display: grid;
}

.materials-image-card img {
  object-fit: cover;
  border: 1px solid #b9c6ff1f;
  border-radius: 14px;
  width: 100%;
}

.materials-image-meta {
  color: var(--text-soft);
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: .86rem;
  display: flex;
}

.materials-text-column {
  gap: 18px;
  min-width: 0;
  display: grid;
}

.materials-text-panel textarea {
  resize: vertical;
  min-height: 220px;
}

.materials-low-confidence-list {
  gap: 12px;
  display: grid;
}

.materials-warning-card {
  background: #ffb87e14;
  border: 1px solid #ffbc7d38;
  border-radius: 18px;
  gap: 8px;
  padding: 16px;
  display: grid;
}

.materials-warning-card span {
  color: #ffd8b1;
  font-size: .82rem;
}

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

.materials-download-link {
  text-decoration: none;
}

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

.assignment-nav-card {
  color: inherit;
  gap: 12px;
  text-decoration: none;
  transition: transform .18s, border-color .18s, background .18s;
  display: grid;
}

.assignment-nav-card h2, .assignment-nav-card p {
  margin: 0;
}

.assignment-nav-card:hover {
  background: linear-gradient(#ffffff12, #ffffff08);
  border-color: #ffd78f3d;
  transform: translateY(-2px);
}

.assignment-nav-link {
  color: #ffd78f;
  font-weight: 700;
}

.assignment-overview-table {
  width: 100%;
  min-width: 1280px;
}

.assignment-overview-table th, .assignment-overview-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.assignment-overview-card {
  text-align: left;
  cursor: pointer;
  width: 100%;
  color: var(--text);
  appearance: none;
  gap: 14px;
  transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
  display: grid;
}

.assignment-overview-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.assignment-overview-card:hover, .assignment-overview-card:focus-visible {
  background: linear-gradient(#ffffff12, #ffffff08);
  border-color: #ffd78f3d;
  transform: translateY(-2px);
  box-shadow: 0 22px 56px #00000042;
}

.assignment-overview-row {
  cursor: pointer;
  transition: background .18s, transform .18s;
}

.assignment-overview-row:hover {
  background: #ffffff0a;
}

.assignment-overview-row.selected {
  background: #7470ff1f;
}

.assignment-overview-card-top, .assignment-results-card-top {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.assignment-overview-card-meta, .assignment-results-stat-grid {
  gap: 10px;
  display: grid;
}

.assignment-overview-card-meta p, .assignment-results-card p {
  gap: 4px;
  margin: 0;
  display: grid;
}

.assignment-overview-card-meta strong, .assignment-results-card strong {
  font-size: .9rem;
}

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

.assignment-overview-action-button {
  padding: 10px 14px;
  font-size: .88rem;
}

.assignment-overview-card-meta span, .assignment-results-card span {
  color: var(--text-soft);
}

.admin-omr-sheet .omr-columns {
  min-width: 0;
}

.assignment-inline-note {
  align-self: end;
  min-height: 100%;
}

.assignment-inline-note strong, .assignment-inline-note p {
  margin: 0;
}

.assignment-inline-note p {
  overflow-wrap: anywhere;
}

.assignment-setting-grid {
  align-items: stretch;
}

.assignment-setting-grid > *, .assignment-config-grid, .assignment-config-grid > * {
  min-width: 0;
}

.assignment-config-grid {
  align-items: start;
}

.assignment-distribution-stack {
  gap: 14px;
}

.assignment-script-preview {
  gap: 10px;
  min-width: 0;
  display: grid;
}

.assignment-script-preview strong, .assignment-script-preview p {
  margin: 0;
}

.assignment-script-preview p {
  color: var(--text-soft);
  white-space: pre-wrap;
  line-height: 1.7;
}

.assignment-inline-meta {
  white-space: normal;
  overflow-wrap: anywhere;
  place-self: center start;
  min-width: 0;
}

.assignment-download-button {
  align-self: start;
}

.assignment-audio-actions {
  align-items: flex-start;
}

.upload-progress-card {
  background: #7470ff14;
  border: 1px solid #7470ff3d;
  border-radius: 16px;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  display: grid;
}

.upload-progress-label {
  color: var(--text);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: .92rem;
  display: flex;
}

.upload-progress-label strong, .upload-progress-label span {
  margin: 0;
}

.upload-progress-track {
  background: #ffffff1f;
  border-radius: 999px;
  width: 100%;
  height: 10px;
  position: relative;
  overflow: hidden;
}

.upload-progress-fill {
  border-radius: inherit;
  background: linear-gradient(90deg, #60bffff5, #8c6efffa);
  height: 100%;
  transition: width .14s;
  box-shadow: 0 0 18px #7470ff52;
}

.assignment-target-picker {
  gap: 14px;
  display: grid;
}

.assignment-target-picker-header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.assignment-target-chip-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  max-height: 260px;
  display: grid;
  overflow: auto;
}

.assignment-target-chip {
  text-align: left;
  color: var(--text);
  cursor: pointer;
  background: #ffffff0a;
  border: 1px solid #ffffff14;
  border-radius: 16px;
  gap: 4px;
  padding: 14px 16px;
  display: grid;
}

.assignment-target-chip span {
  color: var(--text-soft);
  font-size: .88rem;
}

.assignment-target-chip.selected {
  background: #ffd78f1f;
  border-color: #ffd78fa6;
}

.assignment-detail-heading {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex;
}

.assignment-detail-stack {
  gap: 18px;
  display: grid;
}

.assignment-detail-stack > * {
  min-width: 0;
}

.assignment-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  display: grid;
}

.assignment-inline-scroll {
  white-space: nowrap;
  max-width: 100%;
  display: block;
  overflow: auto hidden;
}

.assignment-inline-strip {
  flex-wrap: nowrap;
  gap: 10px;
  max-width: 100%;
  display: flex;
  overflow: auto hidden;
}

.assignment-inline-strip > * {
  flex: none;
}

.assignment-detail-card-scroll {
  overflow: auto hidden;
}

.assignment-detail-card-scroll figcaption, .assignment-detail-card-scroll figcaption span, .assignment-detail-card-scroll strong {
  white-space: nowrap;
}

.assignment-detail-toolbar {
  gap: 16px;
  display: grid;
}

.assignment-detail-toolbar-copy {
  min-width: 0;
}

.assignment-detail-toolbar-copy strong, .assignment-detail-toolbar-copy p {
  margin: 0;
}

.assignment-detail-toolbar-copy p {
  white-space: normal;
  overflow-wrap: anywhere;
}

.assignment-detail-toolbar-actions {
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  width: 100%;
  display: flex;
}

.assignment-detail-toolbar-actions > * {
  min-width: 0;
}

.assignment-detail-toolbar-actions .ghost-button, .assignment-detail-toolbar-actions .primary-button, .assignment-detail-toolbar-actions .danger-button {
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
}

.assignment-detail-datetime {
  gap: 8px;
  width: 100%;
  min-width: 220px;
  max-width: 100%;
  display: grid;
}

.assignment-detail-datetime input {
  min-width: 0;
}

@media (max-width: 1180px) {
  .attendance-book-layout, .attendance-book-summary {
    grid-template-columns: 1fr;
  }

  .attendance-book-head-controls, .attendance-hub-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .attendance-book-head-actions {
    justify-content: stretch;
  }

  .attendance-v2-summary-card, .attendance-v2-manage-grid, .attendance-v2-action-grid, .attendance-v2-photo-modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1360px) {
  .dashboard-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-sidebar-shell {
    display: block;
  }

  .mobile-sidebar-shell summary {
    list-style: none;
  }

  .mobile-sidebar-shell summary::-webkit-details-marker {
    display: none;
  }

  .sidebar {
    z-index: 40;
    width: min(340px, 100vw - 24px);
    min-height: 100vh;
    max-height: 100vh;
    transition: transform .22s;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    transform: translateX(calc(-100% - 24px));
  }

  .page-shell {
    padding: 24px;
  }

  .mobile-shell-bar {
    z-index: 24;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, #8a95ff1f, #ffffff06 34%, #1b1f4ee6),
      var(--surface);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    border-radius: 20px;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px 16px;
    list-style: none;
    display: flex;
    position: relative;
  }

  .mobile-shell-bar-copy {
    align-items: center;
    gap: 14px;
    display: flex;
  }

  .sidebar-toggle, .sidebar-close-button, .mobile-summary-close {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    background: #ffffff0f;
    border: 1px solid #ffffff14;
    border-radius: 14px;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    display: inline-flex;
  }

  .mobile-shell-bar {
    cursor: pointer;
  }

  .sidebar-toggle span, .sidebar-close-button span, .mobile-summary-close span {
    background: var(--text);
    border-radius: 999px;
    width: 20px;
    height: 2px;
    display: block;
  }

  .sidebar-toggle {
    flex-direction: column;
    gap: 4px;
  }

  .sidebar-mobile-header {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    display: flex;
  }

  .sidebar-close-button {
    position: relative;
  }

  .sidebar-close-button span {
    position: absolute;
  }

  .sidebar-close-button span:first-child {
    transform: rotate(45deg);
  }

  .sidebar-close-button span:last-child {
    transform: rotate(-45deg);
  }

  .mobile-sidebar-backdrop, .mobile-summary-close {
    display: none;
  }

  .mobile-sidebar-shell[open] ~ .sidebar {
    display: flex;
    transform: translateX(0);
  }

  .mobile-sidebar-shell[open] .mobile-shell-bar {
    z-index: 42;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    pointer-events: none;
    background: none;
    border: 0;
    margin: 0;
    padding: 0;
    position: fixed;
    inset: 0;
  }

  .mobile-sidebar-shell[open] .mobile-shell-bar-copy {
    display: none;
  }

  .mobile-sidebar-shell[open] .mobile-sidebar-backdrop {
    pointer-events: auto;
    background: #03061094;
    display: block;
    position: fixed;
    inset: 0 0 0 min(340px, 100vw - 24px);
  }

  .mobile-sidebar-shell[open] .mobile-summary-close {
    z-index: 1;
    pointer-events: auto;
    display: inline-flex;
    position: fixed;
    top: 24px;
    left: calc(min(340px, 100vw - 24px) - 68px);
  }

  .mobile-summary-close span {
    position: absolute;
  }

  .mobile-summary-close span:first-child {
    transform: rotate(45deg);
  }

  .mobile-summary-close span:last-child {
    transform: rotate(-45deg);
  }

  .mobile-sidebar-shell[open] ~ .page-shell {
    max-height: 100vh;
    overflow: hidden;
  }
}

@media (max-width: 820px) {
  .weekly-report-hero, .weekly-report-grid, .weekly-report-meeting-stats {
    grid-template-columns: 1fr;
  }

  .weekly-report-hero {
    padding: 22px;
  }

  .student-card, .student-image-card {
    padding: 20px;
  }

  .student-card-top, .student-footer, .student-actions, .student-image-grid {
    grid-template-columns: 1fr;
  }

  .student-status, .student-meta {
    justify-self: start;
  }

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

  .assignment-meta-grid, .assignment-submission-grid, .assignment-preview-grid, .materials-builder-grid, .materials-review-grid, .materials-export-grid, .materials-plan-grid {
    grid-template-columns: 1fr;
  }

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

  .csat-rulebook-grid {
    grid-template-columns: 1fr;
  }

  .assignment-detail-toolbar-actions, .assignment-target-picker-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .assignment-detail-toolbar-actions {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }

  .assignment-detail-toolbar-actions > * {
    width: 100%;
  }

  .assignment-detail-datetime {
    min-width: 0;
  }

  .assignment-setting-grid, .assignment-config-grid {
    grid-template-columns: 1fr;
  }

  .omr-sheet {
    padding: 18px;
  }

  .omr-sheet-header, .omr-sheet-meta {
    grid-template-columns: 1fr;
  }

  .omr-sheet-header {
    display: grid;
  }

  .omr-columns {
    width: 820px;
    min-width: 820px;
  }
}

@media (max-width: 980px) {
  .assignment-results-table, .assignment-results-wrap {
    display: none;
  }

  .assignment-results-card-list {
    gap: 14px;
    display: grid;
  }

  .assignment-target-chip-grid {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=app_globals_0jn8.0u.css.map*/