:root {
  --ink: #20221f;
  --muted: #686c66;
  --paper: #f3f1ea;
  --surface: #fffefa;
  --line: rgba(32, 34, 31, 0.18);
  --line-strong: rgba(32, 34, 31, 0.34);
  --coral: #e99373;
  --yellow: #e6c86b;
  --blue: #9fc3d5;
  --green: #9ebc9a;
  --danger: #9c3c2e;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: var(--surface);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.study-header {
  width: min(calc(100% - 48px), var(--max-width));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 23px;
  font-weight: 800;
}

.brand-dot {
  width: 10px;
  height: 10px;
  align-self: center;
  background: var(--coral);
  border-radius: 50%;
}

.brand small {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.year-button,
.command-button,
.primary-button,
.secondary-button,
.close-button,
.icon-button {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
}

.year-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
}

.study-main {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 34px 0 86px;
}

.profile-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.profile-tabs {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 254, 250, 0.58);
}

.profile-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.profile-tab.is-active {
  color: var(--surface);
  background: var(--ink);
}

.profile-avatar {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
}

.profile-tab small {
  color: inherit;
  font-size: 10px;
  opacity: 0.68;
}

.storage-status {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.storage-status::before {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  display: inline-block;
  content: "";
  background: var(--green);
  border-radius: 50%;
}

.overview {
  min-height: 340px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  border: 1px solid var(--ink);
  background: var(--surface);
}

.overview-copy {
  min-width: 0;
  padding: clamp(36px, 5vw, 72px);
  border-right: 1px solid var(--line);
}

.overview-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.overview h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.overview-copy > p {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.overview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.overview-tags span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.overview-metrics {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.metric {
  min-height: 0;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.metric:last-child {
  border-bottom: 0;
}

.metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.metric strong {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 22px;
  margin-top: 22px;
}

.workspace {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.workspace-heading {
  min-height: 50px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.section-index {
  margin: 0 0 5px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
}

.workspace h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.command-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 800;
}

.icon-button,
.close-button {
  flex: 0 0 42px;
  width: 42px;
  padding: 0;
  font-size: 23px;
  line-height: 1;
}

.task-progress {
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr);
  align-items: center;
  gap: 18px;
  margin: 25px 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  background: rgba(32, 34, 31, 0.1);
}

.progress-track span {
  width: 0;
  height: 100%;
  display: block;
  background: var(--ink);
  transition: width 180ms ease;
}

.task-list,
.review-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-item {
  min-height: 72px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
}

.task-item:last-child {
  border-bottom: 0;
}

.task-check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: transparent;
  font-size: 14px;
}

.task-item.is-done .task-check {
  color: var(--surface);
  background: var(--ink);
}

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

.task-copy span,
.task-meta {
  color: var(--muted);
  font-size: 10px;
}

.task-copy strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.task-item.is-done .task-copy strong {
  color: var(--muted);
  text-decoration: line-through;
}

.row-delete {
  width: 34px;
  height: 34px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 18px;
}

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

.review-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.review-item:last-child {
  border-bottom: 0;
}

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

.review-copy strong {
  margin: 4px 0 7px;
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.review-tags small {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-size: 9px;
}

.review-action {
  align-self: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.empty-state {
  min-height: 140px;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.subjects-workspace {
  grid-column: 1 / -1;
  padding-bottom: 0;
  overflow: hidden;
}

.subjects-heading {
  align-items: flex-end;
  padding-bottom: 24px;
}

.subject-tabs {
  max-width: 100%;
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.subject-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.subject-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.subject-focus {
  min-height: 210px;
  margin: 0 -28px;
  padding: 34px 40px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  background: var(--blue);
  transition: background-color 180ms ease;
}

.subject-focus.tone-coral { background: var(--coral); }
.subject-focus.tone-yellow { background: var(--yellow); }
.subject-focus.tone-blue { background: var(--blue); }
.subject-focus.tone-green { background: var(--green); }
.subject-focus.tone-ink { color: var(--surface); background: var(--ink); }

.subject-mark {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
}

.subject-focus p {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
}

.subject-focus h3 {
  margin: 0 0 13px;
  font-size: 28px;
}

.subject-focus strong {
  font-size: clamp(18px, 2.4vw, 30px);
  line-height: 1.4;
}

.subject-grade {
  align-self: start;
  padding: 6px 8px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
}

.math-course {
  margin: 0 -28px;
  padding: 32px 40px 38px;
  border-top: 1px solid var(--line);
  background: #fffaf0;
}

.math-course[hidden] {
  display: none;
}

.math-course-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.math-course-heading h3 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
}

.math-course-heading > div > p:last-child {
  max-width: 720px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.math-progress {
  min-width: 112px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.math-progress strong,
.math-progress span {
  display: block;
}

.math-progress strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 400;
}

.math-progress span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.math-part-tabs {
  display: flex;
  gap: 8px;
  margin: 28px 0 18px;
  overflow-x: auto;
}

.math-part-tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
}

.math-part-tab.is-active {
  color: var(--surface);
  border-color: var(--ink);
  background: var(--ink);
}

.math-course-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  border: 1px solid var(--line);
  background: var(--surface);
}

.math-chapter-list {
  max-height: 610px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  list-style: none;
}

.math-chapter-button {
  width: 100%;
  min-height: 78px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.math-chapter-button > span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.math-chapter-button strong {
  font-size: 13px;
}

.math-chapter-button small {
  color: var(--muted);
  font-size: 9px;
}

.math-chapter-button.is-active {
  background: var(--yellow);
}

.math-chapter-button.is-complete > span::after {
  margin-left: 3px;
  color: #366c3d;
  content: "✓";
  font-family: Arial, sans-serif;
  font-size: 10px;
}

.math-chapter-detail {
  min-height: 480px;
  padding: clamp(24px, 4vw, 46px);
}

.math-detail-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.math-chapter-detail h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 400;
}

.math-goal {
  max-width: 720px;
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.math-chapter-detail h5 {
  margin: 22px 0 10px;
  font-size: 11px;
}

.math-section-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 26px;
  margin: 0;
  padding-left: 21px;
  font-size: 12px;
}

.math-key-points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.math-key-points span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.math-practice {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid rgba(230, 200, 107, 0.8);
  border-radius: 4px;
  background: rgba(230, 200, 107, 0.14);
}

.math-practice summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.math-practice strong {
  margin-top: 14px;
  display: block;
  font-size: 13px;
}

.math-practice p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.math-practice .math-answer {
  color: var(--ink);
}

.math-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.math-actions button {
  min-height: 42px;
}

.math-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.math-source {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.math-empty {
  margin: 0;
  color: var(--muted);
}

.weekly-workspace {
  grid-column: 1 / -1;
}

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

.weekly-form {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1fr 1fr auto;
  align-items: end;
  gap: 18px;
  margin-top: 22px;
}

.weekly-form fieldset,
.weekly-form label {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.weekly-form legend,
.weekly-form label > span,
.modal-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.energy-options {
  height: 42px;
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
}

.energy-options label {
  flex: 1;
  position: relative;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
}

.energy-options label:last-child {
  border-right: 0;
}

.energy-options input {
  position: absolute;
  opacity: 0;
}

.energy-options span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  margin: 0 !important;
  color: var(--muted);
  font-size: 9px !important;
}

.energy-options input:checked + span {
  color: var(--surface);
  background: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  outline: 0;
}

input,
select {
  height: 42px;
  padding: 0 11px;
}

textarea {
  min-height: 68px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(32, 34, 31, 0.1);
}

.primary-button,
.secondary-button {
  padding: 0 16px;
  font-size: 11px;
  font-weight: 800;
}

.primary-button {
  color: var(--surface);
  border-color: var(--ink);
  background: var(--ink);
}

.secondary-button {
  color: var(--danger);
  border-color: rgba(156, 60, 46, 0.45);
}

.study-footer {
  min-height: 96px;
  padding: 24px max(24px, calc((100% - var(--max-width)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: rgba(255, 254, 250, 0.68);
  background: var(--ink);
  font-size: 11px;
}

.study-footer a:first-child {
  color: var(--surface);
  font-weight: 800;
}

.study-footer a:last-child {
  justify-self: end;
}

.modal {
  width: min(calc(100% - 32px), 520px);
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  overflow: auto;
}

.modal::backdrop {
  background: rgba(32, 34, 31, 0.58);
}

.modal-form {
  padding: 28px;
}

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

.modal-heading p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.modal-heading h2 {
  margin: 0;
  font-size: 25px;
}

.modal-form label {
  margin-bottom: 17px;
}

.modal-form label input,
.modal-form label select {
  margin-top: 7px;
}

.modal-form > .primary-button {
  width: 100%;
  margin-top: 4px;
}

.year-modal {
  width: min(calc(100% - 32px), 640px);
}

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

.year-choice {
  min-height: 145px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  text-align: left;
}

.year-choice.is-active {
  border-color: var(--ink);
  box-shadow: inset 0 -5px 0 var(--yellow);
}

.year-choice span,
.year-choice small {
  color: var(--muted);
  font-size: 10px;
}

.year-choice strong {
  margin: auto 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

.year-state {
  margin: 18px 0;
  color: var(--muted);
  font-size: 11px;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 48px));
  padding: 12px 15px;
  color: var(--surface);
  border-radius: 4px;
  background: var(--ink);
  font-size: 11px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

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

button:hover,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #0a66c2;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .overview {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

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

  .subjects-workspace,
  .weekly-workspace {
    grid-column: auto;
  }

  .math-course-layout {
    grid-template-columns: minmax(210px, 0.58fr) minmax(0, 1.42fr);
  }

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

  .weekly-form .primary-button {
    width: max-content;
  }
}

@media (max-width: 720px) {
  .study-header,
  .study-main {
    width: calc(100% - 32px);
  }

  .study-header {
    height: 68px;
  }

  .brand {
    font-size: 20px;
  }

  .year-button {
    min-height: 38px;
    padding: 0 10px;
  }

  .study-main {
    padding-top: 24px;
  }

  .profile-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .profile-tabs {
    width: 100%;
  }

  .profile-tab {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 0 8px;
  }

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

  .overview-copy {
    padding: 34px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .overview h1 {
    font-size: 39px;
  }

  .overview-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
  }

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

  .metric:last-child {
    border-right: 0;
  }

  .metric strong {
    font-size: 21px;
    overflow-wrap: anywhere;
  }

  .workspace {
    padding: 22px 18px;
  }

  .subjects-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .subject-tabs {
    width: 100%;
  }

  .subject-focus {
    min-height: 270px;
    margin: 0 -18px;
    padding: 28px 22px;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 18px;
  }

  .subject-mark {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }

  .subject-grade {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .math-course {
    margin: 0 -18px;
    padding: 26px 18px 30px;
  }

  .math-course-heading {
    flex-direction: column;
    gap: 16px;
  }

  .math-progress {
    padding: 0;
    border-left: 0;
    text-align: left;
  }

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

  .math-chapter-list {
    max-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .weekly-form {
    grid-template-columns: 1fr;
  }

  .weekly-form .primary-button {
    width: 100%;
  }

  .study-footer {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .study-footer a:last-child {
    justify-self: start;
  }
}

@media (max-width: 430px) {
  .year-button span:first-child {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-tab small {
    display: none;
  }

  .overview-tags {
    flex-direction: column;
    align-items: flex-start;
  }

  .overview-metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 76px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .task-item {
    grid-template-columns: 28px minmax(0, 1fr) 32px;
  }

  .task-meta {
    display: none;
  }

  .review-item {
    grid-template-columns: 1fr;
  }

  .review-action {
    justify-self: start;
  }

  .math-actions {
    flex-direction: column;
  }

  .math-actions button {
    width: 100%;
  }

  .year-compare {
    grid-template-columns: 1fr;
  }
}

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