:root {
  --background: #f3f7f4;
  --card: #fffdfb;
  --card-soft: #f8fbf9;
  --ink: #173f49;
  --ink-soft: #647d7c;
  --line: #d7e4de;
  --mint: #dff0e7;
  --mint-strong: #3c8a70;
  --peach: #ffe4d5;
  --peach-strong: #cf6e4e;
  --sky: #e5f0f6;
  --sky-strong: #477f9c;
  --gold: #f4cf72;
  --shadow: 0 18px 44px rgba(30, 66, 67, 0.08);
  --shadow-soft: 0 10px 26px rgba(30, 66, 67, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 0%, rgba(223, 240, 231, 0.9), transparent 27rem),
    radial-gradient(circle at 95% 12%, rgba(255, 228, 213, 0.72), transparent 25rem),
    var(--background);
  color: var(--ink);
  font-family:
    Inter,
    "SF Pro Display",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible + .check-visual {
  outline: 3px solid rgba(60, 138, 112, 0.42);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 24px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 40px;
  align-items: end;
  padding: 34px 38px 30px;
  overflow: hidden;
  border: 1px solid rgba(215, 228, 222, 0.92);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 253, 251, 0.98), rgba(255, 253, 251, 0.82)),
    var(--card);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-panel::before {
  width: 210px;
  height: 210px;
  top: -118px;
  right: 24%;
  background: rgba(223, 240, 231, 0.84);
}

.hero-panel::after {
  width: 105px;
  height: 105px;
  right: -32px;
  bottom: -42px;
  background: rgba(255, 228, 213, 0.72);
}

.hero-copy,
.hero-progress {
  position: relative;
  z-index: 1;
}

.eyebrow,
.day-kicker {
  display: inline-block;
  color: var(--peach-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 4.1vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.hero-progress {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(248, 251, 249, 0.84);
}

.hero-progress > span,
.hero-progress > strong {
  display: inline-block;
}

.hero-progress > span {
  color: var(--ink-soft);
  font-size: 13px;
}

.hero-progress > strong {
  float: right;
  font-size: 23px;
}

.hero-progress-track {
  height: 9px;
  margin: 14px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ede9;
}

.hero-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint-strong), #75b696);
  transition: width 240ms ease;
}

.hero-progress small {
  display: block;
  clear: both;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.travel-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 16px 0;
  padding: 15px 20px;
  border: 1px solid rgba(207, 110, 78, 0.2);
  border-radius: 18px;
  background: var(--peach);
  color: #8b4b37;
}

.icon-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
}

.travel-banner strong,
.travel-banner span {
  display: block;
}

.travel-banner strong {
  margin-bottom: 3px;
  font-size: 15px;
}

.travel-banner div > span {
  font-size: 12px;
  opacity: 0.82;
}

.travel-count {
  padding: 7px 11px;
  border: 1px solid rgba(207, 110, 78, 0.26);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.view-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 251, 0.88);
  box-shadow: var(--shadow-soft);
}

.view-tabs button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.view-tabs button:hover {
  background: var(--card-soft);
  color: var(--ink);
}

.view-tabs button:active {
  transform: translateY(1px);
}

.view-tabs button.is-active {
  background: var(--ink);
  color: #fff;
}

.view-tabs .reset-button {
  margin-left: auto;
  color: var(--peach-strong);
  font-weight: 600;
}

.tab-label-short,
.mobile-reset-button,
.course-mobile-tasks,
.course-mobile-schedule {
  display: none;
}

.week-navigator {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 251, 0.94);
  box-shadow: var(--shadow-soft);
}

.nav-arrow {
  border: 0;
  border-radius: 14px;
  background: var(--card-soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 21px;
}

.nav-arrow:hover:not(:disabled) {
  background: var(--mint);
}

.nav-arrow:disabled {
  cursor: default;
  opacity: 0.28;
}

.date-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.date-button {
  min-width: 0;
  padding: 11px 8px 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.date-button:hover {
  background: var(--card-soft);
  transform: translateY(-1px);
}

.date-button span,
.date-button small {
  display: block;
}

.date-button span {
  color: var(--ink-soft);
  font-size: 11px;
}

.date-button strong {
  display: block;
  margin: 4px 0 2px;
  font-size: 20px;
}

.date-button small {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-button.is-selected {
  background: var(--ink);
  color: #fff;
}

.date-button.is-selected span,
.date-button.is-selected small {
  color: rgba(255, 255, 255, 0.7);
}

.date-button.is-today:not(.is-selected) {
  border-color: rgba(60, 138, 112, 0.38);
  background: rgba(223, 240, 231, 0.5);
}

.date-button.is-travel:not(.is-selected) {
  background: repeating-linear-gradient(
    -45deg,
    #fff8f3,
    #fff8f3 7px,
    #ffede3 7px,
    #ffede3 14px
  );
  color: var(--peach-strong);
}

.daily-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(330px, 0.68fr);
  gap: 20px;
  align-items: start;
}

.schedule-card,
.summary-card,
.resource-card,
.week-view,
.materials-view {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 251, 0.96);
  box-shadow: var(--shadow);
}

.schedule-card {
  min-height: 660px;
  padding: 28px 30px;
}

.schedule-heading {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.schedule-heading h2,
.section-heading h2 {
  margin: 6px 0 4px;
  font-size: clamp(27px, 3vw, 42px);
  letter-spacing: -0.045em;
}

.schedule-heading p,
.section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.day-kicker-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.today-jump {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(60, 138, 112, 0.28);
  border-radius: 999px;
  background: var(--mint);
  color: #2e725a;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.event-list {
  display: flex;
  max-width: 52%;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.event-chip {
  min-width: 126px;
  padding: 11px 13px;
  border-radius: 15px;
}

.event-chip strong,
.event-chip span {
  display: block;
}

.event-chip strong {
  margin-bottom: 2px;
  font-size: 14px;
}

.event-chip span {
  font-size: 12px;
  font-weight: 700;
}

.tone-peach {
  background: var(--peach);
  color: #9f553d;
}

.tone-mint {
  background: var(--mint);
  color: #2e725a;
}

.tone-blue {
  background: var(--sky);
  color: #376f8a;
}

.period-list {
  padding-top: 6px;
}

.course-day-panel {
  padding-top: 18px;
}

.course-day-note {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(71, 127, 156, 0.2);
  border-radius: 15px;
  background: var(--sky);
}

.course-day-note div {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.course-day-note span {
  color: var(--sky-strong);
  font-size: 10px;
  font-weight: 800;
}

.course-day-note strong {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 10px;
}

.course-day-note p {
  margin: 0;
  color: #4f7180;
  font-size: 10px;
  line-height: 1.6;
}

.course-day-table {
  overflow: hidden;
  border: 1px solid #d6c38e;
  border-radius: 17px;
  background: #fffdf5;
}

.course-table-head,
.course-slot-row {
  display: grid;
  grid-template-columns: 132px 210px minmax(0, 1fr);
}

.course-table-head {
  background: #d8b45c;
  color: #33230e;
  font-size: 11px;
  font-weight: 900;
}

.course-table-head span {
  padding: 11px 12px;
  border-right: 1px solid rgba(83, 57, 20, 0.24);
}

.course-table-head span:last-child {
  border-right: 0;
}

.course-slot-row {
  min-height: 58px;
  border-top: 1px solid #dfd1a8;
}

.course-slot-row:nth-child(odd) {
  background: #fff8df;
}

.course-slot-row.has-homework {
  background: #f8fbf3;
}

.course-slot-row.has-conflict {
  background: #fff0e9;
  box-shadow: inset 4px 0 0 var(--peach-strong);
}

.course-time,
.course-name,
.embedded-homework {
  padding: 10px 12px;
}

.course-time,
.course-name {
  display: flex;
  align-items: center;
  border-right: 1px solid #dfd1a8;
}

.course-time {
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

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

.embedded-homework {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.course-only {
  color: #9a8a65;
  font-size: 9px;
}

.course-task-chip {
  display: flex;
  gap: 6px;
  align-items: center;
  max-width: 100%;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.course-task-chip label {
  display: grid;
  grid-template-columns: 16px auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  min-width: 0;
  cursor: pointer;
}

.course-task-chip input {
  width: 14px;
  height: 14px;
  accent-color: var(--mint-strong);
}

.course-task-chip .subject-pill {
  min-width: 30px;
  padding: 3px 5px;
  font-size: 8px;
}

.course-task-chip b {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-task-chip small {
  color: var(--ink-soft);
  font-size: 8px;
  white-space: nowrap;
}

.course-task-chip .text-action {
  padding: 5px 6px;
  font-size: 8px;
}

.course-task-chip.is-done {
  background: var(--mint);
}

.course-task-chip.is-done b,
.course-task-chip.is-done small {
  opacity: 0.58;
  text-decoration: line-through;
}

.course-conflict {
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--peach);
  color: #91462f;
}

.course-conflict b {
  font-size: 10px;
}

.course-conflict span {
  font-size: 8px;
  line-height: 1.45;
}

.period-block {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.period-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.period-label span {
  color: var(--peach-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.period-label h3 {
  margin: 4px 0 0;
  font-size: 20px;
}

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

.task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 15px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: var(--card-soft);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.task-row:hover {
  border-color: var(--line);
  transform: translateY(-1px);
}

.task-row.is-light {
  background: #fbfaf5;
}

.task-row.is-done {
  background: rgba(223, 240, 231, 0.62);
}

.task-check {
  display: grid;
  grid-template-columns: 28px 44px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
  cursor: pointer;
}

.task-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check-visual {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #81918f;
  border-radius: 9px;
  background: #fff;
  color: transparent;
  font-size: 16px;
  font-weight: 900;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.task-check input:checked + .check-visual {
  border-color: var(--mint-strong);
  background: var(--mint-strong);
  color: #fff;
}

.task-time {
  color: var(--ink-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.task-copy {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 9px;
  align-items: center;
}

.task-copy strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-copy small {
  grid-column: 2;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.is-done .task-copy strong,
.is-done .task-copy small {
  opacity: 0.62;
  text-decoration: line-through;
}

.subject-pill,
.mini-task-list label > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.subject-语文 {
  background: var(--peach);
  color: #a5563d;
}

.subject-数学 {
  background: var(--sky);
  color: #3d718a;
}

.subject-英语 {
  background: #eee8f7;
  color: #725a91;
}

.subject-体育 {
  background: var(--mint);
  color: #34785f;
}

.task-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.task-meta > span {
  color: var(--ink-soft);
  font-size: 10px;
}

.text-action {
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: var(--mint-strong);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line);
}

.text-action:hover {
  background: var(--mint);
}

.daily-sidebar {
  display: grid;
  gap: 16px;
}

.summary-card {
  padding: 23px;
}

.card-title-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.card-title-row h2 {
  margin: 0;
  font-size: 19px;
}

.card-title-row > span {
  color: var(--ink-soft);
  font-size: 11px;
}

.card-title-row > button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mint-strong);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.progress-summary {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
  margin: 24px 0;
}

.progress-ring {
  display: grid;
  width: 112px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--mint-strong) var(--progress),
    var(--mint) 0
  );
  position: relative;
}

.progress-ring::after {
  content: "";
  position: absolute;
  width: 76px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--card);
}

.progress-ring span {
  position: relative;
  z-index: 1;
  font-size: 21px;
  font-weight: 800;
}

.progress-summary > div:last-child strong {
  font-size: 21px;
}

.progress-summary p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.subject-progress-list {
  display: grid;
  gap: 11px;
}

.subject-progress {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  gap: 9px;
  align-items: center;
}

.subject-progress > span,
.subject-progress > small {
  font-size: 11px;
}

.subject-progress > small {
  color: var(--ink-soft);
  text-align: right;
}

.subject-progress > div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #ede9e1;
}

.subject-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mint-strong);
  transition: width 240ms ease;
}

.quick-links {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}

.quick-links a,
.quick-links button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  min-height: 54px;
  padding: 0 13px;
  border: 0;
  border-radius: 14px;
  background: var(--card-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 160ms ease;
}

.quick-links a:hover,
.quick-links button:hover {
  background: var(--mint);
}

.quick-links span {
  font-size: 12px;
  font-weight: 700;
}

.quick-links small {
  color: var(--ink-soft);
  font-size: 10px;
}

.quick-links b {
  color: var(--peach-strong);
}

.pending-card {
  padding: 18px 20px;
  border: 1px dashed rgba(207, 110, 78, 0.35);
  border-radius: 20px;
  background: rgba(255, 228, 213, 0.52);
}

.pending-card span {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--peach-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pending-card p {
  margin: 0;
  color: #815340;
  font-size: 11px;
  line-height: 1.6;
}

.travel-day-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 28px;
  align-items: center;
  min-height: 460px;
  padding: 64px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.75), transparent 13rem),
    linear-gradient(135deg, #fff0e7, #e6f2ec);
}

.passport-stamp {
  display: grid;
  width: 116px;
  aspect-ratio: 1;
  place-items: center;
  border: 5px double var(--peach-strong);
  border-radius: 50%;
  color: var(--peach-strong);
  font-size: 35px;
  font-weight: 900;
  letter-spacing: 0.1em;
  transform: rotate(-9deg);
}

.travel-day-card span {
  color: var(--peach-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.travel-day-card h3 {
  margin: 8px 0;
  font-size: 42px;
}

.travel-day-card p {
  max-width: 560px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.week-view,
.materials-view {
  padding: 28px;
}

.section-heading {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading p {
  max-width: 420px;
  text-align: right;
}

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

.week-day-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-soft);
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.week-day-card:hover {
  transform: translateY(-2px);
}

.week-day-card.is-selected {
  border-color: var(--mint-strong);
  box-shadow: 0 0 0 2px rgba(60, 138, 112, 0.14);
}

.week-day-card.is-travel {
  background: repeating-linear-gradient(
    -45deg,
    #fff9f5,
    #fff9f5 8px,
    #fff0e7 8px,
    #fff0e7 16px
  );
}

.week-day-heading {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto;
  gap: 3px 8px;
  align-items: center;
  padding: 15px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.week-day-heading span,
.week-day-heading small {
  color: var(--ink-soft);
  font-size: 10px;
}

.week-day-heading strong {
  grid-row: 1 / 3;
  grid-column: 2;
  font-size: 19px;
}

.week-day-heading small {
  grid-row: 2;
}

.mini-events {
  display: grid;
  gap: 4px;
  padding: 9px;
  border-bottom: 1px solid var(--line);
}

.mini-events span {
  padding: 6px 7px;
  border-radius: 8px;
  background: var(--peach);
  color: #9a533b;
  font-size: 9px;
  font-weight: 700;
}

.mini-task-list {
  display: grid;
  gap: 3px;
  padding: 8px;
}

.mini-task-list label {
  display: grid;
  grid-template-columns: 16px auto minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  min-width: 0;
  padding: 5px 4px;
  border-radius: 8px;
  cursor: pointer;
}

.mini-task-list label:hover {
  background: #fff;
}

.mini-task-list input {
  width: 14px;
  height: 14px;
  accent-color: var(--mint-strong);
}

.mini-task-list label > span {
  min-width: 28px;
  padding: 3px 5px;
  font-size: 8px;
}

.mini-task-list b {
  overflow: hidden;
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-task-list .is-done b {
  opacity: 0.52;
  text-decoration: line-through;
}

.mini-travel {
  display: grid;
  min-height: 420px;
  place-content: center;
  text-align: center;
}

.mini-travel span {
  color: var(--peach-strong);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.mini-travel p {
  margin: 6px 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.materials-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

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

.resource-card {
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.resource-card-wide,
.resource-card-full {
  grid-column: 1 / -1;
}

.resource-card-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

.resource-card-heading.compact {
  grid-template-columns: 48px minmax(0, 1fr);
}

.resource-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.resource-card-heading span {
  display: block;
  color: var(--peach-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.resource-card-heading h3 {
  margin: 3px 0;
  font-size: 22px;
}

.resource-card-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.resource-card-heading > a,
.inline-button {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--mint-strong);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.resource-card-heading > a:hover,
.inline-button:hover {
  background: var(--mint);
}

.memory-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.memory-index > div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border-radius: 13px;
  background: var(--card-soft);
}

.memory-index > div > span {
  color: var(--peach-strong);
  font-size: 10px;
  font-weight: 800;
}

.memory-index button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.memory-index button b,
.memory-index button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-index button b {
  font-size: 11px;
}

.memory-index button small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
}

.memory-index a {
  color: var(--mint-strong);
  font-size: 8px;
  font-weight: 700;
  text-decoration: none;
}

.resource-image-button {
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #eef5f1;
  cursor: zoom-in;
  position: relative;
}

.resource-image-button img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  object-position: center 16%;
  transition: transform 220ms ease;
}

.resource-image-button.landscape img {
  height: 310px;
  object-position: center;
}

.custody-resource-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.resource-image-button.custody-poster {
  min-height: 360px;
  background: #fff7cf;
}

.resource-image-button.custody-poster img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: contain;
  object-position: center;
}

.custody-rules {
  display: grid;
  gap: 12px;
  align-content: start;
}

.session-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.session-pills span {
  display: grid;
  gap: 3px;
  min-height: 60px;
  align-content: center;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 8px;
}

.session-pills span.is-enrolled {
  border-style: solid;
  border-color: rgba(60, 138, 112, 0.25);
  background: var(--mint);
  color: #376f5b;
}

.session-pills b {
  font-size: 11px;
}

.use-time-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.use-time-grid section {
  padding: 14px;
  border-radius: 13px;
  background: var(--card-soft);
}

.use-time-grid span,
.use-time-grid strong {
  display: block;
}

.use-time-grid span {
  color: var(--peach-strong);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.use-time-grid strong {
  margin: 6px 0 4px;
  font-size: 11px;
}

.use-time-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.55;
}

.conflict-reminder {
  margin: 0;
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--peach);
  color: #8d4c36;
  font-size: 9px;
  line-height: 1.55;
}

.resource-image-button:hover img {
  transform: scale(1.02);
}

.resource-image-button span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(23, 63, 73, 0.88);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

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

.book-ranges li {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--card-soft);
  font-size: 10px;
}

.book-ranges span {
  color: var(--ink-soft);
}

.math-unit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.math-unit-grid a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  padding: 12px 13px;
  border-radius: 13px;
  background: var(--card-soft);
  color: var(--ink);
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.math-unit-grid a:hover {
  background: var(--sky);
  transform: translateY(-1px);
}

.math-unit-grid span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.math-unit-grid small {
  grid-column: 1;
  color: var(--ink-soft);
  font-size: 9px;
}

.math-unit-grid b {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--peach-strong);
}

.resource-note {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--peach);
  color: #825442;
  font-size: 9px;
  line-height: 1.6;
}

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

.english-task-grid section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-soft);
}

.status-badge {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.status-badge.required {
  background: var(--peach);
  color: #9e543d;
}

.status-badge.optional {
  background: var(--mint);
  color: #32755d;
}

.status-badge.scoped {
  background: var(--sky);
  color: #3c7089;
}

.english-task-grid h4 {
  margin: 0 0 7px;
  font-size: 15px;
}

.english-task-grid p,
.english-task-grid li {
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.65;
}

.english-task-grid p {
  margin: 0 0 8px;
}

.english-task-grid strong {
  display: block;
  margin: 9px 0;
  color: var(--peach-strong);
  font-size: 11px;
}

.english-task-grid ul {
  margin: 9px 0 0;
  padding-left: 15px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.primary-link:hover {
  background: #275766;
}

.english-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.english-gallery button {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  cursor: zoom-in;
  text-align: left;
}

.english-gallery img {
  width: 100%;
  height: 116px;
  object-fit: cover;
  object-position: top center;
}

.english-gallery span {
  display: block;
  padding: 9px;
  overflow: hidden;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sports-foundation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.sports-foundation > div {
  padding: 16px;
  border-radius: 15px;
  background: var(--mint);
}

.sports-foundation span,
.sports-foundation b,
.sports-foundation p {
  display: block;
}

.sports-foundation span {
  color: var(--mint-strong);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.sports-foundation b {
  margin: 8px 0 4px;
  font-size: 14px;
}

.sports-foundation p {
  margin: 0;
  color: #547669;
  font-size: 9px;
  line-height: 1.55;
}

.fixed-events {
  display: grid;
  gap: 8px;
}

.fixed-events > div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
  border-radius: 12px;
  background: var(--card-soft);
}

.fixed-events span {
  color: var(--ink-soft);
  font-size: 10px;
}

.fixed-events b {
  font-size: 11px;
}

.fixed-events .highlight {
  background: var(--peach);
  color: #9b513a;
}

.pending-box {
  margin-top: 12px;
  padding: 13px;
  border: 1px dashed rgba(207, 110, 78, 0.4);
  border-radius: 12px;
}

.pending-box strong {
  color: var(--peach-strong);
  font-size: 10px;
}

.pending-box p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.5;
}

footer {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 22px 4px 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.modal-backdrop {
  display: grid;
  position: fixed;
  z-index: 50;
  inset: 0;
  place-items: center;
  padding: 28px;
  background: rgba(12, 38, 44, 0.62);
  backdrop-filter: blur(8px);
}

.resource-modal {
  width: min(860px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 28px 90px rgba(12, 38, 44, 0.28);
  position: relative;
}

.modal-close {
  display: grid;
  position: sticky;
  z-index: 2;
  top: 14px;
  width: 38px;
  height: 38px;
  margin: 14px 14px -52px auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 251, 0.94);
  color: var(--ink);
  cursor: pointer;
  font-size: 25px;
}

.memory-modal-content {
  padding: 52px;
}

.memory-modal-content h2,
.image-modal-content h2 {
  margin: 7px 0 4px;
  font-size: 34px;
}

.memory-author {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.memory-text {
  margin: 28px 0;
  padding: 28px;
  border-radius: 20px;
  background:
    linear-gradient(rgba(255, 253, 251, 0.78), rgba(255, 253, 251, 0.78)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 31px,
      rgba(207, 110, 78, 0.12) 31px,
      rgba(207, 110, 78, 0.12) 32px
    );
  text-align: center;
}

.memory-text p {
  margin: 0 0 8px;
  font-family: "STKaiti", "KaiTi", "Kaiti SC", serif;
  font-size: clamp(18px, 2.6vw, 27px);
  line-height: 1.65;
}

.memory-text p:last-child {
  margin-bottom: 0;
}

.memory-note {
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--peach);
  color: #835341;
  font-size: 11px;
}

.two-day-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.two-day-plan > div {
  padding: 15px;
  border-radius: 14px;
  background: var(--mint);
}

.two-day-plan span {
  color: var(--mint-strong);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.two-day-plan p {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.55;
}

.image-modal-content {
  padding: 48px 36px 34px;
}

.image-modal-content > div {
  margin: 0 16px 20px;
}

.image-modal-content img {
  width: 100%;
  max-height: 70vh;
  border-radius: 16px;
  object-fit: contain;
  background: #eef3ef;
}

.image-modal-content > a {
  display: inline-block;
  margin: 14px 16px 0;
  color: var(--mint-strong);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1200px) {
  .hero-panel {
    grid-template-columns: 1fr 330px;
  }

  .daily-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.7fr);
  }

  .task-row {
    grid-template-columns: 1fr;
  }

  .task-meta {
    padding-left: 83px;
    justify-content: flex-start;
  }

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

  .mini-travel {
    min-height: 210px;
  }

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

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

  .course-table-head,
  .course-slot-row {
    grid-template-columns: 112px 170px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 24px, 760px);
    padding-top: 16px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px;
  }

  .travel-banner {
    grid-template-columns: auto 1fr;
  }

  .travel-count {
    display: none;
  }

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

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

  .pending-card {
    grid-column: 1 / -1;
  }

  .date-strip {
    grid-template-columns: repeat(7, minmax(84px, 1fr));
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

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

  .resource-card,
  .resource-card-wide,
  .resource-card-full {
    grid-column: auto;
  }

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

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

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

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

  .resource-image-button.custody-poster {
    min-height: 300px;
  }

  .resource-image-button.custody-poster img {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 16px, 520px);
    padding-bottom: 16px;
  }

  .hero-panel {
    padding: 23px 20px;
    border-radius: 22px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-progress {
    padding: 18px;
  }

  .travel-banner {
    align-items: start;
    padding: 13px;
  }

  .travel-banner div > span {
    line-height: 1.5;
  }

  .view-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .view-tabs button {
    min-width: 0;
    padding: 0 8px;
  }

  .view-tabs .reset-button {
    grid-column: 1 / -1;
    margin-left: 0;
    min-height: 34px;
  }

  .week-navigator {
    grid-template-columns: 34px 1fr 34px;
    gap: 6px;
    padding: 8px;
    border-radius: 18px;
  }

  .date-strip {
    grid-template-columns: repeat(7, 74px);
  }

  .date-button {
    padding: 9px 6px;
    border-radius: 13px;
  }

  .date-button strong {
    font-size: 17px;
  }

  .schedule-card,
  .summary-card,
  .week-view,
  .materials-view {
    border-radius: 20px;
  }

  .schedule-card {
    min-height: 0;
    padding: 21px 16px;
  }

  .schedule-heading {
    display: grid;
  }

  .event-list {
    max-width: none;
    justify-content: flex-start;
  }

  .period-block {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .period-label {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .period-label h3 {
    margin: 0;
  }

  .task-check {
    grid-template-columns: 28px 40px minmax(0, 1fr);
    gap: 8px;
  }

  .task-copy {
    display: block;
  }

  .task-copy .subject-pill {
    margin-right: 5px;
  }

  .task-copy small {
    display: block;
    margin-top: 6px;
  }

  .task-meta {
    padding-left: 76px;
  }

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

  .pending-card {
    grid-column: auto;
  }

  .travel-day-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 38px 28px;
  }

  .course-day-note {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .course-table-head,
  .course-slot-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .course-table-head span:last-child {
    display: none;
  }

  .course-name {
    border-right: 0;
  }

  .embedded-homework {
    grid-column: 1 / -1;
    border-top: 1px dashed #dfd1a8;
  }

  .course-slot-row:not(.has-homework):not(.has-conflict) .embedded-homework {
    display: none;
  }

  .passport-stamp {
    width: 86px;
  }

  .travel-day-card h3 {
    font-size: 34px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 9px;
    text-align: left;
  }

  .week-view,
  .materials-view {
    padding: 19px 13px;
  }

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

  .mini-travel {
    min-height: 130px;
  }

  .memory-index,
  .math-unit-grid,
  .english-task-grid,
  .sports-foundation {
    grid-template-columns: 1fr;
  }

  .session-pills,
  .use-time-grid {
    grid-template-columns: 1fr;
  }

  .resource-image-button.custody-poster,
  .resource-image-button.custody-poster img {
    min-height: 210px;
  }

  .resource-card {
    padding: 17px 14px;
  }

  .resource-card-heading,
  .resource-card-heading.compact {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .resource-number {
    width: 42px;
    height: 42px;
  }

  .resource-card-heading > a,
  .resource-card-heading > .inline-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

  footer {
    display: grid;
    gap: 5px;
  }

  .modal-backdrop {
    padding: 8px;
  }

  .resource-modal {
    max-height: calc(100vh - 16px);
    border-radius: 18px;
  }

  .memory-modal-content {
    padding: 48px 18px 24px;
  }

  .two-day-plan {
    grid-template-columns: 1fr;
  }

  .image-modal-content {
    padding: 48px 12px 20px;
  }
}

/* Mobile-first daily view: compact header, task-first schedule, thumb navigation. */
@media (max-width: 760px) {
  :root {
    --shadow: 0 10px 28px rgba(30, 66, 67, 0.07);
    --shadow-soft: 0 8px 20px rgba(30, 66, 67, 0.06);
  }

  body {
    background:
      linear-gradient(180deg, rgba(223, 240, 231, 0.72), transparent 260px),
      var(--background);
  }

  .site-shell {
    width: 100%;
    max-width: 520px;
    padding: 10px 10px calc(84px + env(safe-area-inset-bottom));
  }

  .hero-panel {
    gap: 11px;
    padding: 15px 16px 14px;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
  }

  .hero-panel::before {
    width: 126px;
    height: 126px;
    top: -78px;
    right: 8%;
  }

  .hero-panel::after {
    display: none;
  }

  .eyebrow {
    font-size: 10px;
  }

  .hero-copy h1 {
    margin: 5px 0 3px;
    font-size: 27px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    white-space: nowrap;
  }

  .hero-copy p {
    font-size: 12px;
  }

  .hero-progress {
    padding: 10px 12px;
    border-radius: 13px;
  }

  .hero-progress > span {
    font-size: 11px;
  }

  .hero-progress > strong {
    font-size: 18px;
  }

  .hero-progress-track {
    height: 6px;
    margin: 7px 0 6px;
  }

  .hero-progress small {
    font-size: 10px;
    line-height: 1.3;
  }

  .hero-storage-copy {
    display: none;
  }

  .travel-banner {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 9px 0;
    padding: 9px 12px;
    border-radius: 13px;
  }

  .travel-banner .icon-mark,
  .travel-banner div > span {
    display: none;
  }

  .travel-banner strong {
    margin: 0;
    font-size: 12px;
  }

  .travel-banner.is-active-trip {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 12px;
  }

  .travel-banner.is-active-trip .icon-mark {
    display: grid;
  }

  .travel-banner.is-active-trip div > span {
    display: block;
    margin-top: 3px;
    font-size: 11px;
  }

  .view-tabs {
    position: fixed;
    z-index: 40;
    right: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 50%;
    display: grid;
    width: min(calc(100% - 20px), 500px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 5px;
    border-radius: 18px;
    background: rgba(255, 253, 251, 0.9);
    box-shadow: 0 12px 34px rgba(23, 63, 73, 0.18);
    transform: translateX(-50%);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .view-tabs button {
    min-height: 48px;
    padding: 0 8px;
    border-radius: 14px;
    font-size: 13px;
  }

  .view-tabs .reset-button {
    display: none;
  }

  .tab-label-long {
    display: none;
  }

  .tab-label-short {
    display: inline;
  }

  .week-navigator {
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 5px;
    margin-bottom: 10px;
    padding: 6px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
  }

  .nav-arrow {
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
  }

  .date-strip {
    display: flex;
    min-width: 0;
    gap: 5px;
    overflow-x: auto;
    padding: 0;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .date-strip::-webkit-scrollbar {
    display: none;
  }

  .date-button {
    flex: 0 0 64px;
    min-height: 68px;
    padding: 7px 4px;
    border-radius: 12px;
    scroll-snap-align: center;
  }

  .date-button span {
    font-size: 10px;
  }

  .date-button strong {
    margin: 3px 0 0;
    font-size: 17px;
  }

  .date-button small {
    display: none;
  }

  .schedule-card,
  .summary-card,
  .week-view,
  .materials-view {
    border-radius: 18px;
  }

  .schedule-card {
    padding: 16px 12px;
    box-shadow: var(--shadow-soft);
  }

  .schedule-heading {
    gap: 10px;
    padding-bottom: 14px;
  }

  .schedule-heading h2,
  .section-heading h2 {
    margin: 4px 0 3px;
    font-size: 28px;
    line-height: 1.12;
  }

  .schedule-heading p,
  .section-heading p {
    font-size: 12px;
    line-height: 1.45;
  }

  .day-kicker-row {
    justify-content: space-between;
  }

  .today-jump {
    min-height: 34px;
  }

  .event-list {
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .event-chip {
    min-width: 0;
    padding: 9px 10px;
    border-radius: 12px;
  }

  .event-chip strong {
    font-size: 12px;
  }

  .event-chip span {
    font-size: 11px;
  }

  .course-day-panel {
    padding-top: 11px;
  }

  .course-day-note {
    gap: 5px;
    margin-bottom: 11px;
    padding: 10px 11px;
    border-radius: 12px;
  }

  .course-day-note div {
    gap: 6px;
  }

  .course-day-note span,
  .course-day-note strong {
    font-size: 10px;
  }

  .course-day-note p {
    font-size: 11px;
    line-height: 1.45;
  }

  .course-desktop-table {
    display: none;
  }

  .course-mobile-tasks,
  .course-mobile-schedule {
    display: block;
  }

  .course-mobile-heading {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin: 0 2px 9px;
  }

  .course-mobile-heading span {
    color: var(--peach-strong);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
  }

  .course-mobile-heading h3 {
    margin: 2px 0 0;
    font-size: 18px;
  }

  .course-mobile-heading > strong {
    display: grid;
    min-width: 52px;
    min-height: 36px;
    place-items: center;
    border-radius: 999px;
    background: var(--mint);
    color: #2e725a;
    font-size: 12px;
  }

  .period-block {
    gap: 8px;
    padding: 16px 0;
  }

  .period-label h3 {
    font-size: 17px;
  }

  .task-list {
    gap: 8px;
  }

  .task-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 11px;
    border-color: rgba(215, 228, 222, 0.78);
    border-radius: 14px;
  }

  .task-row:hover {
    transform: none;
  }

  .task-row:active {
    background: var(--mint);
  }

  .task-check {
    grid-template-columns: 28px 40px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .check-visual {
    margin-top: 1px;
  }

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

  .task-copy {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 7px;
  }

  .task-copy .subject-pill {
    margin: 0;
  }

  .task-copy strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .task-copy small {
    display: -webkit-box;
    grid-column: 2;
    overflow: hidden;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .task-meta {
    gap: 7px;
    justify-content: flex-start;
    padding-left: 36px;
    white-space: normal;
    flex-wrap: wrap;
  }

  .task-meta > span {
    font-size: 11px;
  }

  .text-action {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 7px 10px;
    font-size: 11px;
  }

  .course-mobile-schedule {
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid #d6c38e;
    border-radius: 14px;
    background: #fffdf5;
  }

  .course-mobile-schedule summary {
    display: flex;
    min-height: 48px;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    color: #5e491f;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    list-style: none;
  }

  .course-mobile-schedule summary::-webkit-details-marker {
    display: none;
  }

  .course-mobile-schedule summary::after {
    content: "+";
    font-size: 20px;
    line-height: 1;
  }

  .course-mobile-schedule[open] summary::after {
    content: "−";
  }

  .course-mobile-schedule summary small {
    margin-left: auto;
    color: #8e7b50;
    font-size: 10px;
  }

  .course-mobile-timeline {
    display: grid;
    padding: 0 10px 10px;
  }

  .course-mobile-timeline > div {
    display: grid;
    min-width: 0;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 2px;
    border-top: 1px solid #eadfbe;
  }

  .course-mobile-timeline time {
    color: #7c6b43;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
  }

  .course-mobile-timeline strong {
    font-size: 12px;
  }

  .course-mobile-timeline span {
    grid-column: 2;
    color: var(--peach-strong);
    font-size: 10px;
    line-height: 1.4;
  }

  .course-mobile-timeline .has-conflict {
    margin: 0 -4px;
    padding-right: 6px;
    padding-left: 6px;
    border-radius: 8px;
    background: var(--peach);
  }

  .summary-card {
    padding: 17px;
  }

  .progress-summary {
    grid-template-columns: 84px 1fr;
    gap: 14px;
    margin: 17px 0;
  }

  .progress-ring {
    width: 84px;
  }

  .progress-ring::after {
    width: 58px;
  }

  .progress-ring span,
  .progress-summary > div:last-child strong {
    font-size: 18px;
  }

  .week-view,
  .materials-view {
    padding: 17px 12px;
    box-shadow: var(--shadow-soft);
  }

  .mobile-reset-button {
    display: block;
    min-height: 44px;
    margin: 14px 0 18px;
    padding: 0 14px;
    border: 1px solid rgba(207, 110, 78, 0.28);
    border-radius: 12px;
    background: rgba(255, 228, 213, 0.54);
    color: #9f553d;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
  }

  .resource-card,
  .week-day-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 420px;
  }

  .resource-modal {
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
