:root{--bg:#f7f5f0;--surface:#fff;--surface-2:#f1eee7;--border:#e3dfd5;--text:#24272b;--muted:#646a70;--accent:#4f7a63;--accent-ink:#fff;--accent-soft:#e4eee8;--warn-bg:#fbf3e2;--warn-border:#e6cf9c;--warn-text:#6b4e12;--danger:#9b3b2f;--radius:14px;--radius-sm:10px;--shadow:0 1px 2px #1e1e140d, 0 2px 8px #1e1e140a;--tap:44px;--font:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--c-sage:#7fa58a;--c-sky:#6f9cc4;--c-sand:#c4a06a;--c-rose:#c48a93;--c-lavender:#978bc2;--c-teal:#5d9e9b;--c-slate:#848f9d;--c-ochre:#b38a3c;--c-none:#c9c4b8;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}html,body{max-width:100%;overflow-x:clip}body{background:var(--bg);color:var(--text);font:16px/1.5 var(--font);-webkit-font-smoothing:antialiased;overscroll-behavior-y:none;margin:0}body.no-scroll{overflow:hidden}button,input,select,textarea{font:inherit;color:inherit}h1,h2,h3,h4{margin:0;font-weight:600;line-height:1.25}p{margin:0 0 .5em}code{background:var(--surface-2);word-break:break-all;border-radius:4px;padding:0 4px;font-size:.9em}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.muted{color:var(--muted)}.small{font-size:.85rem}.pre{white-space:pre-wrap}.spacer{flex:1}.row{align-items:center;gap:8px;display:flex}.row-wrap{flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0;display:flex}.row-between{justify-content:space-between;align-items:center;gap:8px;display:flex}.row-end{justify-content:flex-end;display:flex}.grid-2{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;display:grid}@media (max-width:420px){.wish-image{width:84px;height:84px}.grid-2{grid-template-columns:minmax(0,1fr);gap:0}.segmented button{padding:0 10px}.day-title{font-size:1rem}}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.c-sage{background:var(--c-sage)}.c-sky{background:var(--c-sky)}.c-sand{background:var(--c-sand)}.c-rose{background:var(--c-rose)}.c-lavender{background:var(--c-lavender)}.c-teal{background:var(--c-teal)}.c-slate{background:var(--c-slate)}.c-ochre{background:var(--c-ochre)}.c-none{background:var(--c-none)}.c-sage-soft{background:#e8f0ea}.c-sky-soft{background:#e6eef6}.c-sand-soft{background:#f4ecdf}.c-rose-soft{background:#f5e8ea}.c-lavender-soft{background:#ece9f5}.c-teal-soft{background:#e3efee}.c-slate-soft{background:#eceef1}.c-ochre-soft{background:#f3ead8}.c-none-soft{background:var(--surface-2)}.dot{border-radius:50%;flex:none;display:inline-block}.btn{min-height:var(--tap);border:1px solid var(--border);background:var(--surface);cursor:pointer;white-space:nowrap;touch-action:manipulation;border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:0 16px;font-weight:500;display:inline-flex}.btn:disabled{opacity:.5;cursor:default}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn-danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn-ghost-danger{color:var(--danger);background:0 0;border-color:#0000}.btn-quiet{color:var(--accent);background:0 0;border-color:#0000;padding:0 8px}.btn-small{min-height:36px;padding:0 12px;font-size:.9rem}.btn-large{min-height:52px;padding:0 28px;font-size:1.05rem}.btn-active{border-color:var(--accent);color:var(--accent)}.icon-btn{width:var(--tap);height:var(--tap);cursor:pointer;color:var(--text);touch-action:manipulation;background:0 0;border:0;border-radius:50%;flex:none;justify-content:center;align-items:center;display:inline-flex}.icon-btn:disabled{opacity:.35;cursor:default}.icon-btn.small{width:36px;height:36px}.link-btn{color:var(--accent);cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:4px;display:inline-flex}.field{border:0;flex-direction:column;gap:6px;min-width:0;margin:0 0 16px;padding:0;display:flex}.field-label{font-size:.9rem;font-weight:600}.field-hint{color:var(--muted);font-size:.82rem}.input{width:100%;min-height:var(--tap);border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);padding:10px 12px;font-size:16px}select.input{-webkit-appearance:none;appearance:none;background-image:linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);background-position:calc(100% - 18px),calc(100% - 13px);background-repeat:no-repeat;background-size:5px 5px;padding-right:32px}.textarea{resize:vertical;min-height:160px;line-height:1.5}.textarea-sm{resize:vertical;min-height:64px}.input-note{min-height:36px;margin-top:4px;padding:6px 10px;font-size:15px}.error-text{color:var(--danger)}.toggle{cursor:pointer;align-items:center;gap:6px;min-height:36px;font-size:.9rem;display:inline-flex}.toggle input{width:18px;height:18px;accent-color:var(--accent)}.segmented{background:var(--surface-2);border-radius:999px;flex-wrap:wrap;gap:2px;padding:3px;display:inline-flex}.segmented button{cursor:pointer;min-height:36px;color:var(--muted);background:0 0;border:0;border-radius:999px;align-items:center;gap:6px;padding:0 12px;font-size:.9rem;display:inline-flex}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow);font-weight:600}.notice{border-radius:var(--radius-sm);background:var(--accent-soft);gap:10px;margin:0 0 14px;padding:10px 14px;font-size:.92rem;display:flex}.notice>div{flex:1}.notice p:last-child{margin-bottom:0}.notice-warn{background:var(--warn-bg);border:1px solid var(--warn-border);color:var(--warn-text)}.notice-warn svg{flex:none;margin-top:2px}.chip{background:var(--surface-2);border-radius:999px;align-items:center;gap:6px;max-width:100%;padding:3px 10px;font-size:.82rem;display:inline-flex}.chip>span:last-child{text-overflow:ellipsis;overflow:hidden}.chip-muted{color:var(--muted)}.chip-done{background:var(--accent-soft);color:#2f5a43}.chip-warn{background:var(--warn-bg);color:var(--warn-text)}.chip-button{border:1px solid var(--border);background:var(--surface);cursor:pointer;text-align:left;white-space:normal;min-height:36px}.app{min-height:100vh;padding-bottom:calc(76px + env(safe-area-inset-bottom))}.topbar{z-index:20;padding:calc(6px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left));-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--border);background:#f7f5f0f0;align-items:center;gap:4px;display:flex;position:sticky;top:0}.brand{margin-right:16px;font-size:1.1rem;font-weight:700}.tabs-top{gap:4px;display:none}.tabs-top button{cursor:pointer;color:var(--muted);background:0 0;border:0;border-radius:999px;min-height:40px;padding:8px 14px;font-weight:500}.tabs-top button.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.tabs-bottom{z-index:20;border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);background:#fffffff7;display:flex;position:fixed;bottom:0;left:0;right:0}.tabs-bottom button{cursor:pointer;min-height:58px;color:var(--muted);background:0 0;border:0;flex-direction:column;flex:1;align-items:center;gap:2px;padding:8px 0 6px;font-size:.78rem;display:flex}.tabs-bottom button.active{color:var(--accent);font-weight:600}.main{max-width:1180px;padding:12px max(16px, env(safe-area-inset-left)) 24px;margin:0 auto}.screen{flex-direction:column;gap:12px;display:flex}.toolbar{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--border);padding:14px 16px}.card-title{margin-bottom:8px;font-size:1rem}.big-number{font-variant-numeric:tabular-nums;font-size:1.6rem;font-weight:600}.banner{padding:10px max(16px, env(safe-area-inset-left));background:var(--accent-soft);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;font-size:.92rem;display:flex}.banner-warn{background:var(--warn-bg);color:var(--warn-text);border-bottom:1px solid var(--warn-border)}.banner .row{gap:6px}.screen>.banner{border-radius:var(--radius-sm)}.pill{background:var(--surface-2);color:var(--muted);white-space:nowrap;border:0;border-radius:999px;align-items:center;gap:4px;padding:4px 10px;font-size:.8rem;display:inline-flex}.pill-ok{background:var(--accent-soft);color:#2f5a43}.pill-warn{background:var(--warn-bg);color:var(--warn-text);border:1px solid var(--warn-border);cursor:pointer}.icon-wrap{justify-content:center;align-items:center;display:flex}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.empty{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:10px;padding:28px 16px;display:flex}.empty p{margin:0}.center-screen{justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.welcome{text-align:center;flex-direction:column;align-items:center;gap:14px;max-width:440px;display:flex}.welcome .input{text-align:left}.month-nav{align-items:center;gap:4px;display:flex}.month-title{text-align:center;white-space:nowrap;flex:1;min-width:0;font-size:1.15rem}.period-label{text-align:center;min-width:120px;font-weight:600}.calendar-card{padding:10px}.calendar{margin-top:6px}.cal-row{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;display:grid}.cal-head{margin-bottom:2px}.cal-wd{text-align:center;color:var(--muted);padding:4px 0;font-size:.75rem}.cal-cell{cursor:pointer;background:0 0;border:0;border-radius:12px;flex-direction:column;justify-content:flex-start;align-items:center;gap:2px;min-height:52px;padding:6px 0 0;display:flex;position:relative}.cal-cell.empty-cell{cursor:default}.cal-cell.future .cal-num{color:#a6a9ac}.cal-num{font-variant-numeric:tabular-nums;text-align:center;border-radius:50%;width:28px;height:28px;font-size:.98rem;line-height:28px}.cal-cell.today .cal-num{color:var(--accent);box-shadow:inset 0 0 0 1.5px var(--accent);font-weight:700}.cal-cell.selected{background:var(--accent-soft)}.cal-cell.selected .cal-num{background:var(--accent);color:#fff;box-shadow:none}.cal-marks{align-items:center;gap:2px;display:flex}.cal-marks .dot{width:6px;height:6px}.cal-count{color:var(--muted);font-variant-numeric:tabular-nums;margin-left:2px;font-size:.7rem}.day-head{margin:6px 0 10px}.day-title{font-size:1.05rem}.day-list{flex-direction:column;gap:10px;display:flex}.entry-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid var(--border);margin-bottom:10px;padding:14px 16px 8px}.entry-date{color:var(--muted);margin-bottom:4px;font-size:.82rem}.entry-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.02rem}.entry-meta{align-items:flex-start;gap:6px;margin-top:8px;display:flex}.entry-chips{flex-wrap:wrap;flex:1;gap:6px;min-width:0;padding-top:6px;display:flex}.entry-actions{flex:none;display:flex}.highlight .entry-card{box-shadow:0 0 0 2px var(--accent)}.feed-controls{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.feed-date{color:var(--muted);margin:18px 0 6px;font-size:.9rem;font-weight:600}.feed-more{justify-content:center;padding:16px;display:flex}.filters{flex-direction:column;gap:10px;display:flex}.filters .field{margin:0}.search{color:var(--muted);align-items:center;gap:8px;display:flex}.fab{right:max(18px, env(safe-area-inset-right));bottom:calc(78px + env(safe-area-inset-bottom));z-index:15;background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:28px;align-items:center;gap:8px;min-width:56px;height:56px;padding:0 18px;font-weight:600;display:flex;position:fixed;box-shadow:0 4px 14px #2846374d}.fab-label{display:none}.thumbs{flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.thumb{cursor:zoom-in;background:var(--surface-2);border:0;border-radius:10px;width:76px;height:76px;padding:0;overflow:hidden}.drive-img{justify-content:center;align-items:center;width:100%;height:100%;display:flex}.drive-img img{object-fit:cover;width:100%;height:100%;display:block}.img-loading{background:linear-gradient(90deg, var(--surface-2), #e9e5dc, var(--surface-2));background-size:200% 100%;width:100%;height:100%;animation:1.2s infinite shimmer}@keyframes shimmer{to{background-position:-200% 0}}.img-failed{color:var(--muted);text-align:center;padding:4px;font-size:.7rem}.photo-edit{flex-wrap:wrap;gap:8px;display:flex}.photo-item{background:var(--surface-2);border-radius:12px;width:96px;height:96px;position:relative;overflow:hidden}.photo-item img{object-fit:cover;width:100%;height:100%}.photo-item.photo-st-error{box-shadow:inset 0 0 0 2px var(--danger)}.photo-state,.photo-error{text-align:center;background:#ffffffd9;padding:2px;font-size:.7rem;position:absolute;bottom:0;left:0;right:0}.photo-error{color:var(--danger)}.photo-actions{gap:2px;display:flex;position:absolute;top:2px;right:2px}.photo-actions .icon-btn{background:#ffffffe6;width:30px;height:30px}.photo-add{border:1.5px dashed var(--border);background:var(--surface);width:96px;height:96px;color:var(--muted);cursor:pointer;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:.75rem;display:flex}.photo-add-pro{border-color:var(--accent);color:var(--accent);text-align:center;padding:0 6px;line-height:1.2}.viewer{z-index:100;touch-action:pan-y;background:#111;justify-content:center;align-items:center;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.viewer-img{width:100%;height:100%}.viewer-img .drive-img img{object-fit:contain}.viewer .icon-btn{color:#fff;background:#ffffff1f;position:absolute}.viewer-close{top:calc(10px + env(safe-area-inset-top));right:10px}.viewer-prev{top:50%;left:10px}.viewer-next{top:50%;right:10px}.viewer-count{bottom:calc(14px + env(safe-area-inset-bottom));color:#ddd;font-size:.9rem;position:absolute}.modal-backdrop{z-index:50;background:#1e1e1959;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.sheet-backdrop{align-items:stretch;padding:0}.sheet{background:var(--bg);width:100%;height:100%;padding-top:env(safe-area-inset-top);outline:none;flex-direction:column;display:flex}.sheet-header{border-bottom:1px solid var(--border);background:var(--surface);align-items:center;gap:6px;padding:6px 12px;display:flex}.sheet-title{text-overflow:ellipsis;white-space:nowrap;font-size:1.05rem;overflow:hidden}.sheet-body{padding:16px max(16px, env(safe-area-inset-left)) 24px;-webkit-overflow-scrolling:touch;flex:1;overflow-y:auto}.sheet-footer{padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface);align-items:center;gap:8px;display:flex}.dialog{background:var(--surface);border-radius:var(--radius);z-index:60;width:100%;max-width:440px;padding:20px;box-shadow:0 10px 40px #0003}.dialog h2{margin-bottom:10px;font-size:1.1rem}.dialog-sub{color:var(--muted)}.dialog-body{color:var(--text);margin-bottom:8px}.dialog-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.modal-backdrop .modal-backdrop{z-index:70}.toast{left:50%;bottom:calc(146px + env(safe-area-inset-bottom));z-index:200;color:#fff;text-align:center;background:#2b2f2c;border-radius:999px;max-width:calc(100% - 32px);padding:10px 18px;font-size:.9rem;position:fixed;transform:translate(-50%)}.suggestions{flex-wrap:wrap;align-items:center;gap:6px;margin:-6px 0 14px;display:flex}.plus-one{color:#2f5a43;background:var(--accent-soft);border-radius:999px;margin:-6px 0 14px;padding:4px 12px;font-size:.88rem;display:inline-block}.marks{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);margin:0 0 16px;padding:8px 12px 6px}.marks legend{padding:0 4px;font-size:.9rem;font-weight:600}.mark{cursor:pointer;align-items:flex-start;gap:10px;min-height:40px;padding:8px 0;display:flex}.mark input{width:20px;height:20px;accent-color:var(--accent);flex:none;margin-top:2px}.mark-done-elsewhere{cursor:default}.mark-checked>span{color:var(--muted)}.period-picker{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.comparison{margin:8px 0 0;font-size:.9rem}.chart{margin:8px 0 0}.chart-cols{border-bottom:1px solid var(--border);align-items:flex-end;gap:2px;padding-top:18px;display:flex}.chart-col{flex:1;justify-content:center;align-items:flex-end;min-width:0;height:100%;display:flex}.chart-bar{background:var(--accent);opacity:.75;border-radius:3px 3px 0 0;width:72%;max-width:32px;position:relative}.chart-value{color:var(--muted);font-variant-numeric:tabular-nums;padding-bottom:2px;font-size:.72rem;position:absolute;bottom:100%;left:50%;transform:translate(-50%)}.chart-labels{gap:2px;display:flex}.chart-label{text-align:center;color:var(--muted);white-space:nowrap;flex:1;min-width:0;font-size:.68rem;overflow:visible}.chart-compact .chart-cols{padding-top:0}.hbars{flex-direction:column;gap:6px;margin:14px 0 0;padding:0;list-style:none;display:flex}.hbars li{grid-template-columns:minmax(110px,40%) 1fr 32px;align-items:center;gap:8px;font-size:.88rem;display:grid}.hbar-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.hbar-track{background:var(--surface-2);border-radius:5px;height:10px;overflow:hidden}.hbar-fill{border-radius:5px;height:100%;display:block}.hbar-value{text-align:right;font-variant-numeric:tabular-nums}.category-section{margin-top:8px}.category-section.archived{opacity:.75}.category-head{align-items:center;gap:8px;display:flex}.category-head h2{font-size:1.1rem}.category-toggle{min-height:var(--tap);cursor:pointer;text-align:left;min-width:0;color:inherit;background:0 0;border:0;align-items:center;gap:8px;padding:6px 4px 6px 0;display:flex}.category-toggle:disabled{cursor:default;opacity:1}.category-toggle h2{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chev{color:var(--muted);transition:transform .15s;display:inline-flex}.chev-collapsed{transform:rotate(-90deg)}.category-section.collapsed .category-stats{margin-bottom:0}.goals-search{align-items:center;gap:8px;display:flex}.goals-search .search{flex:1;min-width:0}.goal-card-top{align-items:flex-start;gap:4px;display:flex}.goal-card-top .goal-card-head{flex:1;min-width:0}.category-stats{margin:-4px 0 8px 46px}.goal-grid{grid-template-columns:minmax(0,1fr);gap:10px;display:grid}.goal-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;gap:6px;padding:12px 14px;display:flex}.goal-card.archived{background:var(--surface-2)}.goal-card-head{text-align:left;cursor:pointer;background:0 0;border:0;flex-direction:column;align-items:flex-start;gap:2px;padding:0;display:flex}.goal-title{font-size:1rem;font-weight:600}.goal-card-head:hover .goal-title{text-decoration:underline}.progress{background:var(--surface-2);border-radius:4px;height:8px;overflow:hidden}.progress-fill{background:var(--accent);border-radius:4px;height:100%;transition:width .3s}.status{color:var(--muted);align-items:center;gap:4px;display:inline-flex}.status-done{color:#2f5a43;font-weight:600}.steps{margin:0;padding:0;list-style:none}.steps .mark{min-height:36px;padding:5px 0}.steps-detailed li{border-top:1px solid var(--surface-2);padding:2px 0}.source{flex-wrap:wrap;align-items:center;gap:4px;padding:0 0 6px 30px;display:flex}.goal-page{flex-direction:column;gap:12px;max-width:860px;margin:0 auto;display:flex}.actions-row{flex-wrap:wrap;gap:6px;display:flex}.stat-row{flex-wrap:wrap;gap:28px;margin-bottom:4px;display:flex}.series-list{margin:10px 0 0;padding:0;list-style:none}.series-list li{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.series-list [aria-current=true]{color:var(--text);font-weight:700}.sub-edit{margin:0 0 8px;padding-left:22px}.sub-edit li{margin-bottom:10px}.sub-edit-row{align-items:center;gap:2px;display:flex}.sub-add{gap:8px;display:flex}.period-inputs{flex-direction:column;gap:8px;margin-top:8px;display:flex}.swatches{flex-wrap:wrap;gap:10px;display:flex}.swatch{cursor:pointer;color:#fff;border:2px solid #0000;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.swatch.selected{border-color:var(--text)}.settings-section{margin-bottom:26px}.settings-section h3{margin-bottom:8px;font-size:1rem}.settings-section .card{margin-top:10px}.backup-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.backup-list li{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.diag{padding-left:18px}.conflict-versions{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-bottom:10px;display:grid}.conflict-version{border:1px solid var(--border);border-radius:var(--radius-sm);flex-direction:column;align-items:flex-start;gap:6px;padding:10px;display:flex}.conflict{margin-bottom:12px}.card-bg-sage{background:#e3eee6}.card-bg-sky{background:#e1ebf5}.card-bg-sand{background:#f3eadb}.card-bg-rose{background:#f5e4e7}.card-bg-lavender{background:#eae6f5}.card-bg-teal{background:#dfeeed}.card-bg-slate{background:#e7eaee}.card-bg-ochre{background:#f2e7cf}.card-swatches .swatch{border:1px solid var(--border);color:var(--text)}.card-swatches .swatch.selected{border:2px solid var(--text)}.card-swatch-none{background:var(--surface);background-image:linear-gradient(135deg, transparent 46%, var(--border) 46%, var(--border) 54%, transparent 54%)}.goal-card{transition:background-color .5s,opacity .5s,border-color .5s}.goal-card.done{opacity:.65;background:#d6ecdc;border-color:#9fcaac}.goal-card.done:hover,.goal-card.done:focus-within{opacity:.9}.confetti-canvas{pointer-events:none;z-index:300;width:100vw;height:100vh;position:fixed;top:0;bottom:0;left:0;right:0}.with-emoji{align-items:flex-start;gap:8px;display:flex}.with-emoji>.input{flex:1;min-width:0}.emoji-btn{width:var(--tap);height:var(--tap);border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);color:var(--muted);cursor:pointer;flex:none;justify-content:center;align-items:center;display:inline-flex}.emoji-btn-value{font-size:1.5rem;line-height:1}.entry-emoji{vertical-align:-.1em;margin-right:6px;font-size:1.35em}.goal-emoji{margin-right:6px}.emoji-backdrop{z-index:80;align-items:flex-end;padding:0}.emoji-pop{background:var(--surface);border-radius:var(--radius) var(--radius) 0 0;width:100%;height:min(70vh,520px);padding-bottom:env(safe-area-inset-bottom);flex-direction:column;display:flex;box-shadow:0 -8px 30px #00000026}.emoji-tabs{border-bottom:1px solid var(--border);flex:none;padding:4px 6px 0;display:flex;overflow-x:auto}.emoji-tabs button{cursor:pointer;min-width:36px;height:40px;color:var(--muted);background:0 0;border:0;border-bottom:2px solid #0000;flex:1 0 auto;justify-content:center;align-items:center;font-size:1.15rem;display:inline-flex}.emoji-tabs button.active{border-bottom-color:var(--accent);color:var(--text)}.emoji-search{color:var(--muted);flex:none;align-items:center;gap:8px;padding:10px 12px;display:flex}.emoji-scroll{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;flex:1;padding:0 12px 8px;overflow-y:auto}.emoji-group-title{color:var(--muted);margin:10px 0 4px;font-size:.82rem;font-weight:600}.emoji-grid{grid-template-columns:repeat(auto-fill,minmax(42px,1fr));display:grid}.emoji-cell{cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;height:42px;padding:0;font-size:1.6rem;line-height:1;display:flex}.emoji-cell:focus-visible{background:var(--surface-2)}.emoji-cell.selected{background:var(--accent-soft);box-shadow:inset 0 0 0 1.5px var(--accent)}.emoji-footer{border-top:1px solid var(--border);flex:none;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;display:flex}.stars{letter-spacing:1px;white-space:nowrap;font-size:.8rem;line-height:1.4}.priority-picker{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.priority-stars{gap:2px;display:flex}.priority-star{cursor:pointer;filter:grayscale();opacity:.3;background:0 0;border:0;border-radius:8px;width:40px;height:40px;font-size:1.45rem;transition:opacity .1s}.priority-star.on{filter:none;opacity:1}.priority-star:hover{opacity:.75}.priority-star.on:hover{opacity:1}.priority-star[aria-checked=true]{background:var(--surface-2)}.wish-grid{grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:6px;display:grid}.wish-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);flex-direction:column;gap:12px;padding:14px;transition:background-color .5s,opacity .5s,border-color .5s;display:flex}.wish-card.done{opacity:.65;background:#d6ecdc;border-color:#9fcaac}.wish-card.done:hover,.wish-card.done:focus-within{opacity:.9}.wish-card.archived{background:var(--surface-2)}.wish-body{align-items:flex-start;gap:14px;display:flex}.wish-image{background:var(--surface-2);cursor:pointer;border:0;border-radius:12px;flex:none;justify-content:center;align-items:center;width:104px;height:104px;padding:0;display:flex;position:relative;overflow:hidden}.wish-emoji{font-size:2.6rem;line-height:1}.wish-photo-count{color:#fff;background:#0000008c;border-radius:999px;padding:1px 7px;font-size:.7rem;position:absolute;bottom:4px;right:4px}.wish-info{flex-direction:column;flex:1;align-items:flex-start;gap:4px;min-width:0;display:flex}.wish-top{justify-content:space-between;align-items:center;gap:6px;width:100%;margin-top:-6px;display:flex}.wish-desire{color:#8a5a12;flex-wrap:wrap;align-items:center;gap:4px;font-size:.82rem;display:inline-flex}.wish-title{text-align:left;cursor:pointer;color:inherit;background:0 0;border:0;padding:0;font-size:1.02rem;font-weight:600;line-height:1.3}.wish-title:hover{text-decoration:underline}.wish-price{color:#2f6f9f;font-size:1.05rem;font-weight:600}.wish-goal{min-height:30px;font-size:.8rem}.wish-desc{white-space:pre-wrap;margin:4px 0 0;font-size:.92rem}.wish-more{color:var(--muted);padding:2px 0;font-size:.85rem}.chev-collapsed-down{transform:none}.wish-actions{grid-template-columns:auto minmax(0,1fr);gap:10px;display:grid}.wish-actions .btn-primary{width:100%}.btn-outline{color:#2f6f9f;background:0 0;border-color:#9cc3e0;text-decoration:none}.sort-select{color:var(--muted);align-items:center;gap:6px;display:inline-flex}.input-compact{width:auto;min-height:36px;padding:4px 30px 4px 10px;font-size:.9rem}.price-row{gap:6px;display:flex}.price-row .input:first-child{flex:1;min-width:0}.price-row .currency{flex:none;width:72px}.photo-hint{margin:-10px 0 14px}.pin-btn{color:var(--muted)}.pin-btn.is-pinned{color:var(--accent);background:var(--accent-soft)}.pin-btn svg{transition:transform .15s}.pin-btn.is-pinned svg{transform:rotate(45deg)}.pinned-strip{grid-template-columns:minmax(0,1fr);gap:8px;display:grid}.pinned-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-width:0;box-shadow:var(--shadow);border-left:4px solid var(--accent);align-items:center;gap:4px;padding:8px 6px 8px 10px;display:flex}.pinned-card.done{border-color:#9fcaac;border-left-color:var(--accent);background:#d6ecdc}.pinned-main{text-align:left;cursor:pointer;min-width:0;color:inherit;background:0 0;border:0;flex:1;align-items:center;gap:10px;padding:0;display:flex}.pinned-thumb{background:var(--surface-2);border-radius:10px;flex:none;justify-content:center;align-items:center;width:48px;height:48px;display:flex;overflow:hidden}.pinned-emoji{font-size:1.6rem}.pinned-text{flex-direction:column;gap:1px;min-width:0;display:flex}.pinned-title{overflow-wrap:anywhere;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;font-weight:600;display:-webkit-box;overflow:hidden}.pinned-progress{align-items:center;gap:8px;display:flex}.pinned-progress .progress{width:110px;height:6px}@media (min-width:900px){.app{padding-bottom:24px}.tabs-top{display:flex}.brand,.tabs-bottom{display:none}.fab{bottom:28px;right:28px}.fab-label{display:inline}.toast{bottom:100px}.diary-layout{grid-template-columns:minmax(360px,440px) minmax(0,1fr);align-items:start;gap:20px;display:grid}.calendar-card{position:sticky;top:72px}.goal-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}.wish-grid{grid-template-columns:repeat(auto-fill,minmax(360px,1fr))}.pinned-strip{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.sheet-backdrop{align-items:center;padding:32px}.sheet{border-radius:var(--radius);max-width:640px;height:auto;max-height:calc(100vh - 64px);padding-top:0;overflow:hidden;box-shadow:0 10px 40px #0003}.sheet-wide{max-width:940px}.emoji-backdrop{align-items:center;padding:32px}.emoji-pop{border-radius:var(--radius);max-width:440px;height:min(70vh,480px);padding-bottom:0;box-shadow:0 10px 40px #00000040}.feed{max-width:760px}}@media (max-width:899px){.diary-layout{flex-direction:column;gap:12px;display:flex}}@media (hover:hover){.btn:hover{background:var(--surface-2)}.btn-primary:hover{background:#456c57}.btn-outline:hover{background:#eef5fb}.icon-btn:hover,.cal-cell:hover,.emoji-cell:hover,.lang-chip:hover{background:var(--surface-2)}.emoji-btn:hover{background:var(--surface-2);color:var(--text)}}button,a,label,[role=button]{-webkit-tap-highlight-color:transparent}.btn,.icon-btn,.segmented button,.tabs-top button,.tabs-bottom button,.cal-cell,.emoji-btn,.emoji-cell,.lang-chip{transition:background-color .14s ease-out,color .14s ease-out,box-shadow .14s ease-out,border-color .14s ease-out,filter .14s ease-out,transform .12s ease-out}.btn:active:not(:disabled),.lang-chip:active{filter:brightness(.94);transition-duration:60ms;transform:scale(.97)}.icon-btn:active:not(:disabled){transition-duration:60ms;transform:scale(.94)}.icon-btn:active:not(:disabled),.segmented button:active,.tabs-top button:active,.cal-cell:active,.emoji-cell:active{background:var(--surface-2);transition-duration:60ms}.cal-cell.selected:hover,.cal-cell.selected:active,.emoji-cell.selected:hover,.emoji-cell.selected:active,.lang-chip.active:hover{background:var(--accent-soft)}.segmented button.active:active,.tabs-top button.active:active{background:var(--surface)}.viewer .icon-btn:hover,.viewer .icon-btn:active:not(:disabled){background:#ffffff3d}.photo-actions .icon-btn:hover,.photo-actions .icon-btn:active:not(:disabled){background:#fff}.tabs-bottom button,.tabs-bottom button>*{position:relative}.tabs-bottom button:before{content:"";background:var(--accent-soft);opacity:0;border-radius:999px;width:56px;height:30px;margin-left:-28px;transition:opacity .16s ease-out,transform .16s ease-out;position:absolute;top:5px;left:50%;transform:scale(.85)}.tabs-bottom button.active:before{opacity:1;transform:scale(1)}.tabs-bottom button:active:before{opacity:.75;transition-duration:60ms;transform:scale(.95)}.calendar-card{touch-action:pan-y;overflow:hidden}@keyframes cal-in-next{0%{opacity:0;transform:translate(18px)}to{opacity:1;transform:none}}@keyframes cal-in-prev{0%{opacity:0;transform:translate(-18px)}to{opacity:1;transform:none}}.cal-slide-next{animation:.18s ease-out cal-in-next}.cal-slide-prev{animation:.18s ease-out cal-in-prev}.hl-btn.on{color:#c58a12}.hl-btn.on svg{fill:#f2c14e}.entry-card.is-highlight{box-shadow:inset 0 0 0 1.5px #e9c46a, var(--shadow)}.hl-hint{color:#8a6510;cursor:pointer;background:#fdf7e6;border:1px dashed #e0b84f;border-radius:999px;align-self:flex-start;align-items:center;gap:6px;margin-bottom:8px;padding:6px 12px;font-size:.88rem;display:inline-flex}.hl-pick-list{flex-direction:column;gap:8px;display:flex}.hl-pick{text-align:left;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);cursor:pointer;width:100%;color:var(--text);font:inherit;align-items:center;gap:10px;padding:10px 12px;transition:border-color .14s ease-out,box-shadow .14s ease-out;display:flex}.hl-pick.on{border-color:#e0b84f;box-shadow:inset 0 0 0 1px #e0b84f}.hl-pick-photo{border-radius:8px;flex:none;width:52px;height:52px;overflow:hidden}.hl-pick-text{-webkit-line-clamp:3;-webkit-box-orient:vertical;flex:1;display:-webkit-box;overflow:hidden}.hl-pick-star{color:var(--muted);flex:none}.hl-pick.on .hl-pick-star{color:#c58a12}.hl-pick.on .hl-pick-star svg{fill:#f2c14e}.collage-nav{justify-content:center;margin-bottom:8px}.collage{border-radius:var(--radius);border:1px solid var(--border);background:#f7f5f0;padding:16px}.collage-head h3{margin:0;font-size:1.2rem}.collage-head p{margin:2px 0 12px;font-size:.9rem}.collage-grid{gap:8px;display:grid}.collage-tile{aspect-ratio:1;background:var(--surface);border-radius:12px;flex-direction:column;gap:4px;margin:0;padding:10px;display:flex;position:relative;overflow:hidden}.collage-tile.has-photo{padding:0}.collage-tile.has-photo .drive-img{position:absolute;top:0;bottom:0;left:0;right:0}.collage-tile figcaption{color:var(--muted);margin-top:auto;font-size:.72rem;font-weight:600;position:relative}.collage-tile.has-photo figcaption{color:#fff;background:linear-gradient(#0000,#0000008c);padding:18px 8px 6px}.collage-emoji{font-size:1.6rem;line-height:1}.collage-text{-webkit-line-clamp:4;-webkit-box-orient:vertical;font-size:.8rem;line-height:1.3;display:-webkit-box;overflow:hidden}.goal-progress .row-between{flex-wrap:wrap;gap:8px}.progress-bars{flex-direction:column;gap:12px;margin:12px 0 8px;padding:0;list-style:none;display:flex}.progress-bars li{flex-direction:column;gap:4px;display:flex}.progress-bar-head{justify-content:space-between;gap:8px;font-size:.92rem;display:flex}.progress-bar-title{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.progress-bar-value{font-variant-numeric:tabular-nums;font-weight:600}.progress-done{font-size:.72rem}.radar{width:100%;max-width:480px;margin:4px auto;display:block;overflow:visible}.radar-ring{fill:none;stroke:var(--border);stroke-width:1px}.radar-axis{stroke:var(--border);stroke-width:1px}.radar-area{fill:var(--accent);fill-opacity:.22;stroke:var(--accent);stroke-width:2px;stroke-linejoin:round}.radar-dot{fill:var(--accent)}.radar-label{fill:var(--text);font-size:17px}.radar-value{fill:var(--muted);font-size:16px;font-weight:600}.review-summary .comparison{margin:4px 0 10px}.review-highlights{scroll-snap-type:x mandatory;gap:8px;padding:4px 0 2px;display:flex;overflow-x:auto}.review-hl{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);scroll-snap-align:start;flex:0 0 200px;gap:8px;padding:8px;display:flex}.review-hl-photo{border-radius:8px;flex:none;width:56px;height:56px;overflow:hidden}.review-hl-body{flex-direction:column;gap:2px;min-width:0;display:flex}.review-hl-text{-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:.85rem;display:-webkit-box;overflow:hidden}.review-sub{margin:12px 0 4px;font-weight:600}.review-goals{flex-direction:column;gap:6px;margin:0 0 8px;padding:0;list-style:none;display:flex}.review-goal{flex-wrap:wrap;align-items:center;gap:6px 10px;display:flex}.review-goal-title{text-align:left;font-size:.95rem}.card-title .icon,.card-title svg{vertical-align:-3px}.onb-screen{padding-top:max(24px, env(safe-area-inset-top));padding-bottom:max(24px, env(safe-area-inset-bottom));align-items:flex-start}.onb{text-align:left;outline:none;flex-direction:column;align-items:stretch;gap:12px;width:100%;max-width:560px;display:flex}.onb>.btn-large{width:100%}.onb-title{margin:4px 0;font-size:1.5rem;line-height:1.25}.onb-indicator{color:var(--accent);margin:0;font-size:.85rem;font-weight:600}.onb-restore-link{align-self:center}.onb-actions{background:var(--bg);padding:10px 0 max(6px, env(safe-area-inset-bottom));flex-wrap:wrap;align-items:center;gap:8px;display:flex;position:sticky;bottom:0}.choice-list{flex-direction:column;gap:8px;display:flex}.choice{width:100%;min-height:var(--tap);text-align:left;font:inherit;color:var(--text);border:1.5px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;align-items:center;gap:10px;padding:10px 14px;transition:border-color .14s ease-out,background-color .14s ease-out;display:flex}.choice.on{border-color:var(--accent);background:var(--accent-soft)}.choice-emoji{font-size:1.3rem}.choice-label{flex:1}.choice-mark{color:var(--accent)}.tpl-list{flex-direction:column;gap:8px;display:flex}.tpl-card{text-align:left;width:100%;font:inherit;color:var(--text);border:1.5px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;align-items:flex-start;gap:12px;padding:12px 14px;transition:border-color .14s ease-out,background-color .14s ease-out;display:flex}.tpl-card.on{border-color:var(--accent);background:var(--accent-soft)}.tpl-emoji{font-size:1.6rem;line-height:1}.tpl-body{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.tpl-tags{flex-wrap:wrap;gap:6px;display:flex}.tpl-easy{align-self:flex-start}.goal-confirm{border-top:1px solid var(--border);flex-direction:column;gap:4px;padding-top:12px;display:flex}.onb-explain{color:var(--muted);margin:0 0 8px}.onb-period{margin:0 0 6px;font-weight:600}.onb-newcat{margin:-6px 0 10px}.onb-steps{flex-direction:column;gap:6px;margin:4px 0 8px;padding-left:20px;display:flex}.onb-steps li{align-items:center;gap:6px;display:flex}.onb-more{flex-direction:column;gap:4px;display:flex}.onb-own-btn{align-self:flex-start}.chips-row{flex-wrap:wrap;gap:6px;margin:8px 0;display:flex}.chip-on{background:var(--accent-soft);border-color:var(--accent);color:#2f5a43;font-weight:600}.onb-demo{flex-direction:column;align-items:stretch;gap:4px;margin:6px 0 10px;display:flex}.onb-demo-card{border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;display:flex}.onb-demo-link{text-align:center;color:var(--muted)}.onb-demo-plus{color:var(--accent);margin-left:auto;font-weight:700}@keyframes onb-join{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}@keyframes onb-pop{0%{opacity:0;transform:scale(.6)}70%{opacity:1;transform:scale(1.12)}to{transform:scale(1)}}.onb-demo-link{animation:.5s ease-out .4s both onb-join}.onb-demo-goal{animation:.5s ease-out .7s both onb-join}.onb-demo-plus{animation:.45s ease-out 1.2s both onb-pop}.first-goal{flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 10px;display:flex}.onb-result{border-color:var(--accent)}.onb-result-entry{margin:4px 0}.onb-result-goal{margin:4px 0 8px}.onb-card{flex-wrap:wrap}.tip{border-radius:var(--radius-sm);background:#fdf7e6;border:1px solid #ecd9a6;align-items:flex-start;gap:8px;margin:6px 0;padding:8px 10px;font-size:.9rem;display:flex}.tip-icon{color:#5b4300;background:#e9c46a;border-radius:50%;flex:none;justify-content:center;align-items:center;width:20px;height:20px;font-size:.8rem;font-weight:700;display:inline-flex}.tip-text{flex:1}.tip-close{width:28px;height:28px}.tip-quiet{align-items:center;gap:6px;margin:6px 0;display:flex}.tip-help{border:1px solid var(--border);background:var(--surface);width:24px;height:24px;color:var(--muted);cursor:pointer;border-radius:50%;flex:none;font-size:.8rem;font-weight:700}.demo-card{margin-bottom:10px}.demo-value{margin:6px 0;font-size:1.1rem;font-weight:600}.paywall-price{margin:8px 0 0;font-size:1.05rem}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}.chip-toggle{border:1px solid var(--border);background:var(--surface);min-height:32px;color:var(--muted);cursor:pointer;border-radius:999px;align-items:center;gap:4px;padding:0 12px;font-size:.85rem;transition:background-color .14s ease-out,color .14s ease-out,border-color .14s ease-out;display:inline-flex}.chip-toggle.on{border-color:var(--accent);background:var(--accent-soft);color:#2f5a43;font-weight:600}.feed-summary{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.feed-sort-btn{font-size:inherit;text-underline-offset:3px;padding:2px 4px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.feed-category{align-items:center;gap:6px;display:flex}.filter-sort{margin:0}.lang-grid{flex-wrap:wrap;gap:8px;display:flex}.lang-chip{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:999px;min-height:40px;padding:0 16px;font-size:.95rem}.lang-chip.active{border-color:var(--accent);background:var(--accent-soft);color:#2f5a43;font-weight:600}.lang-chip:disabled{opacity:.6;cursor:default}input[type=date].input{-webkit-appearance:none;appearance:none;text-align:left;width:100%;min-width:0;max-width:100%;display:block}input[type=date].input::-webkit-date-and-time-value{text-align:left}.onboarding-example{text-align:left;flex-direction:column;align-self:stretch;gap:6px;margin:0;padding-left:22px;display:flex}.paywall-list{flex-direction:column;gap:6px;padding-left:20px;display:flex}.banner-quiet{background:var(--surface-2)}.sync-btn{position:relative}.sync-dot{background:var(--warn-border);border-radius:50%;width:8px;height:8px;position:absolute;top:8px;right:8px}.settings-hint{flex-basis:100%;margin:4px 0 0}.topbar>*{flex-shrink:0}.topbar .pill{text-overflow:ellipsis;white-space:nowrap;flex-shrink:1;min-width:0;overflow:hidden}@media (max-width:420px){.topbar .brand{margin-right:6px}}
