:root{--paper:#ffffff;--white:#ffffff;--ink:#263b33;--muted:#747b70;--line:#e2e5d9;--green:#365b49;--pale:#e7eddf;--amber:#9a6c2e;--danger:#a34b3e;--sans:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.6 var(--sans);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.5}button{border:0;background:none}button:focus-visible,a:focus-visible{outline:2px solid var(--green);outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #91a790;outline-offset:1px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}a{color:inherit}button{touch-action:manipulation}.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip-link:focus{position:fixed;top:10px;left:250px;z-index:10;background:white;padding:10px}
.sidebar{position:fixed;inset:0 auto 0 0;width:235px;padding:37px 25px 25px;background:#ffffff;border-right:1px solid var(--line);display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;font-size:24px;letter-spacing:3px;font-weight:600}.brand small{display:block;font-size:9px;letter-spacing:3px;color:var(--muted);font-weight:500;line-height:1.8}.brand-mark{width:42px;height:48px;display:grid;place-items:center;background:var(--green);border-radius:4px 13px 4px 4px;color:#fffefa;font-size:25px;letter-spacing:0;font-weight:400}.nav-caption{font-size:11px;letter-spacing:1px;color:var(--muted);margin:32px 12px 13px}.primary-nav,.area-nav{display:grid;gap:5px}.nav-item,.area-item{display:flex;align-items:center;text-align:left;padding:11px 13px;border-radius:7px;gap:13px;width:100%;min-height:44px}.nav-item{font-size:15px}.nav-item:hover,.area-item:hover{background:#e7e9df}.nav-item.active{background:#dfe7d7;font-weight:600}.nav-icon{font-size:22px;line-height:1;width:21px}.nav-count{margin-left:auto;font-size:12px;background:#cbd9c1;padding:0 7px;border-radius:5px}.side-divider{height:1px;background:var(--line);margin:24px 12px 0}.side-divider+.nav-caption{margin-top:24px}.area-item{padding:8px 13px;font-size:13px}.area-item.active{font-weight:600;background:#e6e8dd}.area-dot{height:7px;width:7px;border-radius:50%;background:#a0a58f}.work-dot{background:#587462}.family-dot{background:#bd9367}.personal-dot{background:#8d8eaa}.all-dot{background:transparent;border:1px solid #76856a}.sidebar-foot{margin-top:auto;padding:20px 12px 0;font-size:12px;color:var(--muted)}.sidebar-foot p{line-height:1.9;margin-bottom:20px}.connection{font-size:11px}.connection:before{content:"";display:inline-block;width:5px;height:5px;background:#78916f;border-radius:100%;margin-right:7px}.connection.offline:before{background:#b78e55}.sidebar-foot .text-button{display:block;margin-top:8px}
.main{margin-left:235px;max-width:1320px;padding:0 64px 32px}.topbar{height:99px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;gap:12px}.top-actions{display:flex;align-items:center;gap:24px}.quiet-button{color:var(--muted);padding:8px 10px;min-height:40px}kbd{font:11px var(--sans);border:1px solid var(--line);border-radius:3px;padding:1px 5px;margin-left:8px}.primary{background:var(--green);color:var(--white);padding:11px 24px;border:1px solid var(--green);border-radius:6px;min-height:44px;font-weight:500}.primary:hover{background:#284b39}.primary.small{font-size:12px;padding:9px 15px;min-height:38px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:43px 0 32px}.eyebrow{font-size:10px;letter-spacing:2.8px;color:var(--muted);margin-bottom:14px}h1{font-weight:500;font-size:31px;letter-spacing:1px;line-height:1.45}.page-heading p:last-child{color:var(--muted);font-size:13px;margin-top:12px}.heading-symbol{font-size:72px;color:#a6b298;font-weight:200;line-height:1;padding-right:9px}.quick-card{background:var(--white);border:1px solid var(--line);border-radius:9px;overflow:hidden;margin-bottom:31px}.quick-entry{padding:22px;display:flex;align-items:center;gap:14px;text-align:left;width:100%;font-size:15px;color:#808678;min-height:76px}.quick-plus{display:grid;place-items:center;width:29px;height:29px;border:1px solid #c5cebc;border-radius:50%;font-size:23px;font-weight:300;color:var(--green)}.quick-hint{font-size:10px;margin-left:auto;color:#909686;letter-spacing:1px}.quick-footer{padding:10px 20px;background:#fafbf5;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #edf0e5;color:#858c7f;font-size:11px}.text-button{font-size:12px;color:var(--green);padding:6px 0;text-align:left}.list-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:17px;border-bottom:1px solid var(--line)}.status-tabs{display:flex;gap:5px;flex-wrap:wrap}.status-tabs button{font-size:12px;padding:7px 11px;color:var(--muted);border-radius:5px;min-height:36px}.status-tabs button.selected{color:var(--green);background:var(--pale);font-weight:600}.archive-toggle{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--muted);white-space:nowrap}.archive-toggle input{accent-color:var(--green)}.section-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-line h2{font-size:15px;font-weight:500}.section-line span{font-size:11px;color:var(--muted)}.group-title{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:1px;font-weight:500;color:var(--muted);margin:25px 0 9px}.group-title .count{font-size:10px;letter-spacing:0;color:#929987;margin-left:auto}.task-row{display:flex;align-items:flex-start;gap:14px;min-height:89px;padding:20px 4px;border-bottom:1px solid var(--line)}.complete-button{flex:0 0 22px;width:22px;height:22px;min-height:22px;border:1.3px solid #a9b5a2;border-radius:50%;padding:0;line-height:20px;margin-top:2px;font-size:12px;position:relative}.complete-button:before{content:"";position:absolute;inset:-11px}.complete-button:hover{background:var(--pale)}.complete-button.doing{border-color:var(--amber);color:var(--amber);background:#f4ebdb}.complete-button.done{background:var(--green);border-color:var(--green);color:var(--white)}.task-content{flex:1;min-width:0}.task-title{display:block;text-align:left;padding:0;font-size:15px;line-height:1.6;overflow-wrap:anywhere;width:100%}.task-title:hover{color:#60815d}.task-row.done .task-title{color:#7a8475;text-decoration:line-through;text-decoration-color:#bec7b5}.task-body{color:#858b7f;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:3px}.task-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:10px;color:#87917e;margin-top:7px}.task-meta .area-label{display:inline-flex;align-items:center;gap:5px}.task-meta .overdue{color:#a56b45}.row-status{font-size:11px;border:1px solid var(--line);background:transparent;border-radius:5px;padding:6px 9px;color:#77856d;max-width:102px;margin-top:1px;min-height:34px}.row-status.doing{color:var(--amber);border-color:#e5d6bd;background:#f7f0e4}.row-status.done{color:var(--green)}.empty-state{padding:58px 20px 65px;text-align:center;color:var(--muted)}.empty-mark{display:block;margin:0 auto 17px;width:48px;height:56px;border:1px solid #bdcbb3;border-radius:5px 15px 5px 5px;line-height:52px;font-size:24px;color:#9eaf91}.empty-state h2{font-size:17px;color:#4d634d;font-weight:500;margin-bottom:9px}.empty-state p{font-size:12px;line-height:1.9}.empty-state .text-button{margin-top:15px}.page-footer{display:flex;justify-content:space-between;gap:20px;margin-top:53px;padding-top:18px;border-top:1px solid var(--line);font-size:9px;letter-spacing:1px;color:#969e8c}.page-footer span:last-child{letter-spacing:0}.search-wrap{display:flex;gap:10px;align-items:center;margin-bottom:25px}.search-wrap input{flex:1;min-width:0}.mobile-nav,.mobile-areas{display:none}
.journal-day{margin:28px 0 10px;font-size:12px;font-weight:500;color:var(--muted)}.journal-row{border-left:1px solid #c9d3bf;margin-left:6px;padding:4px 0 23px 22px;position:relative}.journal-row:before{content:"";position:absolute;left:-4px;top:12px;width:7px;height:7px;background:#93a585;border:1px solid var(--paper);border-radius:50%}.journal-row.note:before{background:#b79f7e}.journal-row .task-title{font-size:14px}.journal-body{font-size:12px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin-top:7px;max-height:120px;overflow:hidden}.journal-label{display:block;font-size:10px;color:#8b947f;margin-bottom:5px}.week-switch{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:24px}.week-switch h2{font-size:15px;font-weight:500}.review-intro{background:#e8eedf;border-radius:8px;padding:25px;margin-bottom:27px}.review-intro h3{font-size:19px;font-weight:500;margin:9px 0}.review-intro p{font-size:12px;color:#66775c;line-height:1.9}.review-label{font-size:10px;letter-spacing:1.5px;color:#6a7c5f}.review-section{margin:28px 0}.review-section h3{font-size:14px;font-weight:500;margin-bottom:14px}.review-section .review-link{display:block;width:100%;text-align:left;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px;overflow-wrap:anywhere}.review-link small{font-size:10px;color:var(--muted);margin-left:12px}.review-note{font-size:11px;color:var(--muted);line-height:1.9}.agent-note{padding:17px;border:1px dashed #c7d1bd;border-radius:6px;font-size:12px;color:var(--muted);line-height:1.9}.agent-section{border-top:1px solid var(--line);padding-top:24px;margin-top:28px}.agent-section h3{font-size:15px;margin-bottom:10px;font-weight:500}.agent-section p{white-space:pre-wrap;font-size:13px}.source-links{display:flex;flex-wrap:wrap;gap:8px}.source-links button{font-size:11px;text-decoration:underline;color:var(--green)}.agent-row{margin:16px 0}.stale-label{color:var(--amber);font-size:12px;margin-bottom:10px}
dialog{border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--ink);width:min(560px,calc(100vw - 32px));max-height:90dvh;padding:27px;overflow-y:auto}dialog::backdrop{background:#20302566;backdrop-filter:blur(3px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.dialog-top h2{font-size:19px;font-weight:500}.icon-button{font-size:25px;line-height:32px;min-width:36px;color:var(--muted)}.segmented{display:flex;border-radius:6px;background:#f0f2e9;padding:4px;margin-bottom:20px;gap:4px}.segmented button{flex:1;padding:7px;font-size:13px;border-radius:4px}.segmented button.selected{background:var(--white);color:var(--green);font-weight:500}form label{display:block;font-size:12px;margin:16px 0 6px;color:#586952}.optional{color:#9ba18e;font-size:10px;margin-left:5px}input:not([type=checkbox]),textarea,select{width:100%;background:#ffffff;border:1px solid #d9dfcf;color:var(--ink);border-radius:5px;padding:11px 12px;min-height:44px}textarea{resize:vertical;line-height:1.8}input::placeholder,textarea::placeholder{color:#9a9f91;font-size:13px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-hint{font-size:11px;color:var(--muted);line-height:1.8}.form-hint#draft-hint{margin-top:19px}.dialog-bottom{display:flex;align-items:center;gap:15px;border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.dialog-bottom .primary{margin-left:auto}.error{font-size:12px;color:var(--danger);margin-top:12px}.error:empty{display:none}#item-history{margin-top:20px;padding-top:15px;border-top:1px solid var(--line)}#item-history summary{font-size:12px;color:var(--muted);cursor:pointer;min-height:32px}#item-history ol{padding-left:18px;margin:10px 0;font-size:11px;color:var(--muted)}#item-history li{margin-bottom:9px}#item-history .original{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;padding:10px;background:#f4f5ed;border-radius:4px;max-height:180px;overflow:auto}.login-brand{margin-bottom:27px}#login-dialog{max-width:390px;padding:35px}#login-dialog h2{font-size:23px;font-weight:500;margin-bottom:8px}#login-dialog .primary{width:100%;margin-top:23px}.toast{position:fixed;bottom:27px;left:calc(50% + 100px);transform:translateX(-50%);max-width:calc(100vw - 36px);background:#2b4437;color:#fffefa;padding:12px 19px;border-radius:7px;z-index:20;font-size:12px;display:flex;gap:20px;align-items:center}.toast button{color:#d7e7bd;text-decoration:underline;white-space:nowrap;padding:6px}.toast span{overflow-wrap:anywhere}
@media(min-width:1600px){.main{margin:auto auto auto 235px;padding-left:100px;padding-right:100px;max-width:1250px}}
@media(max-width:1100px){.sidebar{width:205px;padding:30px 18px}.main{margin-left:205px;padding:0 32px 28px}.top-actions{gap:10px}.heading-symbol{font-size:58px}h1{font-size:27px}}
@media(max-width:760px){body{padding-bottom:calc(77px + env(safe-area-inset-bottom))}.sidebar{display:none}.main{margin-left:0;padding:0 22px 18px}.topbar{height:72px;font-size:10px}.top-actions{gap:3px}.top-actions kbd{display:none}.primary.small{padding:8px 11px;min-height:36px;font-size:11px}.quiet-button{font-size:11px}.page-heading{padding:30px 0 26px}.eyebrow{font-size:8px;letter-spacing:2px;margin-bottom:12px}h1{font-size:26px;letter-spacing:.2px}.page-heading p:last-child{font-size:12px;margin-top:10px}.heading-symbol{font-size:50px;padding-right:0}.quick-card{margin-bottom:24px}.quick-entry{padding:19px 15px;font-size:13px;gap:10px;min-height:72px}.quick-hint{display:none}.quick-plus{width:25px;height:25px;font-size:20px;flex-shrink:0}.quick-footer{padding:8px 13px;font-size:9px;gap:6px}.quick-footer .text-button{font-size:10px;white-space:nowrap}.list-toolbar{flex-wrap:wrap;gap:8px;padding-bottom:12px}.status-tabs{gap:0}.status-tabs button{font-size:11px;padding:7px 9px;min-height:38px}.archive-toggle{font-size:10px;margin-left:auto}.mobile-areas{display:flex;gap:7px;overflow-x:auto;padding:16px 0 0;scrollbar-width:none}.mobile-areas button{flex-shrink:0;font-size:11px;color:var(--muted);min-height:32px;padding:5px 10px;border:1px solid transparent;border-radius:20px}.mobile-areas button.selected{border-color:#c5d0b9;color:var(--green)}.group-title{margin-top:22px;font-size:10px}.task-row{gap:12px;padding:18px 1px}.task-title{font-size:14px}.task-body{font-size:11px}.task-meta{font-size:9px;gap:9px}.row-status{padding:5px 4px;font-size:10px;max-width:85px;min-height:36px}.complete-button{flex-basis:20px;width:20px;height:20px;min-height:20px}.page-footer{margin-top:35px;font-size:8px;gap:13px;align-items:flex-start}.page-footer span:first-child{white-space:nowrap}.page-footer span:last-child{max-width:180px;text-align:right}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fffffffa;border-top:1px solid var(--line);padding:8px 15px calc(7px + env(safe-area-inset-bottom));z-index:5;backdrop-filter:blur(12px)}.mobile-nav button{display:flex;flex-direction:column;align-items:center;flex:1;font-size:24px;color:#8b9680;line-height:1.25;gap:2px;padding:4px;min-height:50px}.mobile-nav button span{font-size:10px}.mobile-nav button.active{color:var(--green)}.toast{left:50%;bottom:calc(89px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 32px)}dialog{padding:21px;width:calc(100vw - 24px);max-height:91dvh;border-radius:12px}.form-grid{gap:11px}input:not([type=checkbox]),textarea,select{font-size:16px}input::placeholder,textarea::placeholder{font-size:13px}.dialog-bottom{position:sticky;bottom:-21px;background:var(--white);padding-bottom:13px;margin-bottom:-13px}.form-hint{font-size:10px}.week-switch h2{font-size:13px}.review-intro{padding:20px}.review-intro h3{font-size:18px}.section-line h2{font-size:14px}.section-line span{font-size:10px}.empty-state{padding:46px 10px}.search-wrap input{font-size:16px}}
@media(max-width:360px){.main{padding-left:16px;padding-right:16px}.heading-symbol{font-size:40px}h1{font-size:23px}.status-tabs button{padding:7px}.quick-footer>span{max-width:175px}.topbar{gap:3px}.task-row{gap:10px}.row-status{max-width:76px}.archive-toggle{margin-left:5px}.form-grid{grid-template-columns:1fr}.heading-symbol{display:none}}
@media(max-width:760px){.mobile-areas{padding:0 0 15px}.quick-card{margin-bottom:17px}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s,color .15s}.task-row{animation:appear .2s ease-out}@keyframes appear{from{opacity:.3;transform:translateY(3px)}to{opacity:1;transform:none}}}
.sidebar{overflow-y:auto}.project-toolbar{display:flex;gap:12px;align-items:center;padding:0 0 21px;flex-wrap:wrap}.project-toolbar>label{font-size:12px;color:var(--muted)}.project-toolbar select{width:auto;min-width:160px;max-width:300px;min-height:38px;padding:7px 10px;font-size:12px}.project-toolbar #manage-projects{margin-left:auto}.project-tag{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-left:1px solid var(--line);padding-left:10px}.item-project-field>div{display:flex;align-items:center;gap:12px}.item-project-field select{flex:1;min-width:0}.item-project-field button{white-space:nowrap}.project-manager-toolbar{display:flex;justify-content:space-between;align-items:center;padding:14px 0}.project-manager-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;padding:12px;border-radius:5px;border-bottom:1px solid var(--line)}.project-manager-row span{overflow-wrap:anywhere;min-width:0}.project-manager-row small{font-size:10px;color:var(--muted);flex-shrink:0}.project-manager-row.selected{background:var(--pale)}#project-list{max-height:220px;overflow:auto}.project-list-empty{padding:12px 0}#project-form{border-top:1px solid var(--line);margin-top:16px;padding-top:18px}#project-form h3{font-size:15px;font-weight:500}#project-form-hint{margin-top:12px}#project-form .dialog-bottom .primary{margin-left:auto}
.calendar-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);padding:16px 0}.calendar-month{display:flex;align-items:center;gap:7px;min-width:0}.calendar-month input{font-size:17px;background:transparent;border:0;padding:6px;width:190px;min-height:40px}.calendar-legend{display:flex;gap:17px;color:var(--muted);font-size:10px;margin-bottom:18px;flex-wrap:wrap}.calendar-legend span:last-child{margin-left:auto}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-weekdays{color:var(--muted);font-size:11px;text-align:center;padding-bottom:10px}.calendar-grid{border-top:1px solid var(--line);border-left:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--white)}.calendar-day{text-align:left;min-width:0;min-height:108px;padding:10px 8px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:stretch;gap:6px;position:relative}.calendar-day:hover{background:#f0f3e9}.calendar-day.outside{background:#f0f1e9;color:#9aa18e}.calendar-day.selected{background:#e6eddd;box-shadow:inset 0 0 0 1.5px #829b73}.calendar-day-number{font-size:12px;line-height:26px;width:26px;text-align:center;border-radius:50%}.calendar-day.today .calendar-day-number{background:var(--green);color:var(--white)}.calendar-mini-list{display:grid;gap:3px}.calendar-mini{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5f7059}.calendar-mini.doing{color:var(--amber)}.calendar-mini.done{color:#8a9680}.calendar-more{font-size:9px;color:var(--muted)}.calendar-mobile-marks{display:none}.calendar-agenda{margin-top:28px;padding-top:8px}.calendar-agenda>.section-line{margin-bottom:3px}.calendar-agenda>.section-line h2{font-size:17px}.calendar-empty{font-size:12px;color:var(--muted);line-height:1.9;padding:6px 0 12px}.calendar-record{border-bottom:1px solid var(--line);padding:12px 0}.calendar-record .task-title{font-size:14px}.unscheduled-section{margin-top:27px;border-top:1px solid var(--line);padding-top:17px}.unscheduled-section>summary{font-size:12px;color:var(--muted);cursor:pointer;min-height:40px}#main[data-current-view=calendar] .page-heading{padding-bottom:25px}
@media(max-width:760px){.project-toolbar{gap:9px;padding-bottom:16px}.project-toolbar select{min-width:0;flex:1;max-width:220px;font-size:12px}.project-toolbar .text-button{font-size:10px}.project-toolbar>label{font-size:11px}.project-toolbar #manage-projects{margin-left:0}.calendar-month{gap:0}.calendar-month input{font-size:15px;width:146px;padding:4px}.calendar-toolbar{padding:11px 0}.calendar-legend{gap:10px;font-size:9px;margin-bottom:13px}.calendar-legend span:last-child{margin-left:0}.calendar-day{min-height:63px;padding:5px 3px;gap:4px}.calendar-day-number{font-size:11px;width:23px;line-height:23px;align-self:center}.calendar-mini-list{display:none}.calendar-mobile-marks{display:flex;justify-content:center;align-items:center;gap:3px;min-height:14px}.calendar-mobile-marks small{font-size:8px;color:var(--muted)}.calendar-dot{width:4px;height:4px;border-radius:50%;border:1px solid #7d8a71}.calendar-dot.doing{background:var(--amber);border-color:var(--amber)}.calendar-dot.done{background:var(--green);border-color:var(--green)}.calendar-agenda>.section-line h2{font-size:14px}.calendar-agenda{margin-top:22px}.project-manager-row{flex-direction:column;align-items:flex-start;gap:3px}#main[data-current-view=calendar] .heading-symbol{display:none}#main[data-current-view=calendar] h1{font-size:25px}.project-tag{max-width:110px}.item-project-field .text-button{font-size:11px}}
@media(max-width:360px){.project-toolbar{gap:6px}.project-toolbar select{max-width:140px}.calendar-month input{width:128px;font-size:14px}.calendar-day{min-height:58px}#main[data-current-view=calendar] h1{font-size:23px}}

.journal-filters { display:flex; flex-wrap:wrap; gap:14px; }
.journal-help { color:var(--muted); font-size:12px; line-height:1.8; margin:0 0 20px; }
.record-action { display:block; margin-top:12px; font-size:12px; }
#journal-view .section-line { flex-wrap:wrap; gap:10px; }

/* v0.2.3: keep the working list close to the top and preserve comfortable hit targets. */
.topbar{height:76px}.top-title{display:flex;align-items:baseline;gap:18px;min-width:0}.top-title h1{font-size:24px;font-weight:600;letter-spacing:0;white-space:nowrap}.top-title #today-label{font-size:12px;color:var(--muted)}
.project-toolbar{display:flex;align-items:center;gap:10px;padding:12px 0;margin:0;border:0}.project-toolbar select{min-width:0;max-width:240px;width:auto;flex:1;border:1px solid var(--line);background:transparent;border-radius:7px;padding:7px 10px;min-height:44px;font-size:13px}.project-toolbar #area-filter{flex:0 1 140px}.project-toolbar .quiet-button{min-height:44px;flex-shrink:0}
.list-toolbar{padding:0 0 6px;gap:8px;flex-wrap:nowrap}.scope-tabs{display:flex;gap:18px}.scope-tabs button{padding:9px 0;min-height:44px;color:var(--muted);font-size:14px;border-bottom:2px solid transparent}.scope-tabs button.selected{color:var(--green);border-bottom-color:var(--green);font-weight:600}.filter-label{font-size:11px;color:var(--muted);text-align:right}
.group-title{margin:12px 0 2px;min-height:28px;font-size:12px;letter-spacing:0}.task-row{min-height:68px;padding:9px 0;gap:10px;align-items:center;animation:none}.complete-button{flex:0 0 44px;width:44px;height:44px;min-height:44px;border:0;margin:0;display:grid;place-items:center;font-size:12px;background:transparent!important;color:var(--green);z-index:0}.complete-button:before{inset:11px;border:1.3px solid #a9b5a2;border-radius:50%;z-index:-1}.complete-button.doing:before{border-color:var(--amber);background:#f4ebdb}.complete-button.done{color:var(--white)}.complete-button.done:before{background:var(--green);border-color:var(--green)}.complete-button:hover:before{box-shadow:0 0 0 3px var(--pale)}
.task-content{align-self:stretch;display:flex;flex-direction:column;justify-content:center}.task-title{font-size:15px;line-height:1.45;min-height:26px;padding:2px 0}.task-content>.task-title{position:relative}.task-content>.task-title:before{content:"";position:absolute;inset:-5px 0 -12px}.task-meta{gap:8px;font-size:11px;line-height:1.4;margin-top:2px;pointer-events:none}.task-meta:empty{display:none}.task-meta .project-tag{max-width:150px}.row-status{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;flex-shrink:0;font-size:11px;border:0;padding:6px 5px;max-width:none;background:none!important}.row-status span{font-size:12px;color:var(--muted)}.row-status.doing{font-weight:600}.row-status.done{color:var(--muted)}
.task-group{border-bottom:1px solid var(--line);margin-top:7px}.task-group>summary{min-height:44px;display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);cursor:pointer;list-style:none}.task-group>summary::-webkit-details-marker{display:none}.task-group>summary:before{content:'›';font-size:18px;width:12px}.task-group[open]>summary:before{transform:rotate(90deg)}.task-group .count{margin-left:auto;font-size:11px}.task-group .task-row:last-child{border-bottom:0}.future-link{display:flex;justify-content:space-between;gap:12px;align-items:center;width:100%;min-height:48px;padding:10px 0;color:var(--muted);font-size:12px}.future-link span{color:var(--green)}.today-empty{padding:18px 0;color:var(--muted);font-size:13px}
.add-button{position:fixed;bottom:30px;right:32px;display:flex;align-items:center;gap:8px;padding:8px 20px 8px 13px;min-height:52px;border-radius:28px;background:var(--green);color:var(--white);box-shadow:0 4px 16px #263b3326;z-index:6}.add-button>span:first-child{font-size:29px;line-height:1}.add-label{font-size:14px}.page-footer{margin-top:22px;padding-bottom:55px}.empty-state{padding:24px 12px}.empty-mark{display:none}.empty-state h2{font-size:17px}
#filters-dialog h3{font-size:13px;font-weight:500;margin:12px 0}.status-tabs button{min-height:44px;font-size:13px;padding:8px 12px}.status-tabs{gap:6px}#filters-dialog .archive-toggle{min-height:48px;margin:10px 0;font-size:13px}#filters-dialog input[type=checkbox]{width:18px;height:18px}.filter-project-actions{display:flex;gap:12px;border-top:1px solid var(--line);padding-top:12px}.filter-project-actions .quiet-button{font-size:14px;min-height:44px}.dialog-top .icon-button{min-width:44px;min-height:44px}.status-options{display:grid;gap:8px;margin-top:18px}.status-options button{min-height:48px;padding:10px 16px;text-align:left;border:1px solid var(--line);border-radius:7px}.status-options .selected{background:var(--pale);border-color:#b4c6aa}.status-options button:focus-visible{outline-offset:1px}#status-item-title{font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.editor-options{margin:14px 0}.editor-options>summary{min-height:44px;padding:10px 0;color:var(--green);font-size:13px;cursor:pointer}.editor-options-content{padding:0 0 6px}.editor-options-content>label:first-child{margin-top:5px}#editor .segmented button{min-height:44px}.journal-help{font-size:11px;line-height:1.6;margin-bottom:10px}.journal-row{padding-top:13px;padding-bottom:13px}.review-intro{padding:18px}.review-intro h3{font-size:21px}.section-line{margin-top:12px;margin-bottom:8px}
@media(max-width:760px){
  .main{padding:0 16px 12px}.topbar{height:58px;position:sticky;top:0;z-index:4;background:var(--paper)}.top-title{gap:10px}.top-title h1{font-size:21px}.top-title #today-label{font-size:10px;line-height:1.3;max-width:160px}.top-actions .quiet-button{font-size:13px;min-height:44px;padding:8px}
  .project-toolbar{gap:7px;padding:8px 0 4px}.project-toolbar select{max-width:none;min-width:0;padding:6px 8px;font-size:16px;height:44px}.project-toolbar #area-filter{flex:0 1 112px}.project-toolbar #filter-toggle{font-size:12px;padding:8px 4px}.scope-tabs{gap:20px}.scope-tabs button{font-size:14px}.filter-label{font-size:10px;max-width:128px}.task-row{gap:6px;min-height:66px;padding:8px 0}.task-title{font-size:15px}.task-meta{font-size:11px;gap:7px}.task-meta .project-tag{max-width:110px}.row-status{font-size:11px;padding:5px 2px;gap:3px}.complete-button{margin-left:-6px}.group-title{margin-top:9px}.add-button{right:18px;bottom:calc(85px + env(safe-area-inset-bottom));width:52px;height:52px;min-height:52px;padding:0;justify-content:center}.add-label{display:none}.mobile-nav{padding-top:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom))}.mobile-nav button{min-height:48px;font-size:22px}.page-footer{font-size:10px;padding-bottom:66px}.page-footer span:last-child{max-width:210px}
  dialog.sheet{margin:auto 0 0;max-width:none;width:100%;padding:18px 20px calc(20px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;max-height:85dvh}.sheet .dialog-bottom{position:static;margin-bottom:0;padding-bottom:0}.journal-filters{flex-wrap:wrap;justify-content:flex-end}.review-intro h3{font-size:20px}#main[data-current-view=calendar] h1{font-size:21px}.calendar-toolbar{padding:6px 0}.calendar-legend{margin-bottom:8px}.calendar-agenda{margin-top:12px}.search-wrap{margin-top:8px;margin-bottom:4px}#editor .dialog-bottom{gap:10px}#editor .form-hint{font-size:11px}
}
@media(max-width:360px){.main{padding-left:12px;padding-right:12px}.top-title #today-label{max-width:130px}.project-toolbar #area-filter{flex-basis:105px}.project-toolbar select{padding-left:4px;padding-right:4px}.task-row{gap:4px}.task-meta{gap:5px}.task-meta .project-tag{max-width:86px}.row-status{font-size:10px}#main[data-current-view=calendar] h1{font-size:21px}}

/* Category and project grouping stays in one reading column at every width. */
.organized-fold>summary{display:flex;align-items:center;gap:8px;min-height:44px;list-style:none;cursor:pointer;padding:5px 0;color:var(--ink);font-size:13px}
.organized-fold>summary::-webkit-details-marker{display:none}.organized-fold>summary:before{content:'›';display:inline-block;width:12px;flex:0 0 12px;font-size:18px;line-height:1;color:var(--muted);text-align:center}.organized-fold[open]>summary:before{transform:rotate(90deg)}
.organized-fold>summary:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:4px}.fold-name{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}.fold-name small{font-weight:400;font-size:10px;color:var(--muted)}.fold-count{font-size:11px;font-weight:400;color:var(--muted);margin-left:auto;white-space:nowrap;flex-shrink:0}
.category-block{margin-top:16px;border-top:1px solid var(--line);padding-top:4px}.category-block:first-child{margin-top:4px;border-top:0;padding-top:0}.category-block>summary{font-size:15px;font-weight:600}.category-block>summary .area-dot{flex-shrink:0}.category-block>.fold-content{padding-bottom:2px}
.project-block{margin-top:8px}.project-block:first-child{margin-top:0}.project-block>summary{font-weight:500;color:var(--green)}.project-heading{font-size:12px;font-weight:500;color:var(--muted);padding:10px 0 4px;margin:0;line-height:1.5}.unassigned-group{margin-top:8px}.unassigned-group:first-child{margin-top:0}.completed-block{margin-top:2px}.completed-block>summary{color:var(--muted);font-size:12px}.review-pending{margin-top:20px;border-top:1px solid var(--line);padding-top:8px}.review-pending>summary{font-size:14px;font-weight:500}.review-pending .review-note{margin:5px 0 10px}
.organized-fold .task-row{padding-left:0;padding-right:0}.organized-fold .journal-row{padding:10px 0}.organized-fold .journal-label{font-size:11px}.organized-fold .journal-body{font-size:13px;line-height:1.7;margin-top:5px}.review-link{display:flex;align-items:flex-start;flex-direction:column;gap:2px;width:100%;min-height:56px;padding:10px 0;text-align:left}.review-link>span{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.review-link>small{font-size:11px;margin:0}.review-intro{margin-bottom:8px}.journal-layout{flex-shrink:0}.journal-layout button{font-size:13px}.journal-filters label{min-height:44px}.journal-help{margin:4px 0 12px}
@media(max-width:760px){.category-block{margin-top:16px}.project-block{margin-top:8px}.category-block>summary{font-size:14px}.project-block>summary{font-size:13px}.fold-count{font-size:10px}.journal-layout{gap:12px}#journal-view>.section-line{flex-wrap:wrap;gap:2px;margin-top:0}.journal-filters{gap:10px;margin-left:auto}.journal-filters label{font-size:11px}.organized-fold .record-action{min-height:40px;padding:8px 0}.review-link{min-height:58px}.fold-name small{font-size:9px}.review-intro h3{font-size:18px}}


/* v0.2.5: white surface and a single compact controls row. */
.main{padding-top:12px}.project-toolbar{flex-wrap:nowrap;gap:8px;padding:4px 0;background:var(--white)}.project-toolbar #area-filter{flex:0 1 120px}.project-toolbar #project-filter{flex:0 1 180px;max-width:180px}.project-toolbar .quiet-button{min-width:44px;min-height:44px;padding:7px 6px;white-space:nowrap}.search-wrap{margin:6px 0}.list-toolbar{padding-bottom:2px}
.task-row,.organized-fold .task-row{min-height:56px;padding-top:5px;padding-bottom:5px}.task-meta{margin-top:1px}.group-title{margin-top:6px;min-height:24px}.category-block{margin-top:12px;padding-top:2px}.project-block{margin-top:4px}.unassigned-group{margin-top:4px}.project-heading{padding-top:6px;padding-bottom:2px}.organized-fold>summary{padding-top:2px;padding-bottom:2px;min-height:44px}
.journal-row{padding-top:7px;padding-bottom:7px}.organized-fold .journal-row{padding-top:6px;padding-bottom:6px}.journal-label{margin-bottom:3px}.journal-day{margin-top:16px;margin-bottom:6px}.review-link{min-height:50px;padding-top:6px;padding-bottom:6px}.calendar-record{padding:7px 0}.week-switch{padding-bottom:8px;margin-bottom:12px}.review-intro{padding:12px 14px}.review-intro h3{margin:5px 0}.page-footer{margin-top:16px;padding-top:12px}.mobile-nav{background:#fffffffa}
@media(max-width:760px){
 .main{padding-top:max(6px,env(safe-area-inset-top))}.project-toolbar{position:sticky;top:env(safe-area-inset-top,0px);z-index:4;gap:6px;padding:2px 0 4px}.project-toolbar #area-filter{flex:0 1 100px;min-width:0}.project-toolbar #project-filter{flex:1 1 110px;max-width:140px;min-width:0}.project-toolbar select{font-size:16px;padding-left:6px;padding-right:4px;min-height:44px}.project-toolbar #filter-toggle,.project-toolbar #search-toggle{font-size:12px;padding:6px 3px;min-width:44px;min-height:44px}.project-toolbar kbd{display:none}
 .task-row,.organized-fold .task-row{min-height:56px;padding-top:5px;padding-bottom:5px}.review-link{min-height:50px;padding-top:6px;padding-bottom:6px}.category-block{margin-top:12px}.project-block{margin-top:4px}.scope-tabs button{min-height:44px;padding-top:6px;padding-bottom:6px}.group-title{margin-top:6px}.task-group{margin-top:3px}.journal-help{margin-bottom:8px}
}
@media(max-width:360px){.project-toolbar{gap:3px}.project-toolbar #area-filter{flex-basis:94px}.project-toolbar #project-filter{flex-basis:98px}.project-toolbar select{padding-left:3px;padding-right:1px}}

/* v0.2.6: record actions share the title line; local save status remains visible on phones. */
.record-line { display:flex; align-items:center; gap:10px; min-width:0; }
.record-line > .task-title { flex:1; min-width:0; overflow-wrap:anywhere; }
.record-line .record-action { flex:none; margin:0; min-height:44px; min-width:44px; text-align:right; }
.completion-details { margin:2px 0 0; font-size:12px; color:var(--muted); }
.completion-details summary { cursor:pointer; min-height:36px; display:flex; align-items:center; }
.journal-kind { margin:2px 0 8px; }
.sync-status { padding:4px 8px; margin:4px 0 8px; background:#f4f7f5; border-radius:8px; font-size:12px; }
.sync-line { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.sync-line button { min-height:44px; min-width:76px; flex:none; border-radius:6px; background:#e8eee7; }
.repeat-options { margin:12px 0; border-top:1px solid var(--line); padding-top:8px; }
.repeat-options summary { cursor:pointer; min-height:40px; display:flex; align-items:center; gap:10px; }
.repeat-options summary span { color:var(--muted);font-size:12px; }
#repeat-weekdays { border:0; padding:6px 0;display:flex;gap:8px;flex-wrap:wrap; }
#repeat-weekdays label { display:flex;align-items:center;gap:4px;margin:0;min-height:44px; }
#repeat-weekdays input { width:auto; }
.order-row { display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:4px 0; }
.order-row .order-name { flex:1;min-width:0;overflow-wrap:anywhere; }
.order-row button { min-width:44px;min-height:44px; }
.order-handle { touch-action:none;cursor:grab;color:var(--muted); }
.order-row.dragging { background:#e8eee7; }
.repeat-preview { padding:6px 0;border-bottom:1px solid var(--line); }
.repeat-preview small { color:var(--muted);margin-left:8px; }
.sync-conflict { padding:8px 0; border-top:1px solid #dce4df; overflow-wrap:anywhere; }
.sync-conflict p { margin:4px 0; }
.sync-conflict .quiet-button { font-size:12px; margin-right:6px; }
.pending-label { color:#7b5e20; }
#reopen-task { margin-top:12px; width:100%; }

/* v0.2.7: use the same timeline inset in time and project views. */
.organized-fold .journal-row { padding-left:22px; padding-right:0; }
.calendar-actual-group { margin:8px 0; }
.calendar-actual-group > h4 { display:flex; align-items:center; gap:8px; font-size:12px; font-weight:500; color:var(--muted); margin:8px 0 2px; }
.calendar-actual-group > h4 span { margin-left:auto; font-size:11px; }
.calendar-record { position:relative; margin-left:6px; padding:3px 0 3px 22px; border-bottom:0; border-left:1px solid #c9d3bf; }
.calendar-record:before { content:''; position:absolute; left:-4px; top:22px; width:7px; height:7px; background:#93a585; border:1px solid var(--paper); border-radius:50%; }
.calendar-record.note:before { background:#b79f7e; }
.calendar-record .record-line { min-height:44px; }
.calendar-record-content { min-width:0; flex:1; }
.calendar-record-content .task-title { display:block; width:100%; }
.calendar-record-meta { display:block; font-size:10px; color:var(--muted); margin-top:1px; }
.calendar-record .journal-body { margin:0 0 3px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.review-occurrences { margin:0 0 6px; font-size:11px; color:var(--muted); }
.review-occurrences summary { cursor:pointer; min-height:36px; display:flex; align-items:center; }
.review-occurrences .record-line { font-size:11px; }
.review-occurrences .record-line > span { flex:1; }
.editor-context { padding:8px 10px; background:#f4f7f5; border-radius:6px; }
.sync-conflict input { display:block; width:100%; margin:6px 0; font-size:16px; }
/* Compact display preference; does not add another navigation row. */
.range-bar { display:flex; justify-content:flex-end; margin:0 0 4px; }
.range-bar button { font-size:12px; min-height:32px; text-align:right; }
#order-scope { margin-bottom:12px; }
.danger { color:#a43f36; }
.trash-row { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid #e8e8e4; }
.trash-row>div { min-width:0; overflow-wrap:anywhere; }
.trash-row small { display:block; font-size:11px; color:#777; margin-top:3px; }
.trash-row button { flex-shrink:0; min-height:44px; }
.local-strip{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#65766b;margin-bottom:5px;gap:12px}
.local-strip button{min-height:40px;white-space:nowrap}
.local-intro{background:#f1f5f1;border:1px solid #e1e8e1;border-radius:10px;padding:12px 14px;margin-bottom:12px}
.local-intro p{font-size:12px;color:#637267;margin-top:5px;line-height:1.7}
.local-intro button{min-height:40px;font-size:12px}
#backup-dialog p{margin:12px 0}#backup-dialog hr{border:0;border-top:1px solid #e5e8e4;margin:16px 0}
#backup-dialog input[type=file]{width:100%;font-size:13px}
#backup-dialog button{min-height:44px}

/* Independent domain footer; stays below the working area. */
.page-footer{flex-wrap:wrap;align-items:flex-start;gap:8px 20px;font-size:12px;letter-spacing:0;color:#65766b}.footer-info{display:flex;flex-direction:column;gap:4px}.page-footer .footer-info span{max-width:none;text-align:left;white-space:normal}.icp-link{color:inherit;line-height:1.6;text-underline-offset:3px;overflow-wrap:anywhere}
