:root {
  --ink: #202338;
  --muted: #74788e;
  --line: #e7e9f1;
  --paper: #fff;
  --bg: #f5f6fa;
  --purple: #5146d9;
  --soft: #eeedfd;
  --green: #25846b;
  --radius: 22px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
a {
  color: var(--purple);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a99ff5;
  outline-offset: 3px;
}
button,
input,
select {
  min-height: 44px;
}
svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
  background: white;
  padding: 12px;
}
.loading {
  padding: 80px 24px;
  text-align: center;
  color: var(--muted);
}
.layout {
  max-width: 1500px;
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-columns: 232px 1fr;
}
.sidebar {
  border-right: 1px solid var(--line);
  background: #fcfcfe;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.6px;
}
.brand-mark {
  width: 34px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 3px;
  text-transform: uppercase;
}
.side-label {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--muted);
  font-weight: 700;
  margin: 49px 12px 16px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  text-align: left;
  border-radius: 12px;
  color: #71758a;
  font-size: 14px;
  font-weight: 600;
}
.nav button.active {
  background: var(--soft);
  color: var(--purple);
}
.nav button:hover {
  background: #f0f0f7;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-bottom p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  padding: 0 12px;
}
.sidebar-bottom .install-card {
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.install-card strong {
  font-size: 13px;
  display: block;
  margin: 10px 0 6px;
}
.install-card p {
  font-size: 12px;
  margin: 0 0 9px;
  padding: 0;
  line-height: 1.5;
}
.text-button {
  color: var(--purple);
  padding: 0;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}
.workspace {
  min-width: 0;
  padding: 30px 40px 26px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.school {
  display: flex;
  gap: 11px;
  align-items: center;
  max-width: 66%;
  font-size: 12px;
  color: #696e84;
  line-height: 1.5;
}
.school svg {
  color: #9296ab;
}
.school span {
  overflow-wrap: anywhere;
}
.profile-button {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 5px 10px 5px 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  max-width: 240px;
}
.avatar {
  background: var(--soft);
  color: var(--purple);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 11px;
}
.profile-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-button svg {
  width: 15px;
  height: 15px;
}
.mobile-brand {
  display: none;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 750;
  color: #9294aa;
  margin: 0 0 12px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.page-heading h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1.1px;
  margin: 0 0 10px;
  font-weight: 720;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.icon-button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 13px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 266px;
  gap: 26px;
  align-items: start;
}
.hero {
  background: #5146d9;
  background: linear-gradient(115deg, #5146d9, #6857e6);
  border-radius: var(--radius);
  color: #fff;
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
  min-height: 206px;
  box-shadow: 0 12px 25px -18px #5146d9;
}
.hero:after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border: 36px solid #ffffff07;
  border-radius: 50%;
  right: -80px;
  top: -96px;
  pointer-events: none;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #e2defe;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #c1ffdd;
  border-radius: 50%;
}
.hero h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin: 20px 76px 12px 0;
  overflow-wrap: anywhere;
}
.hero .hero-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #eae7ff;
  line-height: 1.6;
  max-width: 90%;
}
.hero-meta svg {
  width: 15px;
  height: 15px;
  margin-right: 3px;
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ffffff22;
  margin-top: 22px;
  padding-top: 15px;
  font-size: 11px;
  gap: 12px;
  color: #e6e1ff;
}
.hero-bottom strong {
  color: #fff;
  font-weight: 600;
}
.time-ring {
  position: absolute;
  right: 26px;
  top: 62px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid #ffffff30;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 16px;
  font-weight: 700;
}
.time-ring small {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1px;
  color: #dfd9ff;
}
.datebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 18px;
}
.datebar h2 {
  font-size: 16px;
  margin: 0;
  letter-spacing: -0.3px;
}
.datebar .controls {
  display: flex;
  align-items: center;
  gap: 5px;
}
.controls button {
  font-size: 11px;
  color: var(--muted);
  min-width: 32px;
  min-height: 32px;
  padding: 0 7px;
}
.controls svg {
  width: 16px;
  height: 16px;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}
.day {
  min-width: 0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 70px;
  color: var(--muted);
  border: 1px solid transparent;
}
.day span {
  font-size: 10px;
}
.day strong {
  font-size: 16px;
  font-weight: 600;
}
.day.active {
  background: var(--purple);
  color: white;
  box-shadow: 0 5px 12px #5146d924;
}
.day.today:not(.active) {
  border-color: #dbd7ff;
  color: var(--purple);
  background: #f0effe;
}
.day.weekend:not(.active) {
  color: #a7abba;
}
.list-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 15px;
}
.list-title h2 {
  font-size: 14px;
  margin: 0;
  font-weight: 650;
}
.list-title small {
  color: var(--muted);
  font-size: 11px;
}
.lesson-row {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr);
  gap: 14px;
  position: relative;
  margin-bottom: 12px;
}
.lesson-time {
  padding-top: 18px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: #444960;
}
.lesson-time span {
  display: block;
  margin-top: 6px;
  color: #9a9dae;
  font-size: 10px;
  font-weight: 400;
}
.lesson-stack {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.lesson {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 17px 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  min-height: 86px;
  width: 100%;
  text-align: left;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.lesson:hover {
  transform: translateY(-1px);
  border-color: #c5bff4;
}
.lesson.current {
  border: 1.5px solid #a69bf0;
  background: #fdfcff;
}
.lesson.current:before {
  content: "";
  position: absolute;
  left: -2px;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 4px;
  background: var(--purple);
}
.lesson.past {
  background: #fcfcfd;
}
.subject-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
  background: #eeedfb;
  color: #7661c6;
  font-size: 18px;
  font-weight: 550;
}
.tone-1 {
  background: #eaf4ef;
  color: #478a75;
}
.tone-2 {
  background: #fff2df;
  color: #b28b45;
}
.tone-3 {
  background: #e9f1fe;
  color: #6089bc;
}
.tone-4 {
  background: #fbeef2;
  color: #b67890;
}
.lesson-main {
  min-width: 0;
  flex: 1;
}
.lesson-title {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 650;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.lesson-sub {
  font-size: 10px;
  line-height: 1.5;
  color: #85899d;
  overflow-wrap: anywhere;
}
.lesson-group {
  font-size: 10px;
  background: #f0eff7;
  color: #817295;
  border-radius: 5px;
  padding: 2px 5px;
  display: inline-block;
  margin-top: 5px;
}
.room {
  text-align: right;
  flex-shrink: 0;
  max-width: 80px;
}
.room strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.room small {
  font-size: 9px;
  color: #9397aa;
  display: block;
  margin-top: 5px;
}
.now-tag {
  color: var(--purple);
  font-size: 9px;
  display: inline-block;
  margin-left: 6px;
  font-weight: 650;
  white-space: nowrap;
}
.note-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ce9c4a;
  margin-left: 5px;
  vertical-align: middle;
}
.gap {
  border: 1px dashed #dfe1eb;
  border-radius: 13px;
  padding: 13px 16px;
  font-size: 11px;
  color: #9195a8;
  display: flex;
  gap: 9px;
  align-items: center;
}
.gap svg {
  width: 16px;
  height: 16px;
}
.aside {
  display: grid;
  gap: 18px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 21px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.panel-heading h2 {
  font-size: 13px;
  margin: 0;
  font-weight: 650;
}
.panel-heading svg {
  width: 17px;
  height: 17px;
  color: #aaa6bf;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat {
  font-size: 25px;
  letter-spacing: -0.8px;
  font-weight: 650;
}
.stat small {
  display: block;
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-top: 7px;
}
.panel .divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0 15px;
}
.panel-copy {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.mini-list {
  display: grid;
  gap: 14px;
}
.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-row .subject-symbol {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  font-size: 15px;
}
.mini-row strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.4;
}
.mini-row small {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.6;
}
.mini-row time {
  font-size: 10px;
  color: #8d90a4;
  margin-left: auto;
}
.tomorrow-more {
  font-size: 10px;
  color: var(--muted);
  margin: 15px 0 0;
}
.quiet-panel {
  background: #efedf9;
  border-color: #e7e3f5;
}
.quiet-panel .panel-copy {
  color: #817995;
}
.quiet-panel button {
  margin-top: 9px;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #9295a8;
  font-size: 10px;
  margin: 32px 0 0;
  line-height: 1.5;
}
.footer a {
  color: #83879d;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #78af98;
  margin-right: 5px;
}
.status-dot.offline {
  background: #c4a568;
}
.demo-banner {
  font-size: 10px;
  line-height: 1.6;
  padding: 8px 13px;
  background: #fff7e7;
  border: 1px solid #f0e3c9;
  color: #9a7c42;
  border-radius: 10px;
  margin: 0 0 18px;
}
.notice {
  background: #eaf2ff;
  color: #4c648d;
  border: 1px solid #dbe7ff;
  border-radius: 13px;
  padding: 12px 15px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1.5;
}
.notice button {
  margin-left: auto;
  color: var(--purple);
  font-size: 11px;
  font-weight: 600;
}
.empty {
  padding: 32px 20px;
  background: #fff;
  border: 1px dashed #dddfea;
  border-radius: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.empty svg {
  margin-bottom: 10px;
  width: 28px;
  height: 28px;
}
.bottom-nav {
  display: none;
}
.onboard {
  max-width: 510px;
  margin: 8vh auto;
  padding: 30px 24px;
}
.onboard .brand {
  justify-content: center;
  margin-bottom: 45px;
}
.onboard h1 {
  font-size: 34px;
  letter-spacing: -1.1px;
  text-align: center;
  margin: 0 0 14px;
}
.onboard > p {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.onboard .picker {
  max-height: 40vh;
  overflow: auto;
}
.search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8f9fc;
  padding: 13px 15px;
  outline: none;
  margin-bottom: 16px;
}
.class-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.choice {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  font-weight: 600;
  font-size: 16px;
}
.choice:hover {
  border-color: #aaa0eb;
  background: #f5f3ff;
}
.teacher-choice {
  width: 100%;
  font-size: 13px;
  text-align: left;
  margin-bottom: 8px;
  font-weight: 500;
}
.local-hint {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 23px 0 0;
}
.local-hint svg {
  width: 13px;
  height: 13px;
  margin-right: 4px;
}
.primary {
  background: var(--purple);
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
}
.secondary {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 13px;
  background: #fff;
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.section-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 14px;
}
.section-card h2 {
  font-size: 15px;
  margin: 0 0 10px;
}
.section-card p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.section-card > button {
  margin-top: 15px;
}
.section-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.section-card .row > div {
  min-width: 0;
}
.section-card h3 {
  font-size: 13px;
  margin: 0 0 6px;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.week-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.week-panel h2 {
  font-size: 13px;
  margin: 0 0 15px;
  display: flex;
  justify-content: space-between;
}
.week-panel h2 small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.week-lesson {
  display: flex;
  gap: 9px;
  font-size: 11px;
  line-height: 1.5;
  padding: 10px 0;
  border-top: 1px solid #f0f0f6;
}
.week-lesson time {
  color: var(--muted);
  font-size: 10px;
  width: 33px;
  flex-shrink: 0;
}
.week-lesson strong {
  font-weight: 550;
}
.week-lesson small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.note-card {
  display: flex;
  gap: 13px;
  background: #fff;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
}
.check-button {
  width: 23px;
  height: 23px;
  min-height: 23px;
  border: 1px solid #d5d3e3;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin: 2px 0;
}
.check-button[aria-pressed="true"] {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.check-button svg {
  width: 16px;
  height: 16px;
}
.note-card.done .note-content {
  opacity: 0.55;
}
.note-card.done .note-text {
  text-decoration: line-through;
}
.note-content {
  flex: 1;
  min-width: 0;
}
.note-text {
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.note-caption {
  font-size: 10px;
  color: var(--muted);
  margin: 8px 0;
}
.note-actions button {
  color: var(--purple);
  font-size: 11px;
  min-height: 32px;
  padding: 0 14px 0 0;
}
.settings-list {
  max-width: 780px;
}
.group-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 13px;
}
.group-row input {
  min-height: 20px;
  width: 19px;
  height: 19px;
  accent-color: var(--purple);
}
dialog {
  border: 0;
  border-radius: 24px;
  padding: 28px;
  width: calc(100% - 32px);
  max-width: 460px;
  box-shadow: 0 24px 120px #19183130;
  color: var(--ink);
  max-height: 88dvh;
  overflow: auto;
  background: white;
}
dialog::backdrop {
  background: #1b18395a;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.dialog-head h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin: 0;
}
.dialog-head button {
  min-width: 32px;
}
.dialog-head svg {
  width: 19px;
  height: 19px;
}
.dialog-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 19px;
}
.field-label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin: 15px 0 8px;
}
textarea {
  resize: vertical;
  min-height: 118px;
  width: 100%;
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 12px;
  line-height: 1.6;
  font-size: 13px;
}
input[type="date"] {
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 10px;
  width: 100%;
  background: white;
}
.share-link {
  display: block;
  overflow-wrap: anywhere;
  background: #f4f3fa;
  padding: 13px;
  border-radius: 11px;
  color: var(--purple);
  font-size: 12px;
  line-height: 1.6;
}
.install-steps {
  font-size: 13px;
  line-height: 1.8;
  padding-left: 22px;
  color: #686b82;
}
.install-steps li {
  padding-bottom: 8px;
}
.detail-meta {
  background: #f7f6fc;
  border-radius: 14px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.9;
  color: #6d7088;
}
.detail-meta strong {
  color: var(--ink);
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  border-radius: 12px;
  background: #272538;
  color: white;
  padding: 12px 20px;
  font-size: 12px;
  line-height: 1.6;
  max-width: calc(100vw - 36px);
  width: max-content;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition:
    opacity 0.2s,
    transform 0.2s;
  box-shadow: 0 6px 24px #20203022;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.change {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-size: 12px;
  line-height: 1.7;
}
.change strong {
  display: block;
}
.change span {
  color: var(--muted);
}
.group-tools {
  font-size: 11px;
  color: var(--purple);
  margin-top: 10px;
}
.privacy-copy {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.error {
  max-width: 470px;
  padding: 50px 22px;
  margin: 10vh auto;
}
.error h1 {
  font-size: 25px;
}
.error p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
@media (min-width: 1400px) {
  .workspace {
    padding-left: 56px;
    padding-right: 56px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 30px;
  }
  .week-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 200px 1fr;
  }
  .workspace {
    padding: 28px;
  }
  .sidebar {
    padding: 28px 16px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 226px;
    gap: 20px;
  }
  .panel {
    padding: 18px;
  }
  .hero {
    padding: 23px;
  }
  .hero h2 {
    font-size: 24px;
  }
}
@media (max-width: 950px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .aside {
    grid-template-columns: 1fr 1fr;
  }
  .aside .quiet-panel {
    display: none;
  }
  .layout {
    grid-template-columns: 190px 1fr;
  }
  .workspace {
    padding: 24px;
  }
  .hero h2 {
    font-size: 27px;
  }
}
@media (max-width: 680px) {
  .layout {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    padding: 19px 20px calc(95px + env(safe-area-inset-bottom));
  }
  .topbar {
    margin-bottom: 28px;
  }
  .school {
    display: none;
  }
  .mobile-brand {
    display: flex;
    font-size: 18px;
    letter-spacing: -0.4px;
    font-weight: 750;
    gap: 8px;
    align-items: center;
  }
  .mobile-brand .brand-mark {
    width: 28px;
    height: 29px;
    border-radius: 8px;
  }
  .mobile-brand svg {
    width: 19px;
    height: 19px;
  }
  .profile-button {
    max-width: 190px;
    font-size: 11px;
  }
  .avatar {
    width: 28px;
    height: 28px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 28px;
    letter-spacing: -1px;
    margin-bottom: 9px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.8px;
    margin-bottom: 11px;
  }
  .hero {
    padding: 22px 22px 19px;
    border-radius: 21px;
    min-height: 205px;
  }
  .hero h2 {
    font-size: 25px;
    margin-top: 22px;
    margin-right: 60px;
    margin-bottom: 12px;
  }
  .hero-kicker {
    font-size: 9px;
    letter-spacing: 1.2px;
  }
  .hero .hero-meta {
    font-size: 11px;
    gap: 12px;
  }
  .hero-bottom {
    font-size: 10px;
    padding-top: 15px;
    margin-top: 21px;
  }
  .time-ring {
    right: 20px;
    top: 63px;
    width: 51px;
    height: 51px;
    font-size: 15px;
  }
  .time-ring small {
    font-size: 7px;
  }
  .datebar {
    margin: 26px 0 15px;
  }
  .datebar h2 {
    font-size: 14px;
  }
  .days {
    gap: 5px;
    margin-bottom: 22px;
  }
  .day {
    min-height: 65px;
    border-radius: 13px;
    gap: 8px;
  }
  .day strong {
    font-size: 15px;
  }
  .day span {
    font-size: 10px;
  }
  .lesson-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 10px;
  }
  .lesson-time {
    font-size: 10px;
    padding-top: 20px;
  }
  .lesson-time span {
    font-size: 9px;
  }
  .lesson {
    padding: 15px 12px;
    gap: 10px;
    border-radius: 15px;
    min-height: 82px;
  }
  .subject-symbol {
    width: 32px;
    height: 34px;
    border-radius: 10px;
    font-size: 16px;
  }
  .lesson-title {
    font-size: 12px;
  }
  .lesson-sub {
    font-size: 9px;
  }
  .room strong {
    font-size: 12px;
  }
  .room small {
    font-size: 8px;
  }
  .room {
    max-width: 58px;
  }
  .lesson-group {
    font-size: 9px;
  }
  .now-tag {
    font-size: 8px;
    display: block;
    margin: 3px 0 0;
  }
  .aside {
    display: none;
  }
  .list-title {
    margin-bottom: 13px;
  }
  .list-title h2 {
    font-size: 13px;
  }
  .list-title small {
    font-size: 10px;
  }
  .footer {
    font-size: 9px;
    margin-top: 25px;
    align-items: flex-start;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
    justify-content: space-around;
    background: #ffffffed;
    border-top: 1px solid #e9e9f1;
    backdrop-filter: blur(20px);
    z-index: 10;
  }
  .bottom-nav button {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    color: #9a9cad;
    min-width: 58px;
    font-size: 9px;
  }
  .bottom-nav button.active {
    color: var(--purple);
  }
  .bottom-nav button svg {
    width: 21px;
    height: 21px;
  }
  .week-grid {
    grid-template-columns: 1fr;
  }
  .onboard {
    margin: 5vh auto;
  }
  .onboard h1 {
    font-size: 30px;
  }
  .class-grid {
    gap: 8px;
  }
  .choice {
    padding: 12px;
  }
  .demo-banner {
    font-size: 9px;
    margin-bottom: 16px;
  }
  .section-card {
    padding: 18px;
  }
  .section-card .row {
    gap: 10px;
  }
  .section-card .row > button {
    font-size: 11px;
    padding: 10px;
  }
  .notice {
    font-size: 11px;
    padding: 12px;
  }
  .notice button {
    font-size: 10px;
  }
  .note-card {
    padding: 17px;
  }
  .note-text {
    font-size: 12px;
  }
  .dialog-head h2 {
    font-size: 20px;
  }
  dialog {
    padding: 24px;
    border-radius: 22px;
  }
  #toast {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .bottom-nav,
  .footer,
  .icon-button,
  .controls,
  .demo-banner,
  .notice {
    display: none !important;
  }
  .layout,
  .workspace {
    display: block;
    padding: 0;
  }
  .content-grid {
    display: block;
  }
  .aside {
    display: none;
  }
  .hero {
    color: black;
    background: #eee;
    box-shadow: none;
  }
  .hero * {
    color: black !important;
  }
  .lesson-row,
  .week-panel {
    break-inside: avoid;
  }
  .week-grid {
    display: block;
  }
  .week-panel {
    margin-bottom: 20px;
  }
}
/* Keep the timetable readable on small phone screens. */
@media (max-width: 680px) {
  .profile-button {
    min-width: 0;
  }
  .mobile-brand {
    flex-shrink: 0;
  }
  .lesson-title {
    font-size: 14px;
  }
  .lesson-sub {
    font-size: 11px;
  }
  .lesson-time {
    font-size: 11px;
  }
  .lesson-time span {
    font-size: 10px;
  }
  .room strong {
    font-size: 14px;
  }
  .room small {
    font-size: 9px;
  }
  .lesson-group {
    font-size: 10px;
  }
  .now-tag {
    font-size: 9px;
  }
}

html,
body,
#app {
  background: #f5f6fa;
  color: #202338;
  min-height: 100%;
  color-scheme: light;
}
#app {
  min-height: 100vh;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}
.layout,
.workspace {
  background: #f5f6fa;
}
.layout {
  max-width: 1680px;
  grid-template-columns: 210px minmax(0, 1fr);
}
.workspace {
  padding: 28px 32px;
}
.sidebar {
  padding: 30px 20px;
}
.sidebar .brand {
  font-size: 19px;
}
.sidebar .nav {
  margin-top: 46px;
}
.install-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #686a82;
  font-size: 12px;
  text-align: left;
  padding: 10px 0;
}
.brand-credit {
  display: block;
  font-size: 11px;
  color: #898b9d;
  margin-top: 18px;
}
.page-heading {
  margin-bottom: 20px;
}
.page-heading h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  margin-bottom: 7px;
}
.topbar {
  margin-bottom: 30px;
}
.schedule-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.week-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 1;
  min-width: 0;
}
.week-range {
  font-size: 14px;
  font-weight: 600;
}
.controls {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  align-items: center;
}
.controls button {
  background: #fff;
  border: 1px solid #e3e5ef;
  border-radius: 9px;
  min-height: 36px;
  min-width: 36px;
  color: #696d83;
  padding: 0 10px;
  font-size: 11px;
}
.group-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dedbef;
  border-radius: 9px;
  min-height: 36px;
  padding: 0 11px;
  font-size: 11px;
  background: #eeedfa;
  color: #5146d9;
  white-space: nowrap;
}
.group-control svg {
  width: 14px;
  height: 14px;
}
.week-table-scroll {
  border: 1px solid #e1e4ef;
  border-radius: 16px;
  overflow: auto;
  background: #fff;
  scrollbar-width: thin;
}
.week-table {
  width: 100%;
  min-width: 800px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  color: #202338;
}
.week-table .slot-col {
  width: 52px;
}
.week-table th,
.week-table td {
  vertical-align: top;
  text-align: left;
  border-right: 1px solid #e7e9f1;
  border-bottom: 1px solid #e7e9f1;
}
.week-table th:last-child,
.week-table td:last-child {
  border-right: 0;
}
.week-table tbody tr:last-child td,
.week-table tbody tr:last-child th {
  border-bottom: 0;
}
.week-table thead th {
  background: #f8f9fc;
  padding: 14px 12px;
}
.week-table thead th.today-column {
  background: #efedfc;
}
.week-table thead button {
  padding: 0;
  min-height: 40px;
  text-align: left;
  width: 100%;
}
.week-table thead strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 650;
}
.week-table thead span {
  display: block;
  font-size: 10px;
  color: #878a9f;
  line-height: 1.4;
  margin-top: 4px;
  font-weight: 400;
}
.week-table thead .today-column strong {
  color: #5146d9;
}
.week-table thead .today-column span {
  color: #7b70b7;
}
.week-table .slot-head {
  font-size: 9px;
  vertical-align: middle;
  padding: 14px 6px;
  text-align: center;
  color: #9497aa;
  font-weight: 500;
  position: sticky;
  left: 0;
  z-index: 2;
}
.week-table .slot-cell {
  vertical-align: top;
  text-align: center;
  background: #f8f9fc;
  padding: 21px 6px;
  position: sticky;
  left: 0;
  z-index: 1;
}
.slot-cell span {
  font-size: 14px;
  color: #83879e;
  font-weight: 550;
}
.week-table td {
  padding: 7px;
  background: #fff;
  height: 116px;
}
.week-table td.today-column {
  background: #fdfcff;
}
.week-lesson {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 9px;
  min-height: 94px;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}
.week-lesson + .week-lesson {
  border-top-color: #e9e8f3;
  margin-top: 6px;
}
.week-lesson:hover {
  background: #f7f6fc;
  border-color: #e3dff7;
}
.week-lesson.current {
  background: #f0edff;
  border-color: #b6adea;
}
.week-subject {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
}
.week-subject .subject-symbol {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 11px;
  flex-shrink: 0;
}
.week-subject-name {
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.week-person {
  font-size: 10px;
  color: #7b7f96;
  display: block;
  overflow-wrap: anywhere;
}
.week-group {
  display: inline-block;
  font-size: 9px;
  color: #80768e;
  background: #f3f0f7;
  padding: 2px 5px;
  border-radius: 4px;
  align-self: flex-start;
}
.week-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  width: 100%;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: #6c7188;
}
.week-details time {
  width: auto;
  font-size: 10px;
  color: #9094a7;
  flex-shrink: 0;
}
.week-details > span {
  font-weight: 550;
}
.cell-live {
  font-size: 9px;
  color: #6151c8;
}
.empty-cell {
  display: block;
  padding: 22px 4px;
  text-align: center;
  color: #b2b5c4;
  font-size: 10px;
}
.week-table .table-empty {
  text-align: center;
  height: auto;
  padding: 35px;
  color: #8b8fa2;
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.current-strip {
  display: flex;
  gap: 13px;
  align-items: center;
  width: 100%;
  padding: 15px 18px;
  border: 1px solid #ded9f6;
  border-radius: 13px;
  background: #edebfb;
  color: #5146d9;
  text-align: left;
  margin-top: 18px;
}
.current-dot {
  width: 6px;
  height: 6px;
  background: #7163ce;
  border-radius: 50%;
  flex-shrink: 0;
}
.current-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.current-copy strong {
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.current-copy > span {
  font-size: 10px;
  color: #8980ae;
  overflow-wrap: anywhere;
}
.current-countdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #8980ae;
  font-size: 9px;
  text-align: right;
  flex-shrink: 0;
}
.current-countdown strong {
  font-size: 13px;
  color: #5146d9;
  font-weight: 600;
}
.current-strip > svg {
  width: 16px;
  height: 16px;
}
.day-content {
  max-width: 820px;
}
.day-content > .week-toolbar {
  margin-bottom: 20px;
}
.day-content .current-strip {
  margin: 0 0 17px;
}
.lesson-row {
  grid-template-columns: 48px minmax(0, 1fr);
}
.lesson-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 12px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.lesson-number strong {
  font-size: 16px;
  font-weight: 650;
  color: #5c6077;
  margin-bottom: 2px;
}
.lesson-number time {
  color: #6c7188;
}
.lesson-number > span {
  color: #9a9dae;
  font-size: 9px;
}
.lesson {
  min-height: 86px;
  border-radius: 13px;
}
.lesson-sub {
  display: block;
}
.subject-symbol {
  font-size: 13px;
  font-weight: 650;
}
.week-agenda {
  display: grid;
  gap: 18px;
}
.agenda-day {
  background: #fff;
  border: 1px solid #e4e6ef;
  border-radius: 14px;
}
.agenda-day.is-today {
  border-color: #c8bfed;
}
.agenda-day-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 15px;
  border-bottom: 1px solid #e8eaf1;
  background: #fafbfe;
  border-radius: 14px 14px 0 0;
}
.is-today .agenda-day-heading {
  background: #eeecfb;
}
.agenda-day-heading button {
  text-align: left;
  min-height: 40px;
  padding: 0;
}
.agenda-day-heading strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
.is-today .agenda-day-heading strong {
  color: #5146d9;
}
.agenda-day-heading button > span {
  display: block;
  font-size: 11px;
  color: #9092a6;
  margin-top: 4px;
}
.agenda-day-heading small {
  font-size: 10px;
  color: #9699ad;
  white-space: nowrap;
}
.agenda-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 0 9px;
}
.agenda-row + .agenda-row {
  border-top: 1px solid #eff0f6;
}
.agenda-number {
  color: #9195a9;
  font-size: 12px;
  text-align: center;
  padding-top: 18px;
  font-variant-numeric: tabular-nums;
}
.agenda-lessons {
  min-width: 0;
  padding: 4px 0;
}
.agenda-empty {
  padding: 20px 15px;
  color: #999daf;
  font-size: 12px;
}
.agenda-gap {
  min-height: 45px;
  display: flex;
  align-items: center;
  color: #a1a5b6;
  font-size: 11px;
  padding-left: 9px;
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .workspace {
    padding: 25px;
  }
  .sidebar {
    padding: 28px 15px;
  }
  .sidebar .brand {
    font-size: 17px;
    gap: 8px;
  }
  .sidebar .brand-mark {
    width: 28px;
    height: 30px;
  }
  .schedule-tools {
    flex-wrap: wrap;
    gap: 12px;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    padding: 18px 16px calc(94px + env(safe-area-inset-bottom));
  }
  .school {
    display: none;
  }
  .mobile-brand {
    display: flex;
    font-size: 17px;
    letter-spacing: -0.4px;
    font-weight: 750;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
  }
  .mobile-brand .brand-mark {
    width: 28px;
    height: 29px;
    border-radius: 8px;
  }
  .mobile-brand svg {
    width: 19px;
    height: 19px;
  }
  .profile-button {
    max-width: 190px;
    min-width: 0;
    font-size: 11px;
  }
  .avatar {
    width: 28px;
    height: 28px;
  }
  .topbar {
    margin-bottom: 25px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .week-toolbar {
    gap: 9px;
    width: 100%;
    flex-basis: 100%;
  }
  .week-range {
    font-size: 12px;
    line-height: 1.5;
  }
  .controls {
    gap: 4px;
  }
  .controls button {
    font-size: 10px;
    padding: 0 8px;
    min-width: 32px;
    min-height: 36px;
  }
  .controls svg {
    width: 14px;
    height: 14px;
  }
  .schedule-tools {
    margin-bottom: 14px;
    gap: 10px;
  }
  .group-control {
    min-height: 32px;
    font-size: 10px;
    padding: 0 9px;
  }
  .week-lesson {
    min-height: 80px;
    padding: 10px 8px;
    gap: 6px;
  }
  .week-subject-name {
    font-size: 13px;
  }
  .week-subject .subject-symbol {
    width: 27px;
    height: 27px;
    font-size: 11px;
  }
  .week-person {
    font-size: 10px;
    margin-left: 35px;
  }
  .week-group {
    margin-left: 35px;
  }
  .week-details {
    font-size: 11px;
    padding-left: 35px;
  }
  .week-details time {
    font-size: 10px;
  }
  .cell-live {
    margin-left: 35px;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    justify-content: space-around;
    background: #ffffffed;
    border-top: 1px solid #e9e9f1;
    backdrop-filter: blur(20px);
    z-index: 10;
  }
  .bottom-nav button {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    color: #9a9cad;
    min-width: 65px;
    font-size: 9px;
  }
  .bottom-nav button.active {
    color: #5146d9;
  }
  .bottom-nav button svg {
    width: 21px;
    height: 21px;
  }
  .current-strip {
    padding: 13px 12px;
    gap: 9px;
  }
  .current-copy strong {
    font-size: 11px;
  }
  .current-copy > span {
    font-size: 9px;
  }
  .lesson-row {
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 9px;
  }
  .lesson-title {
    font-size: 13px;
  }
  .lesson-sub {
    font-size: 10px;
  }
  .subject-symbol {
    font-size: 12px;
  }
  #toast {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 360px) {
  .week-range {
    max-width: 112px;
  }
  .mobile-brand {
    font-size: 15px;
  }
  .profile-button {
    gap: 6px;
  }
}
@media print {
  .week-table-scroll {
    overflow: visible;
  }
  .week-table {
    min-width: 0;
    font-size: 9px;
  }
  .week-table thead {
    display: table-header-group;
  }
  .week-table tr {
    break-inside: avoid;
  }
  .week-table .slot-cell,
  .week-table .slot-head {
    position: static;
  }
  .current-strip,
  .schedule-tools .controls,
  .group-control {
    display: none;
  }
}

.live-card {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(200px, 1fr);
  gap: 26px;
  align-items: center;
  padding: 26px 28px;
  margin: 0 0 24px;
  border-radius: 22px;
  background: linear-gradient(115deg, #5146d9, #6c59e9);
  color: #fff;
  box-shadow: 0 12px 28px -22px #5146d9;
  position: relative;
  overflow: hidden;
}
.live-card::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -100px;
  top: -100px;
  border: 34px solid #ffffff08;
  border-radius: 50%;
  pointer-events: none;
}
.live-main {
  min-width: 0;
}
.live-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 10px;
  font-weight: 650;
  color: #e5e0ff;
}
.live-body {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}
.live-info {
  flex: 1;
  min-width: 0;
}
.live-info h2 {
  font-size: 27px;
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin: 0 0 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.live-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: #ece8ff;
  font-size: 12px;
  line-height: 1.6;
}
.live-meta > span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.live-meta svg {
  width: 15px;
  height: 15px;
}
.live-timer {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}
.live-ring {
  width: 100%;
  height: 100%;
  stroke-width: 3;
  transform: rotate(-90deg);
}
.live-ring circle {
  fill: none;
}
.ring-track {
  stroke: #ffffff28;
}
.ring-value {
  stroke: #ded7ff;
  stroke-linecap: round;
}
.live-timer-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: center;
  justify-content: center;
}
.live-timer-value strong {
  font-size: 24px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.live-timer-value span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e2dcff;
}
.live-caption {
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid #ffffff24;
  color: #e5dfff;
  font-size: 11px;
}
.live-caption strong {
  font-weight: 600;
  color: #fff;
}
.live-next {
  min-width: 0;
  border-left: 1px solid #ffffff26;
  padding-left: 26px;
}
.live-next-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: #dcd5ff;
}
.live-next-label svg {
  width: 17px;
  height: 17px;
}
.live-next-lesson {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 0;
  margin-top: 13px;
  text-align: left;
  color: #fff;
  width: 100%;
}
.live-next-lesson strong {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.live-next-lesson > span {
  font-size: 11px;
  line-height: 1.6;
  color: #e2dcff;
}
.live-next-lesson .live-next-time {
  color: #f3efff;
}
.live-next-lesson:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.live-next-empty {
  font-size: 12px;
  line-height: 1.7;
  color: #e2dcff;
  margin: 12px 0 0;
}
.live-finished-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border: 1px solid #ffffff28;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #e6dfff;
}
.live-finished-icon svg {
  width: 30px;
  height: 30px;
}
@media (max-width: 760px) {
  .live-card {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 22px;
    border-radius: 20px;
    margin-bottom: 22px;
  }
  .live-kicker {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .live-body {
    margin-top: 17px;
    gap: 14px;
  }
  .live-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  .live-meta {
    font-size: 11px;
    gap: 7px 12px;
  }
  .live-timer {
    width: 62px;
    height: 62px;
  }
  .live-timer-value strong {
    font-size: 22px;
  }
  .live-caption {
    border-top: 0;
    padding-top: 0;
    margin-top: 13px;
    font-size: 10px;
  }
  .live-next {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #ffffff26;
    padding-top: 15px;
    margin-top: 18px;
  }
  .live-next-label {
    font-size: 9px;
  }
  .live-next-lesson {
    gap: 4px;
    margin-top: 8px;
  }
  .live-next-lesson strong {
    font-size: 14px;
  }
  .live-next-lesson > span {
    font-size: 10px;
  }
  .live-finished-icon {
    width: 48px;
    height: 48px;
  }
}
@media print {
  .live-card {
    display: none;
  }
}

.live-next-link {
  width: 100%;
  min-height: 44px;
  padding: 0;
  text-align: left;
  border-radius: 6px;
}
.live-next-link:hover {
  color: #fff;
}
.live-next-link:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.live-next-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Calendar additions: the Schedule stylesheet above is kept byte-for-byte. */
.publication-period{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:-4px 0 18px;color:var(--muted);font-size:12px;line-height:1.5}
.calendar-status{display:inline-flex;align-self:flex-start;width:fit-content;max-width:100%;margin-top:7px;padding:4px 7px;border-radius:6px;font-size:10px;line-height:1.4;font-weight:600;white-space:normal;text-align:left}
.calendar-status.cancelled{color:#a33b45;background:#fff0f1}.calendar-status.moved{color:#6854a4;background:#f0ecfa}
.is-cancelled .week-subject-name,.is-cancelled .lesson-title{text-decoration:line-through;color:#827b84}
.week-lesson.is-cancelled,.lesson.is-cancelled{background:#fcf8f9;border-style:dashed;border-color:#e7d9dc}
.week-lesson.is-moved-away,.lesson.is-moved-away{background:#faf9fc;border-style:dashed;border-color:#dcd6e9}
.is-moved-away .week-person,.is-moved-away .week-details,.is-moved-away .lesson-sub,.is-moved-away .room{opacity:.65}
.button-spaced{margin-top:20px}.centered{text-align:center}
#dialog>.calendar-status{margin:0 0 18px}
@media(max-width:760px){.calendar-status{font-size:10px}.publication-period{margin:4px 0 14px;font-size:11px}}

.calendar-day-tag{display:block;margin:6px 0;color:#6d4ca0;font-size:12px;line-height:1.4;font-weight:600;white-space:normal}
.calendar-changes{margin:24px auto 0;border:1px solid var(--line,#dddfea);border-radius:14px;background:var(--card,#fff);padding:16px;max-width:1000px}
.calendar-changes>summary{cursor:pointer;font-weight:700;font-size:16px}
.calendar-change-list{display:grid;gap:12px;margin-top:14px}
.calendar-change{padding:12px;border-radius:10px;background:var(--bg,#f5f6fa);min-width:0}
.calendar-change>strong{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.calendar-change p{margin:6px 0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.calendar-change .calendar-status{margin:0}
body[data-static="true"] .note-dot{display:none}

/* Calendar day view shares the centered width of its dated change list. */
.day-content{max-width:1000px;width:100%;margin-inline:auto}
/* Clear, accessible status hierarchy on phones and desktop. */
.calendar-changes{padding:20px;border-color:#cbd5e1;box-shadow:0 4px 18px #18304d08}
.calendar-changes>summary{display:list-item;font-size:18px;line-height:1.5}
.change-count{display:inline-grid;place-items:center;min-width:28px;padding:1px 8px;border-radius:20px;background:#e7edff;color:#274395;font-size:13px}
.calendar-change{--change-color:#5268af;--change-bg:#edf1fc;background:var(--card,#fff);border:1px solid #dce2ed;border-left:5px solid var(--change-color);padding:16px}
.calendar-change.kind-replacement{--change-color:#85509c;--change-bg:#f4edf9}
.calendar-change.kind-moved{--change-color:#345bd0;--change-bg:#eaf0ff}
.calendar-change.kind-cancelled{--change-color:#b73b4c;--change-bg:#fff0f2}
.calendar-change.kind-added{--change-color:#247c60;--change-bg:#e7f7ef}
.calendar-change.kind-removed{--change-color:#596579;--change-bg:#eef1f6}
.calendar-change header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.calendar-change header strong{font-size:16px}
.calendar-change .calendar-status{display:inline-flex;align-items:center;gap:7px;background:var(--change-bg);color:var(--change-color);font-size:13px;font-weight:700;padding:6px 10px;border-radius:8px}
.calendar-change .calendar-status svg{width:17px;height:17px}
.change-comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.change-side{display:flex;flex-direction:column;gap:5px;min-width:0;padding:12px;border-radius:9px;background:var(--change-bg);font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.change-before{background:var(--bg,#f4f6fa);color:var(--muted,#596579)}
.change-side>small{font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.change-side>strong{font-size:15px;color:var(--ink,#202338)}
/* The shared public shell is light, including on devices using dark mode. */
.calendar-day-tag,.week-table thead span.calendar-day-tag{display:inline-flex;align-items:center;gap:7px;max-width:100%;padding:7px 10px;margin:8px 0 0;border:1px solid #d7e0f4;border-radius:9px;background:#edf2ff;color:#304a92;font-size:12px;font-weight:600;line-height:1.4;white-space:normal}
.calendar-day-tag[data-kind=holiday],.week-table thead span.calendar-day-tag[data-kind=holiday]{border-color:#c5e4dc;background:#edf8f4;color:#246654}
.calendar-day-tag>svg{width:17px;height:17px}
.calendar-day-tag>span,.week-table thead .calendar-day-tag>span{display:inline;margin:0;color:inherit;font:inherit;line-height:inherit}
.publication-announcement{display:flex;align-items:flex-start;gap:14px;max-width:1000px;margin:18px auto;padding:18px 20px;border:1px solid #dce2ef;border-left:4px solid #6c70d4;border-radius:14px;background:#fff;box-shadow:0 3px 12px #283e6806;color:#303952}
.publication-announcement>div{min-width:0}
.publication-announcement strong{font-size:12px;font-weight:700;letter-spacing:.02em;color:#606b87}
.publication-announcement p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.6;color:#202b42}
.announcement-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:10px;background:#f0effc;color:#5b58b9}
.announcement-icon svg{width:21px;height:21px}
#dialog.changes-dialog{width:calc(100% - 40px);max-width:960px;padding:0;border-radius:20px;overflow:hidden;max-height:min(88dvh,900px)}
#dialog.changes-dialog[open]{display:flex;flex-direction:column}
.changes-dialog .dialog-head{flex-shrink:0;padding:22px 26px 14px;margin:0}
.changes-dialog .dialog-head button{border-radius:10px;width:36px;min-height:36px;background:#f2f4f9;color:#58617a}
.changes-dialog .dialog-head button:hover{background:#e9ecf5;color:#202338}
.changes-intro{display:flex;align-items:center;gap:10px;margin:0;padding:0 26px 18px;color:#626d83;font-size:13px}
.changes-dialog-list{display:grid;gap:14px;overflow-y:auto;overscroll-behavior:contain;padding:20px 26px;background:#f6f7fb;border-block:1px solid #e3e7f0;min-height:0}
.changes-dialog .calendar-change{border-left-width:4px;padding:16px 18px;border-radius:12px;box-shadow:0 2px 5px #25334b03}
.changes-dialog .calendar-change header{align-items:flex-start;flex-wrap:wrap}
.changes-dialog .calendar-change header>strong{padding-top:5px;font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.changes-dialog .change-side{gap:6px;line-height:1.6;color:#36445b}
.changes-dialog .change-before{color:#626d83}
.changes-dialog .change-side p{margin:0;font-size:13px;line-height:1.6}
.changes-dialog .change-after>small{color:var(--change-color)}
.changes-dialog-footer{display:flex;justify-content:flex-end;padding:16px 26px;flex-shrink:0;background:#fff}
.changes-dialog>.dialog-copy{padding:0 26px 22px;margin:0}
@media(max-width:560px){.calendar-changes{padding:14px}.calendar-change{padding:12px}.change-comparison{grid-template-columns:1fr}.change-side{gap:3px}.publication-announcement{padding:14px;gap:10px}.publication-announcement p{font-size:14px}#dialog.changes-dialog{width:calc(100% - 20px);max-height:92dvh;border-radius:16px}.changes-dialog .dialog-head{padding:18px 16px 12px}.changes-intro{padding:0 16px 14px}.changes-dialog-list{padding:14px 12px;gap:12px}.changes-dialog .calendar-change{padding:13px}.changes-dialog-footer{padding:12px 16px}}

/* A single readable event panel fills an empty day. */
.calendar-event-cell{vertical-align:middle!important;background:#f6fbf9}
.calendar-event-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:180px;padding:26px 18px;border:1px solid #d0e6de;border-radius:16px;background:#f0f8f5;text-align:center;color:#246654}
.calendar-event-empty.special{border-color:#d8d5f0;background:#f4f3fb;color:#55488c}
.calendar-event-empty .event-symbol{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#e1f0ea;color:#32765f}
.calendar-event-empty.special .event-symbol{background:#eae6f7;color:#655397}
.calendar-event-empty .event-symbol svg{width:27px;height:27px}
.calendar-event-empty strong{font-size:17px;line-height:1.45;overflow-wrap:anywhere;color:inherit}
.calendar-event-empty p{margin:0;font-size:13px;line-height:1.5;color:#536e65}
.calendar-event-empty.special p{color:#69627d}
.calendar-event-cell .calendar-event-empty{border:0;background:transparent;padding:18px 8px;min-height:160px}
.agenda-day>.calendar-event-empty{margin:0 14px 14px}
