:root {
  --ink: #142f29;
  --ink-deep: #0d2822;
  --green: #19483d;
  --green-soft: #2c6356;
  --gold: #c59335;
  --gold-light: #dfbd76;
  --paper: #f3f1e8;
  --paper-light: #faf9f3;
  --paper-deep: #e7e3d6;
  --muted: #6e756f;
  --line: rgba(20, 47, 41, 0.16);
  --serif: "STSong", "Songti SC", "Noto Serif CJK SC", "Times New Roman", serif;
  --sans: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

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

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

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: white;
  background: var(--green);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1220px, calc(100% - 80px));
  height: 100px;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper-light);
  font-family: var(--serif);
  font-size: 21px;
  background: var(--green);
  box-shadow: inset 0 0 0 4px var(--green), inset 0 0 0 5px rgba(255, 255, 255, 0.35);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.18em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.header-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.header-meta span:last-child {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(197, 147, 53, 0.13);
}

.settings-button {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-self: end;
  padding: 10px 2px;
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.08em;
  border: 0;
  border-bottom: 1px solid rgba(25, 72, 61, 0.3);
  background: transparent;
  cursor: pointer;
}

.settings-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.settings-button:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
  gap: clamp(54px, 8vw, 128px);
  align-items: center;
  width: min(1220px, calc(100% - 80px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 148px 0 120px;
}

.hero::before {
  position: absolute;
  top: 100px;
  right: calc((100vw - min(1220px, calc(100vw - 80px))) / -2);
  bottom: 0;
  left: 60%;
  z-index: -2;
  content: "";
  background: var(--green);
}

.hero::after {
  position: absolute;
  top: 18%;
  right: -11%;
  z-index: -1;
  width: 440px;
  height: 440px;
  content: "";
  border: 1px solid rgba(223, 189, 118, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(223, 189, 118, 0.025), 0 0 0 110px rgba(223, 189, 118, 0.018);
}

.hero-grid {
  position: absolute;
  inset: 100px 40% 0 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(20, 47, 41, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 47, 41, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero-content {
  position: relative;
  padding-left: clamp(0px, 2vw, 26px);
}

.hero-kicker {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 46px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.hero-kicker i {
  width: 42px;
  height: 1px;
  background: var(--gold-light);
}

.school-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.5em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 6.8vw, 92px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0.02em;
}

.exam-name {
  margin: 18px 0 45px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.13em;
}

.countdown {
  display: flex;
  gap: clamp(30px, 4vw, 60px);
  align-items: flex-end;
}

.countdown-main {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.countdown-main strong {
  min-width: 1.2em;
  color: var(--green);
  font-family: "Bodoni 72", "Didot", "Times New Roman", serif;
  font-size: clamp(92px, 13vw, 172px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 0.72;
  letter-spacing: -0.07em;
}

.countdown-main span {
  font-family: var(--serif);
  font-size: 18px;
}

.countdown-rest {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 5px;
}

.countdown-rest div {
  display: grid;
  gap: 6px;
  text-align: center;
}

.countdown-rest strong {
  min-width: 2ch;
  font-family: "Bodoni 72", "Didot", "Times New Roman", serif;
  font-size: clamp(31px, 3.3vw, 46px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown-rest span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.countdown-rest i {
  color: var(--gold);
  font-family: serif;
  font-size: 28px;
  font-style: normal;
  line-height: 1;
}

.exam-time-row {
  display: flex;
  gap: 14px;
  align-items: center;
  width: max-content;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.calendar-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--green);
  border: 1px solid var(--line);
}

.calendar-icon svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.exam-time-row p {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.exam-time-row time {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.phase-card {
  position: relative;
  z-index: 2;
  min-height: 500px;
  padding: 34px 34px 30px;
  color: var(--paper-light);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 35, 29, 0.42);
  box-shadow: 0 34px 80px rgba(6, 29, 24, 0.28);
  backdrop-filter: blur(12px);
}

.phase-card::before,
.phase-card::after {
  position: absolute;
  width: 15px;
  height: 15px;
  content: "";
}

.phase-card::before {
  top: 13px;
  left: 13px;
  border-top: 1px solid var(--gold-light);
  border-left: 1px solid var(--gold-light);
}

.phase-card::after {
  right: 13px;
  bottom: 13px;
  border-right: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
}

.phase-card-top {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.52);
  font-size: 8px;
  letter-spacing: 0.23em;
}

.phase-index {
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.phase-seal {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  margin: 56px auto 34px;
  border: 1px solid rgba(223, 189, 118, 0.45);
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px rgba(223, 189, 118, 0.04), 0 0 50px rgba(223, 189, 118, 0.08);
}

.phase-seal span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 43px;
  border: 1px solid rgba(223, 189, 118, 0.23);
  border-radius: 50%;
}

.phase-copy {
  text-align: center;
}

.phase-copy > p:first-child {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  letter-spacing: 0.28em;
}

.phase-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.phase-copy > p:last-child {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--serif);
  font-size: 12px;
}

.phase-progress {
  margin-top: 53px;
}

.phase-track {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.phase-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold-light);
  transition: width 700ms ease;
}

.phase-progress > div:last-child {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.phase-progress strong {
  color: var(--gold-light);
  font-weight: 500;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 0;
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.28em;
  writing-mode: vertical-rl;
}

.scroll-hint i {
  width: 1px;
  height: 35px;
  background: var(--gold);
}

.section-shell {
  width: min(1120px, calc(100% - 80px));
  margin: 0 auto;
}

.dashboard {
  padding: 120px 0 110px;
}

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

.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
}

.section-heading h2,
.timeline-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 4vw, 47px);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.section-heading > p {
  max-width: 330px;
  margin: 0 0 6px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.8;
  text-align: right;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 24px;
}

.plan-card,
.date-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.plan-card {
  padding: 36px 42px 30px;
}

.date-card {
  padding: 36px 38px 32px;
  color: var(--paper-light);
  border-color: var(--green);
  background: var(--green);
}

.card-heading,
.card-heading > div:first-child {
  display: flex;
  align-items: center;
}

.card-heading {
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.date-card .card-heading {
  border-color: rgba(255, 255, 255, 0.13);
}

.card-heading > div:first-child {
  gap: 17px;
}

.card-number {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: var(--gold);
  font-family: serif;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.date-card .card-number {
  border-color: rgba(255, 255, 255, 0.17);
}

.card-heading p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.date-card .card-heading p {
  color: rgba(255, 255, 255, 0.42);
}

.card-heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.card-heading > strong {
  color: var(--gold);
  font-family: serif;
  font-size: 14px;
  font-weight: 400;
}

.task-list {
  display: grid;
}

.task-item {
  position: relative;
  display: flex;
  gap: 17px;
  align-items: center;
  min-height: 83px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

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

.custom-check {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(20, 47, 41, 0.28);
  transition: 180ms ease;
}

.custom-check svg {
  width: 16px;
  fill: none;
  stroke: white;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  opacity: 0;
  transform: scale(0.6);
  transition: 180ms ease;
}

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

.task-item input:checked + .custom-check svg {
  opacity: 1;
  transform: scale(1);
}

.task-item input:focus-visible + .custom-check {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.task-copy {
  display: grid;
  gap: 5px;
}

.task-copy strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 180ms ease;
}

.task-copy small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.task-item input:checked ~ .task-copy strong {
  color: #8a918c;
  text-decoration: line-through;
}

.task-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  text-align: center;
}

.task-note.is-complete {
  color: var(--green);
}

.date-display {
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 43px 0 37px;
}

.date-display > strong {
  font-family: "Bodoni 72", "Didot", "Times New Roman", serif;
  font-size: 96px;
  font-weight: 400;
  line-height: 0.8;
}

.date-display > div {
  display: grid;
  gap: 5px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.date-display span:first-child {
  font-family: var(--serif);
  font-size: 18px;
}

.date-display span:last-child {
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.year-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.13);
}

.year-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold-light);
  transition: width 700ms ease;
}

.year-progress > div:last-child {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.year-progress strong {
  color: var(--gold-light);
  font-weight: 400;
}

.date-card blockquote {
  margin: 43px 0 0;
  padding-top: 25px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.timeline {
  padding: 100px 0 130px;
  border-top: 1px solid var(--line);
}

.timeline-heading {
  text-align: center;
}

.phase-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 75px 0 0;
  padding: 0;
  list-style: none;
}

.phase-list::before {
  position: absolute;
  top: 8px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  content: "";
  background: var(--line);
}

.phase-list li {
  position: relative;
  display: grid;
  justify-items: center;
  color: #9a9f9b;
  text-align: center;
}

.phase-dot {
  z-index: 2;
  width: 17px;
  height: 17px;
  margin-bottom: 19px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: #b8bbb6;
  box-shadow: 0 0 0 1px #b8bbb6;
}

.phase-list small {
  margin-bottom: 8px;
  color: #afb2ae;
  font-family: serif;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.phase-list strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.phase-list p {
  margin: 7px 0 0;
  font-size: 10px;
}

.phase-list li.is-complete,
.phase-list li.is-current {
  color: var(--green);
}

.phase-list li.is-complete .phase-dot {
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.phase-list li.is-current .phase-dot {
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 7px rgba(197, 147, 53, 0.12);
}

.phase-list li.is-current small {
  color: var(--gold);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 46px max(40px, calc((100vw - 1120px) / 2));
  color: rgba(255, 255, 255, 0.68);
  background: var(--ink-deep);
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 20px;
  border: 1px solid rgba(223, 189, 118, 0.35);
}

.site-footer p {
  margin: 0 0 4px;
  color: white;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.site-footer small {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.site-footer a {
  color: var(--gold-light);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.settings-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  padding: 0;
  color: var(--ink);
  border: 0;
  background: var(--paper-light);
  box-shadow: 0 30px 100px rgba(7, 32, 26, 0.3);
}

.settings-dialog::backdrop {
  background: rgba(7, 30, 25, 0.68);
  backdrop-filter: blur(5px);
}

.settings-dialog form {
  padding: 42px 46px 34px;
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.dialog-heading p {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.dialog-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
}

.close-button {
  width: 36px;
  height: 36px;
  color: var(--muted);
  font-size: 25px;
  line-height: 1;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

.form-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.form-row input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  color: var(--ink);
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: white;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-row input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(25, 72, 61, 0.08);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 11px;
}

.dialog-actions button {
  min-width: 112px;
  height: 44px;
  padding: 0 20px;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.button-quiet {
  color: var(--muted);
  border: 1px solid var(--line);
  background: transparent;
}

.button-primary {
  color: white;
  border: 1px solid var(--green);
  background: var(--green);
}

.privacy-note {
  margin: 18px 0 0;
  color: #939891;
  font-size: 9px;
  text-align: right;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  padding: 13px 18px;
  color: white;
  font-size: 11px;
  letter-spacing: 0.08em;
  background: var(--green);
  opacity: 0;
  transform: translateY(16px);
  transition: 180ms ease;
  pointer-events: none;
}

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (max-width: 980px) {
  .site-header {
    width: calc(100% - 48px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 70px;
    width: calc(100% - 48px);
    padding-top: 155px;
  }

  .hero::before {
    top: auto;
    right: calc((100vw - (100vw - 48px)) / -2);
    bottom: 0;
    left: 36%;
    height: 615px;
  }

  .hero::after {
    top: auto;
    right: -8%;
    bottom: 70px;
  }

  .hero-content {
    padding: 0 4vw;
  }

  .phase-card {
    justify-self: end;
    width: min(420px, 78%);
  }

  .scroll-hint {
    display: none;
  }

  .section-shell {
    width: calc(100% - 48px);
  }

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

  .date-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }

  .date-card .card-heading {
    grid-column: 1 / -1;
  }

  .date-card blockquote {
    align-self: end;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr auto;
    width: calc(100% - 32px);
    height: 82px;
  }

  .header-meta {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .settings-button span {
    display: none;
  }

  .settings-button {
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
  }

  .hero {
    gap: 62px;
    width: calc(100% - 32px);
    padding: 124px 0 80px;
  }

  .hero::before {
    right: -16px;
    left: 14%;
    height: 560px;
  }

  .hero::after {
    right: -32%;
    bottom: 40px;
    width: 330px;
    height: 330px;
  }

  .hero-grid {
    inset: 82px 0 auto;
    height: 620px;
  }

  .hero-content {
    padding: 0 5px;
  }

  .hero-kicker {
    margin-bottom: 34px;
  }

  .school-label {
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(39px, 13vw, 58px);
  }

  .exam-name {
    margin: 14px 0 38px;
    font-size: 11px;
  }

  .countdown {
    display: block;
  }

  .countdown-main strong {
    font-size: clamp(100px, 38vw, 145px);
  }

  .countdown-rest {
    gap: 18px;
    margin-top: 29px;
    padding-left: 4px;
  }

  .countdown-rest strong {
    font-size: 35px;
  }

  .exam-time-row {
    width: 100%;
    margin-top: 35px;
  }

  .phase-card {
    justify-self: end;
    width: calc(100% - 18px);
    min-height: 460px;
    padding: 28px 26px;
  }

  .phase-seal {
    margin-top: 46px;
  }

  .phase-progress {
    margin-top: 43px;
  }

  .section-shell {
    width: calc(100% - 32px);
  }

  .dashboard {
    padding: 82px 0 75px;
  }

  .section-heading {
    display: block;
    margin-bottom: 34px;
  }

  .section-heading h2,
  .timeline-heading h2 {
    font-size: 30px;
    line-height: 1.35;
  }

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

  .plan-card,
  .date-card {
    padding: 27px 23px 25px;
  }

  .task-item {
    min-height: 91px;
  }

  .task-copy small {
    line-height: 1.55;
  }

  .date-card {
    display: block;
  }

  .timeline {
    padding: 75px 0 90px;
  }

  .phase-list {
    grid-template-columns: 1fr;
    gap: 0;
    width: min(290px, 100%);
    margin: 52px auto 0;
  }

  .phase-list::before {
    top: 17px;
    bottom: 17px;
    left: 8px;
    width: 1px;
    height: auto;
  }

  .phase-list li {
    grid-template-columns: auto 35px 70px 1fr;
    justify-items: start;
    align-items: center;
    min-height: 65px;
    text-align: left;
  }

  .phase-dot {
    margin: 0 22px 0 0;
  }

  .phase-list small,
  .phase-list p {
    margin: 0;
  }

  .site-footer {
    grid-template-columns: auto 1fr;
    padding: 35px 24px;
  }

  .site-footer a {
    display: none;
  }

  .settings-dialog form {
    padding: 30px 24px 25px;
  }

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

  .dialog-actions button {
    min-width: 0;
    flex: 1;
  }

  .privacy-note {
    text-align: center;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
