:root {
  --page: #f5f7fc;
  --panel: #ffffff;
  --panel-blue: #eef2ff;
  --line: #e4e9f3;
  --line-strong: #d5ddec;
  --ink: #16243a;
  --muted: #8794aa;
  --muted-deep: #65738a;
  --blue: #4e68ef;
  --blue-deep: #3855d9;
  --blue-pale: #edf1ff;
  --teal: #4eb0a4;
  --teal-pale: #edf9f7;
  --purple: #9d7cdf;
  --purple-pale: #f3effd;
  --orange: #e6a04d;
  --orange-pale: #fff3e4;
  --pink: #d989b4;
  --pink-pale: #fdf0f7;
  --shadow: 0 10px 30px rgba(39, 62, 110, 0.045);
  --radius: 10px;
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--page);
}

body {
  transition: background 180ms ease, color 180ms ease;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(78, 104, 239, 0.22);
  outline-offset: 2px;
}

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

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 42px 26px 25px;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  color: white;
  background: var(--blue);
  box-shadow: 0 9px 18px rgba(78, 104, 239, 0.2);
  font-size: 24px;
  font-weight: 900;
}

.brand-name {
  color: var(--ink);
  font-size: 25px;
  font-weight: 850;
  line-height: 1;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.class-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 11px;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #58b9a4;
}

.main-nav {
  display: grid;
  gap: 8px;
  margin-top: 30px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 17px;
  border: 0;
  border-radius: 10px;
  color: var(--muted-deep);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  color: var(--blue);
  background: #f5f7ff;
  transform: translateX(2px);
}

.nav-item.is-active {
  color: var(--blue);
  background: #eef1ff;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 18px;
  color: currentColor;
  font-size: 20px;
  line-height: 1;
}

.sidebar-bottom {
  margin-top: auto;
  color: var(--muted);
}

.sidebar-spark {
  margin-bottom: 18px;
  color: #a5b7ff;
  font-size: 25px;
}

.sidebar-bottom h2 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.sidebar-bottom p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.sidebar-rule {
  height: 1px;
  margin: 22px 0 16px;
  background: var(--line);
}

.sidebar-term {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.main-shell {
  min-width: 0;
  padding: 0 50px 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb,
.topbar-actions,
.current-clock,
.theme-button,
.date-nav-top,
.week-switcher,
.date-jump,
.section-heading-row,
.timing-card-title,
.rhythm-title {
  display: flex;
  align-items: center;
}

.breadcrumb {
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb strong {
  color: var(--muted-deep);
  font-weight: 650;
}

.breadcrumb-slash {
  color: #b5bfd0;
}

.topbar-actions {
  gap: 17px;
}

.current-clock {
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.theme-button,
.outline-button,
.small-square-button,
.aside-link,
.primary-button,
.secondary-button {
  border: 1px solid var(--line);
  background: var(--panel);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.theme-button {
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  color: var(--muted-deep);
  font-size: 11px;
  font-weight: 750;
}

.theme-button:hover,
.outline-button:hover,
.small-square-button:hover,
.aside-link:hover,
.secondary-button:hover {
  border-color: #b7c2fa;
  color: var(--blue);
  background: var(--blue-pale);
}

main {
  max-width: 1400px;
  margin: 0 auto;
}

.view-panel {
  display: none;
  padding-top: 36px;
}

.view-panel.is-visible {
  display: block;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  min-height: 122px;
}

.page-kicker,
.aside-kicker,
.banner-kicker {
  color: #99a7bf;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.22em;
}

.page-heading h1 {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.page-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 39px;
  padding: 0 15px;
  border-radius: 9px;
  color: var(--muted-deep);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.outline-button span {
  color: var(--blue);
  font-size: 15px;
}

.date-navigator {
  margin-top: 4px;
  padding: 17px 20px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.date-nav-top {
  justify-content: space-between;
  gap: 14px;
}

.week-switcher {
  gap: 10px;
}

.small-square-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: #f6f8fc;
  font-size: 24px;
  line-height: 1;
}

.week-switcher select {
  min-width: 126px;
  padding: 7px 25px 7px 4px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.week-range {
  margin-left: 4px;
  color: #a2aec1;
  font-size: 11px;
}

.date-jump {
  gap: 9px;
  color: #a0adbf;
  font-size: 10px;
}

.date-jump input {
  width: 132px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted-deep);
  background: var(--panel);
  font-size: 11px;
}

.day-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 17px;
}

.day-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 80px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.day-button:hover {
  color: var(--blue);
  background: #f7f8ff;
}

.day-button .day-name {
  font-size: 11px;
}

.day-button .day-number {
  color: var(--ink);
  font-size: 21px;
  font-weight: 850;
  line-height: 1;
}

.day-button .day-mark {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c8d2ff;
}

.day-button.is-active {
  color: white;
  background: var(--blue);
  box-shadow: 0 9px 18px rgba(78, 104, 239, 0.2);
  transform: translateY(-1px);
}

.day-button.is-active .day-number {
  color: white;
}

.day-button.is-active .day-mark {
  background: white;
}

.rest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 168px;
  margin-top: 23px;
  padding: 25px 30px;
  overflow: hidden;
  border: 1px solid #dfe6ff;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--panel-blue);
}

.rest-banner h2 {
  margin: 10px 0 0;
  font-size: 25px;
  line-height: 1.25;
}

.rest-banner p {
  margin: 10px 0 0;
  color: var(--muted-deep);
  font-size: 12px;
}

.rest-detail {
  margin-top: 8px;
  color: #7b8cbc;
  font-size: 11px;
  line-height: 1.7;
}

.rest-illustration {
  position: relative;
  width: 170px;
  height: 128px;
  flex: 0 0 170px;
  order: 2;
}

.rest-illustration::before,
.rest-illustration::after {
  position: absolute;
  content: "";
  border: 1px solid #d4defd;
  border-radius: 50%;
}

.rest-illustration::before {
  top: 5px;
  right: 0;
  width: 106px;
  height: 106px;
}

.rest-illustration::after {
  top: 21px;
  right: 16px;
  width: 77px;
  height: 77px;
}

.rest-check {
  position: absolute;
  top: 20px;
  right: 41px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 71px;
  height: 91px;
  border-radius: 11px;
  color: var(--blue);
  background: white;
  box-shadow: 0 10px 22px rgba(73, 97, 164, 0.1);
  font-size: 29px;
  transform: rotate(-9deg);
}

.rest-line {
  position: absolute;
  z-index: 3;
  right: 49px;
  height: 5px;
  border-radius: 5px;
  background: #dbe3ff;
}

.rest-line-one {
  top: 72px;
  width: 39px;
}

.rest-line-two {
  top: 84px;
  width: 47px;
}

.rest-star {
  position: absolute;
  top: 14px;
  right: 4px;
  z-index: 3;
  color: #839df7;
  font-size: 25px;
}

.section-heading-row {
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

.section-heading-row h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.section-heading-row > span {
  color: #a3aec0;
  font-size: 11px;
}

.daily-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 305px;
  gap: 27px;
  margin-top: 17px;
}

.daily-schedule {
  display: grid;
  gap: 13px;
}

.daily-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 0;
  min-height: 95px;
}

.daily-time {
  padding-top: 13px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.daily-time strong {
  display: block;
  font-size: 13px;
}

.daily-time small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  white-space: pre-line;
}

.course-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.course-row.is-complete {
  opacity: 0.68;
}

.course-main {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.course-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  border-radius: 11px;
  color: var(--blue);
  background: var(--blue-pale);
  font-size: 19px;
}

.course-row.teal {
  border-left-color: var(--teal);
}

.course-row.teal .course-icon {
  color: var(--teal);
  background: var(--teal-pale);
}

.course-row.purple {
  border-left-color: var(--purple);
}

.course-row.purple .course-icon {
  color: var(--purple);
  background: var(--purple-pale);
}

.course-row.orange {
  border-left-color: var(--orange);
}

.course-row.orange .course-icon {
  color: var(--orange);
  background: var(--orange-pale);
}

.course-row.pink {
  border-left-color: var(--pink);
}

.course-row.pink .course-icon {
  color: var(--pink);
  background: var(--pink-pale);
}

.course-copy {
  min-width: 0;
}

.course-copy h3 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-copy p {
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-state {
  padding: 5px 8px;
  border-radius: 5px;
  color: #9ba7b9;
  background: #f6f8fb;
  font-size: 9px;
  white-space: nowrap;
}

.daily-aside {
  display: grid;
  align-content: start;
  gap: 17px;
}

.aside-card {
  padding: 22px 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.aside-card h3 {
  margin: 11px 0 0;
  font-size: 17px;
}

.aside-tip-list {
  display: grid;
  gap: 17px;
  margin-top: 22px;
}

.aside-tip {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 10px;
}

.tip-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-pale);
  font-size: 14px;
}

.aside-tip strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
}

.aside-tip p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.rhythm-card {
  color: var(--ink);
  background: #eef2fa;
}

.rhythm-title {
  justify-content: space-between;
}

.rhythm-title h3 {
  margin: 0;
  font-size: 15px;
}

.rhythm-title span {
  color: #9eafdf;
  font-size: 19px;
}

.rhythm-list {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}

.rhythm-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}

.rhythm-list strong {
  color: var(--muted-deep);
  font-size: 10px;
}

.aside-link {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
  padding: 13px 0 0;
  border-width: 1px 0 0;
  border-radius: 0;
  color: var(--blue);
  background: transparent;
  font-size: 10px;
  font-weight: 750;
}

.weekly-navigator {
  margin-top: 4px;
}

.weekly-heading {
  margin-top: 28px;
}

.weekly-table-wrap {
  overflow-x: auto;
  margin-top: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.weekly-table {
  display: grid;
  grid-template-columns: 76px repeat(7, minmax(132px, 1fr));
  min-width: 1050px;
}

.weekly-cell {
  min-height: 129px;
  padding: 11px 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.weekly-cell:nth-child(8n) {
  border-right: 0;
}

.weekly-head {
  min-height: 64px;
  text-align: center;
}

.weekly-head.is-today {
  color: var(--blue);
  background: #f0f3ff;
}

.weekly-head strong {
  display: block;
  font-size: 12px;
}

.weekly-head small {
  display: block;
  margin-top: 7px;
  color: #a2aec1;
  font-size: 10px;
}

.weekly-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8b9ab0;
  font-size: 10px;
  text-align: center;
}

.weekly-time strong {
  color: var(--muted-deep);
  font-size: 10px;
}

.weekly-time span {
  line-height: 1.5;
}

.weekly-course {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 108px;
  padding: 12px 10px;
  border: 0;
  border-radius: 9px;
  color: var(--blue-deep);
  background: var(--blue-pale);
  text-align: left;
}

.weekly-course.teal {
  color: #378f87;
  background: var(--teal-pale);
}

.weekly-course.purple {
  color: #8762c5;
  background: var(--purple-pale);
}

.weekly-course.orange {
  color: #b67a2d;
  background: var(--orange-pale);
}

.weekly-course.pink {
  color: #b56b96;
  background: var(--pink-pale);
}

.weekly-course strong {
  font-size: 11px;
  line-height: 1.45;
}

.weekly-course small {
  color: inherit;
  font-size: 9px;
  line-height: 1.5;
  opacity: 0.82;
}

.weekly-empty {
  display: grid;
  place-items: center;
  min-height: 108px;
  color: #c3ccda;
  font-size: 13px;
}

.table-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.empty-state {
  padding: 35px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--panel);
  font-size: 12px;
  text-align: center;
}

.timing-hero {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-top: 3px;
  padding: 28px 31px;
  border-radius: var(--radius);
  color: var(--ink);
  background: #e9efff;
}

.timing-sun {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #7d99e6;
  font-size: 34px;
}

.timing-hero h2 {
  margin: 0;
  font-size: 21px;
}

.timing-hero p {
  margin: 9px 0 0;
  color: #8b9bc2;
  font-size: 11px;
}

.timing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-top: 23px;
}

.timing-card {
  min-height: 390px;
  padding: 23px 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.timing-card-title {
  gap: 10px;
}

.timing-card-title > span {
  color: #9fb3ef;
  font-size: 18px;
}

.timing-card:nth-child(2) .timing-card-title > span {
  color: #a8c7c1;
}

.timing-card:nth-child(3) .timing-card-title > span {
  color: #a99ad5;
}

.timing-card h2 {
  margin: 0;
  font-size: 14px;
}

.timing-list {
  display: grid;
  margin-top: 24px;
}

.timing-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f5;
  color: #94a0b1;
  font-size: 11px;
}

.timing-row strong {
  color: var(--muted-deep);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.timing-note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.timing-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.main-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 80px;
  color: #9ca9bb;
  font-size: 10px;
}

.settings-dialog {
  width: min(680px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 25px 80px rgba(36, 57, 104, 0.22);
}

.settings-dialog::backdrop {
  background: rgba(24, 38, 64, 0.32);
}

.settings-dialog form {
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: #f7f8fd;
}

.dialog-heading h2 {
  margin: 9px 0 0;
  font-size: 22px;
}

.dialog-close {
  width: 32px;
  height: 32px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 26px;
}

.dialog-body {
  display: grid;
  gap: 22px;
  padding: 22px 24px;
}

.form-field,
.form-label {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.form-field input {
  width: 100%;
  margin-top: 8px;
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  background: var(--panel);
}

.form-help {
  margin: 6px 0 11px;
  color: var(--muted);
  font-size: 10px;
}

.dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.check-pill {
  position: relative;
}

.check-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-pill span {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted-deep);
  background: var(--panel);
  font-size: 11px;
}

.check-pill input:checked + span {
  border-color: #b9c3ff;
  color: var(--blue);
  background: var(--blue-pale);
}

.settings-time-list {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.settings-time-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.settings-time-row label {
  color: var(--muted-deep);
  font-size: 11px;
}

.settings-time-row input {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted-deep);
  background: var(--panel);
  font-size: 11px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 17px 24px 21px;
  border-top: 1px solid var(--line);
}

.primary-button,
.secondary-button {
  min-height: 37px;
  padding: 0 15px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}

.primary-button {
  border-color: var(--blue);
  color: white;
  background: var(--blue);
}

.primary-button:hover {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
}

.secondary-button {
  color: var(--muted-deep);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  padding: 11px 14px;
  border: 1px solid #c4cdfb;
  border-radius: 7px;
  color: var(--blue-deep);
  background: var(--blue-pale);
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 750;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.dark {
  --page: #151a27;
  --panel: #1c2333;
  --panel-blue: #202b48;
  --line: #2d374c;
  --line-strong: #3c4962;
  --ink: #f0f3fa;
  --muted: #8d99ae;
  --muted-deep: #c2cad9;
  --blue-pale: #26345f;
  --teal-pale: #203d3c;
  --purple-pale: #342b4d;
  --orange-pale: #463622;
  --pink-pale: #452f40;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

body.dark .brand-name,
body.dark .sidebar-bottom h2,
body.dark .page-heading h1,
body.dark .section-heading-row h2,
body.dark .course-copy h3,
body.dark .aside-card h3,
body.dark .rhythm-title h3,
body.dark .timing-card h2,
body.dark .dialog-heading,
body.dark .form-field input,
body.dark .settings-time-row input {
  color: var(--ink);
}

body.dark .dialog-heading {
  background: #20283a;
}

body.dark .weekly-course,
body.dark .course-row,
body.dark .timing-card,
body.dark .weekly-cell,
body.dark .weekly-table-wrap,
body.dark .date-navigator,
body.dark .aside-card {
  box-shadow: none;
}

@media (max-width: 1180px) {
  .main-shell {
    padding-right: 28px;
    padding-left: 28px;
  }

  .daily-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 17px;
  }

  .daily-item {
    grid-template-columns: 68px minmax(0, 1fr);
  }
}

@media (max-width: 880px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    padding: 18px 18px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-bottom,
  .class-meta {
    display: none;
  }

  .brand-lockup {
    margin-bottom: 15px;
  }

  .main-nav {
    display: flex;
    gap: 7px;
    margin-top: 0;
    overflow-x: auto;
  }

  .nav-item {
    flex: 1 0 auto;
    justify-content: center;
    min-height: 42px;
    padding: 0 13px;
    font-size: 12px;
  }

  .main-shell {
    padding: 0 18px 28px;
  }

  .topbar {
    min-height: 66px;
  }

  .daily-layout {
    grid-template-columns: 1fr;
  }

  .daily-aside {
    grid-template-columns: 1fr 1fr;
  }

  .timing-cards {
    grid-template-columns: 1fr;
  }

  .timing-card {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .main-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .topbar {
    align-items: flex-start;
    padding-top: 14px;
    min-height: 72px;
  }

  .breadcrumb {
    font-size: 11px;
  }

  .topbar-actions {
    gap: 0;
  }

  .current-clock {
    display: none;
  }

  .theme-button {
    min-height: 31px;
    padding: 0 9px;
    font-size: 10px;
  }

  .view-panel {
    padding-top: 25px;
  }

  .page-heading {
    display: block;
    min-height: auto;
  }

  .page-heading h1 {
    margin-top: 10px;
    font-size: 29px;
  }

  .page-heading p {
    font-size: 11px;
  }

  .page-heading .outline-button {
    margin-top: 17px;
  }

  .date-navigator {
    padding: 13px 12px 10px;
  }

  .date-nav-top {
    display: block;
  }

  .week-switcher {
    justify-content: space-between;
  }

  .week-switcher select {
    flex: 1;
  }

  .week-range {
    display: none;
  }

  .date-jump {
    justify-content: space-between;
    margin-top: 9px;
  }

  .date-jump input {
    flex: 1;
    width: auto;
  }

  .day-strip {
    gap: 2px;
    margin-top: 11px;
  }

  .day-button {
    min-height: 66px;
    padding: 5px 2px;
    gap: 5px;
  }

  .day-button .day-name {
    font-size: 9px;
  }

  .day-button .day-number {
    font-size: 17px;
  }

  .rest-banner {
    min-height: 145px;
    margin-top: 13px;
    padding: 18px 17px;
  }

  .rest-banner h2 {
    font-size: 20px;
  }

  .rest-banner p,
  .rest-detail {
    font-size: 10px;
  }

  .rest-illustration {
    width: 93px;
    height: 100px;
    flex-basis: 93px;
  }

  .rest-illustration::before {
    width: 72px;
    height: 72px;
  }

  .rest-illustration::after {
    top: 14px;
    right: 10px;
    width: 53px;
    height: 53px;
  }

  .rest-check {
    top: 13px;
    right: 23px;
    width: 49px;
    height: 67px;
    font-size: 21px;
  }

  .rest-line {
    right: 29px;
    height: 3px;
  }

  .rest-line-one {
    top: 54px;
    width: 27px;
  }

  .rest-line-two {
    top: 63px;
    width: 32px;
  }

  .rest-star {
    top: 4px;
    right: 0;
    font-size: 17px;
  }

  .section-heading-row {
    margin-top: 22px;
  }

  .section-heading-row h2 {
    font-size: 16px;
  }

  .section-heading-row > span {
    font-size: 10px;
  }

  .daily-layout {
    margin-top: 12px;
  }

  .daily-item {
    grid-template-columns: 60px minmax(0, 1fr);
    min-height: 87px;
  }

  .daily-time {
    padding-top: 11px;
    font-size: 11px;
  }

  .daily-time small {
    font-size: 9px;
  }

  .course-row {
    min-height: 87px;
    padding: 12px 11px;
  }

  .course-main {
    gap: 10px;
  }

  .course-icon {
    width: 35px;
    height: 35px;
    border-radius: 9px;
    font-size: 15px;
  }

  .course-copy h3 {
    font-size: 12px;
  }

  .course-copy p {
    max-width: 175px;
    font-size: 9px;
  }

  .course-state {
    display: none;
  }

  .daily-aside {
    grid-template-columns: 1fr;
  }

  .aside-card {
    padding: 18px 16px;
  }

  .weekly-table-wrap {
    margin-right: -12px;
    margin-left: -12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .weekly-heading {
    margin-top: 22px;
  }

  .timing-hero {
    padding: 21px 17px;
  }

  .timing-hero h2 {
    font-size: 18px;
  }

  .timing-hero p {
    font-size: 10px;
  }

  .timing-card {
    padding: 19px 16px;
  }

  .main-footer {
    margin-top: 45px;
    font-size: 9px;
  }

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

  .dialog-heading,
  .dialog-body,
  .dialog-actions {
    padding-right: 17px;
    padding-left: 17px;
  }

  .settings-time-row {
    grid-template-columns: 65px 1fr 1fr;
  }
}
