*{box-sizing:border-box}html,body{margin:0;height:100%;color:#434343;font:13px -apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;background:#fff}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}button:disabled{opacity:.42;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input,textarea,select{border:1px solid #dedede;border-radius:5px;background:var(--surface);padding:8px}input[type=checkbox]{accent-color:var(--accent)}textarea{resize:vertical}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}#app{--accent:#9dc134;--pale:#e2ecc6;--surface:#fff;--soft:#f7f7f7;--border:#ececec;height:100dvh;min-height:620px;display:grid;grid-template-columns:54px 1fr;position:relative;background:var(--surface);overflow:hidden}.traffic{position:absolute;top:9px;left:9px;display:flex;gap:6px;z-index:3}.traffic span{width:12px;height:12px;border-radius:50%;background:#ddd}#rail{margin:32px 4px 5px 5px;border:1px solid var(--border);border-radius:5px;display:flex;align-items:center;flex-direction:column;padding:76px 0 18px;gap:21px;z-index:2;background:var(--surface)}#rail button{display:grid;place-items:center;width:38px;height:29px;position:relative;color:#555}#rail button[aria-current=page]:after{content:'';position:absolute;width:4px;height:4px;border-radius:50%;background:var(--accent);bottom:-4px}#rail .rail-bottom{margin-top:auto;display:grid;gap:18px}#rail .distract-icon{font-size:21px;color:#727272}#workspace{min-width:0;min-height:0;position:relative}.split{height:100%;display:grid;grid-template-columns:1fr 1fr}.timer-pane{position:relative;min-width:0;overflow:hidden}.timer-pane.full{grid-column:1/-1}.corner{position:absolute;top:38px;border:1px solid #ddd;border-radius:4px;height:30px;width:30px;display:grid;place-items:center;color:#777}.corner.left{left:23px}.corner.right{right:24px}.corner svg{width:16px}.intention-area{position:absolute;top:43px;left:64px;right:64px;text-align:center}.category-pill{height:25px;max-width:100%;padding:2px 13px;border:2px solid #e4e4e4;border-radius:20px;font-weight:600;font-size:12px;display:inline-flex;align-items:center;gap:9px;background:var(--surface)}.dot{height:6px;width:6px;border-radius:50%;display:inline-block;flex:none;background:var(--accent)}.category-pill svg{width:12px;color:#b7b7b7}.intention-title{font-size:21px;font-weight:500;line-height:1.3;margin:8px 0 4px;word-break:break-word}.edit-link{text-decoration:underline;color:#6b6b6b;font-size:10px;padding:2px}.timer-anchor{position:absolute;left:50%;top:49%;width:214px;height:214px;transform:translate(-50%,-50%);text-align:center}.dial{height:214px;width:214px;position:relative;touch-action:none;cursor:ew-resize}.dial svg{width:100%;height:100%;overflow:visible;stroke:none}.dial-ticks{stroke:#ddd;stroke-width:2}.dial-ticks.major{stroke:#999;stroke-width:2}.dial-disc{position:absolute;width:138px;height:138px;left:38px;top:38px;border-radius:50%;background:var(--pale);overflow:hidden}.dial-hand{position:absolute;left:104px;top:106px;width:6px;height:96px;transform-origin:3px 0;border-radius:4px;background:var(--accent);box-shadow:0 5px 8px #0002}.dial-pin{position:absolute;left:91px;top:91px;width:33px;height:33px;background:#fafafa;border:5px solid #ffffffbf;border-radius:50%;box-shadow:0 4px 7px #0003}.timer-value{font-size:22px;color:#999;font-variant-numeric:tabular-nums;margin-top:11px;line-height:1.3}.time-adjust{display:flex;align-items:center;justify-content:center;gap:38px;margin-top:4px;white-space:nowrap}.round-small{border-radius:50%;background:#eee;color:#999;min-width:35px;height:35px;display:grid;place-items:center}.round-small svg{width:16px}.time-pill{font-size:10px;line-height:18px;border:2px solid #ddd;border-radius:20px;white-space:nowrap;padding:0 9px;font-weight:600;background:var(--surface);display:flex;align-items:center;gap:5px}.time-pill svg{width:10px;height:10px;color:#aaa}.timer-controls{position:absolute;bottom:7%;left:50%;transform:translateX(-50%);display:flex;gap:13px;align-items:center}.circle{width:50px;height:50px;border-radius:50%;background:var(--pale);color:var(--accent);display:grid;place-items:center}.circle.primary{width:58px;height:58px}.circle svg{width:25px;height:25px}.circle.primary svg{width:30px;height:30px}.idle-form{position:absolute;top:44px;left:12%;right:12%;text-align:center}.intention-input{border:0;border-bottom:1px solid #eee;border-radius:0;font-size:21px;text-align:center;width:100%;margin-top:12px;padding:8px 0;background:transparent}.suggestions{display:grid;text-align:left;max-height:135px;overflow:auto;margin:8px 0}.suggestions button{text-align:left;padding:7px;border-radius:4px}.suggestions button:hover{background:var(--soft)}.start-button{border-radius:25px;background:var(--accent);color:var(--on-accent,#fff);padding:11px 40px;font-weight:600}.calendar-pane{border-left:1px solid var(--border);min-width:0;position:relative;display:flex;flex-direction:column;min-height:0}.calendar-header{height:144px;flex:none;display:grid;justify-items:center;align-content:start;padding-top:38px;gap:9px;border-bottom:1px solid #e6e6e6}.date-navigation{display:flex;gap:3px;align-items:center}.tiny-square{height:30px;min-width:30px;border:1px solid #ddd;border-radius:4px;display:grid;place-items:center}.tiny-square svg{height:14px;width:14px}.date-title{height:30px;border:1px solid #ddd;border-radius:4px;min-width:182px;font-size:14px;padding:2px 12px}.week-strip{display:flex;gap:2px}.day-cell{width:42px;text-align:center;padding:0;display:grid;gap:2px}.day-box{height:42px;background:#eee;border:1px solid #dedede;border-radius:4px;display:flex;flex-direction:column;justify-content:center;position:relative}.day-box small{font-size:8px;color:#888}.day-box strong{font-size:14px;color:#888;font-weight:600}.day-cell[aria-pressed=true] .day-box{background:#fff}.day-cell[aria-pressed=true] .day-box:after{content:'';position:absolute;bottom:3px;left:19px;width:3px;height:3px;border-radius:50%;background:var(--accent)}.day-total{font-size:9px;font-weight:600;color:#777}.day-summary{height:27px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid #eee;font-size:10px;font-weight:600;color:#777;gap:7px}.brush{height:25px;flex:none;padding:9px 7% 8px 11%;display:flex}.brush-track{width:100%;display:flex;background:#f4f4f4;border-radius:9px;overflow:hidden}.brush-track span{height:7px;border-radius:4px}.calendar-scroll{position:relative;overflow:auto;flex:1;scrollbar-width:none}.timeline{height:5760px;position:relative;--cal-l:46px;--cal-r:8px;--cal-gap:6px;--cal-half:calc((100% - var(--cal-l) - var(--cal-r) + var(--cal-gap)) / 2)}.hour-line{position:absolute;left:0;right:0;height:1px;background:#f0f0f0}.hour-line.half{left:0;width:15px;background:#f0f0f0}.hour-label{position:absolute;top:-4px;left:6px;background:#fff;color:#888;font-size:10px;font-weight:600}.event{position:absolute;--ev-l:52%;--ev-r:6.5%;left:var(--ev-l);right:var(--ev-r);min-height:13px;border-radius:3px;color:var(--on-event,#fff);text-align:left;padding:4px 6px;overflow:hidden;font-weight:600;font-size:12px;line-height:1.18;cursor:pointer;border:1px solid #fff7}.event small{display:block;font-size:10px}.event .event-title{display:block}.event .event-category{font-size:10px}.event .event-duration{position:absolute;right:5px;bottom:3px;font-size:10px}.event.active{background:repeating-linear-gradient(135deg,#ffffff25 0 5px,transparent 5px 10px),var(--event-color)}.event.saved{background:var(--event-color)}.event.break{background:#919191;color:var(--on-event,#fff);padding:0 5px;font-size:10px}.event-resize{position:absolute;bottom:0;height:7px;left:0;right:0;cursor:ns-resize}.event,.cal-event{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.event.held,.cal-event.held,.plan-block.held{z-index:6;box-shadow:0 6px 18px #0006;filter:brightness(1.06)}.now-line{position:absolute;height:1px;background:#ff3b3f;left:0;right:0;z-index:3;pointer-events:none}.now-line span{position:absolute;left:3px;top:-8px;background:#ff3b3f;border-radius:3px;color:#fff;font-size:11px;font-weight:600;padding:2px 4px}.calendar-bottom{position:absolute;bottom:24px;left:0;right:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.view-toggle{display:flex;background:#252525;border-radius:28px;padding:9px 15px;gap:7px;pointer-events:auto}.view-toggle button{color:#aaa;position:relative;width:27px;height:24px;padding:2px;display:grid;place-items:center}.view-toggle button[aria-pressed=true]{color:#fff}.view-toggle button[aria-pressed=true]:after{position:absolute;content:'';width:3px;height:3px;border-radius:50%;background:#fff;bottom:-5px}.add-circle{position:absolute;right:24px;width:49px;height:49px;border-radius:50%;background:var(--accent);color:var(--on-accent,#fff);display:grid;place-items:center;pointer-events:auto}.add-circle svg{height:30px;width:30px}.notes-pane{height:100%;display:flex;flex-direction:column;padding-bottom:60px}.notes-pane h2{font-size:16px;font-weight:500;margin:33px 20px 10px}.notes-input{margin:0 14px;flex:none;height:42%;border:1px solid #e2e2e2;background:#f8f8f8;resize:none;font-size:12px;padding:12px;color:#555}.notes-filter{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid var(--border);padding:8px 14px;font-size:10px;color:#888}.notes-filter label{background:#eee;border:1px solid #ddd;border-radius:15px;padding:1px 5px;white-space:nowrap}.notes-list{overflow:auto;padding:20px 15px;flex:1}.record-row{display:grid;grid-template-columns:12px minmax(0,1fr) minmax(80px,1fr) minmax(0,1.4fr) 20px;gap:9px;padding:16px 0;position:relative;align-items:start;font-size:10px;cursor:pointer}.record-row strong{font-size:11px;line-height:1.4}.record-row .color-bar{width:3px;background:var(--event-color);height:45px;position:absolute;left:18px;border-radius:3px}.record-row .record-title{padding-left:12px}.record-row p{margin:4px 0;color:#888;overflow-wrap:anywhere}.record-row .tag{border:2px solid #eee;border-radius:14px;padding:1px 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.record-row .length{text-align:right;font-weight:600;margin-top:5px}.mini-bar{position:absolute;bottom:0;left:0;right:0;border-top:3px solid var(--pale);height:55px;background:var(--surface);z-index:4;display:flex;align-items:center;padding:6px 18px;gap:14px;font-size:11px}.mini-bar .mini-detail{flex:1}.mini-detail small{display:block;margin-top:4px;color:#888}.mini-bar .circle{width:33px;height:33px}.mini-bar .circle svg{width:20px;height:20px}.has-mini{padding-bottom:55px;height:100%}.todo-pane{padding:38px 12px 20px;overflow:auto}.todo-status{padding:10px;text-align:center;background:#454545;color:white;border-radius:3px;font-size:10px;font-weight:600}.segmented{display:flex;background:#ececec;border:1px solid #e2e2e2;padding:2px;border-radius:4px;width:max-content;margin:10px auto}.segmented button{padding:3px 22px;font-size:11px;border-radius:3px}.segmented button.active{background:#fff}.empty-todo{text-align:center;padding:75px 15px}.empty-todo svg{width:85px;height:85px;color:#eee;stroke-width:1.5;margin-bottom:20px}.empty-todo p{font-size:11px;color:#888}.empty-todo button{margin-top:28px;min-width:240px;background:var(--accent);color:var(--on-accent,#fff);border-radius:20px;padding:11px}.todo-row{border:1px solid #ddd;border-radius:6px;padding:12px;display:flex;gap:9px;align-items:center;margin:14px 0}
/* FCF-600: the title column may shrink and a long word or link wraps, so one Todo never makes the list wider than the screen */
.todo-row>div{min-width:0}.todo-row strong,.todo-row .todo-rest,.todo-row .todo-meta{overflow-wrap:anywhere}
/* FCF-644: 📌 time + ⏱ 🤖 ✏️ ▶ are one group. When the title would get narrower than 180 px (a phone) the group drops to its own line, right-aligned, so the title keeps the width of the card; with room (Mac, iPad) it stays on the title's line. */
.todo-row{flex-wrap:wrap;row-gap:2px}.todo-main{flex:1 1 180px}.todo-actions{display:flex;align-items:center;gap:9px;flex:none;margin-left:auto}.todo-row input[type=text]{border:0;flex:1;min-width:20px}.todo-row.done{text-decoration:line-through;opacity:.5}.todo-meta{font-size:10px;color:#999;margin-top:5px}.reports{height:100%;background:#f8f8f8;display:flex;flex-direction:column}.report-header{flex:none;display:grid;justify-content:center;padding-top:28px}.report-header .calendar-header{border:0;height:120px;padding-top:0}.report-filter{display:flex;gap:10px;align-items:center;justify-content:flex-end;border-top:1px solid #eee;border-bottom:1px solid #e4e4e4;padding:5px 15px;font-size:10px}.report-grid{display:grid;grid-template-columns:1fr 1fr;min-height:0;flex:1}.report-stats,.report-records{overflow:auto;padding:10px}.report-stats{border-right:1px solid #ddd}.stats-box{padding:20px;background:#fff;border:1px solid #eee;border-radius:5px;margin-bottom:10px}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px 12px;text-align:center}.metric-grid strong{display:block;font-size:17px;font-weight:500}.metric-grid small{font-size:8px;color:#777;text-transform:uppercase}.quality-grid{display:flex;justify-content:space-around}.quality-grid label{text-align:center;font-size:11px}.quality-grid small{display:block;margin-top:5px}.distribution-row{padding:15px 0;border-bottom:1px solid #ddd;position:relative;font-size:10px;display:flex;gap:12px;justify-content:space-between}.distribution-row .progress{height:3px;position:absolute;left:0;bottom:-1px;background:var(--event-color)}.report-records{padding:20px;background:#fafafa}.report-records h3{font-size:12px;margin:5px 0 18px}.report-records article{background:white;border:1px solid #eee;border-radius:5px;padding:10px}.settings{display:grid;grid-template-columns:260px 1fr;background:#f8f8f8;height:100%}.settings-nav{border-right:1px solid #e2e2e2;padding:38px 10px 14px;overflow:auto}.settings-nav .setting-link{padding:12px 10px;display:flex;width:100%;align-items:center;gap:10px;text-align:left;background:#fff;border-bottom:1px solid #eee;font-size:13px}.setting-link.active{background:var(--accent);color:var(--on-accent,#fff)}.setting-link svg{height:18px;width:18px}.setting-link .chevron{margin-left:auto;font-size:16px}.settings-body{padding:50px 20px;overflow:auto}.settings-inner{max-width:460px;margin:auto}.settings-inner h3{font-size:12px;color:#999;font-weight:400;margin:36px 10px 7px}.settings-inner h3:first-child{margin-top:0}.setting-row{background:#fff;min-height:43px;border:1px solid #eee;border-bottom:0;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px}.setting-row:last-child{border-bottom:1px solid #eee}.setting-row select{max-width:190px;font-size:11px;padding:3px;background:#eee;border:0}.setting-row input[type=number]{width:68px;padding:4px;text-align:right}.switch{appearance:none;width:36px!important;height:20px;background:#ddd;border:0;border-radius:15px;padding:0;position:relative;cursor:pointer;flex:none}.switch:checked{background:var(--accent)}.switch:after{content:'';position:absolute;top:2px;left:2px;width:16px;height:16px;background:#fff;border-radius:50%}.switch:checked:after{left:18px}.muted{color:#999;font-size:11px;line-height:1.6}.settings-note{font-size:11px;color:#6b6b6b;line-height:1.6;padding:8px}.keycaps{display:inline-flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}kbd.cap{min-width:22px;height:22px;padding:0 6px;display:inline-grid;place-items:center;border-radius:5px;background:#f2f2f2;border:1px solid #d4d4d4;box-shadow:0 1px 0 #d4d4d4;color:#333;font:600 11px -apple-system,BlinkMacSystemFont,sans-serif}.hotkey-label{display:flex;flex-direction:column;gap:3px}.hotkey-label small{color:#6b6b6b;font-size:11px;line-height:1.4}.hotkey-bad{color:#b3261e!important;font-size:11px}.hotkey-pill{display:inline-flex;align-items:center;gap:2px;flex:0 0 auto;border:1px solid #d4d4d4;border-radius:999px;background:#f7f7f7;padding:2px}.hotkey-pill button{background:none;border:0;padding:2px 4px;cursor:pointer;color:#333;display:inline-flex;align-items:center}.hotkey-pill .hotkey-clear{width:18px;height:18px;border-radius:50%;background:#dadada;color:#333;font:700 12px/1 -apple-system,sans-serif;padding:0;justify-content:center;margin-right:2px}.hotkey-pill.recording{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}.hotkey-wait{color:#555;font-size:11px;padding:3px 6px}body.dark kbd.cap{background:#333;border-color:#4a4a4a;box-shadow:0 1px 0 #4a4a4a;color:#eee}body.dark .hotkey-pill{background:#2b2b2b;border-color:#4a4a4a}body.dark .hotkey-pill button{background:none;color:#eee}body.dark .hotkey-pill .hotkey-clear{background:#555;color:#eee}body.dark .hotkey-wait{color:#bbb}body.dark .hotkey-label small{color:#a8a8a8}body.dark .hotkey-bad{color:#ff8a80!important}.overlay{position:absolute;inset:0;background:#0006;z-index:30;display:grid;place-items:center;padding:25px}.dialog{width:min(500px,100%);max-height:calc(100dvh - 60px);overflow:auto;background:#fafafa;border-radius:18px;padding:25px;box-shadow:0 10px 50px #0002;position:relative}.dialog h2{font-size:17px;font-weight:500;margin:0 30px 22px 0}.dialog .close{position:absolute;right:16px;top:15px;color:#999;display:grid;place-items:center}.dialog label.field{display:grid;gap:6px;margin:14px 0;font-size:12px}.dialog .pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.dialog .time-first{display:grid;grid-template-columns:minmax(88px,1fr) minmax(0,1.35fr);gap:8px}
.dialog .time-first>input{min-width:0}.dialog input,.dialog textarea,.dialog select{width:100%}.dialog input[type=checkbox]{width:auto}.dialog textarea{min-height:85px}.dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.solid{background:var(--accent);color:var(--on-accent,#fff);border-radius:7px;padding:9px 18px}.secondary{background:#eaeaea;color:#303030;border:1px solid #d2d2d2;border-radius:7px;padding:9px 18px}.secondary:hover{background:#dedede}.danger{color:#d6536c}.menu-dialog{align-self:end;margin-bottom:0;width:355px;padding:20px;border-radius:24px}.menu-dialog button.menu-item{display:flex;width:100%;padding:16px;justify-content:space-between;text-align:left}.menu-item svg{height:15px;width:15px}.popup-categories{display:grid;gap:3px}.popup-categories button{padding:10px;text-align:left;border-radius:5px;display:flex;gap:10px;align-items:center}.popup-categories button:hover{background:#eee}.category-entry{display:flex;align-items:center;gap:9px;padding:7px 0}.category-entry input[type=color]{width:30px;height:28px;padding:0;border:0}.category-entry input[type=text]{flex:1;min-width:0}#toast{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);z-index:45;background:#333;color:#fff;padding:12px 20px;border-radius:8px;font-size:12px;max-width:90%}#toast button{color:#d7ed9d;margin-left:14px;text-decoration:underline}.info-page{padding:65px 14%;height:100%;overflow:auto}.info-page h1{font-size:24px;font-weight:500}.info-page p{line-height:1.7}.info-page .checkrow{padding:20px 0;border-bottom:1px solid #eee}.overlay .error{color:#c44356;font-size:12px;min-height:17px}.live-dot{width:5px;height:5px;background:var(--accent);border-radius:50%;display:inline-block;margin-right:4px}.phone-calendar-button{display:none}.distract-frame{border:0;width:100%;height:100%}.dial.paused{opacity:.55}body.dark{color:#ddd;background:#222}body.dark #app{--surface:#202020;--soft:#292929;--border:#383838}body.dark .calendar-header,body.dark .day-summary{border-color:#383838}body.dark .hour-line{background:#323232}body.dark .hour-label,body.dark .day-cell[aria-pressed=true] .day-box{background:#202020}body.dark .day-box,body.dark .round-small,body.dark .segmented{background:#333;border-color:#444}body.dark .reports,body.dark .settings,body.dark .report-records{background:#282828}body.dark .stats-box,body.dark .report-records article,body.dark .setting-row,body.dark .setting-link,body.dark .dialog{background:#222;border-color:#3b3b3b}
/* Dark theme like Session on every width (BIZ-97, BIZ-101): dark dial and buttons, gray lines, no white borders. */
body.dark #app{--pale-base:#1e1e1e}
body.dark .timer-pane{--dial-base:#262626;--dial-fill:65%;--dial-empty:12%}
body.dark .circle{color:color-mix(in srgb,var(--accent) 55%,#fff)}
body.dark .dial-pin{background:#c9c9c9;border-color:#ffffff26}
body.dark .event{border-color:#00000040}
body.dark .brush-track{background:#3a3a3a}
body.dark .corner,body.dark .category-pill,body.dark .time-pill,body.dark .date-title,body.dark .tiny-square{border-color:#4a4a4a}
body.dark .record-row .tag,body.dark .distribution-row,body.dark .report-filter,body.dark .report-stats,body.dark .settings-nav,body.dark .intention-input,body.dark .todo-row,body.dark .data-pagination button,body.dark .info-page .checkrow{border-color:#3c3c3c}
body.dark .chart-average{border-top-color:#5a5a5a}
body.dark .segmented button.active{background:#4a4a4a;color:#eee}
body.dark .notes-filter label{background:#333;border-color:#444;color:#ddd}
body.dark .popup-categories button:hover{background:#333}body.dark .notes-input{background:#292929;color:#ddd}body.dark input,body.dark select,body.dark textarea{background:#272727;border-color:#444;color:#ddd}
@media(max-width:800px){#app{grid-template-columns:44px 1fr;min-height:580px}#rail{margin-left:3px;padding-top:70px;gap:20px}#rail button{width:31px}.split{grid-template-columns:1fr}.calendar-pane{display:none}.split.mobile-calendar .timer-pane,.split.mobile-calendar .todo-pane{display:none}.split.mobile-calendar .calendar-pane{display:flex;height:100%}.phone-calendar-button{display:grid!important}.intention-area{left:45px;right:45px}.corner{top:31px}.corner.left{left:12px}.corner.right{right:12px}.intention-title{font-size:20px}.calendar-header{padding-top:30px}.settings{grid-template-columns:150px 1fr}.settings-nav{padding:30px 5px}.setting-link{font-size:11px!important;padding:10px 5px!important;gap:4px!important}.settings-body{padding:35px 10px}.setting-row{flex-wrap:wrap}.report-grid{grid-template-columns:1fr}.report-records{display:none}.report-header{padding-top:25px}.dialog .pair{grid-template-columns:minmax(0,1fr)}.info-page{padding:55px 25px}.timer-controls{bottom:9%}.event{--ev-l:40%;--ev-r:5%}.traffic{top:10px;left:7px;gap:4px}.traffic span{width:7px;height:7px}}
#workspace>div:not(.mini-bar){height:100%}.has-mini{padding-bottom:66px}.reflection-title{text-align:center;font-size:20px}.reflection-title small{display:block;color:#999;font-size:12px;margin-top:7px}.reflection-choices{display:flex;justify-content:space-around;margin:26px 0}.reflection-choices label{position:relative;text-align:center;font-size:12px;cursor:pointer}.reflection-choices span{display:block;font-size:32px;margin:8px}.reflection-choices input{width:auto}.reflection-mood{display:grid;gap:6px;margin:14px 0;font-size:12px}.reflection-mood>div{display:flex;flex-wrap:wrap;gap:4px}.reflection-mood label{position:relative;display:grid;place-items:center;min-width:38px;height:38px;border:1px solid var(--border);border-radius:8px;background:var(--soft);color:inherit;font-size:20px;cursor:pointer}.reflection-mood input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.reflection-mood label:has(input:checked){border-color:var(--accent);background:var(--pale);box-shadow:0 0 0 1px var(--accent)}body.dark .reflection-mood label:has(input:checked){background:rgba(157,193,52,.24)}.reflection-mood label:has(input:focus-visible){outline:2px solid var(--focus-ring);outline-offset:2px}.reflection-mood small{min-height:14px}.duration-presets{display:flex;flex-wrap:wrap;gap:7px}.duration-presets button{padding:8px 12px}.dial:focus-visible{border-radius:50%}

@media(min-width:801px){#rail{padding-top:90px;gap:19px;margin-right:1px}.timer-controls{bottom:5.7%}}.time-pill{width:130px;justify-content:center}.date-title{min-width:202px}.day-box small{font-size:9px}.day-summary{font-size:11px}
.data-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;color:#888;margin:5px 0 18px}.data-pagination button{padding:6px 10px;border:1px solid #ddd;border-radius:4px;background:var(--surface)}.data-pagination input{width:70px}.archive-buttons{display:flex;flex-direction:column;align-items:stretch;gap:8px}.archive-buttons button{text-align:left}.archive-page{height:100%;overflow:auto;padding:35px 40px}.archive-page h1{font-weight:500;font-size:22px}.archive-page header p{color:#888}.archive-page pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.65 ui-monospace,monospace;background:var(--soft);padding:15px;border-radius:5px}.archive-page details{padding:12px 0;border-bottom:1px solid var(--border)}.archive-page summary{cursor:pointer;font-size:12px}.todo-segments{max-width:100%;flex-wrap:wrap;justify-content:center}.todo-segments button{font-size:11px;padding:5px 8px}.report-filter #history-search{margin-right:auto;min-width:130px;width:240px;font-size:11px;padding:5px}.popup-categories{max-height:400px;overflow:auto}#category-search{margin-bottom:12px}.dialog:has(#category-search) .muted{display:block;margin-bottom:10px}.dialog:has(#category-search) input[type=checkbox]{width:auto}.settings-inner:has(.archive-buttons){max-width:620px}.mini-bar .mini-detail{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}@media(max-width:800px){.report-filter{flex-wrap:wrap}.report-filter #history-search{width:100%}.report-records{display:block}.report-grid{overflow:auto;display:block}.report-stats,.report-records{overflow:visible}.archive-page{padding:25px 15px}.todo-pane{padding-left:12px;padding-right:12px}.todo-row{padding:8px}}
.timer-status{font-size:10px;color:#aaa;margin-top:3px}.timer-status:empty{display:none}.data-pagination label{white-space:nowrap}.data-pagination input{padding:4px}
.profile-card{border:1px solid var(--border);border-radius:6px;background:var(--surface);margin:10px 0;padding:16px}.profile-card summary{cursor:pointer;font-size:13px}.profile-card pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.5 ui-monospace,monospace;color:#888}

.timer-pane.overflow,.mini-bar.overflow{background:var(--accent);color:var(--on-accent,#fff)}.timer-pane.overflow .timer-value,.timer-pane.overflow .timer-status,.timer-pane.overflow .edit-link,.timer-pane.overflow .category-pill,.timer-pane.overflow .corner,.timer-pane.overflow .time-pill{color:var(--on-accent,#fff)}.timer-pane.overflow .category-pill,.timer-pane.overflow .corner,.timer-pane.overflow .time-pill{background:transparent;border-color:color-mix(in srgb,var(--on-accent,#fff) 33%,transparent)}.timer-pane.overflow .dot{background:var(--on-accent,#fff)}.timer-pane.overflow .dial-hand{background:var(--on-accent,#fff)}.timer-pane.overflow .dial-ticks{stroke:color-mix(in srgb,var(--on-accent,#fff) 33%,transparent)}.timer-pane.overflow .dial-ticks.major{stroke:color-mix(in srgb,var(--on-accent,#fff) 73%,transparent)}.timer-pane.overflow .circle,.timer-pane.overflow .round-small,.mini-bar.overflow .circle{background:color-mix(in srgb,var(--on-accent,#fff) 19%,transparent);color:var(--on-accent,#fff)}.mini-bar.overflow .mini-detail small{color:color-mix(in srgb,var(--on-accent,#fff) 80%,transparent)}.metric-change{font-size:11px;display:block;margin-bottom:3px;min-height:15px}.metric-change.positive{color:#72b84f}

.report-calendar{height:100px!important}.report-calendar .date-title{display:flex;align-items:center;justify-content:center;gap:12px}.report-calendar .date-title svg{width:12px;height:12px}.period-strip{display:flex;gap:4px}.period-strip button{min-width:82px;text-align:left;padding:6px 10px;border:1px solid var(--border);border-radius:4px;background:var(--soft);font-size:11px;line-height:1.3}.period-strip button[aria-pressed=true]{background:var(--surface)}.report-header{padding-top:18px}.reports .report-stats{padding:10px}.stats-box>h3{margin:0 0 16px auto;background:var(--soft);border-radius:15px;width:max-content;padding:4px 10px;font-size:11px;font-weight:500}.distribution-head,.category-row{display:grid;grid-template-columns:minmax(120px,1fr) 42px 62px 78px;align-items:center;gap:8px;font-size:10px}.distribution-head{color:#888;padding:8px 0}.distribution-head>*:not(:first-child),.category-row>*:not(:first-child){text-align:right}.category-row{padding:15px 0}.category-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.positive{color:#72b84f}.daily-distribution{padding:15px 18px 20px}.chart-area{height:190px;display:flex;padding-top:16px;gap:8px}.chart-bars{display:flex;gap:4px;flex:1;position:relative;min-width:0}.chart-column{flex:1;min-width:0;position:relative;padding:0;display:flex;flex-direction:column;gap:4px;text-align:center}.chart-track{display:block;flex:1;width:100%;background:var(--soft);border-radius:3px;position:relative}.chart-stack{position:absolute;bottom:0;left:0;right:0;display:flex;flex-direction:column-reverse;border-radius:3px;overflow:hidden}.chart-stack>span{min-height:0;flex-shrink:0;display:block}.chart-day{height:20px;font-size:9px;line-height:1.1}.chart-day small{display:block;font-size:8px;margin-top:3px}.chart-value{position:absolute;white-space:nowrap;font-size:9px;left:50%;transform:translateX(-50%);padding-bottom:4px}.chart-average{position:absolute;left:0;right:0;border-top:1px dashed #999;pointer-events:none;z-index:2}.chart-average>span{position:absolute;left:calc(100% + 8px);top:-7px;font-size:9px;font-weight:600;white-space:nowrap;background:var(--surface)}.chart-axis{width:56px;margin-bottom:24px;position:relative;color:#888;font-size:8px}.chart-axis>span{position:absolute;left:0;transform:translateY(50%)}.chart-column:hover .chart-track{outline:1px solid var(--accent)}.quality-grid input{width:12px;height:12px;accent-color:var(--accent)}.report-category-options{max-height:320px;overflow:auto;border:1px solid var(--border);margin-top:15px}.report-category-options label{display:flex;gap:8px;align-items:center;margin:10px 0;font-size:12px}.report-category-options input,.report-quality-options input{width:auto}.report-quality-options{display:flex;gap:15px;font-size:12px;border:1px solid var(--border)}.report-day-heading{margin:22px 0 10px!important}.report-records .record-row{border-bottom:1px solid var(--border)}@media(max-width:800px){.period-strip button{min-width:52px;padding:5px;font-size:10px}.daily-distribution{padding:12px}.chart-area{height:170px}.metric-grid strong{font-size:15px}.distribution-head,.category-row{grid-template-columns:minmax(90px,1fr) 34px 49px 60px;gap:5px}.report-calendar .week-strip{gap:1px}.report-stats .stats-box{padding:14px}.report-filter label{white-space:nowrap}}

.suggestions button.selected{background:var(--soft);outline:1px solid var(--accent)}kbd{white-space:nowrap;font:12px -apple-system,BlinkMacSystemFont,sans-serif;color:#888}

.next-intention{display:block;margin:14px auto 0;max-width:330px;width:100%;padding:8px;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;text-align:center;font-size:14px}.overflow .next-intention{color:#fff;border-color:#ffffff66}.overflow .next-intention::placeholder{color:#ffffffaa}

/* Session 2.13.48 RestView: light FBDarkGray (#636363), with black
   overlay .2 during rest and .6 after its deadline, independent of theme. */
.timer-pane.rest,.mini-bar.rest{background:linear-gradient(#0003,#0003),#636363;color:#fff;color-scheme:dark;--on-accent:#fff}
.timer-pane.rest.overflow,.mini-bar.rest.overflow{background:linear-gradient(#0009,#0009),#636363}
.timer-pane.rest .timer-value,.timer-pane.rest .timer-status,.timer-pane.rest .edit-link,.timer-pane.rest .category-pill,.timer-pane.rest .corner,.timer-pane.rest .time-pill{color:#fff}
.timer-pane.rest .category-pill,.timer-pane.rest .corner,.timer-pane.rest .time-pill{background:transparent;border-color:#ffffff55}
.timer-pane.rest .dial-hand{background:#fff}.timer-pane.rest .dial-ticks{stroke:#ffffff55}.timer-pane.rest .dial-ticks.major{stroke:#ffffffbb}
.timer-pane.rest .circle,.timer-pane.rest .round-small,.mini-bar.rest .circle{background:#ffffff30;color:#fff}
.timer-pane.rest .next-intention{color:#fff;border-color:#ffffff66}.timer-pane.rest .next-intention::placeholder{color:#ffffffaa}
.mini-bar.rest .mini-detail small{color:#ffffffcc}

.usage-guide{height:100%;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;max-width:1080px;margin:0 auto;padding:48px 42px 110px;line-height:1.65}.usage-guide header{margin-bottom:25px}.guide-eyebrow{font-size:10px;letter-spacing:2px;color:#888}.usage-guide h1{font-size:34px;letter-spacing:-1px;margin:9px 0}.usage-guide header p{color:#888;font-size:15px}.guide-context{border-left:3px solid var(--accent);padding:14px 20px;background:var(--soft);margin:25px 0}.guide-context p{margin:5px 0 12px}.guide-search{display:block;font-weight:600}.guide-search input{display:block;width:100%;margin-top:8px;padding:13px}#guide-count{font-size:11px;color:#888}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.guide-card{border:1px solid var(--border);border-radius:12px;padding:24px;display:flex;flex-direction:column}.guide-card[hidden]{display:none}.guide-card h3{font-size:18px;margin:0 0 12px}.guide-card ol{padding-left:20px;margin:0}.guide-card li{padding-left:5px;margin:0 0 12px}.guide-note{font-size:12px;color:#888;border-top:1px solid var(--border);padding-top:12px}.guide-card button{margin-top:auto;align-self:flex-start}.guide-shortcuts{margin-top:25px;border-top:1px solid var(--border);padding:20px 0}.guide-shortcuts summary{cursor:pointer;font-weight:600}.guide-shortcuts p{color:#888}@media(max-width:700px){.usage-guide{padding:25px 18px 100px}.guide-grid{grid-template-columns:1fr}.usage-guide h1{font-size:27px}}

/* Explicit foreground/background pairs prevent inherited dark-theme text on light buttons. */
body.dark .secondary{background:#363636;color:#f2f2f2;border-color:#585858}body.dark .secondary:hover{background:#444}

.suggestions{max-height:190px;overflow-y:auto}.suggestions button{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rest .suggestions button{color:#eee}.rest .suggestions button:hover,.rest .suggestions button.selected{background:#ffffff22}

.dialog.native-filter-dialog{width:380px;max-width:calc(100vw - 32px);padding:24px;border-radius:28px;border:1px solid #ccc;background:#fafafa;box-shadow:0 20px 60px #0004;max-height:calc(100dvh - 40px);overflow:hidden}.native-filter-dialog>h2{display:none}.native-filter-dialog .close{top:23px;right:23px;border-radius:50%;background:#e5e5e5;width:32px;height:32px;z-index:2}.native-filter-dialog form{display:flex;flex-direction:column;min-height:0}.native-filter-scroll{height:370px;max-height:calc(100dvh - 210px);overflow:auto;scrollbar-width:thin;padding-right:0}.native-filter-group{margin:0 0 40px}.native-filter-group h3{font-size:12px;color:#777;font-weight:600;margin:0 0 4px}.native-filter-box{border:1px solid #ddd;border-radius:6px;padding:0 4px}.native-filter-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:7px 8px;cursor:pointer}.native-filter-row+.native-filter-row{border-top:1px solid #ddd}.native-filter-row>span{display:flex;align-items:center;gap:9px;font-size:14px;min-width:0;overflow-wrap:anywhere}.native-filter-row i{width:8px;height:8px;border-radius:50%;flex:none}.native-filter-row input[type=checkbox]{appearance:none;flex:none;width:24px;height:24px;border:0;border-radius:4px;background:#ddd;padding:0;display:grid;place-content:center;margin:0}.native-filter-row input:checked{background:var(--accent)}.native-filter-row input:checked:after{content:'✓';color:var(--on-accent,#fff);font-size:20px;font-weight:600}.native-filter-dialog footer{display:flex;flex-direction:column;gap:5px;padding:20px 44px 0;margin:0}.native-filter-dialog footer button{width:100%;min-height:36px;border-radius:22px;font-size:11px;font-weight:700}.filter-all{border:2px solid #d8d8d8;color:#666}.filter-done{background:var(--accent);color:var(--on-accent,#fff)}.native-filter-dialog .error:empty{display:none}body.dark .dialog.native-filter-dialog{background:#282828;border-color:#505050;color:#eee}body.dark .native-filter-box,body.dark .native-filter-row+.native-filter-row{border-color:#383838}body.dark .native-filter-row input:not(:checked),body.dark .native-filter-dialog .close{background:#3b3b3b}body.dark .native-filter-group h3{color:#a0a0a0}body.dark .filter-all{border-color:#404040;color:#aaa}

.filter-category-group{margin:10px 0;border:1px solid var(--border);border-radius:8px;padding:8px}.filter-category-group summary{cursor:pointer;font-weight:600;display:list-item;padding:5px}.filter-category-group summary small{float:right;color:#888;font-weight:400}.filter-group-select{display:flex;justify-content:space-between;align-items:center;padding:9px 8px;font-size:12px;color:#888}.filter-group-select input{width:18px;height:18px;accent-color:var(--accent)}.filter-category-group .native-filter-box{border:0}.filter-category-group .native-filter-row>span{font-size:12px}

.suggestions[hidden]{display:none}

/* Keep the embedded workspace inside the viewport, above the active timer. */
#app{grid-template-rows:minmax(0,1fr)}
.distract-workspace{height:100%;min-height:0;overflow:hidden}.distract-frame{display:block;min-height:0}

/* The app owns the viewport; each long pane owns its own scroll area. */
#app{min-height:0}
#workspace{overflow:hidden}
#rail{min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;padding-top:clamp(20px,9vh,90px);gap:clamp(10px,2vh,21px)}
#rail>button,#rail .rail-bottom{flex-shrink:0}
#rail .rail-bottom{padding-top:18px}
.has-mini{padding-bottom:calc(66px + env(safe-area-inset-bottom,0px))}
.mini-bar{height:calc(55px + env(safe-area-inset-bottom,0px));padding-bottom:calc(6px + env(safe-area-inset-bottom,0px))}
.info-page{height:100%;overflow-y:auto;overscroll-behavior:contain}
.distract-frame{height:100%;width:100%;border:0}
.settings-body,.settings-nav,.todo-pane,.report-stats,.report-records,.usage-guide,.archive-page{overscroll-behavior:contain;scrollbar-width:thin}
.dialog{overscroll-behavior:contain}
.intention-combobox{position:relative;text-align:left;min-width:0}
.intention-combobox input,.intention-combobox textarea{width:100%}
.intention-area,.idle-form{z-index:6}
.suggestions{position:absolute;z-index:12;top:calc(100% + 8px);left:0;right:0;margin:0;padding:6px;max-height:min(330px,45dvh);overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--border);border-radius:18px;box-shadow:0 10px 28px #0003;background:var(--surface);color:#434343;scrollbar-width:thin}
.suggestions-heading{padding:3px 6px 7px;font-size:11px;color:#777}
.suggestions button{display:flex;align-items:center;gap:12px;width:100%;min-height:38px;padding:7px 6px;border-radius:8px;text-align:left;white-space:nowrap;color:inherit}
.suggestion-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.suggestion-category{display:flex;align-items:center;gap:6px;max-width:48%;padding:2px 8px;border:2px solid var(--border);border-radius:15px;font-size:10px;font-weight:600;min-width:0}
.suggestion-category i{width:6px;height:6px;flex:none;border-radius:50%}
.suggestion-category span{overflow:hidden;text-overflow:ellipsis}
.suggestions button.selected,.suggestions button:hover{background:var(--soft);outline-offset:-1px}
.dialog .intention-combobox .suggestions{position:relative;top:auto;margin-top:8px;max-height:200px;box-shadow:none}
.category-combobox{position:relative;min-width:0}
.category-input{position:relative}
.category-input>.dot{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:8px;height:8px;pointer-events:none}
.category-input>input[data-category-picker]{width:100%;padding-left:28px;text-overflow:ellipsis}
.dialog .category-combobox .suggestions{position:relative;top:auto;margin-top:8px;max-height:min(260px,40dvh);box-shadow:none}
.category-options button .dot{width:8px;height:8px}
.category-option-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
body.dark .suggestions{background:#282828;color:#eee;border-color:#505050}
body.dark .suggestions-heading{color:#aaa}
.timer-pane.rest .suggestions,.timer-pane.overflow .suggestions{background:#282828;color:#eee;border-color:#505050}
.timer-pane.rest .suggestions button,.timer-pane.overflow .suggestions button{color:#eee}
.timer-pane.rest .suggestions button:hover,.timer-pane.overflow .suggestions button:hover,.timer-pane.rest .suggestions button.selected,.timer-pane.overflow .suggestions button.selected{background:#ffffff20}
.first-session-hint{font-size:11px;line-height:1.5;color:#888;margin:10px 0}
.first-session-hint button{text-decoration:underline;padding:0;color:inherit}
.guide-card li,.guide-note,.guide-context p{overflow-wrap:anywhere}
.guide-card:focus-within{border-color:var(--accent)}
@media(max-height:650px){
 .split{overflow-y:auto;overscroll-behavior:contain}
 .timer-pane{min-height:575px}
 #rail{padding-top:18px;gap:10px}
 #rail .rail-bottom{gap:10px}
 .usage-guide{padding-top:25px}
}
@media(max-width:600px){
 .idle-form{left:8%;right:8%;top:78px}
 .intention-area{left:24px;right:24px;top:77px}
 .corner{top:22px}
 .intention-title{font-size:18px;max-height:75px;overflow-y:auto}
 .intention-input{font-size:17px}
 .timer-anchor{top:49%}
 .timer-controls{gap:9px;max-width:100%;bottom:7%}
 .start-button{padding:11px 23px;white-space:nowrap}
 .time-adjust{gap:22px}
 .suggestions button{gap:7px}
 .suggestion-title{font-size:12px}
 .suggestion-category{max-width:43%;padding:2px 5px;font-size:9px}
 .mini-bar{gap:8px;padding-left:8px;padding-right:8px}
 .mini-bar>button{flex-shrink:0}
 .settings{display:flex;flex-direction:column;min-height:0}
 .settings-nav{display:flex;gap:4px;flex:0 0 auto;max-height:125px;padding:28px 8px 8px;border-right:0;border-bottom:1px solid var(--border);overflow-x:auto}
 .settings-nav .settings-note{display:none}
 .settings-nav .setting-link{width:auto;flex:0 0 auto;max-width:175px;border:1px solid var(--border);border-radius:6px;padding:9px!important}
 .setting-link .chevron{display:none}
 .settings-body{flex:1;min-height:0;padding:22px 14px 40px}
 .settings-inner{width:100%}
 .settings-inner .setting-row{gap:9px}
 .report-header{overflow-x:auto;min-height:150px}
 .report-grid{display:block;overflow-y:auto}
 .report-records{display:block;overflow:visible;padding:10px}
 .report-stats{overflow:visible}
 /* FCF-169: the Copy button is 40px wide on phones (tap target), so its column is too; long unbroken titles wrap instead of widening the list. */
 .record-row{grid-template-columns:12px minmax(0,1fr) minmax(65px,.8fr) 40px;gap:6px}
 .record-row strong{overflow-wrap:anywhere}
 .record-row>p{grid-column:2/4;margin:0 0 8px;white-space:pre-wrap}
 .record-row>button{grid-row:1;grid-column:4}
 .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 8px}
 .distribution-head,.category-row{grid-template-columns:minmax(66px,1fr) 30px 42px 56px;font-size:9px;gap:4px}
 .category-row strong{white-space:normal;overflow-wrap:anywhere}
 .overlay{padding:12px}
 .dialog{max-height:calc(100dvh - 24px);padding:20px}
 .dialog footer{flex-wrap:wrap}
 .dialog.native-filter-dialog{padding:20px;max-height:calc(100dvh - 24px)}
 .native-filter-dialog footer{padding-left:10px;padding-right:10px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.native-shortcut-control{padding:16px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.native-shortcut-control label{display:block;margin-bottom:8px;font-weight:600}
.native-shortcut-control input{display:block;width:100%;margin-bottom:10px}
.native-shortcut-control button{margin:5px 4px 0 0}
.native-actions details{padding:12px;border:1px solid var(--border);border-radius:8px;margin-bottom:7px;background:var(--surface)}
.native-actions summary{cursor:pointer;font-size:12px;font-weight:600}
.native-actions p{font-size:12px;line-height:1.6;color:inherit}
.automation-name{font:600 12px ui-monospace,SFMono-Regular,Menlo,monospace;color:#303030;background:#fff;border:1px solid #d6d6d6;border-radius:6px;padding:4px 6px;width:100%;max-width:100%;min-width:0}.automation-name:disabled{background:#f4f4f4;color:#303030;opacity:1}
.automation-controls{display:flex;align-items:center;gap:10px;flex:none}
.automation-test{padding:5px 10px;font-size:11px;font-weight:600}
.automation-log{list-style:none;margin:0;padding:4px 10px}
.automation-log li{font-size:11px;line-height:1.7;color:#5f5f5f}
.automation-log li.bad{color:#b3261e}
body.dark .automation-name{color:#f0f0f0;background:#2a2a2a;border-color:#4a4a4a}body.dark .automation-name:disabled{background:#262626;color:#f0f0f0}
body.dark .automation-log li{color:#b0b0b0}
body.dark .automation-log li.bad{color:#ff8a80}
body.dark .settings-note{color:#a8a8a8}

.intention-title-button{font:inherit;line-height:inherit;padding:0;text-align:inherit;max-width:100%;overflow-wrap:anywhere}.active-inline-editor{position:relative;margin:10px auto 0;max-width:510px}.active-inline-editor input{width:100%;font-size:21px;text-align:left;padding:9px 40px 9px 14px;background:var(--soft);border:1px solid var(--border);border-radius:8px}.active-inline-editor .inline-clear{position:absolute;right:8px;top:8px;width:26px;height:26px;border-radius:50%;background:#8882;color:#999;display:grid;place-items:center}.active-inline-editor .inline-clear svg{width:14px;height:14px}.timer-pane.overflow .active-inline-editor input,.timer-pane.rest .active-inline-editor input{color:var(--on-accent,#fff);background:color-mix(in srgb,var(--on-accent,#fff) 7%,transparent);border-color:color-mix(in srgb,var(--on-accent,#fff) 19%,transparent)}.active-inline-editor .suggestions{z-index:15}

/* Session Mac reference: break is a digital countdown; next intention stays editable above. */
.native-mac .traffic{display:none}.intention-title-button{color:inherit;font-weight:500}.next-session-label{font-size:13px;font-weight:600;margin:-20px 0 10px}.timer-pane.rest .dial{display:none}.timer-pane.rest .timer-anchor{height:auto;top:52%;width:290px}.timer-pane.rest .break-label{font-size:23px;font-weight:400;color:#ffffffb3;margin-bottom:12px}.timer-pane.rest .timer-value{font-size:60px;font-weight:600;line-height:1.1;margin:0;color:#fff}.timer-pane.rest .time-adjust{margin-top:20px}.timer-pane.rest .timer-status:empty{display:none}.timer-pane.rest .intention-area{top:68px}.timer-pane.rest .active-inline-editor input{font-size:21px}

.native-mac .timer-pane.rest .intention-area{top:58px}

/* Phone workspace follows Session iPhone: six bottom tabs, full-width timer,
   a separate calendar, and timer/notes switching. Desktop layout is unchanged. */
.phone-timer-switch,.phone-settings-title,.phone-settings-back,.phone-session-options{display:none}
@media(max-width:600px){
 html,body{height:100%;overflow:hidden;-webkit-text-size-adjust:100%}
 #app{height:var(--phone-height,100dvh);min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 66px;padding:0;overflow:hidden;font-size:16px}
 .traffic{display:none}
 #workspace{grid-row:1;grid-column:1;overflow:hidden;min-height:0}
 #workspace>div:has(>.split){height:100%;position:relative}
 #rail{grid-row:2;grid-column:1;display:flex;flex-direction:row;align-items:center;justify-content:space-around;gap:0;margin:0;padding:0 8px 8px;border:0;border-top:1px solid var(--border);border-radius:0;background:var(--surface);z-index:20}
 #rail button{width:44px;height:44px;padding:10px;color:#888}
 #rail button svg{width:22px;height:22px}
 #rail button[aria-current=page]{color:var(--accent)}
 #rail button[aria-current=page]:after{bottom:1px;width:4px;height:4px}
 .split{height:100%;overflow:hidden;display:block}
 .timer-pane{height:100%;min-height:0;width:100%;overflow:hidden}
 .split>.calendar-pane{height:100%}
 .split>.todo-pane{height:100%}
 .timer-pane .corner.left,.timer-pane .desktop-sound{display:none}
 .phone-session-options{display:grid;top:24px;right:24px;width:36px;height:36px;border:0;background:var(--soft)}
 .intention-area,.idle-form{left:28px;right:28px;top:35px}
 .intention-area>.category-pill,.idle-form>.category-pill{max-width:calc(100% - 70px)}
 .category-pill{font-size:13px;height:25px;padding:2px 12px;gap:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .intention-title{font-size:23px;line-height:1.25;margin:10px 0 4px;max-height:90px;font-weight:400}
 .edit-link{font-size:12px;padding:4px}
 .intention-input{font-size:21px;margin-top:12px;min-height:44px}
 .active-inline-editor input{font-size:20px;min-height:44px}
 .timer-anchor{width:236px;height:236px;top:42%;transform:translate(-50%,-50%)}
 .dial{width:236px;height:236px}
 .dial-disc{width:152px;height:152px;left:42px;top:42px}
 .dial-hand{left:115px;top:117px;height:106px;transform-origin:3px 0}
 .dial-pin{left:103px;top:103px;width:30px;height:30px;border-width:4px}
 .timer-value{font-size:26px;margin-top:13px;font-weight:400;line-height:1.25}
 .time-adjust{gap:33px;margin-top:5px}
 .time-pill{font-size:12px;min-width:148px;width:auto;height:26px;line-height:20px}
 .round-small{min-width:38px;width:38px;height:38px}
 .timer-controls{bottom:108px;gap:14px}
 .circle{width:56px;height:56px}.circle.primary{width:64px;height:64px}
 .circle svg{width:26px;height:26px}.circle.primary svg{width:31px;height:31px}
 .start-button{font-size:15px;padding:14px 25px;min-height:46px}
 .phone-timer-switch{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);display:flex;z-index:8;padding:5px 12px;gap:0;background:var(--soft);border-radius:30px}
 .phone-timer-switch button{width:44px;height:38px;position:relative;display:grid;place-items:center;color:#888}
 .phone-timer-switch button[aria-pressed=true]{color:inherit}
 .phone-timer-switch button[aria-pressed=true]:after{content:'';position:absolute;bottom:0;width:4px;height:4px;background:currentColor;border-radius:50%}
 #app[data-phone-screen=calendar] .phone-timer-switch{display:none}
 .calendar-bottom .view-toggle{display:none}
 .calendar-bottom{height:66px;background:transparent;pointer-events:none}
 .calendar-bottom button{pointer-events:auto}
 .calendar-header{padding-top:25px;height:140px;gap:10px}
 .date-title{font-size:17px;height:34px;min-width:208px}.tiny-square{height:34px;min-width:34px}
 .week-strip{gap:3px}.day-cell{width:43px}.day-box{height:46px}.day-box strong{font-size:17px}.day-box small{font-size:10px}
 .day-total{font-size:10px}.day-summary{font-size:11px;height:30px}
 .event{--ev-l:36%;--ev-r:6%;font-size:13px}.hour-label{font-size:12px}
 .notes-pane{padding:22px 20px 90px;overflow:auto;height:100%}
 .notes-pane h2{font-size:25px;margin:0 0 20px}.notes-input{font-size:17px;min-height:160px;line-height:1.5}
 .settings{height:100%;display:block}.settings-nav{display:block;max-height:none;height:100%;padding:24px 20px 28px;overflow-y:auto;border:0}
 .phone-settings-title{display:block;font-size:30px;margin:10px 0 28px}
 .settings-nav .setting-link{display:flex;width:100%;max-width:none;border:0;border-bottom:1px solid var(--border);border-radius:0;padding:15px 8px!important;font-size:16px!important;gap:12px!important;min-height:50px}
 .settings-nav .setting-link svg{width:21px;height:21px}.settings-nav .chevron{display:block;margin-left:auto;color:#999}
 .settings-body{display:none;height:100%;padding:18px 20px 36px;overflow-y:auto}
 .phone-settings-detail .settings-nav{display:none}.phone-settings-detail .settings-body{display:block}
 .phone-settings-back{display:flex;align-items:center;gap:5px;padding:4px 0 18px;color:var(--accent);font-size:17px;min-height:44px}
 .settings-inner h3{font-size:25px;margin:12px 0 25px}.setting-row{font-size:16px;min-height:50px;padding:12px 0}
 .setting-row select{font-size:14px;max-width:205px}.setting-row input[type=number]{font-size:16px}
 .settings-note,.muted{font-size:13px}.settings-inner input,.settings-inner textarea{font-size:16px}
 .report-header{padding-top:20px;min-height:154px}.report-grid{padding-bottom:20px}
 .report-stats .stats-box{padding:18px 12px}.metric-grid strong{font-size:24px}.metric-grid small{font-size:10px}
 .quality-grid{font-size:15px}.report-filter{padding:8px 12px;gap:8px}.report-filter #history-search{font-size:16px;min-height:36px}
 .report-records{padding:12px}.tag{max-width:140px}.record-title strong{font-size:14px}.record-row .length{font-size:12px}
 .overlay{position:fixed;padding:18px;align-items:center}.dialog{width:100%;max-height:calc(var(--phone-height,100dvh) - 36px);padding:24px;border-radius:28px;font-size:16px}
 .dialog h2{font-size:21px}.dialog label.field{font-size:15px}.dialog input,.dialog textarea,.dialog select{font-size:16px;min-height:44px}
 .dialog input[type=checkbox]{min-height:0}.dialog footer button{min-height:44px}.menu-dialog{align-self:end;margin-bottom:12px}
 .suggestions{max-height:min(340px,42dvh)}.suggestions button{min-height:46px;padding:10px}.suggestion-title{font-size:15px}.suggestion-category{font-size:11px}
 .has-mini{padding-bottom:66px}.mini-bar{height:62px;bottom:0;padding:8px 12px}.mini-detail{font-size:14px}
 #toast{bottom:80px;font-size:14px}
 .phone-keyboard{grid-template-rows:minmax(0,1fr) 0!important}.phone-keyboard #rail{display:none}
 .phone-keyboard .timer-anchor,.phone-keyboard .timer-controls,.phone-keyboard .phone-timer-switch{display:none}
 .phone-keyboard .intention-area,.phone-keyboard .idle-form{top:20px}
 .phone-keyboard .suggestions{max-height:calc(var(--phone-height) - 140px)}
}
@media(max-width:600px) and (max-height:740px){
 .timer-anchor{top:40%;transform:translate(-50%,-50%) scale(.88)}
 .timer-controls{bottom:90px}.phone-timer-switch{bottom:17px}
 .intention-area,.idle-form{top:24px}
}

.phone-report-search{display:none}
@media(max-width:600px){
 .event{--ev-l:52%;--ev-r:9%}
 .notes-pane{padding:24px 16px 90px;display:flex;flex-direction:column}
 .notes-pane h2{font-size:25px;font-weight:400;margin:0 16px 16px}
 .notes-input{height:38vh;min-height:220px;flex:none;margin:0;resize:none;padding:14px;font-size:16px}
 .notes-filter{font-size:12px;margin-top:8px;flex-wrap:wrap;gap:4px}.notes-list{min-height:0;overflow:auto}
 .phone-settings-title{text-align:center;font-size:20px;font-weight:600;margin:0 0 44px}
 .settings-nav{padding:25px 16px 35px;background:var(--soft)}
 .settings-nav .settings-note{display:block;margin:0 0 12px;padding:12px;font-size:13px;border-radius:5px;background:var(--surface)}
 .settings-nav .settings-note br,.settings-nav .settings-note .muted{display:none}
 .settings-nav .setting-link{background:var(--surface);padding:10px 12px!important;min-height:49px;font-size:16px!important;gap:10px!important;border:0;position:relative}
 .settings-nav .setting-link:after{content:'';position:absolute;bottom:0;left:48px;right:12px;border-bottom:1px solid var(--border)}
 .settings-nav .setting-link.active{background:var(--surface);color:inherit}
 .settings-nav .setting-group-start{margin-top:12px;border-radius:6px 6px 0 0}
 .settings-nav .setting-link svg{background:#78a3f4;color:white;padding:4px;width:31px;height:31px;border-radius:5px}
 .settings-nav [data-setting-page="Background sound"] svg,.settings-nav [data-setting-page="Calendar"] svg,.settings-nav [data-setting-page="Category"] svg{background:#587acb}
 .settings-nav [data-setting-page="Profile Settings"] svg,.settings-nav [data-setting-page="Session"] svg,.settings-nav [data-setting-page="App Blocker"] svg,.settings-nav [data-setting-page="Slack Blocker"] svg{background:#8174db}
 .settings-nav [data-setting-page="Menubar & Dock"],.settings-nav [data-setting-page="Window"],.settings-nav [data-setting-page="Window tracker"],.settings-nav [data-setting-page="AppleScript"]{display:none}
 .phone-settings-extras h3{font-size:14px;color:#888;margin:26px 12px 10px}
 .metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 8px}.metric-grid strong{font-size:22px}.metric-grid small{font-size:9px}
 .report-header>.segmented{display:none}.report-header{min-height:0;padding-top:16px;overflow:visible}.report-calendar{padding-top:0}
 .report-filter{justify-content:flex-end;font-size:12px;padding:6px 12px;min-height:34px}
 .report-filter #report-period{display:none}.report-filter #history-search{display:none}
 .phone-report-search{display:block;margin-right:auto;font-size:24px;line-height:24px;min-width:32px}
 .phone-history-search .report-filter #history-search{display:block;order:5;width:100%;font-size:16px}
 .settings-inner>.muted,.settings-note{line-height:1.6}
}

@media(max-width:600px){
 .reports .report-calendar{height:112px!important}
 .metric-grid strong{font-weight:400}
 .quality-grid label{font-size:17px}.quality-grid small{font-size:13px;margin-top:10px}
 .category-row{font-size:11px}.distribution-head{font-size:10px}
 .mini-bar .mini-detail{font-size:16px;font-weight:400}.mini-detail small{font-size:11px}
}

/* Historical session preview, shared by calendar and reports. */
.dialog.history-dialog{width:360px;max-width:calc(100vw - 24px);padding:22px;border-radius:24px}
.history-dialog h2{font-size:13px;color:#777;margin-bottom:20px}.history-summary{border-left:3px solid var(--record-color);padding-left:12px;display:grid;gap:8px}.history-summary-title{font-weight:600;font-size:16px;overflow-wrap:anywhere}.history-category{display:flex;align-items:center;gap:6px;font-size:12px}.history-times{display:flex;flex-wrap:wrap;gap:8px;font-size:12px;color:#777}.history-times span{margin-left:auto}.history-note{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;line-height:1.5}.history-edit{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:48px;margin-top:20px;border-top:1px solid var(--border);text-align:left}.history-delete{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:44px;text-align:left;color:#b8283f}
body.dark .history-delete{color:#ff8295}
/* FCF-76: Apps used (Mac Window tracker); own text and background colours so it reads in light and dark. */
.history-apps{margin:12px 0 0;font-size:12px;line-height:1.5;color:#5c5c5c;background:#fafafa;overflow-wrap:anywhere}body.dark .history-apps{color:#b5b5b5;background:#222}
.history-dialog footer{justify-content:center;border-top:1px solid var(--border);padding-top:14px;margin-top:8px}.history-play{display:flex;align-items:center;justify-content:center;gap:9px;min-width:108px;min-height:44px;border-radius:24px;background:var(--accent);color:var(--on-accent,#fff);font-weight:600}.history-play svg{width:20px;height:20px}.history-dialog .error:empty{display:none}body.dark .history-dialog h2,body.dark .history-times{color:#b5b5b5}
.today-button{align-self:stretch;border:1px solid #ddd;border-radius:4px;padding:0 10px;font-size:12px;font-weight:600;background:var(--surface);color:#434343}body.dark .today-button{border-color:#444;color:#ddd}.date-navigation:has(.today-button) .date-title{min-width:150px}.key-hint{font-size:11px;font-weight:500;margin-left:4px}
/* FCF-272: Today pill at the calendar's bottom left, like Session. FCF-271: zoom buttons just above it (same spot on today, when the pill is hidden), shown on hover (touch: while the calendar scrolls). */
.cal-today{position:absolute;left:24px;height:34px;padding:0 16px;border-radius:17px;font-size:13px;font-weight:600;background:var(--chrome);color:var(--on-chrome);pointer-events:auto}
.cal-zoom{position:absolute;left:24px;bottom:calc(50% + 25px);display:flex;flex-direction:column;border-radius:18px;overflow:hidden;background:var(--surface);border:1px solid #ddd;color:#434343;opacity:0;pointer-events:none;transition:opacity .2s}
.cal-zoom button{width:36px;height:34px;display:grid;place-items:center;color:inherit}.cal-zoom button svg{width:18px;height:18px}.cal-zoom button:disabled{opacity:.35}
@media(hover:hover){.calendar-pane:hover .cal-zoom{opacity:1;pointer-events:auto}}
.calendar-pane.zoom-show .cal-zoom,.cal-zoom:focus-within{opacity:1;pointer-events:auto}
body.dark .cal-zoom{background:#252525;border-color:#444;color:#ddd}
/* FCF-287: a chart value shown at once on tap or hover (focus.js showChartTip). Its own dark chip, so it reads the same on the light and the dark theme. */
#chart-tip{position:fixed;z-index:50;pointer-events:none;max-width:min(280px,calc(100vw - 16px));padding:6px 10px;border-radius:10px;background:rgba(18,20,28,.95);color:#fff;border:1px solid rgba(255,255,255,.16);font-size:12px;line-height:1.4;white-space:pre-line;box-shadow:0 6px 20px rgba(0,0,0,.25)}
#chart-tip b{font-weight:600}
/* FCF-290: the day summary line ("0 ↑ · 17 → · 0 ↓") was #777: 4.0:1 on the light glass canvas, 4.4:1 on the dark one. */
.day-summary{color:#666}body.dark .day-summary{color:#9a9a9a}
/* FCF-291: "Change to Focus / Break" in the Session details, between Edit and Delete; the text keeps the dialog colour in both themes. */
.history-kind{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:44px;text-align:left;color:inherit}
/* FCF-293: "Hidden by the filter: … Show Sleep" in a Review card (focus.js lnHiddenNote); its own soft background, text in the page colour. */
.lens-hidden-note{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0;padding:8px 12px;border-radius:8px;background:var(--soft);color:inherit;line-height:1.5}.lens-hidden-note b{font-weight:600}
.merge-preview{margin:12px 0;padding:14px 16px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:inherit}.merge-preview ul{margin:8px 0 12px;padding-left:18px;line-height:1.7}.merge-days{width:100%;border-collapse:collapse;margin:4px 0 12px;font-variant-numeric:tabular-nums;color:inherit}.merge-days th,.merge-days td{padding:6px 8px;border-bottom:1px solid var(--border);text-align:right;white-space:nowrap}.merge-days th:first-child,.merge-days td:first-child{text-align:left}.merge-days th{font-weight:600}.merge-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.merge-overlap{display:flex;gap:8px;align-items:flex-start;margin:0 0 12px;line-height:1.5;color:inherit;cursor:pointer}.merge-overlap input{margin-top:3px;flex:none}.merge-remove{margin:4px 0 12px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--soft);color:inherit}.merge-remove p{margin:0 0 6px}.merge-remove-list{list-style:none;margin:0;padding:0;max-height:320px;overflow-y:auto;border-top:1px solid var(--border)}.merge-remove-list li{border-bottom:1px solid var(--border)}.merge-remove-list label{display:flex;gap:8px;align-items:flex-start;padding:7px 2px;cursor:pointer;color:inherit}.merge-remove-list input{margin-top:3px;flex:none}.merge-remove-list span{display:flex;flex-direction:column;min-width:0}.merge-remove-list b{font-weight:600;overflow-wrap:anywhere}.merge-remove-list small{color:inherit;font-variant-numeric:tabular-nums}
.reflection-time{margin:10px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);color:inherit}.reflection-time summary{display:flex;align-items:center;gap:10px;padding:12px 2px;cursor:pointer;list-style:none;font-size:12px;color:inherit}.reflection-time summary::-webkit-details-marker{display:none}.reflection-time summary strong{margin-left:auto;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}.reflection-time summary::after{content:'›';font-size:18px;line-height:1;transition:transform .15s}.reflection-time[open] summary::after{transform:rotate(90deg)}.duration-inputs{display:flex;align-items:center;gap:6px}.dialog .duration-inputs input{width:76px}
/* System calendar events (BIZ-100): left column like Session; Sessions stay on the right. Each block carries its own tinted background so the text reads in light and dark. */
.cal-events{position:absolute;top:0;bottom:0;left:var(--cal-l);right:calc(var(--cal-r) + var(--cal-half));pointer-events:none}.cal-event{position:absolute;min-height:13px;border-radius:3px;padding:3px 5px;overflow:hidden;font-size:11px;font-weight:600;line-height:1.2;color:#303030;background:color-mix(in srgb,var(--cal-color) 34%,var(--surface));border-left:3px solid color-mix(in srgb,var(--cal-color) 70%,#555);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cal-color) 55%,#777);pointer-events:auto;cursor:default}.cal-event small{display:block;font-size:10px;font-weight:500;color:#3a3a3a}.cal-event{container-type:size}.cal-event .cal-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-weight:700}.cal-event .cal-name{display:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;font-weight:500;color:#3a3a3a}.cal-event .cal-dur{display:none;position:absolute;right:5px;bottom:3px;font-size:10px;font-weight:500;color:#3a3a3a}.cal-allday{display:flex;flex-wrap:wrap;gap:4px;padding:0 7% 6px 11%;flex:none}.cal-allday:empty{display:none}.cal-chip{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:600;padding:2px 6px;border-radius:3px;color:#303030;background:color-mix(in srgb,var(--cal-color) 34%,var(--surface));border-left:3px solid color-mix(in srgb,var(--cal-color) 70%,#555);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cal-color) 55%,#777)}body.dark .cal-event,body.dark .cal-chip{color:#ececec;background:color-mix(in srgb,var(--cal-color) 22%,var(--surface));border-left-color:var(--cal-color);box-shadow:none}body.dark .cal-event small,body.dark .cal-event .cal-name,body.dark .cal-event .cal-dur{color:#d2d2d2}
/* FCF-109: in the apps the day is always split like Session, whether or not there are events: hour gutter | events (left half) | gap | Sessions (right half).
   Both halves are measured from the gutter (--cal-l) to the right edge (--cal-r) and are equal; --cal-gap sits between. Sessions, their lanes (.event.laned) and planned Todos
   only use the right half at every width. The web version cannot read calendars and keeps its full-width rules below (class no-cal-events). */
.timeline:not(.no-cal-events)>.event,.timeline:not(.no-cal-events)>[data-active-event]>.event,.timeline:not(.no-cal-events) .plan-block{--ev-l:calc(var(--cal-l) + var(--cal-half));--ev-r:var(--cal-r)}
/* Show only as much of an event as fits: the name on a second line, the duration bottom right. The container is the block itself, so this follows the zoom. */
@container (min-height:38px){.cal-event .cal-name{display:block}}
@container (min-height:52px){.cal-event .cal-name{padding-right:4.6em}.cal-event .cal-dur{display:block}}
/* The prompt in the empty left half: a quiet card with its own colours, sticky near the top of what is on screen. */
.cal-prompt{position:sticky;top:8px;margin:8px 4px 0 0;padding:8px;border-radius:8px;border:1px solid #e2e2e2;background:#f7f7f7;color:#434343;pointer-events:auto}.cal-prompt button{display:block;width:100%;padding:5px 8px;border-radius:6px;border:1px solid #cfcfcf;background:#fff;color:#303030;font-size:11px;font-weight:600;text-align:center}.cal-prompt p{margin:6px 0 0;font-size:10px;line-height:1.35;color:#6b6b6b}.cal-prompt p:first-child{margin-top:0}body.dark .cal-prompt{border-color:#3d3d3d;background:#292929;color:#d8d8d8}body.dark .cal-prompt button{border-color:#555;background:#202020;color:#ececec}body.dark .cal-prompt p{color:#a8a8a8}
.add-choice span{display:grid;gap:3px}.add-choice small{font-size:11px;font-weight:400;color:#6b6b6b}body.dark .add-choice small{color:#a8a8a8}.dialog .check-row{display:flex;align-items:center;gap:8px;margin:14px 0;font-size:12px}.reflection-shortcut span{display:grid;gap:3px}.reflection-shortcut small{font-size:11px;font-weight:400;color:#6b6b6b}body.dark .reflection-shortcut small{color:#a8a8a8}.time-first input[hidden]+input{grid-column:1/-1}
@media(max-width:600px){.dialog .check-row{font-size:15px}.reflection-shortcut small{font-size:13px}}

/* BIZ-114: Session dialog — Start/End first (large hh:mm), day just above, duration and +1 day beside */
.record-day{display:flex;align-items:center;gap:10px;margin:-10px 0 14px;font-size:14px;font-weight:600;color:#444}
.record-day input{width:auto;min-height:34px;font-size:14px;padding:2px 8px}
.record-times{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;align-items:end;gap:10px;margin-bottom:6px}
.record-times input[type=time]{font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;min-height:54px;min-width:0}
.record-arrow{padding-bottom:15px;color:#666}
.record-duration{padding-bottom:15px;min-width:64px;text-align:right;font-size:14px;font-weight:600;color:#444;white-space:nowrap}
.record-next-day{margin-left:4px;font-size:11px;font-weight:700;color:#9a4d00}
.record-end-day{grid-column:1/-1}
body.dark .record-day,body.dark .record-duration{color:#d0d0d0}
body.dark .record-arrow{color:#a0a0a0}
body.dark .record-next-day{color:#ffb454}
@media (max-width:600px){.record-times{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.record-duration{grid-column:1/-1;padding-bottom:0}}
/* BIZ-111/119/120: Category Distribution grouped (I. Sleep … IV. Personal) with a tick on every row, like Session */
:root{--group-sleep:#5b6fd1;--group-work:#b5473a;--group-relax:#b07a0f;--group-personal:#2f8a6c;--group-other:#8a8fa3}
body.dark{--group-sleep:#8fa0f0;--group-work:#f08a78;--group-relax:#e8b84a;--group-personal:#62c6a4;--group-other:#9aa0b5}
.dist-name{display:flex;align-items:center;gap:2px;min-width:0}
.dist-toggle{display:flex;align-items:center;gap:8px;min-width:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.dist-toggle strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* FCF-329: a category sits one step in from its group: its tick lines up under the group's name (caret 18 + 2 + tick 14 + 8) */
.dist-leaf .dist-toggle{padding-left:42px}
.dist-check{flex:none;width:14px;height:14px;border-radius:50%;border:1.5px solid #8a8a8a;display:grid;place-items:center}
.dist-toggle[aria-checked=true] .dist-check{background:var(--event-color);border-color:var(--event-color)}
.dist-toggle[aria-checked=true] .dist-check::after{content:'';width:6px;height:3px;border:solid var(--on-event,#fff);border-width:0 0 1.5px 1.5px;transform:translateY(-1px) rotate(-45deg)}
.dist-toggle[aria-checked=mixed] .dist-check{border-color:var(--event-color)}
.dist-toggle[aria-checked=mixed] .dist-check::after{content:'';width:6px;height:1.5px;background:var(--event-color)}
.dist-caret{flex:none;width:18px;height:18px;padding:0;border:0;background:none;color:#666;font-size:11px;line-height:18px;cursor:pointer}
.dist-group strong{font-weight:700}
.distribution-row.off strong,.distribution-row.off>span,.distribution-row.off>b{color:#6b6b6b}
.distribution-row.off .progress{opacity:.35}
.dist-selected{display:flex;align-items:center;gap:10px;margin:-6px 0 4px;font-size:10px;color:#555}
.dist-selected button{margin-left:auto;padding:3px 9px;border:1px solid #ccc;border-radius:12px;background:#fff;color:#434343;font-size:10px;cursor:pointer}
.report-clear{color:#434343}
.report-clear[disabled]{color:#767676;cursor:default}
body.dark .dist-caret{color:#a0a0a0}
body.dark .distribution-row.off strong,body.dark .distribution-row.off>span,body.dark .distribution-row.off>b{color:#a0a0a0}
body.dark .dist-selected{color:#c8c8c8}
body.dark .dist-selected button{background:#2e2e2e;border-color:#4a4a4a;color:#e6e6e6}
/* FCF-264/265: Show all · Hide all on the left, the title pill and ⛶ Fullscreen on the right of the Category Distribution box. */
.dist-bar{display:flex;align-items:center;gap:6px;margin:0 0 16px}
.dist-bar>h3{min-width:0;margin:0 0 0 auto;background:var(--soft);border-radius:15px;padding:4px 10px;font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dist-bulk{flex:none;padding:3px 10px;border:1px solid #ccc;border-radius:12px;background:#fff;color:#434343;font-size:11px;cursor:pointer}
.dist-bulk:disabled{color:#9a9a9a;border-color:#e2e2e2;cursor:default}
.dist-zoom{flex:none;display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:#555;cursor:pointer}
.dist-zoom svg{width:16px;height:16px}
.dist-zoom:hover,.dist-zoom:focus-visible{border-color:#ccc;background:var(--soft)}
body.dark .dist-bulk{background:#2e2e2e;border-color:#4a4a4a;color:#e6e6e6}
body.dark .dist-bulk:disabled{color:#7c7c7c;border-color:#3b3b3b}
body.dark .dist-zoom{color:#c8c8c8}
body.dark .dist-zoom:hover,body.dark .dist-zoom:focus-visible{border-color:#4a4a4a}
@media (pointer:coarse){.dist-bulk{padding:6px 10px;font-size:12px}.dist-zoom{width:36px;height:36px}}
.lens-zoom-body>.category-distribution{border:0;padding:0;margin:0;background:transparent}
body.dark .report-clear{color:#ddd}
body.dark .report-clear[disabled]{color:#8c8c8c}
/* Filter Sessions: the four big groups, each with its own tick and "Chỉ nhóm này" */
.filter-big-group{margin:0 0 26px}
.filter-big-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 6px}
.filter-big-head label{display:flex;align-items:center;gap:8px;cursor:pointer;min-width:0}
.filter-big-head input{width:18px;height:18px;margin:0;accent-color:var(--accent)}
.filter-big-head strong{font-size:14px;color:#333}
.filter-big-head small{font-size:11px;color:#6b6b6b}
.filter-only{flex:none;padding:4px 10px;border:1px solid #ccc;border-radius:12px;background:#fff;color:#434343;font-size:11px;cursor:pointer}
body.dark .filter-big-head strong{color:#eee}
body.dark .filter-big-head small{color:#a0a0a0}
body.dark .filter-only{background:#333;border-color:#4a4a4a;color:#e6e6e6}
/* BIZ-112: 1–4 / ⌥1–4 key hints on the big groups (not on touch screens); a short flash shows which group a key changed */
.dist-key{display:inline-block;min-width:16px;margin:0;padding:0 4px;border:1px solid #b5b5b5;border-radius:4px;background:#f4f4f4;color:#555;font:600 10px/15px -apple-system,BlinkMacSystemFont,sans-serif;text-align:center}
body.dark .dist-key{border-color:#5a5a5a;background:#2a2a2a;color:#c8c8c8}
@media (hover:none){.dist-key{display:none}}
@keyframes dist-flash{from{box-shadow:inset 0 0 0 100vmax rgba(66,133,244,.22)}to{box-shadow:inset 0 0 0 100vmax rgba(66,133,244,0)}}
.dist-flash{animation:dist-flash .8s ease-out}
.filter-big-head{scroll-margin-top:36px}
@media (prefers-reduced-motion:reduce){.dist-flash{animation:none}}
/* BIZ-115: AVG/D (periods of 2+ days) and AVG/W (14+ days) columns; on a phone they move under the category name */
.dist-avgs{display:contents}
.distribution-head .dist-avgs>span,.category-row .dist-avgs>span{text-align:right;white-space:nowrap}
.dist-cols-1 .distribution-head,.dist-cols-1 .category-row{grid-template-columns:minmax(110px,1fr) 38px 58px 40px 72px}
.dist-cols-2 .distribution-head,.dist-cols-2 .category-row{grid-template-columns:minmax(100px,1fr) 34px 54px 36px 42px 66px;gap:5px}
.dist-note{margin:8px 0 0;font-size:10px;color:#6b6b6b;text-align:right}
.dist-running{display:block;font-size:10px;font-weight:600;line-height:1.25;color:#b45309;white-space:normal;overflow-wrap:anywhere}/* FCF-547: wraps inside the time column ("+56min" / "running") instead of pushing the Report wider than an iPhone */
body.dark .dist-running{color:#fbbf24}
body.dark .dist-note{color:#a0a0a0}
@media(max-width:800px){
 .dist-cols-1 .distribution-head,.dist-cols-1 .category-row{grid-template-columns:minmax(90px,1fr) 34px 49px 42px 60px;gap:5px}
 .dist-cols-2 .distribution-head,.dist-cols-2 .category-row{grid-template-columns:minmax(80px,1fr) 34px 49px 40px 44px 60px;gap:5px}
}
@media(max-width:600px){
 .dist-cols-1 .distribution-head,.dist-cols-1 .category-row,.dist-cols-2 .distribution-head,.dist-cols-2 .category-row{grid-template-columns:minmax(66px,1fr) 30px 42px 56px;gap:4px}
 .distribution-head .dist-avgs{display:none}
 .category-row .dist-avgs{display:flex;gap:10px;grid-column:1;grid-row:2;padding-left:42px;font-size:9px;color:#6b6b6b}
 .category-row .dist-avg-d::after{content:'/d'}
 .category-row .dist-avg-w::after{content:'/w'} html[lang=vi] .category-row .dist-avg-d::after{content:'/ngày'} html[lang=vi] .category-row .dist-avg-w::after{content:'/tuần'}
 body.dark .category-row .dist-avgs{color:#a0a0a0}
}
/* BIZ-118: Sessions that overlap sit side by side, like Session. --ev-l/--ev-r bound the Sessions column. */
.event.laned{left:calc(var(--ev-l) + (100% - var(--ev-l) - var(--ev-r)) * var(--lane) / var(--lanes));right:auto;width:calc((100% - var(--ev-l) - var(--ev-r)) / var(--lanes) - 2px);padding-left:4px;padding-right:4px}
.event.laned .event-duration{position:static;display:block}
/* FCF-232: a Break shows its times, name and minutes like a Session, so its first line keeps off the top edge. */
.event.break{padding-top:2px}
/* BIZ-126: Settings › About — version and changelog, readable in light and dark. */
.about-version{margin:4px 0 14px;font-size:13px}
.changelog-build{border-top:1px solid #e3e3e3;padding:8px 0}
.changelog-build summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;font-size:13px}
.changelog-build summary span{color:#6b6b6b;font-size:12px;white-space:nowrap}
.changelog-build ul{margin:6px 0 2px;padding-left:18px;line-height:1.5;font-size:12.5px}
.changelog-code{display:inline-block;margin-left:2px;padding:0 4px;border-radius:4px;background:#efefef;color:#555;font-size:10px;font-weight:600;line-height:16px;white-space:nowrap}
body.dark .changelog-build{border-color:#3a3a3a}
body.dark .changelog-build summary span{color:#a0a0a0}
body.dark .changelog-code{background:#2e2e2e;color:#c8c8c8}
.changelog-build summary{list-style:none}.changelog-build summary::-webkit-details-marker{display:none}
.changelog-build summary strong::before{content:'▸';display:inline-block;width:14px;color:#8a8a8a}
.changelog-build[open] summary strong::before{content:'▾'}
/* BIZ-125: guide — "What's new" box, sections, key hints; readable in light and dark. */
.guide-new{border:1px solid var(--border);border-radius:12px;padding:14px 20px;margin:0 0 25px}
.guide-new summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}
.guide-new summary::-webkit-details-marker{display:none}
.guide-new summary strong::before{content:'▸';display:inline-block;width:16px;color:#8a8a8a}
.guide-new[open] summary strong::before{content:'▾'}
.guide-new summary span{color:#6b6b6b;font-size:12px;white-space:nowrap}
.guide-new ul{margin:10px 0 14px;padding-left:20px;line-height:1.55;font-size:13.5px}
.guide-new li{margin:0 0 3px}
.guide-section{margin-top:30px}
.guide-section[hidden]{display:none}
.guide-section h2{font-size:12px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:#5f5f5f;margin:0 0 12px}
.guide-keys{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:2px 0 12px;font-size:12px;color:#6b6b6b}
.guide-keys .keycaps{justify-content:flex-start}
.guide-key{display:inline-flex;align-items:center;gap:5px}
.guide-key small{font-size:12px}
body.dark .guide-new summary span,body.dark .guide-keys{color:#a0a0a0}
body.dark .guide-section h2{color:#b0b0b0}
.keycaps.keycaps-set{gap:10px}
/* BIZ-123 F3: storage alert — own red background and white text in both themes; under dialogs (overlay z 30). */
#storage-alert{position:fixed;top:calc(8px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);z-index:25;display:flex;align-items:center;gap:10px;width:max-content;max-width:min(680px,calc(100% - 24px));padding:10px 12px;border-radius:10px;background:#b3261e;color:#fff;font-size:13px;line-height:1.35;box-shadow:0 4px 16px rgba(0,0,0,.25)}
#storage-alert[hidden]{display:none}
#storage-alert button{flex:none;min-height:32px;background:#fff;color:#b3261e;border:0;border-radius:6px;padding:6px 10px;font:inherit;font-weight:600;cursor:pointer}
#storage-alert .storage-alert-close{min-width:32px;background:transparent;color:#fff;font-size:18px;line-height:1;padding:4px 6px}
/* BIZ-123 F7: group ticks in dark theme sit on light group colours, so they are dark; the Edit link stays readable on dark. */
body.dark .dist-group{--on-event:#1f1f1f}
body.dark .edit-link{color:#a0a0a0}
/* BIZ-123 F13: on iPhone the small buttons get a 44 pt touch area (Apple HIG) without changing how they look; the group caret grows only leftwards so it never covers the tick beside it. */
@media (max-width:600px){#toast button{min-height:44px;padding:0 10px}.data-pagination button{min-height:44px;min-width:44px}.dist-caret,.dist-selected button,.record-row>button{position:relative}.record-row>button::after{content:'';position:absolute;inset:-13px}.dist-caret::after{content:'';position:absolute;inset:-13px 0 -13px -13px}.dist-selected button::after{content:'';position:absolute;inset:-13px -4px}}
/* BIZ-117: Report › Review, the nightly /session-report in the app. Text keeps the page colours in both themes; group colours only paint dots and bars. */
#app{--warn:#a35d00;--win:#3d7a2e;--rv-bad:#b3261e;--rv-info:#2f6fb0;--rv-muted:#6b6b6b;--rv-focus:#2f6fb0}
body.dark #app{--warn:#f0b35a;--win:#8fd47a;--rv-bad:#ff8a80;--rv-info:#8ab4f8;--rv-muted:#a0a0a0;--rv-focus:#8ab4f8}
.report-modes button[aria-pressed=true]{font-weight:600}
.review-page button:focus-visible{outline:2px solid var(--rv-focus);outline-offset:-2px}
@media(min-width:801px){.review-page .report-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}}
@media(max-width:800px){.review-page .report-records{display:block}}
.rv-dot{flex:none;display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--group,#8a8fa3);margin-right:6px}
.rv-name{display:flex;align-items:center;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.rv-delta{white-space:nowrap}
.rv-move{font-weight:700}
.rv-matrix-row{display:grid;grid-template-columns:minmax(92px,1.3fr) repeat(6,minmax(0,1fr));align-items:stretch;border-bottom:1px solid var(--border)}
.rv-matrix-row:last-child{border-bottom:0}
.rv-matrix-row>.rv-name{font-size:11px;padding:7px 4px 7px 0}
.rv-matrix-head button{display:flex;flex-direction:column;align-items:flex-end;gap:1px;padding:6px 6px 5px;font-size:10px;font-weight:600;letter-spacing:.6px;color:inherit;border-bottom:2px solid transparent;border-radius:4px 4px 0 0}
.rv-matrix-head button small{font-size:9px;font-weight:400;letter-spacing:0;color:var(--rv-muted)}
.rv-matrix-head button[aria-selected=true]{background:var(--soft);border-bottom-color:currentColor}
.rv-cell{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;min-width:0;padding:6px;font-size:12px;font-variant-numeric:tabular-nums;color:inherit;text-align:right}
.rv-cell small{font-size:10px;color:var(--rv-muted)}
.rv-cell.on,button.rv-cell:hover{background:var(--soft)}
.rv-total>.rv-name,.rv-total>.rv-cell{font-weight:600}
.rv-balance .rv-cell{justify-content:center}
.rv-strip{display:flex;width:100%;height:8px;border-radius:4px;overflow:hidden;background:var(--border)}
.rv-strip i,.rv-bar i{display:block;height:100%}
.rv-line{display:flex;gap:8px;align-items:baseline;margin:0 0 7px;font-size:12px;line-height:1.5}
.rv-line:last-child{margin-bottom:0}
.rv-mark{flex:none;width:8px;height:8px;border-radius:50%;background:var(--rv-muted);transform:translateY(-1px)}
.rv-bad .rv-mark{background:var(--rv-bad)}.rv-warn .rv-mark{background:var(--warn)}.rv-win .rv-mark{background:var(--win)}.rv-info .rv-mark{background:var(--rv-info)}
.rv-line.rv-tip .rv-mark{background:transparent;border:2px solid var(--rv-muted)}
.rv-row{position:relative;display:grid;align-items:center;gap:8px;width:100%;padding:9px 0;border-bottom:1px solid var(--border);font-size:11px;color:inherit;text-align:left;font-variant-numeric:tabular-nums}
.rv-row>span:not(.rv-name){text-align:right;white-space:nowrap}
.rv-row .progress{position:absolute;left:0;bottom:-1px;height:3px;background:var(--group,#8a8fa3)}
button.rv-row:hover{background:var(--soft)}
.rv-head{padding:4px 0;font-size:9px;letter-spacing:.5px;color:var(--rv-muted)}
.rv-head>span:first-child{text-align:left}
.rv-row.rv-head>span:not(.rv-name){white-space:normal;line-height:1.25}
.rv-summary .rv-row{grid-template-columns:minmax(0,1fr) 52px 40px 64px}
.rv-summary.rv-cols-1 .rv-row{grid-template-columns:minmax(0,1fr) 52px 40px 52px 64px}
.rv-summary.rv-cols-2 .rv-row{grid-template-columns:minmax(0,1fr) 52px 40px 52px 52px 64px}
.rv-summary.rv-cols-3 .rv-row{grid-template-columns:minmax(0,1fr) 50px 38px 48px 48px 52px 60px}
.rv-summary .rv-total{font-weight:600;border-bottom:0}
.rv-legend{display:flex;flex-wrap:wrap;gap:4px 12px;margin:0 0 10px;font-size:10px}
.rv-legend span{display:inline-flex;align-items:center}
.rv-bars{--rv-label:52px;--rv-value:46px;position:relative}
.rv-bar-row{display:grid;grid-template-columns:var(--rv-label) minmax(0,1fr) var(--rv-value);gap:8px;align-items:center;width:100%;padding:3px 0;font-size:10px;font-variant-numeric:tabular-nums;color:inherit;text-align:left}
.rv-series-month .rv-bar-row{padding:1px 0}
.rv-bar-row:hover{background:var(--soft)}
.rv-bar-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rv-bar-row.weekend .rv-bar-label{color:var(--rv-muted)}
.rv-bar-row.current .rv-bar-label,.rv-bar-row.current .rv-bar-value{font-weight:700}
.rv-bar{display:flex;height:10px;border-radius:3px;overflow:hidden;background:var(--soft)}
.rv-bar-value{text-align:right}
.rv-avg-line{position:absolute;top:0;bottom:0;left:calc(var(--rv-label) + 8px + (100% - var(--rv-label) - var(--rv-value) - 16px) * var(--avg));border-left:1px dashed var(--rv-muted);pointer-events:none}
.review-details .rv-details-title{margin:5px 0 12px}
.rv-bucket{margin-bottom:10px;overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:5px}
.rv-bucket-head{display:grid;grid-template-columns:14px minmax(0,1fr) 52px 40px 64px 22px;gap:8px;align-items:center;width:100%;padding:10px 12px;font-size:12px;font-variant-numeric:tabular-nums;color:inherit;text-align:left}
.rv-bucket-head>span:not(.rv-name):not(.rv-caret){text-align:right;white-space:nowrap}
.rv-bucket-head:hover{background:var(--soft)}
.rv-bucket-head .dist-key{justify-self:end}
.rv-caret{font-size:12px;line-height:1;color:var(--rv-muted)}
.rv-bucket-body{padding:0 12px 10px;border-top:1px solid var(--border)}
.rv-bucket-body[hidden]{display:none}
.rv-bucket-body .rv-row{grid-template-columns:minmax(0,1fr) 52px 56px 64px}
.rv-sub{font-weight:600}
.rv-cat{padding-left:14px}
.rv-note{margin:8px 0 0;font-size:11px;line-height:1.5}
.rv-note.rv-tip{color:var(--rv-muted)}
.rv-note.rv-tip::before{content:'→ '}
.rv-more{display:block;margin:4px 0 6px 14px;padding:2px 0;font-size:11px;color:var(--rv-muted);text-decoration:underline}
.rv-empty{padding:24px 0;text-align:center}
/* FCF-91: Review gets /session-report's detail layer — weekly verdicts, per-category meta, category × day, sleep by period, All time. */
.rv-week .rv-line b{font-weight:700}
.rv-count{flex:none;margin-left:8px;font-size:10px;font-weight:400;color:var(--rv-muted)}
.rv-label{display:flex;flex-direction:column;min-width:0}
.rv-label>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.rv-meta{font-size:10px;color:var(--rv-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rv-grid-wrap{margin:10px 0 0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.rv-grid{min-width:100%;font-size:10px;font-variant-numeric:tabular-nums}
.rv-grow{display:grid;grid-template-columns:minmax(84px,1.6fr) repeat(var(--days),minmax(34px,1fr));align-items:center;border-bottom:1px solid var(--border)}
.rv-grid-month .rv-grow{grid-template-columns:minmax(96px,1fr) repeat(var(--days),16px);gap:0 2px;width:max-content;min-width:100%}
/* FCF-600: on a phone the month fits the card (no sideways scroll): days share the width, the head names days 1 · 8 · 15 · 22 · 29 */
@media(max-width:600px){.rv-grid-month .rv-grow{grid-template-columns:minmax(60px,84px) repeat(var(--days),minmax(0,1fr));gap:0 1px;width:auto}.rv-grid-month .rv-ghead{overflow:hidden}.rv-grid-month .rv-ghead .rv-gday{overflow:visible;font-size:8px}.rv-grid-month .rv-ghead .rv-gday{text-align:left}.rv-grid-month .rv-ghead .rv-gday:not(:nth-child(7n+2)){visibility:hidden}}
.rv-gname{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:4px 6px 4px 0}
.rv-ghead{color:var(--rv-muted);font-size:9px;letter-spacing:.3px}
.rv-gday{text-align:center;line-height:1.2;padding:3px 0}
.rv-gday.peak{color:inherit;font-weight:700}
.rv-gc{position:relative;display:block;padding:5px 2px 6px;text-align:right;white-space:nowrap}
.rv-gc i{position:absolute;right:2px;bottom:2px;height:2px;max-width:calc(100% - 4px);background:var(--group,#8a8fa3)}
.rv-gsq{height:14px;padding:0;border-radius:2px;background:color-mix(in srgb,var(--group,#8a8fa3) var(--a),var(--soft))}
.rv-gtotal{font-weight:600;border-bottom:0}
.rv-sleep-table{margin:10px 0 4px;font-size:11px;font-variant-numeric:tabular-nums}
.rv-srow{display:grid;grid-template-columns:52px minmax(0,1.3fr) minmax(0,1fr) minmax(0,1.1fr);gap:8px;align-items:baseline;padding:6px 4px;border-bottom:1px solid var(--border)}
.rv-srow.on{background:var(--soft);font-weight:600}
.rv-srow small{color:var(--rv-muted);font-weight:400}
.rv-all .rv-row{grid-template-columns:minmax(0,1fr) 56px 40px 56px}
.rv-years{font-variant-numeric:tabular-nums}
.rv-yrow{display:grid;grid-template-columns:40px 40px repeat(4,minmax(0,1fr)) minmax(48px,1.2fr);gap:6px;align-items:center;padding:7px 0;border-bottom:1px solid var(--border);font-size:11px}
.rv-yrow>span:not(.rv-strip){text-align:right;white-space:nowrap}
.rv-yrow>span:first-child{text-align:left}
.rv-yrow:last-child{border-bottom:0}
.rv-top .rv-row{grid-template-columns:minmax(0,1fr) 56px 44px 0}
@media(max-width:600px){
 .report-header>.segmented.report-modes{display:flex;margin:0 auto 8px}.report-modes [data-view=todo]{display:none}.report-modes button{min-height:36px;padding:6px 26px;font-size:14px}
 .rv-matrix-row{grid-template-columns:minmax(64px,1fr) repeat(6,minmax(0,1fr))}.rv-matrix-row>.rv-name{font-size:12px;white-space:normal;line-height:1.25}
 .rv-matrix-head button{min-height:44px;padding:6px 3px;font-size:11px}.rv-cell{padding:6px 3px;font-size:13px}
 .rv-matrix-head button[data-review-tab=custom]{letter-spacing:0;overflow-wrap:anywhere}/* FCF-142: CUSTOM… fits its narrow column */
 .rv-line{font-size:14px}
 .rv-row{min-height:44px;padding:10px 0;font-size:13px}.rv-head{min-height:0;font-size:10px}
 .rv-summary .rv-row{grid-template-columns:minmax(0,1fr) 48px 38px 58px}
 .rv-summary.rv-cols-1 .rv-row,.rv-summary.rv-cols-2 .rv-row,.rv-summary.rv-cols-3 .rv-row{grid-template-columns:minmax(0,1fr) 48px 38px 46px 58px}
 .rv-summary .rv-avg-w,.rv-summary .rv-avg-m{display:none}
 .rv-bars{--rv-label:50px;--rv-value:46px}.rv-bar-row,.rv-series-month .rv-bar-row{min-height:30px;padding:2px 0;font-size:12px}.rv-legend{font-size:12px}
 .rv-bucket-head{grid-template-columns:14px minmax(0,1fr) 50px 38px 58px;min-height:48px;font-size:14px}.rv-bucket-head>:last-child{display:none}
 .rv-bucket-body .rv-row{grid-template-columns:minmax(0,1fr) 48px 46px 58px}
 .rv-note,.rv-more{font-size:13px}
 .rv-meta,.rv-count{font-size:11px}.rv-srow{font-size:12px;grid-template-columns:44px minmax(0,1.3fr) minmax(0,1fr) minmax(0,1.1fr);gap:6px}
 .rv-yrow{grid-template-columns:36px 34px repeat(4,minmax(0,1fr)) 40px;gap:4px;font-size:12px}.rv-all .rv-row{grid-template-columns:minmax(0,1fr) 50px 38px 50px}
}
/* BIZ-137 P1: Settings › Display › Disable animation now applies (the switch used to do nothing); the OS setting still wins on its own. */
body.reduce-motion *,body.reduce-motion *::before,body.reduce-motion *::after{animation-duration:0s!important;animation-iteration-count:1!important;transition-duration:0s!important;scroll-behavior:auto!important}
/* BIZ-137 P2: streak badge on the day summary; days that reached the Daily streak target carry a small flame under the number. */
.streak-badge{margin-left:2px;padding:1px 7px;border-radius:10px;background:var(--soft);color:#8a8a8a;font-weight:600;white-space:nowrap;cursor:default}
.streak-badge.reached{background:color-mix(in srgb,var(--accent) 22%,var(--surface));color:#434343}
body.dark .streak-badge.reached{color:#eee}
/* FCF-101: the longest streak keeps its own readable colour (the unreached badge text is dimmed): 4.5:1+ on both themes. */
.streak-longest{color:#5a5a5a;font-weight:500}
body.dark .streak-longest{color:#d0d0d0}
.day-cell.reached .day-box::before{content:'';position:absolute;top:3px;right:4px;width:5px;height:5px;border-radius:50%;background:var(--accent)}
/* BIZ-137 P5: Settings › Category — Archive / Restore beside every category; archived ones sit under a fold, muted. */
.category-entry .category-archive{flex:none;padding:5px 10px;font-size:11px;min-height:28px}
.category-entry.archived input[type=text]{color:#8a8a8a}
.archived-categories{margin-top:18px;border-top:1px solid var(--border);padding-top:8px}
.archived-categories summary{cursor:pointer;font-size:12px;color:#6b6b6b;padding:6px 0}
body.dark .archived-categories summary{color:#a8a8a8}
/* BIZ-137 P6: a disabled Notes field reads as a hint, not as broken. */
.notes-input:disabled{color:#8a8a8a;cursor:default}
.notes-input:disabled::placeholder{color:#9a9a9a}
/* Report arrows are inert on All history. */
.report-calendar .tiny-square:disabled{opacity:.35}
@media(max-width:600px){.category-entry{flex-wrap:wrap}.category-entry .category-archive{min-height:44px;padding:8px 14px}.streak-badge{padding:2px 8px}}
/* Build 30 · build 30: UI audit fixes (contrast, focus, phone targets, toasts over dialogs, dark switches, web calendar width). */
:root{--focus-ring:#1d4ed8}
body.dark{--focus-ring:#8ab4ff}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px}
.timer-value{color:#6b6b6b}
.timer-status{color:#6b6b6b}
.timer-status.is-paused{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#1f1f1f}
body.dark .timer-status.is-paused{color:#f2f2f2}
.timer-pane.overflow .timer-status.is-paused,.timer-pane.rest .timer-status.is-paused{color:var(--on-accent,#fff)}
.day-box small{color:#5f5f5f}
/* FCF-308: the day number and the day total reach 4.5:1 in light, dark and glass, also over the accent glow behind the week strip on a phone (were #888 / #777, 3.06–4.37:1). */
.day-box strong,.day-total{color:#595959}
body.dark .day-box strong,body.dark .day-total,body.dark .day-box small{color:#aaa}
.metric-change.positive{color:#3f8a2a}
body.dark .metric-change.positive{color:#8fd16a}
.todo-row.done{opacity:1;color:#767676}
.todo-row.done .todo-meta{color:#767676}
body.dark .todo-row.done,body.dark .todo-row.done .todo-meta{color:#9a9a9a}
.muted{color:#6f6f6f}
body.dark .muted{color:#a3a3a3}
.danger{color:#b4233a}
body.dark .danger{color:#ff8a9b}
.circle{color:color-mix(in srgb,var(--accent) 45%,#000)}
body.dark .circle{color:color-mix(in srgb,var(--accent) 55%,#fff)}
.timer-pane.overflow .circle,.timer-pane.rest .circle{color:var(--on-accent,#fff)}
body.dark .setting-link.active{background:var(--accent);color:var(--on-accent,#fff)}
.setting-link.setting-muted>span:first-of-type{opacity:.72}
.setting-badge{margin-left:auto;margin-right:6px;font-size:10px;font-weight:600;letter-spacing:.02em;padding:2px 6px;border-radius:8px;background:#ececec;color:#555;white-space:nowrap}
body.dark .setting-badge{background:#3a3a3a;color:#cfcfcf}
.setting-link.active .setting-badge{background:color-mix(in srgb,var(--on-accent,#fff) 22%,transparent);color:inherit}
.switch{background:#b5b5b5}
body.dark .switch{background:#5a5a5a}
body.dark .switch:checked{background:var(--accent)}
#modal-root:not(:empty)~#toast{top:max(12px,env(safe-area-inset-top));bottom:auto}
#rail .phone-calendar-button{display:none}
.start-button{white-space:nowrap}
.notes-list{padding-bottom:84px}
.record-open{all:unset;cursor:pointer;display:block;max-width:100%}
.record-open:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px;border-radius:3px}
.popup-categories button.current{font-weight:700}
.category-current{margin-left:auto;padding-left:8px;color:var(--focus-ring)}
.timeline.no-cal-events>.event,.timeline.no-cal-events>[data-active-event]>.event{--ev-l:56px}
.timeline.no-cal-events .cal-events{display:none}
.chart-bars{gap:clamp(1px,calc(160px / var(--day-count,7)),4px)}
.chart-by-week .chart-day,.chart-by-month .chart-day{white-space:nowrap}
.rc-scroll{background:linear-gradient(to right,var(--surface,#fff) 30%,transparent),linear-gradient(to left,var(--surface,#fff) 30%,transparent) 100% 0,radial-gradient(farthest-side at 0 50%,#0000002e,transparent),radial-gradient(farthest-side at 100% 50%,#0000002e,transparent) 100% 0;background-repeat:no-repeat;background-size:36px 100%,36px 100%,12px 100%,12px 100%;background-attachment:local,local,scroll,scroll}
.intention-title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.skip-link{position:absolute;left:8px;top:-60px;z-index:60;background:#1f1f1f;color:#fff;padding:8px 12px;border-radius:6px}
.skip-link:focus{top:8px}
@media (max-width:600px){
 .record-times input[type=time]{font-size:clamp(16px,5vw,24px)}
 input,select,textarea{font-size:16px}
 .record-row [data-copy],.todo-row button,.report-filter button,.segmented button,.lens-tabs button,.dialog .close,.dist-caret,.hotkey-clear{min-height:40px;min-width:40px}
 .todo-row input[type=checkbox]{width:22px;height:22px}
 .dist-toggle{min-height:36px}
 .category-pill,.time-pill{min-height:34px}
 .category-pill{max-width:calc(100% - 96px)}
}
/* Build 30 · voice commands, the command bar (⌘K) and the "?" sheet */
.timer-pane .voice-corner{top:76px;right:24px;z-index:7}
.timer-pane.minimal .voice-corner,.timer-pane.full .voice-corner{display:none}
#rail .rail-voice svg{width:17px;height:17px}
.command-dialog{width:min(560px,100%);align-self:start;margin-top:12vh}
.command-row{display:flex;gap:10px;align-items:center}
.command-row input{flex:1;min-width:0;font-size:16px;padding:12px 14px;border:1px solid #ddd;border-radius:12px;background:#fff}
.command-mic{flex:none;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--soft);border:1px solid #ddd;color:#555}
.command-mic svg{width:20px;height:20px}
.command-mic.listening{background:var(--accent);border-color:var(--accent);color:var(--on-accent,#fff);animation:mic-pulse 1.4s ease-in-out infinite}
@keyframes mic-pulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent) 45%,transparent)}50%{box-shadow:0 0 0 10px color-mix(in srgb,var(--accent) 0%,transparent)}}
@media (prefers-reduced-motion:reduce){.command-mic.listening{animation:none}}
body.reduce-motion .command-mic.listening{animation:none}
.command-status{margin:10px 2px 0;color:#666;min-height:1.3em}
.command-preview{margin:4px 2px 0;font-weight:600;min-height:1.3em}
.command-preview.unknown{color:#b3261e;font-weight:400}
.command-help{margin-top:12px;border-top:1px solid #e5e5e5;padding-top:8px}
.command-help summary{cursor:pointer;color:#666;padding:4px 0}
.voice-examples{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:8px}
.voice-group{background:#fff;border:1px solid #eee;border-radius:12px;padding:10px 12px}
.voice-group h4{margin:0 0 6px;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#888}
.voice-row{display:grid;gap:1px;padding:5px 0;border-top:1px solid #f1f1f1}
.voice-row:first-of-type{border-top:0}
.voice-row span{color:#555}
.voice-row small{color:#888}
.sheet-dialog{width:min(860px,100%)}
.sheet-head{display:flex;gap:10px;align-items:center;margin:2px 0 4px}
.sheet-head input{flex:1;min-width:0;padding:9px 12px;border:1px solid #ddd;border-radius:10px;background:#fff}
.sheet-where{flex:none;font-size:11px;padding:3px 8px;border-radius:99px;background:var(--soft);border:1px solid #e3e3e3;color:#666}
.sheet-tabs{margin:10px 0 12px}
.sheet-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px}
.sheet-card{background:#fff;border:1px solid #eee;border-radius:14px;padding:12px 14px}
.sheet-card h3{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:13px}
.sheet-card h3 svg{width:16px;height:16px;color:var(--accent)}
.sheet-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 0;border-top:1px solid #f2f2f2}
.sheet-row:first-of-type{border-top:0}
.sheet-label{display:grid;gap:1px}
.sheet-label small{color:#888;font-size:11px}
.sheet-keys{flex:none;display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:2px}
.sheet-keys .keycaps{white-space:nowrap}
.sheet-or{color:#aaa;margin:0 4px}
.sheet-text{color:#555;text-align:right}
.sheet-foot{color:#777;font-size:12px;margin:12px 2px 0}
.sheet-voice-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:6px}
.sheet-voice-head p{flex:1 1 100%;margin:0 0 4px}
.sheet-voice-head svg,.stats-box .solid svg{width:15px;height:15px;vertical-align:-3px;margin-right:4px}
.link-button{background:none;border:0;padding:0;color:var(--accent);text-decoration:underline;text-underline-offset:2px;cursor:pointer}
body.dark .command-row input,body.dark .sheet-head input{background:#1b1b1b;border-color:#444}
body.dark .command-mic{border-color:#444;color:#ccc}
body.dark .voice-group,body.dark .sheet-card{background:#1d1d1d;border-color:#333}
body.dark .voice-row,body.dark .sheet-row{border-color:#2c2c2c}
body.dark .command-help{border-color:#333}
body.dark .sheet-where{border-color:#444;color:#bbb}
body.dark .command-status,body.dark .voice-row span,body.dark .sheet-text{color:#bbb}
@media (max-width:800px){.timer-pane .voice-corner{top:69px;right:12px}}
@media (max-width:600px){
 .timer-pane .voice-corner{display:grid;top:24px;left:24px;right:auto;width:36px;height:36px;border:0;background:var(--soft)}
 .command-dialog{margin-top:0;align-self:end}
 .sheet-grid{grid-template-columns:1fr}
 .sheet-keys{max-width:58%}
}
.voice-note{display:block;color:#888;font-size:11px;margin-top:2px}
/* FCF-129: Session duration like Session: a small box with Start Time (▲▼) and Duration h + m, big SAVE over CANCEL.
   FCF-553: the field rules sit on .start-duration, which Edit Session (⌘⇧D) carries too, with Start Time and Duration side by side. */
.dialog:has(.session-duration){width:min(300px,100%);padding:22px 22px 18px}
.dialog:has(.session-duration)>h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);margin:0}
.dialog:has(.session-duration)>.close{display:none}
.start-duration label.field{margin:0 0 14px}
.start-duration .pair label.field{margin:14px 0}
.start-duration .time-step{display:flex;align-items:stretch;gap:6px}
.start-duration .time-step .time-first{flex:1;display:block}
.start-duration .stepper{display:grid;grid-template-rows:1fr 1fr;border:1px solid #d2d2d2;border-radius:5px;overflow:hidden;background:#fff}
.start-duration .stepper button{font-size:8px;line-height:1;padding:0 8px;color:#444;background:#fff}
.start-duration .stepper button+button{border-top:1px solid #d2d2d2}
.start-duration .duration-inputs input{width:72px}
/* FCF-235: the hour and minute pickers sit side by side; the dialog's select is otherwise full width */
.dialog .duration-inputs select{width:auto;min-width:76px}
.dialog:has(.session-duration) footer{flex-direction:column;align-items:stretch;gap:8px;margin-top:6px}
.session-save{padding:12px;font-weight:700;letter-spacing:.04em;border-radius:8px}
.session-cancel{background:transparent;color:#303030;border:1px solid var(--accent);font-weight:600;letter-spacing:.04em;padding:10px;border-radius:8px}
body.dark .start-duration .stepper,body.dark .start-duration .stepper button{background:#2b2b2b;color:#eee;border-color:#585858}
/* Start Time as a button for the iOS wheel, the day when it is not today, quick picks */
.start-duration .start-pick{display:block;width:100%;text-align:left;border:1px solid #dedede;border-radius:5px;background:var(--surface);padding:8px;font-variant-numeric:tabular-nums}
.start-duration .start-day{font-size:12px;opacity:.65}
.start-duration .start-day:empty{display:none}
.start-duration .start-chips{display:flex;flex-wrap:wrap;gap:6px;margin:-6px 0 14px}
.start-duration .start-chips button{border:1px solid #d2d2d2;border-radius:999px;padding:4px 10px;font-size:12px;background:var(--surface);color:inherit}
body.dark .start-duration .start-pick{background:#272727;border-color:#444;color:#ddd}
body.dark .start-duration .start-chips button{background:#2b2b2b;border-color:#585858;color:#eee}
body.dark .session-cancel{background:transparent;color:#f2f2f2;border-color:var(--accent)}
body.dark .session-cancel:hover{background:#444;color:#f2f2f2}
/* FCF-136: the whole bottom bar opens the timer, not only the arrows */
.mini-bar{cursor:pointer}.mini-bar button{cursor:pointer}
/* FCF-117: like Session, the app frame (main buttons, switches, selected row, + button) is Session's moss green; the category colour stays on dots, calendar blocks, charts and the timer. */
:root{--chrome:#004736;--on-chrome:#fff}
.setting-link.active,body.dark .setting-link.active,.solid,.start-button,.add-circle,.empty-todo button,.filter-done,.history-play{background:var(--chrome);color:var(--on-chrome)}
.switch:checked,body.dark .switch:checked,.native-filter-row input:checked{background:var(--chrome)}
/* FCF-117: colour picker limited to Session's colours */
.color-pick{position:relative;flex:none}
.color-pick>summary{list-style:none;width:28px;height:28px;border-radius:50%;background:var(--sw);border:2px solid var(--surface,#fff);box-shadow:0 0 0 1px #0003;cursor:pointer}
.color-pick>summary::-webkit-details-marker{display:none}
.color-pick[open]>.swatches{position:absolute;z-index:30;top:34px;left:0;width:max-content;background:#fff;color:#222;border:1px solid #0002;border-radius:10px;box-shadow:0 8px 24px #0003;padding:8px}
.swatches{display:flex;flex-direction:column;gap:6px}.swatch-row{display:flex;gap:6px}
.swatch{display:block;width:22px;height:22px;border-radius:50%;background:var(--sw);border:0;padding:0;cursor:pointer;position:relative}
.swatch input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.swatch.selected,.swatch:has(input:checked){box-shadow:0 0 0 2px #fff,0 0 0 4px #222}
body.dark .color-pick[open]>.swatches{background:#1f1f1f;color:#eee;border-color:#fff3}
body.dark .swatch.selected,body.dark .swatch:has(input:checked){box-shadow:0 0 0 2px #1f1f1f,0 0 0 4px #eee}
.recolor-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--sw);margin:0 4px -1px 0;box-shadow:0 0 0 1px #0003}
/* FCF-123: drag handle to reorder Todos */
.todo-handle{flex:none;background:none;border:0;padding:6px 2px;color:#8a8a8a;font-size:14px;letter-spacing:-3px;line-height:1;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.todo-handle:hover{color:#444}body.dark .todo-handle:hover{color:#ddd}
.todo-meta .todo-linear{color:inherit;text-decoration:underline;text-underline-offset:2px}
.todo-row.dragging{position:relative;z-index:5;background:var(--surface,#fff);box-shadow:0 8px 22px #0003;cursor:grabbing}
/* FCF-324: the other rows slide aside while one is dragged; the lifted row glides into its gap on release (no drop line any more) */
.todo-row.todo-shift{transition:transform .2s cubic-bezier(.2,0,0,1)}
.todo-row.dragging{transition:none;will-change:transform}
.todo-row.dragging.todo-drop{transition:transform .18s cubic-bezier(.2,0,0,1)}
body.reduce-motion .todo-row.todo-shift,body.reduce-motion .todo-row.dragging.todo-drop{transition:none}
@media(prefers-reduced-motion:reduce){.todo-row.todo-shift,.todo-row.dragging.todo-drop{transition:none}}
@media(pointer:coarse){.todo-handle{padding:12px 6px;font-size:16px}}
/* FCF-115/116: calendars shown + open calendar */
.cal-event{cursor:pointer}
.cal-group{margin:8px 0 14px}.cal-group h4{margin:0 0 6px;font-size:12px;font-weight:600;color:#6b6b6b;text-transform:uppercase;letter-spacing:.04em}
body.dark .cal-group h4{color:#a8a8a8}
.cal-pick{display:flex;align-items:center;gap:8px;padding:6px 0;min-height:32px;cursor:pointer}
.cal-pick input{width:16px;height:16px;margin:0;accent-color:var(--chrome,#004736)}
@media(pointer:coarse){.cal-pick{min-height:44px}}
/* FCF-138: Report period buttons at the top */
.report-header>.segmented.period-segments{display:flex;width:max-content;max-width:100%;margin:0 auto 8px;overflow-x:auto}
.period-segments button{min-height:32px;padding:5px 16px;font-size:13px;white-space:nowrap}
.period-segments button.active{font-weight:600}
/* FCF-118: Settings › What's new — search, version headings, Current/New marks; own colours in light and dark. */
.whatsnew-search{width:100%;box-sizing:border-box;margin:4px 0 6px;padding:7px 10px;border:1px solid #d0d0d0;border-radius:8px;background:#fff;color:#1d1d1f;font:inherit;font-size:13px}
.whatsnew-search::placeholder{color:#8a8a8a}
body.dark .whatsnew-search{background:#1f1f1f;color:#eee;border-color:#444}
body.dark .whatsnew-search::placeholder{color:#8f8f8f}
.whatsnew-version h4{margin:16px 0 2px;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#6b6b6b}
body.dark .whatsnew-version h4{color:#a0a0a0}
.whatsnew-build summary span{margin-left:auto}
.whatsnew-tag{margin-left:8px;padding:0 6px;border-radius:8px;font-style:normal;font-size:10px;font-weight:600;line-height:16px;background:#e6efec;color:#004736}
.whatsnew-tag.new,.setting-badge.setting-new{background:#004736;color:#fff}
body.dark .whatsnew-tag{background:#23302c;color:#bfe3d6}
body.dark .whatsnew-tag.new,body.dark .setting-badge.setting-new{background:#2f8f6f;color:#fff}
.setting-link.active .setting-badge.setting-new{background:#fff;color:#004736}
.whatsnew-all{margin-top:10px}
[data-whatsnew-item][hidden],[data-whatsnew-build][hidden],[data-whatsnew-version][hidden]{display:none}
/* FCF-140: Park it — capture button with a count, the Park dialog, the Thoughts list; own colours in light and dark. */
.timer-pane .capture-corner{top:114px;right:24px;z-index:7}
.timer-pane.minimal .capture-corner,.timer-pane.full .capture-corner{display:none}
@media (max-width:800px){.timer-pane .capture-corner{top:107px;right:12px}}
@media (max-width:600px){.timer-pane .capture-corner{display:none}.phone-capture .capture-badge{top:2px;right:2px}}
.capture-badge{position:absolute;top:-6px;right:-6px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#004736;color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center;box-shadow:0 0 0 2px #fff}
body.dark .capture-badge{background:#2f8f6f;color:#fff;box-shadow:0 0 0 2px #1b1b1b}
.parked-chip{display:flex;width:max-content;max-width:100%;align-items:center;gap:6px;margin:10px auto 0;padding:5px 12px;border-radius:999px;border:1px solid #d9e6e1;background:#f1f7f4;color:#004736;font-size:12px;font-weight:600}
.parked-chip svg{width:15px;height:15px}
body.dark .parked-chip{background:#1f2d28;border-color:#2f4a40;color:#bfe3d6}
.timer-pane.rest .parked-chip,.timer-pane.overflow .parked-chip{background:transparent;border-color:currentColor;color:var(--on-accent,#fff)}
.capture-dialog{width:min(460px,100%)}
.capture-kinds{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:2px 0 10px}
.capture-kind{position:relative;display:flex;align-items:flex-start;gap:8px;padding:10px;border:1.5px solid #e1e1e1;border-radius:12px;background:#fff;color:#1d1d1f;cursor:pointer}
.capture-kind input{position:absolute;opacity:0;pointer-events:none}
.capture-kind svg{flex:none;width:18px;height:18px;margin-top:1px;color:#004736}
.capture-kind strong{display:block;font-size:13px}
.capture-kind small{display:block;font-size:11px;line-height:1.35;color:#6b6b6b}
.capture-kind:has(input:checked){border-color:#004736;background:#f1f7f4;box-shadow:0 0 0 3px #00473622}
.capture-kind:has(input:focus-visible){outline:2px solid #004736;outline-offset:2px}
body.dark .capture-kind{background:#2a2a2a;border-color:#3d3d3d;color:#eee}
body.dark .capture-kind small{color:#a8a8a8}
body.dark .capture-kind svg{color:#7fd1b3}
body.dark .capture-kind:has(input:checked){border-color:#2f8f6f;background:#1f2d28;box-shadow:0 0 0 3px #2f8f6f33}
.capture-from{display:flex;align-items:center;gap:6px;margin:0 0 6px;font-size:12px;color:#6b6b6b;overflow:hidden}
.capture-from span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.capture-from svg{flex:none;width:13px;height:13px}
body.dark .capture-from{color:#a8a8a8}
#capture-text{display:block;width:100%;min-height:64px;resize:vertical;padding:10px 12px;border:1px solid #d0d0d0;border-radius:10px;background:#fff;color:#1d1d1f;font-size:15px;line-height:1.4}
#capture-text::placeholder{color:#8a8a8a}
body.dark #capture-text{background:#1b1b1b;border-color:#444;color:#eee}
body.dark #capture-text::placeholder{color:#8f8f8f}
.capture-hint{margin:6px 0 0;font-size:11px;color:#767676}
/* FCF-159: the two stores, left of Park (Later = Tasks, Thoughts). Buttons are .secondary, which sets its own colours in light and dark. */
.capture-dialog footer{align-items:center}
.capture-stores{display:flex;flex-wrap:wrap;gap:6px;margin-right:auto}
.capture-stores button{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;font-size:12px}
.capture-stores svg{flex:none;width:14px;height:14px}
.capture-stores svg:last-child{width:12px;height:12px;opacity:.65}
@media (max-width:600px){.capture-stores{width:100%;margin-right:0}.capture-stores button{flex:1;justify-content:center}}
body.dark .capture-hint{color:#9a9a9a}
/* FCF-450: three places (Today · Later · Thought) and, for Today, where in the list — a segmented row under the text, so the caret never moves while Tab walks the places. Own colours in light and dark. */
.capture-dialog{width:min(520px,100%)}
.capture-kinds{grid-template-columns:repeat(3,1fr)}
.capture-where{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0 0}
.capture-where[hidden]{display:none}
.capture-where-label{font-size:11px;font-weight:600;color:#6b6b6b;margin-right:2px}
.capture-at{position:relative;display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;padding:5px 10px;border:1px solid #d0d0d0;border-radius:999px;background:#fff;color:#1d1d1f;font-size:12px;cursor:pointer}
.capture-at input{position:absolute;opacity:0;pointer-events:none}
.capture-at span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.capture-at em{font-style:normal;font-weight:600}
.capture-at kbd{flex:none;font:600 10px/1 -apple-system,system-ui,sans-serif;padding:2px 4px;border-radius:4px;background:#ececec;color:#555}
.capture-at:has(input:checked){border-color:#004736;background:#004736;color:#fff}
.capture-at:has(input:checked) kbd{background:rgba(255,255,255,.2);color:#fff}
.capture-at:has(input:focus-visible){outline:2px solid #004736;outline-offset:2px}
.capture-at:has(input:disabled){cursor:not-allowed;color:#8a8a8a;background:#f5f5f5;border-style:dashed}
body.dark .capture-where-label{color:#a8a8a8}
body.dark .capture-at{background:#2a2a2a;border-color:#444;color:#eee}
body.dark .capture-at kbd{background:#3a3a3a;color:#ccc}
body.dark .capture-at:has(input:checked){border-color:#2f8f6f;background:#2f8f6f;color:#fff}
body.dark .capture-at:has(input:checked) kbd{background:rgba(255,255,255,.2);color:#fff}
body.dark .capture-at:has(input:disabled){background:#222;color:#7a7a7a}
@media (hover:none){.capture-at kbd{display:none}}
@media (max-width:600px){.capture-kinds{gap:6px}.capture-kind{align-items:center;justify-content:center;gap:6px;padding:9px 6px}.capture-kind strong{white-space:nowrap}.capture-kind small{display:none}.capture-at{flex:1 1 auto}.capture-stores button{gap:4px;padding:7px 4px;white-space:nowrap}.capture-stores svg:last-child{display:none}}
@media (hover:none) and (max-width:600px){.capture-hint{display:none}}
.parked-list{display:grid;gap:8px;margin:8px 0}
/* FCF-160: bulk row above the list (from 2 thoughts up); .secondary sets its own colours in light and dark. */
.parked-bulk{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;margin:8px 0 0}
.parked-bulk button{display:inline-flex;align-items:center;gap:4px;padding:5px 9px;font-size:12px}
.parked-bulk svg{width:13px;height:13px}
.parked-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e6e6e6;border-radius:12px;background:#fff;color:#1d1d1f}
.parked-text{flex:1;min-width:0}
.parked-text p{margin:0 0 2px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.parked-text small{font-size:11px;color:#6b6b6b}
.parked-actions{display:flex;flex:none;gap:6px}
.parked-actions button{display:inline-flex;align-items:center;gap:4px;padding:5px 9px;font-size:12px}
.parked-actions svg{width:13px;height:13px}
body.dark .parked-row{background:#2a2a2a;border-color:#3d3d3d;color:#eee}
body.dark .parked-text small{color:#a8a8a8}
.parked-empty{display:flex;align-items:center;gap:8px;font-weight:600;color:#004736}
.parked-empty svg{width:16px;height:16px}
body.dark .parked-empty{color:#7fd1b3}
.thoughts-local{margin-top:8px;text-align:center}
@media (max-width:600px){.parked-row{flex-wrap:wrap}.parked-actions{width:100%;justify-content:flex-end}}
/* FCF-226: the footer buttons sit at the bottom-left (a quick left-thumb press) and stay pinned while the form scrolls; the shadow
   paints the dialog colour over the padding below them, so nothing scrolls into view there. Delete goes to the right end. */
.dialog footer.dialog-actions{--bar-bg:#fafafa;position:sticky;bottom:0;z-index:2;justify-content:flex-start;align-items:center;margin-top:14px;padding-top:12px;border-top:1px solid var(--border,#ececec);background:var(--bar-bg);box-shadow:0 0 0 30px var(--bar-bg);clip-path:inset(0 -30px -30px -30px)}
body.dark .dialog footer.dialog-actions{--bar-bg:#222}
.dialog-extra{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-left:auto}
/* FCF-408: Play is the first button of the Edit Session footer, before Cancel */
.dialog-actions .record-play{display:inline-flex;align-items:center;gap:6px}
.dialog-actions .record-play svg{width:16px;height:16px;flex:none}
/* FCF-409: the apps used under a session on the calendar: one line, cut with an ellipsis; room is kept for the duration at the bottom right */
.event .event-apps{display:block;font-size:10px;font-weight:500;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:46px}
.event.laned .event-apps{margin-right:0}
.native-filter-dialog footer.dialog-actions{position:static;margin:0;padding-top:20px;border:0;background:none;box-shadow:none;clip-path:none}
.dialog:has(.session-duration) footer.dialog-actions{margin-top:6px;padding-top:0;border:0}
/* FCF-225: quick times under Start (the previous Session's end) and End (now) */
.record-chip{grid-row:2;justify-self:start;align-self:start;border:1px solid #d2d2d2;border-radius:999px;padding:5px 11px;font-size:12px;line-height:1.3;background:#fff;color:#303030}
.record-chip-start{grid-column:1}
.record-chip-end{grid-column:3}
.record-chip[hidden]{display:none}
.record-chip:disabled{opacity:.55;cursor:default}
body.dark .record-chip{background:#2b2b2b;color:#e6e6e6;border-color:#585858}
/* FCF-254: Now and Next Session share the End column and wrap on a narrow phone. */
.record-chips-end{grid-row:2;grid-column:3;justify-self:start;align-self:start;display:flex;flex-wrap:wrap;gap:6px}
/* FCF-648: Fill the gap gets its own row under both quick times. */
.record-chip-gap{grid-row:3;grid-column:1/-1}
/* Swiping the day calendar slides the new day in from the side it came from. */
.calendar-scroll.day-swipe-next,.reports.day-swipe-next{animation:day-swipe-next .22s ease-out}.calendar-scroll.day-swipe-prev,.reports.day-swipe-prev{animation:day-swipe-prev .22s ease-out}@keyframes day-swipe-next{from{transform:translateX(40px);opacity:.4}to{transform:none;opacity:1}}@keyframes day-swipe-prev{from{transform:translateX(-40px);opacity:.4}to{transform:none;opacity:1}}@media(prefers-reduced-motion:reduce){.calendar-scroll.day-swipe-next,.calendar-scroll.day-swipe-prev,.reports.day-swipe-next,.reports.day-swipe-prev{animation:none}}
/* FCF-169: iPhone fit-to-width. A long unbroken intention (a link, a word with no spaces) wraps instead of widening Report; the What's new date line drops under the build name on narrow screens. */
.distribution-row>span{min-width:0;overflow-wrap:anywhere}
.changelog-build summary{flex-wrap:wrap;row-gap:2px}
/* FCF-173: key hints on the Finish question's buttons. kbd.cap keeps its own background and text colour in both themes, so it reads on the green button too. */
.dialog footer .keycaps{display:inline-flex;margin-left:8px;vertical-align:middle}.dialog footer kbd.cap{height:18px;min-width:18px;padding:0 5px;font-size:10px}
/* FCF-224: Review matrix, an average a day under each period's time; on a phone the "/d" goes and one key line names the lines. */
.rv-avg-short,.rv-key{display:none}
@media(max-width:520px){.rv-avg-long{display:none}.rv-avg-short{display:inline}.rv-key{display:block;margin:0 0 6px;font-size:11px;color:var(--rv-muted);text-align:right}}
/* Each time in the matrix shrinks to fit its column on a phone (2,108h · 20,700h); a short one keeps 13 px. */
@media(max-width:520px){.rv-matrix .rv-cell{container-type:inline-size}.rv-num{white-space:nowrap;font-size:max(9px,min(1em,calc(100cqi / var(--w))))}}
/* FCF-239: dark theme. The rail icons (#555 on #202020, 2.2:1) read at about 7:1; the current page keeps its accent. */
body.dark #rail button{color:#a8a8a8}
@media(max-width:600px){body.dark #rail button[aria-current=page]{color:var(--accent)}}
body.dark #rail .distract-icon{color:#a8a8a8}
/* FCF-297 (X3): sessions an agent logged (Claude Code, AppleScript `log agent session`) sit apart from your own: hatched, a dashed
   edge and 🤖 in the name. "Side by side" halves the session area — yours on the left, the agent's on the right — with a dashed
   divider and two captions that stay at the top while you scroll. The chooser sits in the day summary line. */
.event.agent{background:repeating-linear-gradient(45deg,#ffffff30 0 3px,transparent 3px 8px),var(--event-color);border:1px dashed #fffc}
.agent-badge{margin-left:2px;padding:1px 7px;border-radius:10px;background:var(--soft);color:#8a8a8a;white-space:nowrap;cursor:default}
.lane-seg{margin-left:4px;display:inline-flex;gap:2px}
.lane-seg button{padding:1px 7px;border-radius:9px;font-size:10px;font-weight:600;color:#8a8a8a;background:var(--soft);white-space:nowrap}
.lane-seg button[aria-pressed=true]{background:var(--chrome);color:var(--on-chrome)}
.timeline.split-lanes:after{content:'';position:absolute;top:0;bottom:0;left:calc(52% + 41.5% / 2);border-left:1px dashed #c6c6c6;pointer-events:none}
.timeline.split-lanes:not(.no-cal-events):after{left:calc(var(--cal-l) + var(--cal-half) + (100% - var(--cal-l) - var(--cal-half) - var(--cal-r)) / 2)}
/* FCF-564: the labels sit in their own strip above the scrolling day (.cal-caps, same column variables as .timeline), never over a block */
.cal-caps{position:relative;flex:none;height:20px;--cal-l:46px;--cal-r:8px;--cal-gap:6px;--cal-half:calc((100% - var(--cal-l) - var(--cal-r) + var(--cal-gap)) / 2)}
.lane-caps{position:absolute;inset:0;pointer-events:none}
.lane-caps span{position:absolute;top:3px;font-size:9px;font-weight:700;color:#777;background:var(--surface);padding:0 6px;border-radius:7px;border:1px solid #e3e3e3;white-space:nowrap}
.cal-caps.split-lanes .cap-mine{left:calc(52% + 4px)}
.cal-caps.split-lanes .cap-agent{left:calc(52% + 41.5% / 2 + 4px)}
.cal-caps.split-lanes:not(.no-cal-events) .cap-mine{left:calc(var(--cal-l) + var(--cal-half) + 4px)}
.cal-caps.split-lanes:not(.no-cal-events) .cap-agent{left:calc(var(--cal-l) + var(--cal-half) + (100% - var(--cal-l) - var(--cal-half) - var(--cal-r)) / 2 + 4px)}
body.dark .lane-caps span{color:#bbb;border-color:#444}
body.dark .timeline.split-lanes:after{border-left-color:#555}
/* FCF-298 (X3.3): the bar between the two panes can be dragged (the timer pane keeps 320px, the calendar 360px); the share is
   --split-left on #app, stored in Settings (device-only). Double-click puts it back to half. One column on a phone: no bar. */
.split{position:relative;grid-template-columns:minmax(320px,var(--split-left,50%)) minmax(360px,1fr)}
.split-handle{position:absolute;top:0;bottom:0;left:var(--split-left,50%);width:9px;margin-left:-4px;cursor:col-resize;z-index:7;touch-action:none}
.split-handle:after{content:'';position:absolute;top:0;bottom:0;left:4px;width:1px;background:transparent;transition:background .15s}
.split-handle:hover:after,.split-handle.dragging:after{background:var(--accent);width:2px;left:3px}
@media (max-width:800px){.split{grid-template-columns:1fr}.split-handle{display:none}}
/* FCF-300/301 (X3.5/X3.6): the Agent box in Report and the agent list on the Todo Today tab. */
.report-filter .lane-seg{margin-right:4px}
.agent-box h3{margin:0 0 12px;font-size:13px}
.agent-intentions{margin-top:14px;border-top:1px solid #eee;padding-top:8px}
.agent-intentions .intention-row{grid-template-columns:1fr auto auto}
body.dark .agent-intentions{border-color:#3b3b3b}
.agent-todo{margin:12px 0 4px;padding:10px 12px;border:1px dashed #bbb;border-radius:8px;background:#fafafa;color:#222}
.agent-todo h3{margin:0 0 6px;font-size:12px;font-weight:700;display:flex;align-items:center;gap:8px}
.agent-live{font-size:10px;font-weight:600;color:#0f5b45;background:#d9efe6;border-radius:9px;padding:1px 7px;white-space:nowrap;display:inline-block}
.agent-row{display:flex;gap:9px;align-items:center;width:100%;text-align:left;padding:6px 4px;border:0;background:none;color:inherit;font:inherit;cursor:pointer;border-radius:6px}
.agent-row:hover{background:#efefef}
.agent-row strong{font-size:12px;display:block}
.agent-text{flex:1;min-width:0}
.agent-text .todo-meta{display:block;margin-top:2px}
.agent-dot{width:8px;height:8px;border-radius:50%;background:#bbb;flex:none}
.agent-row.live .agent-dot{background:#0f8a62;box-shadow:0 0 0 0 #0f8a6266;animation:agent-pulse 1.6s infinite}
@keyframes agent-pulse{0%{box-shadow:0 0 0 0 #0f8a6266}70%{box-shadow:0 0 0 7px #0f8a6200}100%{box-shadow:0 0 0 0 #0f8a6200}}
.agent-done-head{margin:8px 0 2px;text-transform:uppercase;letter-spacing:.04em}
body.dark .agent-todo{background:#262626;border-color:#555;color:#ddd}
body.dark .agent-row:hover{background:#303030}
body.dark .agent-live{color:#8fd9bd;background:#1f3a31}
@media (prefers-reduced-motion:reduce){.agent-row.live .agent-dot{animation:none}}
/* FCF-322: the dialog error now scrolls into sight; #c44356 on the dark dialog was 3.25:1, this red is 7.09:1 on #222 */
body.dark .error{color:#ff8a9a}
/* FCF-329: on phones the group caret is a 40px tap target, so the step in is 40 + 2 + 14 + 8; a long name wraps instead of being cut */
/* Its per-day / per-week line steps in with it; the bars keep one zero line so their lengths still compare. */
@media(max-width:600px){.dist-leaf .dist-toggle{padding-left:64px}.dist-leaf .dist-toggle strong{white-space:normal;overflow-wrap:anywhere}.category-row.dist-leaf .dist-avgs{padding-left:64px}}
/* FCF-330/331: on phones Review is its own tab, and the Report / Review page scrolls as one, so its header and filters move away with the list */
@media(max-width:600px){
 .report-header>.segmented.report-modes{display:none}
 .reports{display:block;overflow-y:auto;overscroll-behavior-y:contain}
 .reports>.report-grid,.lens-page .lens-body{overflow:visible;min-height:0}
 /* the date row takes only what it shows (Day 104, Week 82, Year 69, All 34 px) instead of a fixed 112 px */
 .reports .report-calendar{height:auto!important}
}
/* FCF-332: the iPhone app draws under the status bar and the home indicator. Phones keep the top clear of the status bar
   and give the home indicator to the tab bar; wider layouts (iPhone on its side) keep all content inside the safe area. */
@media(max-width:600px){
 #app{padding-top:env(safe-area-inset-top,0px);grid-template-rows:minmax(0,1fr) calc(66px + env(safe-area-inset-bottom,0px))}
 #rail{padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
 .overlay{padding-top:max(18px,env(safe-area-inset-top,0px));padding-bottom:max(18px,env(safe-area-inset-bottom,0px))}
 .dialog{max-height:calc(var(--phone-height,100dvh) - max(18px,env(safe-area-inset-top,0px)) - max(18px,env(safe-area-inset-bottom,0px)))}
}
@media(min-width:601px){html.ios-app #app{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}}
/* FCF-331: the Report filter row stays one line on iPhone (its Share button used to drop to a second line: 54 → 102 px);
   "Show notes only" gives way first. Search and Filter draw their icons, since iOS has no font with ⌕ or ⌄. */
.report-filter [data-action=report-filter] svg{width:11px;height:11px;margin-left:2px;vertical-align:-1px}
@media(max-width:600px){
 .reports .report-filter{flex-wrap:nowrap}
 .reports .report-filter>button{flex:none}
 .phone-history-search .report-filter{flex-wrap:wrap}
 .report-filter label{min-width:0;overflow:hidden;text-overflow:ellipsis}
 .phone-report-search svg{width:20px;height:20px}
}
/* FCF-561: 📅 off hides the Calendar app's events; their label sits at the left of the day. The agent's column (Side by side) is beside yours in the right half (split-lanes). */
.timeline.cal-off .cal-events{display:none}
.lane-caps .cap-cal{left:calc(var(--cal-l) + 4px)}
.lane-seg .cal-toggle{padding:1px 6px}
.lane-seg .cal-toggle[aria-pressed=false]{filter:grayscale(1);opacity:.75}
/* FCF-336: on a phone the chooser gets its own centred row with buttons big enough to tap. */
@media(max-width:600px){.day-summary{height:auto;min-height:30px;flex-wrap:wrap;row-gap:4px;padding:4px 6px}.day-summary .lane-seg{flex-basis:100%;justify-content:center;margin:0;gap:4px}.day-summary .lane-seg button{min-height:32px;padding:6px 11px;font-size:12px;border-radius:16px}}
/* FCF-336: the unchosen buttons read at 4.5:1 on their grey pill in light and dark */
.lane-seg button[aria-pressed=false]{color:#5c5c5c}
body.dark .lane-seg button[aria-pressed=false]{color:#b4b4b4}
/* FCF-340: on a phone the Report filter row is one line pinned to the right (FCF-331), so the lane chooser overflowed to the left where nothing can scroll: All and Mine were off screen. It gets its own centred row on top, like the Calendar; the rest stays one line ("Show notes only" still gives way first). */
@media(max-width:600px){.reports .report-filter{flex-wrap:wrap;row-gap:6px}.reports .report-filter>.lane-seg{flex:0 0 100%;order:-1;justify-content:center;margin:0;gap:4px}.reports .report-filter>.lane-seg button{min-height:32px;min-width:0;padding:6px 11px;font-size:12px;border-radius:16px}.reports .report-filter>label{flex:1 1 0}}
/* FCF-340: a centred (or right-pinned) row wider than the screen spills past the left edge, where nothing scrolls. "safe" keeps the start on screen; on a 320 px phone the Review period buttons also get narrower so they fit. */
.lens-page .lens-controls.lens-top{justify-content:safe center}
@media(max-width:600px){.report-filter{justify-content:safe flex-end}}
@media(max-width:360px){.lens-controls .lens-seg button{padding:3px 8px}}
/* FCF-342, reworked: on a phone the calendar's top bars float over the hours. The scroller fills the pane and starts its hours below them (--cal-top, set by
   focus.js calTopSync); scrolling down slides the date bars away with a transform (--cal-hide) — no layout change, so the hours never jump and the native
   scroll and its bounce stay untouched. Once hours are under the bars they get a frosted background, like iOS bars. #app already keeps the status bar clear. */
@media(max-width:600px){#app[data-phone-screen=calendar] .calendar-pane{position:relative}#app[data-phone-screen=calendar] .calendar-pane>.calendar-scroll{position:absolute;inset:0;padding-top:var(--cal-top,0px);scroll-padding-top:var(--cal-top,0px)}#app[data-phone-screen=calendar] .calendar-pane>:not(.calendar-scroll):not(.calendar-bottom){position:relative;z-index:4;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .2s ease;will-change:transform}#app[data-phone-screen=calendar] .calendar-pane.cal-under>:not(.calendar-scroll):not(.calendar-bottom){background:color-mix(in oklab,var(--g-bg,var(--surface)) 96%,transparent);-webkit-backdrop-filter:blur(24px) saturate(170%);backdrop-filter:blur(24px) saturate(170%)}#app[data-phone-screen=calendar] .calendar-pane.cal-under>:has(+.calendar-scroll){box-shadow:0 1px 0 var(--g-line,rgba(127,127,127,.18))}#app.cal-compact[data-phone-screen=calendar] .calendar-pane>:not(.calendar-scroll):not(.calendar-bottom){transform:translateY(calc(-1 * var(--cal-hide,0px)))}#app.cal-compact[data-phone-screen=calendar] .calendar-pane>:is(.calendar-header,.day-summary,.brush){opacity:0;pointer-events:none}}
@media(max-width:600px) and (prefers-reduced-motion:reduce){#app[data-phone-screen=calendar] .calendar-pane>:not(.calendar-scroll):not(.calendar-bottom){transition:none}}
/* FCF-349 (night audit 11.10.26): small grey text reaches 4.5:1 in both themes (measured with getComputedStyle on the live page). Own lines, line 1 untouched. */
.now-line span{background:#d6262b}
body:not(.dark) .hour-label,body:not(.dark) .distribution-head,body:not(.dark) .data-pagination,body:not(.dark) .record-row p,body:not(.dark) .settings-inner h3,body:not(.dark) .phone-settings-extras h3,body:not(.dark) .voice-note,body:not(.dark) .mini-detail small,body:not(.dark) .voice-group h4,body:not(.dark) .voice-row small,body:not(.dark) .sheet-label small{color:#5f6368}
body:not(.dark) .sheet-or{color:#767676}
body:not(.dark) .guide-eyebrow,body:not(.dark) .usage-guide header p,body:not(.dark) .guide-note,body:not(.dark) .guide-shortcuts p,body:not(.dark) #guide-count{color:#5f6368}
.metric-grid small,.sheet-foot{color:#666}
body.dark .metric-grid small,body.dark .data-pagination,body.dark .record-row p,body.dark .sheet-foot,body.dark .voice-note{color:#9a9a9a}
body.dark .phone-settings-extras h3,body.dark .command-help summary{color:#b0b0b0}
.whatsnew-tag.new,body.dark .setting-badge.setting-new{background:#24785c}
/* FCF-349: the accent-coloured link in the ? sheet foot reached 3.5:1 (blue on white) and 4.3:1 on dark; mixed toward black or white it stays the accent hue at 5:1+. */
.link-button{color:color-mix(in srgb,var(--accent) 60%,#000)}
body.dark .link-button{color:color-mix(in srgb,var(--accent) 60%,#fff)}
/* FCF-349 (iPhone 375 px): the Settings back link (accent, 3.5:1) and the Review matrix small text (4.45:1 on its grey cell). */
body .phone-settings-back{color:color-mix(in srgb,var(--accent) 60%,#000)}
body.dark .phone-settings-back{color:color-mix(in srgb,var(--accent) 60%,#fff)}
#app{--rv-muted:#5f6368}
/* FCF-245: a finger needs a taller bottom edge to resize a Session block (7 px was hard to hit). Up to 24 px, but never more than a third of a short block, so its body still moves. */
@media(pointer:coarse){.event-resize{height:clamp(7px,34%,24px)}}
/* FCF-351: contents rows — the guide's sections and the ? sheet's groups, one tap away. Own background + text colour in both themes. */
.guide-toc,.sheet-toc{display:flex;flex-wrap:wrap;gap:8px}
.guide-toc{margin:6px 0 22px}
.sheet-toc{margin:0 0 12px}
.guide-toc button,.sheet-toc button{display:inline-flex;align-items:center;gap:6px;border:1px solid #d0d0d0;border-radius:999px;padding:6px 12px;background:#fff;color:#1d1d1f;font-size:13px;font-weight:600;line-height:1.3}
.sheet-toc button{padding:4px 10px;font-size:12px}
.guide-toc button small{color:#5f6368;font-weight:500;font-size:12px}
.guide-toc button:hover,.sheet-toc button:hover{border-color:#9a9a9a}
body.dark .guide-toc button,body.dark .sheet-toc button{background:#2a2a2a;border-color:#4a4a4a;color:#f2f2f2}
body.dark .guide-toc button small{color:#b0b0b0}
/* FCF-349 (round 2): on a touch screen (iPhone, iPad) the controls tapped most get a finger-sized target; with a mouse (Mac, web) every size stays as it was. */
@media(pointer:coarse){
.mini-bar>button:not(.circle){position:relative}
.mini-bar>button:not(.circle)::after{content:'';position:absolute;inset:-10px -4px}
.switch{width:51px!important;height:31px;border-radius:16px}
.switch:after{width:27px;height:27px}
.switch:checked:after{left:22px}
.setting-row:has(>.switch){flex-wrap:nowrap}
.setting-row:has(>.switch)>span{flex:1 1 auto;min-width:0}
.start-duration .stepper button{padding:0 14px;min-height:22px}
}
/* FCF-349 (round 2): on a phone the running-Session bar breaks "2:43:38 (+2:18:38)" over two lines, so the Intention keeps room (it was cut to 5 letters). */
@media(max-width:600px){.mini-bar [data-mini-clock]{width:min-content;text-align:right;line-height:1.2}}
/* FCF-349 (round 2): FCF-226's footer rule (align-items:center, later in this file) shrank the Session duration dialog's stacked SAVE / CANCEL (FCF-129) to two 56 px squares; they span the dialog again. */
.dialog:has(.session-duration) footer.dialog-actions{align-items:stretch}
.reminder-days{display:inline-flex;flex-wrap:wrap;gap:6px 12px;justify-content:flex-end}.reminder-days label{display:inline-flex;align-items:center;gap:4px;font-size:.92em}/* FCF-371 */
.breathe-overlay{position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:rgba(8,10,24,.92);color:#fff;cursor:pointer}.breathe-circle{width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.18);border:2px solid rgba(255,255,255,.6);transform:scale(.6);transition:transform 2s ease-in-out}.breathe-circle.in{transform:scale(1.25)}.breathe-text{font-size:1.4rem;font-weight:600;margin:0;color:#fff}.breathe-count{margin:0;color:rgba(255,255,255,.75)}.breathe-skip{color:#fff;border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.1);border-radius:8px;padding:6px 14px;font:inherit;cursor:pointer}/* FCF-381 */
/* FCF-415: Discard changes? sits over the dialog it asks about; on a phone its three buttons wrap */
.discard-dialog{width:min(360px,100%)}.discard-dialog h2{margin-bottom:8px}.discard-dialog footer{flex-wrap:wrap}.discard-dialog [data-discard=drop]{margin-right:auto}
/* FCF-377: Settings › Profile Settings › My profiles — cards, the simulation box and the edit dialog; each part sets its own text and background colour for light and dark */
.profile-own{border:1px solid #d9d9d9;border-radius:8px;background:#fff;color:#2b2b2b;margin:10px 0;padding:12px 14px}.profile-own.current{border-color:#6f8f17}.profile-own-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.profile-own-head strong{font-size:14px;overflow-wrap:anywhere}.profile-current{font-style:normal;font-size:11px;font-weight:600;padding:2px 8px;border-radius:10px;background:#e6f0cf;color:#2f4500}.profile-own-line{margin:6px 0 0;font-size:12px;line-height:1.5;background:transparent;color:#4a4a4a;overflow-wrap:anywhere}.profile-own-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.profile-own-actions button{padding:6px 12px}
body.dark .profile-own{background:#262626;color:#e6e6e6;border-color:#454545}body.dark .profile-own.current{border-color:#9dc134}body.dark .profile-current{background:#3b4a1a;color:#e8f5c8}body.dark .profile-own-line{color:#c8c8c8}
.profile-sim{margin:18px 0 8px;padding:12px 14px;border-radius:8px;border:1px solid #d6dbe6;background:#f5f7fb;color:#222}.profile-sim h4{margin:0 0 6px;font-size:13px}.profile-sim .settings-note{color:#444}.profile-sim-inputs{display:flex;flex-wrap:wrap;gap:8px}.profile-sim-inputs input,.profile-sim-inputs select{flex:1 1 160px;min-width:0;background:#fff;color:#222;border:1px solid #c3c9d6;border-radius:6px;padding:6px 8px}.profile-sim-result{margin:10px 0 6px;font-size:13px}.profile-sim-table{width:100%;border-collapse:collapse;font-size:12px}.profile-sim-table td{padding:4px 6px;border-top:1px solid #dde2ec;vertical-align:top;overflow-wrap:anywhere}.profile-sim-table tr.yes td:first-child{color:#1d6b1d;font-weight:700}.profile-sim-table tr.no td:first-child{color:#a1261c;font-weight:700}
body.dark .profile-sim{background:#23262d;color:#e8e8e8;border-color:#3d434f}body.dark .profile-sim .settings-note{color:#c4c8d0}body.dark .profile-sim-inputs input,body.dark .profile-sim-inputs select{background:#1b1d22;color:#e8e8e8;border-color:#4a505c}body.dark .profile-sim-table td{border-top-color:#3a3f4a}body.dark .profile-sim-table tr.yes td:first-child{color:#8fdc8f}body.dark .profile-sim-table tr.no td:first-child{color:#ff9a8f}
.profile-rule{display:flex;gap:6px;align-items:center;margin:8px 0}.dialog .profile-rule select,.dialog .profile-rule input{width:auto;min-width:0}.profile-rule [data-rule-type]{flex:0 0 42%}.profile-rule [data-rule-value]{flex:1 1 auto}.profile-rule-remove{flex:0 0 auto;padding:4px 10px}.profile-overrides-title{margin:16px 0 4px;font-size:13px}.profile-override{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0;border-top:1px solid #e3e3e3}.profile-override-on{display:flex;align-items:center;gap:8px;font-size:12px;flex:1 1 auto;min-width:0}.dialog .profile-override [data-override-value]:not([type=checkbox]){width:auto;max-width:160px}body.dark .profile-override{border-top-color:#3a3a3a}
/* FCF-378: Settings › Window tracker › the nudge keywords box */
.setting-row textarea[data-mac-window-text]{flex:1 1 200px;min-height:72px;resize:vertical}
/* FCF-380: reminders on the day calendar — ✓ button with its own background (readable on any category colour, both themes), date-only chips and the Overdue label of today */
.cal-event .cal-rem-done{position:absolute;top:1px;right:19px;width:16px;height:16px;padding:0;border-radius:3px;font-size:11px;line-height:14px;text-align:center;color:#303030;background:#ffffffd9;border:1px solid #00000040}
.cal-event .cal-rem-done:last-child{right:1px}
.cal-chip.cal-reminder{display:inline-flex;align-items:center;gap:4px}.cal-chip.cal-reminder .cal-chip-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-chip .cal-rem-done{flex:none;width:14px;height:14px;padding:0;border-radius:3px;font-size:10px;line-height:12px;text-align:center;color:#303030;background:#ffffffd9;border:1px solid #00000040}
body.dark .cal-event .cal-rem-done,body.dark .cal-chip .cal-rem-done{color:#ececec;background:#000000b3;border-color:#ffffff4d}
.cal-overdue{font-size:10px;font-weight:700;padding:2px 6px;border-radius:3px;color:#8c1d18;background:#fdecea}
body.dark .cal-overdue{color:#ffb4ab;background:#3b1f1d}
/* Settings › Todo: working hours in blocks, personal hours = the rest of the day. Compact on a phone: no row stretched edge to edge. */
.hours-card{border:1px solid var(--border,#e2e2e2);border-radius:12px;padding:12px 14px;margin:0 0 14px;background:var(--surface,#fff)}
body.dark .hours-card{background:#222;border-color:#3b3b3b}
.hours-card h4{margin:0 0 2px;font-size:14px}
.hours-card .settings-note{padding:0 0 8px;margin:0}
.work-blocks{display:grid;gap:8px}
.work-block{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;align-items:center;gap:8px;max-width:420px}
.time-pair{display:flex;align-items:center;gap:8px;min-width:0}
.work-block input[type=time],.time-pair input[type=time]{min-width:0;width:100%;padding:6px 8px}
.time-pair input[type=time]{width:auto;flex:0 1 140px}
.dialog .todo-times{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dialog .todo-times .field{min-width:0}
.dialog .todo-times input{width:100%;min-width:0}
.work-block .icon-button{min-width:36px;min-height:36px;border-radius:8px;background:none;border:1px solid transparent;color:#888}
.work-block .icon-button:hover{border-color:var(--border,#ddd);color:inherit}
.hours-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:10px 0 4px}
.hours-actions .secondary{padding:7px 14px}
.hours-field{display:grid;gap:6px;margin-top:12px;font-size:12px}
.hours-field small{color:#888;margin-left:4px}
.hours-field input{width:100%;max-width:260px;padding:6px 8px}
.hours-personal{display:flex;flex-wrap:wrap;gap:6px;margin:0}
.hours-personal span{padding:3px 9px;border-radius:999px;background:var(--soft,#f1f1f1);font-variant-numeric:tabular-nums}
.hours-rows{margin:0 0 14px;border-radius:12px;overflow:hidden}
.hours-rows .setting-row{justify-content:space-between}
.plan-lanes{display:inline-flex;flex-wrap:wrap;gap:2px 10px}
@media(max-width:600px){
 .hours-card{padding:14px}
 .hours-card h4{font-size:17px}
 .work-block input[type=time],.time-pair input[type=time]{font-size:16px}
 .hours-field{font-size:15px}.hours-field input{font-size:16px;max-width:none}
 .settings-inner .setting-row{padding:12px 14px}
 .hours-rows .setting-row{flex-wrap:wrap}
}
/* Notes full screen: ⤢ sits at the right of the Notes label; the notes then fill the screen (iPhone, above the keyboard) or a large card (Mac, Web) */
.dialog label.notes-field{position:relative}.notes-expand{position:absolute;top:-7px;right:-6px;width:34px;height:32px;display:grid;place-items:center;border-radius:8px;color:#8a8a8a}.notes-expand:hover{background:#0000000d;color:inherit}.notes-expand svg{width:17px;height:17px}
.notes-full-overlay{z-index:31}.notes-full{position:fixed;top:0;left:0;right:0;height:var(--phone-height,100dvh);display:flex;flex-direction:column;gap:12px;background:#fafafa;padding:max(16px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.notes-full header{display:flex;align-items:center;justify-content:space-between;gap:12px}.notes-full h2{margin:0;font-size:21px}.notes-full textarea{flex:1;width:100%;min-height:0;resize:none;font-size:17px;line-height:1.5;padding:12px 14px;border:1px solid #ddd;border-radius:12px;background:#fff}
@media (min-width:760px) and (pointer:fine){.notes-full{top:5vh;height:90vh;left:max(5vw,calc(50vw - 440px));right:max(5vw,calc(50vw - 440px));border-radius:18px;padding:22px;box-shadow:0 10px 50px #0003}.notes-full textarea{font-size:15px}}
body.dark .notes-full{background:#222;color:#ddd}body.dark .notes-expand:hover{background:#ffffff14}html.glass .notes-full{background:var(--g-bg);color:var(--g-ink)}

/* FCF-443: the calendar button on the To-do status bar; with the calendar hidden the list takes the whole width. Phones show one pane already, so no button there. */
.todo-pane.full{grid-column:1/-1}.todo-status{position:relative}
.todo-cal-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:24px;height:24px;display:grid;place-items:center;border-radius:6px;color:inherit;background:transparent}.todo-cal-toggle svg{width:14px;height:14px}.todo-cal-toggle:hover{background:color-mix(in srgb,currentColor 16%,transparent)}.todo-cal-toggle[aria-pressed=false]{box-shadow:inset 0 0 0 1.5px currentColor}
@media(max-width:800px){.todo-cal-toggle{display:none}}
/* FCF-460: search in Settings — box at the top of the page list, matching rows under it, the rows it found marked on their page */
.settings-search{margin:0 0 10px}
.settings-search input{width:100%;box-sizing:border-box;padding:7px 10px;border:1px solid #d0d0d0;border-radius:8px;background:#fff;color:#1d1d1f;font:inherit;font-size:13px}
.settings-search input::placeholder{color:#8a8a8a}
body.dark .settings-search input{background:#1f1f1f;color:#eee;border-color:#444}
body.dark .settings-search input::placeholder{color:#8f8f8f}
.settings-search-results:not(:empty){margin-top:6px;max-height:min(50vh,360px);overflow:auto;border:1px solid #e2e2e2;border-radius:8px;background:#fff;color:#1d1d1f}
body.dark .settings-search-results:not(:empty){background:#1f1f1f;border-color:#3c3c3c;color:#eee}
.settings-hit{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:8px 10px;text-align:left;border-bottom:1px solid #eee;background:transparent;color:inherit}
.settings-hit:last-child{border-bottom:0}
.settings-hit small{font-size:11px;color:#6b6b6b}
body.dark .settings-hit{border-color:#333}
body.dark .settings-hit small{color:#a0a0a0}
.settings-hit:hover,.settings-hit:focus-visible{background:rgba(0,0,0,.06);outline:none}
body.dark .settings-hit:hover,body.dark .settings-hit:focus-visible{background:rgba(255,255,255,.09)}
.settings-search-empty{margin:0;padding:8px 10px;font-size:12px;color:#6b6b6b}
body.dark .settings-search-empty{color:#a0a0a0}
.settings-nav [hidden],.settings-nav.searching .phone-only-setting,.settings-nav.searching .phone-settings-extras{display:none!important}
.settings-inner .setting-hit{box-shadow:inset 3px 0 0 var(--accent);background:color-mix(in srgb,var(--accent) 9%,transparent)}
.settings-inner .setting-flash{animation:setting-flash 1.8s ease-out}
@keyframes setting-flash{0%,35%{background:color-mix(in srgb,var(--accent) 30%,transparent)}}
@media(min-width:601px) and (max-width:800px){.settings-search{flex:0 0 190px;margin:0}.settings-search-results{display:none}}
@media(max-width:600px){.settings-search input{font-size:16px;padding:10px 12px}.settings-hit{padding:11px 12px;font-size:15px}.settings-hit small{font-size:12px}}
/* FCF-199: one-tap mood check-in at a Break (timer) and in the Session menu (⋯). Self-contained colours for both themes, so the faces and the label read on any timer or dialog background. */
.mood-checkin{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 8px;width:max-content;max-width:100%;margin:10px auto 0;padding:5px 10px;border-radius:12px;border:1px solid #d6dae3;background:#f4f5f8;color:#1d2333;font-size:12px;font-weight:600}
.mood-checkin .mood-faces{display:flex;flex-wrap:wrap;justify-content:center;gap:3px}
.mood-checkin button{display:grid;place-items:center;min-width:30px;height:30px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:inherit;font-size:17px;line-height:1;cursor:pointer}
.mood-checkin button:hover{background:#e7e9ef}
.mood-checkin button[aria-pressed="true"]{border-color:#7a9a1e;background:#e6f0c8}
.mood-checkin button:focus-visible{outline:2px solid #3d52d5;outline-offset:1px}
body.dark .mood-checkin{border-color:#3a3f4b;background:#23262f;color:#e8eaf0}
body.dark .mood-checkin button:hover{background:#30343f}
body.dark .mood-checkin button[aria-pressed="true"]{border-color:#9dc134;background:rgba(157,193,52,.28)}
body.dark .mood-checkin button:focus-visible{outline-color:#9db4ff}
.mood-checkin.menu-mood{width:auto;margin:0 0 8px;justify-content:space-between}
.timer-anchor .break-mood{position:relative;left:50%;transform:translateX(-50%);margin:14px 0 0}
/* FCF-454: the day's load battery next to Category (focus-energy-load.js). The chip carries its own zone background and onColor text, so it reads on light, dark, glass, Break and overtime alike */
:root{--load-fresh:#22c55e;--load-tired:#eab308;--load-rested:#0ea5e9;--load-deep:#f97316;--load-over:#dc2626}
body.dark{--load-fresh:#16a34a;--load-tired:#ca8a04;--load-rested:#0369a1;--load-deep:#ea580c;--load-over:#dc2626}
.energy-wrap{position:relative;display:inline-block;vertical-align:middle;margin-left:6px}
.energy-pill{height:25px;padding:2px 10px;border:0;border-radius:20px;font-weight:600;font-size:12px;display:inline-flex;align-items:center;gap:6px;background:var(--load-bg,var(--load-fresh));color:var(--load-ink,#1f1f1f);cursor:pointer;font-variant-numeric:tabular-nums;transition:background-color .3s,color .3s}
body.dark .energy-pill{color:var(--load-ink-dark,#fff)}
.energy-pill:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
.energy-pill[data-zone=fresh],.energy-key[data-zone=fresh]{--load-bg:var(--load-fresh)}
.energy-pill[data-zone=tired],.energy-key[data-zone=tired]{--load-bg:var(--load-tired)}
.energy-pill[data-zone=rested],.energy-key[data-zone=rested]{--load-bg:var(--load-rested)}
.energy-pill[data-zone=deep],.energy-key[data-zone=deep]{--load-bg:var(--load-deep)}
.energy-pill[data-zone=over],.energy-key[data-zone=over]{--load-bg:var(--load-over)}
/* FCF-632: the flip side — Work since 0:00 on its own violet card with a clock icon (onColor ink via --load-ink), so it never reads as a zone */
.energy-pill[data-mode=day][data-zone]{--load-bg:#7c3aed}
.energy-pill[data-mode=sleep][data-zone]{--load-bg:#3730a3}
body.dark .energy-pill[data-mode=sleep][data-zone]{--load-bg:#312e81}
.energy-moon path{fill:currentColor;stroke:none}
.energy-detail .energy-sleep-line{color:#3730a3}
body.dark .energy-detail .energy-sleep-line{color:#a5b4fc}
body.dark .energy-pill[data-mode=day][data-zone]{--load-bg:#6d28d9}
.energy-clock circle,.energy-clock path{fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round}
.energy-pill.energy-flipping{animation:energy-flip .32s ease}
@keyframes energy-flip{0%{transform:perspective(200px) rotateX(0)}50%{transform:perspective(200px) rotateX(90deg)}100%{transform:perspective(200px) rotateX(0)}}
@media (prefers-reduced-motion:reduce){.energy-pill.energy-flipping{animation:none}}
.energy-detail .energy-day-line{color:#6d28d9;font-weight:600}
body.dark .energy-detail .energy-day-line{color:#c4b5fd}
.energy-battery{display:block;flex:none}
.energy-battery .energy-body{fill:none;stroke:currentColor;stroke-width:1}
.energy-battery .energy-cap,.energy-battery .energy-fill{fill:currentColor}
/* The minimal timer keeps the chip's figure and adds from when it counts; the full Session screen shows the figure only */
.energy-from{display:none}.timer-pane.full .energy-from,.timer-pane.minimal .energy-from{display:inline;font-weight:500;opacity:.85}
@media (max-width:600px){.timer-pane.full .intention-area{left:12px;right:12px}.timer-pane.full .energy-wrap{margin-left:4px}.timer-pane.full .energy-pill{gap:4px}}
.timer-pane.full .energy-pill,.timer-pane.minimal .energy-pill{padding:2px 8px}
.energy-detail{position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);z-index:20;width:max-content;max-width:min(300px,80vw);padding:10px 12px;border-radius:12px;border:1px solid #e1e1e1;background:#fff;color:#2b2b2b;box-shadow:0 6px 24px #0000002e;text-align:left;font-size:12px;line-height:1.45;font-weight:400;white-space:normal}
body.dark .energy-detail{border-color:#444;background:#2a2a2a;color:#e6e6e6}
.energy-detail p{margin:0 0 3px}
.energy-detail .energy-advice{margin-top:6px}
.energy-legend{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:8px;color:inherit}
.energy-key{display:inline-flex;align-items:center;gap:4px;font-size:11px;opacity:.75}
.energy-key.current{opacity:1;font-weight:700}
.energy-key i{width:9px;height:9px;border-radius:50%;background:var(--load-bg)}
body.reduce-motion .energy-pill{transition:none}
@media (prefers-reduced-motion:reduce){.energy-pill{transition:none}}

/* FCF-448: the rest of a long Todo under its headline — two lines folded, the whole text on a click; own colors in light and dark */
.todo-rest{margin:3px 0 0;font-size:12px;line-height:1.45;color:#555;white-space:pre-line;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;cursor:pointer}
.todo-rest.open{display:block;-webkit-line-clamp:unset;overflow:visible}
body.dark .todo-rest{color:#c4c4c4}
.todo-row.done .todo-rest{color:#767676}
body.dark .todo-row.done .todo-rest{color:#9a9a9a}
textarea[name=title][data-grow]{display:block;width:100%;resize:none;overflow-y:auto;line-height:1.4}
#capture-text[data-grow]{max-height:45vh;overflow-y:auto}
/* FCF-486 (build 106): finger-sized hit areas on touch screens for the small calendar and Todo controls; the visible size stays */
@media(pointer:coarse){.cal-event .cal-rem-done::after,.cal-adopt::after,.plan-official-back::after,.plan-block .plan-pin::after,.todo-cal-toggle::after{content:'';position:absolute;inset:-12px -2px}.plan-block .plan-pin{position:relative;padding:2px 6px}.todo-cal-toggle::after{inset:-8px}.notes-expand{width:44px;height:44px;top:-12px;right:-10px}}
/* FCF-486: Settings search — readable placeholder (4.5:1), a clear keyboard focus ring, and results shown as a list at 601–800 px */
.settings-search input::placeholder{color:#6b6b6b}
body.dark .settings-search input::placeholder{color:#a3a3a3}
.settings-hit:focus-visible{outline:2px solid var(--accent,#3a7afe);outline-offset:-2px}
@media(min-width:601px) and (max-width:800px){.settings-search{position:relative}.settings-search-results:not(:empty){display:block;position:absolute;z-index:20;left:0;right:0;top:100%;max-height:60vh;white-space:normal;overflow-wrap:anywhere;overflow:auto;background:#fff;color:#1d1d1f;border:1px solid #00000026;border-radius:10px;box-shadow:0 8px 24px #0000002e}body.dark .settings-search-results:not(:empty){background:#2a2a2c;color:#f2f2f7;border-color:#ffffff26}}

/* FCF-494: a named time block: name, start – end, remove (wraps under the name on a phone) */
.time-block{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto minmax(0,1fr) auto;max-width:560px}
.time-block input:not([type=time]){min-width:0;width:100%;padding:6px 8px}
@media(max-width:600px){.time-block{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto}.time-block input:not([type=time]){grid-column:1/-1}}

/* FCF-504: Backup & restore card on Settings › Session data — amber edge when no backup in 7 days; own colours light + dark */
.backup-card .backup-last{margin:2px 0 10px;font-size:13px;color:#333}
.backup-card.backup-due{border-color:#d08a00;background:#fff8e8}
.backup-card.backup-due .backup-last strong{color:#8a4b00}
body.dark .backup-card .backup-last{color:#ddd}
body.dark .backup-card.backup-due{border-color:#b77a00;background:#2b2414}
body.dark .backup-card.backup-due .backup-last strong{color:#ffc766}
/* FCF-538: the day summary stays on one line (counts, total, Filter, lanes); when it is too narrow it scrolls sideways instead of breaking words down a column. Auto margins centre it without cutting off the left side. */
.calendar-pane>.day-summary{justify-content:flex-start;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:none;padding:0 8px;flex:none}.calendar-pane>.day-summary::-webkit-scrollbar{display:none}.calendar-pane>.day-summary>*{flex:none}.calendar-pane>.day-summary>:first-child{margin-left:auto}.calendar-pane>.day-summary>:last-child{margin-right:auto}
.cal-filter{padding:1px 8px;border-radius:9px;font-size:10px;font-weight:600;color:#5c5c5c;background:var(--soft);white-space:nowrap;display:inline-flex;align-items:center;gap:4px}.cal-filter small{font-size:9px;opacity:.85}.cal-filter[aria-pressed=true]{background:var(--chrome,#333);color:var(--on-chrome,#fff)}body.dark .cal-filter[aria-pressed=false]{color:#b4b4b4}
.report-header .streak-badge{justify-self:center;margin:2px 0 6px}
@media(max-width:600px){.calendar-pane>.day-summary{flex-wrap:nowrap;height:auto;min-height:36px;padding:4px 8px}.calendar-pane>.day-summary .lane-seg{flex-basis:auto}.cal-filter{min-height:32px;padding:6px 11px;font-size:12px;border-radius:16px}}

/* FCF-544: the calendar filter can fade the Sessions it leaves out instead of hiding them; the mode row keeps clear of the close button */
.timeline .event.cal-dim{opacity:.3;filter:saturate(.35)}
@media(hover:hover){.timeline .event.cal-dim:hover{opacity:.75}}
.cal-dim-mode{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:2px 0 14px;padding-right:48px;font-size:13px;color:#333}
.cal-dim-mode>span{font-weight:600}
.cal-dim-mode label{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;border:1px solid #c8c8c8;background:#fff;color:#1d1d1f;cursor:pointer}
.dialog .cal-dim-mode input[type=radio]{flex:none;width:16px;height:16px;min-width:0;min-height:0;margin:0;padding:0;border:0;accent-color:var(--accent,#1f5c45)}
.cal-dim-mode label{white-space:nowrap}
body.dark .cal-dim-mode{color:#ececec}
body.dark .cal-dim-mode label{background:#2a2a2c;border-color:#5c5c5c;color:#f2f2f2}
.native-filter-dialog:has(.cal-dim-mode) .native-filter-scroll{max-height:calc(100dvh - 260px)}
/* FCF-545: on iPhone the summary bar (stats · Filter · Mine / Agent…) and the colour strip fold away behind one button at the
   top right of the calendar; a tap pins them open, another folds them again. Wider screens always show them. */
.cal-bar-toggle{display:none}
@media(max-width:600px){
 .cal-bar-toggle{display:inline-flex;align-items:center;justify-content:center;position:relative;flex:none;margin-left:6px;width:38px;height:38px;padding:0;border-radius:12px;border:1px solid #c8c8c8;background:#fff;color:#1d1d1f;cursor:pointer}
 .cal-bar-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
 .cal-bar-toggle[aria-pressed=true]{background:#1f5c45;border-color:#1f5c45;color:#fff}
 .cal-bar-dot{position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:50%;background:#e8590c;box-shadow:0 0 0 2px #fff}
 body.dark .cal-bar-toggle{background:#2a2a2c;border-color:#5c5c5c;color:#f2f2f2}
 body.dark .cal-bar-toggle[aria-pressed=true]{background:#2f7a5d;border-color:#2f7a5d;color:#fff}
 body.dark .cal-bar-dot{box-shadow:0 0 0 2px #2a2a2c}
 .calendar-pane:not(.bar-open)>.day-summary,.calendar-pane:not(.bar-open)>.brush{display:none}
}
/* FCF-547: on phones the Report page never scrolls sideways as a whole; wide strips and tables keep their own scroller */
@media(max-width:600px){section.reports{overflow-x:clip}}
/* FCF-583: DOM order = Tab order (start time, end time, start date, end date); the grid puts each input back under its label as before */
.dialog .pair.reflection-span{grid-template-columns:minmax(88px,1fr) minmax(0,1.35fr) minmax(88px,1fr) minmax(0,1.35fr);grid-template-areas:'sl sl el el' 'st sd et ed';column-gap:8px;row-gap:6px;margin:14px 0;font-size:12px}.reflection-span>input{min-width:0}.reflection-span label.span-start{grid-area:sl}.reflection-span label.span-end{grid-area:el;margin-left:4px}.reflection-span input[name=start__time]{grid-area:st}.reflection-span input[name=start__date]{grid-area:sd}.reflection-span input[name=end__time]{grid-area:et;margin-left:4px}.reflection-span input[name=end__date]{grid-area:ed}
@media(max-width:800px){.dialog .pair.reflection-span{grid-template-columns:minmax(88px,1fr) minmax(0,1.35fr);grid-template-areas:'sl sl' 'st sd' 'el el' 'et ed'}.reflection-span label.span-end{margin:8px 0 0}.reflection-span input[name=end__time]{margin-left:0}}
@media(max-width:600px){.dialog .pair.reflection-span{font-size:15px}}
/* The running block reads like the timer: what is done (hatched), what is still to come until the planned end (dashed, "10m left") and the overtime
   ("+20m overtime"). FCF-594: the overtime keeps the category's colour, a shade deeper, hatched the other way, with a dashed line at the planned end
   and a thin amber edge, so it reads as the same Session run long. Its label sits on the category colour. The words sit above the parts. */
.event.active>.active-head{position:relative;z-index:1;display:inline-block;max-width:100%;margin:-2px -4px 0;padding:2px 4px;border-radius:4px;background:color-mix(in srgb,var(--event-color) 92%,transparent)}
.event.active .active-head>small{display:block}
.event.active .active-head>.event-title{display:block;margin-top:1px}
.event.active .active-head>.event-category{display:block;font-size:10px;opacity:.9}
.event.active>i{position:absolute;left:0;right:0;z-index:0;pointer-events:none;font-style:normal}
.event.active>i>b{position:absolute;right:5px;bottom:3px;font-size:10px;font-weight:700;line-height:1.2;white-space:nowrap}
.event.active>.active-left{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--event-color) 22%,transparent) 0 5px,transparent 5px 10px),color-mix(in srgb,var(--event-color) 14%,var(--surface,#fff));border-top:2px dashed var(--event-color);color:color-mix(in srgb,var(--event-color) 60%,#1d1d1f)}
body.dark .event.active>.active-left{color:color-mix(in srgb,var(--event-color) 55%,#fff)}
.event.active>.active-over{background:repeating-linear-gradient(45deg,#ffffff2e 0 4px,transparent 4px 8px),color-mix(in srgb,var(--event-color) 80%,#000);border-top:2px dashed color-mix(in srgb,var(--on-event,#fff) 70%,transparent);box-shadow:inset 3px 0 0 #f5a623;color:var(--on-event,#fff)}
.event.active>.active-over>b{padding:1px 5px;border-radius:4px;background:var(--event-color)}

/* FCF-597: Park it — a full-screen toggle in the corner of the field (self-contained colours), and a full-screen mode for longer notes. */
.capture-field{position:relative}
.capture-field>#capture-text{padding-right:44px}
.capture-field>.capture-expand{position:absolute;top:6px;right:6px;width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:#f2f2f2;color:#333;border:1px solid #d4d4d4}
.capture-field>.capture-expand svg{width:16px;height:16px}
body.dark .capture-field>.capture-expand{background:#2b2b2b;color:#eee;border-color:#4a4a4a}
.dialog.capture-dialog.capture-full{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:none;border-radius:0;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom))}
.dialog.capture-dialog.capture-full .capture-field>#capture-text{min-height:max(220px,calc(100dvh - 360px));resize:none}
/* FCF-598: the "Parked… · Undo" notice never blocks the buttons under it: taps go through it except on Undo; on a phone it sits at the top, one pill. */
#toast{pointer-events:none}
#toast button{pointer-events:auto}
@media(max-width:600px){#app #toast{top:max(10px,env(safe-area-inset-top))!important;bottom:auto!important;display:flex;align-items:center;gap:2px;width:max-content;max-width:calc(100% - 24px);padding:2px 4px 2px 16px;border-radius:22px;box-shadow:0 8px 24px #0005}#app #toast[hidden]{display:none}}
/* FCF-603: ⌘K palette — every command under the bar's box, grouped; each part sets its own colour and background (light + dark). */
.command-bar.has-cmdk .command-preview{display:none}
.cmdk-wrap{margin-top:8px}
.cmdk-list{max-height:min(470px,52vh);overflow-y:auto;overscroll-behavior:contain;border:1px solid #e3e3e3;border-radius:12px;background:#fff;color:#2b2b2b;padding:4px}
.cmdk-head{padding:9px 10px 3px;font-size:11px;font-weight:700;color:#5f5f5f;background:#fff}
.cmdk-row{display:flex;align-items:center;gap:10px;min-height:36px;padding:5px 10px;border-radius:8px;cursor:pointer;color:#2b2b2b;background:#fff}
.cmdk-row:hover{background:#f3f3f3;color:#1f1f1f}
.cmdk-row[aria-selected="true"]{background:#e6eefc;color:#111}
.cmdk-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.cmdk-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmdk-desc{font-size:11px;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmdk-tag{flex:none;font-size:11px;color:#555;background:#efefef;border-radius:6px;padding:1px 6px;white-space:nowrap}
.cmdk-keys{flex:none;font:11px ui-monospace,SFMono-Regular,Menlo,monospace;color:#3a3a3a;background:#f4f4f4;border:1px solid #d9d9d9;border-radius:6px;padding:2px 6px;white-space:nowrap}
.cmdk-parse .cmdk-title{font-weight:600}
.cmdk-danger .cmdk-title{color:#b3261e}
.cmdk-dim .cmdk-title,.sheet-row.cmdk-dim .sheet-label{color:#767676}
.cmdk-empty{padding:10px;color:#5f5f5f;background:#fff}
.cmdk-foot{position:sticky;bottom:-4px;margin:4px -4px -4px;padding:6px 14px;font-size:11px;color:#5f5f5f;background:#fafafa;border-top:1px solid #ececec;border-radius:0 0 12px 12px}
.sheet-count{font-weight:400;color:#767676}
#rail .rail-cmdk span{font-size:11px;font-weight:700;letter-spacing:-.02em}
.timer-pane .cmdk-corner{display:none}
body.dark .cmdk-list{background:#1a1a1a;border-color:#363636;color:#e6e6e6}
body.dark .cmdk-head{background:#1a1a1a;color:#a9a9a9}
body.dark .cmdk-row{background:#1a1a1a;color:#e6e6e6}
body.dark .cmdk-row:hover{background:#262626;color:#f2f2f2}
body.dark .cmdk-row[aria-selected="true"]{background:#2b3a55;color:#fff}
body.dark .cmdk-desc{color:#a9a9a9}
body.dark .cmdk-tag{background:#2c2c2c;color:#c4c4c4}
body.dark .cmdk-keys{background:#262626;border-color:#454545;color:#dcdcdc}
body.dark .cmdk-danger .cmdk-title{color:#ff8a80}
body.dark .cmdk-dim .cmdk-title,body.dark .sheet-row.cmdk-dim .sheet-label,body.dark .sheet-count{color:#8f8f8f}
body.dark .cmdk-empty{background:#1a1a1a;color:#a9a9a9}
body.dark .cmdk-foot{background:#202020;border-color:#333;color:#a9a9a9}
@media (pointer:coarse){.cmdk-row{min-height:44px}}
@media (max-width:600px){.timer-pane .cmdk-corner{display:grid;place-items:center;top:24px;right:24px;left:auto;width:36px;height:36px;border:0;background:var(--soft)}.cmdk-list{max-height:46vh}}
.timer-pane.minimal .cmdk-corner,.timer-pane.full .cmdk-corner{display:none}
/* FCF-602: 🧠 Think deeper — the menu of five apps has its own background in both themes; the badge on a Todo or thought says where it is and what came back. */
.deep-menu{position:fixed;z-index:1200;display:flex;flex-direction:column;gap:2px;padding:6px;border-radius:12px;background:#fff;color:#1d1d1f;border:1px solid #d6d6d6;box-shadow:0 12px 32px rgba(0,0,0,.22);max-height:calc(100dvh - 24px);overflow:auto}
.deep-menu .deep-head{margin:2px 8px 6px;font-size:12px;font-weight:600;color:#4a4a4a}
.deep-menu .deep-item{display:grid;grid-template-columns:22px 1fr;column-gap:8px;align-items:center;text-align:left;padding:8px 10px;border-radius:8px;background:transparent;color:#1d1d1f}
.deep-menu .deep-item small{grid-column:2;font-size:11px;color:#5e5e5e}
.deep-menu .deep-item:hover,.deep-menu .deep-item:focus-visible{background:#eaf2d3;color:#1d1d1f;outline:none}
.deep-menu .deep-icon{font-size:16px;text-align:center}
.deep-menu .deep-note{margin:6px 8px 2px;font-size:11px;color:#5e5e5e}
body.dark .deep-menu{background:#2a2a2a;color:#eee;border-color:#474747;box-shadow:0 12px 32px rgba(0,0,0,.6)}
body.dark .deep-menu .deep-head{color:#c8c8c8}
body.dark .deep-menu .deep-item{background:transparent;color:#eee}
body.dark .deep-menu .deep-item small,body.dark .deep-menu .deep-note{color:#b0b0b0}
body.dark .deep-menu .deep-item:hover,body.dark .deep-menu .deep-item:focus-visible{background:#3b4724;color:#fff}
.deep-badge{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:1px 8px;border-radius:10px;background:#eef4dd;color:#334010;font-size:11px;vertical-align:middle}
.deep-badge .deep-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:28em}
.deep-badge[data-status=sent]{background:#e8eefb;color:#1f3a73}
.deep-badge[data-status=error]{background:#fbe9e9;color:#7f1d1d}
.deep-badge .deep-reopen{padding:0 6px;border-radius:8px;border:1px solid #c9c9c9;background:#fff;color:#262626;font-size:11px}
body.dark .deep-badge{background:#33401c;color:#e4f0c2}
body.dark .deep-badge[data-status=sent]{background:#1f2c45;color:#d3e2ff}
body.dark .deep-badge[data-status=error]{background:#4a2020;color:#ffd9d9}
body.dark .deep-badge .deep-reopen{border-color:#5a5a5a;background:#1f1f1f;color:#eee}
.parked-text .deep-line{display:block;margin-top:4px}
.capture-deep{display:inline-flex;align-items:center;gap:6px;margin-top:8px}
.capture-deep[hidden]{display:none!important}
/* FCF-602: a thought row has four buttons now; in a narrow To-do pane they drop under the text instead of squeezing it. */
.parked-row{flex-wrap:wrap}
.parked-row>.parked-text{flex:1 1 240px}
.parked-row>.parked-actions{flex-wrap:wrap;justify-content:flex-end;margin-left:auto}

/* FCF-604: AI Copilot — a panel on the right (resizable; iPhone: bottom sheet), chat bubbles, command rows, suggestion cards. Every part brings its own text and background colours in both themes. */
body.copilot-open #app{margin-right:var(--cp-w,360px)}
.copilot{--cp-bg:#ffffff;--cp-fg:#24292f;--cp-muted:#5f6368;--cp-line:#e3e3e3;--cp-user-bg:#e7f0cf;--cp-user-fg:#1f2a0b;--cp-ai-bg:#f3f4f6;--cp-ai-fg:#24292f;--cp-tool-bg:#eaf2fd;--cp-tool-fg:#163a66;--cp-err-bg:#fdecea;--cp-err-fg:#8a1c14;--cp-input-bg:#ffffff;--cp-input-fg:#1f2328;--cp-chip-bg:#f1f7f4;--cp-chip-fg:#004736;--cp-chip-line:#cfe3da;position:fixed;top:0;right:0;bottom:0;width:var(--cp-w,360px);z-index:40;display:flex;flex-direction:column;background:var(--cp-bg);color:var(--cp-fg);border-left:1px solid var(--cp-line);box-shadow:-8px 0 30px #0000001a;font-size:13px}
.copilot[hidden]{display:none}
body.dark .copilot{--cp-bg:#1c1c1e;--cp-fg:#ececec;--cp-muted:#a8a8ad;--cp-line:#3a3a3c;--cp-user-bg:#2f3a17;--cp-user-fg:#e9f3cf;--cp-ai-bg:#2a2a2d;--cp-ai-fg:#ececec;--cp-tool-bg:#1d2c42;--cp-tool-fg:#cfe2ff;--cp-err-bg:#3d1b18;--cp-err-fg:#ffb4ab;--cp-input-bg:#2a2a2d;--cp-input-fg:#f2f2f2;--cp-chip-bg:#1f2d28;--cp-chip-fg:#bfe3d6;--cp-chip-line:#2f4a40;box-shadow:-8px 0 30px #00000066}
.cp-resize{position:absolute;left:-3px;top:0;bottom:0;width:6px;cursor:col-resize;z-index:1}
.cp-head{display:flex;align-items:center;gap:8px;padding:12px 12px 10px;border-bottom:1px solid var(--cp-line)}
.cp-title{font-size:14px;margin-right:auto;color:var(--cp-fg)}
.cp-brain{max-width:150px;padding:4px 6px;font-size:12px;background:var(--cp-input-bg);color:var(--cp-input-fg);border:1px solid var(--cp-line)}
.cp-close{width:28px;height:28px;border-radius:6px;color:var(--cp-fg);background:transparent}
.cp-close:hover{background:var(--cp-ai-bg);color:var(--cp-ai-fg)}
.cp-log{flex:1;min-height:0;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:8px;overscroll-behavior:contain}
.cp-msg{max-width:88%;padding:8px 11px;border-radius:12px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.cp-user{align-self:flex-end;background:var(--cp-user-bg);color:var(--cp-user-fg);border-bottom-right-radius:4px}
.cp-ai{align-self:flex-start;background:var(--cp-ai-bg);color:var(--cp-ai-fg);border-bottom-left-radius:4px}
.cp-note{align-self:center;background:var(--cp-bg);color:var(--cp-muted);font-size:12px}
.cp-err{align-self:stretch;max-width:none;background:var(--cp-err-bg);color:var(--cp-err-fg)}
.cp-tool{align-self:stretch;display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:8px;background:var(--cp-tool-bg);color:var(--cp-tool-fg);font-size:12px}
.cp-tool span{flex:1;overflow-wrap:anywhere}
.cp-tool-err{background:var(--cp-err-bg);color:var(--cp-err-fg)}
.cp-undo{padding:2px 8px;border-radius:999px;border:1px solid currentColor;color:inherit;background:transparent;font-size:11px;font-weight:600}
.cp-undone{color:inherit;font-size:11px}
.cp-chips{display:flex;gap:6px;overflow-x:auto;padding:8px 12px;border-top:1px solid var(--cp-line);scrollbar-width:none}
.cp-chip{flex:none;padding:5px 10px;border-radius:999px;border:1px solid var(--cp-chip-line);background:var(--cp-chip-bg);color:var(--cp-chip-fg);font-size:12px;white-space:nowrap}
.cp-form{padding:8px 12px 12px;border-top:1px solid var(--cp-line)}
.cp-input{width:100%;resize:none;min-height:44px;max-height:140px;background:var(--cp-input-bg);color:var(--cp-input-fg);border:1px solid var(--cp-line);border-radius:8px}
.cp-input::placeholder{color:var(--cp-muted)}
.cp-form-row{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:6px}
.cp-hint{margin-right:auto;color:var(--cp-muted);font-size:11px}
.cp-send,.cp-stop{padding:6px 14px;border-radius:8px;font-weight:600}
.cp-send{background:#4d6b12;color:#ffffff}
.cp-stop{background:#b3261e;color:#ffffff}
.cp-send[hidden],.cp-stop[hidden]{display:none}
#rail .rail-copilot{font-size:17px;line-height:1}
.phone-timer-switch .phone-copilot{font-size:18px;line-height:1}
.cp-cards{position:absolute;left:50%;bottom:calc(5.7% + 58px);transform:translateX(-50%);width:min(440px,calc(100% - 32px));display:flex;flex-direction:column;gap:4px;z-index:6}
.cp-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:start;gap:6px;padding:3px 4px 3px 10px;border-radius:10px;background:#ffffff;color:#24292f;border:1px solid #dfe5d2;box-shadow:0 2px 10px #0000000f;text-align:left}
body.dark .cp-card{background:#232325;color:#ececec;border-color:#3a3a3c}
.cp-why{min-width:0;font-size:12px;color:inherit}
.cp-why summary{display:flex;align-items:center;gap:6px;min-height:26px;cursor:pointer;list-style:none;color:inherit}
.cp-why summary::-webkit-details-marker{display:none}
.cp-card-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:inherit}
.cp-why[open] .cp-card-title{white-space:normal}
.cp-why-label{flex:none;font-size:11px;color:#5f6368;text-decoration:underline dotted}
.cp-why p{margin:0 0 4px;font-size:11.5px;color:#5f6368}
body.dark .cp-why-label,body.dark .cp-why p{color:#a8a8ad}
.cp-do{margin-top:1px;padding:4px 10px;border-radius:999px;background:#4d6b12;color:#ffffff;font-size:12px;font-weight:600}
.cp-x{width:26px;height:26px;border-radius:999px;color:#5f6368;background:transparent}
body.dark .cp-x{color:#a8a8ad}
@media (max-height:799px){.cp-card:nth-child(n+3){display:none}}
@media (max-height:699px){.cp-card:nth-child(n+2){display:none}}
@media (max-width:600px){body.copilot-open #app{margin-right:0}.copilot{top:auto;left:0;width:auto;height:min(72dvh,620px);border-left:0;border-top:1px solid var(--cp-line);border-radius:16px 16px 0 0;box-shadow:0 -10px 30px #0000002e;padding-bottom:env(safe-area-inset-bottom)}.cp-resize,.cp-hint{display:none}.cp-msg{font-size:15px}.cp-cards{bottom:174px}.cp-card:nth-child(n+2){display:none}}

/* FCF-641: 📜 Original — what was first said, kept under the edited / formatted text. Own background so it reads in every theme */
.thought-original{margin:6px 0 2px;padding:6px 10px;border-radius:10px;background:#f4f1ea;color:#3b3b3b;border:1px solid #e3ddcf;font-size:12px}
.thought-original summary{cursor:pointer;font-weight:600;color:#6b5a2e}
.thought-original p{margin:6px 0;white-space:pre-wrap;font-style:italic}
.thought-original button{font-size:12px;padding:3px 10px}
body.dark .thought-original{background:#2b2822;color:#e6e1d6;border-color:#4a4436}
body.dark .thought-original summary{color:#e3c77a}
/* FCF-639: a ✨ Formatted thought — line 1 is its title, ## lines are headlines; colours inherit the row's own ink */
.parked-text .md-title{display:inline-block;font-weight:700;font-size:14px;margin-bottom:2px}
.parked-text .md-h{display:inline-block;font-weight:700;margin-top:4px}
.deep-menu .deep-ai{display:flex;align-items:center;gap:6px;margin:6px 4px 2px;padding:6px 8px;border-radius:8px;font-size:12px;cursor:pointer;background:rgba(127,127,127,.12);color:inherit}
/* FCF-642: 🤖 Give to an AI — the row button, the prompt under a Todo, the full answer. Own backgrounds, both themes */
.todo-row .todo-ai{font-size:15px}
.todo-brief{margin:6px 0 2px;padding:6px 10px;border-radius:10px;background:#eef3ff;color:#1f2a44;border:1px solid #cfdcff;font-size:12px}
.todo-brief summary{cursor:pointer;font-weight:600;color:#2f4fa3}
.todo-brief pre,.agent-full pre{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:12px;line-height:1.45;max-height:320px;overflow:auto}
.todo-brief-acts{display:flex;gap:6px;flex-wrap:wrap}
.todo-brief-acts button{font-size:12px;padding:3px 10px}
.ai-running{font-style:normal;font-weight:400;color:#8a5a00}
.agent-runner{display:block;margin:0 0 4px;color:#666}
.agent-full{margin:4px 0}
.agent-full summary{cursor:pointer;font-size:12px;font-weight:600}
body.dark .todo-brief{background:#232a3c;color:#dfe6ff;border-color:#3a4766}
body.dark .todo-brief summary{color:#a9bfff}
body.dark .ai-running{color:#f0c674}
body.dark .agent-runner{color:#aaa}

/* FCF-643: a quiet arrow above + that scrolls the calendar back to now; it shows only while the red now-line is out of sight. */
.cal-now{position:absolute;right:31px;bottom:calc(50% + 34px);width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--surface);color:#d6262b;border:1px solid var(--border);box-shadow:0 2px 10px rgba(0,0,0,.14);opacity:0;transform:translateY(6px) scale(.9);pointer-events:none;transition:opacity .2s,transform .2s;z-index:5}
.cal-now.show{opacity:.92;transform:none;pointer-events:auto}.cal-now.show:hover{opacity:1}
.cal-now svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s}
.cal-now[data-dir=up] svg{transform:rotate(180deg)}
body.dark .cal-now{background:#2a2a2a;border-color:#444;color:#ff6b6f;box-shadow:0 2px 10px rgba(0,0,0,.5)}
@media(prefers-reduced-motion:reduce){.cal-now,.cal-now svg{transition:none}}
