:root{--font-sans:"Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;--font-mono:"Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;--bg:#fafaf9;--bg-sunken:#f4f4f2;--surface:#fff;--surface-hover:#f4f4f2;--border:#e8e8e6;--border-strong:#d6d6d2;--text:#18181b;--text-muted:#71717a;--text-subtle:#a1a1aa;--accent:#18181b;--accent-soft:#f0f0ee;--accent-text:#18181b;--accent-ring:#18181b1a;--c-blue:#2563eb;--c-green:#16a34a;--c-purple:#8b5cf6;--c-pink:#ec4899;--c-orange:#f97316;--c-red:#ef4444;--c-teal:#0d9488;--c-slate:#475569;--hour-height:64px;--time-col-width:28px;--now-color:#ef4444;--nav-h:52px;--bottom-clear:calc(204px + var(--safe-bottom));--r-sm:6px;--r-md:8px;--r-lg:12px;--r-pill:999px;--shadow-sm:0 1px 2px #18181b0a, 0 0 0 1px #18181b0a;--shadow-md:0 4px 12px #18181b0f, 0 0 0 1px #18181b0f;--shadow-lg:0 20px 48px -12px #18181b38, 0 0 0 1px #18181b0f;--safe-bottom:var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px));--safe-top:var(--safe-area-inset-top,env(safe-area-inset-top,0px))}.theme-warm{--bg:#fbf8f4;--bg-sunken:#f4efe7;--border:#ece5d8;--border-strong:#d9cfbc;--text:#1f1a12;--text-muted:#7a6e5a;--text-subtle:#a89a82;--accent:#c2410c;--accent-soft:#fbebde;--accent-text:#7c2d12;--accent-ring:#c2410c2e}.theme-forest{--bg:#f7f9f7;--bg-sunken:#eff2ef;--border:#e1e7e1;--border-strong:#ccd5cc;--text:#131a14;--text-muted:#5c6b5e;--text-subtle:#94a096;--accent:#15803d;--accent-soft:#e4f0ea;--accent-text:#14532d;--accent-ring:#15803d2e}.theme-indigo{--bg:#f8f8fb;--bg-sunken:#efeff5;--border:#e4e4ed;--border-strong:#cfcfdc;--text:#14141f;--text-muted:#5f5f7a;--text-subtle:#9595ad;--accent:#4f46e5;--accent-soft:#ebeafb;--accent-text:#2e2a8f;--accent-ring:#4f46e52e}.theme-dark{--bg:#0e0e11;--bg-sunken:#161619;--surface:#1b1b20;--surface-hover:#26262c;--border:#2a2a31;--border-strong:#3c3c45;--text:#f4f4f5;--text-muted:#b2b2bc;--text-subtle:#8e8e99;--accent:#e4e4e7;--accent-soft:#26262c;--accent-text:#f4f4f5;--accent-ring:#e4e4e729;--shadow-sm:0 1px 2px #00000080, 0 0 0 1px #ffffff0d;--shadow-md:0 4px 14px #0000008c, 0 0 0 1px #ffffff0f;--shadow-lg:0 20px 48px -12px #000000b3, 0 0 0 1px #ffffff12}.density-compact{--hour-height:52px}.density-comfortable{--hour-height:64px}.density-spacious{--hour-height:92px}*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:8px}::-webkit-scrollbar-thumb:hover{background:var(--text-subtle)}html,body,#root{height:100dvh;margin:0;padding:0}html{-webkit-text-size-adjust:100%;background:var(--bg);touch-action:pan-x pan-y}body{font-family:var(--font-sans);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overscroll-behavior:none;touch-action:pan-x pan-y;overflow:hidden}*{touch-action:pan-x pan-y}button{cursor:pointer;-webkit-tap-highlight-color:transparent;font-family:inherit}input:not([type=checkbox]):not([type=radio]),textarea{-webkit-appearance:none;font-family:inherit}.app{background:var(--bg);--timer-slot:64px;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;grid-template-rows:auto auto 1fr;height:100dvh;display:grid;position:relative}.app.timer-off{--timer-slot:0px}:root.immersive .bottom-bar,:root.immersive .timer-bar,:root.immersive .add-fab{opacity:0;pointer-events:none;transition:opacity .18s}input,textarea,[contenteditable=true],.bn-editor,.ai-messages{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}.screen{flex-direction:column;min-height:0;display:flex;overflow:hidden}.screen>:not(.add-fab){animation:.26s cubic-bezier(.3,.85,.35,1) backwards tab-slide-right}.screen[data-dir="-1"]>:not(.add-fab){animation-name:tab-slide-left}@keyframes tab-slide-right{0%{transform:translate(100%)}}@keyframes tab-slide-left{0%{transform:translate(-100%)}}@media (prefers-reduced-motion:reduce){.screen>*{animation:none}}.screen-title{letter-spacing:-.01em;font-size:16px;font-weight:600}.topbar{padding:calc(var(--safe-top) + 8px) 12px 8px;border-bottom:1px solid var(--border);background:var(--bg);z-index:50;align-items:center;gap:8px;display:flex;position:relative}.topbar .date-label{letter-spacing:-.01em;font-size:15px;font-weight:600}.topbar .date-sub{color:var(--text-muted);margin-left:2px;font-size:12px}.topbar .spacer{flex:1}.topbar button{border:1px solid var(--border-strong);background:var(--surface);color:var(--text);border-radius:var(--r-md);min-width:32px;min-height:32px;padding:0 10px;font-size:13px}.topbar button:hover{background:var(--surface-hover)}.topbar button.primary{background:var(--accent);color:var(--bg);border-color:var(--accent);font-size:18px;line-height:1}.topbar .date-btn,.topbar .view-btn{cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:4px;height:34px;min-height:0;padding:0 8px;line-height:1;display:inline-flex}.screen-loading{color:var(--text-subtle);flex:1;place-items:center;font-size:14px;display:grid}.topbar .date-btn{color:var(--text);letter-spacing:-.01em;font-size:16px;font-weight:600}.topbar .view-btn{color:var(--text);padding-right:0;font-size:14px;font-weight:500}.topbar .date-btn:hover,.topbar .view-btn:hover{background:var(--surface-hover)}.topbar .date-btn .chev,.topbar .view-btn .chev{color:var(--text-subtle)}.topbar .date-btn{order:-2}.topbar .nav-step{order:-1;display:none}@media (hover:hover) and (pointer:fine){.topbar .nav-step{width:30px;min-width:0;height:34px;min-height:0;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;padding:0;display:inline-flex}.topbar .nav-step svg{width:20px;height:20px}.topbar .nav-step:hover{background:var(--surface-hover)}.topbar .nav-step+.nav-step{margin-left:-6px}}.topbar-menu-wrap{display:flex;position:relative}.topbar .theme-btn{width:32px;min-width:0;height:32px;min-height:0;color:var(--text-muted);cursor:pointer;background:0 0;border:0;flex-shrink:0;place-items:center;padding:0;display:grid}.topbar .theme-btn:hover{color:var(--text);background:0 0}.topbar .theme-btn:active{transform:scale(.86)}.theme-btn .tt-sun,.theme-btn .tt-moon{grid-area:1/1;transition:opacity .3s,transform .4s cubic-bezier(.4,0,.2,1)}.theme-btn .tt-moon{opacity:0;transform:rotate(90deg)scale(.4)}.theme-btn .tt-sun{opacity:1;transform:rotate(0)scale(1)}body.theme-dark .theme-btn .tt-sun{opacity:0;transform:rotate(-90deg)scale(.4)}body.theme-dark .theme-btn .tt-moon{opacity:1;transform:rotate(0)scale(1)}@media (prefers-reduced-motion:reduce){.theme-btn .tt-sun,.theme-btn .tt-moon{transition:none}}.topbar .profile-circle{border:1px solid var(--border-strong);background:var(--surface);width:32px;min-width:0;height:32px;min-height:0;color:var(--text-muted);cursor:pointer;border-radius:50%;flex-shrink:0;place-items:center;padding:0;display:grid;overflow:hidden}.topbar .profile-circle:hover{background:var(--surface-hover);color:var(--text)}.topbar .profile-circle .profile-pic{object-fit:cover;width:100%;height:100%;display:block}.topbar .premium-badge{color:#fff;border:2px solid var(--bg);pointer-events:none;background:linear-gradient(135deg,#f4cd5e,#d99a1f);border-radius:50%;place-items:center;width:15px;height:15px;display:grid;position:absolute;bottom:-1px;right:-1px}.topbar .premium-badge svg{width:9px;height:9px}.topbar .topbar-menu-wrap .more-menu{left:auto;right:0}.topbar .more-menu{z-index:60;min-width:140px;top:calc(100% + 6px)}.topbar .more-menu button{text-align:left;background:0 0;border:0;width:100%;min-width:0}.topbar .more-menu button:hover{background:var(--surface-hover)}.topbar .more-menu.view-menu button.on{background:var(--surface-hover);font-weight:600}.menu-dismiss{z-index:55;position:fixed;inset:0}.day-pane{flex-direction:column;flex:1 1 0;min-height:0;display:flex;overflow:hidden}.sheet-backdrop{z-index:190;background:#18181b73;animation:.18s fade-in;position:fixed;inset:0}.confirm-dialog{z-index:200;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);width:min(360px,100vw - 32px);box-shadow:var(--shadow-lg);padding:18px;animation:.16s cubic-bezier(.2,.8,.2,1) modal-in;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.confirm-msg{color:var(--text);margin:0 0 14px;font-size:14px;line-height:1.4}.idle-actions{flex-direction:column;gap:8px;display:flex}.idle-actions .btn{width:100%}.confirm-dialog .sheet-actions{border-top:0;padding:0;position:static}.sheet-backdrop.is-confirm{z-index:206}.confirm-dialog.is-confirm{z-index:207}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes pop-in{0%{opacity:0;transform:scale(.96)translateY(4px)}to{opacity:1;transform:scale(1)translateY(0)}}@keyframes sheet-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes modal-in{0%{opacity:0;transform:translate(-50%,-50%)scale(.96)}to{opacity:1;transform:translate(-50%,-50%)scale(1)}}.sheet{z-index:200;left:50%;top:calc(var(--app-offset-top,0px) + var(--app-height,100dvh) * .5);width:calc(100vw - 28px);max-width:440px;max-height:calc(var(--app-height,100dvh) - 24px);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-lg);border-radius:18px;flex-direction:column;animation:.18s cubic-bezier(.2,.8,.2,1) modal-in;display:flex;position:fixed;overflow:hidden;transform:translate(-50%,-50%)}.sheet.sheet-page{left:0;top:var(--app-offset-top,0px);width:100vw;max-width:none;height:var(--app-height,100dvh);max-height:none;box-shadow:none;border:0;border-radius:0;animation:none;transform:none}@keyframes sheet-shake{0%,to{transform:translate(-50%,-50%)}15%{transform:translate(calc(-50% - 9px),-50%)}30%{transform:translate(calc(8px - 50%),-50%)}45%{transform:translate(calc(-50% - 6px),-50%)}60%{transform:translate(calc(4px - 50%),-50%)}78%{transform:translate(calc(-50% - 2px),-50%)}}.sheet.shake{animation:.4s sheet-shake}.sheet:has(.rich-desc.fullscreen){top:var(--app-offset-top,0);width:100vw;height:var(--app-height,100dvh);border:0;border-radius:0;max-width:none;max-height:none;bottom:auto;left:0;right:auto;transform:none}@media (width<=719.98px){.sheet{width:100vw;max-width:none;height:var(--app-height,100dvh);max-height:var(--app-height,100dvh);border:0;border-radius:0}}.field-label{color:var(--text-muted);letter-spacing:.04em;text-transform:uppercase;margin-bottom:6px;font-size:11px;font-weight:600;display:block}.field{flex-direction:column;display:flex}.row{grid-template-columns:1fr 1fr;gap:10px;display:grid}.show-more-btn{color:var(--accent);cursor:pointer;background:0 0;border:0;align-self:flex-start;margin-top:-2px;padding:4px 2px;font-size:14px;font-weight:600}.tk-ed-row{align-items:center;gap:8px;display:flex}.tk-ed-row .input[type=date]{flex:1;min-width:0}.tk-ed-row .input[type=time]{flex-shrink:0;width:auto}.tk-ed-dur{color:var(--text-muted);align-items:center;gap:6px;font-size:13px;display:inline-flex}.tk-ed-dur .input{width:68px}.tk-ed-clear{color:var(--text-muted);cursor:pointer;background:0 0;border:0;padding:2px 0;font-size:12.5px}.tk-ed-loc{align-items:center;gap:8px;display:flex}.tk-ed-loc .input{flex:1;min-width:0}.duration-readout{font-family:var(--font-mono);color:var(--text-subtle);text-align:right;font-size:12px}.duration-row{justify-content:space-between;align-items:center;gap:12px;min-height:24px;padding:2px;display:flex}.duration-row .duration-text{font-family:var(--font-mono);color:var(--text-subtle);font-size:12px}.dur-edit{align-items:center;display:inline-flex;position:relative}.dur-edit .dur-input{text-align:left;appearance:none;-moz-appearance:textfield;background:var(--bg-sunken);border:1px solid var(--border);width:118px;color:var(--text);font-variant-numeric:tabular-nums;border-radius:8px;padding:9px 34px 9px 10px;font-family:inherit;font-size:14px;font-weight:600;transition:border-color .12s,box-shadow .12s}.dur-edit .dur-input:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-ring);outline:none}.dur-edit .dur-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.dur-edit .dur-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.dur-unit{pointer-events:none;font-family:var(--font-mono);color:var(--text-subtle);font-size:12px;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.allday-inline{color:var(--text-muted);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:6px;font-size:13px;display:inline-flex}.allday-inline input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent);cursor:pointer}.input{background:var(--bg-sunken);color:var(--text);border:1px solid #0000;border-radius:10px;outline:none;width:100%;min-height:44px;padding:11px 12px;font-size:14px;transition:border-color .12s,background .12s}.input:disabled{opacity:.45;cursor:not-allowed}.input:focus{border-color:var(--accent);background:var(--surface);box-shadow:0 0 0 3px var(--accent-ring)}textarea.input{resize:none;min-height:64px;font-family:var(--font-sans);line-height:1.4}.swatches{flex-wrap:wrap;gap:6px;display:flex}.swatches .swatch{cursor:pointer;border:0;border-radius:7px;flex-shrink:0;width:22px;height:22px;min-height:0;padding:0;transition:transform .12s;position:relative}.swatch:hover{transform:scale(1.14)}.swatch:active{transform:scale(.92)}.swatch.on:before{content:"";background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M3 6.2 L5.2 8.4 L9 4.4' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") 50%/60% 60% no-repeat;border-radius:7px;position:absolute;inset:0}.swatch-bg{border:1px solid var(--border-strong);color:var(--text-subtle);background-position:50%;background-size:cover;place-items:center;display:grid}.swatch-bg.set{border-color:var(--accent)}.swatch-bg-x{background:var(--text);width:14px;height:14px;color:var(--bg);box-shadow:0 0 0 1.5px var(--surface);border-radius:50%;place-items:center;display:grid;position:absolute;top:-4px;right:-4px}.switch{background:var(--border-strong);border-radius:999px;flex-shrink:0;width:38px;height:22px;transition:background .15s;position:relative}.switch .knob{background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .15s;position:absolute;top:2px;left:2px;box-shadow:0 1px 2px #0003}.switch.on{background:var(--accent)}.switch.on .knob{transform:translate(16px)}.ed-rec-value{background:var(--bg-sunken);border:1px solid var(--border-strong);font-family:var(--font-mono);font-variant-numeric:tabular-nums;color:var(--text);border-radius:8px;align-items:center;gap:7px;margin-left:auto;padding:7px 10px;font-size:14px;font-weight:600;display:inline-flex}.ed-rec-value .rec-dot{background:var(--c-red);border-radius:50%;width:8px;height:8px;animation:1.3s ease-in-out infinite pulse}.ed-dur-live{cursor:pointer;background:0 0;border:0;margin-left:auto;padding:0;display:inline-flex}.ed-dur-live:hover .ed-rec-value{border-color:var(--accent)}.ed-stop-btn{border:1px solid color-mix(in oklab, var(--c-red) 40%, var(--border-strong));height:36px;color:var(--c-red);cursor:pointer;background:0 0;border-radius:999px;flex-shrink:0;align-items:center;gap:6px;padding:0 13px;font-family:inherit;font-size:13px;font-weight:600;transition:background .12s,transform .12s;display:inline-flex}.ed-stop-btn:hover{background:color-mix(in oklab, var(--c-red) 12%, var(--surface))}.ed-stop-btn:active{transform:scale(.97)}.allday-toggle-row{background:var(--bg-sunken);width:100%;color:var(--text);cursor:pointer;border:0;border-radius:10px;justify-content:space-between;align-items:center;min-height:44px;padding:10px 12px;font-size:14px;display:flex}.sheet-head{flex-shrink:0;justify-content:space-between;align-items:center;gap:8px;padding:16px 14px 8px 18px;display:flex}@media (width<=719.98px){.sheet-head{padding-top:calc(16px + var(--safe-top))}}.sheet-title{letter-spacing:-.01em;color:var(--text);margin:0;font-size:18px;font-weight:700}.ed-save-status{color:var(--text-muted);letter-spacing:.02em;white-space:nowrap;align-self:center;margin-right:auto;font-size:11px;font-weight:600}.sheet-head-actions{align-items:center;gap:2px;display:flex;position:relative}.icon-btn{width:34px;height:34px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;transition:background .12s,color .12s;display:grid}.icon-btn:hover{background:var(--surface-hover);color:var(--text)}.sheet-body{min-height:0;padding:4px 18px calc(10px + var(--safe-bottom));flex-direction:column;flex:1;gap:14px;display:flex;overflow-y:auto}.sheet-body.drag-lock{overflow-y:hidden}.field-head{justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px;display:flex}.field-head .field-label{margin-bottom:0}.field-head .swatches{justify-content:flex-end}.field-head .swatches .swatch{width:20px;height:20px}.title-input{letter-spacing:-.01em;font-size:16px;font-weight:600}.desc-loading{border:1px solid var(--border);background:var(--bg-sunken);min-height:80px;color:var(--text-subtle);border-radius:10px;align-items:center;padding:8px 14px;font-size:13px;display:flex}.title-field{position:relative}.title-suggest{z-index:10;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-lg);border-radius:10px;max-height:220px;padding:4px;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto}.title-suggest-item{text-align:left;width:100%;color:var(--text);cursor:pointer;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:0;border-radius:7px;padding:9px 10px;font-size:14px;display:block;overflow:hidden}.title-suggest-item:hover,.title-suggest-item.active{background:var(--surface-hover)}.ed-sheet .sheet-body{background:var(--surface);padding:0 18px calc(14px + var(--safe-bottom));gap:16px}.ed-sheet .sheet-body>:first-child{margin-top:16px}.ed-close-foot{flex-direction:column;gap:6px;margin-top:auto;display:flex}.ed-close-foot .sheet-actions{background:0 0;border-top:0;padding:0}.ed-sheet .sheet-head{padding-bottom:0}.ed-field-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.ed-field-head .swatches{flex-wrap:wrap;justify-content:flex-end;gap:7px}.ed-field-head .swatch{width:20px;height:20px}.ed-section{flex-direction:column;gap:6px;padding:0;display:flex}.ed-sheet .sheet-body>.ed-section:not(:first-child){border-top:1px solid var(--border);padding-top:16px}.ed-label{color:var(--text-muted);font-size:13px;font-weight:600}.ed-card{background:var(--bg-sunken);border:1px solid var(--border);border-radius:8px;transition:border-color .12s,box-shadow .12s}.ed-card:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-ring)}.ed-title-card{align-items:center;display:flex;position:relative}.ed-title-input{min-width:0;color:var(--text);background:0 0;border:0;flex:1;padding:12px 6px 12px 12px;font-size:15px;font-weight:600}.ed-title-input:focus{outline:none}.ed-clear{color:var(--text-subtle);cursor:pointer;background:0 0;border:0;flex-shrink:0;place-items:center;padding:0 10px;display:grid}.ed-clear:active{transform:scale(.9)}.ed-check{border:2px solid var(--border-strong);color:#fff;cursor:pointer;background:0 0;border-radius:5px;flex-shrink:0;place-items:center;width:22px;height:22px;margin:0 2px 0 12px;padding:0;transition:background .12s,border-color .12s,transform .1s;display:grid}.ed-check:active{transform:scale(.9)}.ed-check.on{background:color-mix(in oklab, var(--c-green) 72%, gray);border-color:color-mix(in oklab, var(--c-green) 72%, gray)}.ed-check svg{display:block}.ed-check svg path{stroke-dasharray:26;stroke-dashoffset:26px;transition:stroke-dashoffset .26s 60ms}.ed-check.on svg path{stroke-dashoffset:0}.ed-check+.ed-title-input{padding-left:6px}.ed-title-input.is-done{color:var(--text-muted);text-decoration:line-through}.ed-map-btn{color:var(--text-muted);cursor:pointer;background:0 0;border:0;flex-shrink:0;align-self:stretch;place-items:center;padding:0 12px;display:grid}.ed-map-btn:hover{color:var(--accent)}.ed-map-btn:active{transform:scale(.9)}.ed-title-card .title-suggest{top:calc(100% + 2px)}.ed-time-card{background:0 0;border:0;flex-direction:column;gap:8px;display:flex}.ed-time-card:focus-within{box-shadow:none}.ed-time-row{align-items:center;gap:8px;min-height:40px;display:flex}.ed-time-key{color:var(--text);flex-shrink:0;min-width:44px;font-size:14px;font-weight:600}.ed-dow{color:var(--text-muted);margin-left:auto;font-size:13px;font-weight:500}.ed-date,.ed-time{appearance:none;background:var(--bg-sunken);border:1px solid var(--border);color:var(--text);cursor:pointer;border-radius:8px;flex-shrink:0;padding:9px 10px;font-family:inherit;font-size:14px;font-weight:600;transition:border-color .12s,box-shadow .12s}.ed-date:focus,.ed-time:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-ring);outline:none}.ed-date{width:150px}.ed-time{width:118px}.ed-date-grow{flex:auto;width:auto;min-width:96px}.ed-time-auto{width:92px}.ed-due-left{color:var(--text-muted);flex-shrink:0;font-size:12.5px;font-weight:600}.ed-due-left.overdue{color:var(--c-red)}.ed-due-clear{color:var(--text-muted);cursor:pointer;background:0 0;border:0;flex-shrink:0;padding:0 2px;font-size:20px;line-height:1}.ed-due-clear:hover{color:var(--text)}.ed-date::-webkit-calendar-picker-indicator{opacity:.5;cursor:pointer}.ed-time::-webkit-calendar-picker-indicator{opacity:.5;cursor:pointer}.ed-date:disabled,.ed-time:disabled,.dur-btn:disabled,.dur-input:disabled{opacity:.5;cursor:default;pointer-events:none;border-color:var(--border);box-shadow:none}.ed-foot-row{justify-content:space-between}.ed-timebtn{text-align:left}.ed-timebtn:hover{border-color:var(--accent)}.dur-btn{appearance:none;background:var(--bg-sunken);border:1px solid var(--border);color:var(--text);cursor:pointer;border-radius:8px;padding:9px 14px;font-family:inherit;font-size:14px;font-weight:600;transition:border-color .12s}.dur-btn:hover{border-color:var(--accent)}.ed-duration{align-items:center;gap:8px;display:inline-flex}.ed-dur-label{color:var(--text);font-size:14px;font-weight:600}.ed-desc-card{background:0 0;border:0;padding:0}.ed-desc-card:focus-within{box-shadow:none}.ed-desc-card .rich-desc:focus-within{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-ring)}.ed-budget-card{padding:12px 12px 10px}.ed-select-card{padding:0 10px}.ed-select{appearance:none;width:100%;color:var(--text);cursor:pointer;background:0 0;border:0;padding:11px 2px;font-family:inherit;font-size:15px;font-weight:500}.ed-select::-webkit-calendar-picker-indicator{opacity:.5;cursor:pointer}.ed-sheet .sheet-title{font-size:20px}.more-btn{background:var(--bg-sunken);width:44px;height:44px;color:var(--text-muted);cursor:pointer;border:0;border-radius:10px;flex-shrink:0;place-items:center;transition:background .12s,color .12s;display:grid}.more-btn:hover{background:var(--surface-hover);color:var(--text)}.more-menu{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-lg);z-index:5;border-radius:10px;flex-direction:column;min-width:180px;padding:4px;animation:.14s pop-in;display:flex;position:absolute;top:calc(100% + 4px);right:0}.more-menu button{text-align:left;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:6px;min-height:36px;padding:9px 10px;font-size:13px}.more-menu button:hover{background:var(--surface-hover)}.more-menu button.danger{color:#b91c1c}.nav-drawer-backdrop{z-index:210;background:#0006;animation:.18s fade-in;position:fixed;inset:0}.price-section,.price-lines{flex-direction:column;gap:6px;display:flex}.price-head{grid-template-columns:16px 1fr 78px 78px 24px;align-items:center;gap:6px;padding:0 13px;display:grid;position:relative}.ph-money{color:var(--text-muted);grid-column:1/3;font-size:13px;font-weight:600}.ph-col{text-align:right;color:var(--text-muted);font-size:12px;font-weight:600}.ph-ideal{justify-content:flex-end;align-items:center;gap:4px;display:flex}.ph-help{border:1px solid var(--border-strong);width:15px;height:15px;color:var(--text-subtle);cursor:pointer;background:0 0;border-radius:50%;flex:none;padding:0;font-size:10px;font-weight:700;line-height:1}.ph-help:hover{background:var(--surface-hover);color:var(--text-muted)}.ph-help[aria-expanded=true]{background:var(--accent);border-color:var(--accent);color:#fff}.ph-help-pop{z-index:60;border:1px solid var(--border);background:var(--surface);max-width:300px;box-shadow:var(--shadow-lg,0 8px 24px #0000002e);color:var(--text-muted);border-radius:10px;margin-left:auto;padding:10px 12px;font-size:12px;line-height:1.45;position:absolute;top:calc(100% + 6px);left:13px;right:13px}.ph-help-pop p{margin:0}.ph-help-pop p+p{margin-top:6px}.ph-help-pop strong{color:var(--text);font-weight:600}.price-line{touch-action:pan-y;grid-template-columns:16px 1fr 78px 78px 24px;align-items:center;gap:6px;display:grid}.price-line .input{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;min-height:38px;padding:8px;font-size:13px}.price-line .input:focus{-webkit-user-select:text;user-select:text}.price-line .pl-num{text-align:right;font-family:var(--font-mono)}.price-line .input::placeholder{color:var(--text-subtle);opacity:1}.price-line .pl-label{text-overflow:ellipsis}.pl-sign{cursor:grab;place-items:center;width:100%;height:38px;font-size:16px;font-weight:800;line-height:1;display:grid}.price-lines.dragging .pl-sign{cursor:grabbing}.pl-sign.neg{color:#dc2626}.pl-sign.pos{color:#16a34a}.pl-remove{color:var(--text-subtle);cursor:pointer;background:0 0;border:0;border-radius:8px;height:38px;font-size:18px;line-height:1}.pl-remove:hover{background:var(--surface-hover);color:#b91c1c}.price-lines.dragging .price-line{transition:transform .18s cubic-bezier(.2,.7,.2,1)}.add-line-row{flex-direction:column;margin-top:6px;display:flex}.add-line{color:var(--accent);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:flex-start;align-self:stretch;align-items:center;gap:5px;padding:8px;font-size:13px;font-weight:600;display:flex}.add-line:hover{background:var(--surface-hover)}.al-sign{font-weight:800}.al-sign.neg{color:#dc2626}.al-sign.pos{color:#16a34a}.money-total{border-top:1px solid var(--border);font-family:var(--font-mono);color:var(--text);grid-template-columns:16px 1fr 78px 78px 24px;align-items:center;gap:4px 6px;margin-top:8px;padding-top:8px;font-size:13px;display:grid}.money-total+.money-total{border-top:0;margin-top:2px;padding-top:0}.money-total .mt-label{font-family:var(--font-sans);color:var(--text-muted);grid-column:1/3;font-weight:600}.money-total.income .mt-label{color:#16a34a}.money-total .mt-num{text-align:right;font-weight:600}.sheet-actions{padding:12px 18px calc(12px + var(--safe-bottom));background:var(--surface);border-top:1px solid var(--border);flex-shrink:0;gap:8px;display:flex}.btn{border:1px solid var(--border-strong);background:var(--surface);color:var(--text);border-radius:10px;justify-content:center;align-items:center;min-height:44px;padding:0 14px;font-size:14px;font-weight:500;display:inline-flex}.btn:hover{background:var(--surface-hover)}.btn:active{transform:scale(.98)}.btn.primary{background:var(--accent);color:var(--bg);border-color:var(--accent);flex:1}.btn.danger{color:#b91c1c;border-color:color-mix(in oklab, #b91c1c 35%, var(--border-strong))}.btn.danger:hover{background:color-mix(in oklab, #b91c1c 12%, var(--surface))}.menu-backdrop{z-index:205;position:fixed;inset:0}.menu{z-index:210;left:12px;right:12px;bottom:calc(12px + var(--safe-bottom));background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-lg);border-radius:14px;flex-direction:column;padding:4px;animation:.18s cubic-bezier(.2,.8,.2,1) sheet-up;display:flex;position:fixed}.menu button{text-align:left;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:10px;align-items:center;gap:12px;min-height:44px;padding:12px;font-size:14px;display:flex}.menu button:hover{background:var(--surface-hover)}.menu button.danger{color:#b91c1c}.menu .mi{flex-shrink:0}.menu button:not(.danger) .mi{color:var(--text-muted)}.menu .kbd{font-family:var(--font-mono);color:var(--text-subtle);margin-left:auto;font-size:11px}.menu hr{border:0;border-top:1px solid var(--border);margin:4px 8px}.menu .swatches{flex-wrap:nowrap;justify-content:flex-start;gap:4px;padding:6px 10px 10px}.menu .menu-label{color:var(--text-muted);letter-spacing:.04em;text-transform:uppercase;padding:8px 12px 4px;font-size:11px;font-weight:600}.import-overlay{z-index:400;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#18181b8c;place-items:center;animation:.15s fade-in;display:grid;position:fixed;inset:0}.import-box{background:var(--surface);border:1px solid var(--border);width:min(320px,100vw - 48px);box-shadow:var(--shadow-lg);text-align:center;border-radius:14px;padding:20px}.import-title{color:var(--text);margin-bottom:14px;font-size:15px;font-weight:600}.import-bar{background:var(--bg-sunken);border-radius:999px;height:8px;overflow:hidden}.import-fill{background:var(--accent);border-radius:999px;height:100%;transition:width .2s}.import-count{font-size:13px;font-family:var(--font-mono);font-variant-numeric:tabular-nums;color:var(--text-muted);margin-top:10px}.import-note{color:var(--text-subtle);margin-top:4px;font-size:12px}@media (width>=720px){:root{--time-col-width:42px}.menu{border-radius:10px;width:240px;animation:.14s pop-in;bottom:auto;left:auto;right:auto}.menu button{border-radius:5px;min-height:32px;padding:8px 10px;font-size:13px}}.palette-fallback{z-index:100;background:#18181b66;justify-content:center;align-items:flex-start;padding:9vh 16px 16px;display:flex;position:fixed;inset:0}.palette-fallback>div{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-lg);color:var(--text-muted);border-radius:14px;padding:14px 18px;font-size:13px}
