:root{--bg:#f7f7f7;--card:#fff;--ink:#222;--muted:#717171;--line:#ebebeb;--accent:#ff385c;--accent-soft:#ffe9ee;--teal:#008489;--teal-soft:#e6f4f4;--danger:#c13515;--surface-soft:#f2f2f2;--success:#008a05;--gold:#e6b800;--sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:24px;--sp-6:32px;--radius-lg:20px;--radius:14px;--radius-sm:10px;--shadow:0 1px 2px #0000000a, 0 6px 16px #0000000f;--shadow-lift:0 4px 8px #0000000f, 0 12px 28px #0000001f;--glass:#ffffffdb}html[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0e1014;--card:#181b21;--ink:#e7e9ec;--muted:#9097a1;--line:#2a2e36;--accent:#ff5b78;--accent-soft:#3a1f27;--teal:#2dd4bf;--teal-soft:#16302e;--danger:#ff6b4a;--surface-soft:#20242c;--success:#2dd47a;--gold:#e6b800;--shadow:0 1px 2px #00000059, 0 6px 16px #00000073;--shadow-lift:0 4px 8px #00000073, 0 12px 28px #0000008c;--glass:#14171cdb}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html{-webkit-text-size-adjust:100%}html,body{background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;overscroll-behavior-y:contain;margin:0;padding:0;font-family:Inter,-apple-system,BlinkMacSystemFont,system-ui,sans-serif;font-size:15px;line-height:1.5}body{padding-bottom:calc(96px + env(safe-area-inset-bottom))}button{touch-action:manipulation;-webkit-user-select:none;user-select:none;cursor:pointer;color:inherit;background:0 0;border:none;font-family:inherit}input,select,textarea{touch-action:manipulation;font-family:inherit}h1,h2,h3{letter-spacing:-.01em;margin:0;font-weight:700}h1{font-size:30px;line-height:1.15}h2{font-size:20px;line-height:1.2}h3{font-size:16px}.app{max-width:480px;padding:0 var(--sp-4);margin:0 auto}.topbar{z-index:20;background:var(--glass);-webkit-backdrop-filter:saturate(180%)blur(20px);margin:0 calc(-1 * var(--sp-4));padding:calc(env(safe-area-inset-top) + 14px) var(--sp-4) 12px;border-bottom:1px solid var(--line);position:sticky;top:0}.topbar-row{justify-content:space-between;align-items:center;gap:var(--sp-3);display:flex}.brand{letter-spacing:-.02em;align-items:center;gap:10px;font-size:20px;font-weight:800;display:flex}.brand-mark{background:linear-gradient(135deg, var(--accent), #ff7a5c);color:#fff;width:34px;height:34px;box-shadow:var(--shadow);border-radius:10px;place-items:center;display:grid}.brand-logo{object-fit:cover;width:36px;height:36px;box-shadow:var(--shadow);border-radius:10px}.btn.ghost.signout{color:var(--danger);border-color:var(--accent-soft)}.btn.ghost.signout svg{stroke:var(--danger)}.auth-logo{object-fit:cover;width:128px;height:128px;margin:0 auto var(--sp-4);box-shadow:var(--shadow-lift);border-radius:26px;display:block}.brand-mark svg{stroke:#fff;stroke-width:2px;fill:none;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.icon-btn{background:var(--card);border:1px solid var(--line);width:40px;height:40px;box-shadow:var(--shadow);border-radius:50%;place-items:center;display:grid}.icon-btn svg{width:18px;height:18px;stroke:var(--ink);stroke-width:2px;fill:none;stroke-linecap:round;stroke-linejoin:round}.page{padding-top:var(--sp-5);animation:.25s fade}@keyframes fade{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.page-title{margin-bottom:2px}.page-sub{color:var(--muted);margin-bottom:var(--sp-5);font-size:14px}.section-head{margin:var(--sp-5) 0 var(--sp-3);justify-content:space-between;align-items:baseline;display:flex}.section-head h3{font-size:15px}.section-head .count{color:var(--muted);font-size:13px;font-weight:600}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.stat-row{gap:var(--sp-3);margin-bottom:var(--sp-2);grid-template-columns:repeat(3,1fr);display:grid}.stat{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:var(--sp-4) var(--sp-3);text-align:center}.stat-num{letter-spacing:-.02em;font-size:26px;font-weight:800}.stat-label{color:var(--muted);margin-top:2px;font-size:12px;font-weight:600}.task{align-items:center;gap:var(--sp-3);background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:var(--sp-3) var(--sp-4);margin-bottom:var(--sp-3);transition:transform .12s,box-shadow .12s,opacity .2s;display:flex}.task:active{transform:scale(.99)}.task.done{opacity:.62}.task.done .task-title{color:var(--muted);text-decoration:line-through}.check{border:2px solid var(--line);background:var(--card);border-radius:50%;flex:none;place-items:center;width:28px;height:28px;transition:all .15s;display:grid}.check svg{stroke:#fff;stroke-width:3px;fill:none;stroke-linecap:round;stroke-linejoin:round;opacity:0;width:15px;height:15px}.check.on{background:var(--teal);border-color:var(--teal)}.check.on svg{opacity:1}.task-body{flex:1;min-width:0}.task-title{font-size:15px;font-weight:600;line-height:1.3}.task-meta{flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px;display:flex}.chip{background:var(--surface-soft);color:var(--muted);border-radius:999px;align-items:center;gap:5px;padding:3px 9px;font-size:12px;font-weight:600;display:inline-flex}.chip.room{background:var(--accent-soft);color:var(--accent)}.chip.day{background:var(--teal-soft);color:var(--teal)}.chip.day.overdue{background:var(--accent-soft);color:var(--danger)}.avatar{color:#fff;border-radius:50%;flex:none;place-items:center;width:22px;height:22px;font-size:11px;font-weight:700;display:grid}.del{width:34px;height:34px;color:var(--muted);border-radius:50%;flex:none;place-items:center;display:grid}.del:active{background:var(--accent-soft);color:var(--accent)}.del svg{stroke:currentColor;stroke-width:2px;fill:none;stroke-linecap:round;stroke-linejoin:round;width:17px;height:17px}.person{align-items:center;gap:var(--sp-3);padding:var(--sp-3) var(--sp-4);border-bottom:1px solid var(--line);display:flex}.person:last-child{border-bottom:none}.avatar-lg{color:#fff;border-radius:50%;flex:none;place-items:center;width:44px;height:44px;font-size:17px;font-weight:700;display:grid}.person-name{font-size:15px;font-weight:700}.person-sub{color:var(--muted);font-size:13px}.progress{background:var(--surface-soft);border-radius:999px;height:6px;margin-top:6px;overflow:hidden}.progress>span{background:var(--teal);border-radius:999px;height:100%;transition:width .4s;display:block}.rota-day{margin-bottom:var(--sp-3)}.rota-day-head{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:0 4px var(--sp-2);align-items:center;gap:8px;font-size:13px;font-weight:700;display:flex}.rota-day-head .today-dot{background:var(--accent);border-radius:50%;width:7px;height:7px}.btn{background:var(--accent);color:#fff;width:100%;box-shadow:var(--shadow);border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:13px 18px;font-size:15px;font-weight:700;transition:transform .12s;display:inline-flex}.btn:active{transform:scale(.98)}.btn.ghost{background:var(--card);color:var(--ink);border:1px solid var(--line)}.btn svg{stroke:currentColor;stroke-width:2.4px;fill:none;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.empty{text-align:center;padding:var(--sp-6) var(--sp-4);color:var(--muted)}.empty .emoji{font-size:40px}.empty p{margin:var(--sp-2) 0 0;font-size:14px}.sheet-backdrop{z-index:40;background:#0006;justify-content:center;align-items:flex-end;animation:.2s fade;display:flex;position:fixed;inset:0}.sheet{background:var(--card);width:100%;max-width:480px;padding:var(--sp-3) var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom));box-shadow:var(--shadow-lift);border-radius:22px 22px 0 0;max-height:88vh;animation:.28s cubic-bezier(.22,1,.36,1) slideup;overflow-y:auto}@keyframes slideup{0%{transform:translateY(100%)}to{transform:none}}.grabber{background:var(--line);width:40px;height:5px;margin:6px auto var(--sp-4);border-radius:999px}.field{margin-bottom:var(--sp-4)}.field label{margin-bottom:8px;font-size:13px;font-weight:700;display:block}.field input[type=text],.field input[type=password],.field input[type=date]{border:1px solid var(--line);background:var(--bg);width:100%;color:var(--ink);border-radius:12px;outline:none;padding:14px;font-size:16px}.field input[type=date]{appearance:none;font-family:inherit;font-weight:600}.field input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.6}.field input[type=text]:focus,.field input[type=password]:focus,.field input[type=date]:focus{border-color:var(--ink)}.auth{min-height:100vh;padding:var(--sp-5);justify-content:center;align-items:center;display:flex}.auth-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius-lg);width:100%;max-width:380px;box-shadow:var(--shadow-lift);padding:var(--sp-6) var(--sp-5);text-align:center}.auth-mark{width:56px;height:56px;margin:0 auto var(--sp-4);border-radius:16px}.auth-mark svg{width:30px;height:30px}.auth-title{margin-bottom:4px;font-size:28px}.auth-sub{color:var(--muted);margin:0 0 var(--sp-5);font-size:14px}.auth-card form{text-align:left}.auth-msg{margin-bottom:var(--sp-3);border-radius:10px;padding:10px 12px;font-size:13px;font-weight:600}.auth-msg.error{background:var(--accent-soft);color:var(--accent)}.auth-msg.ok{background:var(--teal-soft);color:var(--teal)}.auth-switch{margin-top:var(--sp-4);color:var(--accent);font-size:14px;font-weight:600}.pills{flex-wrap:wrap;gap:8px;display:flex}.pill{border:1px solid var(--line);background:var(--card);color:var(--muted);border-radius:999px;align-items:center;gap:7px;padding:9px 14px;font-size:14px;font-weight:600;display:inline-flex}.pill.sel{border-color:var(--ink);color:var(--ink);background:var(--surface-soft)}.pill .dot{border-radius:50%;width:18px;height:18px}.nav{left:50%;bottom:calc(14px + env(safe-area-inset-bottom));z-index:30;background:var(--glass);-webkit-backdrop-filter:saturate(180%)blur(20px);border:1px solid var(--line);box-shadow:var(--shadow-lift);border-radius:999px;align-items:center;gap:2px;padding:6px;display:flex;position:fixed;transform:translate(-50%)}.nav-item{color:var(--muted);border-radius:999px;flex-direction:column;align-items:center;gap:2px;padding:8px 14px;font-size:11px;font-weight:600;transition:all .18s;display:flex}.nav-item svg{stroke:currentColor;stroke-width:2px;fill:none;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.nav-item.active{color:var(--accent);background:var(--accent-soft)}.nav-add{background:var(--accent);color:#fff;border-radius:50%;place-items:center;width:46px;height:46px;margin:0 2px;display:grid;box-shadow:0 6px 16px #ff385c66}.nav-add svg{stroke:#fff;stroke-width:2.6px;fill:none;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}.chip svg{stroke:currentColor;stroke-width:2px;fill:none;stroke-linecap:round;stroke-linejoin:round;width:14px;height:14px}.chip.meterchip{background:var(--accent-soft);color:var(--accent)}.task.overdue{border-color:var(--danger);box-shadow:0 1px 2px #c1351514,0 6px 16px #c135151f}.task.overdue:before{content:"";background:var(--danger);border-radius:4px;width:4px;position:absolute;top:10px;bottom:10px;left:0}.task{position:relative}.pill.danger.sel{border-color:var(--danger);color:var(--danger);background:var(--accent-soft)}.task-thumb{object-fit:cover;border:1px solid var(--line);border-radius:10px;flex:none;width:40px;height:40px}.photo-btn{cursor:pointer;width:auto}.photo-preview{align-items:center;gap:var(--sp-3);display:flex}.photo-preview img{object-fit:cover;border:1px solid var(--line);border-radius:12px;width:72px;height:72px}.info-label{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-size:12px;font-weight:700}.info-value{word-break:break-word;margin-top:2px;font-size:16px;font-weight:600}.info-add{padding:var(--sp-4);margin:var(--sp-2) 0 var(--sp-4);gap:var(--sp-3);flex-direction:column;display:flex}.info-add input{border:1px solid var(--line);background:var(--bg);width:100%;color:var(--ink);border-radius:12px;outline:none;padding:13px 14px;font-size:16px}.info-add input:focus{border-color:var(--ink)}.info-add-title{font-size:15px;font-weight:700}.info-add-cats{flex-wrap:wrap;gap:8px;display:flex}.info-newcat{gap:var(--sp-2);border-top:1px solid var(--line);padding-top:var(--sp-3);margin-top:var(--sp-1);display:flex}.info-newcat input{flex:1}.info-newcat .btn{white-space:nowrap;width:auto}.task-thumb{cursor:pointer}.quote{padding:var(--sp-4);margin-bottom:var(--sp-3)}.quote-head{justify-content:space-between;align-items:baseline;gap:var(--sp-3);display:flex}.quote-title{font-size:16px;font-weight:700}.quote-amount{color:var(--teal);white-space:nowrap;font-size:18px;font-weight:800}.quote-lines{color:var(--muted);flex-direction:column;gap:2px;margin-top:4px;font-size:14px;display:flex}.quote-notes{color:var(--ink)}.quote-actions{align-items:center;gap:var(--sp-2);margin-top:var(--sp-3);flex-wrap:wrap;display:flex}.quote-actions .btn{flex:1;width:auto;min-width:120px;text-decoration:none}.quote-actions .del{flex:none}.lightbox{z-index:60;padding:var(--sp-4);background:#000000e6;justify-content:center;align-items:center;animation:.15s fade;display:flex;position:fixed;inset:0}.lightbox img{object-fit:contain;border-radius:12px;max-width:100%;max-height:100%}.meter{padding:var(--sp-4);margin-bottom:var(--sp-4)}.meter-head{align-items:flex-start;gap:var(--sp-3);margin-bottom:var(--sp-3);display:flex}.meter-input{align-items:center;gap:var(--sp-2);margin-bottom:var(--sp-3);display:flex}.meter-input input{border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:12px;outline:none;flex:1;padding:12px 14px;font-size:16px}.meter-input input:focus{border-color:var(--ink)}.meter-unit{color:var(--muted);min-width:34px;font-weight:700}.meter-actions{gap:var(--sp-2);display:flex}.meter-actions .btn{flex:1}.meter-photo{object-fit:cover;width:100%;max-height:200px;margin-top:var(--sp-3);border:1px solid var(--line);border-radius:12px}.meter-history{margin-top:var(--sp-4);border-top:1px solid var(--line);padding-top:var(--sp-3)}.meter-history-head{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:var(--sp-2);font-size:12px;font-weight:700}.meter-history-row{color:var(--ink);justify-content:space-between;padding:5px 0;font-size:14px;display:flex}.meter-history-row span:first-child{color:var(--muted)}.meter-delta{color:var(--teal);margin-left:8px;font-size:12px;font-weight:700}.people-bar{align-items:center;gap:var(--sp-3);margin-bottom:var(--sp-4);flex-wrap:wrap;display:flex}.people-bar-hint{color:var(--muted);font-size:12px;font-weight:600}.people-bar-avatars{gap:8px;margin-left:auto;display:flex}.avatar-drag{color:#fff;touch-action:none;width:38px;height:38px;box-shadow:var(--shadow);border-radius:50%;place-items:center;font-size:14px;font-weight:700;display:grid}.drag-ghost{z-index:70;color:#fff;width:44px;height:44px;box-shadow:var(--shadow-lift);pointer-events:none;opacity:.95;border-radius:50%;place-items:center;margin-top:-22px;margin-left:-22px;font-weight:700;display:grid;position:fixed}.task.drop{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft), var(--shadow)}.collapse{margin-bottom:var(--sp-2)}.collapse-head{align-items:center;gap:10px;width:100%;padding:12px 4px;display:flex}.collapse-title{text-align:left;flex:1;font-size:15px;font-weight:700}.collapse-chev{color:var(--muted);place-items:center;transition:transform .18s;display:grid}.collapse-chev svg{stroke:currentColor;stroke-width:2.4px;fill:none;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.collapse-head.open .collapse-chev{transform:rotate(90deg)}.collapse-body{animation:.2s fade}.info-toolbar{gap:var(--sp-2);margin-bottom:var(--sp-3);display:flex}.info-toolbar .btn{flex:1}.cred{padding:var(--sp-4);margin-bottom:var(--sp-3)}.cred-head{margin-bottom:var(--sp-2);justify-content:space-between;align-items:center;display:flex}.cred-service{font-size:16px;font-weight:700}.cred-row{border-top:1px solid var(--line);align-items:center;gap:8px;padding:6px 0;display:flex}.cred-key{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);flex:none;width:42px;font-size:11px;font-weight:700}.cred-val{word-break:break-all;flex:1;min-width:0;font-size:15px;font-weight:600}.cred-val.mono{letter-spacing:1px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.cred-val.link{color:var(--accent);text-decoration:none}.cred-icon{width:34px;height:34px;color:var(--muted);background:var(--surface-soft);border-radius:9px;flex:none;place-items:center;display:grid}.cred-icon:active{background:var(--accent-soft);color:var(--accent)}.cred-icon svg{stroke:currentColor;stroke-width:2px;fill:none;stroke-linecap:round;stroke-linejoin:round;width:17px;height:17px}.cred-notes{color:var(--muted);margin-top:6px;font-size:14px}.cred-copied{color:var(--teal);margin-top:8px;font-size:12px;font-weight:700}.cal-top{margin-bottom:var(--sp-3);justify-content:space-between;align-items:center;display:flex}.cal-month{font-size:16px;font-weight:700}.cal-nav{background:var(--surface-soft);width:36px;height:36px;color:var(--ink);border-radius:9px;place-items:center;display:grid}.cal-nav svg{stroke:currentColor;stroke-width:2.4px;fill:none;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.cal-nav .flip{place-items:center;display:grid;transform:rotate(180deg)}.cal-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;display:grid}.cal-cell{min-width:0}.cal-dow-row{margin-bottom:4px}.cal-dow{text-align:center;color:var(--muted);padding:4px 0;font-size:11px;font-weight:700}.cal-cell{aspect-ratio:1;color:var(--ink);border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:14px;font-weight:600;display:flex}.cal-cell.empty{visibility:hidden}.cal-cell.today{background:var(--accent-soft);color:var(--accent)}.cal-cell.sel{outline:2px solid var(--ink)}.cal-dot{background:var(--teal);border-radius:50%;width:5px;height:5px}.cal-cell.today .cal-dot{background:var(--accent)}.cal-sel-head{margin:var(--sp-4) 0 var(--sp-2);font-size:14px;font-weight:700}.cal-empty{color:var(--muted);padding:var(--sp-2) 0;font-size:14px}.cal-task{border-top:1px solid var(--line);align-items:center;gap:10px;padding:9px 0;display:flex}.cal-task-title{flex:1;font-size:14px;font-weight:600}.check-mini{border:2px solid var(--line);border-radius:50%;flex:none;width:15px;height:15px}.check-mini.on{background:var(--teal);border-color:var(--teal)}.info-entry{cursor:pointer}.info-field{gap:8px;margin-top:3px;font-size:14px;display:flex}.info-field-k{color:var(--muted);flex:none;min-width:90px;font-weight:600}.info-field-v{word-break:break-word}.field-row{align-items:center;gap:8px;margin-bottom:8px;display:flex}.field-row input{border:1px solid var(--line);background:var(--bg);min-width:0;color:var(--ink);border-radius:10px;outline:none;flex:1;padding:12px;font-size:15px}.field-row input:focus{border-color:var(--ink)}.field-row .cred-icon{flex:none}
