:root{--bg: #f5f5f5;--surface: #ffffff;--surface-2: #f0f0f0;--text: #1a1a1a;--text-muted: #666;--border: #e0e0e0;--primary: #4f46e5;--primary-hover: #4338ca;--primary-soft: rgba(79, 70, 229, .12);--success: #16a34a;--success-soft: #dcfce7;--success-text: #15803d;--warning: #f59e0b;--warning-soft: #fef3c7;--warning-text: #b45309;--danger: #ef4444;--danger-soft: #fee2e2;--danger-text: #b91c1c;--neutral: #9ca3af;--neutral-soft: #cbd5e1;--callout-cyan: #0891b2;--callout-cyan-soft: #ecfeff;--callout-cyan-text: #0e7490;--callout-purple: #9333ea;--callout-purple-soft: #faf5ff;--callout-purple-text: #7e22ce;--fs-xs: .72rem;--fs-sm: .85rem;--fs-md: .95rem;--fs-base: 1rem;--fs-lg: 1.15rem;--fs-xl: 1.3rem;--fs-2xl: 1.8rem;--fs-display: 2.4rem;--sp-1: 4px;--sp-2: 8px;--sp-3: 12px;--sp-4: 16px;--sp-5: 20px;--sp-6: 24px;--sp-8: 32px;--radius-sm: 8px;--radius: 14px;--radius-lg: 20px;--radius-pill: 999px;--control-h: 44px;--control-h-sm: 36px;--shadow: 0 2px 12px rgba(0,0,0,.08);--shadow-lg: 0 8px 32px rgba(0,0,0,.12);--z-bars: 5;--z-drawer: 20;--z-search: 25;--z-sheet: 30;--z-toast: 1000;--z-lock: 2000;font-family:system-ui,-apple-system,sans-serif;font-size:16px;color:var(--text);background:var(--bg)}body{min-height:100dvh;overflow-x:clip;-webkit-font-smoothing:antialiased}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{overflow-x:clip}.app{width:100%;max-width:480px;margin-inline:auto;min-height:100dvh;display:flex;flex-direction:column;--shell-top: max(24px, env(safe-area-inset-top));padding:24px max(16px,env(safe-area-inset-right)) 40px max(16px,env(safe-area-inset-left));padding-top:var(--shell-top);padding-bottom:max(40px,env(safe-area-inset-bottom))}.app--vault{padding:0;min-height:0;height:100dvh}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 24px;border:none;border-radius:var(--radius);font-size:1rem;font-weight:600;font-family:inherit;cursor:pointer;transition:background .15s,transform .1s;width:100%}.btn:active{transform:scale(.98)}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-primary:disabled{opacity:.45;cursor:not-allowed}.btn-secondary{background:var(--surface-2);color:var(--text)}.btn-secondary:hover{background:var(--border)}.btn-outline{background:none;color:var(--text-muted);border:1px solid var(--border)}.btn-danger{background:var(--danger);color:#fff}.btn--sm{width:auto;padding:8px 16px;font-size:var(--fs-sm);border-radius:var(--radius-sm)}.icon-btn{width:var(--control-h);height:var(--control-h);flex:none;display:inline-flex;align-items:center;justify-content:center;background:none;border:none;border-radius:var(--radius-pill);color:var(--text);cursor:pointer;font-family:inherit}.icon-btn:active{background:var(--surface-2)}.icon-btn:disabled{color:var(--border);cursor:default}.icon-btn.is-active{color:var(--primary)}.icon-btn--sm{width:var(--control-h-sm);height:var(--control-h-sm)}.icon-btn--pill{background:var(--surface);box-shadow:var(--shadow-lg)}.icon-btn--boxed{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface)}.icon-btn--danger{color:var(--danger)}.icon-btn--danger:active{background:var(--danger-soft)}@media(hover:hover){.icon-btn,[data-tip]{position:relative}[data-tip]:after{content:attr(data-tip)}.icon-btn[aria-label]:after{content:attr(aria-label)}.icon-btn[aria-label]:after,[data-tip]:after{position:absolute;top:calc(100% + 6px);left:50%;transform:translate(-50%);padding:5px 9px;border-radius:var(--radius-sm);background:var(--text);color:var(--bg);font-size:.78rem;font-weight:500;line-height:1.2;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .12s;z-index:40}.chip[data-tip]:after{font-weight:500}.icon-btn[aria-label]:hover:after,[data-tip]:hover:after{opacity:1;transition-delay:.45s}.icon-btn:disabled:after,.icon-btn--no-tip:after{display:none}}.input{width:100%;font-family:inherit;font-size:1rem;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);resize:vertical;transition:border-color .15s,box-shadow .15s}.input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}.input::placeholder{color:var(--text-muted)}.field{display:flex;flex-direction:column;gap:6px}.field-label{font-size:var(--fs-sm);font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.field-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--sp-4) var(--sp-4);align-items:end}.field-grid--3{grid-template-columns:repeat(3,1fr)}.chip-row{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2)}.chip{background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius-pill);padding:8px 14px;font-family:inherit;font-size:var(--fs-sm);font-weight:600;color:var(--text);cursor:pointer;transition:border-color .15s,color .15s,background .15s,transform .1s}.chip:active{transform:scale(.97)}.chip--md{padding:10px 18px;font-size:var(--fs-md)}.chip--active{border-color:var(--primary);color:var(--primary);background:var(--primary-soft)}.chip--subtle{border-style:dashed;border-color:var(--text-muted);color:var(--text-muted);background:var(--surface)}.segmented{display:flex;width:fit-content;gap:4px;background:var(--surface-2);border-radius:var(--radius-pill);padding:3px}.segmented-tab{background:none;border:none;border-radius:var(--radius-pill);padding:5px 11px;font-family:inherit;font-size:.78rem;font-weight:600;color:var(--text-muted);cursor:pointer;transition:background .15s,color .15s}.segmented-tab--active{background:var(--surface);color:var(--primary);box-shadow:var(--shadow)}.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.stat-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px 10px;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}.stat-card-label{font-size:.8rem;font-weight:600;color:var(--text-muted)}.stat-card-value{font-size:var(--fs-2xl);font-weight:800;line-height:1.1;color:var(--text)}.stat-card-max{font-size:.9rem;font-weight:600;color:var(--text-muted)}.stat-card-note{font-size:.75rem;font-weight:600;color:var(--text-muted)}.stat-card-target,.stat-card-caption{font-size:var(--fs-xs);color:var(--text-muted);line-height:1.2}.stat-card--green{border-top:3px solid var(--success)}.stat-card--yellow{border-top:3px solid var(--warning)}.stat-card--red{border-top:3px solid var(--danger)}.stat-card-value--green{color:var(--success)}.stat-card-value--yellow{color:var(--warning-text)}.stat-card-value--red{color:var(--danger-text)}.sheet-scrim{position:fixed;inset:0;background:#00000059;display:flex;align-items:flex-end;justify-content:center;z-index:var(--z-sheet)}.sheet{width:100%;max-width:480px;max-height:80dvh;overflow-y:auto;background:var(--surface);border-radius:var(--radius) var(--radius) 0 0;padding:12px 12px max(16px,env(safe-area-inset-bottom));box-shadow:var(--shadow-lg);animation:sheet-in .2s ease-out;-webkit-user-select:none;user-select:none}@keyframes sheet-in{0%{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}.sheet-title{text-align:center;font-weight:600;color:var(--text-muted);font-size:.9rem;padding:6px 0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sheet-item{display:flex;align-items:center;gap:10px;width:100%;padding:14px 16px;background:none;border:none;border-radius:var(--radius-sm);font-family:inherit;font-size:1.05rem;color:var(--text);text-align:left;cursor:pointer}.sheet-item:active{background:var(--surface-2)}.sheet-item:disabled{color:var(--border);cursor:default}.sheet-item.is-danger{color:var(--danger)}.sheet-item.is-primary{color:var(--primary);font-weight:600}.sheet-item.is-current{color:var(--text-muted)}.sheet-cancel{justify-content:center;color:var(--text-muted);margin-top:4px}.sheet-actions{display:flex}.sheet-actions .sheet-item{justify-content:center}.toast{position:fixed;bottom:max(32px,calc(env(safe-area-inset-bottom) + 16px));left:50%;transform:translate(-50%);background:var(--text);color:var(--bg);padding:10px 24px;border-radius:var(--radius);font-size:.95rem;font-weight:500;box-shadow:var(--shadow-lg);z-index:var(--z-toast);animation:toast-in .25s ease-out}@keyframes toast-in{0%{opacity:0;transform:translate(-50%) translateY(12px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.app--vault .toast{bottom:calc(max(16px,env(safe-area-inset-bottom)) + 64px + var(--vault-kb, 0px))}.offline-badge{position:fixed;top:env(safe-area-inset-top);left:50%;transform:translate(-50%);background:var(--warning-soft);color:var(--warning-text);padding:2px var(--sp-3);border-radius:0 0 var(--radius) var(--radius);font-size:var(--fs-xs);font-weight:600;white-space:nowrap;pointer-events:none;z-index:var(--z-toast)}.save-state{display:inline-flex;align-items:center;min-width:14px;min-height:14px;font-size:var(--fs-xs);font-weight:500;color:var(--text-muted)}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spin{animation:none}}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.save-state--saved{color:var(--success-text)}.save-state--error{color:var(--danger-text)}.empty-state{display:flex;flex-direction:column;gap:4px;padding:24px 16px;text-align:center;color:var(--text-muted)}.empty-state-hint{font-size:var(--fs-sm)}.status-tag{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;padding:3px 8px;border-radius:999px}.status-tag--draft{background:var(--warning-soft);color:var(--warning-text)}.status-tag--done{background:var(--success-soft);color:var(--success-text)}.scale-field{display:flex;flex-direction:column;gap:8px}.scale-head{display:flex;align-items:baseline;justify-content:space-between}.scale-label{font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.scale-value{font-size:1.4rem;font-weight:800;color:var(--text)}.scale-max{font-size:.9rem;font-weight:600;color:var(--text-muted)}.scale-slider{-webkit-appearance:none;appearance:none;width:100%;height:8px;border-radius:999px;background:var(--surface-2);outline:none;cursor:pointer;touch-action:none}.scale-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:26px;height:26px;border-radius:50%;background:var(--primary);border:3px solid #fff;box-shadow:var(--shadow);cursor:pointer}.scale-slider::-moz-range-thumb{width:26px;height:26px;border-radius:50%;background:var(--primary);border:3px solid #fff;box-shadow:var(--shadow);cursor:pointer}.scale-field--default .scale-value{color:var(--text-muted);opacity:.55}.scale-field--default .scale-slider::-webkit-slider-thumb{background:var(--surface);border-color:var(--text-muted);box-shadow:none}.scale-field--default .scale-slider::-moz-range-thumb{background:var(--surface);border-color:var(--text-muted);box-shadow:none}.scale-field--empty .scale-value{color:var(--text-muted)}.scale-field--empty .scale-slider::-webkit-slider-thumb{opacity:0}.scale-field--empty .scale-slider::-moz-range-thumb{opacity:0}.scale-field--compact .scale-value{font-size:1.05rem}.scale-field--compact .scale-label{min-width:0}.btn-link{background:none;border:none;font-family:inherit;font-size:.9rem;font-weight:500;color:var(--primary);cursor:pointer;padding:4px}.btn-link--danger{color:var(--danger)}.screen{flex:1;width:100%;display:flex;flex-direction:column;gap:var(--sp-6)}.screen-header{position:sticky;top:0;z-index:var(--z-bars);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin:calc(-1 * var(--shell-top)) -4px 0;padding-top:max(12px,env(safe-area-inset-top));pointer-events:none}.screen-header>*{pointer-events:auto}.screen-pill{grid-column:1;justify-self:start;display:flex;gap:4px;padding:0 4px;background:var(--surface);border-radius:var(--radius-pill);box-shadow:var(--shadow-lg)}.screen-pill--end{grid-column:3;justify-self:end}.screen-status{grid-column:2;padding:4px 10px;border-radius:var(--radius-pill);background:var(--surface);box-shadow:var(--shadow);font-size:var(--fs-sm);font-weight:600;color:var(--text-muted);font-variant-numeric:tabular-nums}@media(hover:hover){.screen-pill:not(.screen-pill--end) .icon-btn:first-child:after{left:0;transform:none}.screen-pill--end .icon-btn:last-child:after{left:auto;right:0;transform:none}}.rule{width:100%;border:none;border-top:1px solid var(--border)}.pull-up{margin-top:calc(-1 * var(--sp-3))}.section-heading{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2) var(--sp-3)}.section-heading-icon{flex:none;color:var(--primary)}.section-heading-title{flex:1;min-width:0;font-size:var(--fs-lg);font-weight:700;letter-spacing:-.01em}.section-heading-meta{font-size:var(--fs-md);font-weight:400;color:var(--text-muted)}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.card-title{font-size:.95rem;font-weight:700;display:flex;align-items:baseline;gap:8px}.card-sub{font-size:.75rem;font-weight:500;color:var(--text-muted)}.home{flex:1;width:100%;display:flex;flex-direction:column;gap:var(--sp-6)}.home-header{display:flex;align-items:center;gap:var(--sp-3)}.home-logo svg{display:block;width:44px;height:44px}.home-title{font-size:var(--fs-xl);font-weight:700;letter-spacing:-.01em}.home-list{display:flex;flex-direction:column;gap:var(--sp-3)}.home-card{display:flex;align-items:center;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding-right:var(--sp-2)}.home-card-main{flex:1;min-width:0;display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-4);background:none;border:none;border-radius:var(--radius);font-family:inherit;text-align:left;color:var(--text);cursor:pointer}.home-card-main:active{background:var(--surface-2)}.home-card-icon{flex:none;color:var(--primary)}.home-card-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.home-card-title{font-size:var(--fs-lg);font-weight:700}.home-card-status{font-size:var(--fs-sm);color:var(--text-muted)}.home-card-status--done{display:inline-flex;align-items:center;gap:4px;color:var(--success-text);font-weight:600}.home-card-chevron{flex:none;color:var(--text-muted)}.home-card .icon-btn{color:var(--text-muted)}.card-form{background:var(--surface);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:16px}.form-error{color:var(--danger);font-size:.875rem}.card-search{display:flex;align-items:center;gap:10px}.card-search .input{flex:1}.card-search-count{font-size:.85rem;color:var(--text-muted);white-space:nowrap}.card-list{display:flex;flex-direction:column;gap:10px}.card-list-item{background:var(--surface);border-radius:var(--radius);padding:14px 16px;box-shadow:var(--shadow);display:flex;align-items:center;gap:12px}.card-list-text{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}.card-list-front{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-list-back{font-size:.875rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-list-actions{display:flex;flex-shrink:0}.card-list-actions .icon-btn{color:var(--text-muted)}.card-list-item--editing{flex-direction:column;align-items:stretch;gap:8px}.card-edit-fields{display:flex;flex-direction:column;gap:6px;flex:1}.card-edit-textarea{width:100%}.card-edit-textarea--back{color:var(--primary)}.flashcard--editing{cursor:default}.card-edit-actions{display:flex;gap:8px;justify-content:flex-end}.flashcard{background:var(--surface);border-radius:20px;box-shadow:var(--shadow-lg);padding:40px 28px;width:100%;min-height:260px;display:flex;flex-direction:column;justify-content:center;cursor:pointer;transition:box-shadow .15s,transform .15s;-webkit-user-select:none;user-select:none}.flashcard:not(.flashcard--revealed):hover{box-shadow:0 12px 40px #4f46e526;transform:translateY(-2px)}.flashcard--revealed{cursor:default}.flashcard--revealed .card-text{-webkit-user-select:text;user-select:text}.flashcard-inner{display:flex;flex-direction:column;gap:0}.flashcard-front,.flashcard-back{display:flex;flex-direction:column;align-items:center;gap:16px}.card-text{font-size:1.5rem;font-weight:600;text-align:center;line-height:1.4;white-space:pre-wrap}.card-text--back{color:var(--primary);text-align:left}.tap-hint{font-size:.8rem;color:var(--text-muted);font-weight:400}.divider{width:48px;height:2px;background:var(--border);margin:20px auto;border-radius:2px}.rating-row{display:flex;gap:8px;justify-content:center}.rating-btn{flex:1;background:var(--surface);border:2px solid var(--border);border-radius:var(--radius);padding:12px 8px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:6px;font-family:inherit;font-size:1.8rem;line-height:1;transition:border-color .15s,background .15s,transform .1s}.rating-btn>svg{color:var(--text-muted)}.rating-btn:hover{transform:translateY(-2px)}.rating-btn:active{transform:scale(.96)}.rating-label{font-size:.55rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.rating-btn--archive:hover{border-color:#f59e0b;background:#fef3c7}.rating-btn--again:hover{border-color:#f97316;background:#fff7ed}.rating-btn--hard:hover{border-color:#eab308;background:#fefce8}.rating-btn--easy:hover{border-color:#22c55e;background:#f0fdf4}.congrats-screen{flex:1;display:flex;align-items:center;justify-content:center}.congrats-content{text-align:center;display:flex;flex-direction:column;align-items:center;gap:16px}.congrats-icon{font-size:4rem;line-height:1}.congrats-content h2{font-size:1.8rem;font-weight:800}.congrats-content p{font-size:1rem;color:var(--text)}.congrats-content .congrats-sub{color:var(--text-muted);font-size:.9rem;margin-bottom:8px}.login-screen{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px}.login-screen h1{font-size:2.4rem;font-weight:800;letter-spacing:-.02em}.login-screen .btn{max-width:280px}.login-error{color:var(--danger);font-size:.9rem;text-align:center}.lock-screen{position:fixed;inset:0;z-index:var(--z-lock);background:var(--bg);display:flex;align-items:center;justify-content:center;padding:24px max(16px,env(safe-area-inset-right)) max(40px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}.lock-screen-body{width:100%;max-width:280px;display:flex;flex-direction:column;align-items:center;gap:24px}.lock-screen-body h1{font-size:2.4rem;font-weight:800;letter-spacing:-.02em}.lock-screen-hint{color:var(--text-muted);font-size:.95rem;text-align:center}.report-range{display:flex;justify-content:center;padding:4px 0 12px}.job-log{width:100%;display:flex;flex-direction:column;gap:24px}.date-picker{display:flex;align-items:center}.date-field{display:flex;flex:none;align-items:center;gap:12px}.date-input{width:150px;flex:none}.date-stepper{display:flex;flex:none;align-items:stretch;gap:6px}.date-stepper .icon-btn{height:auto}.date-status{display:flex;align-items:center;gap:8px}.screen-status:has(>.date-status){padding:0;background:none;box-shadow:none}.status-slot{display:inline-grid;justify-items:center}.status-slot>*{grid-area:1 / 1}.status-slot--spacer{visibility:hidden}.daytype-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.daytype-row .chip-row{justify-content:flex-end}.location-other{flex:none;align-self:stretch;width:calc(10ch + 26px);font-size:.9rem;padding-top:0;padding-bottom:0}.spark-what{width:100%;margin-top:8px;font-size:.9rem}.note-input{line-height:1.5}.mood-section{display:flex;flex-direction:column;gap:12px}.mood-emoji{margin-right:6px;font-size:1.1rem;line-height:1}.health-tracker{width:100%;display:flex;flex-direction:column;gap:var(--sp-5)}.health-section{display:flex;flex-direction:column;gap:12px}.health-stats{width:100%;display:flex;flex-direction:column;gap:24px}.stats-section{display:flex;flex-direction:column;gap:14px}.job-stats{width:100%;display:flex;flex-direction:column;gap:24px}.job-stats-span{font-size:.9rem;color:var(--text-muted)}.trend-block{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px 16px;display:flex;flex-direction:column;gap:14px}.trend-rows{display:flex;flex-direction:column;gap:10px}.trend-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px}.trend-label{font-size:.9rem;color:var(--text-muted)}.trend-recent{font-size:1.1rem;font-weight:700}.trend-delta{font-size:.8rem;font-weight:600;color:var(--text-muted);white-space:nowrap;min-width:64px;text-align:right}.trend-delta--good{color:var(--success)}.trend-delta--bad{color:var(--danger)}.dist-rows{display:flex;flex-direction:column;gap:8px}.dist-row{display:grid;grid-template-columns:88px 1fr auto;align-items:center;gap:10px}.dist-label{display:flex;align-items:center;gap:6px;font-size:.85rem;font-weight:500}.dist-emoji{font-size:1rem}.dist-bar-track{background:var(--surface-2);border-radius:999px;height:12px;overflow:hidden}.dist-bar-fill{height:100%;border-radius:999px;min-width:2px;transition:width .3s}.dist-count{font-size:.85rem;font-weight:700;color:var(--text-muted);min-width:6.5em;text-align:right;font-variant-numeric:tabular-nums}.dist-share{font-weight:500}.timeline-wrap{display:flex;align-items:stretch}.timeline-yaxis{width:30px;flex-shrink:0;height:130px;padding:5px 6px 5px 0;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;font-size:.68rem;color:var(--text-muted)}.timeline-svg{width:100%;height:130px;display:block}.timeline-plot{position:relative;flex:1;min-width:0}.note-marks{position:relative;height:14px;margin-top:2px}.note-mark{position:absolute;top:4px;width:7px;height:7px;padding:0;margin-left:-3.5px;border:none;border-radius:2px;background:var(--text-muted);opacity:.55;cursor:pointer;transition:opacity .15s,transform .15s}.note-mark:hover,.note-mark:focus-visible,.note-mark--open{opacity:1;transform:scale(1.5);outline:none}.note-bubble{position:absolute;bottom:20px;z-index:2;width:max-content;max-width:260px;display:flex;flex-direction:column;gap:4px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:0 4px 14px #0000001f;text-align:left}.note-bubble-head{display:flex;gap:5px;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.note-bubble-text{font-size:.85rem;line-height:1.45;color:var(--text);white-space:pre-wrap}.timeline-hit{fill:transparent;cursor:pointer}.timeline-dot-open{stroke:var(--surface);stroke-width:2}.point-bubble{position:absolute;z-index:2;width:max-content;display:flex;flex-direction:column;gap:2px;padding:6px 9px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:0 4px 14px #0000001f;text-align:left;pointer-events:none}.point-bubble-head{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.point-bubble-value{display:flex;align-items:center;gap:6px;font-size:.85rem;color:var(--text)}.point-bubble-value strong{font-variant-numeric:tabular-nums}.timeline-axis{stroke:var(--border);stroke-width:1}.timeline-grid{stroke:var(--border);stroke-width:1;opacity:.5}.chart-ticks{display:flex;justify-content:space-between;font-size:.72rem;color:var(--text-muted);margin-top:-8px;padding-left:30px}.chart-ticks--single{justify-content:center}.chart-legend{display:flex;gap:16px;flex-wrap:wrap}.legend-item{display:flex;align-items:center;gap:6px;font-size:.8rem;color:var(--text-muted)}.legend-toggle{display:inline-flex;align-items:center;gap:6px;font-family:inherit;font-size:.8rem;font-weight:600;color:var(--text);background:none;border:none;padding:4px 2px;cursor:pointer;transition:opacity .15s,color .15s}.legend-toggle--off{color:var(--text-muted);opacity:.55;text-decoration:line-through}.legend-dot{width:10px;height:10px;border-radius:50%}.bucket-summary{display:flex;gap:6px}.bucket-summary--compact{gap:4px}.bucket-summary--compact .bucket-summary-pill{padding:5px 8px;gap:5px}@media(max-width:359px){.bucket-summary{gap:4px}.bucket-summary .bucket-summary-pill{padding:5px 8px;gap:5px}.bucket-summary-word{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}.screen-status:has(>.bucket-summary){padding:0;background:none;box-shadow:none}.bucket-summary-pill{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:600;padding:5px 12px;border-radius:999px;background:var(--surface-2);color:var(--text-muted)}.bucket-year-group{display:flex;flex-direction:column;gap:10px}.bucket-year-head{display:flex;align-items:baseline;justify-content:space-between;border-bottom:1px solid var(--border);padding-bottom:6px}.bucket-year{font-size:1.3rem;font-weight:800;letter-spacing:-.01em}.bucket-year-count{font-size:.85rem;font-weight:500;color:var(--text-muted)}.bucket-item{background:var(--surface);border-radius:var(--radius);padding:12px 14px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px}.bucket-item--inactive{opacity:.6}.bucket-item-top{display:flex;align-items:center;gap:9px}.bucket-status-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.bucket-status-dot--active{background:var(--primary)}.bucket-status-dot--paused{background:var(--warning)}.bucket-status-dot--complete{background:var(--success)}.bucket-status-dot--inactive{background:var(--neutral)}.bucket-item-title{flex:1;font-weight:600;font-size:.98rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.horizon-chip{flex-shrink:0;font-size:.7rem;font-weight:700;padding:3px 9px;border-radius:999px;letter-spacing:.02em}.horizon-chip--short{background:#ccfbf1;color:#0f766e}.horizon-chip--mid{background:#dbeafe;color:#1d4ed8}.horizon-chip--long{background:var(--primary-soft);color:var(--primary)}.horizon-chip--epic{background:#ffe4e6;color:#be123c}.bucket-item-note{margin:-2px 0 0 19px;font-size:.85rem;line-height:1.45;color:var(--text-muted);white-space:pre-wrap;overflow-wrap:anywhere}.bucket-item-actions{display:flex;flex-shrink:0}.bucket-item-actions .icon-btn{color:var(--text-muted)}.bucket-item-bar{display:flex;align-items:center;gap:10px}.bucket-bar-track{flex:1;background:var(--surface-2);border-radius:999px;height:10px;overflow:hidden}.bucket-bar-fill{height:100%;border-radius:999px;min-width:2px;transition:width .3s}.bucket-bar-fill--active{background:var(--primary)}.bucket-bar-fill--paused{background:var(--warning)}.bucket-bar-fill--complete{background:var(--success)}.bucket-bar-fill--inactive{background:var(--neutral-soft)}.bucket-bar-pct{font-size:.8rem;font-weight:700;color:var(--text-muted);min-width:38px;text-align:right}.bucket-bar-slider{-webkit-appearance:none;appearance:none;flex:1;height:10px;border-radius:999px;outline:none;cursor:pointer;touch-action:none}.bucket-bar-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:var(--primary);border:3px solid #fff;box-shadow:var(--shadow);cursor:pointer}.bucket-bar-slider::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:var(--primary);border:3px solid #fff;box-shadow:var(--shadow);cursor:pointer}.bucket-notes{display:flex;flex-direction:column;gap:6px;margin-left:19px}.bucket-notes-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.bucket-note{display:flex;align-items:flex-start;gap:4px}.bucket-note-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px;padding:7px 10px;border-radius:var(--radius-sm);background:var(--surface-2);font-size:.85rem;line-height:1.45}.bucket-note-date{font-size:.72rem;font-weight:600;color:var(--text-muted);letter-spacing:.02em}.bucket-note-text{white-space:pre-wrap;overflow-wrap:anywhere}.bucket-note .icon-btn{color:var(--text-muted)}.bucket-note-form{display:flex;flex-direction:column;gap:8px}.bucket-notes-foot{display:flex;justify-content:flex-end;gap:8px;margin-left:-4px}.bucket-notes-foot .btn-link:first-child:not(:last-child){margin-right:auto}.bucket-form{background:var(--surface);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}.bucket-form-fields{display:flex;flex-direction:column;gap:16px}.bucket-row{display:flex;gap:12px}.bucket-row>*{flex:1;min-width:0}.bucket-span{display:flex;gap:8px;align-items:center}.bucket-input--span{width:64px;flex-shrink:0}.bucket-progress-head{display:flex;align-items:center;gap:8px}.bucket-progress-val{color:var(--primary);font-size:.95rem;font-weight:700;text-transform:none;letter-spacing:normal}.bucket-form-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end}.bucket-delete-link{margin-right:auto}.screen-status:has(>.rem-sync){padding:0;background:none;box-shadow:none}.rem-sync{background:var(--surface);box-shadow:var(--shadow-lg)}.rem-sync--ok{color:var(--success-text)}.rem-sync--warn{color:var(--warning-text)}.rem-views{display:flex;gap:var(--sp-2);overflow-x:auto;scrollbar-width:none;margin-inline:-16px;padding-inline:16px}.rem-views::-webkit-scrollbar{display:none}.rem-views .chip{flex:none;display:inline-flex;align-items:center;gap:6px}.rem-list-dot{width:8px;height:8px;border-radius:50%}.rem-add{display:flex;flex-direction:column;gap:var(--sp-2)}.rem-add-row{display:flex;gap:var(--sp-2)}.rem-add-dates{display:flex;flex-wrap:wrap;gap:var(--sp-2)}.rem-date-chip{position:relative;overflow:hidden}.rem-date-chip input{position:absolute;inset:0;opacity:0;cursor:pointer}.rem-list{list-style:none;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow)}.rem-list:empty{display:none}.rem-row{display:flex;align-items:flex-start;gap:var(--sp-3);padding:10px 14px}.rem-row+.rem-row{border-top:1px solid var(--border)}.rem-check{--rem-color: var(--primary);flex:none;width:22px;height:22px;margin-top:1px;border-radius:50%;border:1.8px solid var(--neutral);background:none;cursor:pointer;position:relative;transition:border-color .15s,background .15s}.rem-check:before{content:"";position:absolute;inset:-11px}.rem-row.is-done .rem-check{border-color:var(--rem-color);background:radial-gradient(circle,var(--rem-color) 0 6px,transparent 6.5px)}.rem-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;background:none;border:none;padding:0;font-family:inherit;text-align:left;color:var(--text);cursor:pointer}.rem-title{font-size:var(--fs-base);overflow-wrap:anywhere}.rem-row.is-done .rem-title{color:var(--text-muted)}.rem-meta{display:flex;flex-wrap:wrap;gap:0 var(--sp-2);font-size:var(--fs-sm);color:var(--text-muted)}.rem-meta>*+*:before{content:"·";margin-right:var(--sp-2)}.rem-meta .is-overdue{color:var(--danger-text)}.rem-repeat{display:inline-flex;align-items:center;gap:3px}.rem-notes{font-size:var(--fs-sm);color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rem-error{font-size:var(--fs-xs);color:var(--danger-text)}.rem-pending{flex:none;width:7px;height:7px;margin-top:8px;border-radius:50%;background:var(--warning)}.rem-done-toggle{align-self:flex-start}.rem-list--done{margin-top:calc(-1 * var(--sp-3))}.rem-form{display:flex;flex-direction:column;gap:var(--sp-3);padding:0 4px;-webkit-user-select:text;user-select:text}.rem-form-actions{display:flex;gap:var(--sp-2);justify-content:flex-end}.rem-form-actions .rem-delete{margin-right:auto;color:var(--danger)}.repeat-custom{display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-3);border-radius:var(--radius-sm);background:var(--surface-2)}.repeat-every{display:flex;align-items:center;gap:var(--sp-2);color:var(--text-muted)}.repeat-every .input{width:5em}.repeat-grid{display:grid;gap:6px}.repeat-grid .chip{padding:8px 0}.repeat-grid--week,.repeat-grid--month{grid-template-columns:repeat(7,1fr)}.repeat-grid--year{grid-template-columns:repeat(4,1fr)}@media(min-width:600px){.app{padding:40px 24px 60px}.app.app--vault{padding:0}}@media(min-width:900px){.app.app--vault{max-width:1040px}}
