/* B3 workbench: content first. Layout and states only; business rules stay in domain/actions. */
:root{--nav-w:224px;--pad:28px;--topbar-h:72px}
.main{margin:0;border:0;border-left:1px solid var(--hairline);border-radius:0}
.nav{padding:24px 12px 16px;background:var(--shell)}
.nav-head{padding:0 8px 28px}.brand-mark{width:28px;height:28px;flex-basis:28px}
.brand-text{font-size:15px;letter-spacing:-.025em}.nav-item{height:44px;gap:12px}
.nav-item.active{background:var(--accent-soft);color:var(--accent)}
.nav-group{margin-top:28px;padding-top:20px}
.nav-mini{height:36px}.nav-foot{padding-top:14px}.language-toggle{background:transparent;border-color:transparent}
.topbar{gap:16px;border-bottom-color:var(--divider)}
.topbar-left{flex-wrap:wrap;column-gap:12px;row-gap:0}.page-title{font-weight:650;font-size:24px}
.sidebar-toggle{background:transparent;border-color:transparent}.sidebar-toggle:hover{background:var(--surface-2)}
.page-meta{font-size:12px}.topbar-right{gap:8px}.topbar .btn{height:36px}
.seg{background:var(--surface-2);padding:3px;border-radius:9px}.seg button{height:32px}
.seg button.on{color:var(--ink);background:var(--surface);box-shadow:0 1px 3px #20242c12}
.btn{font-weight:550}.btn:active:not(:disabled){filter:brightness(.96)}
.local-note{background:var(--surface-3);border:0;color:var(--ink2)}
@media(min-width:768px) and (max-width:1279px){:root{--nav-w:64px;--pad:22px}.nav{padding-inline:8px}.nav-head{padding-inline:10px}.nav-item{justify-content:center;padding-inline:0}.language-toggle{padding-inline:0}}
@media(max-width:767px){:root{--nav-w:56px;--pad:16px;--topbar-h:64px}.main{margin:0;border-radius:0}.topbar-left{flex-wrap:nowrap}.topbar{padding-inline:16px}.page-title{font-size:22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important}}

/* Today / task lists / contextual editor. */
.today-grid{grid-template-columns:minmax(0,1fr) 280px;gap:36px;align-items:start}
.day-toolbar{margin-bottom:28px;align-items:center}.day-toolbar p{display:none}
.today-main .section-head{margin:0 0 20px}.today-main .section-head h2{font-size:13px;font-weight:500;color:var(--ink2)}
.day-group{margin:0 0 28px}.day-group-head{margin-bottom:8px}.day-group-head h3{font-size:14px}
.row-list{border:0;border-radius:0;overflow:visible}
.today-main .task-row{border-bottom:1px solid var(--divider);border-radius:0;padding:14px 10px;min-height:76px}
.task-row .rail{width:1px;top:24px;bottom:24px}
.today-main .tr-title{gap:10px;font-weight:500}.today-main .tr-subject{font-weight:400}
.today-main .tr-focus{background:transparent;color:var(--ink3)}
.recommendation-tag{display:inline-flex;align-items:center;gap:5px;color:var(--accent);font-weight:550;white-space:nowrap}.recommendation-tag svg{width:13px;height:13px;flex:none}
.upnext .upnext-title{display:inline;padding:0;border:0;background:transparent;color:inherit;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.task-row.is-selected,.tt-row.is-selected,.upnext.is-selected{background:var(--accent-soft);outline:1px solid var(--accent-line-2);outline-offset:-1px}
.today-side{padding-left:24px;border-left:1px solid var(--divider)}
.today-side .side-card{padding:20px 0;background:transparent;border:0;border-radius:0;border-bottom:1px solid var(--divider)}
.today-side .side-card:first-child{padding-top:0}.today-side .side-big{font-size:24px;line-height:34px}
.today-agenda{margin-bottom:12px}.today-agenda h2{font-size:14px;line-height:22px;font-weight:600;margin:0 0 8px}
.today-agenda-item{display:flex;align-items:start;gap:16px;width:100%;text-align:left;padding:12px 0;border-bottom:1px solid var(--divider);border-radius:4px}
.today-agenda-item>.tnum{font-size:13px;color:var(--accent);flex:none}.today-agenda-item strong{font-size:13px;font-weight:500;display:block;overflow-wrap:anywhere}.today-agenda-item small{display:block;font-size:12px;color:var(--ink3);margin-top:3px}
.empty-today{background:transparent;min-height:280px;justify-content:center;border:1px dashed var(--hairline)}
.tt-row{min-height:56px}.tt-title{font-size:14px}.tt-title small{font-size:12px}.tt-head{background:transparent;border-radius:0}.tt-row .rail{width:1px;top:18px;bottom:18px}
.detail-head{height:60px;flex-basis:60px}.detail-head .icon-btn{width:36px;height:36px}
.detail-body{padding:24px}.detail .d-title{font-family:inherit;font-size:20px;line-height:29px;resize:vertical;min-height:64px}
.detail .d-field{min-height:44px;height:auto;padding-block:8px}.detail .d-sec{margin-top:24px}
.detail .d-sec h3{font-size:13px;letter-spacing:0}.detail-foot{padding:16px;gap:10px;background:var(--surface-3)}
.detail-foot .dur-chips button{min-height:30px}.detail .d-plan-row{padding-block:12px}
@media(min-width:1440px){.app.detail-open .today-side{display:none}.app.detail-open .today-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:1100px){.today-grid{grid-template-columns:minmax(0,1fr);gap:24px}.today-side{padding:20px 0 0;border-left:0;border-top:1px solid var(--divider);display:grid;grid-template-columns:1fr 1fr;gap:24px}.today-side .side-card{padding:0;border:0}}
@media(max-width:767px){.today-side{display:block}.today-side .side-card{padding:16px 0}.day-toolbar{margin-bottom:20px}.day-group-hint{max-width:50%;text-align:right}}

/* Planning: consistent date tools and readable actual time / flexible schedules. */
.plan-bar,.cal-toolbar,.agenda-toolbar{min-height:40px;margin-bottom:24px;gap:16px;flex-wrap:wrap}
.weeknav,.agenda-date{gap:8px}.weeknav .icon-btn,.agenda-date>.icon-btn{width:32px;height:36px;border:1px solid var(--hairline);border-radius:8px}.weeknav-label{font-size:15px}
.weeknav .chip-btn,.agenda-date .chip-btn{height:36px;font-size:13px}
.cal-hint{max-width:320px;line-height:20px}.cal-layout{grid-template-columns:220px minmax(0,1fr);gap:24px}
.unassigned-panel,.tl-queue{border:0;background:var(--surface-3);border-radius:12px;padding:18px}
.unassigned-item{border:0;border-bottom:1px solid var(--hairline);border-radius:0;background:transparent;padding:10px 0;gap:10px}.unassigned-item .rail{width:1px;top:12px;bottom:12px}.u-main{padding-left:8px}.u-t{font-size:13px;line-height:20px;white-space:normal}.u-m{margin-top:4px}
.cal-week-head{background:transparent;border:0;padding-bottom:8px}.cal-grid{border-radius:10px;border-color:var(--hairline)}
.cal-cell{padding:8px 6px;min-height:130px;cursor:default}.cal-date{align-self:flex-start;min-width:28px;min-height:28px;padding:2px 6px;border-radius:7px;color:var(--ink);font-size:13px}.cal-date:hover{background:var(--surface-2)}
.cal-cell.is-today{background:var(--surface)}.cal-cell.is-today .cal-date{background:var(--accent);color:#fff}.cal-cell.is-today .dd{color:inherit}
.cal-chip{display:flex;align-items:center;gap:5px;text-align:left;min-height:24px;padding:4px 5px;border-left-width:1px;background:var(--surface-3);color:var(--ink);line-height:18px}.cal-event-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-event-time{font-size:11px;color:var(--ink2);flex:none}.cal-chip.more{font-size:12px;color:var(--accent);width:100%;min-height:28px}.cal-chip.more:hover{background:var(--accent-soft)}
.board{gap:1px;background:var(--hairline);border:1px solid var(--hairline);padding:0;border-radius:12px;overflow:hidden;min-width:1120px;grid-template-columns:repeat(7,minmax(158px,1fr))}
.day-col{border:0;border-radius:0;min-height:520px;background:var(--surface-3)}.day-col.is-today{box-shadow:none}.day-col.is-today .dh-wd{color:var(--accent)}.day-head{padding:14px 12px;background:var(--surface)}
.day-cards{gap:8px;padding:10px 8px}.task-card{padding:12px 10px;background:var(--surface);border-color:transparent;border-radius:8px}.task-card .rail{width:1px;top:12px;bottom:12px}.task-card .tc-title{-webkit-line-clamp:3;padding-right:8px}.task-card .tc-meta{margin-top:8px}.task-card:hover{transform:none;background:var(--accent-soft-2)}
.task-card .tc-flag{width:24px;height:24px;right:4px;top:4px}.add-day{height:34px;border:0;background:transparent;color:var(--ink2)}.board-empty{color:var(--ink3);line-height:20px}
.tl-layout{grid-template-columns:280px minmax(0,1fr);gap:24px}.q-item{background:transparent;border:0;border-bottom:1px solid var(--hairline);border-radius:0;padding:10px 0}.q-item .rail{width:1px}.tl-head{padding:14px 16px;background:var(--surface-3)}.tl-track-wrap{border-color:var(--hairline);border-radius:12px}.tl-block{background:var(--accent-soft);border-radius:7px}.tl-block-open{padding:8px 10px}.tl-block.is-short .tl-block-open{padding:0 4px}
@media(max-width:1023px){.cal-layout,.tl-layout{grid-template-columns:minmax(0,1fr)}.unassigned-panel{max-height:240px;overflow:auto}.cal-hint{margin-left:0}.q-item{width:100%}}
@media(hover:none){.task-card .tc-flag{opacity:1}}

/* Focus / progress / local tools: quieter preparation, stronger state hierarchy. */
:root{--focusbg:var(--color-canvas)}
.focus.focus-setup{padding:40px 28px;align-items:center}.fs-card{max-width:520px;border:0;padding:8px 0 24px;background:transparent}
.fs-head{text-align:center}.fs-head h2{font-size:20px;line-height:28px;margin:0}.focus-preview{font-size:80px;font-weight:450;line-height:1.2;letter-spacing:-.035em;margin:24px 0;color:var(--ink)}
.fs-head p{font-size:13px;line-height:22px;max-width:48ch;margin:0 auto;color:var(--ink2)}
.fs-sec{margin-top:28px}.fs-sec>label{font-size:13px;font-weight:500;letter-spacing:0;text-transform:none;margin-bottom:10px;color:var(--ink2)}
.fs-select{height:44px;font-size:14px;background:var(--surface-3)}.fs-sec .dur-chips{align-items:center;flex-wrap:wrap;gap:8px}.fs-sec .dur-chips button,.fs-sec .dur-chips input{height:38px;font-size:13px}.fs-sec .dur-chips button.on{background:var(--accent-soft);border-color:transparent}
.fs-actions{margin-top:28px;display:flex;flex-wrap:wrap;gap:12px}.fs-actions .btn-primary{flex:1;height:44px}.fs-actions .btn-ghost{height:44px}.fs-honest{margin-top:24px;line-height:20px}
.focus-inner{width:100%;max-width:680px;padding:32px}.focus-task{font-size:20px;line-height:30px;overflow-wrap:anywhere;max-width:48ch;margin:0 auto}.focus-timer{font-weight:450;font-size:96px;line-height:1.2;margin:32px 0 24px}.focus-line{height:3px;max-width:90%}.focus-actions{margin-top:32px;gap:10px;flex-wrap:wrap}.focus-actions .btn{min-height:40px}.focus-meta{line-height:22px;margin-top:24px}.focus-honest{white-space:normal;line-height:20px;max-width:640px;width:calc(100% - 48px)}
.metric-grid{gap:0;border-block:1px solid var(--hairline);margin:24px 0 32px;padding-block:20px}.metric{background:transparent;border-radius:0;padding:0 20px;border-right:1px solid var(--divider)}.metric:last-child{border-right:0}.metric .m-label{font-size:13px;line-height:20px}.metric .m-value{font-size:28px;line-height:36px;font-weight:500;margin:8px 0 4px}.metric .m-sub{line-height:19px}
.chart-card{padding:24px;border:0;border-bottom:1px solid var(--hairline);border-radius:0;margin-bottom:24px}.card-head h2{font-size:15px}.card-head{flex-wrap:wrap}.chart-empty{height:200px}.chart-empty b{font-size:14px}.chart-empty span{line-height:21px;max-width:58ch}
.prog-bottom .card{border:0;padding:20px 24px}.rec-row{min-height:54px}.d-menu{padding:6px;border:0;box-shadow:0 8px 32px #20242c24;border-radius:12px;min-width:210px}.d-menu button{min-height:38px;padding-inline:12px;font-size:13px}.d-menu hr{margin:6px 0}
@media(max-width:1099px){.metric-grid{row-gap:24px}.metric:nth-child(3){border-right:0}}
@media(max-width:767px){.focus.focus-setup{padding:28px 20px;align-items:flex-start}.focus-preview{font-size:64px;margin:20px 0}.fs-actions .btn{flex-basis:100%}.focus-inner{padding:24px 16px}.focus-timer{font-size:72px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:24px}.metric{padding-inline:12px}.metric:nth-child(2n){border-right:0}.metric:nth-child(3){border-right:1px solid var(--divider)}.chart-card{padding:20px 0}}

/* Detail plan controls retain a readable two-line layout at every panel width. */
.detail .d-plan-row{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:8px;height:auto;align-items:end}
.detail .d-plan-row .dp-date-label{min-width:0}.detail .d-plan-row .dp-date{width:100%;min-width:0;height:34px}
.detail .d-plan-row .dp-input{height:34px;width:100%;min-width:0}.detail .d-plan-row .dp-acts{grid-column:1/-1;display:flex;flex-wrap:nowrap;margin-left:0;gap:6px;align-items:center}
.detail .d-plan-row .dp-btn{height:32px;min-width:40px}.detail .d-plan-row .dp-btn.icon{width:32px;min-width:32px}.detail .d-plan-row input[type="time"]{width:110px;flex:1}.detail .d-plan-row #dAddDate,.detail .d-plan-row #dAddMin{width:100%!important}.detail .d-plan-row #dAddPlan{width:100%;min-height:34px}.detail .d-plan-row:has(#dAddDate){margin-top:12px}
.cal-day.other .cal-date{color:var(--ink3)}

.detail .d-plan-row{grid-template-columns:minmax(0,1fr) minmax(118px,.7fr)}
.dp-minute-label{display:flex;flex-direction:column;gap:6px;min-width:0}.dp-minute-label>span{font-size:12px;line-height:18px;color:var(--ink3)}
.d-plan-new-title{font-size:13px;font-weight:600;margin:20px 0 4px;color:var(--ink)}
.week-scroll-hint{margin:0 0 10px;font-size:12px;line-height:20px;color:var(--ink3)}
.board-scroll{scroll-padding-inline:12px;scrollbar-width:thin;scrollbar-color:var(--ink3) var(--surface-2)}

/* Refined reading rhythm: recommendation is a label; fill belongs to selection. */
.today-main .tr-title{font-size:15px;line-height:24px;font-weight:550}
.today-main .tr-detail{gap:8px 12px;line-height:20px}.today-main .tr-subject{font-size:12px;color:var(--ink2)}
.today-main .task-row:hover:not(.is-selected){background:var(--surface-3)}
.day-group-head{align-items:baseline}.day-group-head h3{font-weight:600}.day-group-head>.tnum{color:var(--ink3)}
.today-side{gap:8px}.today-side .side-label{font-weight:500;letter-spacing:0;text-transform:none}
.tt-head{font-weight:500;letter-spacing:0}.tt-row.is-selected{box-shadow:none}
.detail .d-title{font-size:22px;line-height:31px;letter-spacing:-.015em}
.detail-foot{background:var(--surface);border-top:1px solid var(--hairline)}
.detail .d-field:hover .df-input{background:var(--surface-3)}
.detail .d-plan-row input{background:var(--surface-3);border-color:var(--hairline)}
.chart-empty{height:160px}.chart-empty span{color:var(--ink2)}
@media(hover:none){.today-main .task-row:hover:not(.is-selected){background:var(--surface)}}

/* Recommendation only adds its marker to the standard task row. */
.today-main .task-row:not(.is-selected){background:var(--surface)}
.today-main .task-row.upnext{border-left:0}
.tr-resume{color:var(--ink2);font-size:12px;line-height:20px}
