: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(140px + 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));--launcher-dur:.36s;--launcher-ease:cubic-bezier(.38, 1, .55, 1)}.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)}@media (pointer:coarse){.cal-scroll,.et-scroll{scrollbar-width:none}.cal-scroll::-webkit-scrollbar{display:none}.et-scroll::-webkit-scrollbar{display:none}}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{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>*{animation:.26s cubic-bezier(.3,.85,.35,1) backwards tab-slide-right}.screen[data-dir="-1"]>*{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,.topbar .search-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,.topbar .search-btn:hover{color:var(--text);background:0 0}.topbar .search-btn{margin-left:-4px}.topbar .cloud-status{width:32px;height:32px;color:var(--text-muted);flex-shrink:0;place-items:center;transition:color .2s;display:grid;position:relative}.cloud-status .cloud-badge{background:var(--bg);box-shadow:0 0 0 1.5px var(--bg);border-radius:50%;position:absolute;bottom:3px;right:3px}.cloud-status .cloud-badge.spin{animation:.9s linear infinite cloud-spin}@keyframes cloud-spin{to{transform:rotate(360deg)}}.cloud-status .cloud-slash,.cloud-status .cloud-cut{stroke-dasharray:26;animation:.26s ease-out cloud-slash}@keyframes cloud-slash{0%{stroke-dashoffset:26px}to{stroke-dashoffset:0}}@media (prefers-reduced-motion:reduce){.cloud-status .cloud-slash,.cloud-status .cloud-cut{animation:none}.cloud-status .cloud-badge.spin{animation-duration:3s}}.topbar .cloud-btn{cursor:pointer;background:0 0;border:0;min-width:0;min-height:0;padding:0}.topbar .cloud-btn:hover{color:var(--text);background:0 0}.topbar .cloud-btn:active,.topbar .theme-btn:active,.topbar .search-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}.new-dot{top:var(--new-dot-top,2px);right:var(--new-dot-right,2px);pointer-events:none;background:#ef4444;border-radius:50%;width:7px;height:7px;animation:2.4s ease-out forwards new-dot-life;position:absolute}@keyframes new-dot-life{0%{opacity:0;transform:scale(0)}10%{opacity:1;transform:scale(1.15)}16%,75%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.6)}}.new-dot:after{content:"";background:inherit;opacity:0;border-radius:50%;animation:.8s ease-out .25s 2 new-dot-pulse;position:absolute;inset:0}@keyframes new-dot-pulse{0%{opacity:.5;transform:scale(1)}to{opacity:0;transform:scale(2.6)}}@media (prefers-reduced-motion:reduce){.new-dot{animation-name:new-dot-fade}.new-dot:after{animation:none}}@keyframes new-dot-fade{0%,75%{opacity:1}to{opacity:0}}.day-dots:after{content:"";bottom:var(--dots-bottom,3px);transform:translateX(calc(var(--dots-n,1) * -3px + 1px));background:var(--d1,var(--accent));width:4px;height:4px;box-shadow:6px 0 0 var(--d2,transparent), 12px 0 0 var(--d3,transparent);border-radius:50%;position:absolute;left:50%}.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}.confirm-sub{color:var(--text-muted);text-align:center;margin:-4px 0 2px;font-size:12.5px}.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);box-shadow:none;border:0;border-radius:0}}.sheet-backdrop:not(.is-confirm):after,.app-page:after{content:"";left:0;right:0;top:calc(var(--app-offset-top,0px) + var(--app-height,100dvh));background:var(--surface);height:100vh;position:fixed}@media (width>=720px){.sheet-backdrop:not(.is-confirm):after{content:none}}.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}.show-more-btn[aria-expanded=true]~.ed-section{transition:opacity .16s ease-out,translate .16s ease-out}@starting-style{.show-more-btn[aria-expanded=true]~.ed-section{opacity:0;translate:0 -6px}}@media (prefers-reduced-motion:reduce){.show-more-btn[aria-expanded=true]~.ed-section{transition:none}}.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);font:inherit;font-size:13px;line-height:inherit;cursor:pointer;text-transform:lowercase;background:0 0;border:0;padding:0}.tk-ed-clear:before{content:"("}.tk-ed-clear:after{content:")"}.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[type=search]::-webkit-search-cancel-button{display:none}input[type=search]::-webkit-search-decoration{display:none}.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}.swatches .swatch-bg,.swatches .swatch-bg:hover{background-color:var(--surface-hover);color:var(--text-subtle);background-position:50%;background-size:cover;place-items:center;display:grid}.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)}.seg{background:var(--bg-sunken);border:1px solid var(--border);border-radius:10px;padding:2px;display:inline-flex}.seg button{height:28px;color:var(--text-muted);white-space:nowrap;background:0 0;border:0;border-radius:7px;padding:0 12px;font-size:12px;font-weight:500}.seg button.on{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #0000000f}.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}.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));color:var(--c-red);cursor:pointer;background:0 0;border-radius:8px;flex:none;align-items:center;gap:6px;padding:0 12px;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}.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-head-left{align-items:baseline;gap:5px;min-width:0;display:flex}.ed-allday-head{color:var(--text-muted);cursor:pointer;-webkit-user-select:none;user-select:none;flex:none;align-items:center;gap:7px;font-size:13px;display:inline-flex}.ed-allday-head input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent);cursor:pointer}.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-link{color:var(--accent);text-underline-offset:2px;cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:0;flex-shrink:0;padding:0;font-size:12.5px;font-weight:600;text-decoration:underline}.ed-link:hover{text-decoration-thickness:2px}.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-card .ed-date,.ed-time-card .ed-time,.ed-time-card .dur-btn,.ed-time-card .dur-edit .dur-input,.ed-time-card .ed-rec-value,.ed-time-card .ed-stop-btn{height:40px}.ed-row-locked{cursor:default}.ed-row-locked .ed-date,.ed-row-locked .ed-time{pointer-events:none}.ed-time-key{color:var(--text);white-space:nowrap;flex-shrink:0;min-width:68px;font-size:14px;font-weight:600}.ed-dow{text-align:right;white-space:nowrap;width:28px;color:var(--text-muted);flex:none;margin-left:auto;font-size:13px;font-weight:500;overflow:hidden}.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{flex:0 150px;min-width:96px}.ed-time{flex:0 118px;min-width:84px}@media (width<=380px){.ed-time-card .ed-dow,.ed-time-card .ed-foot-row .ed-dow-slot{display:none}}.ed-due-note-row{gap:8px;padding:0 0 4px;display:flex}.ed-due-note-row:before{content:"";flex-shrink:0;min-width:68px}.ed-due-note{flex:0 276px;align-items:baseline;gap:5px;min-width:188px;display:flex}@media (width<=380px){.ed-due-note{margin-left:auto}}.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-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{cursor:default;pointer-events:none}.ed-date:disabled,.ed-time:disabled,.dur-btn:disabled,.dur-input:disabled,.ed-ghost:not(:focus){box-shadow:none;background:color-mix(in oklab, var(--bg-sunken) 70%, var(--text) 4%);border-color:var(--border-strong);color:color-mix(in oklab, var(--text-muted) 40%, transparent);-webkit-text-fill-color:color-mix(in oklab, var(--text-muted) 40%, transparent);border-style:dashed}.dur-input.ed-ghost::placeholder{color:color-mix(in oklab, var(--text-muted) 40%, transparent)}.ed-foot-row .ed-time-key+*{margin-left:auto}.ed-foot-row .ed-date-slot{flex:0 150px;min-width:0}.ed-foot-row .ed-dow-slot{flex:none;width:28px}.ed-foot-row .ed-dur-field{flex:0 118px;min-width:0}.ed-foot-row .ed-dur-field.ed-dur-live{min-width:max-content}.ed-foot-row .ed-stop-slot{flex:0 150px;justify-content:flex-end;min-width:0;display:flex}.ed-foot-row .dur-btn{text-align:left;padding:9px 10px}.ed-foot-row .dur-edit .dur-input{width:100%}.ed-foot-row .ed-dur-live .ed-rec-value{justify-content:space-between;width:100%;margin-left:0}.ed-timebtn{text-align:left;white-space:nowrap}.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-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:focus-within{border-color:var(--border);box-shadow:none}.ed-budget-card{background-image:var(--pl-rule), var(--pl-rule);background-size:1px 100%;background-position:right var(--pl-rule-a) top, right var(--pl-rule-b) top;background-repeat:no-repeat;padding:12px 8px 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-fixed{color:var(--text-muted);padding:11px 2px;font-size:15px;font-weight:500;display:block}.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{--pl-sign:16px;--pl-num:66px;--pl-gap:6px;--pl-inset:8px;--pl-rule-a:calc(var(--pl-inset) + var(--pl-num) + var(--pl-gap) / 2);--pl-rule-b:calc(var(--pl-rule-a) + var(--pl-num) + var(--pl-gap));--pl-rule:repeating-linear-gradient(var(--border-strong) 0 2px, transparent 2px 6px);flex-direction:column;gap:6px;display:flex}.price-head,.price-line,.money-total{grid-template-columns:var(--pl-sign) 1fr var(--pl-num) var(--pl-num)}.price-lines{flex-direction:column;gap:6px;display:flex}.price-head{gap:var(--pl-gap);align-items:center;padding:0 9px;display:grid;position:relative}.ph-money{color:var(--text-muted);grid-column:1/3;margin-left:-9px;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-ideal .ph-help{order:-1}.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{gap:var(--pl-gap);width:100%;min-height:38px;color:inherit;font:inherit;text-align:left;cursor:pointer;touch-action:pan-y;background:0 0;border:0;border-radius:8px;align-items:center;padding:0;display:grid}.price-line:hover{background:var(--surface-hover)}.price-line:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.price-line.pl-flash{position:relative}.price-line.pl-flash:after{content:"";background:var(--accent-ring);box-shadow:inset 0 0 0 1.5px var(--accent);pointer-events:none;border-radius:8px;animation:1.6s ease-out forwards pl-flash;position:absolute;inset:-3px -6px}@keyframes pl-flash{0%,45%{opacity:1}to{opacity:0}}@media (prefers-reduced-motion:reduce){.price-line.pl-flash:after{animation-duration:.01ms}}.price-line .pl-num{font-family:var(--font-mono);text-align:right;text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.price-line .pl-num.muted{color:var(--text-subtle)}.pl-field{grid-column:1/3;align-items:center;gap:5px;min-width:0;display:flex}.pl-label{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:13px;overflow:hidden}.pl-label.empty{color:var(--text-subtle)}.price-line .pl-xnum{grid-column:3/5}.pl-sign.xfer{color:#2563eb;font-weight:700}.pl-xwallets{flex:none;align-items:center;gap:2px;display:inline-flex}.pl-xarrow{color:var(--text-muted);font-size:11px;line-height:1}.pl-sign{text-align:center;flex:none;width:1ch;font-size:16px;font-weight:800;line-height:1}.pl-sign.neg{color:#dc2626}.pl-sign.pos{color:#16a34a}.pl-wallet{flex:none;place-items:center;width:10px;height:10px;display:grid}.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 0;font-size:13px;font-weight:600;display:flex}.add-line:hover{background:var(--surface-hover)}.al-sign{text-align:center;flex:none;width:1ch;font-weight:800}.al-sign.neg{color:#dc2626}.al-sign.pos{color:#16a34a}.money-total{gap:4px var(--pl-gap);border-top:1px solid var(--border);font-family:var(--font-mono);color:var(--text);align-items:center;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:#dc2626;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:disabled{color:var(--text-subtle);cursor:default}.menu button:disabled:hover{background:0 0}.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;background:#18181b99;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;width:100%;height:100%;transition:transform .2s;transform:translate(-100%)}.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:has(.swatch-bg){width:260px}.menu button{border-radius:5px;min-height:32px;padding:8px 10px;font-size:13px}}.palette-fallback{z-index:330;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}html.ui-zoomed,html.ui-zoomed>body{touch-action:auto}.zoom-escape{z-index:600;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;background:#020617f7;position:fixed;inset:0}.zoom-escape,.zoom-escape *{touch-action:pinch-zoom}.zoom-escape-card .ze-keep{touch-action:none}.zoom-escape-card{left:var(--vv-x,0px);top:var(--vv-y,0px);width:var(--vv-w,100%);height:var(--vv-h,100%);font-size:calc(16px / var(--vv-s,1));color:#fff;text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:.6em;padding:0 1.5em;display:flex;position:absolute}.zoom-escape-card svg{width:2.5em;height:2.5em}.zoom-escape-card .ze-title{margin:0;font-size:1.0625em;font-weight:600}.zoom-escape-card .ze-hint{opacity:.8;margin:0;font-size:.875em}.zoom-escape-card .ze-pct{font-variant-numeric:tabular-nums;margin:.2em 0 0;font-size:1.5em;font-weight:600}.zoom-escape-card .ze-keep{color:#fff;background-color:#ffffff24;background-image:linear-gradient(#fff6,#fff6);background-repeat:no-repeat;background-size:0% 100%;border:1px solid #ffffff47;min-height:2.8em;padding:0 1.2em;font-size:.875em;transition:background-size .18s linear;position:absolute;bottom:2em}.zoom-escape-card .ze-keep:active{transition:background-size var(--ze-hold,.9s) linear;background-size:100% 100%}.title-form{display:contents}
