
@import url('/assets/fonts.css');
*{box-sizing:border-box}html{height:100%;color-scheme:light}body{height:100dvh;overflow:hidden;margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:14px;-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit;touch-action:manipulation}button:disabled{cursor:default;opacity:.5}button,input,select,textarea{border-radius:var(--radius)}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--focus,var(--accent));outline-offset:3px}button:active:not(:disabled){filter:brightness(.92)}button:hover:not(:disabled){filter:brightness(.97)}a{color:inherit}svg{flex:none}button{border:0;background:none}h1,h2,h3,p{margin:0}.app{height:100dvh;min-height:0;overflow:hidden;max-width:480px;margin:auto;display:flex;flex-direction:column}.topbar{flex:none;display:flex;align-items:center;justify-content:space-between;padding:20px 23px 10px;gap:12px}.brand{min-height:44px;padding:0;display:flex;align-items:center;gap:8px;font-size:25px;font-weight:800}.brand svg{width:25px;height:25px}.top-actions{display:flex;align-items:center;gap:3px}.icon-button{width:44px;height:44px;padding:10px;display:grid;place-items:center;border-radius:50%}.lang-button{min-width:44px;min-height:44px;font-size:11px;font-weight:800;letter-spacing:.04em}.list-head{flex:none;padding:8px 23px 18px}.crumb{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:650;color:var(--muted);margin-bottom:16px}.crumb button{min-height:44px;margin:-10px 0 -10px -10px;padding:10px;display:flex;align-items:center;gap:4px}.crumb svg{width:14px;height:14px}.heading-line{display:flex;gap:18px;align-items:center;justify-content:space-between}.title{font-size:32px;line-height:1.12;letter-spacing:-1px;overflow-wrap:anywhere;max-width:275px}.subtitle{font-size:12px;color:var(--muted);margin-top:11px;line-height:1.5}.progress-mark{width:63px;height:63px;position:relative;display:grid;place-items:center;flex:none}.progress-mark svg{width:51px;height:51px;transform:rotate(-90deg)}.progress-mark .track{fill:none;stroke:var(--line);stroke-width:2.5}.progress-mark .value{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linecap:round}.progress-mark span{position:absolute;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}.list-content{padding:20px 21px 8px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}.tabs{display:flex;justify-content:space-between;gap:3px;margin:0 0 21px;min-width:0}.tabs button{font-size:11px;font-weight:750;min-height:44px;padding:9px 10px;flex:1;white-space:nowrap}.tabs button[aria-pressed=true]{background:var(--soft);color:var(--accent)}.tabs small{font:inherit;margin-left:4px;opacity:.7}.category{margin-bottom:20px}.category-title{font-size:11px;color:var(--muted);font-weight:700;display:flex;align-items:center;gap:7px;margin-bottom:8px;padding-left:3px}.category-title svg{width:15px;height:15px}.category-title .cat-count{margin-left:auto;font-size:10px;font-weight:500}.items{padding:0;margin:0;list-style:none}.item{display:flex;align-items:center;gap:4px;min-height:65px;padding:4px 7px}.item-toggle{display:flex;align-items:center;text-align:left;gap:12px;flex:1;min-width:0;padding:9px 3px;min-height:52px;border-radius:4px}.tick{width:24px;height:24px;border:1.5px solid #708472;border-radius:8px;display:grid;place-items:center;flex:none;color:var(--accent-ink)}.tick svg{width:17px;height:17px;visibility:hidden}.item.done .tick{background:var(--accent);border-color:var(--accent)}.item.done .tick svg{visibility:visible}.item-copy{display:block;min-width:0;flex:1}.item-name{font-size:15px;line-height:1.4;display:block;overflow-wrap:anywhere;font-weight:650}.item-qty{font-size:11px;color:var(--muted);display:block;margin-top:4px;line-height:1.4;overflow-wrap:anywhere}.item.done .item-name{text-decoration:line-through;color:var(--muted)}.edit-item{color:var(--muted);width:44px;min-height:44px;padding:12px;flex:none}.edit-item svg{width:16px;height:16px}.composer{position:relative;flex:none;margin-top:0;background:var(--surface);padding:15px 22px 16px;box-shadow:0 -9px 23px #243d2b08;z-index:2;border-top:1px solid var(--line)}.composer label{display:block;font-size:11px;font-weight:750;margin-bottom:8px}.quick-add{display:flex;align-items:center;gap:9px}.quick-add input{min-width:0;width:100%;height:48px;border:1px solid var(--line);background:var(--bg);color:var(--ink);padding:0 13px;font-size:14px}.quick-add input::placeholder{color:var(--muted);opacity:.9}.add-button{width:48px;height:48px;background:var(--accent);color:var(--accent-ink);flex:none;display:grid;place-items:center}.add-button svg{width:24px;height:24px}.composer-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px}.text-button{min-height:44px;font-size:10px;font-weight:650;color:var(--muted);padding:5px 0;display:flex;align-items:center;gap:5px}.text-button svg{width:13px;height:13px}.nav{flex:none;display:flex;gap:7px;padding:9px 18px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface)}.nav button{flex:1;min-height:52px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;font-size:9px;font-weight:700;border-radius:12px;color:var(--muted)}.nav button:focus-visible{outline-color:var(--accent)}.toast button:focus-visible{outline-color:var(--bg)}.nav svg{width:21px;height:21px}.nav button.active{background:var(--soft);color:var(--accent)}.page-main{padding:18px 23px;flex:1;min-height:0;overflow-y:auto}.page-title{font-size:31px;letter-spacing:-1px;margin:10px 0 10px}.page-copy{font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:25px}.list-card{width:100%;min-height:116px;text-align:left;background:var(--soft);border:1px solid var(--line);padding:19px;margin-bottom:13px;display:flex;align-items:center;gap:15px}.list-card .list-icon{width:44px;height:44px;background:var(--surface);display:grid;place-items:center;border-radius:13px;color:var(--accent);flex:none}.list-card strong{font-size:18px;display:block;letter-spacing:-.4px;line-height:1.3}.list-card small{color:var(--muted);font-size:11px;display:block;margin-top:9px}.list-card>svg{margin-left:auto;width:18px}.list-card>span:nth-child(2){min-width:0}.setting-row{padding:20px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:15px}.setting-row strong{font-size:14px;display:block}.setting-row small{font-size:11px;color:var(--muted);line-height:1.6;display:block;margin-top:5px}.setting-row select{min-height:44px;max-width:130px;border:1px solid var(--line);color:var(--ink);background:var(--surface);padding:8px}.secondary-button{border:1px solid var(--line);padding:12px 15px;min-height:44px;font-size:12px;font-weight:700;background:var(--surface)}.primary-button{padding:14px 18px;min-height:48px;font-size:13px;font-weight:750;background:var(--accent);color:var(--accent-ink);width:100%}.editor label,.import-panel label{font-size:12px;font-weight:700;display:block;margin-bottom:8px}.editor input,.editor select,.import-panel textarea{display:block;width:100%;border:1px solid var(--line);padding:13px;color:var(--ink);background:var(--surface);margin-bottom:19px;min-height:48px}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.editor-actions{display:flex;gap:12px;margin-top:16px}.editor-actions>*{flex:1}.error{font-size:12px;line-height:1.5;color:var(--ink);padding:12px;border:1px solid var(--line);margin-bottom:14px;background:var(--soft)}.error:empty{display:none}.toast{position:fixed;bottom:115px;left:50%;transform:translateX(-50%);width:calc(100% - 36px);max-width:430px;background:var(--ink);color:var(--bg);padding:12px 15px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;z-index:5;box-shadow:0 6px 20px #0002}.toast[hidden]{display:none}.toast span{font-size:11px;line-height:1.5}.toast button{min-height:44px;color:inherit;font-size:11px;font-weight:800;padding:9px;flex:none}.empty{padding:40px 5px;text-align:center}.empty>svg{width:38px;height:38px;color:var(--accent);margin-bottom:14px}.empty h2{font-size:21px;letter-spacing:-.6px}.empty p{font-size:12px;color:var(--muted);line-height:1.7;margin-top:10px}.import-panel{padding:20px 23px;flex:1;min-height:0;overflow-y:auto}.import-panel textarea{min-height:180px;line-height:1.7;resize:vertical}.import-preview{padding:0;list-style:none;margin:20px 0}.import-preview li{padding:12px 0;border-bottom:1px solid var(--line);font-size:13px;overflow-wrap:anywhere}.import-summary{font-size:12px;color:var(--muted);margin:12px 0}.storage-notice{margin:10px 20px;padding:10px;font-size:11px;line-height:1.5;background:var(--soft);border:1px solid var(--line)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:340px){.topbar{padding-inline:17px}.list-head{padding-inline:17px}.list-content{padding-inline:15px}.title{font-size:29px}.progress-mark{width:52px;height:52px}.tabs button{font-size:10px;padding-inline:6px}.composer{padding-inline:16px}.item-toggle{gap:9px}.editor-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

    :root{--bg:#f7f9f5;--surface:#fff;--ink:#182a24;--muted:#55685e;--accent:#265747;--accent-ink:#fff;--soft:#e4eee5;--line:#dce5dc;--radius:18px;--font:'Manrope',sans-serif}
    .list-head{background:#e9f0e8;border-radius:0 0 30px 30px;padding-bottom:24px}.title{font-weight:750;letter-spacing:-1.5px}.progress-mark{background:#d7e6d8;border-radius:50%}.item{background:var(--surface);border-radius:14px;margin-bottom:7px;border:1px solid #e8ede7}.item-name{font-weight:700}.category-title{letter-spacing:.04em}.tabs{background:#e8eee7;border-radius:12px;padding:4px}.tabs button[aria-pressed=true]{background:#fff;box-shadow:0 2px 6px #1e3e2810}.composer{border-radius:20px 20px 0 0}.brand{letter-spacing:-1.4px;font-weight:850}
  
html[data-theme="dark"]{--bg:#10151b;--surface:#192129;--ink:#f0f5f3;--muted:#a3b3af;--accent:#b9f5cc;--accent-ink:#112319;--soft:#233c30;--line:#303d45;--radius:14px;--font:'Manrope',sans-serif}html[data-theme="dark"] .brand{letter-spacing:-1.5px;font-weight:850;color:var(--accent)}html[data-theme="dark"] .list-head{padding-bottom:24px}html[data-theme="dark"] .title{font-size:33px;font-weight:750;letter-spacing:-1.2px}html[data-theme="dark"] .progress-mark{border-radius:15px;background:#1e3028}html[data-theme="dark"] .progress-mark .track{stroke:#3c5747}html[data-theme="dark"] .progress-mark .value{stroke:var(--accent)}html[data-theme="dark"] .tabs{gap:7px}html[data-theme="dark"] .tabs button{border:1px solid var(--line)}html[data-theme="dark"] .tabs button[aria-pressed=true]{border-color:var(--accent);background:var(--accent);color:var(--accent-ink)}html[data-theme="dark"] .category-title{font-size:11px;text-transform:uppercase;letter-spacing:.12em}html[data-theme="dark"] .item{border-bottom:1px solid var(--line);padding-inline:0}html[data-theme="dark"] .item-name{font-weight:650}html[data-theme="dark"] .composer{background:#192129;border-radius:18px 18px 0 0;box-shadow:0 -10px 28px #0002}html[data-theme="dark"] .composer input{background:#10151b}html[data-theme="dark"] .tick{background:#15201c;border-color:#577268}html[data-theme="dark"] .item.done{opacity:.65}html[data-theme="dark"] .nav{background:#192129}html[data-theme="dark"] .subtitle{color:#b7c6bf}
  
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] .list-head{background:transparent;border-radius:0}
html[data-theme="dark"] .tabs{background:transparent;padding:0;border-radius:0}
html[data-theme="dark"] .tabs button[aria-pressed="true"]{box-shadow:none}
html[data-theme="dark"] .item{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;margin-bottom:0;padding:4px 0}
html[data-theme="dark"] .category-title{letter-spacing:.12em}
body{background:var(--bg)}
.preview-banner{height:28px;display:flex;align-items:center;justify-content:center;background:var(--soft);border-bottom:1px solid var(--line);color:var(--muted);font-size:10px;font-family:var(--font);letter-spacing:.01em;flex:none}
.app{height:calc(100dvh - 28px)}
.theme-select{max-width:135px}
@media(min-width:600px){.app{border-inline:1px solid var(--line)}.preview-banner{font-size:11px}}
@media(max-height:850px){.list-head .crumb{display:none}html[data-theme] .list-head{padding-top:8px;padding-bottom:18px}html[data-theme] .progress-mark{width:54px;height:54px}.topbar{padding-top:14px}.list-content{padding-top:16px}.tabs{margin-bottom:16px}}
