:root {
  --bg: #f2eee5;
  --surface: #faf8f3;
  --surface-strong: #ffffff;
  --ink: #182018;
  --muted: #6d726b;
  --line: rgba(24, 32, 24, 0.14);
  --green: #175c45;
  --green-dark: #0e3f30;
  --lime: #d8ff68;
  --orange: #ff7043;
  --blue: #4d75ff;
  --purple: #8d63dc;
  --yellow: #f2bd3e;
  --red: #e95b64;
  --shadow: 0 18px 55px rgba(32, 42, 33, 0.09);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  transition: background .25s ease, color .25s ease;
}

button,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

.page-noise {
  position: fixed;
  inset: 0;
  opacity: .025;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.site-header,
main,
footer {
  width: min(1420px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: var(--lime);
  background: var(--green);
  border-radius: 50%;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 13px;
  letter-spacing: .16em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.header-actions {
  display: flex;
  gap: 9px;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  transition: .2s ease;
}

.icon-button:hover {
  color: var(--surface);
  border-color: var(--green);
  background: var(--green);
  transform: translateY(-2px);
}

.icon-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  padding: 64px 6vw 56px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  width: 430px;
  height: 430px;
  position: absolute;
  right: 7%;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.hero-copy {
  width: 100%;
  min-width: 0;
  max-width: 790px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: clamp(52px, 6.3vw, 98px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.065em;
}

.hero h1 em {
  color: var(--green);
  font-style: normal;
}

.hero-description {
  max-width: 570px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-description span + span::before {
  content: "";
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 17px 22px 17px 26px;
  color: white;
  background: var(--green);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(23, 92, 69, .2);
  transition: .2s ease;
}

.primary-button span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--lime);
  border-radius: 50%;
}

.primary-button:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
}

.text-button {
  padding: 8px 0;
  cursor: pointer;
  color: var(--muted);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-size: 13px;
}

.progress-orbit {
  width: min(32vw, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  position: relative;
  z-index: 1;
}

.progress-orbit svg {
  width: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 12px 20px rgba(23, 92, 69, .1));
}

.orbit-track,
.orbit-progress {
  fill: none;
  stroke-width: 8;
}

.orbit-track {
  stroke: var(--surface-strong);
}

.orbit-progress {
  stroke: var(--green);
  stroke-linecap: round;
  stroke-dasharray: 590.62;
  stroke-dashoffset: 590.62;
  transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1);
}

.orbit-content {
  position: absolute;
  text-align: center;
}

.orbit-content strong,
.orbit-content span {
  display: block;
}

.orbit-content strong {
  font-size: clamp(50px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -.07em;
}

.orbit-content span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .18em;
}

.orbit-label {
  position: absolute;
  padding: 7px 10px;
  color: var(--green);
  background: var(--lime);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.orbit-label-top {
  top: 8%;
  right: 12%;
  transform: rotate(8deg);
}

.orbit-label-bottom {
  bottom: 9%;
  left: 8%;
  transform: rotate(-8deg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-card {
  min-height: 180px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.stat-card:last-child {
  border: 0;
}

.stat-card strong {
  display: block;
  margin-top: 26px;
  font-size: 38px;
  letter-spacing: -.04em;
}

.stat-card strong small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.stat-card > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.stat-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
}

.accent-card {
  color: white;
  background: var(--green);
}

.accent-card .stat-label,
.accent-card p {
  color: rgba(255,255,255,.64);
}

.quote-card {
  position: relative;
  color: var(--green-dark);
  background: var(--lime);
}

.quote-card .quote-mark {
  position: absolute;
  top: 12px;
  right: 24px;
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: 1;
  opacity: .2;
}

.quote-card p {
  margin-top: 48px;
  color: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

.dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 58px;
  padding: 120px 0;
}

.section-heading > span {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .19em;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: clamp(32px, 3vw, 46px);
  letter-spacing: -.045em;
}

.section-heading > p {
  margin: 14px 0 0;
  color: var(--muted);
}

.section-heading.compact h2 {
  font-size: 29px;
}

.subject-panel {
  align-self: start;
  position: sticky;
  top: 28px;
}

.subject-list {
  margin-top: 28px;
}

.subject-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.subject-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.subject-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.subject-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.subject-count {
  color: var(--muted);
  font-size: 12px;
}

.subject-progress {
  height: 4px;
  margin-top: 11px;
  overflow: hidden;
  background: var(--line);
  border-radius: 99px;
}

.subject-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width .5s ease;
}

.weight-card {
  margin-top: 34px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.weight-title {
  display: flex;
  justify-content: space-between;
}

.weight-title span {
  font-size: 13px;
  font-weight: 700;
}

.weight-title small {
  color: var(--muted);
}

.weight-bar {
  height: 8px;
  display: flex;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 99px;
}

.weight {
  height: 100%;
}

.circuit { background: var(--green); }
.calculus { background: var(--orange); }
.algebra { background: var(--blue); }
.physics { background: var(--purple); }
.english { background: var(--yellow); }

.weight-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
}

.weight-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.weight-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.filter-button {
  padding: 8px 13px;
  cursor: pointer;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  font-size: 11px;
  transition: .2s ease;
}

.filter-button.active,
.filter-button:hover {
  color: white;
  border-color: var(--green);
  background: var(--green);
}

.day-list {
  display: grid;
  gap: 14px;
}

.day-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.day-card:hover {
  border-color: rgba(23, 92, 69, .35);
  box-shadow: 0 12px 32px rgba(32, 42, 33, .07);
}

.day-card.today {
  border-color: var(--green);
  box-shadow: 0 15px 40px rgba(23, 92, 69, .12);
}

.day-card.complete {
  border-color: rgba(23, 92, 69, .26);
}

.day-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 110px 1fr auto 40px;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  cursor: pointer;
  border: 0;
  background: transparent;
  text-align: left;
}

.day-date strong,
.day-date span {
  display: block;
}

.day-date strong {
  font-size: 25px;
  line-height: 1;
}

.day-date span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.day-title strong {
  display: block;
  font-size: 16px;
}

.day-title span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.today-badge {
  display: inline-flex !important;
  width: max-content;
  margin: 0 0 7px !important;
  padding: 3px 7px;
  color: var(--green) !important;
  background: var(--lime);
  border-radius: 4px;
  font-size: 9px !important;
  font-weight: 700;
  letter-spacing: .12em;
}

.day-progress {
  min-width: 86px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.day-progress strong {
  color: var(--ink);
  font-size: 16px;
}

.day-toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .25s ease;
}

.day-card.open .day-toggle {
  transform: rotate(45deg);
}

.day-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.2, .8, .2, 1);
}

.day-card.open .day-body {
  max-height: 1600px;
}

.task-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 24px 24px 156px;
}

.task-group {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}

.task-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.task-subject {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.task-subject i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.task-group-header small {
  color: var(--muted);
  font-size: 10px;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.55;
}

.task-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-check {
  width: 18px;
  height: 18px;
  display: grid;
  flex: 0 0 18px;
  place-items: center;
  margin-top: 1px;
  border: 1px solid var(--line);
  border-radius: 5px;
  transition: .2s ease;
}

.custom-check::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  opacity: 0;
  transform: rotate(-45deg) translateY(-1px);
}

.task-item input:checked + .custom-check {
  border-color: var(--green);
  background: var(--green);
}

.task-item input:checked + .custom-check::after {
  opacity: 1;
}

.task-item input:checked ~ .task-text {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.task-note {
  grid-column: 1 / -1;
  padding: 14px 16px;
  color: var(--green-dark);
  background: color-mix(in srgb, var(--lime) 54%, transparent);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.65;
}

.minimum-section {
  padding: 100px 0 120px;
  border-top: 1px solid var(--line);
}

.minimum-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 38px;
}

.minimum-card {
  min-height: 235px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
}

.minimum-index {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.minimum-card h3 {
  margin: 32px 0 9px;
  font-size: 20px;
}

.minimum-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.minimum-card strong {
  display: block;
  margin-top: 20px;
  font-size: 13px;
}

.review-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 7vw;
  align-items: center;
  margin-bottom: 110px;
  padding: 70px;
  color: white;
  background: var(--green);
  border-radius: var(--radius-lg);
}

.review-copy .eyebrow {
  color: var(--lime);
}

.review-copy h2 {
  margin: 0;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: clamp(38px, 4vw, 62px);
  line-height: 1.18;
  letter-spacing: -.05em;
}

.review-copy h2 span {
  color: var(--lime);
}

.review-copy > p:last-child {
  max-width: 420px;
  color: rgba(255,255,255,.66);
  line-height: 1.8;
}

.review-pad {
  padding: 26px;
  color: var(--ink);
  background: var(--surface);
  border-radius: var(--radius-md);
  transform: rotate(1deg);
  box-shadow: 0 24px 60px rgba(0,0,0,.17);
}

.review-pad label {
  display: block;
  margin-bottom: 13px;
  font-size: 12px;
  font-weight: 700;
}

.review-pad textarea {
  width: 100%;
  min-height: 190px;
  padding: 17px;
  resize: vertical;
  color: var(--ink);
  border: 1px solid var(--line);
  outline: none;
  border-radius: 12px;
  background-color: var(--surface-strong);
  background-image: linear-gradient(transparent 31px, var(--line) 32px);
  background-size: 100% 32px;
  line-height: 32px;
}

.review-pad textarea:focus {
  border-color: var(--green);
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.review-footer span {
  color: var(--muted);
  font-size: 10px;
}

.review-footer button {
  padding: 11px 17px;
  cursor: pointer;
  color: white;
  border: 0;
  border-radius: 99px;
  background: var(--green);
  font-size: 11px;
  font-weight: 600;
}

.backup-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: -66px 0 70px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.backup-section span {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

.backup-section h2 {
  margin: 7px 0 5px;
  font-size: 22px;
}

.backup-section p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.backup-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.backup-actions button {
  padding: 12px 18px;
  cursor: pointer;
  color: white;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  font-size: 11px;
  font-weight: 600;
}

.backup-actions button.secondary {
  color: var(--green);
  background: transparent;
}

footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .12em;
}

.mobile-nav {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  padding: 12px 18px;
  color: white;
  background: var(--ink);
  border-radius: 99px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: .25s ease;
  font-size: 12px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.dark {
  --bg: #121713;
  --surface: #19201b;
  --surface-strong: #212a23;
  --ink: #edf2e9;
  --muted: #9aa49b;
  --line: rgba(237, 242, 233, .13);
  --green: #79c9a6;
  --green-dark: #a5e3c7;
  --lime: #c7ef5e;
  --shadow: 0 18px 55px rgba(0,0,0,.25);
}

body.dark .primary-button,
body.dark .accent-card,
body.dark .review-section {
  color: #102017;
  background: #79c9a6;
}

body.dark .primary-button span {
  color: #102017;
}

body.dark .review-copy .eyebrow,
body.dark .review-copy h2 span {
  color: #294b3c;
}

body.dark .review-copy > p:last-child {
  color: rgba(16, 32, 23, .68);
}

body.dark .task-note {
  color: var(--ink);
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card:nth-child(2) {
    border-right: 0;
  }

  .stat-card:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

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

  .subject-panel {
    position: static;
  }

  .subject-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }

  .subject-row {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .weight-card {
    max-width: 620px;
  }

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

@media (max-width: 760px) {
  html {
    scroll-padding-top: 82px;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1420px);
  }

  .site-header {
    height: 68px;
    position: sticky;
    top: 0;
    z-index: 30;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: auto;
    display: block;
    padding: 38px 0 34px;
  }

  .hero::before {
    width: 190px;
    height: 190px;
    top: 22%;
    right: -37%;
  }

  .hero h1 {
    font-size: clamp(36px, 10.7vw, 48px);
    line-height: 1.12;
    letter-spacing: -.075em;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 10px;
  }

  .hero-description {
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .hero-description span {
    display: block;
  }

  .progress-orbit {
    display: none;
  }

  .hero-actions {
    margin-top: 24px;
    gap: 16px;
    flex-direction: row;
  }

  .primary-button {
    gap: 19px;
    padding: 14px 17px 14px 20px;
  }

  .text-button {
    font-size: 11px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    border-radius: 20px;
  }

  .stat-card {
    min-height: 124px;
    padding: 17px;
  }

  .stat-card strong {
    margin-top: 16px;
    font-size: 25px;
  }

  .stat-card > p {
    margin-top: 6px;
    font-size: 10px;
  }

  .stat-label {
    font-size: 9px;
  }

  .quote-card,
  .stats-grid .stat-card:nth-child(3) {
    display: none;
  }

  .stats-grid .stat-card:nth-child(1),
  .stats-grid .stat-card:nth-child(2) {
    border-bottom: 0;
  }

  .dashboard {
    grid-template-areas:
      "schedule"
      "subjects";
    gap: 70px;
    padding: 54px 0 76px;
  }

  .schedule-panel {
    grid-area: schedule;
  }

  .subject-panel {
    grid-area: subjects;
  }

  .subject-list {
    grid-template-columns: 1fr 1fr;
  }

  .schedule-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 20px;
  }

  .filter-row {
    width: calc(100vw - 16px);
    margin-inline: -8px;
    padding: 0 8px 4px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .day-summary {
    grid-template-columns: 75px 1fr 30px;
    gap: 13px;
    padding: 18px 16px;
  }

  .day-date strong {
    font-size: 20px;
  }

  .day-progress {
    display: none;
  }

  .day-title strong {
    font-size: 14px;
  }

  .day-title > span:last-child {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .day-card {
    border-radius: 17px;
  }

  .day-card.today {
    scroll-margin-top: 82px;
  }

  .day-card:not(.today) .day-summary {
    min-height: 78px;
  }

  .task-groups {
    grid-template-columns: 1fr;
    padding: 0 16px 16px;
  }

  .minimum-section {
    padding: 68px 0 76px;
    scroll-margin-top: 70px;
  }

  .minimum-grid {
    display: flex;
    width: calc(100vw - 16px);
    gap: 12px;
    margin-inline: -8px;
    padding: 0 8px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .minimum-grid::-webkit-scrollbar {
    display: none;
  }

  .minimum-card {
    min-width: min(78vw, 300px);
    min-height: 210px;
    scroll-snap-align: start;
  }

  .review-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 45px 24px;
    margin-bottom: 36px;
    scroll-margin-top: 82px;
  }

  .review-pad {
    transform: none;
  }

  .backup-section {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin: -14px 0 45px;
    padding: 24px;
  }

  .backup-actions {
    width: 100%;
  }

  .backup-actions button {
    flex: 1;
  }

  .mobile-nav {
    height: calc(64px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    right: 12px;
    bottom: 10px;
    left: 12px;
    z-index: 40;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    border: 1px solid var(--line);
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    box-shadow: 0 16px 45px rgba(20, 30, 22, .18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    color: var(--muted);
    text-decoration: none;
    font-size: 9px;
    font-weight: 600;
  }

  .mobile-nav a:first-child {
    color: var(--green);
  }

  .mobile-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  footer {
    min-height: 90px;
  }
}

@media (max-width: 480px) {
  .brand strong {
    font-size: 11px;
  }

  .brand small {
    font-size: 9px;
  }

  .header-actions .icon-button:first-child {
    display: none;
  }

  .hero-actions {
    align-items: center;
    flex-direction: row;
  }

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

  .stat-card {
    border-bottom: 0;
  }

  .stat-card:first-child {
    border-right: 1px solid var(--line);
  }

  .subject-list {
    grid-template-columns: 1fr;
  }

  .weight-legend {
    grid-template-columns: 1fr 1fr;
  }

  .review-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
