:root {
  --checklist-brand: #2547c8;
  --ink: #27304a;
  --muted: #717b92;
  --paper: #ffffff;
  --line: #dde3f0;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #f3f5fb; }
body { min-width: 320px; min-height: 100dvh; margin: 0; color: var(--ink); background: linear-gradient(145deg, #f4f6fc 0%, #ffffff 44%, #f3f7ff 100%); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.checklist-shell { width: min(940px, 100%); min-height: 100dvh; margin: 0 auto; padding: 20px 20px 40px; }
.checklist-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.return-link { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; color: #52607e; background: rgba(255, 255, 255, .78); font-size: 13px; font-weight: 750; transition: color .18s, border-color .18s, transform .18s; }
.return-link:hover { border-color: #bbc9ee; color: var(--checklist-brand); }
.return-link:active { transform: scale(.98); }
.checklist-brand { display: inline-flex; align-items: center; gap: 7px; color: var(--checklist-brand); font-size: 14px; }
.checklist-brand span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: #fff; background: var(--checklist-brand); font-size: 16px; font-family: "Kaiti SC", "STKaiti", serif; font-weight: 800; }

.checklist-intro { margin: 38px auto 22px; text-align: center; }
.checklist-intro__eyebrow { margin: 0 0 8px; color: var(--checklist-brand); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.checklist-intro h1 { margin: 0; font-size: clamp(27px, 5vw, 40px); letter-spacing: -.035em; line-height: 1.18; }
.checklist-intro > p:last-child { max-width: 440px; margin: 12px auto 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.checklist-unavailable { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; max-width: 650px; margin: 62px auto; padding: 20px; border: 1px solid #dce4f4; border-radius: 17px; background: rgba(255, 255, 255, .86); box-shadow: 0 10px 24px rgba(44, 62, 129, .07); }
.checklist-unavailable > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--checklist-brand); background: #eef2ff; font-size: 20px; }
.checklist-unavailable p { margin: 0 0 3px; color: var(--checklist-brand); font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.checklist-unavailable h1 { margin: 0; color: #29334d; font-size: 18px; }
.checklist-unavailable small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.checklist-unavailable a { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; border: 1px solid #d9e1f3; border-radius: 9px; color: var(--checklist-brand); background: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.checklist-unavailable a:hover { border-color: #b7c6ed; background: #f8faff; }

.progress-note { max-width: 650px; margin: 0 auto 26px; padding: 15px 17px; border: 1px solid #dae3f8; border-radius: 16px; background: rgba(255, 255, 255, .82); box-shadow: 0 7px 20px rgba(44, 62, 129, .06); }
.progress-note__topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.progress-note__topline > div { display: inline-flex; align-items: baseline; gap: 8px; }
.progress-note__topline span { color: #79839b; font-size: 12px; font-weight: 700; }
.progress-note__topline strong { color: var(--checklist-brand); font-size: 18px; letter-spacing: -.02em; }
.reset-button { min-height: 30px; padding: 0 9px; border: 0; border-radius: 8px; color: #77829a; background: #f0f3f8; font-size: 11px; font-weight: 750; }
.reset-button:hover { color: #445170; background: #e9edf5; }
.progress-track { height: 8px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: #e8edf7; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--checklist-brand); transition: width .25s ease; }
.progress-note > p { margin: 8px 0 0; color: #7a849b; font-size: 12px; }

.sticky-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.checklist-empty { grid-column: 1 / -1; margin: 0; padding: 25px; border: 1px dashed #ccd6e8; border-radius: 14px; color: #768199; background: rgba(255, 255, 255, .72); font-size: 13px; text-align: center; }
.sticky-note { position: relative; min-height: 246px; padding: 21px 20px 18px; overflow: hidden; border: 1px solid rgba(73, 84, 113, .12); border-radius: 6px 6px 14px 6px; box-shadow: 0 12px 22px rgba(51, 61, 89, .11); }
.sticky-note::before { position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 0 22px 22px; border-color: transparent transparent rgba(255, 255, 255, .62) transparent; content: ""; }
.sticky-note--yellow { background: #fff6ba; }
.sticky-note--blue { background: #dcecff; }
.sticky-note--peach { background: #ffe4ca; }
.sticky-note--green { background: #d9f4e7; }
.sticky-note__pin { position: absolute; top: 10px; left: 50%; width: 10px; height: 10px; border: 1px solid rgba(48, 60, 89, .18); border-radius: 50%; background: #f8faff; box-shadow: 0 1px 2px rgba(48, 60, 89, .18); transform: translateX(-50%); }
.sticky-note__header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 9px; padding-top: 8px; }
.sticky-note__icon { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .55); font-size: 17px; }
.sticky-note h2 { margin: 0; font-size: 17px; line-height: 1.25; }
.sticky-note__header p { margin: 3px 0 0; color: rgba(49, 60, 83, .67); font-size: 11px; line-height: 1.4; }
.sticky-note__count { min-width: 32px; padding: 4px 5px; border-radius: 7px; color: rgba(39, 49, 74, .75); background: rgba(255, 255, 255, .45); font-size: 11px; font-weight: 800; text-align: center; }
.sticky-note__items { display: grid; gap: 8px; margin-top: 18px; }
.check-row { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 28px; color: #34405b; cursor: pointer; }
.check-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check-row__box { display: grid; width: 19px; height: 19px; place-items: center; border: 1.5px solid rgba(53, 67, 97, .55); border-radius: 5px; color: transparent; background: rgba(255, 255, 255, .45); font-size: 13px; font-weight: 900; transition: color .15s, background .15s, border-color .15s, transform .15s; }
.check-row__text { font-size: 13px; line-height: 1.4; transition: color .15s, text-decoration-color .15s; }
.check-row input:checked + .check-row__box { border-color: var(--checklist-brand); color: #fff; background: var(--checklist-brand); transform: scale(.96); }
.check-row input:checked ~ .check-row__text { color: rgba(54, 65, 89, .58); text-decoration: line-through; text-decoration-color: rgba(54, 65, 89, .45); }
.check-row input:focus-visible + .check-row__box { outline: 3px solid rgba(50, 93, 207, .25); outline-offset: 2px; }

.checklist-footer { display: grid; justify-items: center; gap: 11px; margin: 28px auto 0; color: #8992a5; font-size: 12px; text-align: center; }
.checklist-footer p { max-width: 510px; margin: 0; line-height: 1.6; }
.ask-link { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 0 13px; border: 1px solid #d5def5; border-radius: 11px; color: var(--checklist-brand); background: #fff; font-size: 12px; font-weight: 800; }
.ask-link:hover { border-color: #aebfee; box-shadow: 0 5px 12px rgba(40, 68, 151, .08); }
.ask-link span { font-size: 16px; }

@media (max-width: 640px) {
  .checklist-shell { padding: 15px 14px 30px; }
  .checklist-topbar { min-height: 35px; }
  .return-link { min-height: 34px; padding: 0 10px; border-radius: 10px; font-size: 12px; }
  .checklist-brand { gap: 6px; font-size: 13px; }
  .checklist-brand span { width: 24px; height: 24px; border-radius: 7px; font-size: 14px; }
  .checklist-intro { margin: 28px auto 18px; }
  .checklist-intro__eyebrow { margin-bottom: 6px; font-size: 12px; }
  .checklist-intro h1 { font-size: 28px; }
  .checklist-intro > p:last-child { margin-top: 10px; font-size: 13px; }
  .checklist-unavailable { grid-template-columns: auto minmax(0, 1fr); gap: 11px; margin: 34px auto; padding: 16px; }
  .checklist-unavailable > span { width: 37px; height: 37px; border-radius: 11px; font-size: 18px; }
  .checklist-unavailable h1 { font-size: 16px; }
  .checklist-unavailable small { font-size: 11px; }
  .checklist-unavailable a { grid-column: 2; justify-self: start; margin-top: 1px; }
  .progress-note { margin-bottom: 18px; padding: 13px 14px; border-radius: 14px; }
  .sticky-grid { grid-template-columns: 1fr; gap: 14px; }
  .sticky-note { min-height: 0; padding: 18px 17px 16px; }
  .sticky-note__items { margin-top: 15px; }
  .check-row__text { font-size: 13px; }
}

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