:root{--bg: #f5f6fb;--surface: #ffffff;--surface2: #f0f1f8;--line: #e3e5f0;--text: #181a2b;--muted: #6a6f8a;--brand: #4f46e5;--brand-soft: #eceafe;--brand-ink: #ffffff;--good: #16a34a;--good-soft: #e4f6ea;--warn: #d97706;--warn-soft: #fdf1dc;--bad: #dc2626;--bad-soft: #fde8e8;--shadow: 0 1px 2px rgba(20,22,50,.06), 0 6px 20px rgba(20,22,50,.05);--radius: 14px;--nav-h: 64px}:root[data-theme=dark]{--bg: #0f1020;--surface: #181a30;--surface2: #202342;--line: #2b2f52;--text: #eceefb;--muted: #9a9fc2;--brand: #818cf8;--brand-soft: #25285a;--brand-ink: #0f1020;--good: #4ade80;--good-soft: #14301f;--warn: #fbbf24;--warn-soft: #3a2c0e;--bad: #f87171;--bad-soft: #3b1717;--shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.25)}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.45 -apple-system,BlinkMacSystemFont,Segoe UI,Inter,Roboto,sans-serif}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}h1,h2,h3{margin:0;line-height:1.2}h1{font-size:26px;letter-spacing:-.02em}h2{font-size:17px}h3{font-size:15px}a{color:var(--brand)}.muted{color:var(--muted)}.small{font-size:13px}.tiny{font-size:12px}.row{display:flex;align-items:center;gap:10px}.row.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.between{justify-content:space-between}.col{display:flex;flex-direction:column;gap:10px}.sp{height:14px}.center{text-align:center}.trunc{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app{display:grid;grid-template-columns:232px 1fr;min-height:100%}.side{position:sticky;top:0;height:100vh;padding:18px 12px;border-right:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;gap:4px;overflow-y:auto}.brand{display:flex;align-items:center;gap:10px;padding:4px 10px 16px;font-weight:800;font-size:17px;letter-spacing:-.02em}.brand img{width:30px;height:30px;border-radius:8px}.nav-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;border:0;background:none;text-align:left;color:var(--muted);font-weight:600;width:100%}.nav-item:hover{background:var(--surface2);color:var(--text)}.nav-item.on{background:var(--brand-soft);color:var(--brand)}.nav-item .badge{margin-left:auto}.side .grow{flex:1}.main{padding:22px clamp(14px,3vw,34px) 60px;max-width:1080px;width:100%;margin:0 auto}.bottom{display:none}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}@media(max-width:800px){.app{grid-template-columns:1fr}.side{display:none}.main{padding:16px 14px calc(var(--nav-h) + 32px)}.bottom{display:flex;position:fixed;left:0;right:0;bottom:0;height:var(--nav-h);padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--line);z-index:30}.bottom button{flex:1;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;font-weight:600;color:var(--muted);position:relative}.bottom button.on{color:var(--brand)}h1{font-size:22px}}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow)}.card.flat{box-shadow:none}.card.tight{padding:0;overflow:hidden}.card-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.grid{display:grid;gap:14px}.g2{grid-template-columns:repeat(2,1fr)}.g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(4,1fr)}.auto{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}@media(max-width:800px){.g2,.g3{grid-template-columns:1fr}.g4{grid-template-columns:repeat(2,1fr)}}.stat{padding:14px 16px}.stat .n{font-size:28px;font-weight:800;letter-spacing:-.02em;line-height:1.1}.stat .l{color:var(--muted);font-size:13px;font-weight:600}.stat.bad .n{color:var(--bad)}.stat.good .n{color:var(--good)}.stat.warn .n{color:var(--warn)}.btn{border:1px solid var(--line);background:var(--surface);padding:9px 14px;border-radius:10px;font-weight:600;display:inline-flex;align-items:center;gap:8px;justify-content:center}.btn:hover{background:var(--surface2)}.btn.primary{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}.btn.primary:hover{filter:brightness(1.08)}.btn.danger{color:var(--bad)}.btn.ghost{border-color:transparent;background:none}.btn.sm{padding:5px 10px;font-size:13px;border-radius:8px}.btn:disabled{opacity:.5;cursor:not-allowed}.icon-btn{border:0;background:none;padding:6px;border-radius:8px;color:var(--muted);display:inline-flex}.icon-btn:hover{background:var(--surface2);color:var(--text)}.field{display:flex;flex-direction:column;gap:5px}.field>label,.lbl{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}input[type=text],input[type=email],input[type=password],input[type=number],input[type=date],input[type=time],input[type=datetime-local],input[type=search],select,textarea{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);outline:none;min-width:0}input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}textarea{resize:vertical;min-height:90px}input[type=checkbox]{width:18px;height:18px;accent-color:var(--brand)}.seg{display:inline-flex;background:var(--surface2);padding:3px;border-radius:10px;gap:2px}.seg button{border:0;background:none;padding:6px 12px;border-radius:8px;font-weight:600;color:var(--muted);font-size:13px}.seg button.on{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.chip{display:inline-flex;align-items:center;gap:6px;padding:2px 9px;border-radius:999px;background:var(--surface2);font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap}.chip.dot:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--c, var(--brand))}.chip.bad{background:var(--bad-soft);color:var(--bad)}.chip.warn{background:var(--warn-soft);color:var(--warn)}.chip.good{background:var(--good-soft);color:var(--good)}.chip.brand{background:var(--brand-soft);color:var(--brand)}.badge{background:var(--bad);color:#fff;font-size:11px;font-weight:700;border-radius:999px;padding:1px 7px;min-width:20px;text-align:center}.quick{display:flex;gap:8px;position:relative}.quick input{padding:13px 14px;font-size:16px;border-radius:12px;box-shadow:var(--shadow)}.quick-preview{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:5;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;box-shadow:var(--shadow);display:flex;flex-wrap:wrap;gap:6px;align-items:center}.task{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);background:var(--surface)}.task:last-child{border-bottom:0}.task:hover{background:var(--surface2)}.task .title{font-weight:600;word-break:break-word}.task.done .title{text-decoration:line-through;color:var(--muted)}.task .meta{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;margin-top:3px;font-size:13px;color:var(--muted)}.check{width:24px;height:24px;border-radius:50%;border:2px solid var(--line);background:var(--surface);display:grid;place-items:center;flex:none;padding:0;margin-top:1px;color:transparent}.check:hover{border-color:var(--brand)}.check.on{background:var(--good);border-color:var(--good);color:#fff}.check.p3{border-color:var(--bad)}.check.p1{border-color:var(--muted);opacity:.8}.group-head{font-size:12px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;padding:14px 4px 6px;display:flex;gap:8px;align-items:center}.group-head.bad{color:var(--bad)}.empty{text-align:center;padding:34px 16px;color:var(--muted)}.empty .big{font-size:34px}.overlay{position:fixed;inset:0;background:#0a0c1e8c;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;animation:fade .15s}.modal{background:var(--surface);border-radius:18px;width:100%;max-width:560px;max-height:calc(100vh - 32px);overflow:auto;box-shadow:0 20px 60px #00000059;animation:pop .18s}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 6px;position:sticky;top:0;background:var(--surface);z-index:1}.modal-body{padding:8px 18px 6px;display:flex;flex-direction:column;gap:14px}.modal-foot{padding:14px 18px 18px;display:flex;gap:8px;justify-content:flex-end;position:sticky;bottom:0;background:var(--surface)}@media(max-width:600px){.overlay{align-items:flex-end;padding:0}.modal{border-radius:18px 18px 0 0;max-height:92vh}}@keyframes fade{0%{opacity:0}}@keyframes pop{0%{transform:translateY(14px);opacity:0}}.toasts{position:fixed;right:16px;bottom:16px;z-index:200;display:flex;flex-direction:column;gap:8px;max-width:min(380px,calc(100vw - 32px))}@media(max-width:800px){.toasts{bottom:calc(var(--nav-h) + 12px);left:16px;right:16px;max-width:none}}.toast{background:var(--text);color:var(--bg);padding:12px 14px;border-radius:12px;box-shadow:0 8px 28px #0000004d;display:flex;gap:12px;align-items:center;animation:pop .2s}.toast.warn{background:var(--warn);color:#fff}:root[data-theme=dark] .toast.warn{color:#1b1300}.toast button{background:none;border:0;color:inherit;font-weight:800;text-decoration:underline}.bar{height:8px;background:var(--surface2);border-radius:99px;overflow:hidden}.bar>i{display:block;height:100%;background:var(--c, var(--brand));border-radius:99px;transition:width .4s}.ring{--p: 0;width:var(--s, 64px);height:var(--s, 64px);border-radius:50%;background:conic-gradient(var(--c, var(--brand)) calc(var(--p) * 1%),var(--surface2) 0);display:grid;place-items:center;flex:none}.ring>span{width:calc(100% - 12px);height:calc(100% - 12px);border-radius:50%;background:var(--surface);display:grid;place-items:center;font-weight:800;font-size:14px}.cal{display:grid;grid-template-columns:repeat(7,1fr);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--surface)}.cal .dow{padding:8px;font-size:12px;font-weight:700;color:var(--muted);text-align:center;background:var(--surface2)}.cal .day{min-height:92px;padding:6px;border:0;border-top:1px solid var(--line);border-left:1px solid var(--line);background:var(--surface);text-align:left;display:flex;flex-direction:column;gap:3px;overflow:hidden}.cal .day:nth-child(7n+1){border-left:0}.cal .day.out{background:var(--bg);color:var(--muted)}.cal .day.sel{outline:2px solid var(--brand);outline-offset:-2px}.cal .day .num{font-size:13px;font-weight:700;width:24px;height:24px;display:grid;place-items:center;border-radius:50%}.cal .day.today .num{background:var(--brand);color:var(--brand-ink)}.cal .ev{font-size:11px;padding:1px 6px;border-radius:5px;background:color-mix(in srgb,var(--c, var(--brand)) 18%,var(--surface));color:var(--text);border-left:3px solid var(--c, var(--brand));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cal .ev.done{opacity:.45;text-decoration:line-through}.cal .more{font-size:11px;color:var(--muted)}@media(max-width:800px){.cal .day{min-height:54px;padding:4px;align-items:center}.cal .ev{display:none}.cal .dots{display:flex;gap:3px;flex-wrap:wrap;justify-content:center}.cal .dots i{width:6px;height:6px;border-radius:50%;background:var(--c, var(--brand))}}@media(min-width:801px){.cal .dots{display:none}}.week{display:grid;grid-template-columns:54px repeat(7,1fr);border:1px solid var(--line);border-radius:var(--radius);overflow:auto;background:var(--surface);min-width:0}.week .hd{padding:8px 4px;text-align:center;font-size:12px;font-weight:700;background:var(--surface2);position:sticky;top:0}.week .hd.today{color:var(--brand)}.week .hours{position:relative;border-top:1px solid var(--line)}.week .hours span{position:absolute;right:6px;font-size:10px;color:var(--muted);transform:translateY(-50%)}.week .colm{position:relative;border-left:1px solid var(--line);border-top:1px solid var(--line);background-image:linear-gradient(var(--line) 1px,transparent 1px);background-size:100% 44px}.week .blk{position:absolute;left:2px;right:2px;border-radius:6px;padding:2px 5px;font-size:11px;line-height:1.25;overflow:hidden;background:color-mix(in srgb,var(--c) 22%,var(--surface));border-left:3px solid var(--c);cursor:pointer;text-align:left;border-top:0;border-right:0;border-bottom:0;color:var(--text)}.week .blk.due{border-left-style:dashed}.week .nowline{position:absolute;left:0;right:0;height:2px;background:var(--bad);z-index:2}.tabs{display:flex;gap:4px;overflow-x:auto;margin-bottom:14px}.tabs::-webkit-scrollbar{display:none}.swatches{display:flex;gap:8px;flex-wrap:wrap}.swatch{width:28px;height:28px;border-radius:50%;border:3px solid transparent;background:var(--c);padding:0}.swatch.on{border-color:var(--text)}.kv{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px dashed var(--line)}.kv:last-child{border:0}.timer{font-size:72px;font-weight:800;letter-spacing:-.04em;font-variant-numeric:tabular-nums;line-height:1}.kanban{display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));gap:12px;overflow-x:auto;padding-bottom:8px}.kcol{background:var(--surface2);border-radius:var(--radius);padding:10px;display:flex;flex-direction:column;gap:8px;min-height:120px}.kcard{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px;text-align:left;width:100%}.note{text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px;display:block;width:100%;box-shadow:var(--shadow)}.note .body{white-space:pre-wrap;color:var(--muted);font-size:14px;max-height:110px;overflow:hidden;margin-top:6px}.sub{display:flex;align-items:center;gap:8px}.sub input[type=text]{padding:6px 10px}.sub.done input[type=text]{text-decoration:line-through;color:var(--muted)}.banner{background:var(--brand-soft);color:var(--brand);padding:10px 14px;border-radius:12px;font-size:13px;font-weight:600;display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap}.checklist-item{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line)}.checklist-item:last-child{border:0}.pos{color:var(--good)}.neg{color:var(--bad)}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.focus-ring:focus-visible,button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media print{.side,.bottom,.toasts,.btn,.quick{display:none!important}.app{display:block}}.help-fab{position:fixed;right:16px;bottom:16px;z-index:90;display:flex;align-items:center;gap:8px;background:var(--brand);color:var(--brand-ink);border:0;border-radius:999px;padding:12px 18px;font-weight:700;box-shadow:0 6px 20px #00000047}.help-panel{position:fixed;right:16px;bottom:16px;z-index:150;width:min(400px,calc(100vw - 32px));height:min(600px,calc(100vh - 32px));background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 16px 50px #00000059;display:flex;flex-direction:column;overflow:hidden;animation:pop .18s}.help-head{background:var(--brand);color:var(--brand-ink);padding:12px 14px;display:flex;align-items:center;justify-content:space-between}.help-body{flex:1;overflow-y:auto;padding:12px;background:var(--bg)}.hmsg{max-width:88%;padding:9px 12px;border-radius:14px;font-size:14px;line-height:1.45;white-space:pre-wrap;word-break:break-word;box-shadow:var(--shadow)}.hmsg.bot{background:var(--surface);border-bottom-left-radius:3px}.hmsg.user{background:var(--brand);color:var(--brand-ink);margin-left:auto;border-bottom-right-radius:3px}.hmsg.fail{background:var(--bad-soft);color:var(--bad)}.hchips{display:flex;flex-direction:column;gap:6px;margin-top:8px;align-items:flex-start}.hchip{background:var(--surface);color:var(--brand);border:1px solid var(--brand);border-radius:999px;padding:6px 12px;font-size:13px;text-align:left}.hchip:hover,.hchip.on{background:var(--brand);color:var(--brand-ink)}.help-form{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line);background:var(--surface)}@media(max-width:800px){.help-fab{bottom:calc(var(--nav-h) + 14px);padding:11px 15px}.help-panel{right:8px;left:8px;width:auto;bottom:8px;height:calc(100vh - 16px);max-height:640px}}@media(min-width:801px){.toasts{right:auto;left:252px}}@media print{.help-fab,.help-panel{display:none!important}}
