:root {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #172033;
  background: #f4f6fa;
  --line: #e6eaf0;
  --muted: #626e82;
  --blue: #2859cb;
  --shadow: 0 10px 32px rgba(30, 42, 66, .055);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.65; }
button, input { font: inherit; touch-action: manipulation; }
button { cursor: pointer; }
h1, h2, p { margin: 0; overflow-wrap: anywhere; }
.page { width: min(100% - 40px, 760px); margin: 0 auto; padding: 52px 0 30px; }
.intro { margin: 0 0 26px; }
.eyebrow { color: var(--blue); font-size: 14px; font-weight: 700; }
h1 { margin: 8px 0 12px; font-size: clamp(28px, 5vw, 38px); line-height: 1.35; letter-spacing: -.5px; }
.intro > p, .muted { color: var(--muted); }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
h2 { font-size: 23px; line-height: 1.4; }
#summary { margin-top: 6px; font-size: 14px; min-height: 24px; }
.mark { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #edf3ff; color: var(--blue); }
.mark svg { display: block; width: 24px; height: 24px; }
.notice { margin-bottom: 24px; padding: 13px 15px; border: 1px solid #dce7ff; border-radius: 12px; background: #f4f7ff; color: #42516a; font-size: 14px; }
form > label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; color: #42516a; }
.add-row { display: flex; align-items: stretch; gap: 10px; }
input[type="text"] { min-width: 0; flex: 1; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd3df; border-radius: 10px; color: inherit; background: #fff; }
input::placeholder { color: #738095; }
button { min-width: 44px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #42516a; font-size: 14px; font-weight: 650; line-height: 22px; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
button.primary { border-color: transparent; background: linear-gradient(135deg, #2f67f6, #385bd5); box-shadow: 0 8px 18px rgba(47, 103, 246, .2); color: #fff; }
button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
button:not(:disabled):active { transform: translateY(1px); }
:focus-visible { outline: 2px solid #4776ed; outline-offset: 3px; }
.help { margin-top: 8px; font-size: 13px; color: var(--muted); }
.feedback { min-height: 25px; margin: 12px 0 4px; color: var(--blue); font-size: 14px; }
.task-list { margin: 0; padding: 0; list-style: none; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task label { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; flex: 1; cursor: pointer; }
.task input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.task span { overflow-wrap: anywhere; }
.task.done label > span { color: var(--muted); text-decoration: line-through; }
.remove { flex: none; color: #b72e45; border-color: #f7d5db; }
.empty { padding: 24px 8px; color: var(--muted); text-align: center; }
footer { margin-top: 22px; text-align: center; font-size: 13px; color: var(--muted); }
@media (hover: hover) {
  button.primary:not(:disabled):hover { box-shadow: 0 10px 22px rgba(47, 103, 246, .24); }
  .remove:hover { background: #fff0f2; }
}
@media (max-width: 520px) {
  .page { width: calc(100% - 28px); padding-top: 28px; }
  .card { padding: 20px 16px; border-radius: 16px; }
  .add-row { flex-direction: column; }
  .task { gap: 8px; }
  .task label { gap: 10px; }
  .remove { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
