:root{--bg:#f7f4ef;--surface:#fff;--soft:#f0e9df;--ink:#29251f;--muted:#796e61;--border:#e8e0d7;--accent:#6c5442;--green:#2f7b61;--red:#b14a43;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color-scheme:light}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-size:15px}
.shell{max-width:640px;margin:auto;padding:calc(16px + env(safe-area-inset-top)) 18px calc(26px + env(safe-area-inset-bottom))}
.topbar{display:flex;align-items:center;gap:11px;margin-bottom:25px}.logo{width:41px;height:41px;border-radius:13px;background:var(--accent);color:white;font-weight:800;font-size:23px;display:grid;place-items:center}.brand{font-size:15px;font-weight:800;letter-spacing:.1em}.tagline{font-size:11px;color:var(--muted);padding-top:2px}.dot{margin-left:auto;width:9px;height:9px;background:var(--green);border-radius:50%}
.eyebrow{color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.17em}.welcome h1{font-size:32px;letter-spacing:-.035em;margin:6px 0}.welcome p{color:var(--muted);margin:0 0 21px;font-size:13px;line-height:1.5}
.switcher{display:grid;grid-template-columns:1fr 1fr;background:#e9e1d7;border-radius:16px;padding:4px;gap:4px}.switcher button{border:0;background:transparent;padding:13px;border-radius:12px;color:var(--muted);font-weight:650;font-size:13px}.switcher button.active{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px #37291e16}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:16px 0 22px}.stat{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:16px 8px;display:flex;flex-direction:column;align-items:center;gap:4px}.stat strong{font-size:25px;line-height:1;font-weight:750}.stat span{color:var(--muted);font-size:11px}
.tabs{display:flex;gap:7px;margin-bottom:11px;overflow-x:auto}.tab{background:transparent;border:0;border-radius:12px;padding:12px 13px;color:var(--muted);font-weight:650;font-size:13px}.tab.current{background:var(--accent);color:#fff}
.panel{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:17px;box-shadow:0 3px 12px #34271905}.panel h2{font-size:19px;margin:0 0 18px}label{display:block;font-size:12px;font-weight:650;color:var(--muted);margin:12px 0 7px}textarea,input{font:inherit;width:100%;border:1px solid #dcd3c8;border-radius:12px;background:#fff;color:var(--ink);padding:12px;outline:none}textarea:focus,input:focus{border-color:var(--accent)}textarea{resize:vertical;min-height:70px}.hint{font-size:11px;line-height:1.4;color:var(--muted);margin:8px 0 15px}.primary{background:var(--accent);border:0;color:white;border-radius:12px;width:100%;padding:13px;font-weight:750;font-size:14px;cursor:pointer}.primary:disabled{opacity:.6}
.list-title{margin-top:25px;display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:700}.list-title button{border:0;background:var(--soft);color:var(--accent);width:30px;height:30px;border-radius:9px;font-size:19px}.items{display:grid;gap:9px;margin-top:12px}.item{background:#faf8f5;border:1px solid var(--border);border-radius:13px;padding:12px;display:flex;gap:11px;align-items:flex-start}.item .body{flex:1;min-width:0}.item .title{overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.4}.item .meta{color:var(--muted);font-size:11px;margin-top:7px}.item button.action{width:31px;height:31px;border-radius:9px;flex:none;border:1px solid var(--border);background:white;cursor:pointer;font-size:14px}.item button.done{color:var(--green)}.item button.remove{color:var(--red)}.item.finished .title{text-decoration:line-through;opacity:.5}.item.finished{opacity:.65}.empty{padding:22px 10px;text-align:center;color:var(--muted);font-size:13px}.error{margin-top:14px;background:#fff1f0;color:#8a2720;padding:14px;border-radius:12px;font-size:13px;line-height:1.5}footer{font-size:11px;color:var(--muted);text-align:center;padding:25px 0 0}
button{cursor:pointer}
@media(prefers-color-scheme:dark){body.tg-dark{--bg:#1e1b19;--surface:#292521;--soft:#383129;--ink:#f3eee5;--muted:#b1a69b;--border:#453b34;--accent:#a98b70}body.tg-dark textarea,body.tg-dark input{background:#2a2520;color:#f3eee5;border-color:#57483d}body.tg-dark .switcher{background:#39312b}body.tg-dark .item{background:#302a25}body.tg-dark button.action{background:#302a25}}
