@charset "UTF-8";
:root{--paper:#fffaf2;--card:#fff;--ink:#292923;--muted:#88857c;--line:#eee7db;--coral:#ef7658;--coral-dark:#b84a34;--peach:#ffebe0;--yellow:#ffe68d;--green:#e7f0c9;--dark:#34392f;--teal:var(--coral-dark);--warn:#925e25;--radius:24px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #e9936f;outline-offset:4px}a{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:29px;font-weight:750;letter-spacing:-1px;line-height:1.4}h2{font-size:17px;line-height:1.6;font-weight:700;letter-spacing:-.3px}h3{font-size:15px;font-weight:650;line-height:1.6}p{line-height:1.8}strong{font-weight:700}[hidden]{display:none!important}.shell{width:min(100%,620px);margin:auto;padding:0 22px calc(100px + env(safe-area-inset-bottom))}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between}.brand{text-decoration:none;font-size:23px;font-weight:800;letter-spacing:1px;display:flex;align-items:center;gap:7px}.brand-symbol{color:var(--coral);font-size:34px;line-height:1;display:inline-block;transform:rotate(-12deg)}.edition{font-size:10px;font-weight:600;letter-spacing:1px;color:#a29a89;transform:rotate(2deg)}.eyebrow{font-size:10px;letter-spacing:1.2px;color:var(--muted);font-weight:600;margin-bottom:8px}.page-heading{margin:22px 0 25px}.page-heading .muted{margin-top:10px}.muted{font-size:12px;line-height:1.9;color:var(--muted)}.micro{font-size:11px;color:var(--muted);line-height:1.85}.micro:empty{display:none}.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.today-heading{margin:13px 0 22px}.today-heading>div{display:flex;align-items:center;justify-content:space-between;gap:9px}.today-heading h1{font-size:27px;letter-spacing:-.8px}.add-round{height:38px;width:38px;border-radius:50%;background:#fff;border:1px solid var(--line);font-size:25px;color:var(--coral);line-height:1;font-weight:400;flex:none}.day-card{position:relative;isolation:isolate;padding:24px 23px 18px;background:var(--peach);border-radius:25px;overflow:hidden;box-shadow:0 4px 0 #eddbca66}.day-card::after{content:"";position:absolute;inset:0;z-index:-1;opacity:.45;background-image:radial-gradient(#e4c4b4 .65px,transparent .65px);background-size:8px 8px;pointer-events:none}.tiny-label{font-size:8px;font-weight:750;letter-spacing:1.6px;color:#b57760}.day-count{display:flex;gap:9px;align-items:baseline;margin:4px 0 3px}.day-count strong{font-size:51px;line-height:1.15;letter-spacing:-2px;font-variant-numeric:tabular-nums}.day-count>span{font-size:14px;font-weight:600;color:#b48c7a}.day-card-copy>p{font-size:11px;color:#9d6a54;max-width:76%;line-height:1.8}.flag-sticker{position:absolute;right:23px;top:23px;width:76px;height:86px;background:var(--coral);color:#fff7dc;display:flex;flex-direction:column;align-items:center;justify-content:center;border:3px solid #fff7eb;border-radius:9px 9px 25px 9px;transform:rotate(9deg);box-shadow:3px 4px 0 #d7a58a3b;font-family:ui-rounded,"Avenir Next",-apple-system,sans-serif}.flag-sticker>span{font-size:10px;font-weight:850;letter-spacing:2px}.flag-sticker>strong{font-size:27px;letter-spacing:-1px;line-height:1.3}.flag-sticker>i{position:absolute;right:-14px;bottom:-14px;color:#b45b3d;font-size:27px;font-style:normal;transform:rotate(-10deg)}progress{display:block;appearance:none;-webkit-appearance:none;border:0;background:#eadccf;border-radius:10px;color:var(--coral);overflow:hidden}progress::-webkit-progress-bar{background:#eadccf;border-radius:10px}progress::-webkit-progress-value{background:var(--coral);border-radius:10px}progress::-moz-progress-bar{background:var(--coral);border-radius:10px}.day-card>progress{width:100%;height:7px;margin-top:23px}.day-card-foot{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#a17d68;gap:8px;margin-top:11px}.day-card-foot>span:last-child{white-space:nowrap}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.section-title h2{font-size:15px}.text-button{color:var(--coral-dark);background:none;font-size:11px;font-weight:600;padding:8px 0;min-height:34px;line-height:1.6}.small-button{border-radius:11px;min-height:38px;padding:9px 12px;background:var(--coral);color:white;white-space:nowrap;font-size:11px;font-weight:650}.button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;border-radius:13px;min-height:48px;padding:13px 16px;font-size:13px;line-height:1.6;font-weight:650;transition:transform .14s,background .14s}.button:active,.small-button:active,.checkin-button:active{transform:translateY(2px)}.primary{background:var(--coral);color:white;box-shadow:0 3px 0 #d85e4520}.secondary{background:#fff0e6;color:var(--coral-dark);border:1px solid #f8dfcf}.timer-card{margin-top:23px;background:var(--dark);padding:19px 21px;border-radius:21px;color:#fffbef}.timer-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}.timer-kicker{font-size:10px;color:#d2d7bc;display:flex;gap:6px;align-items:center}.live-dot{width:5px;height:5px;border-radius:50%;background:#e9ed9c;box-shadow:0 0 0 3px #d8e18f14}.timer-meta{font-size:10px;color:#a5af90}.timer-card h2{font-size:14px;font-weight:550;line-height:1.7;overflow-wrap:anywhere}.timer-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:6px 0}.timer-display{font-size:33px;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:-1.3px;white-space:nowrap;line-height:1.6}.timer-display span{color:#8d9c7f;font-size:25px}.timer-button{width:auto;min-height:40px;font-size:11px;white-space:nowrap;background:#e8edb7;color:#3f4933;padding:9px 13px;border-radius:10px}.timer-caption{font-size:10px;color:#bdc6a9;line-height:1.8}.timer-card>.micro{font-size:9px;color:#9eac8e;margin-top:5px}.targets-section{margin-top:29px}.targets-section .section-title h2{font-size:13px}.category-progress{display:flex;gap:11px;overflow-x:auto;scroll-snap-type:x proximity;padding:1px 1px 6px;scrollbar-width:none}.category-progress::-webkit-scrollbar{display:none}.category-progress-card{flex:0 0 calc((100% - 11px)/2);min-width:147px;padding:15px;border-radius:17px;background:#f1f1dc;border:1px solid #e9e9d3;scroll-snap-align:start}.category-progress-card:nth-child(3n+2){background:#f7edda;border-color:#eee3cf}.category-progress-card:nth-child(3n+3){background:#f2e8e2;border-color:#ebded5}.category-progress-card>div{display:flex;align-items:center;gap:5px}.category-progress-card h3{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.category-flower{font-size:16px;color:#96985e;line-height:1;flex:none}.category-reached{font-size:8px;color:#a3a075;margin-left:auto;flex:none}.category-progress-card p{margin:9px 0 10px;white-space:nowrap}.category-progress-card strong{font-size:25px;letter-spacing:-1px;font-variant-numeric:tabular-nums;line-height:1.3}.category-progress-card p>span{font-size:9px;color:#aaa287;margin-left:4px}.category-progress-card progress{width:100%;height:4px;background:#e0e2c7}.category-progress-card progress::-webkit-progress-bar{background:#e0e2c7}.category-progress-card progress::-webkit-progress-value{background:#a2ae6b}.category-progress-card progress::-moz-progress-bar{background:#a2ae6b}.category-progress-card.reached{border-color:#cbd4a2}.today-tasks{margin-top:29px}.count-pill{font-size:10px;font-weight:550;margin-left:5px;background:#eee9df;border-radius:7px;padding:3px 6px;color:#948a7b}.task-list{display:flex;flex-direction:column;gap:12px}.task-row{background:var(--card);border:1px solid #ece6db;border-radius:19px;padding:18px;box-shadow:0 3px 0 #eae2d330;overflow:hidden}.task-row.is-active{border-color:#cbd2ac;background:#fdfff5}.task-title-line{display:flex;align-items:center;gap:12px}.task-main{flex:1;min-width:0}.task-main h3{font-size:15px;line-height:1.75;overflow-wrap:anywhere;font-weight:650}.checkin-button{width:40px;height:40px;min-width:40px;border:2px solid #f3c3ae;border-radius:13px;background:#fff8f1;color:var(--coral);display:grid;place-items:center;font-size:24px;line-height:1;padding:0;align-self:flex-start;transition:transform .15s,background .15s}.checkin-button>span{opacity:.28;font-size:21px}@media (hover:hover) and (pointer:fine){.checkin-button:hover{background:#ffecdf}}@media (hover:hover) and (pointer:fine){.checkin-button:hover>span{opacity:1}}.checkin-button.is-pending{border-style:dashed;background:#fff6df;color:#b69d59}.checkin-button.is-done{background:#e6edcd;border-color:#d5dfb2;color:#899e50}.task-meta{font-size:10px;color:#a39b8c;line-height:1.8;margin-top:4px;overflow-wrap:anywhere}.task-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px;padding-top:11px;border-top:1px dashed #ede7dd}.task-time{font-size:10px;color:#aca18c}.focus-button{color:var(--coral-dark);font-size:11px;font-weight:650;background:#fff0e6;border:1px solid #f7e3d4;padding:9px 13px;min-height:37px;border-radius:10px;white-space:nowrap}.focus-button.running{background:#e7edcd;color:#697846;border-color:#dbe2bd}.task-quota{display:flex;align-items:center;gap:10px;margin-top:12px}.task-quota progress{width:60px;min-width:30px;height:4px;background:#eee8df}.task-quota progress::-webkit-progress-bar{background:#eee8df}.task-completion{font-size:9px;color:#a6977d}.task-edit{height:37px;min-width:30px;padding:4px;background:none;color:#b3a991;letter-spacing:1px;font-size:16px;border-radius:9px;flex:none;align-self:flex-start}@media (hover:hover) and (pointer:fine){.task-edit:hover{background:#f5f0e6}}.completion-message{color:#ac8c45;font-size:10px;margin-top:6px;line-height:1.7}.completion-pending{background:#fffcf3}.completed-fold{margin-top:20px;padding:0 3px}.completed-fold>summary{display:flex;justify-content:space-between;align-items:center;list-style:none;font-size:11px;color:#8c9c67;padding:10px 0;cursor:pointer}.completed-fold>summary::-webkit-details-marker{display:none}.completed-fold strong{font-size:12px;margin:0 3px}.completed-row{display:flex;align-items:center;gap:13px;border-bottom:1px dashed #e8e8d9;padding:13px 2px;font-size:12px;color:#9d9d8d}.completed-row>span:first-child{width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:#e8eddb;color:#9aa975;font-size:11px;flex:none}.completed-row>span:last-child{text-decoration:line-through;text-decoration-color:#d5d7c7;overflow-wrap:anywhere}.empty-state{padding:28px 22px;border:1px dashed #dedacc;border-radius:20px;background:#fffdf8;text-align:center}.empty-state h3{color:#7f806f;font-size:14px;margin:8px 0}.empty-state p{font-size:11px;color:#a19e8d;line-height:1.9}.empty-doodle{font-size:41px;color:#e6b95f;display:inline-block;line-height:1.4}.empty-state .button{width:auto;display:inline-flex;margin-top:18px;min-height:40px;font-size:11px}.empty-state .text-button{margin-top:12px}.today-empty{padding:25px 24px 27px;background:#fffcf5}.fold-card{margin-top:19px;background:#fffdf8;border:1px solid var(--line);border-radius:17px}.fold-card>summary{padding:17px 18px;display:flex;align-items:center;justify-content:space-between;gap:13px;cursor:pointer;list-style:none;font-size:12px;font-weight:600;color:#817866}.fold-card>summary::-webkit-details-marker{display:none}.fold-arrow{font-weight:400;font-size:18px;color:#baab91}.fold-card[open]>summary .fold-arrow{transform:rotate(45deg)}.fold-body{padding:0 18px 20px}.fold-body>.muted,.fold-body>.micro{margin:10px 0}.fold-body>.button{margin:15px 0}.recommendation-card{background:#fff6df;border-color:#f1e7c9;margin-top:26px}.recommendation-card>summary{color:#97742e}.spark{font-size:19px;vertical-align:-1px;margin-right:9px;font-weight:400;color:#d9a63e}.inline-field{display:flex;align-items:center;gap:8px;font-size:12px;color:#9b8b68}.inline-field label{flex:none}.inline-field input{width:61px;min-height:41px;padding:9px;text-align:center;background:#fffdf6}.inline-field .small-button{margin-left:auto;min-height:41px;background:#c29642;font-size:11px}.context-details{margin-top:12px}.context-details>summary,.form-details>summary{font-size:11px;color:#a99a7d;cursor:pointer;line-height:1.8;padding:7px 0}.context-details textarea{margin-top:6px;background:#fffdf7}.insight-summary{font-size:12px;line-height:1.95;color:#746953;margin-top:15px;overflow-wrap:anywhere;white-space:pre-wrap}.suggestion{display:grid;grid-template-columns:22px 1fr;gap:10px;border-top:1px solid #eee1bf;margin-top:15px;padding-top:15px}.suggestion-number{font-size:10px;padding-top:4px;color:#c2ad75}.suggestion h3{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.suggestion p{font-size:11px;color:#a39676;margin:7px 0}.suggestion .text-button{color:#ab8234;font-size:11px}.bottom-nav{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,620px);display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:11px 19px calc(13px + env(safe-area-inset-bottom));background:#fffaf2f2;backdrop-filter:blur(18px);border-top:1px solid #ede6da}.nav-item{display:flex;align-items:center;flex-direction:column;gap:4px;padding:3px 0;background:transparent;color:#b8ae9b;font-size:10px;min-height:49px}.nav-icon{font-size:25px;line-height:1.15;height:29px;font-weight:400}.nav-item.active{color:var(--coral-dark);font-weight:650}.nav-item.active .nav-icon{color:var(--coral)}.library-tabs{margin-bottom:26px}.segmented{display:flex;background:#eee9df;padding:4px;border-radius:13px;gap:3px}.segmented>button{flex:1;border-radius:10px;background:transparent;color:#a29682;padding:11px;font-size:12px;white-space:nowrap}.segmented>button.selected{background:#fffdf9;color:var(--coral-dark);font-weight:650;box-shadow:0 2px 4px #4e3a2208}.library-task{padding:17px 16px;box-shadow:none}.library-task .task-main h3{font-size:13px;font-weight:550}.library-task .checkin-button{width:33px;height:33px;min-width:33px;border-radius:11px}.library-task .checkin-button>span{font-size:17px}.library-task .task-meta{font-size:10px}.search-input{background:#fffdf7;min-height:46px;margin-bottom:13px}.task-filters{display:flex;align-items:center;gap:8px;margin-bottom:13px}.filter-button{background:transparent;border-radius:20px;padding:8px 13px;font-size:11px;color:#b4a78e;min-height:34px}.filter-button.selected{background:#f7e4d5;color:#b27550}.list-note{margin:0 3px 12px;font-size:10px}.more-button{display:block;margin:15px auto}.category-intro{margin-bottom:19px;font-size:12px}.category-library-card{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid var(--line);border-radius:18px;margin-bottom:12px;padding:18px}.category-library-card>div{flex:1;min-width:0}.category-library-card h3{font-size:14px;overflow-wrap:anywhere}.category-library-card p{font-size:10px;color:#aa9e85;margin-top:5px}.category-icon{height:42px;width:42px;display:grid;place-items:center;font-size:27px;color:#a4a668;background:#f1f0d8;border-radius:13px;flex:none}.category-library-card:nth-child(2n) .category-icon{background:#f9ebd2;color:#c3a05d}.task-form{background:#fff;border:1px solid #f0d8c4;border-radius:20px;padding:21px;margin-bottom:22px;box-shadow:0 4px 0 #ebd8c32b}.form-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:5px}.form-heading h2,.form-heading h3{font-size:16px}.icon-button{height:33px;width:33px;flex:none;border-radius:50%;background:#f4f0e7;color:#a39780;display:grid;place-items:center;font-size:23px;font-weight:350;padding:0}.task-form label,.settings-card form label,.editor-dialog label,.feedback-form>label{display:block;font-size:11px;color:#94866f;margin:16px 0 7px}input,select,textarea{width:100%;max-width:100%;display:block;background:#fffcf6;border:1px solid #eae2d3;border-radius:10px;padding:12px;color:var(--ink);font-size:16px;min-height:46px}input::placeholder,textarea::placeholder{font-size:12px;color:#b4aa96}textarea{resize:vertical;line-height:1.8}input:read-only{background:#f3f0e8;color:#a09785}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-columns>div{min-width:0}.unit-input{position:relative}.unit-input input{padding-right:40px}.unit-input>span{position:absolute;right:11px;top:16px;font-size:10px;color:#aa9b7e;pointer-events:none}.task-form>.micro{margin:14px 0}.task-form>.button{margin-top:20px}.form-details{margin-top:15px;border-top:1px dashed var(--line);padding-top:5px}.form-details>.micro{margin-top:12px}.editor-dialog{width:calc(100% - 28px);max-width:450px;padding:23px;background:var(--paper);border:2px solid #fff;border-radius:24px;color:var(--ink);max-height:85dvh;overflow:auto;box-shadow:0 18px 90px #4630173b}.editor-dialog::backdrop{background:#40342566;backdrop-filter:blur(5px)}.editor-dialog .micro{margin-top:12px}.editor-dialog .button{margin-top:23px}.editor-dialog .danger{display:block;margin:15px auto 0}.danger{color:#b57d60}.form-error{font-size:11px;color:#b85c43;margin-top:12px;line-height:1.8}.form-error:empty{display:none}.category-members{max-height:32dvh;overflow:auto;margin-top:12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:5px 0}.editor-dialog label.category-member{display:flex;align-items:center;gap:11px;padding:9px 3px;margin:0;cursor:pointer;border-bottom:1px dashed #eee6d7}.category-member:last-child{border-bottom:0!important}.category-member input{width:19px;min-height:19px;height:19px;flex:none;accent-color:var(--coral);padding:0;border-radius:6px}.category-member>span{font-size:12px;line-height:1.8;color:#796d55;overflow-wrap:anywhere}.category-member small{display:block;font-size:9px;color:#b2a58b;margin-top:2px}.notice{background:#f4eedc;border:1px solid #eae0c4;color:#927e50;border-radius:13px;font-size:11px;line-height:1.8;padding:12px 14px;margin-bottom:15px;overflow-wrap:anywhere}.notice.warning{background:#fff0e2;border-color:#f2d8ba;color:#9e6e3b}.notice .text-button{display:inline-block;margin-left:9px;color:inherit;min-height:28px;padding:2px 0;text-decoration:underline}.settings-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;margin-bottom:16px}.settings-card h2{font-size:15px}.settings-card .section-title{margin-bottom:9px}.settings-card>.muted{font-size:11px;margin:8px 0}.settings-card>.micro,.settings-card form>.micro{margin-top:13px}.settings-card .button{margin:18px 0 12px}.status-badge{padding:5px 8px;border-radius:8px;background:#f3efd6;color:#9b985f;font-size:9px;white-space:nowrap;flex:none}.install-guide{background:#fbf5e5;border-radius:12px;padding:14px 15px;font-size:11px;color:#9d8a5d;margin-top:14px}.install-guide strong{font-size:12px;color:#9b8152}.install-guide ol{padding-left:18px;margin:8px 0;line-height:2}.button-pair{display:flex;align-items:center;gap:17px}.button-pair .button{flex:1;width:auto}.button-pair .text-button{flex:none}.reminder-list{display:flex;flex-direction:column;gap:13px;margin-top:18px}.reminder-row{border-top:1px dashed var(--line);padding-top:13px}.reminder-line{display:flex;justify-content:space-between;gap:10px;font-size:10px;line-height:1.8;color:#8e8268}.reminder-status{color:#b0a389;text-align:right}.reminder-row>.micro{margin-top:5px;font-size:10px}.reminder-actions{display:flex;gap:18px}.reminder-actions .text-button{font-size:10px}.setting-rows{font-size:11px;margin:4px 0 10px}.setting-rows>div{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding:12px 0;line-height:1.8}.setting-rows dt{color:#b0a68f;flex:none}.setting-rows dd{margin:0;color:#9b8b6e;text-align:right}.settings-footer{font-size:9px;color:#b8ad97;text-align:center;line-height:2.1;margin:28px 0 2px}.review-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}.review-toolbar .segmented{flex:1;min-width:145px}.review-toolbar input{width:145px;font-size:13px;min-height:46px;padding:10px}.period-note{margin:10px 1px 18px;font-size:10px}.review-total{background:var(--peach);border-radius:22px;padding:24px;margin:18px 0}.review-total .eyebrow{color:#b88c72}.review-total>strong{font-size:32px;font-weight:600;letter-spacing:-1px;line-height:1.5}.review-total>.micro{margin-top:10px;color:#b08b72;font-size:10px}.review-empty{margin:18px 0}.distribution-list{list-style:none;margin:21px 0 0;padding:0}.distribution-row{margin-bottom:19px}.distribution-row:last-child{margin-bottom:0}.distribution-label{display:flex;justify-content:space-between;gap:13px;font-size:12px;margin-bottom:9px;align-items:start}.distribution-label span{min-width:0;overflow-wrap:anywhere;line-height:1.7}.distribution-label strong{font-size:11px;font-weight:550;color:#bd8969;line-height:1.9;flex:none}.distribution-row progress{width:100%;height:5px;background:#f2e9da}.distribution-row progress::-webkit-progress-bar{background:#f2e9da}.distribution-row progress::-webkit-progress-value{background:#e7b38b}.distribution-row progress::-moz-progress-bar{background:#e7b38b}.distribution-row>p{font-size:9px;color:#b7aa91;margin-top:5px}.day-distribution{display:flex;flex-direction:column;gap:16px;margin-top:19px}.day-distribution>div{display:grid;grid-template-columns:38px 1fr 72px;gap:9px;align-items:center;font-size:9px;color:#b5a68c}.day-distribution progress{width:100%;height:5px;background:#eee6d8}.day-distribution progress::-webkit-progress-bar{background:#eee6d8}.day-distribution progress::-webkit-progress-value{background:#d5c799}.day-distribution progress::-moz-progress-bar{background:#d5c799}.day-distribution strong{text-align:right;font-weight:400;font-size:9px;color:#a09175}.review-reflection .small-button{font-size:10px;padding:8px 10px;min-height:36px}.insight-subtitle{font-size:12px;margin:22px 0 9px;color:#a18459;font-weight:650}.insight-list{font-size:12px;line-height:1.95;color:#9c8f78;padding-left:18px;margin:0}.insight-list li{margin:9px 0;overflow-wrap:anywhere}.feedback-form{border-top:1px dashed var(--line);padding-top:4px;margin-top:23px}.feedback-form>.micro{margin:9px 0}.saved-feedback{border-left:2px solid #e7bd8a;padding:3px 0 3px 13px;margin-top:13px}.saved-feedback p{font-size:12px;color:#9a805d;white-space:pre-wrap;overflow-wrap:anywhere}.saved-feedback span{display:block;font-size:9px;color:#bcaa8c;margin-top:6px}.record-day{margin:20px 0}.record-day-heading{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#a19172;margin-bottom:11px}.record-day-heading span{font-size:9px;font-weight:400;color:#b9aa8d}.record-row{background:#fff;border:1px solid var(--line);border-radius:13px;padding:14px;display:grid;grid-template-columns:1fr auto;gap:6px 12px;margin-bottom:8px}.record-title{font-size:11px;overflow-wrap:anywhere;line-height:1.8}.record-duration{font-size:11px;font-variant-numeric:tabular-nums;color:#b88d66}.record-time{grid-column:1/-1;font-size:9px;color:#b9ad95;font-variant-numeric:tabular-nums}.celebration{position:fixed;z-index:30;left:50%;bottom:calc(99px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(calc(100% - 40px),440px);background:#fff5ce;border:2px solid #fffdf1;border-radius:21px;box-shadow:0 9px 35px #7a573c29;padding:19px 15px;display:flex;align-items:center;gap:12px;animation:celebrate-in .36s cubic-bezier(.18,.76,.3,1.25)}.celebration-check{height:40px;width:40px;flex:none;display:grid;place-items:center;background:var(--coral);color:#fff;border:3px solid #fff9e6;box-shadow:1px 2px 0 #d5966a30;border-radius:13px;font-size:25px;transform:rotate(-9deg)}.celebration>div{min-width:0;flex:1}.celebration strong{font-size:15px;color:#957030}.celebration p{font-size:10px;color:#b5a173;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.celebration .icon-button{height:28px;width:28px;font-size:19px;background:#f4e6b4;color:#b3a06b}.celebration-spark{position:absolute;color:var(--coral);font-size:25px;pointer-events:none}.celebration-spark.one{left:22px;top:-17px;transform:rotate(-9deg)}.celebration-spark.two{right:24px;top:-11px;color:#d4ae48;font-size:22px}.login-card{margin:50px 0 0;background:#fff;border:1px solid var(--line);border-radius:25px;padding:28px}.login-card h1{font-size:30px;margin:10px 0}.login-card label{display:block;font-size:12px;color:#a08f70;margin:20px 0 9px}.login-card .button{margin-top:18px}.login-card>.micro{margin-top:22px}.loading-view{display:flex;align-items:center;justify-content:center;height:45vh;gap:10px;color:#baa78b;font-size:12px}.loading-dot{width:7px;height:7px;background:var(--coral);border-radius:50%;animation:pulse 1.5s ease-in-out infinite}.noscript-message{padding:24px;text-align:center;font-size:13px}@keyframes pulse{50%{opacity:.25}}@keyframes celebrate-in{from{opacity:0;transform:translate(-50%,18px) scale(.9)}to{opacity:1;transform:translate(-50%,0) scale(1)}}@media(min-width:600px){.shell{padding-left:42px;padding-right:42px}.topbar{height:86px}.today-heading{margin-top:17px}.today-heading h1{font-size:31px}.day-card{padding:28px}.day-count strong{font-size:60px}.flag-sticker{right:38px;top:30px;width:85px;height:96px}.day-card-copy>p{font-size:12px}.day-card-foot{font-size:10px}.category-progress-card{flex-basis:calc((100% - 22px)/3)}.task-row{padding:22px}.task-main h3{font-size:16px}.bottom-nav{padding-left:40px;padding-right:40px}.review-toolbar input{width:175px}.settings-card{padding:25px}.day-card>progress{margin-top:25px}}@media(max-width:359px){.shell{padding-left:17px;padding-right:17px}.today-heading h1{font-size:24px}.today-heading{margin-bottom:19px}.day-card{padding:21px 19px 17px}.flag-sticker{right:19px;top:22px;width:66px;height:77px}.flag-sticker strong{font-size:25px}.day-card-copy>p{font-size:10px;max-width:72%}.day-card-foot{font-size:8px}.category-progress-card{min-width:136px;padding:13px}.task-row{padding:16px}.task-main h3{font-size:14px}.checkin-button{width:37px;height:37px;min-width:37px}.form-columns{gap:10px}.filter-button{padding:8px 11px}.inline-field{gap:6px}.inline-field .small-button{padding:9px;font-size:10px}.inline-field input{width:53px}.review-toolbar input{width:100%}.editor-dialog{padding:20px}.timer-display{font-size:29px}.timer-display span{font-size:22px}.timer-button{padding:9px 10px}.targets-section .section-title h2{font-size:12px}.celebration{width:calc(100% - 28px)}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.checkin-button{width:44px;height:44px;min-width:44px}.library-task .checkin-button{width:40px;height:40px;min-width:40px}.add-round{height:42px;width:42px}.task-meta{font-size:11px}.day-card-foot{font-size:10px}.review-task-fold{margin:0 0 18px}.review-task-fold .distribution-list{margin-top:4px}@media(max-width:359px){.checkin-button{width:40px;height:40px;min-width:40px}.task-meta{font-size:10px}.day-card-foot{font-size:9px}}

.completion-recovery{border:1px solid #edd49c;border-radius:17px;background:#fff4d9;padding:17px 18px;margin:0 0 20px}.completion-recovery>.section-title{margin-bottom:5px;color:#b49249}.completion-recovery h2{font-size:13px;color:#a6843e}.completion-recovery>.micro{font-size:10px;color:#b09a6a}.recovery-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px dashed #e8d9b3;margin-top:12px;padding-top:12px}.recovery-row>div{min-width:0;flex:1}.recovery-row h3{font-size:12px;color:#907744;overflow-wrap:anywhere}.recovery-row p{font-size:10px;color:#b5a171;margin-top:4px}.recovery-row>.small-button{background:#b99a54;min-height:39px;font-size:10px;flex:none}
/* Keep the first complete task and its start action in the mobile viewport. */
@media(max-width:599px){
  .topbar{height:63px}
  .today-heading{margin:3px 0 13px}
  .today-heading .eyebrow{margin-bottom:5px;font-size:10px}
  .today-heading h1{font-size:25px;line-height:1.3}
  .add-round{height:44px;width:44px}
  .day-card{padding:13px 19px 12px;border-radius:21px}
  .tiny-label{font-size:7px;letter-spacing:1.3px;line-height:1.3}
  .day-count{gap:7px;margin:2px 0 1px}
  .day-count strong{font-size:37px;line-height:1.08;letter-spacing:-1.5px}
  .day-count>span{font-size:12px}
  .day-card-copy>p{font-size:10px;line-height:1.6;max-width:76%}
  .flag-sticker{right:20px;top:17px;width:57px;height:63px;border-width:2px;border-radius:7px 7px 19px 7px}
  .flag-sticker>span{font-size:7px;letter-spacing:1.3px}
  .flag-sticker>strong{font-size:22px;line-height:1.25}
  .flag-sticker>i{font-size:22px;right:-12px;bottom:-12px}
  .day-card>progress{height:5px;margin-top:10px}
  .day-card-foot{margin-top:7px;font-size:9px;line-height:1.5}
  .targets-section{margin-top:17px}
  .targets-section .section-title{margin-bottom:7px}
  .targets-section .section-title h2{font-size:12px}
  .category-progress{padding-bottom:3px;gap:10px}
  .category-progress-card{padding:10px 12px;min-width:140px;border-radius:15px;flex-basis:calc((100% - 10px)/2)}
  .category-progress-card h3{font-size:11px;line-height:1.4}
  .category-flower{font-size:14px}
  .category-reached{font-size:8px}
  .category-progress-card p{margin:5px 0 7px;line-height:1.3}
  .category-progress-card strong{font-size:23px;line-height:1.1}
  .category-progress-card p>span{font-size:9px}
  .category-progress-card progress{height:4px}
  .today-tasks{margin-top:18px}
  .today-tasks>.section-title{margin-bottom:9px}
  .today-tasks .task-row{padding:16px}
  .today-tasks .task-card-bottom{margin-top:10px;padding-top:9px}
  .today-tasks .focus-button{min-height:44px;padding:10px 14px}
  .today-tasks .checkin-button{width:44px;height:44px;min-width:44px}
  .today-tasks .task-quota{margin-top:9px}
  .timer-card{margin-top:17px;padding:16px 18px}
  .recommendation-card{margin-top:20px}
}
@media(max-width:359px){.today-heading h1{font-size:23px}.day-card{padding-left:16px;padding-right:16px}.day-card-foot{font-size:8px}.category-progress-card{min-width:130px}.today-tasks .task-row{padding:15px}}
@media(max-width:599px){.day-card{padding-top:12px;padding-bottom:11px}.tiny-label{display:block}.day-count strong{font-size:36px;line-height:1}.day-card>progress{margin-top:8px}}

.archived-category-row{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:13px 0;border-top:1px dashed var(--line)}.archived-category-row>div{flex:1;min-width:0}.archived-category-row h3{font-size:12px;color:#9b8d74;overflow-wrap:anywhere}.archived-category-row p{font-size:10px;color:#b5a78d;margin-top:4px}.archived-category-row .small-button{min-height:44px;background:#e7dbc7;color:#9d7c4e;flex:none}.archived-category-row:first-child{border-top:0}

.connection-recovery-view{height:auto;min-height:45vh;flex-direction:column;gap:15px;padding:35px 8px;text-align:center}.connection-recovery-view>p{font-size:13px;max-width:300px;color:#9d8465}.connection-actions{width:min(100%,270px);display:flex;flex-direction:column;align-items:center;gap:6px}.connection-actions>.button{min-height:46px}.connection-details{width:100%;font-size:10px;text-align:left;color:#a18b6c}.connection-details>summary{cursor:pointer;padding:9px 0;line-height:1.8;font-size:11px}.connection-recovery-view>.connection-details{max-width:300px}.connection-details dl{margin:4px 0}.connection-details dl>div{display:flex;justify-content:space-between;gap:14px;padding:6px 0;border-top:1px dashed #e6d6bd}.connection-details dt{flex:none}.connection-details dd{margin:0;text-align:right;overflow-wrap:anywhere;min-width:0}

/* Todoist projects organize task lists; local categories retain shared quotas. */
.task-project+.task-project{margin-top:6px}.task-project-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:3px 4px 10px}.task-project-heading h3{font-size:13px;line-height:1.4;color:#8c7658;overflow-wrap:anywhere}.task-project-heading>span{flex:none;font-size:10px;color:#ad987a}.project-task-list{display:flex;flex-direction:column;gap:10px}.completed-project{padding-top:12px}.completed-project .task-project-heading{padding-bottom:4px}.completed-project .task-project-heading h3{font-size:11px}.completed-project .project-task-list{gap:0}.today-category-button{min-height:44px;flex:none;padding:10px 12px}.recommendation-card+.today-tasks{margin-top:20px}


/* Today starts with progress, then two optional ways to choose a task. */
.today-heading{margin:3px 0 12px}
.targets-section{margin-top:20px}
.category-progress{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;overflow:visible;scroll-snap-type:none;padding:0}
.category-progress-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:8px;min-width:0;flex:none;padding:12px 14px;border-radius:15px}
.category-progress-card>div{min-width:0;gap:7px}
.category-progress-card h3{font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.category-progress-card p{grid-column:2;grid-row:1;margin:0;line-height:1.4}
.category-progress-card strong{font-size:19px;letter-spacing:-.4px;line-height:1.3}
.category-progress-card p>span{font-size:10px}
.category-progress-card progress{grid-column:1/-1;height:5px}
.category-reached{font-size:9px}
.today-choice{margin-top:12px}
.today-choice>summary{min-height:74px;padding:15px 17px}
.choice-copy{display:block;min-width:0}
.choice-copy strong{display:block;font-size:13px;line-height:1.6;font-weight:650}
.choice-copy small{display:block;margin-top:3px;font-size:10px;font-weight:400;line-height:1.5;color:#978b78}
.today-choice .fold-arrow{flex:none}
.today-choice .when-open{display:none}
.today-choice[open]>summary .when-open{display:inline}
.today-choice[open]>summary .when-closed{display:none}
.recommendation-card+.today-tasks{margin-top:12px}
.today-tasks>.fold-body{padding:0 14px 18px}
.today-tasks>.fold-body>.section-title{margin-bottom:12px}
.today-tasks .task-project-heading{padding-top:6px}
.today-choice .count-pill{font-size:10px;padding:2px 6px;vertical-align:middle}
@media(min-width:600px){.category-progress-card{padding:15px 18px}.category-progress-card h3{font-size:14px}.category-progress-card strong{font-size:22px}}

/* Recorded intervals describe a rhythm, never an inferred energy score. */
.rhythm-timeline-card>.micro,.rhythm-history-card>.micro{margin-top:7px;font-size:10px}
.rhythm-timeline{list-style:none;padding:0;margin:16px 0 0}
.timeline-segment{display:grid;grid-template-columns:82px minmax(0,1fr);gap:12px;padding:12px 0;border-top:1px dashed var(--line)}
.timeline-segment:first-child{border-top:0;padding-top:0}
.timeline-clock{font-size:10px;line-height:1.8;color:#9a7b5d;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.timeline-detail{min-width:0;padding-left:12px;border-left:2px solid #ecd4b9}
.timeline-detail h3{font-size:12px;line-height:1.7;font-weight:600;overflow-wrap:anywhere}
.timeline-detail p{font-size:10px;line-height:1.8;color:#998b76;margin-top:3px;overflow-wrap:anywhere}
.timeline-ongoing{display:inline-block;margin-left:6px;padding:1px 5px;border-radius:5px;background:#edf1dd;color:#657448;font-size:9px;white-space:nowrap}
.timeline-day{font-size:11px;color:#8e795d;margin-top:21px;line-height:1.7}
.timeline-day+.rhythm-timeline{margin-top:12px}
.rhythm-more,.rhythm-explanation{margin-top:13px;border-top:1px dashed var(--line)}
.rhythm-more>summary,.rhythm-explanation>summary{cursor:pointer;min-height:44px;padding:13px 0 9px;font-size:11px;line-height:1.8;color:#9c7952}
.rhythm-more .timeline-day:first-of-type{margin-top:10px}
.timeline-limit{padding-top:10px;border-top:1px dashed var(--line)}
.rhythm-empty,.rhythm-observation{font-size:12px;color:#8c7e67;line-height:1.9;margin-top:15px;overflow-wrap:anywhere}
.rhythm-evidence{font-size:12px;margin-top:13px;color:#7e715d}
.rhythm-evidence strong{color:#a7754f;font-weight:650}
.rhythm-continuity{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0 0;padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.rhythm-continuity>div{min-width:0}
.rhythm-continuity dt{font-size:10px;color:#a3967d;line-height:1.8}
.rhythm-continuity dd{font-size:14px;font-weight:550;line-height:1.7;color:#8f6e4f;margin:5px 0 0;overflow-wrap:anywhere}
.rhythm-slot-heading{font-size:12px;margin-top:20px;color:#8d7657}
.rhythm-slot-heading+.micro{font-size:10px;margin-top:4px}
.rhythm-slots{list-style:none;margin:13px 0 0;padding:0}
.rhythm-slots>li{padding:12px 13px;margin-top:8px;border-radius:12px;background:#f8f5e9}
.rhythm-slot-title{display:flex;justify-content:space-between;align-items:baseline;gap:9px;flex-wrap:wrap}
.rhythm-slot-title strong{font-size:12px;font-weight:600;color:#88724e;font-variant-numeric:tabular-nums}
.rhythm-slot-title span{font-size:9px;color:#aa9878}
.rhythm-slots p,.rhythm-explanation p{font-size:10px;line-height:1.9;color:#9b8a70;margin-top:5px;overflow-wrap:anywhere}
.rhythm-explanation p+p{margin-top:8px}
@media(max-width:359px){.rhythm-timeline-card,.rhythm-history-card{padding:19px 16px}.timeline-segment{grid-template-columns:76px minmax(0,1fr);gap:9px}.timeline-detail{padding-left:9px}.rhythm-continuity dd{font-size:13px}}

/* Review is led by recorded data; explanations and model prose stay optional. */
.review-chart-card{padding:20px 18px;min-width:0}
.review-chart-card h2{font-size:15px}
.review-chart-card .section-title{margin-bottom:8px}
.chart-kicker{font-size:9px;color:#9c8b72;flex:none}
.chart-note{font-size:10px;line-height:1.8;color:#9c8d77;margin-top:8px;overflow-wrap:anywhere}
.chart-empty{font-size:12px;line-height:1.9;color:#9b8b73;padding:19px 0 5px}
.review-metrics{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:10px;padding:20px 17px;margin:12px 0 18px}
.review-metrics>div{min-width:0}
.review-metrics span{display:block;font-size:10px;color:#a78067;line-height:1.8}
.review-metrics strong{display:block;font-size:25px;line-height:1.5;font-weight:600;letter-spacing:-.7px;color:#956346;overflow-wrap:anywhere}
.review-metrics .review-main-metric strong{font-size:19px;letter-spacing:-.5px;padding-top:4px}
.review-metrics strong small{font-size:10px;font-weight:400;letter-spacing:0;margin-left:4px}
.review-asof{margin:-10px 4px 17px}
.review-donut-layout{display:grid;grid-template-columns:112px minmax(0,1fr);gap:15px;align-items:center;margin-top:16px}
.review-donut{display:block;width:112px;max-width:100%;height:auto;overflow:visible}
.chart-ring-track,.chart-ring{fill:none;stroke-width:15}
.chart-ring-track{stroke:#f0ebe0}
.chart-ring{stroke:currentColor}
.donut-total{fill:#765e45;font-size:15px;font-weight:650}
.donut-caption{fill:#aa977d;font-size:8px}
.chart-legend{list-style:none;padding:0;margin:0;min-width:0}
.chart-legend>li{display:grid;grid-template-columns:7px minmax(0,1fr) auto;gap:6px;align-items:start;margin-top:12px}
.chart-legend>li:first-child{margin-top:0}
.chart-swatch{display:inline-block;width:7px;height:7px;border-radius:3px;background:currentColor;flex:none;margin-top:5px}
.chart-legend-name{font-size:10px;line-height:1.8;color:#82715b;overflow-wrap:anywhere}
.chart-legend-value{font-size:10px;color:#8d7150;text-align:right;line-height:1.8;white-space:nowrap;font-variant-numeric:tabular-nums}
.chart-legend-value small{display:block;font-size:9px;color:#ae9a7e}
.chart-color-0{color:#d88769}.chart-color-1{color:#bc9a54}.chart-color-2{color:#82a497}.chart-color-3{color:#91a36d}.chart-color-4{color:#b593a7}.chart-color-5{color:#839eb1}.chart-color-6{color:#c7a67d}.chart-color-7{color:#b5ad9a}
.chart-fill{fill:currentColor}
.chart-data{border-top:1px dashed var(--line);margin-top:16px;padding-top:2px}
.chart-data>summary{font-size:11px;line-height:1.8;color:#9f7f55;padding:12px 0;min-height:44px;cursor:pointer}
.chart-data-list{list-style:none;margin:0;padding:0}
.chart-data-list li{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px dashed var(--line);font-size:11px;line-height:1.8;color:#9a8669}
.chart-data-list li:last-child{border-bottom:0}
.chart-data-list li>span{min-width:0;overflow-wrap:anywhere}
.chart-data-list strong{font-size:10px;font-weight:500;flex:none;text-align:right;color:#9c7954;max-width:52%}
.chart-data-list strong small{display:block;font-size:9px;color:#aa987e}
.quota-chart-row{padding:17px 0 0;margin-top:15px;border-top:1px dashed var(--line)}
.quota-chart-row:first-of-type{padding-top:8px;border-top:0;margin-top:7px}
.quota-chart-label{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.quota-chart-label h3{font-size:12px;font-weight:600;line-height:1.7;min-width:0;overflow-wrap:anywhere}
.quota-chart-label h3 small{display:block;font-size:9px;font-weight:400;color:#b3a289;margin-top:2px}
.quota-chart-label>strong{font-size:19px;color:#9f8054;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.quota-comparison{display:block;width:100%;height:auto;margin-top:8px;overflow:hidden}
.quota-goal-bar{fill:#e9e3d7}
.quota-chart-numbers{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:10px;color:#917555;margin-top:3px}
.quota-chart-numbers>span{color:#b3a48e}
.quota-day-dots{display:flex;gap:12px;margin-top:12px;flex-wrap:wrap}
.quota-day{display:flex;align-items:center;flex-direction:column;gap:3px;min-width:21px;color:#b6aa96}
.quota-day b{display:grid;place-items:center;width:19px;height:19px;border-radius:50%;font-size:12px;font-weight:500;border:1px solid #e9e1d2}
.quota-day small{font-size:8px}
.quota-day.is-met b{background:#eaf0d8;border-color:#dce5c3;color:#7a9251}
.quota-day.not-applicable b{border-color:transparent;color:#d0c5b2}
.review-column-chart{display:block;width:100%;height:auto;margin-top:14px;overflow:visible}
.chart-grid{stroke:#eee9de;stroke-width:1;stroke-dasharray:3 4}
.chart-baseline{stroke:#ded5c4;stroke-width:1}
.chart-axis-label{font-size:9px;fill:#a59175;font-variant-numeric:tabular-nums}
.chart-value{font-size:8px;fill:#9d7c58;font-variant-numeric:tabular-nums}
.chart-sample-label{font-size:9px;fill:#8b9870;font-weight:600;font-variant-numeric:tabular-nums}
.timeline-chart-details{margin-top:17px}
.timeline-chart-details>summary{list-style:none;cursor:pointer}
.timeline-chart-details>summary::-webkit-details-marker{display:none}
.review-gantt{width:100%;height:auto;display:block;overflow:visible}
.gantt-track{fill:#f3efe6}
.gantt-ongoing{stroke:#4e624b;stroke-width:.7;stroke-dasharray:2 2}
.chart-expand-label{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:42px;font-size:10px;line-height:1.8;color:#a38459;padding:8px 0}
.chart-expand-label b{font-size:16px;font-weight:400}
.timeline-chart-details[open] .chart-expand-label b{transform:rotate(180deg)}
.timeline-color-key{display:flex;flex-wrap:wrap;column-gap:12px;row-gap:4px;margin-top:3px}
.timeline-color-key>span{display:flex;align-items:flex-start;gap:5px;font-size:9px;line-height:1.8;color:#a18f74;min-width:0;max-width:100%;overflow-wrap:anywhere}
.timeline-color-key .chart-swatch{margin-top:4px}
.rhythm-history-card .rhythm-evidence{font-size:11px;margin-top:12px}
.rhythm-evidence-status{font-size:10px;color:#8a996d;margin:13px 0}
.rhythm-history-card .rhythm-continuity{margin-top:14px;padding:12px 0}
.rhythm-history-card .rhythm-continuity dt{font-size:9px}
.rhythm-history-card .rhythm-continuity dd{font-size:13px}
/* Keep actionable conclusions ahead of evidence in both review periods. */
.review-actions{background:#fff5df;border-color:#efe2c3;margin:12px 0 22px;padding:22px 20px}
.review-actions .review-action-eyebrow{color:#a37b3d;font-size:10px;letter-spacing:1px;margin:0 0 7px}
.review-actions h2{font-size:20px;line-height:1.45;color:#755d3e;font-weight:650;margin:0 0 8px;overflow-wrap:anywhere}
.review-actions #review-ai-caption{font-size:10px;line-height:1.8;color:#a78c64;margin:0}
.review-actions-list{list-style:none;counter-reset:review-action;padding:0;margin:21px 0 20px}
.review-actions-list li{counter-increment:review-action;position:relative;padding:0 0 17px 34px;margin:0 0 16px;border-bottom:1px dashed #e9dbbc;font-size:13px;line-height:1.9;color:#796243;overflow-wrap:anywhere}
.review-actions-list li:last-child{margin-bottom:0;padding-bottom:0;border-bottom:0}
.review-actions-list li::before{content:counter(review-action);position:absolute;left:0;top:2px;width:23px;height:23px;border-radius:8px;background:#e7b28a;color:#fffdf7;text-align:center;line-height:23px;font-size:12px;font-weight:650}
.review-actions-empty{font-size:12px;line-height:1.9;color:#967b53;margin:18px 0}
.review-actions-controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-top:20px}
.review-actions-controls>.button{font-size:12px;min-height:44px;padding:11px 17px}
.review-actions #review-status{font-size:9px;line-height:1.8;color:#b09b77;margin-top:12px;overflow-wrap:anywhere}
.review-analysis{margin:18px 0}
#review-feedback-details .feedback-form{border-top:0;margin-top:0}
@media(max-width:374px){.review-chart-card{padding:18px 15px}.review-donut-layout{grid-template-columns:99px minmax(0,1fr);gap:10px}.review-donut{width:99px}.chart-legend-value{font-size:9px}.review-metrics{padding:17px 14px;gap:7px}.review-metrics .review-main-metric strong{font-size:17px}}

/* Scheduled reviews are read-only; status replaces generation controls. */
.review-actions #review-status{font-size:10px;line-height:1.9;margin-top:18px;color:#a08760}
#review-settings-form>.micro{margin:12px 0;line-height:1.9;overflow-wrap:anywhere}
#review-schedule-edit-note{padding:12px 13px;border-radius:12px;background:#faf4e6;color:#a18455}
#save-review-settings:disabled{opacity:.55}

/* Standalone tasks reuse the journal's existing forms and visual hierarchy. */
.library-page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
.library-page-heading h1{margin-bottom:0}
.library-page-heading>.small-button{flex-shrink:0}
.library-tabs{display:flex;width:100%}
.library-tabs>button{flex:1;min-width:0;padding-left:7px;padding-right:7px}
.task-filters{flex-wrap:wrap;overflow:visible}
.task-row.is-subtask{margin-left:13px;border-left:3px solid #e3dbc7}
.task-notes{margin:9px 0 0 0;color:#978366;font-size:11px;line-height:1.8}
.task-notes>summary{cursor:pointer}
.task-notes>p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0;padding:10px 12px;background:#f8f3e9;border-radius:10px;color:#79674e}
.project-library-card{display:flex;align-items:center;gap:13px;padding:18px;background:#fffcf5;border:1px solid #eee6d8;border-radius:17px;margin:11px 0}
.project-library-card>div{flex:1;min-width:0}
.project-library-card h3{font-size:14px;overflow-wrap:anywhere;margin:0}
.project-library-card p{font-size:10px;line-height:1.7;margin:4px 0 0;color:#a28d70}
.project-symbol{font-size:23px;color:#b28c58}
.completion-history-row{display:flex;align-items:flex-start;gap:11px;padding:17px 0;border-bottom:1px dashed #e7ddcd}
.completion-history-row>div{min-width:0;flex:1}
.completion-history-row h3{margin:0;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.completion-history-row p{margin:5px 0 0;font-size:10px;line-height:1.8;color:#a58f70;overflow-wrap:anywhere}
.completion-history-row .text-button{font-size:10px;padding:5px 0;min-height:34px;flex-shrink:0}
.history-check{display:grid;place-items:center;color:#8f9c69;background:#edf1df;border-radius:50%;width:24px;height:24px;flex-shrink:0;margin-top:2px}
.recurrence-fields{border:1px solid #eee1c9;border-radius:14px;background:#fcf7ec;padding:13px;margin:12px 0 17px}
.recurrence-fields label{font-size:var(--form-label-size)}
.recurrence-fields .inline-field{justify-content:flex-start}
.recurrence-fields .inline-field>input{width:65px}
.recurrence-fields .inline-field>select{width:auto;flex:1}
.recurrence-fields fieldset{border:0;padding:0;margin:15px 0 4px;min-width:0}
.recurrence-fields legend{font-size:11px;margin-bottom:7px;color:#9b8665}
.weekday-options{display:flex;flex-wrap:wrap;gap:5px}
.weekday-options>label{position:relative;display:flex;align-items:center;gap:4px;margin:0!important;padding:7px 5px;background:#fffdf7;border:1px solid #e9dfcd;border-radius:9px}
.weekday-options input{width:14px!important;height:14px!important;min-height:0!important;margin:0;accent-color:#b19554}
.weekday-options span{font-size:11px}
.editor-task-actions{display:flex;flex-wrap:wrap;gap:5px 17px;justify-content:flex-start;margin-top:12px}
.editor-task-actions>.text-button{font-size:11px}
#edit-more-fields textarea{line-height:1.8}
.todoist-import{margin-top:17px;padding-top:10px;border-top:1px dashed #e6dccb}
#import-preview>.micro{line-height:1.9}
.import-task-list{max-height:460px;overflow:auto;margin:10px 0 15px}
.import-task{padding:14px 0;border-bottom:1px dashed #e5dccb}
.import-task-choice{display:flex!important;align-items:flex-start;gap:10px;margin:0!important;font-size:12px!important;color:#79674c!important}
.import-task-choice>input{width:17px;height:17px;min-height:0;padding:0;margin-top:3px;accent-color:#ac9255;flex-shrink:0}
.import-task-choice span{min-width:0;overflow-wrap:anywhere}
.import-task-choice small{display:block;line-height:1.8;font-size:10px;color:#aa967a;margin-top:3px}
.import-task select,.import-task input[type=date]{margin-top:6px}
#import-preview .button-pair{flex-wrap:wrap}
#project-error,#import-error{overflow-wrap:anywhere}

/* Task details: date changes, time reminders, comments and retained versions. */
.task-detail-links{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:5px}.task-detail-links>.text-button{font-size:11px;min-height:44px;text-align:left}.task-planning-fold{font-size:11px;flex:none;color:#8a765c}.task-planning-fold>summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.task-planning-fold[open]{align-self:flex-start}.planning-shortcuts{display:flex;gap:5px;flex-wrap:wrap;align-items:center}.planning-shortcuts>button{min-height:44px}.task-planning-fold .planning-shortcuts{max-width:165px;justify-content:flex-end}.task-planning-fold .text-button{padding:8px 5px;font-size:11px}.batch-task-bar{padding:12px;background:#fff0dc;border:1px solid #efdec6;border-radius:16px;margin:10px 0}.batch-task-bar .small-button{padding:9px 12px}.batch-task-choice{display:flex;align-items:center;gap:9px;min-height:44px;font-size:11px;color:#8b6b42;margin:0 0 8px}.batch-task-choice input{width:19px;height:19px;min-height:0;accent-color:var(--coral);margin:0}.task-note-editor{padding:0 0 13px;border-bottom:1px dashed var(--line);margin-bottom:12px}.task-note-editor textarea{margin-top:0;white-space:pre-wrap}.task-note-editor textarea[readonly]{background:#f9f4e9;color:#8d7d66}.task-time-fields{margin-top:5px}.inline-link{background:transparent;color:var(--coral-dark);padding:8px 0;min-height:44px;font-size:11px;text-decoration:underline}.task-discussion{margin-top:20px;padding-top:4px;border-top:1px solid var(--line)}.task-discussion>.form-details{margin-top:13px}.task-comment{padding:13px 0;border-bottom:1px dashed var(--line)}.task-comment-meta{display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap;font-size:10px;color:#9a8669}.task-comment p,.task-change p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.85;margin:7px 0}.task-comment.is-deleted p{color:#aaa094;font-style:italic}.task-comment .text-button{font-size:11px}.task-change{border-bottom:1px dashed var(--line);padding:8px 0}.task-change>summary{font-size:11px;line-height:1.8;padding:9px 0;cursor:pointer}.task-change>div{background:#f8f2e8;border-radius:10px;padding:11px}.task-discussion textarea{margin-bottom:8px}.compact-dialog{max-width:410px}.compact-dialog .button{margin-top:16px}.import-planning{margin-left:27px;padding-top:10px}.import-planning .form-columns{margin-top:10px}.import-planning .inline-field>input{width:60px}.import-planning .inline-field>select{flex:1;min-width:0}.import-planning fieldset{border:0;padding:8px 0;margin:5px 0}.import-planning legend{font-size:11px;color:var(--muted)}.import-task-list{max-height:65vh}#edit-date[readonly]{background:#f6f1e8;color:#97856b}#edit-reschedule{min-height:44px;font-size:11px}#edit-month-fields{padding-top:8px}#edit-nth-fields{margin-top:10px}
@media(max-width:399px){.task-detail-links{gap:4px}.task-planning-fold .planning-shortcuts{max-width:145px}.import-planning{margin-left:0}.task-comment-meta{display:block}.task-comment-meta time{display:block;margin-top:3px}}

@media(max-width:359px){#task-editor .form-columns{grid-template-columns:minmax(0,1fr)}#task-editor .form-columns>div{min-width:0}#task-editor .form-columns input,#task-editor .form-columns select{width:100%;min-width:0;max-width:100%}}

/* Preserve full, millisecond-accurate time values on narrow screens. */
.record-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;flex:none}.record-toolbar button,.record-edit,.timer-correction,#task-add-time{min-height:44px}.record-edit{grid-column:1/-1;justify-self:start;padding:8px 0;font-size:11px}.timer-correction{margin-top:2px;padding:8px 0;font-size:11px}.session-editor input[type="datetime-local"]{width:100%;min-width:0;font-variant-numeric:tabular-nums;font-size:14px;letter-spacing:-.2px}.session-running-choice:not([hidden]){display:flex;align-items:center;gap:9px;min-height:44px;margin:12px 0!important}.session-running-choice>input{width:18px;height:18px;min-height:0;margin:0;accent-color:var(--coral)}.session-running-choice>span{font-size:12px}.session-editor select:disabled{opacity:1;color:#817360;background:#f5efe4}.session-editor #save-session{margin-top:15px}.session-change{padding:12px 0;border-bottom:1px dashed var(--line)}.session-change h3{font-size:12px}.session-change>p{font-size:11px;margin-top:7px;line-height:1.8}.session-change p>span{display:block;color:var(--muted)}.session-change time{display:block;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.session-change-note{white-space:pre-wrap;overflow-wrap:anywhere}.session-editor .form-details{margin-top:16px}
@media(max-width:359px){.session-editor{padding:18px}.session-editor input[type="datetime-local"]{font-size:13px;padding-left:9px;padding-right:9px}.record-toolbar{gap:3px}}

.review-records-note{padding:10px 12px;background:#fff0dd;border-radius:10px;color:#926b3e;margin-bottom:12px}

/* Quieter pages: one main action, optional detail on demand. */
:root{--muted:#777568;--line:#e9e4da}
.topbar{height:64px}.brand{font-size:22px}.page-heading{margin:20px 0}.page-heading h1{font-size:27px}.tiny-label{font-size:10px;letter-spacing:1px}
.today-choice{background:#fffdf8;border-color:var(--line)}.today-choice>summary{min-height:58px;padding:16px}.choice-copy strong{font-size:14px}.fold-arrow{font-size:18px;transition:transform .15s}.fold-card[open]>summary .fold-arrow{transform:rotate(180deg)}.fold-body{padding-bottom:16px}.today-tasks .fold-body>.section-title{justify-content:flex-end;margin-bottom:3px}.today-tasks .fold-body>.section-title>.text-button{min-height:40px}
.task-row,.today-tasks .task-row{padding:14px 15px;border-radius:15px;box-shadow:none}.task-title-line{align-items:flex-start;gap:10px}.task-main{padding-top:2px}.task-main h3{font-size:15px;line-height:1.5}.task-title-button{display:flex;align-items:baseline;justify-content:space-between;gap:12px;width:100%;padding:0;min-height:32px;background:none;text-align:left;color:var(--ink);font:inherit}.task-title-button>span:first-child{overflow-wrap:anywhere}.task-open-label{flex:none;font-size:11px;color:var(--muted);font-weight:400}.task-meta{font-size:12px;line-height:1.7;margin-top:2px}.task-date{padding:0;min-height:30px;background:none;font:inherit;color:inherit;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px}.task-card-bottom,.today-tasks .task-card-bottom{margin-top:10px;padding-top:9px;border-top:1px solid #f0ece4}.task-time{font-size:12px;color:var(--muted)}.focus-button,.today-tasks .focus-button{font-size:13px;min-height:44px;padding:10px 20px}.task-project-heading h3{font-size:13px}.checkin-button>span{opacity:0}.task-edit{font-size:13px;letter-spacing:0;color:var(--muted)}.task-quota{margin-top:8px}.task-completion{font-size:11px}
.timer-caption{font-size:12px}.timer-meta{font-size:11px}.timer-correction{font-size:12px}.timer-caption:empty{display:none}.timer-button{min-height:44px;font-size:13px}
.library-tabs{margin-bottom:16px}.library-search-tools{position:relative;margin:6px 0 8px}.library-search-tools>#toggle-batch-tasks{position:absolute;right:0;top:0;min-height:44px;font-size:12px}.filter-details>summary{min-height:44px;display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;font-size:12px;padding-right:110px}.filter-details>summary::-webkit-details-marker{display:none}.filter-details>summary::after{content:'⌄';font-size:16px}.filter-details>summary>span{color:var(--muted)}.task-filters{padding-top:5px;margin:0 0 10px;gap:6px}.task-filters .filter-button{min-height:40px;font-size:12px}.list-note{font-size:11px}.project-symbol{display:none}.category-intro{font-size:12px;margin-bottom:15px}
.nav-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-item{font-size:11px;gap:5px}.bottom-nav{box-shadow:0 -3px 18px #29292306}
.form-details{border-top:1px solid var(--line);margin-top:13px;padding-top:0}.form-details>summary{display:flex;align-items:center;gap:10px;min-height:48px;font-size:13px;list-style:none;cursor:pointer;padding:10px 0}.form-details>summary::-webkit-details-marker{display:none}.form-details>summary::after{content:'⌄';font-size:16px;margin-left:auto;color:var(--muted)}.form-details[open]>summary::after{transform:rotate(180deg)}.option-summary{color:var(--muted);font-size:11px;font-weight:400;overflow-wrap:anywhere}.task-note-editor{border:0;margin:0;padding-bottom:8px}.task-note-editor label{display:none}.editor-dialog .micro{font-size:11px;line-height:1.7}.editor-dialog label{font-size:12px}.editor-dialog .form-heading{margin-bottom:16px}.editor-dialog .form-columns{gap:12px}.editor-dialog input,.editor-dialog select{min-height:44px}.editor-dialog .button{min-height:46px}.task-time-fields{margin-top:0}#save-task{margin-top:17px}#task-add-time{display:block;min-height:44px;width:100%;text-align:center;margin-top:4px}#edit-actions-fold .editor-task-actions{margin-top:0;flex-wrap:wrap}#task-editor .task-discussion{margin-top:9px;border-top:0}.task-discussion>.form-details{margin-top:0}#edit-error:empty{display:none}.session-attribution{padding:10px 12px;background:#f1eee6;border-radius:10px;font-size:13px;color:#605f54;overflow-wrap:anywhere}.session-editor #session-task-note:empty{display:none}.session-editor #save-session{margin-top:14px}.session-editor #session-start{margin-bottom:4px}.session-editor .session-attribution+div+label{margin-top:18px}.session-editor .form-details{margin-top:9px}.session-editor #session-more .micro{margin-top:10px}
.settings-section>summary{font-size:15px;color:var(--ink);padding:17px 18px;gap:10px}.settings-section>summary>span:first-child{flex:1}.settings-section summary small{display:block;font-size:12px;line-height:1.5;font-weight:400;margin-top:5px;color:var(--muted)}.settings-section .fold-body{padding-top:0}.settings-section .muted{font-size:12px;line-height:1.8}.settings-section .micro{font-size:11px}.settings-section .button{margin-top:13px}.settings-section .button-pair>.button{margin-top:0}.settings-card{box-shadow:none}.settings-card .muted{font-size:12px}.settings-footer{font-size:12px;margin-top:27px}.install-guide{font-size:12px}
.review-actions{padding:20px}.review-actions h2{font-size:18px}.review-save-details{margin-top:16px;border-top:1px solid #e5d9bc;padding-top:10px}.review-save-details>summary{list-style:none;cursor:pointer;min-height:34px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8b795a}.review-save-details>summary::-webkit-details-marker{display:none}.review-save-details>summary::after{content:'⌄';margin-left:8px}.review-save-details[open]>summary::after{transform:rotate(180deg)}.review-save-details #review-status{padding-top:5px;font-size:11px}.review-rhythm-fold>.fold-body>.rhythm-history-card{border:0;background:none;padding:0;box-shadow:none;margin:0}.review-rhythm-fold>summary{font-size:13px}.review-rhythm-fold .rhythm-history-card>h2{display:none}.record-toolbar{width:100%;justify-content:flex-end}.record-toolbar .small-button{font-size:12px}.record-row .record-title,.record-duration{font-size:13px}.record-time{font-size:11px}.record-edit{font-size:12px;min-height:36px}.record-day-heading{font-size:13px}.record-day-heading span{font-size:11px}#records-details .section-title{display:block}#records-details .section-title>.micro{font-size:11px;margin-bottom:7px}
@media(max-width:359px){.day-card-foot{font-size:11px}.category-progress-card{padding:12px}.category-progress-card h3{font-size:13px}.category-progress-card strong{font-size:18px}.category-progress-card p>span{font-size:10px}.task-main h3{font-size:14px}.task-title-button{gap:6px}.task-meta{font-size:11px}.task-open-label{font-size:10px}.form-details>summary{font-size:12px}.option-summary{font-size:10px}.review-actions{padding:17px}.session-editor input[type='datetime-local']{font-size:13px}}
.suggestion{grid-template-columns:minmax(0,1fr)}.suggestion-number{display:none}.suggestion .text-button{min-height:44px;font-size:13px}#reconnect-push{margin-top:8px}
.form-details>summary::after,.filter-details>summary::after,.review-save-details>summary::after{content:'';display:block;flex:none;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-right:3px}.form-details[open]>summary::after,.filter-details[open]>summary::after,.review-save-details[open]>summary::after{transform:rotate(225deg)}

/* The mobile visual system. */
:root {
  color-scheme:light dark;
  --paper:#f7f8f1; --card:#ffffff; --ink:#27392b; --muted:#5c6b5c;
  --line:#e0e6d8; --primary:#42683f; --primary-ink:#ffffff;
  --soft:#e3ecd8; --track:#dbe4d3; --field:#fafbf6; --hover:#edf2e7;
  --form-label-size:1rem; --form-value-size:1rem; --form-label-weight:600;
  --danger:#a54138; --warning-bg:#fbf0d8; --warn:#805917;
  --coral:var(--primary); --coral-dark:var(--primary); --peach:var(--soft);
  --yellow:var(--warning-bg); --green:var(--soft); --dark:#2c422f; --radius:16px;
  font-size:100%; line-height:1.5;
}
::selection { background:var(--soft); color:var(--ink); }
body { background:var(--paper); }
button,a,summary { touch-action:manipulation; }
:root h1 { font-size:1.75rem; font-weight:650; letter-spacing:-.025em; line-height:1.4; }
:root h2 { font-size:1.125rem; font-weight:600; letter-spacing:-.015em; line-height:1.5; }
:root h3 { font-size:1rem; font-weight:600; line-height:1.5; }
:root p { line-height:1.75; }
:root .shell { width:min(100%,600px); padding:0 20px calc(7rem + env(safe-area-inset-bottom)); }
:root .topbar { height:88px; gap:14px; }
:root .brand { font-size:1.625rem; font-weight:650; letter-spacing:-.025em; }
.app-date { margin:0; font-size:0.8125rem; color:var(--muted); text-align:right; }
.shell:has(#app-view[hidden]) .app-date { display:none; }
:root .page-heading { margin:25px 0 22px; }
:root .page-heading h1 { font-size:1.75rem; }
:root :is(.muted,.micro) { color:var(--muted); line-height:1.75; }
:root .muted { font-size:0.875rem; }
:root .micro { font-size:0.75rem; }
:root :is(button,a,input,textarea,select,summary):focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
:root :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  min-width:0; min-height:48px; border:1px solid var(--line); background:var(--field);
  color:var(--ink); border-radius:10px; font-size:var(--form-value-size); font-weight:400; line-height:1.5; padding:11px 12px;
  caret-color:var(--primary); accent-color:var(--primary);
}
:root :is(input,textarea)::placeholder { font-size:inherit; font-weight:400; color:var(--muted); opacity:1; }
:root input:read-only { background:var(--soft); color:var(--muted); }
:root .editor-dialog :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { font-size:var(--form-value-size); min-width:0; }
:root .editor-dialog input[type="datetime-local"] { font-size:1rem; letter-spacing:-.015em; padding:10px; }
:root input:is([type="checkbox"],[type="radio"]),:root .editor-dialog input:is([type="checkbox"],[type="radio"]) {
  width:20px; height:20px; min-height:0; padding:0; flex:none; accent-color:var(--primary);
}
:root .editor-dialog label.category-member { min-height:48px; border-color:var(--line); }
:root .category-member>span { font-size:0.875rem; color:var(--ink); }
:root .category-member small { font-size:0.75rem; color:var(--muted); }
:root .import-task-choice { min-height:48px; color:var(--ink)!important; font-size:0.875rem!important; }
:root .import-task-choice small { color:var(--muted); font-size:0.75rem; }
:root :is(.task-form,.settings-card,.editor-dialog,.feedback-form) label { font-size:0.875rem; color:var(--ink); }
/* Form titles and values share a scale; weight carries the hierarchy. */
:root form label[for],
:root form label:has(> input:not([type="checkbox"]):not([type="radio"]), > select, > textarea),
:root form legend {
  font-size:var(--form-label-size); font-weight:var(--form-label-weight);
  line-height:1.5; color:var(--ink);
}
:root form label[for] { margin-bottom:8px; }
:root .editor-dialog .micro, :root .settings-card form .micro { font-size:.8125rem; }
:root #edit-title { font-weight:600; }

:root .button,:root .small-button { min-height:46px; border-radius:10px; font-size:0.875rem; padding:11px 15px; font-weight:500; box-shadow:none; }
:root :is(.primary,.small-button) { background:var(--primary); color:var(--primary-ink); }
:root .secondary { background:var(--soft); border:0; color:var(--primary); }
:root .text-button { min-height:44px; font-size:0.875rem; color:var(--primary); font-weight:500; }
:root .icon-button { width:44px; height:44px; background:var(--soft); color:var(--muted); }
:root .button:active,:root .small-button:active,:root .checkin-button:active { transform:none; opacity:.75; }
@media(hover:hover) {
  :root .text-button:hover { text-decoration:underline; text-underline-offset:4px; }
  :root .task-title-button:hover,:root .nav-item:hover { color:var(--primary); }
  :root .checkin-button:hover { background:var(--soft); }
}

/* Today keeps the approved companion and progress composition. */
:root .day-card {
  display:grid; grid-template-columns:minmax(0,1fr) 102px; column-gap:12px; row-gap:0;
  background:var(--soft); border:0; border-radius:16px; padding:20px 18px 18px;
  box-shadow:none; overflow:hidden;
}
:root .day-card::after { display:none; }
:root .day-card-title { font-size:1.125rem; line-height:1.35; font-weight:600; letter-spacing:-.015em; max-width:190px; }
:root .day-card-copy { grid-column:1; grid-row:1; min-width:0; }
:root .day-count { margin:17px 0 3px; gap:5px; }
:root .day-count strong { font-size:2.125rem; line-height:1.2; letter-spacing:-.025em; font-weight:600; }
:root .day-count>span { font-size:0.875rem; color:var(--muted); font-weight:400; }
.day-count-label { display:block; font-size:0.75rem; color:var(--muted); margin-top:5px; }
:root .day-card-foot {
  grid-column:1; grid-row:2; display:block; font-size:0.75rem; color:var(--muted); margin:9px 0 0;
}
:root .day-card>progress { grid-column:1/-1; grid-row:3; width:100%; height:4px; margin:18px 0 0; }
:root progress { background:var(--track); color:var(--primary); border-radius:4px; }
:root progress::-webkit-progress-bar { background:var(--track); border-radius:4px; }
:root progress::-webkit-progress-value { background:var(--primary); border-radius:4px; }
:root progress::-moz-progress-bar { background:var(--primary); border-radius:4px; }
:root .targets-section { margin:27px 0 23px; }
:root .targets-section .section-title { margin-bottom:1px; }
:root .targets-section .section-title h2 { font-size:1.125rem; }
:root .category-progress { display:grid; grid-template-columns:minmax(0,1fr); gap:0; overflow:visible; padding:0; }
:root .category-progress-card {
  min-width:0; padding:16px 0; gap:10px 8px; border:0; border-bottom:1px solid var(--line);
  border-radius:0; background:transparent; box-shadow:none;
}
:root .category-progress-card:last-child { border-bottom:0; }
:root .category-progress-card>div { gap:7px; flex-wrap:wrap; }
:root .category-progress-card h3 { font-size:0.9375rem; font-weight:500; color:var(--ink); line-height:1.5; }
:root .category-progress-card strong { font-size:1.125rem; color:var(--ink); font-weight:600; }
:root .category-progress-card p>span { font-size:0.75rem; color:var(--muted); }
:root .category-progress-card progress { height:5px; margin:0; background:var(--track); }
:root .category-reached { font-size:0.6875rem; color:var(--primary); margin:0; }
:root .count-pill { font-size:0.75rem; background:transparent; color:var(--muted); font-weight:400; padding:0; margin-left:5px; }
:root .fold-card { background:var(--card); border:0; border-radius:16px; margin-top:14px; }
:root .fold-card>summary { padding:17px 18px; min-height:58px; font-size:0.9375rem; color:var(--ink); font-weight:500; }
:root .fold-body { padding:0 18px 20px; }
:root .today-choice { margin-top:11px; }
:root .today-choice>summary { min-height:58px; padding:16px; gap:10px; }
:root .choice-copy { flex:1; }
:root .choice-copy strong { font-size:0.9375rem; font-weight:500; }
:root .choice-copy small { font-size:0.75rem; color:var(--muted); }
:root .recommendation-card { background:var(--soft); }
:root .recommendation-card>summary { color:var(--primary); }
.choice-icon { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:none; }
:root .fold-arrow { display:block; width:8px; height:8px; flex:none; font-size:0; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; color:var(--muted); transform:rotate(-45deg); margin:0 3px 0 4px; }
:root .fold-card[open]>summary .fold-arrow,:root .completed-fold[open]>summary .fold-arrow { transform:rotate(45deg); }
:root .inline-field { color:var(--ink); font-size:0.875rem; gap:8px; flex-wrap:wrap; }
:root .inline-field input { width:64px; background:var(--card); min-height:46px; }
:root .inline-field .small-button { background:var(--primary); font-size:0.875rem; min-height:46px; }
:root .context-details>summary { font-size:0.8125rem; color:var(--primary); min-height:44px; display:flex; align-items:center; }
:root .context-details textarea { background:var(--card); }
:root .insight-summary { font-size:0.875rem; color:var(--ink); line-height:1.8; }
:root .suggestion { border-color:var(--line); }
:root .suggestion h3 { font-size:1rem; }
:root .suggestion p { font-size:0.875rem; color:var(--muted); }
:root .suggestion .text-button { font-size:0.875rem; color:var(--primary); }

/* The same controls and list rhythm carry through all four pages. */
:root .bottom-nav { width:min(100%,600px); background:var(--card); border-color:var(--line); box-shadow:none; backdrop-filter:none; padding:9px 16px calc(9px + env(safe-area-inset-bottom)); gap:6px; }
:root .nav-item { color:var(--muted); font-size:0.75rem; min-height:50px; gap:4px; padding:3px 0; }
:root .nav-item.active,:root .nav-item.active .nav-icon { color:var(--primary); }
:root .nav-icon { width:22px; height:22px; stroke-width:1.7; }
:root .segmented { background:var(--soft); border-radius:12px; padding:4px; gap:2px; }
:root .segmented>button { font-size:0.875rem; min-height:44px; padding:9px; border-radius:9px; color:var(--muted); }
:root .segmented>button.selected { background:var(--card); color:var(--primary); box-shadow:none; }
:root .library-tabs>button { padding-left:5px; padding-right:5px; }
:root .library-tabs>button { white-space:normal; overflow-wrap:anywhere; line-height:1.3; }
:root .library-page-heading { flex-wrap:wrap; }
:root .library-page-heading>div { min-width:max-content; }
:root .search-input { background:var(--card); border:0; border-radius:12px; margin-bottom:9px; }
:root .filter-details>summary { font-size:0.875rem; }
:root .library-search-tools>#toggle-batch-tasks { font-size:0.8125rem; }
:root .filter-button { min-height:44px; font-size:0.8125rem; color:var(--muted); }
:root .filter-button.selected { background:var(--soft); color:var(--primary); }
:root .list-note,:root .category-intro { font-size:0.8125rem; color:var(--muted); }
:root .task-row,:root .today-tasks .task-row { background:var(--card); border:0; border-radius:14px; padding:15px; box-shadow:none; }
:root .today-tasks .task-row { padding:14px 0; border-bottom:1px solid var(--line); border-radius:0; }
:root .task-row.is-active { background:var(--soft); }
:root .task-row.is-subtask { border-left:1px solid var(--line); margin-left:14px; }
:root .task-main h3,:root .library-task .task-main h3 { font-size:1rem; font-weight:500; line-height:1.6; }
:root .task-title-button { color:var(--ink); min-height:44px; gap:8px; }
:root .task-open-label { font-size:0.75rem; color:var(--muted); }
:root .task-meta,:root .library-task .task-meta { font-size:0.8125rem; color:var(--muted); }
:root .task-card-bottom,:root .today-tasks .task-card-bottom { border-color:var(--line); margin-top:7px; padding-top:8px; }
:root .task-time,:root .task-completion { font-size:0.75rem; color:var(--muted); }
:root .task-date { min-height:32px; text-decoration-color:var(--muted); }
:root .focus-button,:root .today-tasks .focus-button { background:var(--soft); color:var(--primary); border:0; font-size:0.875rem; min-height:44px; padding:10px 15px; border-radius:10px; }
:root .focus-button.running { background:var(--soft); color:var(--primary); }
:root .checkin-button,:root .library-task .checkin-button,:root .today-tasks .checkin-button { width:44px; height:44px; min-width:44px; border:1.5px solid var(--line); border-radius:50%; background:var(--card); color:var(--primary); }
:root .checkin-button>span,:root .checkin-button:hover>span { opacity:0; }
:root .checkin-button.is-pending>span,:root .checkin-button.is-done>span { opacity:1; }
:root .checkin-button.is-pending { border-color:var(--warn); background:var(--warning-bg); color:var(--warn); }
:root .checkin-button.is-done { border-color:var(--primary); color:var(--primary); background:var(--soft); }
:root .task-edit { min-height:44px; min-width:44px; color:var(--muted); }
@media (hover:hover) and (pointer:fine){:root .task-edit:hover { background:var(--hover); }}
:root .task-project-heading { padding:12px 2px 9px; }
:root .task-project-heading h3 { font-size:0.875rem; font-weight:500; color:var(--muted); }
:root .task-project-heading>span { font-size:0.75rem; color:var(--muted); }
:root .project-task-list { gap:10px; }
:root .completed-fold>summary { font-size:0.875rem; color:var(--primary); min-height:44px; }
:root .completed-row { font-size:0.875rem; color:var(--muted); border-color:var(--line); }
:root .completed-row>span:first-child { background:var(--soft); color:var(--primary); }
:root .project-library-card,:root .category-library-card { background:var(--card); border:0; border-radius:14px; padding:17px 16px; }
:root .project-library-card h3,:root .category-library-card h3 { font-size:1rem; }
:root .project-library-card p,:root .category-library-card p { font-size:0.8125rem; color:var(--muted); }
:root .category-icon { display:none; }
:root .completion-history-row { border-color:var(--line); }
:root .completion-history-row h3 { font-size:0.9375rem; }
:root .completion-history-row p { font-size:0.8125rem; color:var(--muted); }
:root .completion-history-row .text-button { font-size:0.8125rem; min-height:44px; }
:root .history-check { background:var(--soft); color:var(--primary); }
:root .batch-task-bar { background:var(--soft); border:0; border-radius:12px; }
:root .batch-task-choice { color:var(--muted); font-size:0.8125rem; }
:root .empty-state { background:var(--card); border:0; border-radius:14px; padding:25px 18px; }
:root .empty-state h3 { color:var(--ink); font-size:1rem; }
:root .empty-state p { color:var(--muted); font-size:0.875rem; }
:root .empty-doodle { display:none; }

/* Timing remains visible and distinct from task completion. */
:root .timer-card { background:var(--dark); color:#f1f4e9; padding:18px; border-radius:16px; margin-top:18px; }
:root .timer-card h2 { font-size:1.0625rem; }
:root .timer-kicker,:root .timer-meta,:root .timer-caption,:root .timer-card>.micro { color:#c3d4bf; font-size:0.8125rem; }
:root .timer-display { font-size:2.125rem; letter-spacing:-.025em; color:#f1f4e9; }
:root .timer-display span { color:#c3d4bf; font-size:1.625rem; }
:root .timer-button { min-height:46px; font-size:0.875rem; background:#e3ecd8; color:#27392b; padding:10px 13px; }
:root .timer-correction { color:#d7e5cb; font-size:0.8125rem; }
:root .live-dot { background:#b9d69d; box-shadow:none; }

/* Review suggestions lead; charts and records use readable neutral labels. */
:root .review-toolbar { gap:12px; align-items:center; }
:root .review-toolbar input { background:var(--card); font-size:1rem; }
:root .period-note { color:var(--muted); font-size:0.8125rem; }
:root .settings-card { background:var(--card); border:0; border-radius:16px; padding:20px 18px; box-shadow:none; }
:root .settings-card .muted { font-size:0.875rem; }
:root .review-actions { background:var(--soft); color:var(--ink); margin:14px 0 20px; }
:root .review-actions h2 { font-size:1.25rem; color:var(--ink); }
:root .review-actions-list { margin:17px 0; }
:root .review-actions-list li { font-size:0.9375rem; color:var(--ink); padding-left:33px; border-color:var(--line); }
:root .review-actions-list li::before { background:var(--primary); color:var(--primary-ink); font-size:0.75rem; border-radius:50%; }
:root .review-actions-empty { font-size:0.875rem; color:var(--muted); }
:root .review-actions #review-status,:root .review-actions #review-ai-caption { font-size:0.75rem; color:var(--muted); }
:root .review-save-details { border-color:var(--line); }
:root .review-save-details>summary { color:var(--muted); font-size:0.8125rem; min-height:44px; }
:root .review-metrics { background:transparent; padding:12px 0 19px; border:0; border-radius:0; margin:0 0 15px; gap:12px; }
:root .review-metrics span { font-size:0.75rem; color:var(--muted); }
:root .review-metrics strong { font-size:1.5625rem; color:var(--ink); letter-spacing:-.025em; }
:root .review-metrics .review-main-metric strong { font-size:1.125rem; letter-spacing:-.015em; }
:root .review-metrics strong small { font-size:0.75rem; }
:root .review-chart-card { margin:14px 0; }
:root .review-chart-card h2 { font-size:1.125rem; color:var(--ink); }
:root :is(.chart-kicker,.chart-note,.chart-empty,.chart-data>summary,.chart-expand-label) { color:var(--muted); font-size:0.75rem; }
:root .chart-empty { font-size:0.875rem; }
:root .review-donut-layout { grid-template-columns:112px minmax(0,1fr); gap:18px; }
:root .chart-ring-track { stroke:var(--track); }
:root .donut-total { fill:var(--ink); font-size:1.125rem; }
:root .donut-caption { fill:var(--muted); font-size:0.8125rem; }
:root .chart-legend>li { grid-template-columns:8px minmax(0,1fr); gap:3px 8px; margin-top:13px; }
:root .chart-legend-name { color:var(--ink); font-size:0.875rem; }
:root .chart-legend-value { grid-column:2; text-align:left; white-space:normal; overflow-wrap:anywhere; color:var(--muted); font-size:0.75rem; }
:root .chart-legend-value small { display:inline-block; margin-left:.35em; font-size:0.75rem; color:var(--muted); }
:root .chart-swatch { width:8px; height:8px; margin-top:7px; border-radius:50%; }
:root .chart-color-0 { color:#42683f; } :root .chart-color-1 { color:#9b7741; }
:root .chart-color-2 { color:#417b76; } :root .chart-color-3 { color:#7a914e; }
:root .chart-color-4 { color:#906c94; } :root .chart-color-5 { color:#6487a4; }
:root .chart-color-6 { color:#b57e60; } :root .chart-color-7 { color:#838a7a; }
:root .chart-data,:root .chart-data-list li { border-color:var(--line); }
:root .chart-data-list li { font-size:0.875rem; color:var(--ink); }
:root .chart-data-list strong,:root .chart-data-list strong small { font-size:0.75rem; color:var(--muted); }
:root .quota-chart-row { border-color:var(--line); }
:root .quota-chart-label h3 { font-size:0.9375rem; color:var(--ink); }
:root .quota-chart-label h3 small { font-size:0.75rem; color:var(--muted); }
:root .quota-chart-label>strong { color:var(--primary); font-size:1.375rem; }
:root .quota-goal-bar,:root .gantt-track { fill:var(--track); }
:root .quota-chart-numbers,:root .quota-chart-numbers>span { font-size:0.75rem; color:var(--muted); }
:root .quota-day { color:var(--muted); }
:root .quota-day b { border-color:var(--line); width:24px; height:24px; font-size:0.875rem; }
:root .quota-day small { font-size:0.6875rem; }
:root .quota-day.is-met b { background:var(--soft); border-color:transparent; color:var(--primary); }
:root .quota-day.not-applicable b { color:var(--muted); }
:root .review-column-chart { max-width:336px; margin-left:auto; margin-right:auto; }
:root :is(.chart-axis-label,.chart-value,.chart-sample-label) { fill:var(--muted); font-size:1rem; }
/* SVG positions have fixed view boxes; enlarged text is available in the adjacent details. */
:root :is(.review-column-chart,.review-gantt) :is(.chart-axis-label,.chart-value,.chart-sample-label) { font-size:16px; }
:root .review-column-chart[data-density="dense"] .chart-value { display:none; }
:root .review-column-chart[data-density="dense"]>g:nth-of-type(2n) :is(.chart-axis-label,.chart-sample-label) { display:none; }
:root .chart-grid,:root .chart-baseline { stroke:var(--line); }
:root .timeline-color-key>span { color:var(--muted); font-size:0.75rem; }
:root .timeline-segment,:root .rhythm-continuity,:root .timeline-limit { border-color:var(--line); }
:root .timeline-clock { color:var(--muted); font-size:0.75rem; }
:root .timeline-detail { border-left:1px solid var(--line); }
:root .timeline-detail h3 { font-size:0.9375rem; }
:root .timeline-detail p,:root .timeline-day { color:var(--muted); font-size:0.75rem; }
:root .timeline-ongoing { color:var(--primary); background:var(--soft); font-size:0.6875rem; }
:root :is(.rhythm-empty,.rhythm-observation,.rhythm-evidence) { color:var(--muted); font-size:0.875rem; }
:root .rhythm-evidence strong { color:var(--primary); }
:root .rhythm-history-card .rhythm-evidence { font-size:0.875rem; }
:root .rhythm-evidence-status { font-size:0.8125rem; color:var(--primary); }
:root .rhythm-continuity dt,:root .rhythm-history-card .rhythm-continuity dt { font-size:0.75rem; color:var(--muted); }
:root .rhythm-continuity dd,:root .rhythm-history-card .rhythm-continuity dd { font-size:0.9375rem; color:var(--ink); }
:root .rhythm-slots>li { background:var(--soft); }
:root .rhythm-slot-title strong { color:var(--ink); font-size:0.875rem; }
:root .rhythm-slot-title span,:root .rhythm-slots p,:root .rhythm-explanation p { color:var(--muted); font-size:0.75rem; }

/* Settings and editing retain every field behind the existing disclosures. */
:root .settings-section>summary { font-size:1rem; }
:root .settings-section summary small { font-size:0.8125rem; color:var(--muted); }
:root .settings-section .muted { font-size:0.875rem; }
:root .settings-section .micro,:root .editor-dialog .micro { font-size:0.75rem; }
:root .settings-footer { font-size:0.8125rem; color:var(--muted); }
:root .status-badge { background:var(--soft); color:var(--primary); font-size:0.75rem; }
:root .status-badge.off { background:var(--field); color:var(--muted); }
:root .install-guide { background:var(--soft); color:var(--ink); border-radius:12px; font-size:0.875rem; }
:root .setting-rows dt,:root .setting-rows dd { color:var(--muted); font-size:0.8125rem; }
:root .setting-rows>div { border-color:var(--line); }
:root #review-schedule-edit-note { color:var(--muted); background:var(--soft); }
:root .editor-dialog { background:var(--paper); color:var(--ink); padding:22px; border:0; border-radius:20px; max-height:calc(100dvh - 32px); box-shadow:0 18px 70px #14201435; }
:root .editor-dialog::backdrop { background:#15221870; backdrop-filter:none; }
:root .editor-dialog .form-heading h2 { font-size:1.25rem; }
:root .form-heading { align-items:center; }
:root .form-details { border-color:var(--line); }
:root .form-details>summary { min-height:50px; font-size:var(--form-label-size); color:var(--ink); }
:root .option-summary { font-size:0.75rem; color:var(--muted); }
:root .unit-input>span { color:var(--muted); font-size:0.75rem; }
:root .recurrence-fields { border:0; background:var(--card); border-radius:12px; padding:13px; }
:root .recurrence-fields label { font-size:var(--form-label-size); }
:root .recurrence-fields legend { font-size:var(--form-label-size); color:var(--ink); }
:root .weekday-options>label { background:var(--field); border-color:var(--line); min-width:44px; min-height:44px; justify-content:center; }
:root .weekday-options span { font-size:0.8125rem; }
:root .weekday-options input,:root .batch-task-choice input,:root .session-running-choice>input { accent-color:var(--primary); }
:root .task-note-editor textarea[readonly],:root #edit-date[readonly] { background:var(--soft); color:var(--muted); }
:root .task-comment-meta { color:var(--muted); font-size:0.75rem; }
:root .task-comment p,:root .task-change p { color:var(--ink); font-size:0.875rem; }
:root .task-comment,:root .task-change,:root .task-discussion { border-color:var(--line); }
:root .task-change>summary { font-size:0.8125rem; }
:root .task-change>div { background:var(--soft); }
:root .task-comment .text-button,:root .inline-link,:root #edit-reschedule { font-size:0.8125rem; color:var(--primary); }
:root .session-attribution { background:var(--soft); color:var(--muted); font-size:0.875rem; }
:root .session-editor select:disabled { opacity:1; color:var(--muted); background:var(--soft); }
:root .session-running-choice>span { font-size:0.875rem; }
:root .session-change { border-color:var(--line); }
:root .session-change h3 { font-size:0.875rem; }
:root .session-change>p { font-size:0.8125rem; }
:root .record-row .record-title,:root .record-duration { font-size:0.875rem; color:var(--ink); }
:root .record-time,:root .record-day-heading span { color:var(--muted); font-size:0.75rem; }
:root .record-day-heading { color:var(--ink); font-size:0.875rem; }
:root .record-edit { min-height:44px; font-size:0.8125rem; }
:root .record-toolbar .small-button { font-size:0.875rem; }
:root .record-row { border-color:var(--line); }
:root .review-records-note { color:var(--warn); background:var(--warning-bg); }
:root .form-error,:root .danger { color:var(--danger); font-size:0.8125rem; }
:root .notice { color:var(--primary); background:var(--soft); border:0; font-size:0.875rem; border-radius:12px; }
:root .notice.warning,:root .completion-recovery { background:var(--warning-bg); color:var(--warn); border:0; border-radius:14px; }
:root .completion-recovery :is(h2,h3,p),:root .recovery-row :is(h3,p) { color:var(--warn); }
:root .completion-recovery h2 { font-size:1rem; }
:root .recovery-row h3 { font-size:0.875rem; }
:root .recovery-row p { font-size:0.75rem; }
:root .recovery-row>.small-button { background:var(--warn); color:var(--primary-ink); }
:root .connection-recovery-view>p { font-size:0.9375rem; color:var(--muted); }
:root .connection-details { color:var(--muted); font-size:0.75rem; }
:root .connection-details>summary { font-size:0.8125rem; }
:root .connection-details dl>div { border-color:var(--line); }
:root .login-card { background:var(--card); border:0; border-radius:16px; padding:24px 20px; }


@media(max-width:359px) {
  :root .shell { padding-left:16px; padding-right:16px; }
  :root .topbar { height:80px; }
  :root .brand { font-size:1.5625rem; }
  :root .app-date { font-size:0.75rem; }
  :root .day-card { padding:18px 15px 16px; grid-template-columns:minmax(0,1fr) 86px; gap:0 7px; }
  :root .day-card-title { font-size:1.0625rem; }
  :root .category-progress-card { column-gap:6px; }
  :root .category-progress-card h3 { font-size:0.875rem; }
  :root .category-progress-card p>span { font-size:0.6875rem; }
  :root .day-card-foot { font-size:0.75rem; }
  :root .editor-dialog { padding:18px; }
  :root .review-chart-card { padding:18px 16px; }
  :root .review-metrics { grid-template-columns:minmax(0,1.6fr) repeat(2,minmax(0,1fr)); gap:9px; }
  :root .review-metrics .review-main-metric strong { font-size:1rem; }
  :root .review-metrics strong { font-size:1.4375rem; }
  :root .review-donut-layout { grid-template-columns:96px minmax(0,1fr); gap:14px; }
  :root .review-donut { width:96px; }
  :root .donut-caption { font-size:0.9375rem; }
  :root .chart-legend-name { font-size:0.8125rem; }
  :root .task-main h3,:root .library-task .task-main h3 { font-size:0.9375rem; }
  :root .timer-display { font-size:1.8125rem; }
  :root .timer-display span { font-size:1.4375rem; }
  :root .timer-button { padding:10px; }
}
@media(prefers-color-scheme:dark) {
  :root { --paper:#181e19; --card:#242d25; --ink:#f1f4e9; --muted:#b1c0af; --line:#3f4c40;
    --primary:#b9d69d; --primary-ink:#24381f; --soft:#34432f; --track:#42503c;
    --field:#202820; --hover:#34432f; --dark:#273b2b; --danger:#f2aaa0; --warning-bg:#3c321e; --warn:#edce91; }
  :root .chart-color-0 { color:#b9d69d; } :root .chart-color-1 { color:#d8b776; }
  :root .chart-color-2 { color:#8cc7bd; } :root .chart-color-3 { color:#9fbb74; }
  :root .chart-color-4 { color:#c6a1cb; } :root .chart-color-5 { color:#9fbed6; }
  :root .chart-color-6 { color:#d9a78d; } :root .chart-color-7 { color:#b4bfaa; }
}

/* Everyday product surfaces: compact overview, familiar list navigation. */
#category-progress{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:0}
#category-progress .category-progress-card{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:16px;background:var(--card);border:1px solid var(--line);border-radius:14px;min-width:0}
#category-progress .category-progress-card>div{display:flex;align-items:start;gap:4px;justify-content:space-between;min-width:0}
#category-progress h3{font-size:.9375rem;line-height:1.4;overflow-wrap:anywhere}
#category-progress .category-progress-card p{margin:0;display:flex;align-items:baseline;gap:4px;flex-wrap:wrap}
#category-progress .category-progress-card p strong{font-size:1.75rem;line-height:1.1;font-variant-numeric:tabular-nums}
#category-progress .category-progress-card p span{font-size:.8125rem}
#category-progress .category-progress-card progress{width:100%;height:6px;margin:0}
#category-progress .category-reached{font-size:.6875rem;white-space:nowrap}
.state-picker{border:0;margin:24px 0 8px;padding:0;min-width:0}
.state-picker legend{font-weight:600;font-size:var(--form-label-size);margin-bottom:12px}
.state-options{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.state-options label{margin:0;position:relative;cursor:pointer}
.state-options input{position:absolute;opacity:0;width:1px;height:1px}
.state-options span{display:flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;font-size:.875rem}
.state-options input:checked+span{background:var(--primary);color:white;border-color:var(--primary)}
.state-options input:focus-visible+span{outline:2px solid currentColor;outline-offset:3px}
.settings-link{display:flex;width:100%;justify-content:space-between;align-items:center;min-height:56px;padding:16px;background:var(--card);color:inherit;border:0;border-radius:12px;font-size:1rem;text-align:left}
.notes-always-open>summary{display:none}
.notes-always-open>.task-note-editor{display:block}
.notes-always-open .task-note-editor>label{margin-top:12px}
:is(#panel-settings,#panel-library,#panel-review) details>summary{min-height:56px;align-items:center}
:is(#panel-settings,#panel-review) details>summary .fold-arrow{transform:rotate(-90deg)}
.navigation-page.is-navigation-open{position:fixed!important;inset:0!important;margin:0!important;padding:0 20px max(40px,env(safe-area-inset-bottom))!important;background:var(--paper)!important;border:0!important;border-radius:0!important;z-index:80;overflow:auto;overscroll-behavior:contain;max-height:100dvh;box-sizing:border-box;display:block!important}
.navigation-page.is-navigation-open>summary{display:none!important}
.navigation-page.is-navigation-open>.fold-body{padding:16px 0}
.secondary-heading{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:12px;background:inherit;padding:12px 0;margin-bottom:20px;min-height:60px;border-bottom:1px solid var(--line)}
.secondary-heading h2{font-size:1.125rem;margin:0;overflow-wrap:anywhere}
.page-back{background:none;border:0;color:var(--primary);font:inherit;font-size:1rem;min-width:68px;min-height:44px;padding:0;text-align:left;white-space:nowrap}
body.has-secondary-page{overflow:hidden}
.review-action{font-size:1.1875rem;line-height:1.7;font-weight:600;margin:0;padding:18px 0;border-bottom:1px solid var(--line)}
.review-actions{list-style:none;padding:0}
.review-actions li:last-child{border:0}
.review-status-details{font-size:.8125rem}
#panel-library .micro:empty,#panel-library .muted:empty,#task-editor .micro:empty,#panel-settings .micro:empty{display:none}
#task-editor #edit-source-note,#task-editor #edit-notes-hint{display:none}
#panel-settings .settings-section{margin:0;border-radius:0;border-bottom:1px solid var(--line)}
#panel-settings .settings-section>summary{padding:18px 16px;gap:10px;font-size:1rem}
#panel-settings .settings-section summary small{font-size:.8125rem}
#panel-review .review-chart-card{margin-top:24px}
#panel-review .chart-kicker{font-size:.75rem}
@media(prefers-color-scheme:dark){.navigation-page.is-navigation-open{background:#141d18!important}#category-progress .category-progress-card,.settings-link{background:#202c24;border-color:#3c4b40}.state-options span{border-color:#526453}}
@media(min-width:650px){#category-progress{grid-template-columns:repeat(3,minmax(0,1fr))}.navigation-page.is-navigation-open{left:calc(50% - 320px)!important;right:calc(50% - 320px)!important}}

:root .review-actions-list li.review-action{font-size:1.1875rem;line-height:1.65;font-weight:600;padding:20px 0 20px 32px}
.notes-always-open>summary{display:none!important}
:root :is(#panel-review,#panel-settings) summary .fold-arrow{font-size:0}
:root :is(#panel-review,#panel-settings) summary .fold-arrow::after{content:'›';font-size:1.25rem;display:block;transform:rotate(90deg);color:var(--muted)}
:root .notes-always-open>summary{display:none!important}
.state-options input:checked+span{color:var(--primary-ink)}
.secondary-heading{padding-top:max(12px,env(safe-area-inset-top))}
#recommendation-form>.button{width:100%;margin-top:14px}
:root .category-progress-card{box-shadow:none}
details[data-navigation]>summary{display:flex;align-items:center;justify-content:space-between;min-height:56px;list-style:none;font-size:.9375rem;padding:12px 0;border-top:1px solid var(--line)}
details[data-navigation]>summary::-webkit-details-marker{display:none}
details[data-navigation]>summary::after{content:'›';font-size:1.25rem;color:var(--muted);margin-left:16px}

.task-section-heading{margin:18px 0 6px;padding:0 2px;font-size:.875rem;font-weight:600;color:var(--muted)}
.project-section-editor{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;padding:8px 0}
.project-section-editor label{min-width:0;margin:0}
.project-section-editor .section-archive-choice{display:flex;gap:8px;align-items:center;min-height:48px;margin:0;font-size:.875rem}
#project-section-settings>summary{min-height:56px}
#edit-metadata-details>button,#project-section-settings>button[type=submit]{width:100%;margin-top:20px}
#edit-labels{white-space:pre-wrap}
.comment-attachment{display:flex;align-items:center;min-height:44px;padding:8px 0;color:var(--primary);font-size:.9375rem;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.task-reminder-editor{padding:16px 0;border-top:1px solid var(--line)}
.reminder-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.reminder-editor-heading strong{font-size:.9375rem}
.task-reminder-editor>label{display:block;margin:12px 0 0}
.task-reminder-editor input,.task-reminder-editor select{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
#edit-time-details>.button[type=submit]{width:100%;margin-top:16px}
.task-reminder-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 12px}
.task-reminder-editor .reminder-editor-heading{grid-column:1/-1}
.task-reminder-editor>label{margin:0;min-width:0;font-size:var(--form-label-size)}

/* Today flow refinement: one task per compact, readable row. */
#today-task-list .task-project + .task-project { margin-top:24px; }
#today-task-list .task-project-heading { padding:0 2px 10px; }
#today-task-list .task-project-heading h3 { font-size:.8125rem; color:var(--muted); font-weight:600; }
#today-task-list .project-task-list { gap:0; background:var(--card); border-radius:16px; overflow:hidden; }
#today-task-list .task-row {
  display:grid; grid-template-columns:44px minmax(0,1fr) auto; column-gap:10px; row-gap:0;
  margin:0; padding:12px; border:0; border-radius:0; background:transparent; box-shadow:none;
}
#today-task-list .task-row + .task-row { border-top:1px solid var(--line); }
#today-task-list .task-row.is-active { background:var(--soft); }
#today-task-list .task-title-line, #today-task-list .task-card-bottom { display:contents; }
#today-task-list .checkin-button { grid-column:1; grid-row:1 / 3; align-self:center; margin:0; width:44px; min-width:44px; height:44px; }
#today-task-list .task-main { grid-column:2; grid-row:1; min-width:0; }
#today-task-list .task-main h3 { font-size:1rem; line-height:1.45; }
#today-task-list .task-title-button { padding:0; min-height:44px; gap:0; line-height:1.45; align-items:center; }
#today-task-list .task-open-label { display:none; }
#today-task-list .task-meta { margin:2px 0 0; font-size:.75rem; line-height:1.5; }
#today-task-list .task-time { color:var(--muted); font-size:.75rem; line-height:1.5; }
#today-task-list .task-meta:has(> .task-time:only-child:empty) { display:none; }
#today-task-list .task-time:empty { display:none; }
#today-task-list .focus-button { grid-column:3; grid-row:1 / 3; align-self:center; min-width:56px; min-height:44px; padding:10px 12px; margin:0; border-radius:12px; font-size:.875rem; background:var(--soft); color:var(--primary); white-space:nowrap; }
#today-task-list .task-quota { grid-column:2 / -1; grid-row:3; margin-top:10px; padding:0; }
#today-task-list .task-completion { font-size:.75rem; }
:root .timer-card { padding:22px; border-radius:16px; }
:root .timer-card h2 { margin:12px 0 8px; font-size:1.125rem; line-height:1.5; overflow-wrap:anywhere; }
:root .timer-controls { display:block; margin-top:4px; }
:root .timer-display { font-size:2.75rem; line-height:1.2; letter-spacing:-.03em; }
:root .timer-display span { font-size:1.75rem; }
:root .timer-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
:root .timer-actions > .button { flex:1 1 110px; min-height:48px; padding:12px; width:auto; font-size:.9375rem; }
:root .timer-complete { background:transparent; border:1px solid #b3c9ad; color:#f1f4e9; }
:root .timer-correction { min-height:44px; margin-top:4px; padding:10px 0; }
:root .timer-card :focus-visible { outline-color:#e3ecd8; }
:root .timer-card h2:focus { outline:none; }
:root .timer-caption { margin-top:12px; }
#timer-caption:empty, #timer-footnote:empty { display:none; }
.today-empty-icon { display:block; width:32px; height:32px; margin:0 auto 16px; fill:none; stroke:currentColor; stroke-width:1.5; color:var(--primary); }
#today-empty-action { margin-top:20px; min-height:44px; }
:root .state-options { gap:8px; }
:root .state-options span { padding:10px 12px; }
@media (pointer:coarse) {
  button, summary, [role="button"], .nav-item { touch-action:manipulation; -webkit-user-select:none; user-select:none; }
  :root button:active:not(:disabled), :root summary:active { opacity:.76; }
}
@media(max-width:359px) {
  #today-task-list .task-row { padding:14px 10px; column-gap:7px; }
  #today-task-list .focus-button { min-width:48px; padding:10px 8px; }
  #today-task-list .task-main h3 { font-size:.9375rem; }
  :root .timer-card { padding:20px 18px; }
}

#today-task-list .task-title-button > span:first-child { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; overflow:hidden; }

/* Secondary surfaces share the same quiet list language as Today. */
:root .settings-group { margin:0 0 24px; background:var(--card); border-radius:16px; overflow:hidden; }
:root #panel-settings .settings-group > .settings-section { background:transparent; border:0; border-radius:0; }
:root #panel-settings .settings-group > .settings-section + .settings-section { border-top:1px solid var(--line); }
:root #panel-settings .settings-section > summary { min-height:72px; padding:18px; }
:root #panel-settings .settings-section summary small { margin-top:4px; line-height:1.5; }
:root #panel-settings .settings-link { min-height:64px; padding:18px; background:transparent; border-top:1px solid var(--line); border-radius:0; }
:root .settings-section.is-navigation-open > .fold-body { padding:8px 0 24px; }
:root .settings-section.is-navigation-open .button { min-height:48px; }
:root .secondary-heading { align-items:center; min-height:68px; margin-bottom:20px; }
:root .secondary-heading h2 { font-size:1.125rem; font-weight:650; line-height:1.4; }
:root .navigation-value { margin-left:auto; margin-right:10px; color:var(--muted); font-size:.8125rem; font-weight:400; }
:root .review-actions { padding:24px 20px 8px; }
:root .review-actions-list { margin:8px 0 12px; }
:root .review-actions-list li.review-action { font-size:1.1875rem; line-height:1.6; padding:18px 0 18px 32px; margin:0; }
:root .review-actions-list li::before { top:22px; }
:root .review-save-details { margin-top:8px; padding-top:0; }
:root .review-save-details > summary { min-height:48px!important; font-size:.8125rem; }
:root .review-save-details > summary::after { content:'›'; transform:none; font-size:1.25rem; }
:root .review-save-details.is-navigation-open > p { font-size:.9375rem; line-height:1.8; margin:16px 0; }
:root .review-state-note { color:var(--danger); line-height:1.6; padding:12px 0; }
:root #panel-review .review-metrics { border-bottom:1px solid var(--line); padding:12px 0 24px; margin-top:14px; }
:root #task-list .task-project + .task-project { margin-top:28px; }
:root #task-list .project-task-list { background:var(--card); border-radius:14px; padding:0 14px; overflow:hidden; }
:root #task-list .library-task { background:transparent; margin:0; padding:16px 0; border:0; border-radius:0; box-shadow:none; }
:root #task-list .library-task + .library-task { border-top:1px solid var(--line); }
:root #task-list .task-title-line { align-items:flex-start; gap:10px; }
:root #task-list .task-main { min-width:0; }
:root #task-list .task-main h3 { font-size:1rem; line-height:1.5; }
:root #task-list .task-title-button { padding:5px 0; min-height:36px; align-items:flex-start; }
:root #task-list .task-title-button > span:first-child { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; overflow:hidden; }
:root #task-list .task-open-label { display:none; }
:root #task-list .task-meta { margin:0; font-size:.8125rem; line-height:1.6; overflow-wrap:anywhere; }
:root #task-list .checkin-button { flex-shrink:0; margin:0; }
:root #task-list .task-date { padding:2px 0; min-height:36px; color:var(--primary); }
:root #task-list .task-row.is-subtask { margin-left:20px; }
:root #project-list, :root #category-list, :root #completion-history { border-radius:14px; background:var(--card); overflow:hidden; }
:root :is(#project-list,#category-list) > article { margin:0; padding:18px 16px; border-radius:0; background:transparent; }
:root :is(#project-list,#category-list) > article + article { border-top:1px solid var(--line); }
:root .completion-history-row { margin:0; padding:18px 16px; }
:root .completion-history-row + .completion-history-row { border-top:1px solid var(--line); }
:root .filter-details.is-navigation-open .task-filters { display:flex; flex-direction:column; gap:0; padding:0; margin:0; }
:root .filter-details.is-navigation-open .filter-button { position:relative; text-align:left; padding:16px 8px; min-height:56px; border:0; border-bottom:1px solid var(--line); border-radius:0; font-size:1rem; background:transparent; color:var(--ink); }
:root .filter-details.is-navigation-open .filter-button.selected { color:var(--primary); font-weight:600; }
:root .filter-details.is-navigation-open .filter-button.selected::after { content:'✓'; position:absolute; right:8px; }
:root .empty-state > .button { margin-top:20px; min-height:44px; }
@media(max-width:359px) {
  :root #task-list .project-task-list { padding:0 10px; }
  :root #task-list .task-title-line { gap:7px; }
  :root .review-actions { padding:20px 16px 8px; }
  :root #task-list .task-main h3 { font-size:.9375rem; }
}
:root :is(#panel-settings,#panel-review) summary .fold-arrow { display:block; flex:none; width:7px; height:7px; margin:0 4px 0 8px; border:0; border-right:1.5px solid var(--muted); border-top:1.5px solid var(--muted); transform:rotate(45deg); }
:root :is(#panel-settings,#panel-review) summary .fold-arrow::after { content:none; }
:root .review-save-details > summary::after, :root details[data-navigation] > summary::after { content:''; display:block; flex:none; width:7px; height:7px; margin-right:4px; border:0; border-right:1.5px solid currentColor; border-top:1.5px solid currentColor; transform:rotate(45deg); }
:root .review-save-details.is-navigation-open #review-status { font-size:.9375rem; line-height:1.8; }
:root #task-list .task-title-button, :root #task-list .task-date { min-height:44px; }
:root details[data-navigation] > summary:has(.fold-arrow)::after { display:none; }
/* Route headings announce the new page; they are not keyboard controls. */
.panel h1[tabindex="-1"]:focus { outline:none; }
:root .settings-group > .settings-section > summary:focus-visible, :root .settings-group > .settings-link:focus-visible { outline-offset:-4px; border-radius:12px; }

/* Completion stays actionable inside the current page, with one direct undo. */
:root .celebration { z-index:100; width:min(calc(100% - 32px),440px); padding:12px; gap:8px; }
:root .celebration-check { width:32px; height:32px; border:0; box-shadow:none; border-radius:50%; transform:none; font-size:1.125rem; }
:root .celebration strong { color:var(--ink); font-size:.9375rem; }
:root .celebration .icon-button { min-width:44px; min-height:44px; width:44px; height:44px; background:transparent; color:var(--muted); }
:root #celebration-undo { min-width:44px; min-height:44px; font-size:.875rem; padding:8px; white-space:nowrap; }
:root #celebration-error { color:var(--danger); white-space:normal; overflow:visible; font-size:.8125rem; line-height:1.5; }
:root .review-action-preview { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; line-clamp:3; overflow:hidden; }
:root .review-action-more { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:44px; margin-top:4px; padding:8px 0; font-size:.8125rem; font-weight:500; }
:root .review-action-more svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.5; }
:root #review-action-full { white-space:pre-wrap; overflow-wrap:anywhere; font-size:1.0625rem; line-height:1.85; }
:root #celebration-undo[aria-disabled="true"] { opacity:.45; cursor:wait; }

/* A dated task opens one explicit save flow; daily carry-over is opt-in. */
:root #edit-reschedule { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:48px; margin:0; padding:12px 14px; border:1px solid var(--line); border-radius:11px; background:var(--field); color:var(--ink); font-size:1rem; font-weight:400; text-align:left; }
:root #edit-reschedule::after { content:''; display:block; width:7px; height:7px; flex:none; border-top:1.5px solid var(--muted); border-right:1.5px solid var(--muted); transform:rotate(45deg); }
:root .overdue-dialog { width:min(calc(100% - 32px),440px); }
:root .overdue-dialog .form-heading { margin-bottom:8px; }
:root .overdue-list { list-style:none; padding:0; margin:20px 0; max-height:min(38dvh,300px); overflow:auto; overscroll-behavior:contain; }
:root .overdue-list li { padding:12px 0; border-bottom:1px solid var(--line); }
:root .overdue-list li:first-child { padding-top:0; }
:root .overdue-list li:last-child { border:0; }
:root .overdue-list span { display:block; font-size:1rem; line-height:1.5; overflow-wrap:anywhere; }
:root .overdue-list small { display:block; margin-top:4px; font-size:.8125rem; color:var(--muted); }
:root .overdue-actions { display:grid; gap:8px; margin-top:16px; }
:root #overdue-error:empty { display:none; }
:root #overdue-confirm[aria-disabled="true"] { opacity:.55; cursor:wait; }

/* The first daily review is two takeaways, using the existing quiet dialog. */
:root .morning-review-dialog { width:min(calc(100% - 32px),440px); }
:root .morning-review-dialog .form-heading { margin-bottom:0; align-items:center; }
:root .morning-review-dialog .form-heading h2 { font-size:1.375rem; line-height:1.3; }
:root .morning-review-date { color:var(--muted); font-size:.8125rem; margin:2px 0 24px; }
:root .morning-review-content h3 { display:flex; align-items:center; gap:8px; font-size:.875rem; font-weight:600; color:var(--primary); margin:0 0 10px; }
:root .morning-review-content h3 svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }
:root .morning-review-content p { font-size:1.125rem; line-height:1.65; font-weight:500; white-space:pre-wrap; overflow-wrap:anywhere; margin:0; }
:root .morning-review-actions { display:grid; gap:8px; margin-top:28px; }
:root #morning-review-full { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; font-size:.875rem; }
:root #morning-review-full svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.5; }
@media(max-width:359px) { :root .morning-review-content p { font-size:1.0625rem; } }

/* Acknowledgement stays in the existing toast; no extra reward or modal. */
:root .celebration { background:var(--card); color:var(--ink); border:0; border-radius:16px; box-shadow:0 10px 40px #14201425; }
:root .celebration p { color:var(--muted); font-size:.8125rem; }
:root .celebration-check { background:var(--soft); color:var(--primary); }
:root .celebration-spark { display:none; }
:root #celebration[data-kind="effort"] { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; align-items:start; gap:4px 10px; }
:root #celebration[data-kind="effort"]>.celebration-check { grid-column:1; grid-row:1; }
:root #celebration[data-kind="effort"]>div { grid-column:2; grid-row:1; padding-top:3px; }
:root #celebration[data-kind="effort"] #close-celebration { grid-column:3; grid-row:1; }
:root #celebration[data-kind="effort"] #celebration-copy { font-size:.8125rem; line-height:1.6; white-space:normal; overflow-wrap:anywhere; margin-top:6px; }
:root #celebration-edit-time { grid-column:2/4; grid-row:2; justify-self:start; min-height:44px; padding:8px 0; font-size:.8125rem; }
:root #celebration-edit-time[aria-disabled="true"] { opacity:.45; cursor:wait; }
:root .morning-review-content .morning-review-progress { color:var(--muted); font-size:.875rem; font-weight:400; line-height:1.7; margin-top:16px; }
:root .morning-review-advice { display:flex; align-items:center; gap:8px; min-height:44px; margin-top:12px; font-size:.875rem; font-weight:500; }
:root .morning-review-advice svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.5; }

/* The open task list is the starting point. Progress and settings stay within reach. */
:root .topbar { min-height:64px; height:auto; padding-block:8px; }
.topbar-tools { display:flex; align-items:center; gap:8px; }
:root .topbar-settings { width:44px; min-width:44px; height:44px; display:grid; place-items:center; color:var(--primary); }
.topbar-settings svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linejoin:round; }
.topbar-settings[aria-current="page"] { background:var(--soft); }
:root .bottom-nav { grid-template-columns:repeat(3,minmax(0,1fr)); }
.today-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:10px 0 12px; }
.today-header h1 { font-size:1.75rem; line-height:1.3; }
.today-summary { margin-top:5px; color:var(--muted); font-size:.8125rem; line-height:1.6; }
.today-summary strong { color:var(--ink); font-variant-numeric:tabular-nums; }
#today-add-task { flex:none; min-height:44px; padding-inline:14px; }
.today-encouragement { margin:0 0 18px; padding:10px 12px; border-radius:10px; background:var(--soft); color:var(--primary); font-size:.875rem; line-height:1.55; }
.today-quota { margin:12px 0 18px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.today-quota > .section-title { margin:0 0 4px; gap:8px; }
.today-quota h2 { font-size:1.125rem; }
.quota-heading-actions { display:flex; gap:10px; align-items:center; }
.quota-heading-actions > .text-button { min-height:44px; padding-inline:4px; font-size:.8125rem; }
.quota-summary { color:var(--muted); font-size:.8125rem; font-variant-numeric:tabular-nums; white-space:nowrap; }
#category-progress { gap:8px; margin:0; }
#category-progress .category-progress-card {
  display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:1fr auto auto; gap:6px;
  padding:9px 10px; border-radius:10px;
  border:1px solid var(--line); background:var(--card);
}
#category-progress .category-progress-card.reached { background:var(--soft); }
#category-progress .category-progress-card > div { flex-wrap:wrap; align-content:start; }
#category-progress .category-progress-card h3 { font-size:.875rem; }
#category-progress .category-progress-card p { grid-area:auto; font-variant-numeric:tabular-nums; }
#category-progress .category-progress-card p strong { font-size:.875rem; }
#category-progress .category-progress-card p span { font-size:.75rem; }
#category-progress .category-progress-card progress { height:5px; }
#category-progress .category-reached { color:var(--primary); font-size:.6875rem; }
.today-list-heading { display:flex; align-items:baseline; gap:8px; margin:20px 0 10px; }
.today-list-heading h2 { font-size:1.125rem; }
.today-task-number { color:var(--muted); font-size:.8125rem; }
#today-task-list .task-project + .task-project { margin-top:16px; }
#today-task-list .task-project-heading { padding-bottom:5px; }
#today-task-list .task-row { padding-block:7px; }
#today-task-list .task-meta { margin-top:0; }
#today-empty { text-align:left; padding:16px 0; background:none; border:0; }
#today-empty-copy:empty { display:none; }
#today-empty-action { margin-top:6px; }
#panel-today .completed-fold { margin-top:16px; }
#panel-today .completed-fold > summary { min-height:44px; }
#panel-today .timer-card { margin:0 0 14px; }

/* Start with the saved recommendation and keep the time details close by. */
:root .review-compact .page-heading { margin:8px 0 16px; }
:root .review-compact .review-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; }
:root .review-compact .review-toolbar .segmented { width:auto; flex:none; }
:root .review-compact .review-toolbar .segmented button { min-height:44px; padding-inline:12px; }
:root .review-compact .review-toolbar input { width:auto; max-width:100%; min-width:0; min-height:44px; margin:0; }
.review-compact .period-note { margin:10px 0 2px; }
.review-source-note { margin:0 0 14px; }
.review-facts { margin:22px 0; }
.review-facts > .section-title { min-height:32px; margin:0; }
.review-facts > .section-title > span { color:var(--muted); font-variant-numeric:tabular-nums; font-size:.875rem; }
.review-facts > .micro { margin:6px 0 0; }
.review-fact-list { list-style:none; margin:0; padding:0; }
.review-fact-list li { display:flex; align-items:baseline; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); padding:9px 0; }
.review-fact-list li > div, .review-fact-list li > span { min-width:0; overflow-wrap:anywhere; }
.review-fact-list li > strong { flex:none; color:var(--primary); font-size:.875rem; font-variant-numeric:tabular-nums; white-space:nowrap; }
.review-progress-note { color:var(--muted); font-size:.8125rem; line-height:1.5; margin-top:3px; }
.review-disclosure > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; list-style:none; cursor:pointer; color:var(--primary); }
.review-disclosure > summary::-webkit-details-marker { display:none; }
.review-disclosure > summary::after { content:""; flex:none; width:7px; height:7px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); margin:0 4px 3px; }
.review-disclosure[open] > summary::after { transform:rotate(225deg); margin:3px 4px 0; }
.review-conclusions { margin:14px 0 24px; padding:15px 16px; border-radius:12px; background:var(--soft); }
.review-conclusions h2 { margin-bottom:8px; font-size:1.125rem; }
#review-result { overflow-wrap:anywhere; font-size:.875rem; }
.review-saved-summary { margin:6px 0 12px; font-weight:600; }
.review-observations ul, .review-saved-actions { margin:0; padding-inline-start:18px; }
.review-observations li, .review-saved-actions li { padding:4px 0; line-height:1.6; }
.review-saved-actions .text-button { min-height:44px; }
.review-quota-list { list-style:none; margin:0; padding:0; }
.review-quota-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:6px 10px; padding:9px 0 12px; border-bottom:1px solid var(--line); }
.review-quota-row h3 { font-size:.875rem; overflow-wrap:anywhere; }
.review-quota-row span { color:var(--muted); font-size:.75rem; }
.review-quota-row.reached span { color:var(--primary); }
.review-quota-row > strong { font-size:.8125rem; color:var(--primary); text-align:right; font-variant-numeric:tabular-nums; }
.review-quota-row progress { grid-column:1/-1; width:100%; height:5px; }
.review-timeline { margin:20px 0; border-block:1px solid var(--line); }
.review-timeline > summary { gap:10px; padding:8px 0; color:var(--ink); font-weight:600; }
.review-timeline > summary span { flex:none; }
.review-timeline > summary small { margin-left:auto; color:var(--primary); text-align:right; font-size:.75rem; font-weight:500; font-variant-numeric:tabular-nums; }
.review-timeline-body { padding-bottom:14px; }
.review-peak-duration { color:var(--muted); font-size:.8125rem; margin:6px 0 8px; }
.review-peak-duration strong { color:var(--primary); }
.review-hour-chart { display:grid; grid-template-columns:repeat(24,minmax(0,1fr)); grid-template-rows:minmax(0,1fr); gap:3px; height:60px; border-bottom:1px solid var(--line); }
.review-hour-chart svg { display:block; width:100%; height:100%; }
.review-hour-chart rect { fill:var(--track); fill:color-mix(in srgb,var(--primary) 60%,var(--paper)); }
.review-hour-chart rect.is-peak { fill:var(--primary); }
.review-hour-axis { display:flex; justify-content:space-between; margin:4px 0 12px; color:var(--muted); font-size:.6875rem; }
.review-timeline-list { list-style:none; margin:0; padding:0; }
.review-timeline-list li { display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px; padding:7px 0; border-top:1px solid var(--line); font-size:.8125rem; overflow-wrap:anywhere; }
.review-timeline-list .timeline-day-label { color:var(--muted); font-weight:600; }
.timeline-clock-range { color:var(--primary); font-variant-numeric:tabular-nums; }
:root #celebration[data-kind="completion"] #celebration-copy { white-space:normal; overflow-wrap:anywhere; }
@media (max-width:359px) {
  #category-progress .category-progress-card { padding:8px; }
  .review-quota-row > strong { max-width:9rem; }
}

/* Approved warm-native direction: clear everyday surfaces, warmth at moments of effort. */
:root {
  --paper:#ffffff; --card:#ffffff; --ink:#263342; --muted:#627080;
  --line:#e9edf1; --primary:#2562c4; --primary-ink:#ffffff;
  --soft:#eef4fc; --track:#dce7f4; --field:#ffffff; --hover:#f3f6fa;
  --danger:#a54138; --warning-bg:#fff7e9; --warn:#805917; --dark:#f0f6ff;
  --receipt:#fffdf8; --timer-border:#dae7f7; --success:#347460; --control-border:#8392a2;
  --form-label-size:1rem; --form-value-size:1rem; --radius:14px;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  scrollbar-color:var(--track) var(--paper);
}
:root .shell { padding-inline:22px; }
:root .topbar { min-height:60px; padding-block:8px; }
:root .brand { font-size:1.25rem; font-weight:650; letter-spacing:-.02em; }
:root .topbar .icon-button { background:transparent; color:var(--muted); }
:root .topbar-settings[aria-current="page"] { background:var(--soft); color:var(--primary); }
:root h1, :root .page-heading h1, :root .today-header h1 { font-size:1.875rem; font-weight:700; line-height:1.25; }
:root .page-heading { margin:14px 0 22px; }
:root .today-header { margin:7px 0 0; }
:root .button, :root .small-button { font-weight:580; }
:root .icon-button { border-radius:10px; }
:root .segmented { background:var(--hover); border-radius:10px; padding:3px; }
:root .segmented button { border-radius:8px; }
:root .segmented button.selected { background:var(--card); color:var(--ink); box-shadow:0 2px 4px #2b405115; }
:root :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { border-color:var(--control-border); }
:root .search-input { background:var(--hover); border-color:transparent; }
:root form label[for], :root form legend { font-size:1rem; }

.warm-art-symbols, .warm-art-definitions { position:absolute; width:0; height:0; overflow:hidden; pointer-events:none; }
.warm-art { display:block; flex:none; width:99px; height:84px; fill:none; stroke:none; pointer-events:none; }
.today-welcome { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:112px; padding:12px 0 20px; }
.today-welcome-copy { min-width:0; }
:root .today-encouragement { margin:0; padding:0; border-radius:0; background:none; color:var(--ink); font-size:1.125rem; font-weight:600; line-height:1.5; letter-spacing:-.015em; overflow-wrap:anywhere; }
:root .today-summary { display:flex; align-items:baseline; flex-wrap:wrap; gap:3px 10px; margin-top:10px; color:var(--muted); font-size:.9375rem; line-height:1.6; }
:root .today-summary > span { white-space:nowrap; }
:root .today-summary strong { font-size:1rem; font-weight:650; }
:root .today-summary .completed-today { font-size:.75rem; color:var(--muted); }
:root .today-summary > span:last-child { font-size:.75rem; }
:root .today-summary > span[aria-hidden="true"] { display:none; }
:root .today-welcome > .warm-art { margin-right:-4px; }
:root .today-quota { margin:0 0 22px; padding:0; border:0; }
:root .today-quota > .section-title { min-height:44px; margin-bottom:6px; }
:root .quota-heading-actions { gap:8px; }
:root .quota-heading-actions > .text-button { font-size:.875rem; }
:root #category-progress { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
:root #category-progress .category-progress-card {
  --quota-tint:#f1f6fc; --quota-color:#3972ad; --quota-track:#dce7f4;
  display:grid; grid-template-rows:1fr auto auto; gap:10px; min-width:0;
  padding:12px 13px 13px; border:0; border-radius:14px; background:var(--quota-tint); box-shadow:none;
}
:root #category-progress [data-quota-tone="1"] { --quota-tint:#fff7e9; --quota-color:#91671d; --quota-track:#f1e4c8; }
:root #category-progress [data-quota-tone="2"] { --quota-tint:#f1f7f4; --quota-color:#39775f; --quota-track:#dbe9e2; }
:root #category-progress [data-quota-tone="3"] { --quota-tint:#f5f3fa; --quota-color:#79659e; --quota-track:#e5dff0; }
:root #category-progress .category-progress-card > div { justify-content:flex-start; align-items:center; gap:5px 7px; }
:root #category-progress .quota-icon { display:block; flex:none; width:18px; height:18px; color:var(--quota-color); fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
:root #category-progress .category-progress-card h3 { flex:1; font-size:.875rem; font-weight:590; line-height:1.4; white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; }
:root #category-progress .category-reached { margin-left:auto; color:var(--quota-color); font-size:.6875rem; line-height:1.4; }
:root #category-progress .category-progress-card p { display:flex; flex-direction:column; align-items:flex-start; gap:4px; margin:0; white-space:normal; line-height:1.2; }
:root #category-progress .category-progress-card p strong { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 4px; font-size:1.625rem; font-weight:650; letter-spacing:-.025em; line-height:1.2; }
:root #category-progress .category-progress-card p .quota-measure { font-size:inherit; color:inherit; white-space:nowrap; }
:root #category-progress .category-progress-card p .quota-amount { font-size:inherit; color:inherit; }
:root #category-progress .category-progress-card p .quota-unit { font-size:.75rem; font-weight:400; letter-spacing:0; color:var(--muted); }
:root #category-progress .category-progress-card p > span { margin-left:0; font-size:.75rem; color:var(--muted); }
:root #category-progress .category-progress-card progress { height:5px; margin:0; background:var(--quota-track); color:var(--quota-color); }
:root #category-progress .category-progress-card progress::-webkit-progress-bar { background:var(--quota-track); }
:root #category-progress .category-progress-card progress::-webkit-progress-value { background:var(--quota-color); }
:root #category-progress .category-progress-card progress::-moz-progress-bar { background:var(--quota-color); }

:root .today-tasks { margin-top:20px; }
:root .today-list-heading { align-items:center; gap:8px; min-height:44px; margin:0 0 1px; }
:root #today-add-task { margin-left:auto; padding-inline:14px; color:var(--primary-ink); background:var(--primary); border-radius:10px; font-weight:600; }
:root #today-task-list .project-task-list, :root #task-list .project-task-list { padding:0; border-radius:0; background:transparent; overflow:visible; }
:root #today-task-list .task-project-heading, :root #task-list .task-project-heading { padding:12px 0 2px; }
:root .task-project-heading h3 { font-size:.75rem; font-weight:550; }
:root #today-task-list .task-row { padding:7px 0; column-gap:7px; background:transparent; border-bottom:1px solid var(--line); border-radius:0; box-shadow:none; }
:root #today-task-list .task-row + .task-row { border-top:0; }
:root #today-task-list .task-row.is-active { background:var(--soft); border-radius:10px; }
:root #today-task-list .task-main h3 { font-size:1rem; font-weight:500; line-height:1.45; }
:root #today-task-list .focus-button { min-width:56px; padding:10px 5px; border:0; border-radius:9px; background:transparent; color:var(--primary); font-size:.8125rem; font-weight:500; }
:root #today-task-list .focus-button.running { color:var(--success); }
:root :is(#today-task-list,#task-list) .checkin-button { position:relative; isolation:isolate; width:44px; min-width:44px; height:44px; align-self:center; border:0; border-radius:10px; background:transparent; color:var(--success); }
:root :is(#today-task-list,#task-list) .checkin-button::before { content:""; position:absolute; z-index:-1; width:21px; height:21px; border:1.5px solid var(--control-border); border-radius:50%; }
:root :is(#today-task-list,#task-list) .checkin-button > span { opacity:0; font-size:1rem; }
:root :is(#today-task-list,#task-list) .checkin-button.is-pending::before { border-style:dashed; border-color:var(--warn); background:var(--warning-bg); }
:root :is(#today-task-list,#task-list) .checkin-button.is-done { color:var(--primary-ink); }
:root :is(#today-task-list,#task-list) .checkin-button.is-done::before { border-color:var(--success); background:var(--success); }
:root :is(#today-task-list,#task-list) .checkin-button.is-done > span { opacity:1; }
:root #task-list .library-task { padding-block:12px; }
:root #task-list .task-main h3 { font-weight:500; }
:root #task-list .task-project + .task-project { margin-top:20px; }
:root #project-list, :root #category-list, :root #completion-history { border:1px solid var(--line); border-radius:14px; }
:root .completed-row { border-bottom-style:solid; }
:root .completion-message { color:var(--success); }

:root .timer-card { background:var(--dark); border:1px solid var(--timer-border); color:var(--ink); padding:16px; border-radius:14px; }
:root .timer-card h2 { margin:7px 0 10px; font-size:1.0625rem; font-weight:600; }
:root :is(.timer-kicker,.timer-meta,.timer-caption,.timer-card > .micro) { color:var(--muted); font-size:.75rem; }
:root .live-dot { background:var(--success); }
:root .timer-display { color:var(--ink); font-size:2rem; font-weight:650; line-height:1.25; }
:root .timer-display span { color:var(--muted); font-size:1.5rem; }
:root .timer-actions { gap:8px; margin-top:12px; }
:root .timer-actions > .button { min-height:44px; padding:10px; font-size:.875rem; }
:root .timer-button { background:var(--primary); color:var(--primary-ink); }
:root .timer-complete { background:var(--card); border:0; color:var(--primary); }
:root .timer-correction { color:var(--primary); font-size:.8125rem; }
:root .timer-card :focus-visible { outline-color:var(--primary); }

:root .review-compact .page-heading { margin:7px 0 18px; }
:root .review-conclusions { margin:18px 0 24px; padding:4px 0 22px; border-bottom:1px solid var(--line); border-radius:0; background:transparent; }
:root .review-conclusions h2 { margin-bottom:12px; font-size:1.125rem; }
:root .review-saved-summary { margin:0 0 15px; font-size:1.375rem; font-weight:630; line-height:1.5; letter-spacing:-.02em; }
:root .review-saved-actions { padding-inline-start:20px; }
:root .review-saved-actions li { padding:5px 0; font-size:1rem; line-height:1.7; }
:root .review-saved-actions li::marker { color:var(--primary); }
:root .review-quota-row { padding:12px 0; gap:8px 10px; }
:root .review-quota-row h3 { font-size:.9375rem; font-weight:550; }
:root .review-quota-row > strong { font-size:.8125rem; }
:root .review-timeline { margin-top:25px; }
:root .review-hour-chart { height:80px; }
:root .chart-color-0 { color:#4179b5; } :root .chart-color-1 { color:#a87826; }
:root .chart-color-2 { color:#47826b; } :root .chart-color-3 { color:#8170a7; }
:root .chart-color-4 { color:#aa6977; } :root .chart-color-5 { color:#5b8697; }
:root .chart-color-6 { color:#b57e60; } :root .chart-color-7 { color:#758391; }
:root .settings-group { border:1px solid var(--line); border-radius:14px; margin-bottom:22px; }
:root #panel-settings .settings-section > summary { min-height:64px; padding:14px 16px; }
:root #panel-settings .settings-link { min-height:60px; padding:14px 16px; }
:root .navigation-page.is-navigation-open { background:var(--paper)!important; }
:root .secondary-heading { margin-bottom:18px; }
:root .editor-dialog { border:0; border-radius:18px; background:var(--card); color:var(--ink); box-shadow:0 14px 55px #24334b33; }
:root .editor-dialog::backdrop { background:#263a4c44; }
:root .bottom-nav { width:min(100%,600px); padding:7px 18px max(8px,env(safe-area-inset-bottom)); background:var(--paper); border-top:1px solid var(--line); backdrop-filter:none; }
:root .nav-item { gap:3px; min-height:44px; color:var(--muted); font-size:.6875rem; }
:root .nav-item.active, :root .nav-item.active .nav-icon { color:var(--primary); }

:root .morning-review-dialog { max-height:calc(100dvh - 32px); padding:20px 24px 12px; }
:root .morning-review-dialog .form-heading h2 { font-size:1.25rem; }
:root .morning-review-date { margin:2px 0 8px; font-size:.75rem; }
:root .morning-art, :root .morning-warm-art { width:125px; height:105px; margin:0 auto 10px; }
:root #morning-review-strength { font-size:1.375rem; font-weight:630; line-height:1.55; letter-spacing:-.015em; text-align:center; }
:root .morning-review-content .morning-review-progress { margin-top:20px; padding:14px; border-radius:12px; background:var(--soft); color:var(--ink); font-size:.875rem; font-weight:400; line-height:1.7; }
:root .morning-review-advice { justify-content:space-between; width:100%; margin-top:9px; font-size:.8125rem; }
:root .morning-review-actions { gap:4px; margin-top:16px; }
:root #morning-review-full { font-size:.8125rem; }
:root #celebration, :root #celebration[data-kind="effort"] { display:grid; grid-template-columns:48px minmax(0,1fr) 44px; align-items:start; gap:4px 9px; width:min(calc(100% - 24px),520px); padding:15px 12px 7px; background:var(--receipt); color:var(--ink); border:0; border-radius:16px; box-shadow:0 8px 35px #24334b2c; }
:root #celebration > .celebration-check, :root #celebration[data-kind="effort"] > .celebration-check { grid-column:1; grid-row:1; width:48px; height:54px; margin:0; background:none; border:0; border-radius:0; fill:none; stroke:none; }
:root #celebration > div, :root #celebration[data-kind="effort"] > div { grid-column:2; grid-row:1; padding-top:3px; min-width:0; }
:root #celebration strong { font-size:1rem; font-weight:650; line-height:1.5; overflow-wrap:anywhere; }
:root #celebration #celebration-copy { white-space:normal; overflow:visible; overflow-wrap:anywhere; font-size:.8125rem; line-height:1.6; margin-top:5px; }
:root #celebration #close-celebration { grid-column:3; grid-row:1; margin-top:-7px; }
:root #celebration-undo, :root #celebration-edit-time { grid-column:2/4; grid-row:2; justify-self:end; min-height:44px; padding:8px 2px; font-size:.8125rem; }
@media(hover:hover) and (pointer:fine) {
  :root #today-task-list .focus-button:hover, :root .topbar .icon-button:hover { background:var(--hover); }
  :root :is(#today-task-list,#task-list) .checkin-button:hover { background:var(--soft); }
  :root :is(#today-task-list,#task-list) .checkin-button:hover > span { opacity:.5; }
  :root :is(#today-task-list,#task-list) .checkin-button.is-done:hover > span { opacity:1; }
}
@media(max-width:430px) { .today-welcome > .warm-art { width:88px; height:78px; } }
@media(max-width:359px) {
  :root .shell { padding-inline:18px; }
  :root #category-progress { gap:9px; }
  :root #category-progress .category-progress-card { padding:11px 11px 12px; gap:9px; }
  :root #category-progress .category-progress-card h3 { font-size:.8125rem; }
  :root #category-progress .quota-icon { width:16px; height:16px; }
  :root #category-progress .category-progress-card p strong { font-size:1.5625rem; }
  :root #category-progress .category-progress-card p .quota-unit, :root #category-progress .category-progress-card p > span { font-size:.6875rem; }
  :root .today-welcome { gap:3px; }
  :root .today-welcome > .warm-art { width:70px; height:70px; }
  :root .today-encouragement { font-size:1.0625rem; }
  :root .today-summary { gap:2px 7px; font-size:.8125rem; }
  :root .quota-heading-actions { gap:4px; }
  :root .quota-heading-actions > .text-button { font-size:.8125rem; }
  :root #today-task-list .task-row { padding-inline:0; column-gap:4px; }
  :root .morning-review-dialog { padding-inline:21px; }
  :root #morning-review-strength { font-size:1.25rem; }
}
@media(prefers-color-scheme:dark) {
  :root {
    --paper:#151b24; --card:#202836; --ink:#edf2f8; --muted:#b4c1d1; --line:#364353;
    --primary:#9cc0ff; --primary-ink:#152c4e; --soft:#26364c; --track:#36465c;
    --field:#1d2735; --hover:#2c3b50; --dark:#202f44; --receipt:#292a28; --timer-border:#3b4f6a;
    --danger:#ffb4aa; --warning-bg:#372e1f; --warn:#efc984; --success:#9acdb9; --control-border:#73849a;
  }
  :root #category-progress .category-progress-card { --quota-tint:#233247; --quota-color:#9cbee6; --quota-track:#394c65; }
  :root #category-progress [data-quota-tone="1"] { --quota-tint:#352f24; --quota-color:#dfbd7f; --quota-track:#514632; }
  :root #category-progress [data-quota-tone="2"] { --quota-tint:#23382f; --quota-color:#9acdb9; --quota-track:#3d5147; }
  :root #category-progress [data-quota-tone="3"] { --quota-tint:#302c41; --quota-color:#c3b5e1; --quota-track:#484157; }
  :root .state-options span { border-color:var(--line); }
  :root .chart-color-0 { color:#9cbee6; } :root .chart-color-1 { color:#dfbd7f; }
  :root .chart-color-2 { color:#9acdb9; } :root .chart-color-3 { color:#c3b5e1; }
  :root .chart-color-4 { color:#dda7b2; } :root .chart-color-5 { color:#9bc2d0; }
  :root .chart-color-6 { color:#d9ac91; } :root .chart-color-7 { color:#b4c1d1; }
  :root .editor-dialog::backdrop { background:#080d1677; }
}

/* Keep the next setting separate from the two time fields. */
:root #review-settings-form .form-columns { margin-bottom:18px; }

:root #category-progress .category-reached { display:grid; place-items:center; flex:none; width:18px; height:18px; }
:root #category-progress .category-reached svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* First project and the path from budget to today's tasks. */
:root .first-project-card {
  margin-block:0 22px;
  padding:18px;
  border-radius:14px;
  background:var(--soft);
}
:root .first-project-card h2 { font-size:1.0625rem; line-height:1.5; }
:root .first-project-card p { margin-block:6px 14px; color:var(--muted); line-height:1.55; font-size:.875rem; }
:root .first-project-card .button { min-height:44px; }
:root .today-list-heading { flex-wrap:wrap; }
:root .today-list-heading h2 { overflow-wrap:anywhere; }
:root #today-all-projects { margin-block:0 5px; }
:root #category-progress .category-progress-card { position:relative; }
:root .budget-project-link {
  min-height:44px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:4px;
  width:100%;
  padding:0;
  border:0;
  background:none;
  color:inherit;
  font:inherit;
  text-align:start;
  cursor:pointer;
}
:root .budget-project-link::after { content:""; position:absolute; inset:0; border-radius:inherit; }
:root .budget-project-link > span:first-child { min-width:0; overflow-wrap:anywhere; }
:root .budget-project-link > .budget-filter-hint { flex:none; color:var(--quota-color); font-size:.8125rem; font-weight:500; }
:root .budget-project-link:focus-visible::after { outline:2px solid var(--primary); outline-offset:2px; border-radius:14px; }
:root #category-progress .budget-adjust-button { position:relative; z-index:1; min-height:44px; max-width:100%; padding:8px 0; background:transparent; color:var(--quota-color); font-size:.8125rem; font-weight:500; line-height:1.4; text-align:start; overflow-wrap:anywhere; text-decoration:underline; text-decoration-color:var(--quota-track); text-underline-offset:4px; }
:root #category-progress .budget-adjust-button:focus-visible { outline:2px solid var(--primary); outline-offset:3px; border-radius:4px; }
:root .project-budget-options { display:flex; flex-wrap:wrap; gap:6px; margin-block:8px; }
:root .project-budget-options > button {
  min-height:44px;
  padding-inline:9px;
  border:1px solid var(--line);
  background:var(--field);
  color:var(--primary);
}
:root .project-budget-options > button[aria-pressed="true"] { border-color:var(--primary); background:var(--primary); color:var(--primary-ink); }
:root .review-latest-records { margin-block-start:12px; }
:root .review-progress-text { white-space:pre-wrap; overflow-wrap:anywhere; margin-block-start:5px; line-height:1.55; }
:root .review-progress-detail { margin-block-start:5px; }
:root .review-progress-detail summary { overflow-wrap:anywhere; cursor:pointer; }
:root .review-progress-detail summary > span { color:var(--primary); text-decoration:underline; }
:root .review-progress-detail[open] summary { color:var(--muted); }
:root #records-details .section-title { flex-wrap:wrap; }
:root #category-progress .budget-accumulation { display:block; color:var(--ink); font-size:.75rem; line-height:1.5; overflow-wrap:anywhere; }
:root .task-context-options { display:flex; flex-wrap:wrap; gap:2px 14px; margin-block:4px 12px; }
:root .task-context-options > button { max-width:100%; min-height:44px; padding:6px 0; font-size:.875rem; text-align:start; overflow-wrap:anywhere; }
:root .new-repeat-options { display:flex; flex-wrap:wrap; gap:6px; margin-block:4px 16px; }
:root .new-repeat-options > button { min-height:44px; padding-inline:12px; border:1px solid var(--line); background:var(--field); color:var(--primary); }
:root .new-repeat-options > button[aria-pressed="true"] { background:var(--primary); color:var(--primary-ink); border-color:var(--primary); }
:root #celebration-add-progress { grid-column:2/4; grid-row:2; justify-self:start; min-height:44px; font-size:.8125rem; padding:8px 2px; }
:root #celebration-add-progress[aria-disabled="true"] { opacity:.45; cursor:wait; }
:root .review-project { padding-block:22px; border-bottom:1px solid var(--line); }
:root .review-project > h3 { font-size:1.125rem; font-weight:650; margin:0 0 8px; overflow-wrap:anywhere; }
:root .review-project-total { margin:0; font-size:1rem; font-weight:550; font-variant-numeric:tabular-nums; }
:root .review-project .review-quota-list { margin-top:12px; }
:root .review-project .review-quota-row h4 { margin:0; font-size:.875rem; font-weight:500; }
:root .review-project .review-fact-list { margin-block:8px 0; }
:root .review-project .review-fact-list > li { padding-block:10px; }
:root .review-project .review-project-label { margin:18px 0 0; font-size:.875rem; font-weight:600; color:var(--ink); }
:root .review-project .review-progress-text { font-size:.9375rem; }
:root .review-project:last-child { border-bottom:0; }
:root #morning-review-strength { text-wrap:balance; }

/* Review refinement: one conclusion, next actions, then supporting records. */
:root .review-period-navigation { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:0 0 4px; }
:root .review-period-navigation .text-button { min-height:44px; font-size:.875rem; padding:8px 0; }
:root #task-comments-fold #task-comment-form { padding-bottom:20px; }
:root .review-compact .review-toolbar { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); align-items:center; gap:12px; }
:root .review-compact .review-toolbar .segmented { display:flex; width:100%; min-width:0; }
:root .review-compact .review-toolbar .segmented > button { flex:1; min-width:0; padding:9px 8px; }
:root .review-compact .review-toolbar input[type="date"] { width:100%; min-width:0; max-width:100%; margin:0; padding:10px 8px; }
:root .review-compact .period-note { margin:10px 0 0; }
:root .review-source-note { margin:8px 0 0; line-height:1.5; }
:root .review-conclusions { margin:22px 0 0; padding:0 0 24px; }
:root .review-conclusions h2 { margin:0 0 10px; font-size:1rem; font-weight:650; }
:root .review-saved-summary { margin:0; font-size:1.0625rem; font-weight:400; line-height:1.65; letter-spacing:0; overflow-wrap:anywhere; }
:root .review-saved-summary strong, :root .review-action-preview strong, :root #review-action-full strong { font-weight:700; color:var(--ink); }
:root .review-next { margin-top:20px; }
:root .review-next h3 { margin:0 0 4px; font-size:1rem; font-weight:650; }
:root .review-saved-actions { margin:0; padding-inline-start:20px; }
:root .review-saved-actions li { padding:6px 0; font-size:1rem; font-weight:400; line-height:1.65; }
:root .review-action-more { min-height:44px; padding:8px 0; font-size:.875rem; }
:root .review-observations { margin-top:12px; border:0; }
:root .review-observations > summary { min-height:44px!important; padding:8px 0; font-size:.875rem; }
:root .review-observations > ul { margin:4px 0 0; padding-inline-start:20px; }
:root .review-observations li { padding-block:5px; font-size:.9375rem; line-height:1.65; }
:root .review-generation-status { margin-top:12px; }
:root .review-latest-records { display:flex; flex-wrap:wrap; align-items:center; column-gap:12px; margin-top:12px; }
:root .review-latest-records .text-button { min-height:44px; padding:8px 0; }
:root .review-projects { margin-top:24px; }
:root .review-projects > .section-title { min-height:0; margin-bottom:2px; }
:root .review-projects > .section-title h2 { font-size:1rem; }
:root .review-project { padding-block:18px; }
:root .review-project > h3 { font-size:1rem; margin-bottom:8px; }
:root .review-project-total { font-size:.9375rem; font-weight:400; }
:root .review-project .review-quota-list { margin-top:0; }
:root .review-project .review-quota-row { padding:8px 0 6px; border-bottom:0; gap:6px 10px; }
:root .review-project .review-quota-row > strong { font-size:.9375rem; font-weight:600; max-width:10rem; }
:root .review-project .review-fact-list > li:last-child { border-bottom:0; }
:root .review-project .review-project-label { margin-top:16px; color:var(--muted); font-size:.8125rem; font-weight:500; }
:root .review-project .review-fact-list { margin-top:2px; }
:root .review-project .review-fact-list > li { padding-block:8px; }
:root .review-project .review-fact-list > li > strong { font-size:.8125rem; font-weight:500; }
:root .review-project .review-fact-list > li > div > strong { font-size:.9375rem; font-weight:500; }
:root #review-action-full { font-size:1rem; font-weight:400; line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; }
:root #records-details .section-title { display:flex; align-items:flex-start; flex-wrap:nowrap; gap:12px; }
:root #records-details .section-title > div:first-child { flex:1; min-width:0; }
:root #records-details .record-toolbar { width:auto; gap:8px; }
:root #records-details #records-scope { line-height:1.6; }
@media(max-width:359px) {
  :root .review-compact .review-toolbar { gap:8px; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); }
  :root .review-compact .review-toolbar .segmented > button { padding-inline:5px; font-size:.875rem; }
}

/* Task refinement: direct filters and a single save action after task content. */
:root .library-search-tools { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr); align-items:center; gap:8px; margin:8px 0 4px; }
:root .library-filter-control { display:block; flex:1; min-width:0; margin:0; }
:root .library-filter-control select { width:100%; min-width:0; min-height:44px; margin:0; padding:10px 22px 10px 8px; font-size:1rem; background-color:var(--field); }
:root .library-search-tools > #toggle-batch-tasks { position:static; min-width:44px; min-height:44px; padding:8px 0; font-size:.875rem; }
:root .library-filter-summary { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:0 12px; min-height:36px; margin-bottom:12px; }
:root .library-filter-summary .list-note { margin:0; }
:root .library-filter-summary > #clear-task-view { width:auto; min-height:44px; padding:8px 0; }
:root .library-date-input { width:100%; margin:0 0 14px; }
:root #task-editor .form-details { margin-top:0; }
:root #task-editor { scroll-padding-top:82px; scroll-padding-bottom:88px; }
:root #task-editor .form-heading { position:sticky; top:0; z-index:3; margin-bottom:4px; padding-bottom:12px; background:var(--card); }
:root #task-editor .form-heading::before { content:""; position:absolute; z-index:-1; inset:-22px -22px 0; background:var(--card); }
:root #task-editor .form-details > summary { min-height:52px; font-size:1rem; font-weight:400; }
:root #task-editor .form-details > summary .option-summary { margin-left:auto; font-size:.875rem; color:var(--muted); }
:root #task-editor .task-note-editor { padding:0 0 12px; }
:root #task-editor .notes-always-open { border-top:0; }
:root #task-editor .notes-always-open .task-note-editor > label { display:block; margin:18px 0 8px; font-size:1rem; font-weight:600; }
:root #task-editor #edit-notes { font-size:1rem; line-height:1.6; margin:0; }
:root #task-editor .task-discussion { margin:0; padding:0; border:0; }
:root .task-detail-utilities { margin:0; }
:root #task-editor .task-utility-row { width:100%; min-height:52px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border:0; border-top:1px solid var(--line); background:transparent; color:var(--ink); font-size:1rem; font-weight:400; text-align:start; }
:root #task-editor .task-utility-row > span { color:var(--muted); font-size:1.25rem; }
:root .task-editor-footer { position:sticky; bottom:-20px; z-index:1; padding:16px 0 max(16px,env(safe-area-inset-bottom)); background:var(--paper); border-top:1px solid var(--line); margin-top:4px; }
:root .task-editor-footer .button { margin:0; }
:root #task-actions-dialog { height:fit-content; min-height:0; max-height:min(70dvh,440px); }
:root #task-actions-dialog .form-heading { margin-bottom:12px; }
:root .editor-task-actions { display:flex; flex-direction:column; align-items:stretch; gap:0; margin:0; }
:root .editor-task-actions > .text-button { width:100%; min-height:52px; padding:14px 0; font-size:1rem; line-height:1.5; font-weight:400; text-align:start; border-top:1px solid var(--line); border-radius:0; margin:0; }
:root .editor-task-actions > .danger { color:var(--danger); }
:root .project-editor-actions { margin-top:12px; padding-top:4px; border-top:1px solid var(--line); }
:root .project-editor-actions > button { min-height:48px; font-size:1rem; padding-inline:0; }
/* Direct task choices: keep common rules beside the task, without a second page. */
:root #edit-schedule-fields { grid-template-columns:1fr; }
:root #edit-repeat-choices > label { display:block; margin-block:16px 8px; font-size:1rem; font-weight:600; }
:root #edit-new-repeat { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-block:0 10px; }
:root #edit-new-repeat > button { min-height:44px; padding-inline:6px; font-size:.9375rem; }
:root #edit-repeat-extra { margin-block:0 12px; }
:root #task-editor #edit-recurrence-fields { padding:0; border:0; background:none; margin-block:8px 16px; }
:root #edit-weekdays { padding:0; margin:12px 0; border:0; min-width:0; container-type:inline-size; }
:root #edit-weekdays legend { margin-bottom:8px; font-size:1rem; font-weight:600; }
:root #edit-weekdays .weekday-options { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
:root #edit-weekdays .weekday-options label { display:block; min-width:44px; min-height:44px; margin:0; padding:0; border:0; background:none; cursor:pointer; }
:root #edit-weekdays .weekday-options input { position:absolute; width:1px!important; height:1px!important; opacity:0; }
:root #edit-weekdays .weekday-options span { display:flex; align-items:center; justify-content:center; min-height:44px; font-size:1rem; border:1px solid var(--line); border-radius:10px; background:var(--field); color:var(--ink); }
:root #edit-weekdays .weekday-options input:checked + span { background:var(--primary); border-color:var(--primary); color:var(--primary-ink); font-weight:600; }
:root #edit-weekdays .weekday-options input:focus-visible + span { outline:2px solid var(--primary); outline-offset:3px; }
@container (min-width:344px) {
  :root #edit-weekdays .weekday-options { grid-template-columns:repeat(7,minmax(0,1fr)); }
}
:root #edit-rule-details > summary { color:var(--muted); }
:root #edit-rule-details[open] { padding-bottom:12px; }
@media(max-width:359px) {
  :root .library-search-tools { gap:6px; }
  :root .library-filter-control select { padding-left:6px; }
}
/* DATE_PICKER_COMPONENT_START */
:root #date-picker-dialog { box-sizing:border-box; width:min(100vw,380px); max-width:100vw; height:fit-content; min-height:0; max-height:calc(100dvh - 16px); margin:auto; padding:16px clamp(6px,calc(33.333vw - 100.666px),20px) 8px; overflow:auto; }
:root .date-picker-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; padding-inline:4px; margin-bottom:8px; }
:root .date-picker-heading h2 { font-size:1.125rem; overflow-wrap:anywhere; }
:root .date-picker-navigation { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; gap:8px; margin-bottom:8px; }
:root #date-picker-dialog .icon-button { width:44px; height:44px; min-width:44px; min-height:44px; flex:none; border-radius:12px; }
:root .date-picker-jump { display:flex; align-items:center; justify-content:center; gap:6px; min-width:0; }
:root #date-picker-dialog .date-picker-jump input, :root #date-picker-dialog .date-picker-jump select { width:88px; min-width:0; min-height:44px; margin:0; padding:8px; font-size:1rem; color:var(--ink); background:var(--field); border:1px solid var(--line); border-radius:10px; }
:root #date-picker-dialog .date-picker-jump input { appearance:textfield; font-variant-numeric:tabular-nums; }
:root #date-picker-dialog .date-picker-jump input::-webkit-inner-spin-button, :root #date-picker-dialog .date-picker-jump input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
:root .date-picker-grid { width:100%; table-layout:fixed; border-collapse:collapse; border:0; margin:0; }
:root .date-picker-grid th { height:32px; padding:0; color:var(--muted); font-size:.8125rem; font-weight:400; text-align:center; }
:root .date-picker-grid abbr { text-decoration:none; }
:root .date-picker-grid td { padding:0; border:0; text-align:center; }
:root .date-picker-day { position:relative; display:block; width:100%; min-height:44px; padding:8px 0; border:0; border-radius:12px; background:transparent; color:var(--ink); font-size:1rem; line-height:1.5; font-variant-numeric:tabular-nums; }
:root .date-picker-day.is-outside-month { color:var(--muted); }
:root .date-picker-day[aria-current="date"] { font-weight:700; }
:root .date-picker-day.is-selected { color:var(--primary-ink); background:var(--primary); box-shadow:inset 0 0 0 2px var(--primary); font-weight:700; }
:root .date-picker-today-dot { position:absolute; width:4px; height:4px; border-radius:50%; background:currentColor; bottom:4px; left:calc(50% - 2px); pointer-events:none; }
:root .date-picker-day:focus-visible { outline:2px solid var(--primary); outline-offset:-2px; }
:root .date-picker-day.is-selected:focus-visible { outline-color:var(--primary-ink); outline-offset:-4px; }
:root .date-picker-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px; padding-inline:8px; border-top:1px solid var(--line); }
:root .date-picker-footer .text-button { min-width:44px; min-height:44px; font-size:.9375rem; }
:root #date-picker-today { margin-left:auto; }
@media(hover:hover) { :root .date-picker-day:not(:disabled):not(.is-selected):hover { background:var(--hover); } }
@media(forced-colors:active) { :root .date-picker-day.is-selected { border:2px solid Highlight; } :root .date-picker-day:focus-visible { outline-color:Highlight; } }
/* DATE_PICKER_COMPONENT_END */

/* Group review outcomes, supporting time, and record maintenance visibly. */
:root #panel-review .review-conclusions {
  margin:20px 0;
  padding:18px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--receipt);
}
:root #analytics-result > .review-facts {
  margin:20px 0;
  padding:18px 16px 2px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--card);
}
:root #analytics-result > .review-facts > .section-title { margin:0 0 12px; }
:root #analytics-result > .review-facts > .micro { margin-bottom:16px; }
:root #panel-review .review-timeline {
  margin:20px 0;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--field);
}
:root #panel-review .review-timeline > summary {
  min-height:64px;
  padding:16px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:6px 12px;
}
:root #panel-review .review-timeline > summary small {
  grid-column:1;
  margin:0;
  text-align:left;
  color:var(--muted);
  font-size:.8125rem;
}
:root #panel-review .review-timeline > summary::after { grid-column:2; grid-row:1 / 3; }
:root #panel-review .review-timeline-body { padding:0 16px 16px; }
:root #records-details:not(.is-navigation-open) {
  margin:20px 0;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--field);
}
:root #records-details:not(.is-navigation-open) > summary {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:8px;
  min-height:64px;
  padding:16px;
  font-size:1rem;
  font-weight:600;
}
:root #records-details > summary .navigation-value { margin:0; }

:root #category-progress .budget-meter { display:flex; gap:8px; align-items:center; }
:root #category-progress .budget-meter progress { flex:1; min-width:0; width:auto; }
:root #category-progress .budget-percent { flex:none; color:var(--quota-color); font-size:.8125rem; font-weight:600; font-variant-numeric:tabular-nums; }

/* Keep long weekly durations from squeezing the budget status into fragments. */
:root #panel-review .review-quota-row { grid-template-columns:minmax(0,1fr); }
:root #panel-review .review-quota-row > div { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
:root #panel-review .review-quota-row > div > :is(h3,h4) { min-width:0; }
:root #panel-review .review-quota-row > div > span { flex:none; white-space:nowrap; }
:root #panel-review .review-quota-row > strong { max-width:none; text-align:start; }

/* Selecting tasks is one action, with the same readable title as browsing. */
:root #task-list .is-selecting .batch-task-choice {
  display:grid; grid-template-columns:24px minmax(0,1fr); align-items:center;
  gap:12px; min-height:52px; margin:0; color:var(--ink); font-size:1rem; cursor:pointer;
}
:root #task-list .is-selecting .batch-task-choice > span { line-height:1.5; overflow-wrap:anywhere; }
:root #task-list .is-selecting .batch-task-choice small {
  display:block; margin-top:4px; color:var(--muted); font-size:.8125rem; font-weight:400;
}

/* Invitation beta, account preferences and guided first session. */
.beta-stack { display:grid; gap:12px; }
.beta-card { min-width:0; margin-block:16px; border:1px solid var(--line); border-radius:14px; background:var(--card); padding:16px; overflow-wrap:anywhere; }
.beta-card h2, .beta-dialog h2 { font-size:1.1rem; line-height:1.35; }
.beta-login-language { max-inline-size:16rem; }
.beta-login-help { display:flex; flex-wrap:wrap; gap:4px 20px; border-top:1px solid var(--line); padding-top:8px; }
.beta-login-help .text-button { min-height:44px; font-size:14px; }
.beta-info { line-height:1.6; }
.beta-info > section { gap:4px; }
.beta-info p { font-size:16px; line-height:1.65; }
.beta-info textarea { font-size:14px; }
#beta-login .button { margin-block-start:4px; }
.beta-field { display:grid; gap:6px; min-width:0; font-weight:550; }
.beta-field input, .beta-field textarea, .beta-field select { font-weight:400; }
.beta-checkbox { display:flex; align-items:center; gap:10px; min-height:44px; }
.beta-checkbox input { inline-size:1.15rem; block-size:1.15rem; min-height:0; flex:none; }
.beta-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.beta-actions .button { width:auto; max-inline-size:100%; flex:1 1 auto; margin:0; }
.beta-stack .text-button { justify-self:start; min-height:44px; }
.beta-dialog { max-inline-size:38rem; }
.beta-dialog > .beta-stack { margin-block-start:14px; }
.beta-dialog .beta-stack > .button { margin-block:0; }
.beta-metrics { display:grid; gap:0; margin:0; }
.beta-metrics > div { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:baseline; column-gap:12px; padding-block:7px; border-block-end:1px solid var(--line); }
.beta-metrics dd { margin:0; text-align:end; font-variant-numeric:tabular-nums; }
.beta-account-row { border:1px solid var(--line); border-radius:10px; padding:10px; }
.beta-account-row summary { cursor:pointer; overflow-wrap:anywhere; }
.beta-account-row .beta-metrics { margin-block-start:7px; }
.beta-feedback-note { margin-block:8px; white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:380px) {
  .beta-account-row .beta-metrics > div { grid-template-columns:minmax(0,1fr); }
  .beta-account-row .beta-metrics dd { text-align:start; }
}
