:root {
  color-scheme: light;
  --emerald: #007a64;
  --emerald-soft: #e8f4f0;
  --ink: #191f28;
  --muted: #8b95a1;
  --line: #edf0ef;
  --canvas: #f4f6f5;
  --surface: #ffffff;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--canvas); color: var(--ink); -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
.app-shell {
  width: 100%; min-height: 100dvh; max-width: 480px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 24px) 18px calc(env(safe-area-inset-bottom) + 36px);
}
.calendar-header { padding: 4px 2px 20px; touch-action: pan-y; }
.calendar-header h1 { margin: 0 0 18px; font-size: 21px; line-height: 1.35; letter-spacing: -.4px; font-weight: 700; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.day-button {
  min-width: 0; height: 68px; padding: 7px 2px; border: 0; border-radius: 22px;
  background: transparent; color: var(--ink); display: grid; place-items: center; align-content: center; gap: 6px;
}
.day-button .weekday { color: var(--muted); font-size: 11px; font-weight: 500; }
.day-button .day-number { font-size: 16px; line-height: 1; font-weight: 650; }
.day-button.is-sunday:not(.is-selected) .weekday,
.day-button.is-sunday:not(.is-selected) .day-number { color: #d45b55; }
.day-button.is-selected { background: var(--emerald); color: #fff; }
.day-button.is-selected .weekday { color: rgb(255 255 255 / 76%); }
.day-button:focus-visible { outline: 3px solid rgb(0 122 100 / 22%); outline-offset: 2px; }
.task-section {
  margin-bottom: 14px; padding: 18px 17px; border-radius: 20px; background: var(--surface);
  box-shadow: 0 1px 0 rgb(16 36 31 / 4%);
}
.section-heading { display: flex; align-items: center; gap: 7px; min-height: 24px; margin-bottom: 10px; }
.section-heading h2 { margin: 0; font-size: 17px; line-height: 1.35; letter-spacing: -.25px; font-weight: 700; }
.section-count { color: var(--emerald); font-size: 13px; font-weight: 700; }
.quick-add { height: 48px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.quick-add > span { color: var(--emerald); font-size: 22px; line-height: 1; font-weight: 400; }
.quick-add input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.quick-add input::placeholder { color: #a7afb7; }
.task-list { display: grid; }
.task-row { min-height: 50px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: 0; }
.task-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.task-check { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border: 1.7px solid #b7c0c7; border-radius: 50%; color: transparent; }
.task-row input:checked + .task-check { border-color: var(--emerald); background: var(--emerald); color: #f3e8d3; }
.task-check::after { content: "✓"; transform: translateY(-1px); font-size: 14px; font-weight: 800; }
.task-title { min-width: 0; flex: 1; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
.task-row input:checked ~ .task-title { color: var(--muted); text-decoration: line-through; }
.empty-message { margin: 2px 0 0; padding: 14px 0 4px; color: var(--muted); font-size: 14px; }
@media (min-width: 481px) {
  body { background: #e9eeec; }
  .app-shell { background: var(--canvas); }
}
@media (prefers-reduced-motion: no-preference) {
  .day-button, .task-check { transition: background-color .16s ease, color .16s ease, border-color .16s ease; }
}
