:root{color-scheme:light dark;--bg:#fff;--surface:#fafafa;--ink:#171717;--muted:#606060;--line:#e5e5e5;--strong:#a3a3a3;--inverse:#fff;--error:#a12622;font-family:Geist,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;font-size:16px}*{box-sizing:border-box}body{margin:0}h1,h2,h3,p{margin:0}h1{font-size:32px;line-height:1.3;font-weight:600;letter-spacing:-.5px}h2{font-size:20px;font-weight:600;line-height:1.5}h3{font-size:17px;font-weight:600;line-height:1.5}p{line-height:1.75}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--ink);outline-offset:3px}.skip-link{position:fixed;left:16px;top:-80px;padding:12px;background:var(--bg);z-index:200}.skip-link:focus{top:12px}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}
.sidebar{display:none}.workspace{min-width:0}.topbar{min-height:64px;padding:12px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.breadcrumb{font-size:14px;color:var(--muted)}.breadcrumb>span{padding:0 10px;color:var(--strong)}.breadcrumb b{font-weight:500;color:var(--ink)}.top-date{display:none;font-size:13px;font-variant-numeric:tabular-nums}.mobile-settings{font-size:22px}main{padding:32px 20px 40px;max-width:1240px;margin:auto}.page-heading{display:flex;flex-wrap:wrap;gap:20px;align-items:center;justify-content:space-between;margin-bottom:32px}.page-heading p{margin-top:12px;font-size:14px;color:var(--muted)}.heading-dot,.eyebrow,.section-kicker,.tiny-label,.nav-item small{display:none}.button,.small-button,.text-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;font-size:14px;background:transparent;border:0;padding:10px 14px;border-radius:6px}.button,.small-button{border:1px solid var(--line);background:var(--bg)}.button.primary{background:var(--ink);color:var(--inverse);border-color:var(--ink)}.text-button{padding:10px 0;color:var(--muted)}.icon-button{min-width:44px;padding:10px}.small-button{padding:8px 12px}.button:hover,.small-button:hover{opacity:.8}.button.primary .icon{width:17px;height:17px}
.overview{display:grid;gap:24px;margin-bottom:36px}.progress-panel{display:flex;align-items:center;gap:20px}.progress-ring{width:90px;height:90px;flex-shrink:0;border-radius:50%;padding:5px;background:conic-gradient(var(--ink) var(--progress),var(--line) 0)}.progress-ring>div{width:100%;height:100%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--bg);gap:3px}.progress-ring strong{font-size:28px;font-weight:500;font-variant-numeric:tabular-nums}.progress-ring small{font-size:13px}.progress-ring span{font-size:12px;color:var(--muted)}.progress-copy{min-width:0}.progress-copy h2{font-size:18px}.progress-copy p{font-size:14px;color:var(--muted);margin-top:8px}.progress-copy b{font-weight:500}.focus-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:20px}.focus-summary>span{font-size:14px;color:var(--muted);display:flex;gap:8px;align-items:center}.focus-summary strong{font-size:22px;font-weight:500;font-variant-numeric:tabular-nums}.focus-summary small{display:none}
.content-grid,.history-grid{display:grid;gap:36px;min-width:0}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-title h2{font-size:18px}.section-title h3{font-size:16px}.count{font-size:14px;margin-left:10px;font-weight:400;color:var(--muted)}.filter-tabs{display:flex;gap:24px;margin-bottom:8px;border-bottom:1px solid var(--line)}.filter{background:none;border:0;min-height:44px;padding:10px 0;font-size:14px;color:var(--muted);position:relative}.filter.active{color:var(--ink);font-weight:500}.filter.active:after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--ink)}.task-list{display:flex;flex-direction:column;min-width:0}.task-card{display:flex;align-items:center;gap:14px;padding:20px 0;border-bottom:1px solid var(--line);min-width:0}.checkbox{border:1.5px solid var(--strong);background:transparent;border-radius:5px;width:24px;height:24px;flex-shrink:0;padding:2px;display:grid;place-items:center;position:relative}.checkbox:before{content:'';position:absolute;inset:-10px}.checkbox.checked{background:var(--ink);color:var(--inverse);border-color:var(--ink)}.checkbox .icon{width:17px;height:17px}.task-body{flex:1;min-width:0}.task-title{font-size:16px;font-weight:500;line-height:1.6;overflow-wrap:anywhere}.completed .task-title{text-decoration:line-through;color:var(--muted)}.task-meta{display:flex;gap:12px;flex-wrap:wrap;align-items:center;font-size:12px;color:var(--muted);margin-top:6px;line-height:1.7}.task-meta>span{display:flex;gap:4px;align-items:center}.task-meta .icon{width:13px;height:13px}.task-note{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);margin-top:10px}.task-actions{display:flex;gap:2px;flex-shrink:0}.task-actions .small-button{padding:10px;border:0}.task-actions .small-button>span{display:none}.task-actions .icon{width:18px;height:18px}.task-card.timing .task-title{font-weight:600}.running{background:var(--surface)}.add-row{display:flex;gap:8px;align-items:center;justify-content:center;width:100%;background:transparent;border:0;min-height:52px;font-size:14px;color:var(--muted);margin-top:12px}.panel{padding:0;min-width:0}.right-column{display:flex;flex-direction:column;gap:28px}.week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.week-day{display:flex;flex-direction:column;align-items:center;gap:10px;border:0;background:none;padding:8px 0;min-height:80px;font-size:13px;color:var(--muted)}.week-dot{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--surface);font-size:13px;font-weight:500}.week-dot.full{background:var(--ink);color:var(--inverse)}.week-dot.partial{background:var(--line);color:var(--ink)}.week-dot .icon{width:16px;height:16px}.week-day.current .week-dot{outline:1px solid var(--ink);outline-offset:3px}.week-day i{font-style:normal;font-size:12px}.panel-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted);border-top:1px solid var(--line);margin-top:12px;padding-top:8px}.guide-panel{display:none}.privacy-note{font-size:13px;line-height:1.8;color:var(--muted)}.privacy-note .icon{width:15px;height:15px;margin-right:6px}.privacy-note>span{padding-left:22px}.empty-state{padding:36px 4px;text-align:left}.empty-icon{display:none}.empty-state h3{font-size:20px}.empty-state p{font-size:14px;color:var(--muted);margin:12px 0 24px}.quiet-empty{font-size:14px;color:var(--muted);padding:28px 0;line-height:1.8}.hint{font-size:14px;color:var(--muted);line-height:1.8;margin:12px 0 20px}.page-actions{margin-top:20px}footer{padding:24px 20px calc(112px + env(safe-area-inset-bottom));font-size:12px;color:var(--muted);display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line)}footer span{display:none}.mobile-nav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);background:var(--bg);border-top:1px solid var(--line);padding:8px 8px calc(8px + env(safe-area-inset-bottom));z-index:40}.nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px;min-height:52px;font-size:12px;color:var(--muted)}.nav-item.active{color:var(--ink);font-weight:600}.nav-item.active .icon{stroke-width:2}.nav-item .icon{width:20px;height:20px}
.calendar-panel{max-width:440px}.calendar-panel .section-title h2{font-size:17px}.month-controls{display:flex;align-items:center;gap:2px}.month-controls .icon-button{font-size:24px}.calendar-week,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.calendar-week{text-align:center;font-size:13px;color:var(--muted);margin:20px 0 12px}.calendar-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:48px;border:0;background:none;border-radius:5px;font-size:14px}.calendar-day b{font-weight:400}.calendar-day.selected{background:var(--ink);color:var(--inverse)}.calendar-day.is-today:not(.selected){outline:1px solid var(--strong);outline-offset:-3px}.calendar-mark{width:4px;height:4px;border-radius:50%;background:transparent}.full{background:var(--ink)}.partial{background:var(--strong)}.planned{background:var(--line)}.calendar-day.selected .calendar-mark{background:var(--inverse)}.calendar-legend{display:flex;gap:16px;font-size:12px;color:var(--muted);margin-top:16px}.calendar-legend>span{display:flex;align-items:center;gap:6px}.calendar-legend i{width:5px;height:5px;border-radius:50%}.day-summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:13px;color:var(--muted);margin-bottom:12px}.segmented{display:flex;gap:8px}.segmented button{min-height:44px;font-size:14px;padding:10px 14px;border:1px solid var(--line);border-radius:6px;background:none}.segmented button.active{background:var(--ink);color:var(--inverse);border-color:var(--ink)}.stat-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-bottom:36px}.stat-cards article>span{font-size:14px;color:var(--muted)}.stat-cards strong{display:block;font-size:34px;font-weight:500;line-height:1.4;margin:16px 0 8px;font-variant-numeric:tabular-nums}.stat-cards strong.stat-duration{font-size:22px}.stat-cards small{font-size:14px;font-weight:400;color:var(--muted)}.stat-cards p{font-size:12px;color:var(--muted)}.stat-cards article:last-child{grid-column:1/-1}.chart-panel{margin-bottom:36px}.chart-key{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}.chart-key i{width:6px;height:6px;background:var(--ink)}.bar-chart{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));gap:8px;padding-top:16px}.bar-column{position:relative;min-width:0;padding:0;border:0;background:none}.bar-track{height:150px;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--line)}.bar-fill{display:block;width:50%;background:var(--strong);border-radius:2px 2px 0 0}.bar-fill.today-bar{background:var(--ink)}.bar-label{font-size:11px;color:var(--muted);display:block;margin-top:10px;white-space:nowrap}.bar-tooltip{display:none;position:absolute;z-index:2;bottom:42px;background:var(--ink);color:var(--inverse);padding:8px;border-radius:4px;font-size:12px;white-space:nowrap}.bar-column:last-child .bar-tooltip{right:0}.bar-column:hover .bar-tooltip,.bar-column:focus-visible .bar-tooltip{display:block}.bar-chart[style*="30"]{gap:3px}.bar-chart[style*="30"] .bar-column:not(:nth-child(5n+1)) .bar-label{visibility:hidden}.bar-chart[style*="30"] .bar-fill{width:75%}.chart-empty{font-size:14px;color:var(--muted);padding-top:20px}.time-rows{display:grid;gap:12px}.time-row{display:grid;grid-template-columns:64px minmax(0,1fr) 108px;align-items:center;gap:12px;width:100%;border:0;background:none;min-height:44px;font-size:13px;padding:8px 0;color:var(--muted)}.time-track{height:5px;background:var(--line)}.time-track i{display:block;height:100%;background:var(--strong)}.time-row b{font-weight:400;text-align:right;font-variant-numeric:tabular-nums}
.dialog-open{overflow:hidden}dialog{border:1px solid var(--line);border-radius:10px;width:560px;max-width:calc(100% - 24px);max-height:calc(100dvh - 32px);padding:0;background:var(--bg);color:var(--ink)}dialog::backdrop{background:#0007}#dialog-content{padding:24px 20px}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px}.modal-head h2{font-size:22px}.modal-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.modal-actions.between{justify-content:space-between}.modal-actions>div{display:flex;gap:8px}form>label{display:block;margin:20px 0;font-size:14px;line-height:1.7}input:not([type=checkbox]),select,textarea{display:block;width:100%;background:var(--bg);color:var(--ink);border:1px solid var(--strong);border-radius:5px;margin-top:8px;padding:12px;font-size:16px;min-height:48px}textarea{resize:vertical;line-height:1.7}.optional{font-size:13px;color:var(--muted);margin-left:8px}.weekday-picker{display:flex;gap:6px}.weekday-picker label{flex:1;position:relative}.weekday-picker input{position:absolute;opacity:0;inset:0;margin:0;width:100%;height:100%;cursor:pointer}.weekday-picker span{height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:5px;font-size:14px}.weekday-picker input:checked+span{background:var(--ink);color:var(--inverse)}.weekday-picker input:focus-visible+span{outline:2px solid var(--ink);outline-offset:3px}[hidden]{display:none!important}.manage-list{max-height:50vh;overflow:auto}.manage-row{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.manage-row>div:first-child{flex:1;min-width:120px}.manage-row strong{font-size:16px;font-weight:500;overflow-wrap:anywhere}.manage-row p{font-size:13px;color:var(--muted);margin-top:6px}.manage-actions{display:flex;gap:4px}.danger{color:var(--error)}.info-box h3{font-size:17px}.info-box p,.info-section p{font-size:14px;color:var(--muted);margin-top:10px;line-height:1.8}.backup-actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 8px}.info-section{border-top:1px solid var(--line);margin-top:24px;padding-top:4px}.info-section h3{margin-top:24px;font-size:16px}.version-line{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:28px;font-size:12px;color:var(--muted)}.confirm-copy{font-size:15px;color:var(--muted);line-height:1.8}.timer-dock{position:fixed;bottom:calc(88px + env(safe-area-inset-bottom));left:12px;right:12px;z-index:30;display:flex;align-items:center;gap:12px;padding:14px;border-radius:7px;background:var(--ink);color:var(--inverse)}.timer-dock>div{flex:1;min-width:0}.timer-dock small{display:block;font-size:12px;opacity:.75;margin-bottom:6px}.timer-dock strong{display:block;font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.timer-dock>b{font-size:18px;font-weight:500;font-variant-numeric:tabular-nums}.timer-dock .small-button{border:1px solid var(--strong);color:var(--inverse);background:transparent}.timer-dock .icon-button{color:var(--inverse)}.pulse{display:none}.has-timer footer{padding-bottom:200px}#toast{position:fixed;left:50%;bottom:180px;transform:translateX(-50%);background:var(--ink);color:var(--inverse);border:1px solid var(--strong);padding:14px 18px;border-radius:6px;font-size:14px;line-height:1.8;max-width:calc(100% - 32px);width:max-content;z-index:100;opacity:0;pointer-events:none}#toast.visible{opacity:1}#toast.error{background:var(--error);color:white}.error-banner{padding:16px;border:1px solid var(--error);border-radius:6px;color:var(--error);margin-bottom:24px;font-size:15px;line-height:1.8}
@media(min-width:760px){.sidebar{display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:224px;padding:36px 24px 24px;border-right:1px solid var(--line);background:var(--bg)}.brand{font-size:22px;font-weight:600;letter-spacing:-.5px}.nav-label{font-size:13px;color:var(--muted);margin:12px 0 40px;line-height:1.8}.desktop-nav{display:flex;flex-direction:column;gap:8px}.nav-item{flex-direction:row;justify-content:flex-start;gap:12px;padding:12px;font-size:14px;min-height:48px;border-radius:5px}.nav-item.active{background:var(--surface)}.sidebar-bottom{margin-top:auto}.local-status{font-size:12px;color:var(--muted);margin-bottom:16px}.sidebar-bottom .text-button{font-size:13px;width:100%;justify-content:space-between}.workspace{margin-left:224px}.topbar{padding:20px 36px;min-height:76px}.top-date{display:block;color:var(--muted)}.mobile-settings,.mobile-nav{display:none}main{padding:44px 36px 48px}.overview{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:32px;margin-bottom:44px}.focus-summary{flex-direction:column;align-items:flex-start;border:0;padding:0}.focus-summary>small{display:block;font-size:12px;color:var(--muted)}.focus-summary>strong{font-size:26px}.progress-ring{width:104px;height:104px}.progress-ring strong{font-size:32px}.progress-copy h2{font-size:20px}.stat-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.stat-cards article:last-child{grid-column:auto}.task-actions .small-button>span{display:inline}.task-card{padding:22px 0}.task-actions{gap:6px}footer{padding:24px 36px 36px}footer span{display:block}#dialog-content{padding:28px}.timer-dock{left:calc(50% + 112px);right:auto;transform:translateX(-50%);bottom:24px;width:540px;max-width:calc(100% - 264px)}.has-timer footer{padding-bottom:120px}#toast{bottom:116px}.history-grid{gap:40px}.page-heading{margin-bottom:36px}}
@media(min-width:1150px){.content-grid{grid-template-columns:minmax(0,1fr) 280px;gap:48px}.history-grid{grid-template-columns:340px minmax(0,1fr);gap:44px}main{padding:48px}.topbar{padding:20px 48px}.right-column{padding-top:8px}.page-heading h1{font-size:36px}.stat-cards{gap:40px}}
@media(max-width:370px){main{padding:28px 16px}.progress-panel{gap:14px}.progress-copy h2{font-size:17px}.task-card{gap:10px}.task-actions{flex-direction:column}.page-heading{align-items:flex-start}.task-meta{gap:6px}.timer-dock{gap:6px}.timer-dock>b{font-size:15px}.timer-dock .small-button{padding:8px}.time-row{grid-template-columns:56px minmax(0,1fr) 90px;gap:8px}}
@media(prefers-color-scheme:dark){:root{--bg:#111;--surface:#1b1b1b;--ink:#ededed;--muted:#aaa;--line:#333;--strong:#777;--inverse:#111;--error:#ffaaa6}#toast.error{background:#8d2925;color:white}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.dialog-feedback{font-size:14px;line-height:1.8;padding:12px;margin:0 0 20px;background:var(--surface);border:1px solid var(--line);border-radius:5px}.dialog-feedback.error{border-color:var(--error);color:var(--error)}
/* Shared column edges keep the summary and calendar at the same measure. */
main{max-width:1120px;padding-bottom:calc(108px + env(safe-area-inset-bottom))}.page-heading{margin-bottom:26px;align-items:center;flex-wrap:nowrap}.page-heading>div{min-width:0}.page-heading p{margin-top:8px}.overview{padding-bottom:24px;margin-bottom:28px;border-bottom:1px solid var(--line);gap:20px}.progress-ring{width:70px;height:70px;padding:4px}.progress-ring strong{font-size:24px}.progress-panel{gap:16px}.progress-copy h2{font-size:17px;font-weight:500}.content-grid{gap:28px}.right-column{padding:0}.focus-summary{padding-top:18px}.focus-summary>strong{font-size:22px}.panel-foot{justify-content:flex-end;border:0;margin-top:8px;padding:0}.week-day{gap:8px}.sidebar .brand{margin-bottom:36px}.task-card{padding:18px 0}.range-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.range-fields label{font-size:14px;min-width:0}.range-fields input{min-width:0;padding:10px;font-size:14px}.range-calendar{margin-top:16px;border:1px solid var(--line);padding:12px;border-radius:6px}.range-month{display:flex;align-items:center;justify-content:space-between;gap:8px}.range-month strong{font-size:15px;font-weight:500}.range-month button{background:none;border:0;min-height:44px;min-width:44px;font-size:24px}.range-week,.range-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.range-week{font-size:13px;color:var(--muted);text-align:center;margin:10px 0 6px}.range-day{background:none;border:0;min-height:42px;padding:6px 0;font-size:14px;border-radius:4px}.range-day.endpoint{background:var(--ink);color:var(--inverse)}.range-day.inside{background:var(--surface)}.range-day:disabled{opacity:.3}.range-status{font-size:13px;color:var(--muted);margin-top:12px;min-height:24px}.range-grid button:focus-visible{outline-offset:-2px}
@media(min-width:760px){.sidebar{width:200px}.workspace{margin-left:200px}.topbar{display:none}main{padding:40px 32px 48px}.overview{grid-template-columns:minmax(0,1fr) 240px;gap:28px}.focus-summary{padding:0;gap:6px}.content-grid{grid-template-columns:minmax(0,1fr) 240px;gap:28px}.progress-copy h2{font-size:18px}.timer-dock{left:calc(50% + 100px)}.page-heading{margin-bottom:28px}.page-heading h1{font-size:32px}}
@media(min-width:1150px){main{padding:44px 40px}.overview,.content-grid{grid-template-columns:minmax(0,1fr) 264px;gap:32px}.right-column{padding:0}}
@media(max-width:370px){.page-heading{align-items:center;gap:12px}.page-heading h1{font-size:28px}.page-heading>.button{padding:10px 12px}.range-calendar{padding:8px}.range-fields{gap:8px}.range-fields input{padding:8px;font-size:13px}}

.task-basics{display:grid;gap:18px;margin-bottom:20px}.task-basics label{display:block;font-size:14px;line-height:1.7}.range-day.inside{background:var(--line)}
@media(min-width:600px){.task-basics{grid-template-columns:1.15fr 1fr;gap:16px}.range-day{min-height:38px}.range-calendar{padding:10px}.range-status{margin-top:8px}}
.has-timer main{padding-bottom:200px}
@media(min-width:760px){.has-timer main{padding-bottom:140px}}

@media(min-width:600px){dialog:has(#task-form) #dialog-content{padding:24px}dialog:has(#task-form) .modal-head{margin-bottom:16px}.task-basics{margin-bottom:16px}.range-month button{min-height:36px}.range-day{min-height:36px}#task-form .modal-actions{margin-top:16px;padding-top:16px}}

dialog:has(#task-form) #dialog-content{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}#task-form{overflow:auto;min-height:0;padding:4px}#task-form .modal-actions{position:sticky;bottom:0;background:var(--bg);z-index:1}
/* The page still scrolls; its long browser scrollbar stays out of the layout. */
html{scrollbar-width:none}
html::-webkit-scrollbar,body::-webkit-scrollbar{display:none}
.work-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;min-width:0}
.work-section-heading>div{min-width:0}
.work-section-heading h2{font-size:20px;font-weight:600;overflow-wrap:anywhere}
.work-section-heading .text-button{color:var(--ink)}
.category-toolbar{display:flex;align-items:center;gap:12px;max-width:860px;margin-bottom:26px;min-width:0}
.category-rail{display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;padding:4px 2px}
.category-rail::-webkit-scrollbar{display:none}
.category-filter{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex-shrink:0;min-height:40px;max-width:180px;padding:8px 15px;border:1px solid var(--line);border-radius:22px;background:transparent;white-space:nowrap;font-size:14px;overflow:hidden;text-overflow:ellipsis}
.category-filter.selected{background:var(--ink);color:var(--inverse);border-color:var(--ink)}
.category-filter .icon{width:15px;height:15px}
.category-rename{font-size:12px;flex-shrink:0}
.category-tag{display:inline-block;align-self:flex-start;max-width:100%;background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:3px 8px;margin-bottom:4px;font-size:12px;font-weight:600;color:var(--ink);line-height:1.5;overflow-wrap:anywhere}
.task-list-heading{align-items:flex-end;margin-bottom:16px}
.task-list-heading .count{margin-left:6px}
.work-task-list{display:grid;gap:12px;min-width:0}
.work-task-card{display:flex;flex-direction:column;gap:14px;width:100%;min-width:0;padding:18px;text-align:left;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--bg)}
.work-task-card:hover{background:var(--surface);border-color:var(--strong)}
.work-task-card:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.work-task-copy{min-width:0;display:flex;flex-direction:column;gap:5px}
.work-task-copy strong{font-size:17px;line-height:1.45;font-weight:600;overflow-wrap:anywhere}
.work-task-schedule{font-size:13px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.work-task-count{font-size:13px;color:var(--muted)}
.work-items{padding:14px 16px 18px;border-top:1px solid var(--line);background:var(--surface)}
.work-items-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.work-items-heading h3{font-size:15px;font-weight:600}
.work-items-heading .text-button{font-size:13px;color:var(--ink)}
.work-items-heading .icon{width:15px;height:15px}
.work-item-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px}
.work-item-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;min-height:72px;border:1px solid var(--line);border-radius:11px;background:var(--bg);padding:13px 14px;text-align:left}
.work-item-card:hover{border-color:var(--strong)}
.work-item-title{font-size:15px;line-height:1.5;font-weight:500;overflow-wrap:anywhere}
.work-item-schedule{font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.work-items-empty,.work-empty{font-size:14px;color:var(--muted);line-height:1.7}
.work-empty{padding:26px 2px}
.detail-facts{display:grid;gap:20px;margin:0}
.detail-facts>div{display:grid;grid-template-columns:80px minmax(0,1fr);gap:14px;font-size:15px;line-height:1.7}
.detail-facts dt{color:var(--muted)}
.detail-facts dd{margin:0;overflow-wrap:anywhere}
.detail-children{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}
.detail-children h3{font-size:16px;font-weight:500;margin-bottom:8px}
.detail-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
.form-context{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;line-height:1.7;margin-bottom:20px;overflow-wrap:anywhere}
.task-detail{overflow:auto;min-height:0}
dialog:has(.task-detail) #dialog-content{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}
@media(max-width:599px){dialog:has(.task-detail){position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:85dvh;border-radius:14px 14px 0 0}dialog:has(.task-detail) #dialog-content{max-height:85dvh;padding-bottom:calc(24px + env(safe-area-inset-bottom))}.form-context{align-items:flex-start;flex-direction:column}.detail-facts>div{grid-template-columns:68px minmax(0,1fr)}}
.original-record{margin-top:20px;font-size:14px;line-height:1.8;color:var(--muted)}.original-record summary{cursor:pointer;min-height:44px;display:list-item;padding-top:8px}.original-record p{margin-top:8px}.original-record .task-note{white-space:pre-wrap}

.hierarchy-path{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;line-height:1.6;color:var(--muted)}
.hierarchy-path span:last-child{color:var(--ink);font-weight:500}
.form-context{border:1px solid var(--line);border-radius:6px;padding:10px 14px;margin-bottom:18px}
.fixed-project{display:flex;gap:12px;font-size:14px;color:var(--muted);margin:16px 0 22px}
.fixed-project strong{font-weight:500;color:var(--ink)}
@media(max-width:599px){.form-context{padding:10px 12px}}
@media(max-width:370px){.work-section-heading h2{font-size:18px}.task-list-heading .button{font-size:13px;padding:9px 10px}.work-task-card{padding:15px 14px}}
@media(min-width:760px){.work-task-section{max-width:860px}}

/* Date-driven execution, with one primary add action. */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.mobile-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
main{padding-top:24px}
.date-widget{max-width:860px;margin-bottom:0;min-width:0}
.date-widget-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:0}
.month-trigger{border:0;background:none;padding:6px 0;min-height:44px;font-size:18px;font-weight:500;text-align:left}
.month-trigger .icon{width:16px;height:16px;margin-left:5px;color:var(--muted)}
.date-tools{display:flex;align-items:center;gap:6px;flex-shrink:0}
.date-tools .icon-button{font-size:24px;width:44px;min-width:44px;height:44px;padding:12px;border-radius:50%;background:transparent;color:var(--muted)}
.date-tools .icon-button:hover{background:var(--line)}
.date-tools .icon-button[data-action="previous-week"] .icon{transform:rotate(180deg)}
.date-tools .text-button{font-size:13px;margin-right:6px}
.date-rail{position:relative;display:flex;gap:6px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:none;padding:2px 0 10px;background:transparent}
.date-rail::-webkit-scrollbar{display:none}
.date-chip{position:relative;isolation:isolate;flex:0 0 max(44px,calc((100% - 36px)/7));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:44px;padding:0 0 6px;border:0;border-radius:14px;background:transparent;scroll-snap-align:center}
.date-chip:before{content:"";position:absolute;z-index:-1;top:calc(50% - 22px);left:calc(50% - 22px);width:44px;height:44px;border-radius:14px;background:transparent}
.date-chip:hover:not(.selected):before{background:var(--schedule-surface)}
.date-chip:focus-visible{outline-offset:-3px}
.date-chip span{font-size:12px;line-height:14px;color:var(--muted)}
.date-chip b{font-size:16px;line-height:20px;font-weight:500;font-variant-numeric:tabular-nums}
.date-chip.selected{color:var(--inverse)}
.date-chip.selected:before{background:var(--ink)}
.date-chip.selected span{color:var(--inverse);opacity:.75}
.date-chip.is-today:not(.selected):before{box-shadow:inset 0 0 0 1px var(--strong)}
.date-chip.is-today:after{content:"";position:absolute;width:4px;height:4px;border-radius:50%;background:var(--ink);top:calc(50% + 15px);left:calc(50% - 2px)}
.date-chip.is-today.selected:after{background:var(--inverse)}
.day-layout{max-width:860px;display:flex;flex-direction:column;gap:18px;min-width:0}
.day-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:24px;padding:12px 0;border-bottom:1px solid var(--line)}
.metric-card{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:10px;padding:0;background:transparent;border:0;min-width:0;min-height:0}
.metric-card+ .metric-card{border-left:1px solid var(--line);padding-left:24px}
.metric-visual{display:grid;place-items:center;width:40px;height:40px;color:var(--ink)}
.metric-visual .icon{width:40px;height:40px;stroke-width:1.4}
.completion-ring{width:40px;height:40px;fill:none;stroke-width:3}
.metric-ring-track{stroke:var(--line)}
.metric-ring-fill{stroke:var(--ink)}
.metric-ring-check{stroke:var(--ink);stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.metric-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.metric-label{font-size:14px;line-height:1.3;color:var(--muted)}
.metric-card strong{display:block;font-size:30px;font-weight:500;line-height:1.1;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.metric-card small{font-size:16px;font-weight:400;color:var(--muted);margin-left:2px}
.metric-card .metric-duration{font-size:30px;line-height:1.1;font-weight:500}
.day-arrangements{min-width:0}
.day-list-heading{margin-bottom:4px}
.day-arrangements .filter-tabs{display:flex;gap:24px;padding:0;margin-bottom:12px;border:0;background:transparent}
.day-arrangements .filter{padding:10px 0;border-radius:0}
.day-arrangements .filter.active{background:transparent;color:var(--ink);font-weight:600}
.day-arrangements .filter.active:after{display:block;bottom:3px}
.day-arrangements .filter:hover:not(.active){background:transparent;color:var(--ink)}
.day-arrangements .filter:focus-visible{outline-offset:-3px}
.day-groups{display:grid;gap:22px}
.day-group>h3{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:500;color:var(--muted);margin-bottom:10px}
.day-group>h3 .icon{width:15px;height:15px;color:var(--ink)}
.day-group>h3>span{font-size:12px;font-weight:400;margin-left:3px}
.day-card-list{display:grid;gap:10px}
.yesterday-reminder{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin-bottom:18px;padding:12px 16px;border:1px solid var(--strong);border-radius:20px;background:var(--schedule-surface);font-size:14px}
.reminder-message{font-weight:500;line-height:1.5}
.reminder-message strong{font-weight:700}
.yesterday-reminder>div{display:flex;align-items:center;gap:8px}
.yesterday-reminder .text-button{min-width:44px;min-height:44px}
.reminder-view{min-width:52px;min-height:44px;padding:8px 16px;border:0;border-radius:24px;background:var(--ink);color:var(--inverse);font-size:14px;font-weight:500}
#yesterday-form .reminder-select-all{display:flex;align-items:center;gap:10px;min-height:44px;margin:0 0 12px;font-size:14px}
.reminder-choice-list{display:grid;gap:10px;max-height:50dvh;overflow:auto;padding:3px}
.reminder-choice{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.reminder-choice:has(input:checked){border-color:var(--strong);background:var(--surface)}
.reminder-choice:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:2px}
.reminder-choice-title{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 14px;cursor:pointer}
.reminder-choice-title strong{min-width:0;font-weight:500;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.reminder-choice-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.reminder-choice-owner{font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
#yesterday-form input[type="checkbox"]{width:18px;height:18px;flex-shrink:0;accent-color:var(--ink)}
@media(max-width:599px){dialog:has(#yesterday-form){position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:90dvh;border-radius:20px 20px 0 0}dialog:has(#yesterday-form) #dialog-content{padding-bottom:calc(20px + env(safe-area-inset-bottom))}.reminder-choice-list{max-height:44dvh}}
.day-heading-actions{display:flex;align-items:center;gap:8px}
.free-focus-button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:10px 12px;border:0;border-radius:24px;background:var(--schedule-surface,var(--surface));font-size:14px;white-space:nowrap}
.free-focus-button .icon{width:18px;height:18px}
.free-focus-button:hover{background:var(--line)}
@media(max-width:370px){.day-heading-actions{gap:4px}.free-focus-button{padding-inline:8px;font-size:13px}.free-focus-button .icon{width:16px;height:16px}}
.swipe-row{--swipe-offset:0px;--entry-surface:color-mix(in srgb,var(--ink) 4%,var(--bg));position:relative;min-width:0;overflow:hidden;border-radius:20px}
.swipe-row:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.entry-face{position:relative;z-index:1;display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-height:68px;padding:10px 12px;border:1px solid transparent;border-radius:20px;background:var(--entry-surface);transform:translateX(var(--swipe-offset));transition:transform 180ms ease;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.important .entry-face{background:var(--entry-surface);border-color:var(--strong)}
.completed .entry-face{background:var(--surface)}
.is-dragging .entry-face{transition:none}
.entry-face .checkbox{margin:0;justify-self:center;width:18px;height:18px;border-width:1px;border-radius:6px;padding:1px}
.entry-face .checkbox:before{inset:-13px}
.entry-face .checkbox .icon{width:13px;height:13px}
.compact-entry-body{min-width:0;display:flex;flex-direction:column;gap:3px}
.compact-entry-body strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:500;line-height:1.35}
.completed .compact-entry-body strong{text-decoration:line-through;color:var(--muted)}
.compact-entry-meta{display:flex;align-items:center;gap:10px;min-width:0;font-size:13px;line-height:1.4;color:var(--muted)}
.entry-owner{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.compact-entry-time{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;flex-shrink:0;font-variant-numeric:tabular-nums}
.compact-entry-time .icon{width:13px;height:13px}
.compact-entry-controls{display:flex;align-items:center;gap:0;margin-right:-8px}
.compact-timer,.entry-more{display:grid;place-items:center;width:44px;height:44px;padding:10px;border:0;background:transparent;border-radius:10px}
.compact-timer .icon,.entry-more .icon{width:19px;height:19px}
.compact-timer{position:relative;border-radius:50%}
.compact-timer::before{content:"";position:absolute;width:34px;height:34px;border-radius:50%;background:var(--line);transition:background 150ms ease}
.compact-timer .icon{position:relative;width:24px;height:24px;fill:currentColor;stroke-width:1;color:var(--muted)}
.compact-timer:hover::before{background:color-mix(in srgb,var(--line) 80%,var(--strong))}
.timing .compact-timer::before{background:var(--line);box-shadow:inset 0 0 0 1px var(--strong)}
.timing .compact-timer .icon{color:var(--ink)}
.entry-more{position:relative;flex-shrink:0;width:44px;height:44px;padding:0;border-radius:50%;color:var(--muted)}
.entry-more .icon{width:20px;height:20px;stroke-width:1.7}
.entry-more:hover{background:var(--line);color:var(--ink)}
.swipe-actions{position:absolute;inset:0 0 0 auto;display:grid;grid-template-columns:repeat(3,44px);align-content:center;gap:4px;width:140px}
.swipe-action{display:grid;place-items:center;width:44px;height:44px;border:1px solid transparent;border-radius:50%;background:var(--entry-surface);padding:0;transition:background 150ms ease}
.swipe-action span{display:none}
.swipe-action .icon{width:18px;height:18px}
.swipe-action[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--inverse)}
.swipe-action.delete{color:var(--error);background:color-mix(in srgb,var(--error) 8%,var(--bg));border-color:color-mix(in srgb,var(--error) 20%,var(--bg))}
.swipe-action:hover{background:var(--line)}
.swipe-action[aria-pressed="true"]:hover{background:var(--ink);opacity:.85}
.swipe-action.delete:hover{background:color-mix(in srgb,var(--error) 14%,var(--bg))}
@media(prefers-reduced-motion:reduce){.entry-face{transition:none}}
.plan-marker{display:grid;place-items:center;width:24px;height:28px;flex-shrink:0;color:var(--muted)}
.plan-marker .icon{width:18px;height:18px}
.icon.filled{fill:currentColor}
.day-empty{font-size:14px;color:var(--muted);padding:30px 0;line-height:1.7}
.stats-period{display:flex;justify-content:flex-end;margin-bottom:28px}
.stats-settings{padding:24px 0;margin-top:28px;border-top:1px solid var(--line)}
.stats-view{max-width:860px}
.stats-preview .stats-toolbar .segmented{min-width:120px}
.period-visual{margin-top:22px}
.period-visual-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.period-visual-heading h2{font-size:22px;font-weight:600}
.period-visual-heading>strong{font-size:25px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.period-visual-heading small{font-size:14px;font-weight:400;color:var(--muted);margin-left:4px}
.period-change{font-size:13px;color:var(--muted);margin:-8px 0 16px;line-height:1.5}
.heatmap-weekdays,.heatmap-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.heatmap-weekdays{color:var(--muted);font-size:12px;text-align:center;margin-bottom:8px}
.heatmap-day{position:relative;min-height:44px;border:0;border-radius:14px;padding:0;font-size:14px;font-weight:500;font-variant-numeric:tabular-nums;aspect-ratio:1.18;max-height:66px}
.level-0{background:var(--bg);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.level-1{background:color-mix(in srgb,var(--ink) 14%,var(--bg));color:var(--ink)}
.level-2{background:color-mix(in srgb,var(--ink) 30%,var(--bg));color:var(--ink)}
.level-3{background:color-mix(in srgb,var(--ink) 50%,var(--bg));color:var(--ink)}
.level-4{background:color-mix(in srgb,var(--ink) 74%,var(--bg));color:var(--bg)}
.level-5{background:var(--ink);color:var(--bg)}
.heatmap-day.is-today:after{content:"";position:absolute;inset:3px;border:1px solid currentColor;border-radius:11px;pointer-events:none}
.heatmap-day:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--strong)}
.heatmap-day.is-future{background:none;border:1px dashed var(--line);box-shadow:none;color:var(--muted);opacity:1}
.heatmap-day:focus-visible{outline-offset:-2px}
.completion-visual{padding-top:20px;border-top:1px solid var(--line);margin-top:22px}
.completion-line{position:relative;margin-top:6px}
.completion-line>svg{display:block;width:100%;height:auto;overflow:visible}
.line-guide{stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke}
.line-axis{fill:var(--muted);font-size:10px;font-family:inherit;font-variant-numeric:tabular-nums}
.completion-polyline{stroke:var(--ink);stroke-width:2;fill:none;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.completion-point{fill:var(--bg);stroke:var(--ink);stroke-width:1.5;vector-effect:non-scaling-stroke}
.completion-line-targets{position:absolute;inset:4% 2% 14% 6%;display:flex;align-items:stretch}
.completion-line-target{flex:1;min-width:0;min-height:44px;border:0;background:transparent;padding:0;border-radius:6px}
.completion-line-target:hover{background:color-mix(in srgb,var(--ink) 4%,transparent)}
.completion-line-target:focus-visible{outline-offset:-2px}
.preview-day-total{display:flex;justify-content:space-between;gap:12px;font-size:14px;align-items:baseline;margin-bottom:20px}
.preview-day-total span{color:var(--muted)}
.preview-day-rows{display:grid;gap:12px}
.preview-day-rows>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}
.preview-day-rows strong{display:block;font-size:16px;font-weight:500;overflow-wrap:anywhere}
.preview-day-rows small{font-size:12px;color:var(--muted);line-height:1.5}
.preview-row-result{display:grid;text-align:right;gap:2px;white-space:nowrap}
.preview-day-group+.preview-day-group{margin-top:24px}
.preview-day-group h3{display:flex;align-items:baseline;gap:8px;font-size:14px;font-weight:600;margin:0 0 6px}
.preview-day-group h3>span{font-size:12px;font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}
.preview-day-group .preview-day-rows{gap:0}
.preview-row-status{display:flex;align-items:center;justify-content:flex-end;gap:4px}
.preview-row-status .icon{width:14px;height:14px}
.preview-day-group.is-complete strong{color:var(--muted);text-decoration:line-through;text-decoration-thickness:1px}
.preview-day-group.is-complete h3{color:var(--muted)}
.preview-day-group.is-pending .preview-row-status{color:var(--ink)}
.preview-edit-rows{display:grid}
.preview-edit-row{display:grid;grid-template-columns:minmax(0,1fr) 148px;align-items:center;gap:8px;padding:14px 0;border-bottom:1px solid var(--line);min-width:0}
.preview-edit-identity{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:4px;min-height:44px;cursor:pointer;min-width:0}
.preview-edit-identity input[type=checkbox]{position:absolute;left:0;top:50%;transform:translateY(-50%);width:44px;height:44px;margin:0;opacity:0;cursor:pointer}
.preview-completion-box{width:18px;height:18px;border:1.5px solid var(--strong);border-radius:5px;display:grid;place-items:center}
.preview-completion-box .icon{width:14px;height:14px;visibility:hidden}
.preview-edit-identity input:checked+.preview-completion-box{background:var(--ink);color:var(--inverse);border-color:var(--ink)}
.preview-edit-identity input:checked+.preview-completion-box .icon{visibility:visible}
.preview-edit-identity input:checked~.preview-edit-copy strong{color:var(--muted);text-decoration:line-through;text-decoration-thickness:1px}
.preview-edit-identity input:focus-visible+.preview-completion-box{outline:2px solid var(--ink);outline-offset:4px}
.preview-edit-copy{min-width:0}
.preview-edit-copy strong{display:block;font-size:15px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.preview-edit-copy small{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.preview-edit-row>.hint{grid-column:1/-1;font-size:12px;color:var(--muted);margin:0 0 0 32px}
.preview-time-fields{border:0;margin:0;padding:0;min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:4px}
.preview-time-fields>span{position:relative;min-width:0}
.preview-time-fields input{width:100%;height:44px;min-height:44px;margin-top:0;padding:10px 32px 10px 8px;font-size:15px;font-variant-numeric:tabular-nums}
.preview-time-fields input:disabled{color:var(--muted);opacity:1}
.preview-time-fields>span>span{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:12px;color:var(--muted);pointer-events:none}
.preview-time-fields input::-webkit-inner-spin-button{appearance:none}
@media(max-width:370px){.preview-edit-row{grid-template-columns:minmax(0,1fr)}.preview-time-fields{width:164px;margin-left:32px}.preview-edit-identity{grid-template-columns:28px minmax(0,1fr)}}
dialog:has(#preview-day-form) #dialog-content{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}
dialog:has(#preview-day-form) .modal-head{flex-shrink:0}
#preview-day-form{display:flex;flex-direction:column;min-height:0}
#preview-day-form .preview-edit-rows{overflow:auto;min-height:0;padding:0 4px 4px}
#preview-day-form .modal-actions{flex-shrink:0;margin-top:16px;padding-top:16px}
@media(max-width:599px){dialog:has(#preview-day-form){position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:90dvh;border-radius:24px 24px 0 0}dialog:has(#preview-day-form) #dialog-content{max-height:90dvh;padding:24px 20px calc(20px + env(safe-area-inset-bottom))}}
.schedule-return-bar{margin:-8px 0 4px}
.schedule-return-bar .text-button{gap:6px;color:var(--ink);padding-inline:0}
.schedule-return-bar .icon{width:18px;height:18px}
@media(max-width:370px){.stats-preview .period-visual-heading h2{font-size:20px}.period-visual-heading>strong{font-size:22px}.heatmap-grid,.heatmap-weekdays{margin-inline:-16px;gap:2px}.heatmap-day{border-radius:12px;aspect-ratio:1;max-height:none}.heatmap-day.is-today:after{border-radius:9px}}
@media(min-width:1000px){.stats-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;align-items:start}.stats-preview>.stats-toolbar,.stats-preview>.stats-date-heading{grid-column:1/-1}.stats-preview>.period-visual{margin-top:22px}.stats-preview>.completion-visual{padding-top:0;border-top:0}}
.stats-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.stats-toolbar .segmented{min-width:174px;background:var(--schedule-surface);border:0;border-radius:16px;padding:4px;gap:4px}
.stats-toolbar .segmented button{min-width:50px;min-height:44px;border:0;background:transparent;border-radius:12px}
.stats-toolbar .segmented button.active{background:var(--ink);color:var(--inverse)}
.stats-date-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.stats-date-heading h2{font-size:18px;font-weight:500;text-align:center;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.stats-date-heading .icon-button{flex-shrink:0;border-radius:50%;background:var(--schedule-surface)}
.stats-summary-line{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:13px;line-height:1.5;margin:10px 0 26px;font-variant-numeric:tabular-nums}
.stats-section{margin-top:28px;min-width:0}
.stats-section .work-section-heading{margin-bottom:16px}
.stats-section h2{font-size:22px}
.stats-focus-chart{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));gap:4px;align-items:end;padding:20px 0 0;min-width:0;overflow-x:auto}
.stats-focus-column{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:0 2px;border:0;background:none;min-width:0;min-height:172px;border-radius:8px}
.stats-focus-plot{display:flex;align-items:flex-end;justify-content:center;width:100%;height:140px;border-bottom:1px solid var(--line)}
.stats-focus-bar{display:block;width:min(100%,28px);background:var(--strong);border-radius:6px 6px 0 0;min-height:0}
.stats-focus-bar.is-current{background:var(--ink)}
.stats-focus-day{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.stats-focus-column:focus-visible{outline-offset:-2px}
.stats-chart-tooltip{display:none}
.stats-focus-column:hover .stats-focus-bar{background:var(--muted)}
.stats-chart-footer{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);margin-top:8px}
.stats-distribution .work-section-heading{align-items:center;margin-bottom:6px}
.stats-group-tabs{display:flex;gap:18px;padding:0;margin:0;border:0}
.stats-group-tabs .filter{background:transparent!important;padding:10px 0;border-radius:0}
.stats-group-tabs .filter.active{font-weight:600}
.stats-group-tabs .filter.active:after{display:block;bottom:3px}
.stats-distribution-list{display:grid;gap:0}
.stats-distribution-row{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;align-items:center;gap:16px;min-height:78px;padding:14px 0;background:none;border:0;border-bottom:1px solid var(--line);text-align:left}
.stats-distribution-row:hover{background:var(--schedule-surface)}
.stats-distribution-copy{min-width:0;display:flex;flex-direction:column;gap:6px}
.stats-distribution-copy strong{font-size:16px;font-weight:500;overflow-wrap:anywhere}
.stats-distribution-copy small{font-size:12px;color:var(--muted)}
.stats-share-track{display:block;height:4px;width:100%;background:var(--line);border-radius:4px;overflow:hidden}
.stats-share-track i{display:block;height:100%;background:var(--strong);border-radius:4px}
.stats-distribution-value{display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-variant-numeric:tabular-nums}
.stats-distribution-value b{font-size:14px;font-weight:500}
.stats-distribution-value small{font-size:12px;color:var(--muted)}
.stats-distribution-row>.icon{width:16px;height:16px;color:var(--muted)}
.stats-more{grid-column:1/-1;border-top:1px solid var(--line);margin-top:28px;min-width:0}
.repeat-dates{margin:18px 0 8px;border-top:1px solid var(--line)}
.repeat-dates>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:52px;cursor:pointer;font-size:14px;list-style:none}
.repeat-dates>summary::-webkit-details-marker{display:none}
.repeat-dates-value{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;min-width:0;text-align:right}
.repeat-dates-value .icon{width:16px;height:16px;flex-shrink:0;transition:transform .18s ease-out}
.repeat-dates[open] .repeat-dates-value .icon{transform:rotate(90deg)}
.repeat-dates .range-fields{margin:4px 0 14px}
.repeat-dates .range-fields input{min-width:0}
.stats-more>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;cursor:pointer;font-size:16px;font-weight:500;list-style:none}
.stats-more>summary::-webkit-details-marker{display:none}
.stats-more>summary>.icon{width:18px;height:18px;color:var(--muted);transition:transform .18s ease-out}
.stats-more[open]>summary>.icon{transform:rotate(90deg)}
.stats-more-content{padding:4px 0 8px}
.stats-period-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0;padding:12px 0 24px;border-bottom:1px solid var(--line)}
.stats-period-facts>div{min-width:0}
.stats-period-facts dt{font-size:13px;color:var(--muted);line-height:1.5}
.stats-period-facts dd{font-size:20px;font-weight:500;margin:8px 0 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.stats-more .stats-section{margin-top:24px}
.stats-more .stats-section h2{font-size:18px}
.stats-records-link{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;width:100%;border:0;background:transparent;text-align:left;margin-top:20px;padding:0;font-size:14px}
.stats-records-link:hover{background:var(--schedule-surface)}
.stats-records-link>.icon{width:16px;height:16px;color:var(--muted)}
@media(max-width:370px){.stats-period-facts{gap:10px}.stats-period-facts dt{font-size:12px}.stats-period-facts dd{font-size:18px}}
.focus-task-context small{display:block;font-size:13px;font-weight:400;color:var(--muted);margin-top:6px}
@media(max-width:599px){.stats-focus-chart:has(>.stats-focus-column:nth-child(15)){grid-template-columns:repeat(var(--columns),minmax(24px,1fr));gap:4px}.stats-focus-chart{scrollbar-width:thin;scrollbar-color:var(--strong) var(--schedule-surface)}}
@media(max-width:370px){.stats-distribution-row{gap:10px}.stats-section h2{font-size:20px}.stats-group-tabs{gap:12px}.stats-summary-line{gap:6px}}
.task-section-actions{display:flex;align-items:center;gap:14px;flex-shrink:0}
.arrangement-date{color:var(--muted);font-size:14px;margin-top:-10px;margin-bottom:20px}
.arrangement-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border-radius:11px;background:var(--surface);margin-bottom:20px}
.arrangement-tabs button{min-height:44px;border:0;border-radius:8px;background:transparent;font-size:14px;padding:8px}
.arrangement-tabs button.selected{background:var(--bg);box-shadow:0 1px 4px #00000012;font-weight:500}
#new-task-fields>label{display:block;margin:20px 0;font-size:14px;line-height:1.7}
.picker-search{display:block;margin-bottom:10px}
.picker-search input{margin-top:0;border-color:var(--line);border-radius:10px}
.picker-panel{max-height:210px;overflow:auto;scrollbar-width:none;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.picker-root,.picker-leaf{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:54px;text-align:left;background:var(--bg);border:0;border-bottom:1px solid var(--line);padding:11px 13px}
.picker-root:last-child,.picker-leaf:last-child{border-bottom:0}
.picker-root>span:first-child,.picker-leaf>span:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.picker-root strong,.picker-leaf strong{font-size:15px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.picker-root small,.picker-leaf small{font-size:12px;color:var(--muted);line-height:1.5}
.picker-root>span:last-child{font-size:12px;color:var(--muted);white-space:nowrap}
.picker-root b{font-size:20px;font-weight:400;margin-left:6px}
.picker-selection{width:20px;height:20px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-size:12px}
.picker-leaf.selected{background:var(--surface)}
.picker-leaf.selected .picker-selection{background:var(--ink);color:var(--inverse);border-color:var(--ink)}
.picker-group-head{display:flex;align-items:center;gap:10px;padding:4px 10px;border-bottom:1px solid var(--line)}
.picker-group-head>button{min-height:44px;border:0;background:transparent;padding:6px 4px;font-size:14px;color:var(--muted)}
.picker-group-head>strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}
.picker-empty{padding:18px 14px;font-size:14px;color:var(--muted)}
.arrangement-status{font-size:13px;color:var(--muted);margin:4px 0 12px;line-height:1.7}
.inline-category{margin:12px 0 20px;padding:12px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}
.inline-category>label{display:block;font-size:14px;line-height:1.7}
.inline-category>div{display:flex;justify-content:flex-end;gap:12px;margin-top:8px}
.entry-identity{display:flex;flex-direction:column;gap:5px;margin-bottom:8px}
.entry-identity strong{font-size:17px;font-weight:500;overflow-wrap:anywhere}
.entry-identity span{font-size:12px;color:var(--muted)}
.toast-undo{min-height:44px;border:0;background:transparent;color:var(--inverse);font-size:14px;padding:4px 0 4px 16px;text-decoration:underline}
#toast.visible .toast-undo{pointer-events:auto}

/* Stable columns keep each management row aligned, including past tasks. */
.manage-list{position:relative;overscroll-behavior:contain}
.manage-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;column-gap:12px;row-gap:10px;padding:16px 0;align-items:center}
.manage-row>.manage-copy{grid-column:1;grid-row:1;min-width:0}
.manage-copy strong{display:block;line-height:1.5}
.manage-copy p{line-height:1.5;overflow-wrap:anywhere}
.manage-row>.manage-actions{grid-column:1;grid-row:2;display:grid;grid-template-columns:56px 56px;gap:8px;min-height:44px}
.manage-actions .small-button{min-height:44px;padding:8px 0;text-align:center}
.sort-handle{grid-column:2;grid-row:1 / 3;display:grid;place-items:center;min-width:44px;min-height:44px;border:0;border-radius:50%;background:transparent;color:var(--muted);touch-action:none;user-select:none;cursor:grab}
.sort-handle .icon{width:22px;height:22px}
.legacy-schedule{display:block;margin-top:8px;padding:12px 0;font-size:16px}
.task-view-tabs{display:flex;gap:24px;max-width:860px;margin:-8px 0 20px}
.task-card-status{display:flex;align-items:center;gap:10px}
.lifecycle-tag{display:inline-block;border-radius:5px;padding:2px 7px;background:var(--surface);border:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:400;white-space:nowrap}
.work-item-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.group-finished-hint{margin-top:20px;padding:12px;border-radius:8px;background:var(--surface);font-size:14px;line-height:1.7}
.task-more{margin-left:auto;min-width:44px;font-size:14px}
.task-more summary{display:block;cursor:pointer;min-height:44px;padding:12px 0;list-style:none;color:var(--muted)}
.task-more summary::-webkit-details-marker{display:none}
.task-more>div{display:flex;flex-direction:column;align-items:stretch;border-top:1px solid var(--line);padding-top:6px}
.task-more[open]{flex-basis:100%;margin-left:0}
.task-more>div .text-button{text-align:left;min-height:44px;color:var(--ink)}
.task-more>div .text-button.danger{color:var(--error)}
.button.primary.delete-task-confirm{background:var(--error);border-color:var(--error);color:var(--inverse)}
dialog:has(.delete-task-confirm){border:0;border-radius:24px;box-shadow:0 20px 64px #0003}
dialog:has(.delete-task-confirm) .button{border-radius:24px}
.confirm-copy{font-size:14px;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:599px){dialog:has(.delete-task-confirm){position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:90dvh;border-radius:24px 24px 0 0}dialog:has(.delete-task-confirm) #dialog-content{padding:24px 20px calc(20px + env(safe-area-inset-bottom))}}
.entry-deleted{font-size:12px;white-space:nowrap;flex-shrink:0}
.day-list-heading .add-arrangement-icon{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:10px;border-radius:50%}
.add-arrangement-icon .icon{width:20px;height:20px}
.sort-handle:hover,.sort-handle:focus-visible{background:var(--surface);color:var(--ink)}
.is-sorting{background:var(--surface);box-shadow:inset 0 0 0 1px var(--strong);border-radius:8px}
.is-sorting .sort-handle{cursor:grabbing;color:var(--ink)}
input[type=hidden]{display:none!important}
button.metric-card{font-family:inherit;color:var(--ink);text-align:left;cursor:pointer}
.metric-interactive{position:relative;isolation:isolate}
.metric-interactive:before{content:"";position:absolute;z-index:-1;inset:-6px -8px -6px 12px;background:var(--schedule-surface);border-radius:16px;transition:background 150ms ease}
.metric-interactive:hover:before{background:var(--line)}
.metric-interactive .metric-label{display:flex;align-items:center;gap:4px}
.metric-disclosure{width:12px;height:12px;flex-shrink:0;stroke-width:1.8}
@media(max-width:370px){.metric-interactive{gap:8px}.metric-interactive:before{left:4px;right:-4px}.metric-interactive .metric-label{gap:2px}.metric-disclosure{width:10px;height:10px}}
button.compact-entry-time{position:relative;min-height:18px;border:0;padding:0;background:transparent;color:var(--muted);font-size:inherit;font-family:inherit;line-height:inherit}
button.compact-entry-time::before{content:"";position:absolute;inset:-13px -5px}
button.compact-entry-time:hover{text-decoration:underline;text-underline-offset:3px}
.focus-view-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.focus-view-tools label{font-size:14px;flex:1;max-width:210px}
.focus-view-tools input{margin-top:6px;background:var(--surface);border-color:transparent;border-radius:16px}
.focus-add{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;width:auto;border:0;border-radius:24px;padding:10px 14px;flex-shrink:0;background:var(--schedule-surface,var(--surface));color:var(--ink);font-size:14px;white-space:nowrap}.focus-add .icon{width:18px;height:18px}
.focus-view-total{display:flex;align-items:baseline;gap:10px;margin:0 0 24px}
.focus-view-tools .focus-view-total{margin:0;flex-wrap:wrap;gap:4px 10px;min-width:0}
.focus-record-view>.focus-task-context{margin-bottom:16px}
.focus-view-total strong{font-size:26px;font-weight:500;font-variant-numeric:tabular-nums}
.focus-view-total>span,.focus-task-context{font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.focus-record-list{display:grid;gap:10px}
.focus-record-row{background:var(--surface);border-radius:20px;overflow:hidden}
.focus-record-open{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;border:0;background:transparent;text-align:left;min-height:72px;padding:14px;font-family:inherit}
.focus-record-open:hover:not(:disabled){background:var(--line)}
.focus-record-open:disabled{opacity:1;cursor:default;color:var(--ink)}
.focus-record-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.focus-record-copy strong{font-size:16px;font-weight:500;overflow-wrap:anywhere}
.focus-record-copy span,.focus-record-copy small{font-size:13px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.focus-record-open b{font-size:15px;font-weight:500;font-variant-numeric:tabular-nums;flex-shrink:0;max-width:40%;overflow-wrap:anywhere}
.focus-record-result{display:flex;align-items:center;justify-content:flex-end;gap:8px;max-width:42%;flex-shrink:0}
.focus-record-result b{max-width:none}
.focus-record-result .icon{width:16px;height:16px;color:var(--muted)}
.focus-record-actions{display:flex;justify-content:flex-end;gap:8px;padding:0 14px 12px}
.focus-record-actions .small-button{border-radius:24px}
.focus-edit-identity{overflow-wrap:anywhere;margin:0 0 24px}
.focus-edit-identity h3{font-size:20px;font-weight:600;line-height:1.4;margin:0;color:var(--ink)}
.focus-edit-identity p{font-size:14px;line-height:1.5;color:var(--muted);margin:6px 0 0}
.focus-allocations{display:grid;gap:20px}
.focus-allocation{padding-bottom:16px;border-bottom:1px solid var(--line)}
.focus-allocation h3{font-size:15px;font-weight:500;margin:0 0 14px}
.focus-date-duration,.focus-precise-times{display:grid;gap:16px}
.focus-duration-fields{border:0;padding:0;margin:0;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.focus-duration-fields legend{font-size:14px;line-height:1.7;margin-bottom:8px;padding:0}
.focus-duration-fields legend small{font-size:12px;color:var(--muted);margin-left:8px}
.focus-duration-fields>label{display:flex;align-items:center;min-width:0;gap:4px;padding-right:12px;background:var(--surface);border-radius:16px}
#focus-record-form .focus-duration-fields input{margin:0;background:transparent;flex:1}
.focus-duration-fields>label>span{font-size:14px;color:var(--muted);white-space:nowrap}
.focus-name-field{margin:0 0 24px!important}
.focus-link-toggle{display:flex!important;align-items:center;gap:8px;min-height:44px}
.focus-link-toggle input{width:18px;height:18px;accent-color:var(--ink)}
#focus-manual-association>label{display:block;margin:16px 0;font-size:14px}
.focus-link-choice{border:0;padding:0;margin:24px 0 16px;display:flex;flex-wrap:wrap;gap:8px 20px;min-width:0}
.focus-link-choice legend{padding:0;margin-bottom:12px;font-size:14px}
.focus-link-choice label{display:flex;gap:8px;align-items:center;min-height:44px;font-size:14px}
.focus-finish-total{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 12px}
.focus-finish-total strong{font-size:26px;font-weight:500;font-variant-numeric:tabular-nums}
.focus-finish-total span{font-size:14px;color:var(--muted)}
.focus-date-duration>label,.focus-precise-times>label{font-size:14px;line-height:1.7;min-width:0}
.focus-date-duration input,.focus-precise-times input,#focus-record-form textarea,#focus-record-form select{background:var(--surface);border-color:transparent;border-radius:16px}
.focus-specific-toggle{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;margin-top:8px}
.focus-specific-toggle input{width:18px;height:18px;margin:0;accent-color:var(--ink)}
.focus-time-details{margin-top:8px}
.focus-time-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;cursor:pointer;list-style:none;font-size:14px;color:var(--muted);border-radius:8px}
.focus-time-details>summary::-webkit-details-marker{display:none}
.focus-time-details>summary:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.focus-time-details>summary .icon{width:16px;height:16px;transform:rotate(90deg)}
.focus-time-details[open]>summary .icon{transform:rotate(-90deg)}
.focus-time-details .focus-specific-toggle{margin-top:0}
.pwa-install{margin-top:16px}
.focus-allocation-category{color:var(--muted);font-size:13px;line-height:1.5;margin:8px 0 0}
.focus-saved-intervals{display:grid;gap:8px;list-style:none;padding:0;margin:8px 0 16px;font-size:13px;line-height:1.5;color:var(--muted)}
.focus-saved-intervals li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;overflow-wrap:anywhere}
.focus-saved-intervals li span{font-variant-numeric:tabular-nums}
.focus-edit-actions>.danger{margin-right:auto}
.focus-undo-button{color:var(--ink);margin-left:12px;text-decoration:underline;text-underline-offset:3px}
/* One scroll owner per focus dialog; native date inputs must be allowed to shrink. */
dialog:has(.focus-record-view),dialog:has(#focus-record-form){border:0;border-radius:24px;box-shadow:0 20px 64px #0003;overflow:hidden;max-height:min(calc(100dvh - 34px),calc(var(--dialog-viewport-height,100dvh) - 16px))}
dialog:has(.focus-record-view) #dialog-content,dialog:has(#focus-record-form) #dialog-content{display:flex;flex-direction:column;max-height:min(calc(100dvh - 34px),calc(var(--dialog-viewport-height,100dvh) - 16px));min-width:0;overflow:hidden}
dialog:has(.focus-record-view) .modal-head,dialog:has(#focus-record-form) .modal-head{flex-shrink:0;min-width:0}
dialog:has(#focus-record-form) .modal-head>div{min-width:0}
dialog:has(#focus-record-form) .modal-head h2{overflow-wrap:anywhere}
dialog:has(#focus-record-form) .dialog-feedback{flex-shrink:0}
.focus-record-view,.focus-form-scroll{overflow-y:auto;overflow-x:hidden;min-height:0;min-width:0;padding:4px 0;overscroll-behavior-y:contain;touch-action:pan-y;scroll-padding-block:16px;scrollbar-width:thin;scrollbar-color:var(--strong) var(--bg)}
.focus-record-view{flex:1}
#focus-record-form{display:flex;flex-direction:column;overflow:hidden;min-height:0;min-width:0;margin:0}
.focus-form-scroll{flex:1}
.focus-form-scroll>label{display:block;font-size:14px;line-height:1.7;margin-top:20px}
#focus-record-form :is(input:not([type="checkbox"]),select,textarea){min-width:0;max-width:100%;width:100%;box-sizing:border-box}
#focus-record-form input:is([type="date"],[type="datetime-local"]){appearance:none;min-inline-size:0}
#focus-record-form input::-webkit-date-and-time-value{text-align:left;min-width:0}
#focus-record-form .modal-actions{position:static;flex-shrink:0;background:var(--bg);padding:16px 4px 0;margin-top:16px;gap:8px}
#focus-record-form .focus-edit-actions>.danger{padding-left:0}
#focus-record-form input[type="radio"]{display:inline-block;appearance:auto;width:18px;max-width:18px;min-height:0;height:18px;margin:0;padding:0;accent-color:var(--ink);flex-shrink:0}
#focus-record-form .button{border-radius:24px}
@media(min-width:600px){.focus-date-duration,.focus-precise-times{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:599px){dialog:has(.focus-record-view),dialog:has(#focus-record-form){position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:min(90dvh,calc(var(--dialog-viewport-height,100dvh) - 16px));bottom:var(--dialog-viewport-bottom,0px);border-radius:24px 24px 0 0}dialog:has(.focus-record-view) #dialog-content,dialog:has(#focus-record-form) #dialog-content{max-height:min(90dvh,calc(var(--dialog-viewport-height,100dvh) - 16px));padding:24px 20px calc(20px + env(safe-area-inset-bottom))}}
.timer-dock{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:8px}
.timer-dock .timer-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;grid-column:1/-1}
.timer-dock .timer-cancel{border-color:transparent;opacity:.8}
.timer-dock .timer-cancel:hover{opacity:1}
.timer-dock .timer-controls .icon-button{background:transparent;color:var(--inverse);border-radius:50%}
.timer-dock .timer-controls .small-button{min-height:44px;border-radius:24px}
@media(min-width:600px){.timer-dock{grid-template-columns:minmax(0,1fr) auto auto}.timer-dock .timer-controls{grid-column:auto}}

/* Item details are the editor; category actions remain secondary. */
.category-actions{display:flex;align-items:center;gap:4px;flex-shrink:0}
.category-actions .icon-button{width:44px;height:44px;border:0;border-radius:50%;background:var(--surface)}
.category-actions .icon-button:hover{background:var(--line)}
.category-actions .danger{color:var(--error)}
.category-delete-options{display:grid;gap:10px;margin-top:20px}
.category-delete-options label{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid var(--line);border-radius:16px;cursor:pointer}
.category-delete-options label:has(input:checked){border-color:var(--strong);background:var(--surface)}
.category-delete-options label:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:3px}
#delete-category-form input[type=radio],#move-category-form input[type=radio]{width:18px;height:18px;min-height:0;flex-shrink:0;margin:3px 0 0;padding:0;accent-color:var(--ink)}
.category-delete-options span{min-width:0}
.category-delete-options strong{display:block;font-size:15px;font-weight:500;line-height:1.5}
.category-delete-options small{display:block;color:var(--muted);font-size:13px;line-height:1.7;margin-top:5px;overflow-wrap:anywhere}
dialog:has(#task-form[data-item-detail]){border:0;border-radius:24px;box-shadow:0 20px 64px #0003}
#task-form[data-item-detail] input:not([type=checkbox]):not([type=hidden]),#task-form[data-item-detail] select{background:var(--surface);border-color:transparent;border-radius:16px}
dialog:has(#task-form[data-item-detail]) .button{border-radius:24px}
#task-form[data-item-detail] .form-context{padding:0;border:0;margin-bottom:14px}
.item-detail-meta{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;margin-bottom:24px;font-size:13px;line-height:1.7;color:var(--muted)}
.item-detail-meta strong{margin-left:6px;color:var(--ink);font-weight:500;font-variant-numeric:tabular-nums}
.item-detail-actions .task-more{margin-left:0;margin-right:auto}
.item-detail-actions .task-more[open]{flex-basis:100%;margin-right:0}
.item-detail-heading{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.item-detail-heading h2{min-width:0;overflow-wrap:anywhere}
.item-detail-heading .item-back{width:44px;height:44px;flex-shrink:0;border-radius:50%;background:var(--surface)}
.item-detail-heading .item-back:hover{background:var(--line)}
.item-back .icon{width:20px;height:20px}
.detail-category{display:inline-flex;align-items:center;gap:8px;min-height:44px;max-width:100%;padding:0;border:0;background:transparent;text-align:left;font-size:inherit}
.detail-category span{min-width:0;overflow-wrap:anywhere}
.detail-category .icon{width:16px;height:16px;flex-shrink:0;color:var(--muted)}
.detail-category:hover{color:var(--muted)}
.category-move-scope{border:0;padding:0;margin:24px 0 0;min-width:0}
.category-move-scope legend{font-size:14px}
.category-move-scope .category-delete-options{margin-top:10px}
.move-category-context{border:0;padding:0;color:var(--muted);overflow-wrap:anywhere}
dialog:has(#move-category-form){border:0;border-radius:24px;box-shadow:0 20px 64px #0003}
dialog:has(#move-category-form) #dialog-content{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}
#move-category-form{overflow:auto;min-height:0;padding:4px}
#move-category-form input[type=text],#move-category-form input:not([type]),#move-category-form select{border-color:transparent;background:var(--surface);border-radius:16px}
#move-category-form .button{border-radius:24px}
#move-category-form .modal-actions{position:sticky;bottom:0;background:var(--bg);z-index:1}
@media(max-width:599px){dialog:has(#move-category-form){position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:90dvh;border-radius:24px 24px 0 0}dialog:has(#move-category-form) #dialog-content{max-height:90dvh;padding:24px 20px calc(20px + env(safe-area-inset-bottom))}}
@media(max-width:599px){dialog:has(#task-form[data-item-detail]){position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:90dvh;border-radius:24px 24px 0 0}dialog:has(#task-form[data-item-detail]) #dialog-content{max-height:90dvh;padding:24px 20px calc(20px + env(safe-area-inset-bottom))}}
dialog:has(#arrangement-form) #dialog-content,dialog:has(#entry-form) #dialog-content{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}
#arrangement-form,#entry-form{overflow:auto;min-height:0;padding:4px;scrollbar-width:none}
#arrangement-form .modal-actions,#entry-form .modal-actions{position:sticky;bottom:0;background:var(--bg);z-index:1}
@media(max-width:599px){dialog:has(#arrangement-form),dialog:has(#entry-form),dialog:has(.calendar-panel){position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:90dvh;border-radius:20px 20px 0 0}dialog:has(#arrangement-form) #dialog-content,dialog:has(#entry-form) #dialog-content{max-height:90dvh;padding:24px 20px calc(20px + env(safe-area-inset-bottom))}}
@media(max-width:370px){.date-tools .text-button{font-size:12px}.date-tools{gap:4px}.month-trigger{font-size:18px}.day-metrics{column-gap:12px}.metric-card+ .metric-card{padding-left:12px}.metric-card strong,.metric-card .metric-duration{font-size:28px}.task-section-actions{gap:8px}.task-section-actions .button{padding:10px;font-size:13px}}
@media(min-width:760px){main{padding-top:36px}.day-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}}

/* The confirmed reference applies to the schedule surface and its dialogs. */
body:is([data-page="schedule"],[data-page="tasks"],[data-page="stats"]){--schedule-surface:color-mix(in srgb,var(--ink) 4%,var(--bg))}
body:is([data-page="schedule"],[data-page="tasks"],[data-page="stats"]) .nav-item{border-radius:24px;font-weight:400}
body:is([data-page="schedule"],[data-page="tasks"],[data-page="stats"]) .nav-item.active{font-weight:500}
body:is([data-page="schedule"],[data-page="tasks"],[data-page="stats"]) .desktop-nav .nav-item.active{background:var(--schedule-surface)}
body:is([data-page="schedule"],[data-page="tasks"],[data-page="stats"]) .mobile-nav{border-top:0;padding-top:6px;background:var(--bg)}
body:is([data-page="schedule"],[data-page="tasks"],[data-page="stats"]) .mobile-nav .nav-item{border-radius:20px}
body:is([data-page="schedule"],[data-page="tasks"],[data-page="stats"]) .mobile-nav .nav-item.active{background:var(--schedule-surface)}
body:is([data-page="schedule"],[data-page="stats"]) .day-list-heading h2{font-size:22px;font-weight:600}
body:is([data-page="schedule"],[data-page="stats"]) dialog{border:0;border-radius:24px;box-shadow:0 20px 64px #0003}
body:is([data-page="schedule"],[data-page="stats"]) dialog .button,body:is([data-page="schedule"],[data-page="stats"]) dialog .small-button{border-radius:24px}
body:is([data-page="schedule"],[data-page="stats"]) dialog .icon-button{border-radius:50%;background:var(--schedule-surface)}
body:is([data-page="schedule"],[data-page="stats"]) dialog input:not([type="checkbox"]):not([type="hidden"]),body:is([data-page="schedule"],[data-page="stats"]) dialog select,body:is([data-page="schedule"],[data-page="stats"]) dialog textarea{border-color:transparent;border-radius:16px;background:var(--schedule-surface)}
body:is([data-page="schedule"],[data-page="stats"]) dialog input::placeholder,body:is([data-page="schedule"],[data-page="stats"]) dialog textarea::placeholder{color:var(--muted);opacity:1}
body:is([data-page="schedule"],[data-page="stats"]) .arrangement-tabs{border-radius:26px;background:var(--schedule-surface)}
body:is([data-page="schedule"],[data-page="stats"]) .arrangement-tabs button{border-radius:22px}
body:is([data-page="schedule"],[data-page="stats"]) .arrangement-tabs button.selected{background:var(--ink);color:var(--inverse)}
body:is([data-page="schedule"],[data-page="stats"]) .picker-panel{border-radius:18px}
body:is([data-page="schedule"],[data-page="stats"]) .timer-dock{border-radius:24px}
@media(max-width:599px){body:is([data-page="schedule"],[data-page="stats"]) dialog:has(#arrangement-form),body:is([data-page="schedule"],[data-page="stats"]) dialog:has(#entry-form),body:is([data-page="schedule"],[data-page="stats"]) dialog:has(.calendar-panel),body:is([data-page="schedule"],[data-page="stats"]) dialog:has(#yesterday-form){border-radius:24px 24px 0 0}}

/* Selection is separate from completion. The active filter defines the selection scope. */
.day-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin-bottom:12px}
.day-arrangements .day-list-toolbar .filter-tabs{gap:20px;margin:0;min-width:0}
.day-batch-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;flex-shrink:0;padding:8px 0 8px 8px;border:0;background:transparent;color:var(--muted);font-size:14px;white-space:nowrap}
.day-batch-toggle .icon{width:18px;height:18px}
.day-batch-toggle:hover,.day-batch-toggle[aria-pressed="true"]{color:var(--ink)}
.day-batch-toggle:disabled{opacity:.4;cursor:default}
.batch-selection-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;color:var(--muted);font-size:12px}
.batch-selection-tools .text-button{min-height:44px;font-size:14px}
.batch-pick{display:grid;place-items:center;width:44px;height:44px;margin-inline:-10px;padding:0;border:0;background:transparent;color:var(--ink)}
.batch-checkmark{display:grid;place-items:center;width:18px;height:18px;border:1px solid var(--strong);border-radius:5px;background:var(--bg)}
.batch-checkmark .icon{width:13px;height:13px}
.batch-pick[aria-checked="true"] .batch-checkmark{border-color:var(--ink);background:var(--ink);color:var(--inverse)}
.is-batch-selecting .entry-face{cursor:pointer}
.batch-selected .entry-face{border-color:var(--ink)}
.batch-entry-status{font-size:12px;color:var(--muted);white-space:nowrap}
.batch-entry-status.is-done{color:var(--ink);font-weight:500}
.has-day-batch #timer-dock{position:fixed;left:12px;right:12px;bottom:calc(84px + env(safe-area-inset-bottom));display:grid;gap:8px;z-index:30}
.has-day-batch #timer-dock .timer-dock{position:static;left:auto;right:auto;bottom:auto;transform:none;width:100%;max-width:none}
.day-batch-bar{padding:12px 16px;border:1px solid var(--line);border-radius:20px;background:var(--bg)}
.day-batch-bar p{font-size:13px;color:var(--muted);margin:0 0 8px}
.day-batch-bar p strong{font-size:16px;color:var(--ink);font-variant-numeric:tabular-nums;font-weight:600}
.day-batch-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.day-batch-actions .small-button{min-height:44px;padding:8px 4px;border:0;border-radius:22px;background:var(--schedule-surface);font-size:13px;white-space:nowrap}
.day-batch-actions .small-button:disabled{opacity:.4;cursor:default}
body.has-day-batch main{padding-bottom:240px}
body.has-day-batch.has-timer main{padding-bottom:360px}
@media(max-width:370px){.day-list-toolbar{gap:8px}.day-arrangements .day-list-toolbar .filter-tabs{gap:14px}.day-batch-toggle{gap:4px;font-size:13px;padding-left:4px}.day-batch-toggle .icon{width:16px;height:16px}.day-batch-actions{gap:4px}}
@media(min-width:760px){.has-day-batch #timer-dock{left:calc(50% + 100px);right:auto;bottom:24px;width:640px;max-width:calc(100% - 264px);transform:translateX(-50%)}.day-batch-bar{display:flex;align-items:center;gap:24px}.day-batch-bar p{margin:0;white-space:nowrap}.day-batch-actions{flex:1}}

@media(max-width:759px) and (max-height:560px){body.has-day-batch #timer-dock{position:static;margin:16px 12px calc(96px + env(safe-area-inset-bottom))}body.has-day-batch main,body.has-day-batch.has-timer main{padding-bottom:24px}}

@media(prefers-color-scheme:dark){.level-3{color:var(--bg)}}
