:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #233e33; background: #f4f6f0; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100%, 600px); margin: 0 auto; padding: max(40px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); }
header { margin: 16px 4px 30px; }
.eyebrow { font-size: 13px; font-weight: 650; color: #52725e; letter-spacing: .12em; }
h1 { font-size: clamp(26px, 7vw, 34px); letter-spacing: -.04em; margin: 10px 0; }
h1 span { margin-left: 10px; }
.intro, footer { color: #617267; font-size: 14px; }
.card { background: #fff; border: 1px solid #e0e7dc; border-radius: 24px; padding: 24px 20px; box-shadow: 0 10px 35px #233e3306; }
label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 10px; }
.input-row { display: flex; gap: 8px; }
input { min-width: 0; flex: 1; padding: 13px 12px; border: 1px solid #c6d1c6; border-radius: 12px; font: inherit; font-size: 16px; background: #fafbf8; color: inherit; }
button { font: inherit; cursor: pointer; min-height: 48px; min-width: 48px; border-radius: 12px; }
.add { border: 0; background: #28654e; color: white; font-weight: 650; padding: 0 18px; }
button:hover { filter: brightness(.94); }
:focus-visible { outline: 3px solid #d29a33; outline-offset: 3px; }
#summary { margin: 24px 0 8px; font-size: 13px; color: #617267; }
ul { list-style: none; padding: 0; margin: 0; }
li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #edf0e9; }
.task-label { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; min-height: 48px; margin: 0; font-weight: 400; cursor: pointer; }
.task-label input { flex: none; width: 24px; height: 24px; accent-color: #28654e; margin: 0; }
.task-label span { overflow-wrap: anywhere; line-height: 1.6; }
li.done .task-label span { text-decoration: line-through; color: #788078; }
.delete { border: 0; background: #f8f3f0; color: #965043; font-size: 13px; padding: 0 10px; flex-shrink: 0; }
#empty { text-align: center; padding: 30px 0; color: #617267; }
#empty[hidden] { display: none; }
#empty > span { font-size: 36px; color: #bf943d; }
#empty p { font-size: 15px; margin: 12px 0 8px; }
#empty small { font-size: 12px; }
#message { font-size: 13px; color: #965043; margin: 12px 0 0; }
#message:empty { display: none; }
footer { text-align: center; font-size: 12px; margin-top: 24px; }
@media (max-width: 360px) { main { padding-inline: 12px; } .card { padding: 20px 14px; } .add { padding-inline: 12px; } }
