:root{color-scheme:light;--bg:#f2f2f7;--card:#fff;--text:#202128;--muted:#777981;--line:#e4e5e9;--blue:#3478f6;--green:#249967;--red:#cf3c48;--soft:#e6eeff;--shadow:0 6px 24px #19274d08;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}html[data-theme=dark]{color-scheme:dark;--bg:#111216;--card:#1d1e24;--text:#f2f2f5;--muted:#a3a3ae;--line:#34353d;--blue:#79a6ff;--green:#62c89a;--red:#ff818a;--soft:#24324d;--shadow:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:16px;line-height:1.45}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit;min-height:44px;border:0;border-radius:12px;background:var(--soft);padding:10px 15px;font-weight:600;transition:transform .15s,opacity .15s}button:active{transform:scale(.97)}button:disabled{opacity:.45;cursor:default}button.primary{background:#3478f6;color:white}button.ghost{background:transparent;color:var(--blue)}button.danger{color:var(--red);background:transparent}a{color:var(--blue);overflow-wrap:anywhere}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--blue);outline-offset:2px}main{max-width:780px;margin:auto;padding:calc(20px + env(safe-area-inset-top)) 18px calc(105px + env(safe-area-inset-bottom))}h1{font-size:34px;letter-spacing:-1.3px;line-height:1.13;margin:5px 0 15px}h2{font-size:21px;letter-spacing:-.4px;margin:20px 0 10px}h3{font-size:17px;margin:0}p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}small,.muted{color:var(--muted);font-size:13px}.eyebrow{font-size:13px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.8px}.header,.row,.actions{display:flex;align-items:center;gap:12px}.header{justify-content:space-between;margin-bottom:12px}.row>*:first-child{min-width:0}.grow{flex:1;min-width:0}.actions{flex-wrap:wrap;gap:7px}.card{background:var(--card);border-radius:20px;padding:17px;margin:10px 0;box-shadow:var(--shadow);overflow:hidden}.tile{background:var(--card);padding:17px;border-radius:20px;min-height:110px;text-align:left;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between}.tile strong{font-size:30px;letter-spacing:-1px}.tile span{font-size:14px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.icon{width:24px;height:24px;flex-shrink:0;vertical-align:middle}.circle{border-radius:50%;width:46px;height:46px;display:grid;place-items:center;padding:0;position:relative;background:var(--card)}.dot{position:absolute;width:9px;height:9px;background:var(--red);border-radius:50%;top:8px;right:9px}.avatar{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;color:white;font-weight:700;font-size:13px;flex-shrink:0}.avatars{display:flex;gap:6px;align-items:center;margin:14px 0}.item{padding:15px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.item:first-child{padding-top:0}.item:last-child{padding-bottom:0;border-bottom:0}.item-title{font-size:16px;font-weight:650}.done{text-decoration:line-through;color:var(--muted)}.chip{display:inline-block;font-size:12px;padding:4px 8px;border-radius:9px;background:var(--soft);color:var(--blue);margin:3px 4px 0 0}.subnav{display:flex;gap:7px;overflow-x:auto;padding:3px 0 10px}.subnav button{white-space:nowrap;min-height:38px;font-size:14px;background:var(--card)}.subnav button.active{background:#3478f6;color:white}nav{position:fixed;bottom:0;left:0;right:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));display:flex;justify-content:center;gap:8px;background:var(--card);border-top:1px solid var(--line);z-index:5}nav[hidden]{display:none}nav button{background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:3px;min-width:68px;width:25%;max-width:180px;font-size:11px;padding:6px}nav button.active{color:var(--blue)}.empty{text-align:center;padding:28px 8px;color:var(--muted)}.empty .icon{width:34px;height:34px;display:block;margin:0 auto 10px}.login{max-width:420px;margin:12vh auto 0}.brand{width:64px;height:64px;background:#3478f6;color:white;border-radius:19px;display:grid;place-items:center;margin-bottom:22px}.brand .icon{width:36px;height:36px}label{display:block;font-size:13px;color:var(--muted);font-weight:600;margin:12px 0 5px}input:not([type=checkbox]),select,textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--bg);color:var(--text);min-height:46px;font-size:16px}textarea{resize:vertical;min-height:100px}input[type=checkbox]{width:21px;height:21px;accent-color:#3478f6;flex-shrink:0}form button.primary{width:100%;margin-top:16px}dialog{border:0;border-radius:24px;background:var(--card);color:var(--text);padding:0;width:min(94vw,560px);max-height:88dvh;box-shadow:0 20px 90px #0005}dialog::backdrop{background:#0007;backdrop-filter:blur(4px)}#modalbody{padding:20px;overflow:auto;max-height:88dvh}.modalhead{display:flex;align-items:center;justify-content:space-between;gap:8px}.modalhead h2{margin:0}.modalhead button{font-size:22px;background:var(--bg);padding:2px 12px}.calgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}.calgrid button{padding:6px 1px;min-height:42px;background:transparent;font-size:14px;border:1px solid transparent;position:relative}.calgrid button.selected{background:#3478f6;color:#fff}.calgrid button.today{border-color:var(--blue)}.calgrid button.has:after{content:'';position:absolute;bottom:3px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:var(--green)}.progress{height:6px;border-radius:8px;background:var(--line);overflow:hidden;margin:5px 0 10px}.progress div{height:100%;background:#3478f6;border-radius:8px}.ai{background:var(--soft);box-shadow:none}.ai .icon{color:var(--blue)}#toast{position:fixed;bottom:calc(90px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:var(--text);color:var(--card);padding:10px 18px;border-radius:15px;z-index:20;opacity:0;pointer-events:none;max-width:90vw;transition:opacity .2s}#toast.show{opacity:1}.error{color:var(--red);font-size:14px}.pollopt{width:100%;text-align:left;display:flex;justify-content:space-between;gap:8px;margin:5px 0}.pollopt.selected{background:#3478f6;color:white}.notice{border-left:3px solid var(--blue)}.full{width:100%}.section-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.section-title h2{margin:12px 0}.section-title button{font-size:14px}.nowrap{white-space:nowrap}.search{margin:7px 0}.install-tip{font-size:13px;color:var(--muted)}@media(min-width:650px){main{padding-top:40px}.grid{grid-template-columns:repeat(4,minmax(0,1fr))}.login .grid{grid-template-columns:repeat(2,1fr)}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
