:root {
  --ink: #10233f;
  --ink-deep: #091a30;
  --ink-soft: #334b68;
  --muted: #708097;
  --paper: #f6f3ec;
  --paper-deep: #eee9df;
  --cream: #fbf8f1;
  --white: #fffefa;
  --teal: #087e70;
  --teal-bright: #15a08c;
  --teal-pale: #dff3ec;
  --coral: #ed6449;
  --coral-pale: #ffe8df;
  --yellow: #f1bf46;
  --yellow-pale: #fff3ce;
  --blue: #4f79bb;
  --blue-pale: #e5edf9;
  --purple: #8369b8;
  --purple-pale: #eee9f8;
  --green: #4b916a;
  --green-pale: #e4f2e9;
  --line: rgba(16, 35, 63, 0.12);
  --line-strong: rgba(16, 35, 63, 0.2);
  --shadow-sm: 0 8px 24px rgba(16, 35, 63, 0.07);
  --shadow-md: 0 20px 50px rgba(16, 35, 63, 0.1);
  --shadow-lg: 0 36px 90px rgba(16, 35, 63, 0.15);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --container: 1280px;
  --sans: "PingFang HK", "PingFang TC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK TC", sans-serif;
  --serif: "Songti TC", "Noto Serif CJK TC", "STSong", "SimSun", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 9%, rgba(241, 191, 70, 0.09), transparent 26rem),
    radial-gradient(circle at 94% 32%, rgba(8, 126, 112, 0.06), transparent 30rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

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

img,
svg {
  display: block;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3,
blockquote {
  margin: 0;
}

::selection {
  color: var(--white);
  background: var(--teal);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 0.2s;
}

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

.text-button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s,
    background-color 0.25s,
    border-color 0.25s;
}

.button svg {
  width: 17px;
  height: 17px;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 7px 18px rgba(16, 35, 63, 0.16);
}

.button-primary:hover {
  background: var(--ink-deep);
  box-shadow: 0 12px 28px rgba(16, 35, 63, 0.22);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  border-color: var(--line-strong);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  background: var(--white);
  border-color: rgba(16, 35, 63, 0.3);
}

.button-ghost {
  min-height: 40px;
  padding-inline: 14px;
  background: transparent;
  border-color: transparent;
}

.button-ghost:hover {
  background: rgba(16, 35, 63, 0.05);
}

.button-large {
  min-height: 54px;
  padding-inline: 24px;
  font-size: 15px;
}

.button-light {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.button-light:hover {
  background: var(--yellow-pale);
}

.button-dark-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.24);
}

.button-dark-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.button-full {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
}

.icon-button:hover {
  background: rgba(16, 35, 63, 0.06);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

/* Header */
.site-header {
  position: relative;
  z-index: 50;
}

.utility-bar {
  color: rgba(255, 255, 255, 0.8);
  background: var(--ink-deep);
  font-size: 12px;
  letter-spacing: 0.025em;
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
}

.utility-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.live-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #54d6b8;
}

.live-dot::after {
  position: absolute;
  inset: -4px;
  content: "";
  border: 1px solid rgba(84, 214, 184, 0.4);
  border-radius: inherit;
  animation: livePulse 2s infinite;
}

.deadline-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px;
  color: rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  transition: background-color 0.2s;
}

.deadline-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.deadline-pill strong {
  color: #ff9b7e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.deadline-pill svg {
  width: 12px;
  height: 12px;
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.utility-links a:hover,
.utility-links button:hover {
  color: var(--white);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 45;
  background: rgba(251, 248, 241, 0.88);
  border-bottom: 1px solid rgba(16, 35, 63, 0.08);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 11px;
}

.brand-mark {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  width: 39px;
  height: 39px;
  padding: 5px;
  overflow: hidden;
  background: var(--ink);
  border-radius: 12px 12px 12px 4px;
  transform: rotate(-2deg);
  box-shadow: 0 6px 14px rgba(16, 35, 63, 0.18);
}

.brand-mark span {
  display: block;
  border-radius: 3px;
}

.brand-mark span:nth-child(1) {
  background: var(--coral);
}

.brand-mark span:nth-child(2) {
  background: var(--yellow);
}

.brand-mark span:nth-child(3) {
  background: #36b59e;
}

.brand-mark span:nth-child(4) {
  background: rgba(255, 255, 255, 0.75);
}

.brand-mark > svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 21px;
  height: 21px;
  color: var(--white);
  stroke-width: 2.5;
  filter: drop-shadow(0 1px 2px rgba(16, 35, 63, 0.4));
  transform: translate(-50%, -50%);
}

.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-name b {
  color: var(--teal);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  vertical-align: 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a,
.nav-more {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 560;
  cursor: pointer;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.nav-more:hover {
  color: var(--ink);
  background: rgba(16, 35, 63, 0.055);
}

.desktop-nav a.is-active::after {
  position: absolute;
  right: 15px;
  bottom: 4px;
  left: 15px;
  height: 2px;
  content: "";
  background: var(--coral);
  border-radius: 99px;
}

.nav-more svg {
  width: 15px;
  height: 15px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.notification-wrap {
  position: relative;
}

.notification-trigger {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  background: var(--coral);
  border: 2px solid var(--cream);
  border-radius: 50%;
}

.notification-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: -8px;
  width: 330px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  animation: popIn 0.2s var(--ease);
}

.popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 10px;
}

.popover-head strong {
  font-size: 14px;
}

.popover-head span {
  color: var(--coral);
  font-size: 11px;
  font-weight: 650;
}

.notification-popover > a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 12px;
}

.notification-popover > a:hover {
  background: var(--paper);
}

.popover-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.popover-icon svg {
  width: 17px;
  height: 17px;
}

.popover-icon.coral {
  color: var(--coral);
  background: var(--coral-pale);
}

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

.popover-icon.yellow {
  color: #9b6c00;
  background: var(--yellow-pale);
}

.notification-popover > a > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.notification-popover b {
  font-size: 12px;
  font-weight: 650;
}

.notification-popover small {
  color: var(--muted);
  font-size: 10px;
}

.login-button {
  margin-left: 5px;
}

.register-button {
  min-height: 40px;
  padding-inline: 16px;
}

.mobile-menu-button {
  display: none;
}

.mobile-menu {
  padding: 10px 32px 20px;
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.mobile-menu a,
.mobile-menu button {
  display: block;
  width: 100%;
  padding: 13px 0;
  color: var(--ink);
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 720px;
  padding: 74px 0 126px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.35), transparent 65%),
    radial-gradient(circle at 74% 38%, rgba(8, 126, 112, 0.1), transparent 24rem),
    radial-gradient(circle at 10% 88%, rgba(237, 100, 73, 0.07), transparent 20rem);
}

.hero::before {
  position: absolute;
  top: 68px;
  right: -100px;
  width: 580px;
  height: 580px;
  content: "";
  border: 1px solid rgba(16, 35, 63, 0.08);
  border-radius: 50%;
}

.hero::after {
  position: absolute;
  top: 0;
  left: 3.2%;
  width: 1px;
  height: 100%;
  content: "";
  background: linear-gradient(transparent, rgba(16, 35, 63, 0.1) 15%, rgba(16, 35, 63, 0.1) 85%, transparent);
}

.hero-orbit {
  position: absolute;
  pointer-events: none;
  border: 1px dashed rgba(16, 35, 63, 0.12);
  border-radius: 50%;
}

.hero-orbit-one {
  top: 70px;
  right: 5%;
  width: 510px;
  height: 510px;
  transform: rotate(20deg);
}

.hero-orbit-two {
  top: 145px;
  right: 10%;
  width: 330px;
  height: 330px;
  border-style: solid;
  opacity: 0.45;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(420px, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 72px;
}

.hero-copy {
  padding-top: 4px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 7px 13px 7px 8px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(8, 126, 112, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.eyebrow-star {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50%;
}

.eyebrow-star svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.7;
}

.hero h1 {
  max-width: 650px;
  font-family: var(--serif);
  font-size: clamp(52px, 5vw, 78px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.hero h1 span {
  position: relative;
  color: var(--teal);
}

.hero h1 span::after {
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: -2px;
  z-index: -1;
  height: 11px;
  content: "";
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.56;
  transform: rotate(-1.5deg);
}

.hero-lead {
  max-width: 565px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 23px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.hero-features span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-features svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 41px;
}

.proof-avatars {
  display: flex;
}

.proof-avatars span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: -7px;
  color: var(--white);
  background: var(--coral);
  border: 2px solid var(--paper);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}

.proof-avatars span:first-child {
  margin-left: 0;
  background: var(--ink);
}

.proof-avatars span:nth-child(2) {
  background: var(--teal);
}

.proof-avatars span:nth-child(3) {
  color: var(--ink);
  background: var(--yellow);
}

.proof-avatars span:last-child {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero-proof p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.hero-proof strong {
  color: var(--ink);
  font-size: 12px;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  isolation: isolate;
}

.preview-window {
  position: absolute;
  z-index: 2;
  top: 48px;
  left: 34px;
  width: calc(100% - 36px);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.6deg);
}

.preview-window::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 35%);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 17px;
  color: var(--muted);
  background: #f8f6f1;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.window-dots {
  display: flex;
  gap: 4px;
}

.window-dots i {
  width: 6px;
  height: 6px;
  background: #d7d3ca;
  border-radius: 50%;
}

.preview-date {
  margin-left: auto;
}

.preview-content {
  position: relative;
  z-index: 1;
  padding: 24px 24px 22px;
}

.preview-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-greeting small {
  color: var(--teal);
  font-size: 9px;
  font-weight: 700;
}

.preview-greeting h2 {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.preview-avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: var(--white);
  background: var(--teal);
  border: 3px solid var(--teal-pale);
  border-radius: 12px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
}

.preview-timeline {
  margin-top: 18px;
}

.preview-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 10px;
  font-weight: 700;
}

.soft-tag {
  padding: 3px 7px;
  color: var(--coral);
  background: var(--coral-pale);
  border-radius: 99px;
  font-size: 8px;
}

.mini-schedule-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 57px;
  margin-bottom: 7px;
  padding: 9px 11px 9px 14px;
  overflow: hidden;
  background: #faf8f3;
  border: 1px solid rgba(16, 35, 63, 0.07);
  border-radius: 12px;
}

.mini-schedule-row::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  content: "";
}

.mini-schedule-row.coral::before {
  background: var(--coral);
}

.mini-schedule-row.teal::before {
  background: var(--teal);
}

.mini-schedule-row.yellow::before {
  background: var(--yellow);
}

.mini-time {
  color: var(--ink);
  font-family: "Avenir Next", var(--sans);
  font-size: 10px;
  font-weight: 700;
}

.mini-schedule-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mini-schedule-info b {
  overflow: hidden;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-schedule-info small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.source-chip {
  padding: 3px 7px;
  color: var(--ink-soft);
  background: rgba(16, 35, 63, 0.055);
  border-radius: 99px;
  font-size: 7px;
  font-weight: 650;
}

.preview-bottom {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 9px;
  margin-top: 13px;
}

.preview-task-card,
.preview-focus-card {
  padding: 12px;
  border-radius: 13px;
}

.preview-task-card {
  background: var(--white);
  border: 1px solid var(--line);
}

.preview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 650;
}

.preview-card-head strong {
  color: var(--teal);
}

.task-progress {
  width: 100%;
  height: 5px;
  margin: 7px 0 8px;
  overflow: hidden;
  background: rgba(16, 35, 63, 0.08);
  border-radius: 99px;
}

.task-progress span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
  transition: width 0.4s var(--ease);
}

.preview-task-card ul {
  display: grid;
  gap: 4px;
}

.preview-task-card li {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 7px;
}

.preview-task-card li > span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}

.preview-task-card li.done {
  color: var(--muted);
  text-decoration: line-through;
}

.preview-task-card li.done > span {
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.preview-task-card li.done svg {
  width: 7px;
  height: 7px;
  stroke-width: 3;
}

.preview-focus-card {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.preview-focus-card::after {
  position: absolute;
  right: -17px;
  bottom: -19px;
  width: 65px;
  height: 65px;
  content: "";
  border: 8px solid rgba(241, 191, 70, 0.18);
  border-radius: 50%;
}

.focus-icon {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-bottom: 7px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50%;
}

.focus-icon svg {
  width: 11px;
  height: 11px;
}

.preview-focus-card small {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 7px;
}

.preview-focus-card b {
  display: block;
  margin: 2px 0 7px;
  font-size: 9px;
  line-height: 1.45;
}

.preview-focus-card > span:last-child {
  color: var(--yellow);
  font-size: 7px;
  font-weight: 700;
}

.dse-float-card {
  position: absolute;
  z-index: 4;
  top: 0;
  right: -3px;
  width: 142px;
  padding: 15px;
  color: var(--white);
  background: var(--coral);
  border-radius: 19px 19px 19px 6px;
  box-shadow: 0 22px 38px rgba(237, 100, 73, 0.26);
  transform: rotate(3deg);
}

.float-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.float-count {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 3px 0 8px;
}

.float-count strong {
  font-family: "Avenir Next", var(--sans);
  font-size: 37px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.055em;
}

.float-count span {
  padding-bottom: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 8px;
  line-height: 1.3;
}

.mini-progress {
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
}

.mini-progress span {
  display: block;
  width: 62%;
  height: 100%;
  background: var(--yellow);
}

.dse-float-card small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 7px;
}

.wechat-float-card {
  position: absolute;
  z-index: 5;
  bottom: 13px;
  left: -12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 245px;
  padding: 10px 13px;
  background: rgba(255, 254, 250, 0.95);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  transform: rotate(1.2deg);
  backdrop-filter: blur(12px);
}

.wechat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: var(--white);
  background: #16b354;
  border-radius: 11px;
}

.wechat-icon svg {
  width: 20px;
  height: 20px;
}

.wechat-float-card > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.wechat-float-card small {
  color: var(--muted);
  font-size: 8px;
}

.wechat-float-card b {
  font-size: 10px;
}

.unread {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--white);
  background: var(--coral);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 700;
}

.scribble-note {
  position: absolute;
  bottom: -8px;
  right: 12px;
  color: rgba(16, 35, 63, 0.55);
  font-family: "Kaiti TC", "STKaiti", var(--serif);
  font-size: 13px;
  line-height: 1.5;
  transform: rotate(-5deg);
}

/* Quick entry */
.quick-rail {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -64px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.quick-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 112px;
  padding: 20px 19px;
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 0.25s;
}

.quick-card:first-child {
  border-radius: 20px 0 0 20px;
}

.quick-card:last-child {
  border-right: 0;
  border-radius: 0 20px 20px 0;
}

.quick-card:hover {
  background: rgba(246, 243, 236, 0.65);
}

.quick-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  border-radius: 13px;
}

.quick-icon svg {
  width: 19px;
  height: 19px;
}

.quick-icon.coral {
  color: var(--coral);
  background: var(--coral-pale);
}

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

.quick-icon.yellow {
  color: #956600;
  background: var(--yellow-pale);
}

.quick-icon.ink {
  color: var(--white);
  background: var(--ink);
}

.quick-card > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quick-card b {
  font-size: 13px;
  font-weight: 700;
}

.quick-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.quick-arrow {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: #a1aab8;
  transition: transform 0.25s;
}

.quick-card:hover .quick-arrow {
  transform: translateX(3px);
}

/* Shared sections */
.section {
  position: relative;
  padding: 104px 0;
}

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

.section-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--coral);
  font-family: "Avenir Next", var(--sans);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.section-kicker.light {
  color: #7edbc7;
}

.section-heading h2,
.process-intro h2,
.closing-copy h2 {
  font-family: var(--serif);
  font-size: clamp(37px, 3.8vw, 52px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 600px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 14px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading.compact {
  align-items: center;
}

.panel-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-heading h3,
.timeline-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.date-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.2s;
}

.date-switcher:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.date-switcher svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 4px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 650;
}

.text-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.text-link:hover svg {
  transform: translate(2px, -2px);
}

/* Today dashboard */
.today-section {
  padding-top: 108px;
}

.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(330px, 0.78fr);
  align-items: start;
  gap: 22px;
}

.schedule-panel {
  padding: 25px 26px 19px;
}

.sync-status,
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  color: var(--teal);
  background: var(--teal-pale);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 650;
}

.sync-status span,
.live-badge span {
  width: 5px;
  height: 5px;
  background: var(--teal-bright);
  border-radius: 50%;
}

.week-tabs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 20px;
  padding: 5px;
  background: var(--paper);
  border-radius: 14px;
}

.week-tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 8px 3px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition:
    color 0.2s,
    background-color 0.2s,
    box-shadow 0.2s;
}

.week-tabs button:hover {
  color: var(--ink);
}

.week-tabs button[aria-selected="true"] {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 6px 13px rgba(16, 35, 63, 0.16);
}

.week-tabs small {
  font-size: 8px;
}

.week-tabs span {
  font-family: "Avenir Next", var(--sans);
  font-size: 14px;
  font-weight: 700;
}

.schedule-list {
  display: grid;
  gap: 7px;
  min-height: 326px;
  margin-top: 17px;
}

.schedule-item {
  position: relative;
  display: grid;
  grid-template-columns: 55px 4px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 10px 14px 10px 10px;
  background: #fbfaf6;
  border: 1px solid rgba(16, 35, 63, 0.075);
  border-radius: 13px;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    transform 0.2s;
  animation: rowIn 0.35s var(--ease) both;
}

.schedule-item:hover {
  background: var(--white);
  border-color: var(--line-strong);
  transform: translateX(2px);
}

.schedule-item.is-now {
  background: #fff9e8;
  border-color: rgba(241, 191, 70, 0.55);
}

.schedule-time {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.schedule-time b {
  font-family: "Avenir Next", var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.schedule-time small {
  color: var(--muted);
  font-size: 8px;
}

.schedule-color {
  width: 4px;
  height: 32px;
  background: var(--coral);
  border-radius: 99px;
}

.schedule-color.teal {
  background: var(--teal);
}

.schedule-color.yellow {
  background: var(--yellow);
}

.schedule-color.blue {
  background: var(--blue);
}

.schedule-color.purple {
  background: var(--purple);
}

.schedule-color.green {
  background: var(--green);
}

.schedule-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.schedule-info b {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-info small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.schedule-info svg {
  width: 10px;
  height: 10px;
}

.schedule-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subject-pill,
.source-label {
  padding: 4px 8px;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 650;
  white-space: nowrap;
}

.subject-pill {
  color: var(--ink-soft);
  background: rgba(16, 35, 63, 0.055);
}

.source-label {
  color: var(--coral);
  background: var(--coral-pale);
}

.source-label.school {
  color: var(--teal);
  background: var(--teal-pale);
}

.source-label.self {
  color: #8a6700;
  background: var(--yellow-pale);
}

.schedule-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 326px;
  color: var(--muted);
  text-align: center;
}

.schedule-empty span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  color: var(--teal);
  background: var(--teal-pale);
  border-radius: 50%;
}

.schedule-empty svg {
  width: 22px;
  height: 22px;
}

.schedule-empty b {
  color: var(--ink);
  font-size: 13px;
}

.schedule-empty small {
  font-size: 10px;
}

.schedule-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 9px;
}

.schedule-footer > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.schedule-footer svg {
  width: 12px;
  height: 12px;
  color: var(--coral);
}

.schedule-footer a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-weight: 650;
}

.today-side {
  display: grid;
  gap: 18px;
}

.tasks-panel {
  padding: 23px 22px 16px;
}

.progress-ring {
  --progress: 40;
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) calc(var(--progress) * 1%), rgba(16, 35, 63, 0.08) 0);
}

.progress-ring::after {
  position: absolute;
  inset: 5px;
  content: "";
  background: var(--white);
  border-radius: inherit;
}

.progress-ring span {
  position: relative;
  z-index: 1;
  font-family: "Avenir Next", var(--sans);
  font-size: 9px;
  font-weight: 700;
}

.task-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 15px;
  padding: 9px 11px;
  background: var(--paper);
  border-radius: 10px;
  color: var(--muted);
  font-size: 8px;
}

.task-summary b {
  color: var(--ink);
  font-family: "Avenir Next", var(--sans);
  font-size: 12px;
}

.task-summary .text-link {
  margin-left: auto;
  padding: 0;
  color: var(--teal);
  border: 0;
  font-size: 8px;
}

.today-task-list {
  display: grid;
  gap: 0;
  margin-top: 5px;
}

.today-task-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  border-bottom: 1px solid rgba(16, 35, 63, 0.07);
}

.today-task-list li:last-child {
  border-bottom: 0;
}

.task-check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  padding: 0;
  color: transparent;
  background: transparent;
  border: 1.5px solid #bbc2cd;
  border-radius: 6px;
  cursor: pointer;
  transition:
    color 0.2s,
    background-color 0.2s,
    border-color 0.2s;
}

.task-check:hover {
  border-color: var(--teal);
}

.task-check svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.7;
}

.today-task-list li.done .task-check {
  color: var(--white);
  background: var(--teal);
  border-color: var(--teal);
}

.task-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.task-copy b {
  overflow: hidden;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-copy small {
  color: var(--muted);
  font-size: 8px;
}

.today-task-list li.done .task-copy b {
  color: var(--muted);
  text-decoration: line-through;
}

.task-subject {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 7px;
  font-weight: 650;
}

.task-subject.coral {
  color: var(--coral);
  background: var(--coral-pale);
}

.task-subject.yellow {
  color: #8a6500;
  background: var(--yellow-pale);
}

.task-subject.teal {
  color: var(--teal);
  background: var(--teal-pale);
}

.task-subject.blue {
  color: var(--blue);
  background: var(--blue-pale);
}

.task-subject.green {
  color: var(--green);
  background: var(--green-pale);
}

.panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 0 2px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(16, 35, 63, 0.07);
  font-size: 9px;
  font-weight: 650;
  cursor: pointer;
}

.panel-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.panel-link:hover svg {
  transform: translate(2px, -2px);
}

.notice-panel {
  padding: 21px 22px 14px;
}

.notice-list {
  display: grid;
  gap: 1px;
  margin-top: 11px;
}

.notice-list a {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(16, 35, 63, 0.07);
}

.notice-date {
  color: var(--coral);
  font-size: 8px;
  font-weight: 650;
}

.notice-list a > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.notice-list small {
  color: var(--muted);
  font-size: 7px;
}

.notice-arrow {
  color: var(--muted);
}

.notice-arrow svg {
  width: 13px;
  height: 13px;
}

/* DSE section */
.dse-section {
  padding-top: 94px;
  background:
    linear-gradient(180deg, transparent, rgba(238, 233, 223, 0.55) 45%, transparent),
    var(--paper);
}

.dse-heading {
  align-items: flex-end;
}

.dse-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(500px, 1.08fr);
  gap: 22px;
}

.countdown-card {
  position: relative;
  min-height: 443px;
  padding: 27px 29px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0, rgba(21, 160, 140, 0.26), transparent 40%),
    var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 55px rgba(16, 35, 63, 0.19);
}

.countdown-decoration {
  position: absolute;
  right: -100px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}

.countdown-decoration::before,
.countdown-decoration::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
}

.countdown-decoration::before {
  inset: 42px;
}

.countdown-decoration::after {
  inset: 91px;
}

.countdown-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dark-tag {
  padding: 6px 10px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 7px;
  font-family: "Avenir Next", var(--sans);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.tentative {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
}

.countdown-copy {
  position: relative;
  z-index: 1;
  margin-top: 44px;
}

.countdown-copy > span {
  color: rgba(255, 255, 255, 0.63);
  font-size: 12px;
}

.countdown-number {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin-top: -2px;
}

.countdown-number strong {
  font-family: "Avenir Next", var(--sans);
  font-size: clamp(80px, 8vw, 114px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.075em;
}

.countdown-number em {
  margin-bottom: 12px;
  color: #75d8c6;
  font-family: var(--serif);
  font-size: 21px;
  font-style: normal;
}

.countdown-copy p {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Avenir Next", var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.exam-timeline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 37px;
}

.timeline-line {
  position: absolute;
  top: 5px;
  right: 9%;
  left: 3%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.timeline-line span {
  display: block;
  width: 29%;
  height: 100%;
  background: #70d5c2;
}

.timeline-line span::after {
  display: block;
  float: right;
  width: 7px;
  height: 7px;
  content: "";
  background: #70d5c2;
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translate(3px, -3px);
}

.timeline-stage {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.timeline-stage::before {
  width: 6px;
  height: 6px;
  content: "";
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.timeline-stage:first-of-type::before {
  background: #70d5c2;
}

.timeline-stage small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
}

.timeline-stage b {
  font-size: 10px;
  font-weight: 600;
}

.countdown-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 9px;
  margin-top: 30px;
}

.countdown-actions .button {
  min-height: 42px;
  font-size: 11px;
}

.timeline-card {
  padding: 27px 28px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.timeline-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.timeline-card-head > a {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.timeline-card-head > a:hover {
  color: var(--teal);
}

.timeline-card-head svg {
  width: 12px;
  height: 12px;
}

.milestone-list {
  display: grid;
  margin-top: 16px;
}

.milestone {
  display: grid;
  grid-template-columns: 61px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(16, 35, 63, 0.075);
  transition: transform 0.2s;
}

.milestone:hover {
  transform: translateX(3px);
}

.milestone.is-urgent {
  margin-inline: -11px;
  padding-inline: 11px;
  background: linear-gradient(90deg, rgba(255, 232, 223, 0.72), transparent);
  border-radius: 10px;
}

.milestone-date {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.milestone-date b {
  font-family: "Avenir Next", var(--sans);
  font-size: 28px;
  font-weight: 670;
  line-height: 1;
  letter-spacing: -0.045em;
}

.milestone-date small {
  color: var(--muted);
  font-family: "Avenir Next", var(--sans);
  font-size: 7px;
  font-weight: 700;
  line-height: 1.2;
}

.is-urgent .milestone-date b {
  color: var(--coral);
}

.milestone-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.milestone-copy strong {
  font-size: 11px;
  font-weight: 680;
}

.milestone-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.milestone-tag {
  padding: 4px 7px;
  color: var(--coral);
  background: var(--coral-pale);
  border-radius: 99px;
  font-size: 7px;
  font-weight: 700;
  white-space: nowrap;
}

.milestone-tag.neutral {
  color: var(--ink-soft);
  background: var(--paper);
}

.official-sources {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  padding: 20px 22px;
  background: rgba(255, 254, 250, 0.56);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.official-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.official-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: var(--teal);
  background: var(--teal-pale);
  border-radius: 11px;
}

.official-mark svg {
  width: 17px;
  height: 17px;
}

.official-heading > div {
  display: flex;
  flex-direction: column;
}

.official-heading strong {
  font-size: 12px;
}

.official-heading small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.source-grid a {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 8px;
  padding: 9px;
  background: var(--white);
  border: 1px solid rgba(16, 35, 63, 0.07);
  border-radius: 11px;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.source-grid a:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.source-logo {
  display: grid;
  place-items: center;
  width: 37px;
  height: 34px;
  border-radius: 7px;
  font-family: "Avenir Next", var(--sans);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.source-logo.hkeaa {
  color: #8a2532;
  background: #f6e6e8;
}

.source-logo.hkdse {
  color: #195591;
  background: #e7effa;
}

.source-logo.edb {
  color: #0e6f75;
  background: #e0f1f1;
}

.source-logo.jupas {
  color: #8a6300;
  background: #f9efd4;
}

.source-grid a > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.source-grid b {
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.source-grid small {
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-grid svg {
  width: 11px;
  height: 11px;
  color: #a0a9b6;
}

/* Subjects */
.subjects-section {
  background: var(--cream);
}

.subject-heading {
  align-items: center;
}

.filter-tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.filter-tabs button {
  padding: 8px 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
  transition:
    color 0.2s,
    background-color 0.2s;
}

.filter-tabs button:hover {
  color: var(--ink);
}

.filter-tabs button.is-active {
  color: var(--white);
  background: var(--ink);
}

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

.resource-card {
  position: relative;
  min-height: 250px;
  padding: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s,
    border-color 0.25s;
}

.resource-card::after {
  position: absolute;
  top: -0.38em;
  right: -0.08em;
  color: rgba(16, 35, 63, 0.035);
  content: attr(data-watermark);
  font-family: var(--serif);
  font-size: 90px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.resource-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.resource-card.is-filtered {
  display: none;
}

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

.subject-monogram {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  color: var(--ink);
  border-radius: 12px 12px 12px 4px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.subject-monogram:is(:not(:has(*))) {
  padding-bottom: 1px;
}

.coral-card .subject-monogram {
  color: var(--coral);
  background: var(--coral-pale);
}

.teal-card .subject-monogram {
  color: var(--teal);
  background: var(--teal-pale);
  font-family: "Avenir Next", var(--sans);
  font-size: 11px;
}

.yellow-card .subject-monogram {
  color: #846100;
  background: var(--yellow-pale);
  font-family: "Avenir Next", var(--sans);
  font-size: 20px;
}

.green-card .subject-monogram {
  color: var(--green);
  background: var(--green-pale);
}

.blue-card .subject-monogram {
  color: var(--blue);
  background: var(--blue-pale);
}

.purple-card .subject-monogram {
  color: var(--purple);
  background: var(--purple-pale);
}

.lime-card .subject-monogram {
  color: #367f49;
  background: #e6f5e1;
}

.orange-card .subject-monogram {
  color: #b65a1e;
  background: #fceddf;
}

.subject-type {
  padding: 4px 7px;
  color: var(--muted);
  background: rgba(16, 35, 63, 0.045);
  border-radius: 99px;
  font-size: 7px;
  font-weight: 650;
}

.resource-card h3 {
  margin-top: 25px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.resource-card > p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.resource-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 13px;
  color: var(--muted);
  border-top: 1px solid rgba(16, 35, 63, 0.07);
  font-size: 7px;
}

.resource-meta span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}

.resource-meta svg {
  width: 11px;
  height: 11px;
  color: var(--teal);
}

.resource-card > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid rgba(16, 35, 63, 0.07);
  font-size: 9px;
  font-weight: 650;
}

.resource-card > a svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
  transition: transform 0.2s;
}

.resource-card > a:hover svg {
  transform: translateY(2px);
}

.resource-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 9px;
}

.resource-note svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
}

/* Process */
.process-section {
  padding-top: 95px;
  padding-bottom: 95px;
}

.process-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 100%, rgba(237, 100, 73, 0.28), transparent 18rem),
    radial-gradient(circle at 100% 0, rgba(21, 160, 140, 0.22), transparent 25rem),
    var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 75px rgba(16, 35, 63, 0.2);
}

.process-intro {
  padding: 52px 55px;
}

.process-intro h2 {
  max-width: 520px;
  font-size: clamp(38px, 4vw, 52px);
}

.process-intro p {
  max-width: 420px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.process-intro .button {
  margin-top: 28px;
}

.process-steps {
  display: grid;
  align-content: center;
  padding: 25px 44px 25px 10px;
}

.process-steps article {
  position: relative;
  display: grid;
  grid-template-columns: 34px 42px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 123px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.process-steps article:last-child {
  border-bottom: 0;
}

.process-steps article::after {
  position: absolute;
  bottom: -6px;
  left: 15px;
  z-index: 1;
  width: 11px;
  height: 11px;
  content: "";
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.process-steps article:last-child::after {
  display: none;
}

.step-number {
  align-self: start;
  padding-top: 26px;
  color: rgba(255, 255, 255, 0.35);
  font-family: "Avenir Next", var(--sans);
  font-size: 9px;
  font-weight: 650;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 13px;
  transform: rotate(-2deg);
}

.process-steps article:nth-child(2) .step-icon {
  color: var(--white);
  background: var(--teal);
  transform: rotate(2deg);
}

.process-steps article:nth-child(3) .step-icon {
  color: var(--white);
  background: var(--coral);
}

.step-icon svg {
  width: 19px;
  height: 19px;
}

.process-steps h3 {
  font-family: var(--serif);
  font-size: 21px;
}

.process-steps p {
  max-width: 360px;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
}

/* Closing */
.closing-section {
  padding-top: 0;
  padding-bottom: 94px;
}

.closing-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  min-height: 350px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(241, 191, 70, 0.19), transparent 46%),
    #e7efe8;
  border: 1px solid rgba(8, 126, 112, 0.12);
  border-radius: var(--radius-lg);
}

.closing-art {
  position: relative;
  min-height: 350px;
}

.closing-ring {
  position: absolute;
  border: 1px solid rgba(16, 35, 63, 0.14);
  border-radius: 50%;
}

.ring-one {
  top: 32px;
  left: 36px;
  width: 268px;
  height: 268px;
}

.ring-two {
  top: 86px;
  left: 90px;
  width: 160px;
  height: 160px;
  border-style: dashed;
}

.closing-word {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--ink);
  font-family: "Avenir Next", var(--sans);
  font-size: 82px;
  font-weight: 800;
  letter-spacing: -0.08em;
  transform: translate(-50%, -50%) rotate(-6deg);
}

.closing-star {
  position: absolute;
  top: 60px;
  right: 23px;
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  color: var(--ink);
  background: var(--coral);
  border-radius: 50%;
  transform: rotate(8deg);
}

.closing-star svg {
  width: 27px;
  height: 27px;
}

.closing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 55px 58px 55px 24px;
}

.closing-copy h2 {
  font-size: clamp(38px, 4vw, 52px);
}

.closing-copy p {
  max-width: 550px;
  margin-top: 15px;
  color: var(--ink-soft);
  font-size: 13px;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
}

/* Footer */
.site-footer {
  padding: 64px 0 92px;
  color: rgba(255, 255, 255, 0.62);
  background: var(--ink-deep);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 90px;
  padding-bottom: 48px;
}

.brand-footer {
  color: var(--white);
}

.footer-brand p {
  max-width: 340px;
  margin-top: 16px;
  font-size: 11px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 19px;
}

.footer-badges span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  font-size: 8px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-links strong {
  margin-bottom: 5px;
  color: var(--white);
  font-size: 10px;
  font-weight: 650;
}

.footer-links a,
.footer-links button {
  padding: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  text-align: left;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 8px;
}

/* Mobile bottom bar */
.mobile-bottom-nav {
  display: none;
}

/* Modals */
.modal {
  width: min(calc(100% - 32px), 590px);
  max-height: min(88vh, 850px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.modal::backdrop {
  background: rgba(9, 26, 48, 0.58);
  backdrop-filter: blur(8px);
}

.modal[open] {
  animation: modalIn 0.3s var(--ease);
}

.modal-shell {
  position: relative;
  max-height: min(88vh, 850px);
  padding: 34px;
  overflow-y: auto;
  background: var(--white);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-soft);
  background: rgba(16, 35, 63, 0.05);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s;
}

.modal-close:hover {
  color: var(--ink);
  background: rgba(16, 35, 63, 0.1);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.modal-kicker span {
  width: 6px;
  height: 6px;
  background: var(--coral);
  border-radius: 50%;
}

.modal h2 {
  padding-right: 35px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.modal-lead {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

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

.auth-modal .modal-shell {
  padding: 38px 42px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 23px;
  padding: 4px;
  background: var(--paper);
  border-radius: 12px;
}

.auth-tabs button {
  padding: 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.auth-tabs button.is-active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 3px 9px rgba(16, 35, 63, 0.08);
}

.auth-modal form {
  display: grid;
  gap: 12px;
  margin-top: 19px;
}

.form-field {
  display: grid;
  gap: 5px;
}

.form-field > span {
  font-size: 10px;
  font-weight: 650;
}

.form-field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  color: var(--ink);
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  font-size: 12px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-field input:focus,
.search-field:focus-within {
  border-color: rgba(8, 126, 112, 0.55);
  box-shadow: 0 0 0 3px rgba(8, 126, 112, 0.09);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.form-consent input {
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.form-note {
  color: var(--muted);
  text-align: center;
  font-size: 8px;
  line-height: 1.5;
}

.auth-modal[data-auth="login"] .register-only {
  display: none;
}

.auth-modal::before {
  display: none;
}

.auth-modal {
  isolation: isolate;
}

.auth-modal[open] {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  background: var(--white);
}

.auth-modal .modal-shell {
  grid-column: 1;
  grid-row: 1;
}

.auth-aside {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 40px 28px 30px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 100%, rgba(21, 160, 140, 0.35), transparent 16rem),
    var(--ink);
}

.aside-quote {
  height: 24px;
  color: var(--yellow);
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
}

.auth-aside blockquote {
  margin-top: -20px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.6;
}

.aside-visual {
  position: relative;
  height: 210px;
  margin-top: 30px;
}

.aside-card {
  position: absolute;
  width: 200px;
  height: 145px;
  border-radius: 18px;
}

.card-back {
  top: 24px;
  left: 34px;
  background: var(--coral);
  transform: rotate(8deg);
}

.card-front {
  top: 0;
  left: 8px;
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  transform: rotate(-3deg);
}

.card-front > span {
  color: var(--muted);
  font-size: 8px;
}

.card-front strong {
  display: block;
  margin-top: 4px;
  font-family: "Avenir Next", var(--sans);
  font-size: 38px;
  line-height: 1;
}

.card-front strong span {
  color: #a6afbb;
  font-size: 19px;
}

.aside-progress {
  height: 5px;
  margin: 12px 0 9px;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 99px;
}

.aside-progress i {
  display: block;
  width: 60%;
  height: 100%;
  background: var(--teal);
}

.card-front small {
  color: var(--muted);
  font-size: 7px;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 17px;
  color: var(--coral);
  background: var(--coral-pale);
  border-radius: 14px;
}

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

.modal-icon svg {
  width: 22px;
  height: 22px;
}

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
  padding: 27px 20px;
  text-align: center;
  background: #fbfaf7;
  border: 1.5px dashed rgba(16, 35, 63, 0.22);
  border-radius: 15px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.upload-zone:hover,
.upload-zone.is-dragging {
  background: var(--teal-pale);
  border-color: var(--teal);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  margin-bottom: 9px;
  color: var(--teal);
  background: var(--teal-pale);
  border-radius: 11px;
}

.upload-icon svg {
  width: 18px;
  height: 18px;
}

.upload-zone b {
  font-size: 11px;
}

.upload-zone small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.import-divider {
  position: relative;
  margin: 18px 0;
  text-align: center;
}

.import-divider::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--line);
}

.import-divider span {
  position: relative;
  padding: 0 10px;
  color: var(--muted);
  background: var(--white);
  font-size: 8px;
}

.import-progress {
  margin: 18px 0 10px;
  padding: 13px;
  background: var(--paper);
  border-radius: 11px;
}

.import-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 9px;
}

.import-progress b {
  color: var(--teal);
  font-family: "Avenir Next", var(--sans);
}

.reminder-options {
  display: grid;
  gap: 8px;
  margin-top: 23px;
}

.reminder-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 11px;
  padding: 12px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.reminder-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.reminder-icon svg {
  width: 17px;
  height: 17px;
}

.reminder-icon.coral {
  color: var(--coral);
  background: var(--coral-pale);
}

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

.reminder-icon.yellow {
  color: #946700;
  background: var(--yellow-pale);
}

.reminder-row > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.reminder-row b {
  font-size: 10px;
}

.reminder-row small {
  color: var(--muted);
  font-size: 8px;
}

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

.switch {
  position: relative;
  width: 34px;
  height: 20px;
  background: #cfd4db;
  border-radius: 99px;
  transition: background 0.2s;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  content: "";
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(16, 35, 63, 0.2);
  transition: transform 0.2s var(--ease);
}

.switch-input:checked + .switch {
  background: var(--teal);
}

.switch-input:checked + .switch::after {
  transform: translateX(14px);
}

.switch-input:focus-visible + .switch {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.reminder-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;
  padding: 11px 12px;
  background: var(--paper);
  border-radius: 11px;
}

.reminder-time > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 600;
}

.reminder-time svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
}

.reminder-time select {
  padding: 6px 28px 6px 9px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  font-size: 9px;
}

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

.search-title {
  margin-bottom: 20px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 14px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.search-field svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.search-field input {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
}

.search-suggestions > span {
  margin-right: 2px;
  color: var(--muted);
  font-size: 8px;
}

.search-suggestions a {
  padding: 5px 8px;
  background: var(--paper);
  border-radius: 99px;
  font-size: 8px;
}

.search-suggestions a:hover {
  background: var(--teal-pale);
}

.search-results {
  display: grid;
  gap: 5px;
  margin-top: 15px;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 9px;
}

.search-result:hover {
  background: var(--paper);
}

.search-result span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--teal);
  background: var(--teal-pale);
  border-radius: 8px;
}

.search-result svg {
  width: 14px;
  height: 14px;
}

.search-result b {
  font-size: 10px;
}

.search-result small {
  margin-left: auto;
  color: var(--muted);
  font-size: 8px;
}

.search-empty {
  padding: 20px 0;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 100;
  max-width: min(calc(100% - 32px), 460px);
  padding: 11px 17px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 35px rgba(9, 26, 48, 0.28);
  font-size: 10px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition:
    opacity 0.25s,
    transform 0.25s var(--ease);
}

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

/* Animations */
@keyframes livePulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.8);
  }
  50% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.98);
  }
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .container {
    width: min(calc(100% - 48px), var(--container));
  }

  .hero-grid {
    grid-template-columns: minmax(380px, 0.85fr) minmax(470px, 1.15fr);
    gap: 45px;
  }

  .desktop-nav {
    gap: 0;
  }

  .desktop-nav a,
  .nav-more {
    padding-inline: 10px;
  }

  .hero h1 {
    font-size: clamp(50px, 5.1vw, 64px);
  }

  .preview-window {
    left: 18px;
    width: calc(100% - 20px);
  }

  .today-grid {
    grid-template-columns: minmax(0, 1.38fr) minmax(310px, 0.72fr);
  }

  .quick-card {
    padding-inline: 14px;
  }

  .source-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .official-sources {
    grid-template-columns: 205px minmax(0, 1fr);
  }

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

@media (max-width: 1040px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: inline-grid;
  }

  .nav-inner {
    min-height: 70px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    font-size: clamp(54px, 8vw, 76px);
  }

  .hero-visual {
    width: min(100%, 690px);
    min-height: 565px;
    margin: 0 auto;
  }

  .quick-rail {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -44px;
  }

  .quick-card:nth-child(2) {
    border-right: 0;
    border-radius: 20px 20px 0 0;
  }

  .quick-card:nth-child(1) {
    border-radius: 20px 0 0 0;
  }

  .quick-card:nth-child(2) {
    border-radius: 0 20px 0 0;
  }

  .quick-card:nth-child(3) {
    border-top: 1px solid var(--line);
    border-radius: 0 0 0 20px;
  }

  .quick-card:nth-child(4) {
    border-top: 1px solid var(--line);
    border-radius: 0 0 20px 0;
  }

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

  .today-side {
    grid-template-columns: 1.15fr 0.85fr;
  }

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

  .countdown-card {
    min-height: 405px;
  }

  .official-sources {
    grid-template-columns: 1fr;
  }

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

  .process-shell {
    grid-template-columns: 1fr;
  }

  .process-steps {
    padding: 5px 50px 35px;
  }

  .process-steps article {
    min-height: 113px;
  }

  .closing-card {
    grid-template-columns: 0.7fr 1.3fr;
  }

  .footer-main {
    gap: 50px;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .utility-inner {
    justify-content: center;
  }

  .utility-brand,
  .utility-links {
    display: none;
  }

  .deadline-pill {
    padding-inline: 0;
  }

  .nav-actions > .search-trigger,
  .nav-actions > .login-button {
    display: none;
  }

  .register-button {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .hero {
    padding: 50px 0 95px;
  }

  .hero::after {
    display: none;
  }

  .hero h1 {
    font-size: clamp(43px, 12vw, 66px);
    line-height: 1.13;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-features {
    gap: 10px 14px;
  }

  .hero-proof {
    margin-top: 30px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .preview-window {
    position: relative;
    top: 50px;
    left: 8px;
    width: calc(100% - 10px);
  }

  .preview-content {
    padding: 20px 17px;
  }

  .dse-float-card {
    right: 0;
    width: 125px;
    padding: 13px;
  }

  .wechat-float-card {
    bottom: -3px;
    left: 0;
    min-width: 225px;
  }

  .scribble-note {
    display: none;
  }

  .quick-rail {
    margin-top: -36px;
  }

  .quick-card {
    min-height: 103px;
    padding: 16px;
  }

  .quick-icon {
    width: 38px;
    height: 38px;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
  }

  .section-heading h2,
  .process-intro h2,
  .closing-copy h2 {
    font-size: clamp(33px, 9vw, 44px);
  }

  .today-section {
    padding-top: 85px;
  }

  .schedule-panel {
    padding: 20px 16px 15px;
  }

  .week-tabs {
    gap: 1px;
  }

  .week-tabs button {
    padding-inline: 0;
  }

  .schedule-item {
    grid-template-columns: 46px 3px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 10px;
  }

  .schedule-meta {
    grid-column: 3;
    justify-content: flex-start;
    margin-top: -3px;
  }

  .schedule-list {
    min-height: 410px;
  }

  .schedule-info b {
    font-size: 12px;
  }

  .schedule-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .today-side {
    grid-template-columns: 1fr;
  }

  .dse-section {
    padding-top: 76px;
  }

  .dse-heading .text-link {
    display: none;
  }

  .countdown-card {
    padding: 23px 20px;
  }

  .countdown-number strong {
    font-size: 88px;
  }

  .countdown-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .timeline-card {
    padding: 22px 18px 11px;
  }

  .milestone {
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 10px;
  }

  .milestone-tag {
    display: none;
  }

  .milestone-copy small {
    white-space: normal;
  }

  .official-sources {
    padding: 18px;
  }

  .source-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .source-grid a {
    grid-template-columns: 35px minmax(0, 1fr);
  }

  .source-grid a > svg {
    display: none;
  }

  .subject-heading {
    align-items: flex-start;
  }

  .filter-tabs {
    width: 100%;
  }

  .filter-tabs button {
    flex: 1;
  }

  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .resource-card {
    min-height: 242px;
    padding: 15px;
  }

  .resource-card h3 {
    margin-top: 20px;
    font-size: 19px;
  }

  .resource-grid .resource-card:nth-child(1) {
    display: block;
  }

  .process-shell {
    border-radius: 24px;
  }

  .process-intro {
    padding: 36px 26px;
  }

  .process-steps {
    padding: 0 24px 28px;
  }

  .process-steps article {
    grid-template-columns: 27px 38px minmax(0, 1fr);
    gap: 11px;
  }

  .step-icon {
    width: 38px;
    height: 38px;
  }

  .process-steps h3 {
    font-size: 19px;
  }

  .closing-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .closing-art {
    min-height: 215px;
  }

  .ring-one {
    top: 3px;
    left: 50%;
    width: 210px;
    height: 210px;
    transform: translateX(-50%);
  }

  .ring-two {
    top: 43px;
    left: 50%;
    width: 130px;
    height: 130px;
    transform: translateX(-50%);
  }

  .closing-word {
    font-size: 64px;
  }

  .closing-star {
    top: 26px;
    right: 16%;
    width: 45px;
    height: 45px;
  }

  .closing-copy {
    padding: 5px 26px 37px;
  }

  .closing-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-bottom: 30px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .site-footer {
    padding-bottom: 100px;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 7px 4px;
    background: rgba(255, 254, 250, 0.94);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(16, 35, 63, 0.17);
    backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 5px 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 11px;
    font-size: 8px;
    cursor: pointer;
  }

  .mobile-bottom-nav a.is-active {
    color: var(--teal);
    background: var(--teal-pale);
  }

  .mobile-bottom-nav svg {
    width: 18px;
    height: 18px;
  }

  .auth-modal[open] {
    display: block;
    background: var(--white);
  }

  .auth-aside {
    display: none;
  }

  .auth-modal .modal-shell {
    padding: 32px 25px;
  }

  .modal-shell {
    padding: 28px 22px;
  }

  .modal h2 {
    font-size: 27px;
  }

  .toast {
    bottom: 91px;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 28px);
  }

  .utility-bar {
    font-size: 10px;
  }

  .deadline-pill {
    gap: 6px;
  }

  .nav-inner {
    gap: 10px;
  }

  .brand-name {
    font-size: 19px;
  }

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

  .nav-actions .notification-wrap {
    display: none;
  }

  .register-button svg {
    display: none;
  }

  .hero {
    padding-top: 41px;
  }

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

  .hero h1 {
    font-size: clamp(39px, 11.5vw, 51px);
    letter-spacing: -0.055em;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-visual {
    min-height: 450px;
  }

  .preview-window {
    top: 39px;
    left: 0;
    width: 100%;
  }

  .preview-bar {
    padding: 10px 13px;
  }

  .preview-content {
    padding: 15px 13px;
  }

  .preview-greeting h2 {
    font-size: 17px;
  }

  .mini-schedule-row {
    grid-template-columns: 39px 1fr;
  }

  .source-chip {
    display: none;
  }

  .preview-bottom {
    grid-template-columns: 1fr;
  }

  .preview-focus-card {
    display: none;
  }

  .dse-float-card {
    top: -13px;
    width: 111px;
  }

  .float-count strong {
    font-size: 30px;
  }

  .wechat-float-card {
    bottom: -24px;
    min-width: 204px;
    padding: 8px 10px;
  }

  .wechat-icon {
    width: 31px;
    height: 31px;
  }

  .quick-rail {
    grid-template-columns: 1fr;
  }

  .quick-card,
  .quick-card:nth-child(1),
  .quick-card:nth-child(2),
  .quick-card:nth-child(3),
  .quick-card:nth-child(4) {
    min-height: 83px;
    border-top: 1px solid var(--line);
    border-right: 0;
    border-radius: 0;
  }

  .quick-card:first-child {
    border-top: 0;
    border-radius: 20px 20px 0 0;
  }

  .quick-card:last-child {
    border-radius: 0 0 20px 20px;
  }

  .week-tabs button[aria-selected="true"] {
    box-shadow: none;
  }

  .week-tabs small {
    font-size: 7px;
  }

  .week-tabs span {
    font-size: 12px;
  }

  .schedule-panel {
    padding-inline: 13px;
  }

  .schedule-item {
    min-height: 67px;
  }

  .schedule-list {
    min-height: 385px;
  }

  .task-subject {
    display: none;
  }

  .countdown-card {
    min-height: 435px;
  }

  .countdown-number strong {
    font-size: 78px;
  }

  .exam-timeline {
    margin-top: 30px;
  }

  .milestone-copy small {
    font-size: 7px;
  }

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

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

  .resource-card {
    min-height: 225px;
  }

  .process-steps {
    padding-inline: 18px;
  }

  .process-steps article {
    grid-template-columns: 22px 36px minmax(0, 1fr);
  }

  .process-steps p {
    font-size: 10px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    padding-top: 48px;
  }
}

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