/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --radius-xs: 0.125rem;
    --radius-sm: 0.25rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-4xl: 2rem;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .visible {
    visibility: visible;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .start {
    inset-inline-start: var(--spacing);
  }
  .end {
    inset-inline-end: var(--spacing);
  }
  .isolate {
    isolation: isolate;
  }
  .z-10 {
    z-index: 10;
  }
  .z-20 {
    z-index: 20;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .block {
    display: block;
  }
  .contents {
    display: contents;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .table {
    display: table;
  }
  .min-h-screen {
    min-height: 100vh;
  }
  .w-full {
    width: 100%;
  }
  .overflow-hidden {
    overflow: hidden;
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
}
:root {
  --space-0: 0;
  --space-0_5: 0.125rem;
  --space-1: 0.25rem;
  --space-1_5: 0.375rem;
  --space-2: 0.5rem;
  --space-2_5: 0.625rem;
  --space-3: 0.75rem;
  --space-3_5: 0.875rem;
  --space-4: 1rem;
  --space-4_5: 1.125rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --radius-xs: 0.25rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.625rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.125rem;
  --radius-4xl: 1.25rem;
  --radius-5xl: 1.5rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 18px 52px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --text-2xs: 0.625rem;
  --text-xs: 0.6875rem;
  --text-sm: 0.75rem;
  --text-base-s: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --bg: transparent;
  --page-bg: transparent;
  --glass: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --shadow: var(--shadow-md);
  --text-primary: #e5edff;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --bg-body: #0b1224;
  --bg-panel: rgba(11, 18, 36, 0.74);
  --bg-card: rgba(15, 23, 42, 0.74);
  --bg-row: rgba(15, 23, 42, 0.68);
  --bg-row-hover: rgba(30, 41, 59, 0.82);
  --bg-select: rgba(15, 23, 42, 0.92);
  --bg-topbar: rgba(15, 23, 42, 0.78);
  --border-main: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.18);
  --accent: #60a5fa;
  --accent-strong: #3b82f6;
  --danger: #ef4444;
  --aurora-1: #22d3ee;
  --aurora-2: #fb923c;
  --bg-modal: #111827;
  --overlay: rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
[data-theme='light'] {
  color-scheme: light;
  --glass: rgba(0, 0, 0, 0.05);
  --line: rgba(0, 0, 0, 0.1);
  --shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 38px rgba(15, 23, 42, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #4b5563;
  --bg-body: #e8eef5;
  --bg-panel: rgba(255, 255, 255, 0.9);
  --bg-card: #ffffff;
  --bg-row: #f8fafc;
  --bg-row-hover: #f1f5f9;
  --bg-select: #ffffff;
  --bg-topbar: rgba(255, 255, 255, 0.88);
  --bg-modal: #ffffff;
  --border-main: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.12);
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --danger: #dc2626;
  --aurora-1: #0ea5e9;
  --aurora-2: #f97316;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --glass: rgba(0, 0, 0, 0.05);
    --line: rgba(0, 0, 0, 0.1);
    --shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 16px 38px rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #4b5563;
    --bg-body: #e8eef5;
    --bg-panel: rgba(255, 255, 255, 0.9);
    --bg-card: #ffffff;
    --bg-row: #f8fafc;
    --bg-row-hover: #f1f5f9;
    --bg-select: #ffffff;
    --bg-topbar: rgba(255, 255, 255, 0.88);
    --bg-modal: #ffffff;
    --border-main: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --danger: #dc2626;
    --aurora-1: #0ea5e9;
    --aurora-2: #f97316;
  }
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-500.ttf') format('truetype');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-600.ttf') format('truetype');
}
* {
  box-sizing: border-box;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
button:focus:not(:focus-visible), select:focus:not(:focus-visible) {
  outline: none;
}
[hidden]:where(:not([hidden='until-found'])) {
  display: none !important;
}
html {
  scrollbar-width: thin;
  scrollbar-color: var(--border-main) transparent;
  overscroll-behavior: none;
}
@media (max-width: 720px) {
  html {
    scrollbar-width: none;
  }
  html::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}
html, body {
  min-height: calc(100% + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px));
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100lvh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 0;
  position: relative;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: break-word;
}
.page-bg {
  position: fixed;
  inset: 0;
  background: var(--page-bg);
  background-color: var(--bg-body);
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}
.safe-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-top, 0px);
  background: var(--page-bg);
  z-index: 2;
  pointer-events: none;
}
.safe-area-bg {
  position: fixed;
  inset: 0;
  background: var(--page-bg);
  z-index: 1;
  pointer-events: none;
}
.app {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px));
  min-height: calc(100svh + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px));
  min-height: calc(100dvh + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px));
  padding: constant(safe-area-inset-top, 0px) constant(safe-area-inset-right, 0px) constant(safe-area-inset-bottom, 0px) constant(safe-area-inset-left, 0px);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.bg-aurora {
  position: fixed;
  filter: blur(80px);
  opacity: 0.8;
  mix-blend-mode: screen;
  z-index: 0;
  overscroll-behavior: none;
  will-change: filter;
  contain: layout paint style;
  pointer-events: none;
}
.bg-aurora-1 {
  inset: 10% auto auto -10%;
  width: 40vw;
  height: 40vh;
  background: radial-gradient(circle, var(--aurora-1), transparent 60%);
}
.bg-aurora-2 {
  inset: auto -8% -10% auto;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, var(--aurora-2), transparent 55%);
}
@media (max-width: 720px) {
  .bg-aurora-1 {
    width: 30vw;
    height: 30vh;
  }
  .bg-aurora-2 {
    width: 35vw;
    height: 35vh;
  }
}
[data-theme='light'] .bg-aurora {
  mix-blend-mode: multiply;
  opacity: 0.3;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .bg-aurora {
    mix-blend-mode: multiply;
    opacity: 0.3;
  }
}
.texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23ffffff' fill-opacity='0.045'%3E%3Cpath d='M0 138a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm70-68a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm70 68a2 2 0 1 0 0-4 2 2 0 0 0 0 4zM70 70a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 68a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm-70-70a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm140 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm-70-68a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/%3E%3C/g%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.25;
  z-index: 1;
}
.panel {
  position: relative;
  width: calc(100% - var(--space-8));
  max-width: 1200px;
  margin: calc(125px + env(safe-area-inset-top, 0px)) auto var(--space-20);
  padding: var(--space-6);
  background: var(--bg-panel);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-5xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  z-index: 10;
}
.panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-5);
  align-items: flex-start;
  margin-bottom: var(--space-3_5);
}
.controls-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-end;
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}
.panel h1 {
  margin: var(--space-1) 0 0;
  font-size: var(--text-3xl);
  letter-spacing: -0.01em;
}
.controls-row {
  display: flex;
  gap: var(--space-2_5);
  align-items: flex-end;
  flex-wrap: wrap;
}
.is-hidden {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.select-label {
  display: flex;
  flex-direction: column;
  gap: var(--space-1_5);
  font-size: var(--text-base-s);
  color: var(--text-secondary);
}
.select-label select {
  appearance: none;
  background: var(--bg-select);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: var(--space-3) var(--space-3_5);
  border-radius: var(--radius-xl);
  font-size: var(--text-base);
  min-width: 160px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.teacher-code-field input {
  appearance: none;
  background: var(--bg-select);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: var(--space-3) var(--space-3_5);
  border-radius: var(--radius-xl);
  font-size: var(--text-base);
  min-width: 180px;
}
.mode-switcher {
  display: inline-flex;
  padding: var(--space-1);
  gap: var(--space-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--bg-card);
}
.mode-switcher button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: var(--space-2_5) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-base-s);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}
.mode-switcher button.is-active {
  background: var(--text-primary);
  color: var(--bg-body);
}
.mode-switcher button.mode-disabled {
  color: var(--text-secondary);
  cursor: default;
  pointer-events: none;
}
.teacher-login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.notification-class-info {
  margin: 0 0 var(--space-3);
  padding: var(--space-2_5) var(--space-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  font-size: var(--text-base-s);
  color: var(--text-secondary);
  background: var(--bg-card);
}
.notification-class-info[data-state='active'] {
  color: var(--text-primary);
  border-color: rgba(59, 130, 246, 0.45);
}
.theme-switcher {
  display: flex;
  justify-content: center;
  gap: var(--space-2_5);
  margin-top: var(--space-4_5);
  flex-wrap: wrap;
}
.theme-switcher button {
  appearance: none;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: var(--space-2) var(--space-3_5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.theme-switcher button.is-active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.24);
}
.theme-switcher button:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}
.refresh-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-5) 0 0;
  margin-top: var(--space-3);
}
.refresh-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: var(--space-2) var(--space-3);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  opacity: 0.82;
  min-height: 44px;
  cursor: pointer;
}
@media (hover: hover) {
  .refresh-button:hover {
    opacity: 1;
  }
}
.refresh-button:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: var(--space-1);
}
.refresh-button.is-loading {
  opacity: 0.5;
  pointer-events: none;
}
.refresh-info {
  display: block;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}
.build-info {
  display: block;
  text-align: center;
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  @supports (color: color-mix(in lab, red, red)) {
    color: color-mix(in srgb, var(--text-tertiary) 82%, transparent);
  }
}
.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  min-width: 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-3xl);
  padding: var(--space-3_5) var(--space-4) var(--space-1);
  box-shadow: var(--shadow);
  scroll-margin-top: 136px;
  min-width: 0;
}
.card-attention {
  border-color: rgba(96, 165, 250, 0.78);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.34), 0 18px 48px rgba(37, 99, 235, 0.24);
  animation: card-attention-pulse 2.2s ease-out 1;
}
@keyframes card-attention-pulse {
  0% {
    transform: translateY(0) scale(1);
  }
  18% {
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-1_5);
}
.card h2 {
  margin: 2px 0 0;
  font-size: var(--text-xl);
}
.list-wrapper {
  overflow: visible;
  min-width: 0;
}
.list-head {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 82px minmax(170px, 1.2fr) minmax(130px, 1fr);
  gap: var(--space-2);
  padding: var(--space-2_5) var(--space-3);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl) var(--radius-xl) var(--space-2_5) var(--space-2_5);
  box-shadow: none;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.list-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1_5);
  padding: var(--space-2) 0;
  min-width: 0;
}
.list-row {
  display: grid;
  grid-template-columns: 82px minmax(170px, 1.2fr) minmax(130px, 1fr);
  gap: var(--space-2);
  padding: var(--space-2_5) var(--space-3);
  border-radius: var(--radius-xl);
  background: var(--bg-row);
  border: 1px solid var(--border-main);
  box-shadow: none;
  min-width: 0;
}
@media (hover: hover) {
  .list-row:hover {
    background: var(--bg-row-hover);
  }
}
.list-period {
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 0;
}
.list-what {
  color: var(--text-primary);
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-hyphens: auto;
  min-width: 0;
}
.list-info {
  color: var(--text-secondary);
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-hyphens: auto;
  min-width: 0;
}
.list-row.teacher-row {
  grid-template-columns: 72px minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
}
.list-row.teacher-row .list-what {
  font-size: var(--text-base-s);
  color: var(--text-secondary);
}
.list-row.teacher-row .list-info {
  color: var(--text-primary);
  font-weight: 600;
}
.list-empty {
  text-align: center;
  padding: var(--space-3);
  color: var(--text-secondary);
  background: var(--bg-row);
  border: 1px dashed var(--border-main);
  border-radius: var(--radius-xl);
}
@media (max-width: 720px) {
  .panel {
    width: calc(100% - var(--space-5));
    margin-top: calc(115px + env(safe-area-inset-top, 0px));
    margin-bottom: var(--space-7);
    padding: var(--space-3_5) var(--space-3) var(--space-4);
    border-radius: var(--radius-4xl);
  }
  .panel h1 {
    font-size: var(--text-2xl);
  }
  .panel-header {
    gap: var(--space-3_5);
  }
  .controls-stack {
    align-items: stretch;
    width: 100%;
  }
  .controls-row {
    width: 100%;
    gap: var(--space-2);
  }
  .mode-switcher {
    width: 100%;
    justify-content: space-between;
  }
  .mode-switcher button {
    flex: 1;
    min-height: 44px;
  }
  .select-label, .teacher-code-field, .select-label select, .teacher-code-field input {
    min-height: 44px;
  }
  .timetable-btn {
    flex: 1;
    min-width: 0;
  }
  .tables-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .card {
    padding: var(--space-3) var(--space-3) var(--space-3);
    border-radius: var(--radius-2xl);
    scroll-margin-top: 120px;
  }
  .card-head {
    align-items: flex-start;
    gap: var(--space-2_5);
  }
  .card h2 {
    font-size: var(--text-lg);
  }
  .list-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-1_5);
    padding: var(--space-1_5) var(--space-2);
    font-size: var(--text-2xs);
    letter-spacing: 0.04em;
  }
  .list-head [data-column='period']::before {
    content: '#';
    margin-right: 2px;
  }
  .list-row {
    grid-template-columns: 1fr;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-3) var(--space-2_5);
  }
  .list-period {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .list-row.teacher-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
  .list-row.teacher-row .list-period {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    width: fit-content;
    max-width: 100%;
    padding: 2px var(--space-2);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-main);
    background: var(--bg-card);
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
  }
  .list-row.teacher-row .list-what {
    font-size: var(--text-base-s);
    font-weight: 700;
    color: var(--text-primary);
  }
  .list-row.teacher-row .list-info {
    font-size: var(--text-sm);
    line-height: 1.45;
  }
  .refresh-stack {
    padding-top: var(--space-6);
  }
  .notification-prompt {
    align-items: flex-end;
    padding: var(--space-3);
  }
  .notification-prompt-content, .teacher-auth-content, .absent-teachers-content, .timetable-modal-content {
    width: 100%;
    max-width: none;
    max-height: min(78vh, 620px);
    padding: var(--space-4);
    border-radius: var(--radius-4xl);
    overflow-y: auto;
  }
  .timetable-modal-content {
    max-height: 85vh;
  }
  .teacher-auth-actions, .notification-prompt-actions {
    flex-direction: column;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  .absent-teachers-body {
    max-height: min(50vh, 360px);
  }
  .notification-toast {
    left: var(--space-3);
    right: var(--space-3);
    bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    transform: translateY(20px);
  }
  .notification-toast.visible {
    transform: translateY(0);
  }
  .notification-bell {
    min-width: 44px;
    min-height: 44px;
  }
  .absent-close-btn {
    min-width: 44px;
    min-height: 44px;
    padding: var(--space-2_5);
  }
  .theme-switcher button {
    min-height: 44px;
  }
}
.overlay-top {
  position: fixed;
  inset: 0 0 auto 0;
  padding: calc(28px + env(safe-area-inset-top, 0px)) calc(var(--space-4) + env(safe-area-inset-right, 0px)) var(--space-3_5) calc(var(--space-4) + env(safe-area-inset-left, 0px));
  z-index: 30;
  pointer-events: none;
}
.overlay-top > * {
  pointer-events: auto;
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2_5);
  padding: var(--space-3) var(--space-3_5);
  border-radius: var(--radius-3xl);
  background: var(--bg-topbar);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}
.logo-mark {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: var(--text-md);
}
@media (min-width: 768px) {
  .overlay-top {
    padding: calc(30px + env(safe-area-inset-top, 0px)) var(--space-7) var(--space-3_5);
  }
}
@media (min-width: 1024px) {
  .overlay-top {
    padding: calc(34px + env(safe-area-inset-top, 0px)) var(--space-8) var(--space-4);
  }
}
.notification-prompt {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: var(--space-4);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.notification-prompt.prompt-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.notification-prompt-content {
  background: var(--bg-modal);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-main);
  transform: scale(1);
  transition: transform 0.2s ease;
}
.notification-prompt.prompt-hidden .notification-prompt-content {
  transform: scale(0.95);
}
.teacher-auth-content {
  width: min(100%, 420px);
  text-align: left;
}
.teacher-auth-header {
  margin-bottom: var(--space-3_5);
}
.teacher-auth-header h3 {
  margin: var(--space-1) 0 var(--space-1_5);
  font-size: var(--text-xl);
}
.teacher-auth-header p:last-child {
  margin: 0;
}
.teacher-auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2_5);
  margin-top: var(--space-1);
}
.notification-prompt-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ef4444;
  margin-bottom: var(--space-4);
}
.notification-prompt-icon .notification-bell-icon {
  width: 3rem;
  height: 3rem;
}
.notification-prompt-icon .bell-strike {
  opacity: 1;
}
.notification-prompt-icon .bell-body, .notification-prompt-icon .bell-clapper {
  opacity: 0.7;
}
.notification-prompt h3 {
  margin: 0 0 0.5rem 0;
  font-size: var(--text-xl);
  color: var(--text-primary);
}
.notification-prompt p {
  margin: 0 0 var(--space-6) 0;
  opacity: 0.8;
  color: var(--text-secondary);
}
.notification-prompt-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}
.btn-primary, .btn-secondary {
  padding: var(--space-3) var(--space-6);
  border-radius: var(--space-3);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--accent-strong);
  color: white;
}
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-main);
}
@media (hover: hover) {
  .btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
}
.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-secondary:focus-visible {
  outline: 2px solid var(--aurora-1);
  outline-offset: 2px;
}
.notification-bell {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: var(--space-2);
  cursor: pointer;
  border-radius: var(--space-2);
  transition: background 0.2s, color 0.2s;
  position: relative;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (hover: hover) {
  .notification-bell:hover {
    background: var(--bg-card);
  }
}
.notification-bell .bell-body, .notification-bell .bell-clapper, .notification-bell .bell-strike {
  transition: all 0.3s ease;
}
.notification-bell:not(.active) {
  color: var(--danger);
}
.notification-bell:not(.active) .bell-strike {
  opacity: 1;
}
.notification-bell:not(.active) .bell-body, .notification-bell:not(.active) .bell-clapper {
  opacity: 0.7;
}
.notification-bell.active {
  color: var(--accent);
}
.notification-bell.active .bell-strike {
  opacity: 0;
}
.notification-bell.active .bell-body {
  fill: var(--accent);
  stroke: var(--accent);
  opacity: 1;
}
.notification-bell.active .bell-clapper {
  fill: var(--accent);
  stroke: var(--accent);
  opacity: 1;
}
.absent-teachers-btn {
  display: flex;
  align-items: center;
  gap: var(--space-1_5);
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: var(--space-2_5) var(--space-3_5);
  cursor: pointer;
  border-radius: var(--space-2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-size: var(--text-sm);
  font-weight: 600;
  min-height: 44px;
  min-width: 44px;
}
@media (hover: hover) {
  .absent-teachers-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-main);
  }
}
.absent-teachers-btn svg {
  flex-shrink: 0;
}
.absent-count {
  font-size: var(--text-xs);
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--danger);
  color: white;
  border-radius: var(--radius-full);
  padding: 0 5px;
}
.absent-teachers-content {
  max-width: 450px;
  text-align: left;
}
.absent-teachers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.absent-teachers-header h3 {
  margin: 0;
  font-size: var(--text-xl);
  color: var(--text-primary);
}
.absent-close-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  padding: var(--space-1);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (hover: hover) {
  .absent-close-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
  }
}
.absent-teachers-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: min(52vh, 360px);
  overflow-y: auto;
}
.absent-teacher-item {
  padding: var(--space-2_5) var(--space-3_5);
  background: var(--bg-row);
  border: 1px solid var(--border-main);
  border-radius: var(--space-2_5);
  color: var(--text-primary);
  font-weight: 500;
}
.absent-section-heading {
  padding: var(--space-1_5) 2px;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}
.absent-section-heading:first-child {
  margin-top: 0;
}
.notification-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--space-3);
  padding: var(--space-4) var(--space-5);
  max-width: 90%;
  width: max-content;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.notification-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.notification-toast .toast-content {
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}
#notification-bell.unsupported {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .bg-aurora {
    filter: none;
    opacity: 0.3;
  }
  .card-attention {
    animation: none;
  }
}
button:focus-visible, select:focus-visible, :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
@media print {
  .bg-aurora, .texture, .notification-prompt, .notification-bell, .theme-switcher, .refresh-stack, #notification-prompt, #teacher-auth-modal, #timetable-modal, .timetable-btn, .absent-teachers-btn, .mode-switcher {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  .page-bg, .safe-top, .safe-area-bg {
    display: none !important;
  }
  .app {
    background: white !important;
  }
  .card {
    background: white !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .panel {
    background: white !important;
    box-shadow: none !important;
  }
  .card-head h2, .card-head .eyebrow {
    color: black !important;
  }
  .list-body .item {
    border-bottom-color: #eee !important;
  }
}
.timetable-btn {
  appearance: none;
  border: 1px solid var(--border-light);
  background: var(--bg-select);
  color: var(--text-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-3_5);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1_5);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  min-height: 44px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
@media (hover: hover) {
  .timetable-btn:hover {
    background: var(--bg-row-hover);
    border-color: var(--border-light);
  }
}
.timetable-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.timetable-btn svg {
  flex-shrink: 0;
  opacity: 0.8;
}
.timetable-btn.is-hidden {
  display: none;
}

/* ---- Was gibt's Neues? ---- */
.whats-new-section {
  margin-top: var(--space-5);
  border-top: 1px solid var(--border-main);
  padding-top: var(--space-4);
}
.whats-new-toggle {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  cursor: pointer;
  padding: var(--space-2_5) var(--space-1);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: background 0.15s;
  min-height: 44px;
}
@media (hover: hover) {
  .whats-new-toggle:hover {
    background: var(--bg-card);
  }
}
.whats-new-badge {
  background: var(--accent);
  color: #ffffff;
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.whats-new-chevron {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  opacity: 0.6;
}
.whats-new-toggle[aria-expanded="true"] .whats-new-chevron {
  transform: rotate(180deg);
}
.whats-new-content {
  padding: var(--space-3) var(--space-1);
}
.whats-new-content[hidden] {
  display: none;
}
.whats-new-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2_5);
  padding: 0;
  margin: 0 0 var(--space-3) 0;
}
.whats-new-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2_5);
  padding: var(--space-2_5) var(--space-3);
  background: var(--bg-row);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  font-size: var(--text-base-s);
  color: var(--text-secondary);
  line-height: 1.45;
}
.whats-new-list li svg {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.7;
  color: var(--accent);
}
.whats-new-list li strong {
  color: var(--text-primary);
}
.whats-new-tip {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  padding: var(--space-2) var(--space-1);
  line-height: 1.4;
}
.whats-new-tip svg {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.5;
}

/* ---- Unterstützen ---- */
.support-section {
  margin-top: var(--space-4);
}
.support-toggle {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  cursor: pointer;
  padding: var(--space-2_5) var(--space-1);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: background 0.15s;
  min-height: 44px;
}
@media (hover: hover) {
  .support-toggle:hover {
    background: var(--bg-card);
  }
}
.support-toggle svg:first-child {
  opacity: 0.7;
  color: var(--danger);
}
.support-chevron {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  opacity: 0.6;
}
.support-toggle[aria-expanded="true"] .support-chevron {
  transform: rotate(180deg);
}
.support-content {
  padding: var(--space-3) var(--space-1);
  font-size: var(--text-base-s);
  color: var(--text-secondary);
  line-height: 1.5;
}
.support-content[hidden] {
  display: none;
}
.timetable-modal-content {
  max-width: 860px;
  width: 100%;
  text-align: left;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-4xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-main);
}
.timetable-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
  flex-shrink: 0;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-main);
}
.timetable-modal-actions {
  display: flex;
  gap: var(--space-1);
  align-items: center;
  flex-shrink: 0;
}
.timetable-modal-header h3 {
  margin: 0;
  font-size: var(--text-2xl);
}
.timetable-class-label {
  margin: var(--space-0_5) 0 0;
  font-size: var(--text-base);
  color: var(--accent);
  font-weight: 500;
}
.timetable-validity {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}
.timetable-body {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.timetable-info-body {
  overflow-y: auto;
  flex: 1;
  padding: var(--space-2) 0;
}
.timetable-info-placeholder {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
}
.tt-img-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  padding: var(--space-2);
  background: var(--bg-row);
  border-radius: var(--radius-xl);
}
.tt-img {
  max-width: 100%;
  max-height: calc(85vh - 140px);
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  display: inline-block;
  object-fit: contain;
}
.timetable-no-data {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--text-tertiary);
  font-size: var(--text-base);
}
.timetable-no-data svg {
  display: block;
  margin: 0 auto var(--space-3);
  opacity: 0.4;
}
.tt-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-2xs);
  line-height: 1.4;
}
.tt-grid th, .tt-grid td {
  border: 1px solid var(--border-main);
  padding: var(--space-1) var(--space-2);
  text-align: center;
  vertical-align: middle;
}
.tt-grid th {
  background: var(--bg-row);
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  position: sticky;
  top: 0;
  z-index: 1;
}
.tt-grid th.tt-day-header {
  font-size: var(--text-sm);
  color: var(--text-primary);
}
.tt-grid td.tt-time {
  font-size: var(--text-2xs);
  color: var(--text-tertiary);
  white-space: nowrap;
  writing-mode: horizontal-tb;
  font-variant-numeric: tabular-nums;
  min-width: 52px;
  max-width: 68px;
}
.tt-grid td.tt-period-num {
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background: var(--bg-row);
  width: 28px;
}
.tt-grid tr.tt-break td {
  background: var(--bg-row);
  color: var(--text-tertiary);
  font-size: var(--text-2xs);
  font-style: italic;
  padding: var(--space-1_5) var(--space-2);
}
.tt-grid td.tt-cell {
  position: relative;
  padding: var(--space-1);
}
.tt-grid .tt-subject {
  display: block;
  font-weight: 600;
  font-size: var(--text-2xs);
  color: var(--text-primary);
  margin-bottom: 1px;
}
.tt-grid .tt-teacher {
  display: block;
  font-size: var(--text-2xs);
  color: var(--text-tertiary);
}
.tt-grid .tt-room {
  display: block;
  font-size: 2px smaller;
  color: var(--text-tertiary);
  opacity: 0.7;
}
.tt-grid td.tt-cell.tt-grouped {
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.tt-grid .tt-group-label {
  display: block;
  font-size: 2px smaller;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1px;
}
.timetable-body .tt-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 600px) {
  .timetable-modal-content {
    max-width: 100%;
    border-radius: var(--radius-4xl);
    max-height: 100vh;
  }
  .tt-grid {
    font-size: 2px smaller;
  }
  .tt-grid td.tt-time {
    min-width: 40px;
    max-width: 48px;
    font-size: 2px smaller;
  }
  .tt-grid td.tt-period-num {
    width: 22px;
  }
  .tt-grid th, .tt-grid td {
    padding: 1px 3px;
  }
  .tt-img {
    max-height: min(calc(100dvh - 140px), 65vh);
  }
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-border-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}
