:root{--bg:#f7f9f7;--paper:#fff;--ink:#243b34;--muted:#65746a;--green:#245b49;--soft:#eaf1e9;--line:#e2e8e2;--grass:#a7c59a;--reading:#8a82ae;--move:#629480;--life:#be9c6b;--work:#6e91ae;--rest:#a3899b;font-family:-apple-system,BlinkMacSystemFont,"PingFang TC","Noto Sans TC",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;line-height:1.5;font-size:15px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #90b6a4;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #83aa95;outline-offset:1px}a{color:var(--green)}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}button{touch-action:manipulation}.app-shell{max-width:1440px;min-height:100dvh;margin:auto;display:grid;grid-template-columns:224px minmax(420px,1fr) 300px}.sidebar{border-right:1px solid var(--line);padding:38px 24px;display:flex;flex-direction:column;height:100dvh;position:sticky;top:0}.brand{font-size:27px;font-weight:650;letter-spacing:-1.5px;display:flex;gap:10px;align-items:center}.brand img{width:33px;height:33px}.brand-note{font-size:12px;color:var(--muted);margin:8px 0 44px 43px;letter-spacing:1px}.side-nav{display:grid;gap:9px}.nav-item{display:flex;align-items:center;gap:13px;padding:13px 17px;color:var(--muted);border-radius:10px;text-align:left;font-weight:500}.nav-item.active{color:var(--green);background:var(--soft);font-weight:650}.side-bottom{margin-top:auto;color:var(--muted);font-size:12px}.side-bottom p{margin:12px 0;line-height:1.8}.text-button{display:inline-flex;align-items:center;gap:5px;padding:7px 0;color:var(--green);font-size:13px;font-weight:550;min-height:36px}.main{padding:38px 40px 80px;min-width:0}.mobile-brand{display:none}.topline{display:flex;align-items:center;justify-content:space-between;margin-bottom:36px}.date-heading{display:flex;align-items:center;gap:12px}.date-heading h1{font-size:22px;letter-spacing:-.6px;font-weight:650}.weekday{font-size:13px;color:var(--muted)}.date-switcher{display:flex;align-items:center;gap:4px}.icon-btn{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:var(--muted)}.icon-btn:hover{background:var(--soft);color:var(--green)}.calendar-wrap{position:relative;display:inline-flex}.calendar-wrap input{position:absolute;inset:0;opacity:0;width:38px;cursor:pointer}.calendar-wrap:focus-within{outline:2px solid var(--green);border-radius:50%}.greeting{font-size:28px;font-weight:600;letter-spacing:-1px;line-height:1.4}.intro{margin-top:7px;color:var(--muted);font-size:13px}.search-wrap{position:relative;margin-top:25px;z-index:5}.search-box{display:flex;align-items:center;border:1px solid #d5dfd5;border-radius:12px;background:var(--paper);padding:4px 8px 4px 14px;gap:8px;box-shadow:0 3px 14px #243b3404}.at-mark{font-size:21px;color:var(--green);font-weight:500}.search-box input{border:0;background:none;width:100%;min-width:0;padding:13px 4px;font-size:15px;outline:none}.search-box:focus-within{border-color:#7d9d88;box-shadow:0 0 0 3px #245b4909}.search-box .icon-btn{background:var(--soft);color:var(--green);border-radius:8px}.search-results{position:absolute;left:0;right:0;top:calc(100% + 7px);padding:6px;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px #1e382319;max-height:280px;overflow:auto}.search-results[hidden]{display:none}.result{display:flex;align-items:center;gap:10px;padding:11px 10px;width:100%;text-align:left;border-radius:8px;min-height:48px}.result:hover,.result:focus{background:var(--soft)}.result .result-name{flex:1;min-width:0;overflow-wrap:anywhere}.result small{color:var(--muted);font-size:11px}.empty-search{font-size:13px;color:var(--muted);padding:10px}.section-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;letter-spacing:.5px;color:var(--muted);margin:25px 0 12px}.section-label button{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:4px}.section-label svg{width:13px;height:13px}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.quick{display:flex;flex-direction:column;align-items:center;gap:9px;background:#eef2ec;border:1px solid transparent;border-radius:12px;padding:16px 4px 12px;font-size:13px;min-width:0}.quick:hover{border-color:#abc0ad;background:#e6eee3}.quick>span:last-child{overflow:hidden;max-width:100%;white-space:nowrap;text-overflow:ellipsis}.item-icon{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:var(--tint,#eef2ec);color:var(--color,var(--green))}.quick .item-icon{background:transparent;height:28px;width:28px}.quick svg{width:24px;height:24px}.recent{display:flex;gap:8px;overflow:auto;scrollbar-width:none;padding-bottom:2px}.recent-chip{display:flex;align-items:center;gap:7px;white-space:nowrap;flex-shrink:0;background:var(--paper);border:1px solid var(--line);border-radius:30px;padding:8px 12px;font-size:12px}.dot{width:6px;height:6px;border-radius:50%;background:var(--color,var(--green));display:inline-block;flex-shrink:0}.timeline-header{display:flex;align-items:center;justify-content:space-between;margin:34px 0 17px;padding-top:26px;border-top:1px solid var(--line)}.timeline-header h2{font-size:17px;font-weight:650;letter-spacing:-.3px}.count{font-size:12px;color:var(--muted);font-weight:400;margin-left:9px}.timeline{position:relative}.entry{display:grid;grid-template-columns:51px 18px minmax(0,1fr);position:relative;min-height:101px}.time{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;padding-top:3px;letter-spacing:-.2px}.time small{display:block;font-size:10px;color:#9ca49e;margin-top:1px}.rail{position:relative}.rail:after{content:"";position:absolute;width:1px;background:var(--line);top:13px;bottom:-3px;left:4px}.entry:last-child .rail:after{bottom:24px}.rail:before{content:"";width:7px;height:7px;border:2px solid var(--bg);box-shadow:0 0 0 1px var(--color);background:var(--color);border-radius:50%;position:absolute;left:0;top:6px;z-index:1}.entry-content{padding:0 0 20px 5px;min-width:0}.entry-top{display:flex;align-items:flex-start;gap:7px}.entry-title{font-size:15px;font-weight:550;padding:0;text-align:left;line-height:1.6;overflow-wrap:anywhere;flex:1}.entry-title:hover{color:var(--green)}.duration{font-size:12px;color:var(--muted);white-space:nowrap;padding-top:4px;font-variant-numeric:tabular-nums}.entry-note{font-size:12px;color:var(--muted);margin:5px 0 7px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.entry-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px}.category-tag{font-size:10px;display:inline-block;color:var(--color);background:var(--tint);padding:2px 7px;border-radius:4px}.concurrent-tag{font-size:10px;color:var(--muted);display:inline-flex;align-items:center;gap:3px}.concurrent-tag svg{width:12px;height:12px}.concurrent-btn{font-size:10px;color:#768a7c;padding:2px 0;min-height:24px}.entry-footer{display:flex;justify-content:space-between;align-items:center;gap:6px}.empty{padding:35px 20px 40px;text-align:center;color:var(--muted);font-size:13px}.empty svg{width:34px;height:34px;margin-bottom:12px;color:#a1b4a4}.empty h3{color:var(--ink);font-size:16px;margin-bottom:6px}.empty button{margin-top:16px}.sample-note{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;margin-top:10px}.sample-note button{font-size:11px;text-decoration:underline;color:var(--muted)}.aside{border-left:1px solid var(--line);padding:42px 28px;position:sticky;top:0;height:100dvh;display:flex;flex-direction:column}.local-status{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:6px}.local-status .dot{background:#6c9a76;width:5px;height:5px}.summary-title{font-size:13px;margin-top:52px;color:var(--muted)}.big-time{display:flex;align-items:baseline;gap:5px;margin:9px 0 3px}.big-time b{font-size:39px;letter-spacing:-2px;font-weight:550;line-height:1.2}.big-time span{font-size:12px;color:var(--muted);margin-right:6px}.summary-caption{font-size:11px;color:var(--muted);line-height:1.8}.day-strip{height:30px;position:relative;margin:26px 0 8px;background:#edf1eb;border-radius:4px;overflow:hidden}.day-strip span{position:absolute;top:0;bottom:0;background:var(--color);opacity:.75;min-width:2px}.strip-labels{display:flex;justify-content:space-between;color:#8b958e;font-size:10px;font-variant-numeric:tabular-nums}.aside h3{font-size:12px;color:var(--muted);font-weight:500;margin:34px 0 19px}.category-row{margin:15px 0}.category-row .row-top{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:7px}.row-top span:first-child{display:flex;align-items:center;gap:7px}.row-top span:last-child{color:var(--muted);font-size:11px}.bar{height:4px;background:#edf0eb;border-radius:3px;overflow:hidden}.bar span{display:block;background:var(--color);height:100%;border-radius:3px}.aside-foot{margin-top:auto;border-top:1px solid var(--line);padding-top:20px;font-size:12px;color:var(--muted);line-height:1.9}.aside-foot strong{font-weight:400;color:var(--green)}.bottom-nav{display:none}.primary{background:var(--green);color:#fff;border-radius:10px;padding:12px 18px;font-weight:550;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px}.secondary{border:1px solid var(--line);background:#fff;border-radius:10px;padding:11px 16px;font-weight:500;min-height:46px}.danger{color:#ad554d}.review-hero{background:#eaf1e8;border-radius:16px;padding:26px;margin:24px 0}.review-hero .summary-title{margin-top:0}.review-hero .big-time b{font-size:48px}.review-pair{display:flex;gap:24px;border-top:1px solid #d6e2d4;margin-top:20px;padding-top:16px}.review-pair div{flex:1}.review-pair span{display:block;font-size:11px;color:var(--muted)}.review-pair strong{font-size:16px;font-weight:550}.subheading{font-size:16px;margin:30px 0 17px;font-weight:600}.review-list{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:7px 18px}.review-list .category-row{margin:18px 0}.review-note{font-size:11px;color:var(--muted);line-height:1.8;margin:13px 0 24px}.detail-row{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}.detail-row:last-child{border-bottom:0}.detail-row span:first-child{flex:1;overflow-wrap:anywhere}.detail-row small{color:var(--muted);white-space:nowrap}.items-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.items-top h1{font-size:25px;letter-spacing:-.7px}.items-intro{font-size:13px;color:var(--muted);margin:9px 0 24px}.filter-chips{display:flex;gap:7px;overflow:auto;margin-bottom:21px;padding:3px 0}.filter-chip{font-size:12px;border:1px solid var(--line);border-radius:22px;padding:7px 13px;white-space:nowrap}.filter-chip.active{background:var(--green);color:#fff;border-color:var(--green)}.item-row{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}.item-row .item-name{flex:1;text-align:left;padding:4px 0;min-width:0}.item-name strong{font-size:14px;font-weight:550;display:block;overflow-wrap:anywhere}.item-name small{font-size:11px;color:var(--muted)}.pin-btn{color:#a2aaa3}.pin-btn.pinned{color:var(--green);background:var(--soft)}.pin-btn svg{width:17px;height:17px}dialog{border:0;padding:0;background:var(--paper);color:var(--ink);border-radius:20px;width:min(480px,calc(100% - 32px));max-height:90dvh;box-shadow:0 24px 100px #102b3330;overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#1b352d55;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 12px;position:sticky;top:0;background:#fff;z-index:6}.dialog-head h2{font-size:19px;letter-spacing:-.4px}.sheet-handle{display:none}.editor-body,.info-body{padding:0 24px 24px}.mode-tabs{display:flex;gap:3px;background:#f1f4ef;padding:4px;border-radius:9px;margin:6px 0 22px}.mode-tabs button{flex:1;font-size:13px;padding:8px;border-radius:6px;color:var(--muted)}.mode-tabs button.active{background:#fff;color:var(--green);box-shadow:0 1px 4px #243b3409;font-weight:600}.field{margin:17px 0}.field>label,.field-label{display:block;font-size:12px;font-weight:550;margin-bottom:8px;color:#57685d}.field input:not([type=checkbox]),.field textarea,.field select,.plain-input{width:100%;border:1px solid var(--line);background:#fafbf9;border-radius:9px;padding:12px;font-size:16px;min-width:0}.field textarea{resize:vertical;min-height:76px;font-size:14px}.field .search-wrap{margin:0}.field .search-box{background:#fafbf9;padding-top:0;padding-bottom:0}.field .search-box input{border:0;background:transparent;padding:12px 0}.selected-item{display:flex;align-items:center;gap:9px;background:#eff4ed;border:1px solid #dce7d8;border-radius:9px;padding:10px 12px}.selected-item strong{flex:1;font-weight:550;font-size:14px;overflow-wrap:anywhere}.selected-item small{color:var(--muted);font-size:11px}.selected-item .icon-btn{height:28px;width:28px}.selected-item svg{width:15px;height:15px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field-row .field{margin-top:8px}.time-pair{display:flex;align-items:center;gap:4px}.time-pair select{padding-left:8px;padding-right:5px}.duration-input{display:flex;align-items:center;background:#fafbf9;border:1px solid var(--line);border-radius:9px;padding-right:12px;gap:4px}.duration-input input{border:0!important;background:transparent!important;flex:1;width:100%;padding-right:0!important}.duration-input span{color:var(--muted);font-size:12px;white-space:nowrap}.duration-options{display:flex;gap:7px;margin-top:9px}.duration-options button{flex:1;border:1px solid var(--line);border-radius:7px;padding:7px 3px;font-size:12px}.duration-options button.active{background:var(--soft);color:var(--green);border-color:#a4bca4}.interval-preview{background:#f0f4ed;padding:12px 14px;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:5px;color:var(--green);font-size:13px;margin:18px 0 14px;font-variant-numeric:tabular-nums}.interval-preview small{font-size:11px;color:var(--muted)}.check-label{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.check-label input{accent-color:var(--green);width:16px;height:16px}.form-error{font-size:12px;color:#ac5148;min-height:18px;margin:8px 0}.form-actions{display:flex;gap:9px;position:sticky;bottom:0;background:#fff;padding:12px 0 max(0px,env(safe-area-inset-bottom));z-index:4}.form-actions button{flex:1;font-size:13px}.edit-actions{display:flex;justify-content:space-between;margin-top:8px}.edit-actions button{font-size:12px;min-height:36px}.create-inline{background:#f0f4ed;border:1px solid var(--line);border-radius:9px;padding:13px;margin:12px 0}.create-inline p{font-size:13px;margin-bottom:9px}.create-inline select{font-size:14px;background:#fff}.create-inline button{width:100%;margin-top:10px;font-size:13px}.info-body p{font-size:13px;line-height:1.9;color:var(--muted);margin:10px 0}.info-body h3{font-size:14px;margin:22px 0 8px}.info-body .secondary{width:100%;margin-top:10px;font-size:13px}.info-label{font-size:11px;color:var(--green);background:var(--soft);padding:4px 8px;border-radius:5px;display:inline-block}.install-note{font-size:12px;background:var(--soft);padding:12px;border-radius:8px;color:var(--green);margin:15px 0}.inline-empty{font-size:12px;color:var(--muted);padding:7px 0}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,16px);padding:12px 19px;background:#233d33;color:#fff;border-radius:11px;font-size:13px;opacity:0;pointer-events:none;z-index:30;transition:opacity .18s,transform .18s;max-width:calc(100% - 32px);text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}.loading{min-height:100dvh;display:grid;place-content:center;text-align:center;gap:12px;color:var(--muted)}.loading img{width:48px;margin:auto}.loading p{font-size:13px}.today-link{font-size:11px;color:var(--green);padding:4px 8px;border-radius:5px;background:var(--soft)}
@media(min-width:1441px){.app-shell{border-left:1px solid var(--line);border-right:1px solid var(--line)}}
@media(max-width:1150px){.app-shell{grid-template-columns:190px minmax(400px,1fr)}.aside{display:none}.main{max-width:760px;width:100%;margin:auto}.sidebar{padding:36px 18px}.brand{font-size:25px}.brand-note{margin-left:0;letter-spacing:.4px}.nav-item{padding:13px}.desktop-summary{display:block}}
@media(max-width:720px){.app-shell{display:block}.sidebar{display:none}.main{padding:20px 22px 110px;max-width:520px;margin:auto}.mobile-brand{display:flex;align-items:center;justify-content:space-between;margin-bottom:29px}.mobile-brand .brand{font-size:22px;gap:8px;letter-spacing:-1px}.brand img{width:27px;height:27px}.mobile-status{display:flex;align-items:center;gap:3px}.mobile-status .local-status{font-size:10px}.mobile-status .icon-btn{width:30px;height:30px}.mobile-status svg{width:17px;height:17px}.topline{margin-bottom:24px}.date-heading{gap:9px}.date-heading h1{font-size:21px}.weekday{font-size:12px}.date-switcher{gap:0}.date-switcher .icon-btn{width:30px;height:34px}.calendar-wrap input{width:30px}.greeting{font-size:26px;letter-spacing:-.9px}.intro{font-size:12px;margin-top:6px}.search-wrap{margin-top:22px}.search-box{padding-left:13px}.search-box input{font-size:14px;padding:13px 3px}.section-label{margin-top:23px;margin-bottom:11px;font-size:11px}.quick-grid{gap:8px}.quick{padding:14px 3px 11px;gap:7px;font-size:12px;border-radius:11px}.quick .item-icon{height:26px}.quick svg{width:23px;height:23px}.recent-chip{font-size:11px;padding:8px 11px}.timeline-header{margin:28px 0 20px;padding-top:23px}.timeline-header h2{font-size:16px}.entry{grid-template-columns:45px 17px minmax(0,1fr);min-height:101px}.entry-content{padding-left:4px}.entry-title{font-size:14px}.entry-note{font-size:12px}.duration{font-size:11px}.time{font-size:11px}.bottom-nav{display:flex;position:fixed;z-index:8;bottom:0;left:0;right:0;background:#fbfcfaed;backdrop-filter:blur(18px);border-top:1px solid var(--line);padding:8px max(16px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom));justify-content:center;gap:25px}.bottom-nav button{width:90px;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10px;color:#8b958e;padding:5px 0}.bottom-nav button.active{color:var(--green);font-weight:650}.bottom-nav button.active svg{stroke-width:2.1}.bottom-nav svg{width:22px;height:22px}.bottom-nav .nav-icon{padding:3px 18px;border-radius:20px;display:flex}.bottom-nav button.active .nav-icon{background:#e7efe3}dialog{width:100%;max-width:520px;max-height:94dvh;margin:auto auto 0;border-radius:22px 22px 0 0}.sheet-handle{display:block;width:33px;height:4px;border-radius:5px;background:#dce2db;margin:9px auto 0}.dialog-head{padding:12px 22px 10px}.dialog-head h2{font-size:18px}.editor-body,.info-body{padding-left:22px;padding-right:22px;padding-bottom:17px}.mode-tabs{margin-top:7px;margin-bottom:19px}.field{margin:15px 0}.form-actions{padding-bottom:max(6px,env(safe-area-inset-bottom))}.info-body{padding-bottom:30px}.items-top h1{font-size:24px}.items-top .primary{padding:9px 12px;min-height:40px;font-size:12px}.review-hero{margin-top:22px;padding:23px}.review-hero .big-time b{font-size:42px}#toast{bottom:93px}.entry .concurrent-btn{min-height:28px}.sample-note{font-size:10px}.review-note{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:720px){.date-switcher .icon-btn,.calendar-wrap input{width:38px;height:40px}.mobile-status .icon-btn{width:36px;height:36px}}

/* Diary workspace: the timeline scrolls independently above the bottom composer. */
.journal-main{display:flex;flex-direction:column;height:100dvh;min-height:0;padding-bottom:24px}
.journal-main>.mobile-brand,.journal-main>.topline{flex-shrink:0}
.journal-main>.topline{margin-bottom:12px}
.journal-view{display:flex;flex-direction:column;min-height:0;flex:1}
.journal-view>.timeline-header{flex-shrink:0;margin:0;padding:7px 0 14px;border-top:0;border-bottom:1px solid var(--line)}
.journal-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;padding:23px 7px 14px 0;scrollbar-width:thin;scrollbar-color:#cbd8cb transparent;outline-offset:-2px}
.journal-scroll .entry{min-height:125px}
.journal-scroll .entry-content{padding-bottom:24px}
.journal-scroll .sample-note{padding:0 0 4px 5px}
.time .end-time{display:block;font-size:10px;color:#88958b;margin-top:3px;font-variant-numeric:tabular-nums}
.entry-reflection{margin-top:9px}
.entry-reflection .entry-note{font-size:13px;line-height:1.8;color:#4f6357;margin:0;overflow-wrap:anywhere}
.note-button{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:3px 0;color:#6a7f70;font-size:12px;text-align:left}
.note-button svg{width:13px;height:13px}
.note-button.has-note{font-size:10px;min-height:29px;color:var(--muted)}
.journal-scroll .concurrent-btn{display:flex;align-items:center;min-height:30px;font-size:10px}
.reflection-form{background:#eef3ec;border-radius:10px;padding:12px;margin:4px 0 9px}
.reflection-form label{font-size:11px;color:#52675a;display:block;margin-bottom:8px}
.reflection-form textarea{display:block;width:100%;min-height:88px;resize:vertical;border:1px solid #c9d8c8;background:#fff;border-radius:7px;padding:10px;font-size:16px;line-height:1.65}
.reflection-actions{display:flex;justify-content:flex-end;gap:14px;margin-top:10px;align-items:center}
.reflection-actions button{font-size:12px;min-height:36px;padding:6px 13px}
.reflection-actions button:not(.primary){color:var(--muted)}
.journal-composer{flex-shrink:0;padding:13px 0 0;border-top:1px solid var(--line);background:var(--bg);position:relative;z-index:6}
.journal-composer .search-wrap{margin-top:10px}
.journal-composer .search-results{top:auto;bottom:calc(100% + 8px);max-height:min(320px,45dvh);box-shadow:0 -8px 30px #1e382319}
.shortcut-row{display:flex;align-items:center;gap:10px;margin:0 0 7px;min-width:0}
.shortcut-label{width:28px;flex-shrink:0;font-size:11px;color:var(--muted);padding:0;text-align:left;white-space:nowrap}
.shortcut-row .recent{flex:1;min-width:0;padding-bottom:0}
.shortcut-row .recent-chip{font-size:11px;padding:5px 9px;background:transparent;min-height:31px}
.shortcut-row .inline-empty{font-size:11px;padding:4px 0}
@media(max-width:720px){
 .journal-main{height:100dvh;padding:17px 22px calc(86px + env(safe-area-inset-bottom));min-height:0}
 .journal-main>.mobile-brand{margin-bottom:13px}
 .journal-main>.topline{margin-bottom:5px}
 .journal-view>.timeline-header{padding:5px 0 9px}
 .journal-view>.timeline-header h2{font-size:14px}
 .journal-scroll{padding-top:18px;padding-right:3px}
 .journal-scroll .entry{grid-template-columns:47px 17px minmax(0,1fr)}
 .journal-composer{padding-top:10px}
 .journal-composer .search-box input{font-size:16px}
 .journal-composer .search-wrap{margin-top:8px}
 .bottom-nav{height:calc(76px + env(safe-area-inset-bottom));padding-top:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom))}
 .bottom-nav button{justify-content:center}
 .journal-main~.bottom-nav{z-index:8}
}
@media(max-height:650px) and (max-width:720px){
 .journal-main{padding-top:9px}
 .journal-main>.mobile-brand{margin-bottom:3px}
 .journal-composer .shortcut-row:nth-child(2){display:none}
}

/* A single time-range panel replaces the previous recording modes. */
.time-range-fields{gap:16px}
.time-range-fields .field{margin-bottom:10px}
.end-day-row{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:0 0 20px;font-size:11px;color:var(--muted)}
.end-day-row select{border:1px solid var(--line);border-radius:6px;background:#fafbf9;padding:5px 8px;font-size:12px}
.duration-label{margin-bottom:6px}
.duration-label+.duration-options{margin-top:0}
@media(max-width:720px){.time-range-fields{gap:14px}.time-range-fields .time-pair select{font-size:16px;padding:12px 5px}.end-day-row select{font-size:16px;padding:5px 8px}.end-day-row{margin-bottom:17px}}

.time-range-stack{margin:22px 0 12px}
.time-range-stack .time-line{display:grid;grid-template-columns:76px minmax(0,1fr);gap:14px;align-items:center;margin:0}
.time-line>label{margin:0;font-size:13px}
.time-range-stack .time-pair select{font-size:16px}
.time-range-stack .time-shortcuts{margin:10px 0 14px 90px;gap:8px}
.time-shortcuts button{min-height:38px;padding:7px 9px}
.time-range-stack+.end-day-row{margin-top:9px;margin-bottom:14px}

.time-range-stack .time-shortcuts{gap:5px}
.time-shortcuts button{min-width:0;padding:7px 2px;font-size:11px}

/* Recurring templates share the existing journal palette and compact controls. */
.item-view-tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:25px}
.item-view-tabs button{font-size:13px;color:var(--muted);padding:8px 2px 12px;border-bottom:2px solid transparent}
.item-view-tabs button.active{color:var(--green);border-color:var(--green);font-weight:600}
.journal-tools{display:flex;align-items:center;gap:16px}
.journal-tools .text-button{font-size:12px;gap:4px}
.journal-tools svg{width:16px;height:16px}
.template-availability{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;padding:10px 12px;margin:2px 0 9px;background:#eaf1e7;border-radius:8px;font-size:11px;color:var(--green)}
.template-availability>span,.template-availability button{display:flex;align-items:center;gap:6px}
.template-availability svg{width:14px;height:14px}
.template-availability button{font-size:11px;min-height:28px}
.template-card{border:1px solid var(--line);background:#fff;border-radius:13px;margin:0 0 16px;padding:19px 19px 8px}
.template-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.template-card h2{font-size:16px;font-weight:600;overflow-wrap:anywhere}
.schedule-label{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px;margin-top:6px}
.schedule-label svg{width:14px;height:14px}
.template-card-entries{margin:18px 0 9px}
.template-card-entries>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:12px;padding:7px 0}
.template-entry-name{overflow-wrap:anywhere;min-width:0}
.template-card-entries time{font-size:10px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.template-card-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);font-size:11px;color:var(--muted);padding-top:5px}
.template-card-footer .text-button{font-size:12px}
.template-empty{padding-top:55px;padding-bottom:55px}
.field-hint{font-size:11px;color:var(--muted);line-height:1.8;margin:8px 0}
.weekday-picker{border:0;padding:0;margin:20px 0 25px}
.weekday-picker legend{font-size:12px;font-weight:550;color:#57685d;margin-bottom:10px}
.weekday-options{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.weekday-options label{position:relative;cursor:pointer;min-width:0}
.weekday-options input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0}
.weekday-options span{display:flex;align-items:center;justify-content:center;height:40px;border:1px solid var(--line);border-radius:8px;color:var(--muted);font-size:13px;pointer-events:none}
.weekday-options input:checked+span{background:var(--green);border-color:var(--green);color:#fff}
.weekday-options input:focus-visible+span{outline:3px solid #90b6a4;outline-offset:2px}
.weekday-presets{display:flex;gap:16px;margin-top:9px}
.weekday-presets button{font-size:11px;color:var(--green);padding:5px 0;min-height:30px}
.template-entries-heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0 11px}
.template-entries-heading h3{font-size:14px;font-weight:600}
.template-entries-heading span{font-size:11px;color:var(--muted)}
.template-entry-editor{border:1px solid var(--line);border-radius:11px;padding:9px 13px;background:#fafcf9;margin:11px 0}
.template-entry-header{display:flex;align-items:center;justify-content:space-between}
.template-entry-header h3{font-size:12px;font-weight:600}
.template-entry-header .icon-btn{height:28px;width:28px}
.template-entry-header svg{width:15px;height:15px}
.template-entry-editor .field{margin:10px 0 12px}
.template-entry-editor .field input,.template-entry-editor .field select{background:#fff;padding:10px;font-size:14px}
.template-entry-editor .field label{font-size:11px}
.template-entry-times{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.template-entry-times .field{min-width:0;margin-top:0;margin-bottom:2px}
.template-entry-times input{min-width:0;appearance:none;min-height:42px}
.template-range-hint{text-align:right;margin-top:5px;font-variant-numeric:tabular-nums}
.add-template-entry{width:100%;display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;border-style:dashed}
.add-template-entry svg{width:16px;height:16px}
.apply-guidance{font-size:12px;color:var(--muted);line-height:1.8;margin:22px 0 8px}
.apply-entry{display:flex;align-items:center;gap:9px;padding:15px 0;border-bottom:1px solid var(--line);cursor:pointer}
.apply-entry input{accent-color:var(--green);width:17px;height:17px;flex-shrink:0}
.apply-entry>span:last-of-type{flex:1;min-width:0}
.apply-entry strong{font-size:13px;font-weight:550;display:block;overflow-wrap:anywhere}
.apply-entry small{font-size:10px;color:var(--muted);display:block;margin-top:4px;overflow-wrap:anywhere;line-height:1.8}
.apply-entry.is-duplicate{opacity:.55}
.apply-entry em{font-size:10px;white-space:nowrap;font-style:normal;color:var(--muted)}
.template-mismatch{display:flex;align-items:flex-start;gap:10px;margin:24px 0;background:#f1f4ef;border-radius:9px;padding:15px;color:var(--muted);font-size:12px;line-height:1.9}
.template-mismatch svg{width:17px;height:17px;margin-top:3px}
@media(max-width:720px){.journal-tools{gap:12px}.journal-tools .text-button{font-size:11px}.template-card{padding:16px 15px 7px}.template-card-entries>div{font-size:11px}.template-entry-editor .field input,.template-entry-editor .field select{font-size:16px}.template-rule-tabs{margin-top:20px}}

/* Continuous capture: one composer, one save action, quiet record rows. */
.journal-scroll .compact-entry{min-height:88px;grid-template-columns:48px 17px minmax(0,1fr)}
.journal-scroll .compact-entry .entry-content{padding-bottom:23px}
.entry-time-button{align-self:start;text-align:left;padding:4px 0 7px;line-height:1.45;min-height:44px;border-radius:4px}
.entry-time-button:hover{color:var(--green)}
.compact-entry .entry-top{align-items:center;gap:7px}
.compact-entry .entry-title{font-size:14px;line-height:1.6;font-weight:550}
.compact-entry .duration{padding-top:0;font-size:10px}
.entry-more{font-size:20px;color:var(--muted);height:30px;min-width:28px;padding:0 2px;line-height:1}
.compact-entry .entry-reflection{margin-top:5px}
.entry-note-content{font-size:13px;line-height:1.8;color:#526659;white-space:pre-wrap;overflow-wrap:anywhere;display:block;width:100%;text-align:left;padding:2px 0;min-height:30px}
.entry-note-content.is-empty{font-size:12px;color:#849187}
.entry-note-content:hover{color:var(--green)}
.compact-entry .concurrent-tag svg{width:12px;height:12px}
.template-trigger{display:flex;align-items:center;gap:5px;color:var(--green);font-size:12px;min-height:36px}
.template-trigger svg{width:16px;height:16px}
.template-trigger>span{display:inline-flex;align-items:center;justify-content:center;background:#e2eddf;border-radius:50%;min-width:18px;height:18px;font-size:10px}
.composer-widget{padding-top:10px}
.composer-widget>.shortcut-row{margin-bottom:7px}
.composer-widget .recent-chip{background:transparent;padding:5px 10px}
.composer-search.search-wrap{margin:0;z-index:6}
.composer-writing{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
.composer-writing:focus-within{border-color:#8cae97;box-shadow:0 0 0 2px #245b4908}
.composer-writing textarea{display:block;width:100%;border:0;background:transparent;padding:11px 12px;font-size:16px;line-height:1.6;resize:none;min-height:70px;max-height:110px;outline:none}
.composer-writing textarea::placeholder{font-size:13px;color:#859187}
.composer-selected{display:flex;align-items:center;justify-content:space-between;margin:0 0 7px;gap:7px}
.composer-item-chip{display:flex;align-items:center;gap:7px;border:1px solid #dbe6d8;background:#ebf2e7;border-radius:7px;padding:4px 9px 4px 5px;min-width:0;max-width:calc(100% - 35px);font-size:12px;color:var(--green)}
.composer-item-chip>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.composer-item-chip .item-icon{width:25px;height:25px;background:transparent}
.composer-item-chip svg{width:17px;height:17px}
.composer-selected>.icon-btn{width:28px;height:28px}
.composer-selected>.icon-btn svg{width:14px;height:14px}
.composer-toolbar{display:flex;align-items:center;gap:8px;padding:8px 0 0}
.composer-mention-button{font-size:22px;color:var(--green);width:32px;height:38px;flex-shrink:0}
.composer-time-toggle{display:flex;align-items:center;gap:5px;color:var(--muted);min-height:38px;font-size:11px;padding:0;text-align:left;min-width:0;flex:1}
.composer-time-toggle>svg{width:14px;height:14px;flex-shrink:0}
.composer-time-toggle>svg:last-child{width:11px;height:11px}
.composer-time-toggle>span{font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.composer-save{min-height:38px;padding:7px 17px;font-size:12px;border-radius:8px;flex-shrink:0}
.composer-time-panel{background:#edf3e9;border-radius:10px;padding:11px 12px;margin-top:10px;max-height:230px;overflow:auto;overscroll-behavior:contain}
.composer-time-panel[hidden]{display:none}
.composer-time-panel .time-range-stack{margin:0}
.composer-time-panel .time-line{grid-template-columns:65px minmax(0,1fr);gap:9px}
.composer-time-panel .time-line label{font-size:11px}
.composer-time-panel .time-pair select{padding:7px;border-color:#d3dfcf;background:#fff;font-size:16px;min-height:37px}
.composer-time-panel .time-shortcuts{margin:8px 0 8px 74px}
.composer-time-panel .time-shortcuts button{background:#fafff7;min-height:31px;padding:5px 0;font-size:10px}
.composer-time-panel .time-shortcuts button[aria-pressed=true]{background:var(--green);color:#fff;border-color:var(--green)}
.composer-range-hint{font-size:10px;color:var(--muted);text-align:right;margin-top:7px;font-variant-numeric:tabular-nums}
.composer-error{font-size:11px;color:#a74f45;margin:7px 0 0;line-height:1.7}
.composer-error[hidden]{display:none}
.composer-create{display:flex;align-items:center;flex-wrap:wrap;gap:8px;background:#eaf1e6;padding:11px;margin-top:10px;border-radius:8px}
.composer-create p{width:100%;font-size:12px;overflow-wrap:anywhere}
.composer-create label{font-size:11px;color:var(--muted)}
.composer-create select{padding:6px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:16px}
.composer-create .secondary{font-size:11px;min-height:33px;padding:6px 10px}
.composer-create .icon-btn{height:28px;width:28px;margin-left:auto}
.record-menu{padding:0 24px 25px}
.record-menu p{font-size:12px;color:var(--muted);margin-bottom:15px;font-variant-numeric:tabular-nums}
.record-menu>button{display:flex;align-items:center;gap:12px;width:100%;padding:15px 0;font-size:14px;text-align:left;border-bottom:1px solid var(--line)}
.record-menu>button:last-child{border-bottom:0}
.record-menu svg{width:18px;height:18px}
.apply-context{display:flex;align-items:center;justify-content:space-between;padding:5px 0 12px;font-size:12px;color:var(--muted)}
.apply-context button{font-size:11px;color:var(--green);min-height:32px}
.apply-template-title{font-size:16px;font-weight:600;margin:6px 0 7px}
.apply-template-tabs{display:flex;overflow:auto;gap:8px;margin:4px 0 12px}
.apply-template-tabs button{white-space:nowrap;border:1px solid var(--line);border-radius:20px;padding:7px 11px;font-size:12px;color:var(--muted)}
.apply-template-tabs button.active{background:var(--soft);border-color:#b9cfb3;color:var(--green)}
@media(max-width:720px){.journal-main{padding-top:13px}.journal-main>.mobile-brand{margin-bottom:8px}.journal-main>.topline{margin-bottom:2px}.journal-scroll{padding-top:17px}.composer-time-panel .time-pair select{padding:6px 3px}.composer-time-panel .time-shortcuts{gap:4px}.composer-time-toggle{font-size:10px}.composer-toolbar{gap:6px}.composer-save{padding-left:14px;padding-right:14px}.entry-more{min-width:30px;height:34px}}
@media(max-height:650px) and (max-width:720px){.composer-widget>.shortcut-row{display:none}.composer-time-panel{max-height:110px}.composer-writing textarea{min-height:57px}}
@media(max-height:540px) and (max-width:720px){.journal-main>.mobile-brand{display:none}.composer-time-panel{max-height:85px}}
.entry-note-content.is-empty{color:var(--muted)}
.composer-writing textarea::placeholder{color:var(--muted)}
.compact-entry .time .end-time{color:var(--muted)}

/* Unrecorded intervals stay actionable until their uncovered time is filled. */
.timeline-gap{position:relative;display:grid;grid-template-columns:48px 17px minmax(0,1fr);min-height:64px;margin-bottom:8px}
.timeline-gap::before{content:"";position:absolute;left:52px;top:-8px;bottom:-3px;border-left:1px dashed #bdcdbd;pointer-events:none}
.gap-add{grid-column:2/-1;display:flex;align-items:center;position:relative;min-height:56px;text-align:left;padding:10px 4px 10px 22px;border-radius:7px;color:var(--muted)}
.gap-add:hover{background:#edf3e9;color:var(--green)}
.gap-plus{position:absolute;left:-5px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid #b6cbb5;border-radius:50%;background:var(--bg);color:var(--green);font-size:16px;line-height:1}
.gap-description{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;font-variant-numeric:tabular-nums}
.gap-description small{font-size:10px;color:var(--muted)}

.category-filter-row{display:flex;align-items:center;gap:8px;margin-bottom:21px}
.category-filter-row .filter-chips{flex:1;min-width:0;margin:0}
.category-add{width:38px;height:38px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid #cbdcca;color:var(--green);background:#edf3e9;border-radius:50%}
.category-add svg{width:18px;height:18px}
.category-color-picker{padding:0;border:0;margin:24px 0 15px}
.category-color-picker legend{font-size:12px;color:var(--muted);margin-bottom:13px}
.category-color-picker>div{display:flex;gap:9px;flex-wrap:wrap}
.category-color-picker label{position:relative;width:32px;height:32px;cursor:pointer}
.category-color-picker input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0}
.category-color-picker span{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:var(--swatch);border-radius:50%;color:#fff;pointer-events:none}
.category-color-picker svg{width:17px;height:17px;opacity:0;stroke-width:2}
.category-color-picker input:checked+span{outline:2px solid var(--swatch);outline-offset:3px}
.category-color-picker input:checked+span svg{opacity:1}
.category-color-picker input:focus-visible+span{outline:3px solid #90b6a4;outline-offset:4px}

.gap-continue{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;margin:0 0 10px;padding:10px 12px;border:1px solid #c8d9c0;border-radius:9px;background:#e9f2e3;color:var(--green);text-align:left}
.gap-continue>svg{width:17px;height:17px;flex-shrink:0}
.gap-continue>span{flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere}
.gap-continue>small{font-size:10px;white-space:nowrap;font-variant-numeric:tabular-nums;color:#526e58}
.composer-gap-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px 0 6px;color:var(--green);font-size:12px}
.composer-gap-cancel{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:0 8px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit}
.composer-gap-cancel svg{width:16px;height:16px}
.composer-gap-cancel:hover{background:#e9f2e3}

/* Two rows: endpoints and duration, followed by minute presets. */
.time-range-stack.compact-time-range{display:grid;grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr) minmax(43px,auto);grid-template-areas:"start arrow end total" "presets presets presets presets";align-items:center;gap:8px 6px;margin:17px 0}
.compact-time-range .time-line{display:block!important;position:relative;margin:0!important;min-width:0;grid-area:start}
.compact-time-range .time-line:nth-of-type(2){grid-area:end}
.compact-time-range .time-line>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.compact-time-range .time-pair{display:flex;align-items:center;gap:0;padding:0 3px;border:1px solid #d3dfcf;border-radius:8px;background:#fff;min-width:0}
.compact-time-range .time-pair select{appearance:none;background:transparent!important;border:0!important;border-radius:5px;padding:0!important;margin:0;text-align:center;min-width:0;flex:1;width:100%;min-height:42px;font-size:16px!important}
.compact-time-range .time-pair>span{font-size:14px;color:var(--muted);flex-shrink:0}
.time-range-arrow{grid-area:arrow;font-size:14px;color:var(--muted);text-align:center}
.compact-time-range .compact-duration{grid-area:total;display:block;text-align:right;white-space:pre-line;font-size:10px;line-height:1.6;color:var(--green);font-variant-numeric:tabular-nums;margin:0!important;padding:0!important;background:transparent;border:0;min-width:0;max-width:72px}
.compact-duration small{display:block;color:var(--muted);font-size:9px}
.compact-time-range .time-shortcuts{grid-area:presets;display:flex;gap:6px;margin:0!important}
.compact-time-range .time-shortcuts button{flex:1;min-width:0;min-height:40px;padding:7px 1px;font-size:11px}
.composer-time-panel .compact-time-range{margin:0}
.composer-time-panel{max-height:none;padding:10px}
.composer-time-panel .time-shortcuts button{min-height:36px}
.template-entry-editor .compact-time-range{grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr) 43px;gap:8px 5px}
.time-period-divider{display:flex;align-items:center;gap:9px;margin:16px 0 15px;min-height:29px;color:var(--muted)}
.time-period-divider:first-child{margin-top:0}
.time-period-divider>span{font-size:12px;font-weight:600;padding:3px 9px;border-radius:6px;color:#526079;background:#edf0f8}
.time-period-divider[data-period=morning]>span{color:#3e6a50;background:#e7f0e5}
.time-period-divider[data-period=afternoon]>span{color:#816337;background:#f4eedf}
.time-period-divider[data-period=evening]>span{color:#6d567a;background:#f0eaf4}
.time-period-divider>small{font-size:10px;font-variant-numeric:tabular-nums}
.time-period-divider::after{content:"";flex:1;min-width:10px;border-top:1px solid var(--line)}
.record-period-note{display:block;font-size:10px;color:var(--muted);margin-top:3px}

.entry-reorder-handle{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab;text-align:left;padding:4px 0;border-radius:4px}
.entry-reorder-handle:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.timeline-reordering{user-select:none;-webkit-user-select:none;cursor:grabbing}
.timeline-reordering .entry-reorder-handle{cursor:grabbing}
.entry.is-reordering{opacity:.55;background:#e9f2e3;border-radius:8px}
.entry.reorder-eligible{position:relative}
.entry.reorder-before::before,.entry.reorder-after::after{content:'';position:absolute;left:0;right:0;height:3px;border-radius:3px;background:var(--green);z-index:3;pointer-events:none}
.entry.reorder-before::before{top:0}.entry.reorder-after::after{bottom:0}
.entry-reorder-handle::after{content:'⠿';font-size:12px;font-weight:400;margin-left:7px;color:#8d9e93}
.one-off-picker{margin-top:10px;color:var(--muted);font-size:12px}
.one-off-picker summary{cursor:pointer;padding:8px 0}
.one-off-picker .search-wrap{margin-top:5px}

.entry-just-saved{border-radius:8px;animation:saved-entry-feedback 2s ease-out}
@keyframes saved-entry-feedback{from{background:#dfeeda}to{background:transparent}}
@media(prefers-reduced-motion:reduce){.entry-just-saved{animation:none;outline:1px solid #c8d9c0;outline-offset:3px}}
.record-menu .align-end-action span{display:block;text-align:left;min-width:0}
.record-menu .align-end-action small{display:block;font-size:11px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}

.entry-swipe-row{position:relative;overflow:hidden;isolation:isolate}
.entry-swipe-row>.entry{background:var(--bg);transform:translateX(var(--swipe-offset,0px));transition:transform .18s ease-out;z-index:1;touch-action:pan-y}
.entry-swipe-row>.entry button{touch-action:pan-y}
.entry-swipe-row>.entry .entry-reorder-handle{touch-action:none}
.entry-swipe-row.is-swiping>.entry{transition:none;user-select:none;-webkit-user-select:none}
.entry-swipe-actions{position:absolute;top:0;bottom:8px;display:flex;align-items:stretch;visibility:hidden;pointer-events:none;border-radius:9px;overflow:hidden}
.entry-swipe-actions.is-revealed{visibility:visible;pointer-events:auto}
.entry-swipe-actions.swipe-start{left:0}.entry-swipe-actions.swipe-end{right:0}
.entry-swipe-actions button{width:52px;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:10px 4px;background:#e3ece5;color:var(--green);font-size:11px;line-height:1.5}
.entry-swipe-actions.swipe-start button{width:52px;background:#dcebdd}
.entry-swipe-actions button+button{border-left:1px solid #ffffff70}
.entry-swipe-actions .swipe-delete{background:#a94d49;color:#fff}
.entry-swipe-actions svg{width:21px;height:21px}
@media(prefers-reduced-motion:reduce){.entry-swipe-row>.entry{transition:none}}
.mention-chips{display:flex;flex-wrap:wrap;gap:5px;margin:5px 0}
.mention-chips:empty{display:none}
.mention-chips button,.mention-chips span{font-size:11px;border-radius:15px;padding:5px 9px;background:#e9efea;color:var(--green);overflow-wrap:anywhere;max-width:100%}
.item-view-tabs{flex-wrap:wrap}
.record-associations{padding:10px 0;font-size:13px}.record-associations>input{display:block;width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;margin:8px 0}
.association-options{max-height:180px;overflow:auto}.association-options label{display:flex;gap:9px;padding:8px}.association-options label[hidden]{display:none}
.mention-chips>button,.mention-chips>span{display:inline-flex;align-items:center;gap:5px}
.mention-chips svg{width:13px;height:13px;flex-shrink:0}
.capture-mode-tabs{display:flex;gap:4px;border-top:1px solid var(--line);padding:9px 0 0;flex-shrink:0}
.capture-mode-tabs button{font-size:12px;padding:7px 18px;border-radius:18px;color:var(--muted)}
.capture-mode-tabs button[aria-pressed=true]{color:var(--green);background:var(--soft);font-weight:600}
.quick-favorites{max-height:210px;overflow:auto;overscroll-behavior:contain;margin-bottom:9px}
.quick-hint{font-size:11px;color:var(--muted);margin:0 0 9px}
.favorite-group{margin:7px 0}.favorite-group>small{font-size:10px;color:var(--muted)}.favorite-group>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.favorite-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:8px 10px;font-size:12px;min-height:40px}
.favorite-chip svg{width:15px;height:15px}.favorite-chip.selected{background:var(--green);border-color:var(--green);color:#fff}
.empty-favorites{font-size:11px;color:var(--muted)}
.pending-count{font-size:11px;background:#f1ebda;border-radius:12px;padding:5px 9px;color:#826631}
.pending-entry{position:relative;border-left:2px solid #b29b67;margin:9px 0 16px 51px;padding:10px 12px;background:#f2f2e9;border-radius:0 9px 9px 0;font-size:12px}
.pending-entry>div:first-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pending-entry small{color:#826631;font-size:10px}.pending-entry time{font-variant-numeric:tabular-nums}.pending-entry .text-button{margin-top:7px;min-height:34px}.pending-entry p{margin-top:7px;color:var(--muted)}
.historical-quick{padding:20px;text-align:center}
.journal-composer [hidden]{display:none!important}
.quick-favorites{max-height:245px}
.favorite-group{display:grid;grid-template-columns:28px minmax(0,1fr);gap:7px;align-items:start}
.favorite-group>small{padding-top:11px}.favorite-group>div{margin-top:0}
.quick-hint{margin-bottom:5px}
.journal-composer:has(.quick-favorites) #composer-note{min-height:42px;height:42px}
.quick-favorites{max-height:none;overflow:visible}
.favorite-group{grid-template-columns:28px minmax(0,1fr)}
.favorite-group>div{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px;overscroll-behavior-x:contain;scrollbar-width:thin}
.favorite-chip{flex:0 0 auto;white-space:nowrap}
.quick-hint{font-size:10px}
.composer-quick-toggle{display:inline-flex;align-items:center;gap:4px;padding:8px;border-radius:8px;color:var(--green);font-size:12px;min-height:40px;margin-left:auto}
.composer-quick-toggle[aria-expanded=true]{background:var(--soft)}
.composer-quick-toggle svg{width:16px;height:16px}
.pending-title{font-size:12px;font-weight:600;padding:4px 0;text-align:left}
#quick-title-field[hidden]{display:none}
.association-options svg{width:15px;height:15px}
.item-row .pin-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex-shrink:0;min-width:78px;width:auto;height:40px;padding:0 10px;border:1px solid #b9c9be;border-radius:9px;background:#fff;color:#526b5c;font-size:11px;white-space:nowrap}
.item-row .pin-btn svg{width:16px;height:16px}
.item-row .pin-btn.pinned{background:var(--green);color:#fff;border-color:var(--green);font-weight:650}
.item-row .pin-btn.pinned svg{stroke-width:2.1}
.item-row .item-name{min-width:0;overflow-wrap:anywhere}
.entity-selection{margin:17px 0;position:relative}
.entity-selection>label{font-size:12px;color:var(--muted);display:block;margin-bottom:7px}
.entity-selection>input[type=search]{width:100%;border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:#fafbf9;font-size:16px;min-height:42px}
.entity-selection .entity-selected{margin-bottom:8px}
.entity-selection .entity-selected:empty{display:none}
.entity-mention-results{max-height:185px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:9px;margin-top:5px}
.entity-mention-results button{display:flex;align-items:center;gap:8px;width:100%;padding:10px 12px;text-align:left;min-height:44px;font-size:13px}
.entity-mention-results button:hover,.entity-mention-results button:focus{background:var(--soft)}
.entity-mention-results button small{margin-left:auto;font-size:10px;color:var(--muted)}
.entity-mention-results svg{width:15px;height:15px}
.entity-mention-results p{padding:10px 12px}
.composer-open-hint{font-size:11px;color:var(--muted);margin:7px 0 0;line-height:1.6}
.review-tabs{display:flex;gap:4px;background:#eaf0e9;padding:4px;border-radius:10px;margin:10px 0 16px}
.review-tabs button{flex:1;padding:8px 4px;border-radius:7px;font-size:13px;color:var(--muted)}
.review-tabs button[aria-pressed=true]{background:#fff;color:var(--green);font-weight:600;box-shadow:0 1px 3px #244c3310}
.review-range{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:center;margin:20px 0}
.review-range h1{font-size:18px;font-weight:600}.review-range input{max-width:140px;background:transparent;border:0;font-size:12px;color:var(--muted);margin:8px}
.review-summary{background:var(--soft);padding:22px;border-radius:14px;margin:20px 0}.review-summary>p{font-size:12px;color:var(--muted)}.review-summary>strong{font-size:34px;display:block;margin:8px 0}.review-summary>div{font-size:13px}.review-summary>small{font-size:11px;color:var(--muted);display:block;margin-top:8px}
.review-trend{display:flex;gap:5px;overflow-x:auto;min-height:140px;align-items:end;padding:8px 0}
.review-trend>button{min-width:19px;flex:1;padding:0;display:flex;flex-direction:column;gap:5px;align-items:center}
.trend-track{height:100px;display:flex;align-items:end;width:100%;max-width:34px;background:#eef1ec;border-radius:4px;overflow:hidden}.trend-track>span{display:block;width:100%;background:#6e9c80;border-radius:4px 4px 0 0}.review-trend small{font-size:9px;color:var(--muted)}
.review-list-tools{display:flex;gap:8px;margin:18px 0}.review-list-tools input{min-width:0;flex:1;padding:10px;border:1px solid var(--line);border-radius:8px;font-size:16px}.review-list-tools select{max-width:120px;border:1px solid var(--line);border-radius:8px;font-size:12px;background:#fff}
.review-entity{display:flex;width:100%;align-items:center;justify-content:space-between;padding:17px 3px;border-bottom:1px solid var(--line);text-align:left;gap:12px;font-size:14px}.review-entity>strong{text-align:right;font-size:17px;flex-shrink:0;color:var(--green)}.review-entity small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:4px}.review-entity:hover{background:var(--soft)}
.review-back{margin:8px 0 18px}.review-detail-summary{font-size:12px;margin:10px 0;color:var(--muted)}.review-date-link{display:block;font-size:12px;color:var(--green);font-weight:600;margin:20px 0 8px}
.review-record{display:block;width:100%;text-align:left;padding:14px 10px;border:1px solid var(--line);border-radius:9px;margin:8px 0;background:#fff}.review-record>strong,.review-record>small,.review-record>span{display:block}.review-record>small{font-size:11px;color:var(--muted);margin:7px 0}.review-record>span{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.review-record .mention-chips{display:flex}
.review-shell{grid-template-columns:224px minmax(0,1fr)}
.review-shell>.main{max-width:900px;width:100%;margin:0 auto}
.share-summary{margin:18px 0 12px;padding:14px 16px;background:var(--soft);border-radius:10px}
.share-summary h2{font-size:14px;margin-bottom:6px}.share-summary p{font-size:12px;color:var(--green)}.share-summary small{display:block;color:var(--muted);font-size:10px;line-height:1.7;margin-top:6px}
.review-entity.has-time-share{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 12px;padding:17px 3px}
.share-values{grid-column:1/-1;display:flex!important;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}.share-values b{font-variant-numeric:tabular-nums;font-weight:600;color:var(--green)}
.share-track{grid-column:1/-1;height:6px;background:#e5ece6;border-radius:5px;overflow:hidden}.share-track>span{display:block;height:100%;background:#3e7b61;border-radius:5px}
.is-unmarked .share-track>span{background:#9ca99e}.is-unmarked>span:first-child{color:var(--muted)}
.review-anchor-weekday{font-size:11px;color:var(--muted);white-space:nowrap;margin-right:6px}
.review-help-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.review-help-heading>h2,.review-help-heading>h3,.review-help-heading>p{margin:0}
.review-help-heading .subheading{padding:12px 0}
.review-help{position:relative;flex-shrink:0;margin-left:auto;width:36px;color:var(--muted)}
.review-help summary{list-style:none;display:flex;align-items:center;justify-content:center;width:36px;height:36px;cursor:pointer;border-radius:50%}
.review-help summary::-webkit-details-marker{display:none}
.review-help summary:hover,.review-help[open] summary{background:#dce8dc;color:var(--green)}
.review-help summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.review-help svg{width:17px;height:17px}
.review-help-content{position:absolute;z-index:12;right:0;top:calc(100% + 5px);width:min(290px,calc(100vw - 56px));padding:14px 16px;border:1px solid var(--line);background:#fff;border-radius:10px;box-shadow:0 5px 20px #203b3420;font-size:12px;line-height:1.8;color:var(--ink);text-align:left;font-weight:400}
.review-pending-status{font-size:12px;color:var(--muted);margin:12px 0}
