:root{--bg:#f7f7f3;--ink:#303830;--muted:#8a9087;--line:#e8eae3;--green:#344c3b;--purple:#7761af;--focus:#fff1b8;--hour:76px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,select{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit;border-radius:9px;padding:9px 12px}button:hover{background:#eaece5}button:focus-visible,a:focus-visible{outline:2px solid var(--purple);outline-offset:3px}input:focus,select:focus{outline:2px solid #b3a1d9}button:disabled{opacity:.4;cursor:default}.app{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:100vh}.sidebar{background:#efF0e9;border-right:1px solid var(--line);padding:34px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow:auto}.brand{font-size:34px;font-weight:750;letter-spacing:-2px;text-decoration:none;color:var(--green)}.brand span{font-size:13px;color:#a8b599;margin-left:5px}.tagline{color:var(--muted);font-size:12px;margin:6px 0 43px}.side-heading,.section-title,.header-row,.calendar-toolbar,.date-controls,.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}h2{font-size:15px;margin:0;font-weight:600}.side-heading h2 span{font-size:12px;color:var(--muted);margin-left:6px}.icon{font-size:23px;line-height:1;padding:6px 10px}#quick-add{display:flex;background:#fff;border:1px solid #e0e4d8;border-radius:10px;margin:16px 0}#quick-add input{border:0;background:none;width:100%;min-width:0;padding:13px 10px;font-size:13px;border-radius:10px}.filters{display:flex;gap:3px}.filters button{padding:7px 9px;font-size:12px;color:#7f867b}.filters .active{background:#dfe4d8;color:#3a4b35}.list-hint{color:#92998c;font-size:11px;line-height:1.6;margin:15px 0}.task{display:flex;align-items:flex-start;gap:10px;padding:14px 10px;margin-bottom:8px;background:#fafbf7;border:1px solid #e6e9df;border-radius:11px;cursor:grab}.task:hover{border-color:#bbc5b1}.task.is-focus{background:#f1ecf9;border-color:#dfd5f0}.check-button{flex:none;width:17px;height:17px;border:1.5px solid #bac3b4;border-radius:5px;padding:0;margin-top:1px;font-size:12px}.is-focus .check-button{border-color:#ad9bc9}.task.done .task-name{text-decoration:line-through;color:#90978b}.task.done .check-button{background:#718268;color:white}.task-body{flex:1;min-width:0}.task-name{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.task-meta{font-size:10px;color:#90958b;line-height:1.5;margin-top:7px}.task-star{color:var(--purple);font-size:13px}.side-bottom{margin-top:auto;padding-top:32px;font-size:10px;color:#8a9282;line-height:1.6}.save-dot{display:inline-block;width:5px;height:5px;background:#8b9c7c;border-radius:50%;margin-right:4px}#reset{display:block;font-size:11px;padding:8px 0;color:#8a9282}main{padding:30px 42px;min-width:0;max-width:1600px;width:100%;margin:auto}.breadcrumb{font-size:10px;font-weight:600;color:#9bA18f;letter-spacing:1.6px}.breadcrumb span{font-weight:400;letter-spacing:0;margin-left:7px}.header-row{margin:25px 0 30px}h1{font-size:30px;font-weight:550;letter-spacing:-1px;margin:0 0 10px}#summary{font-size:12px;color:#8b9285;margin:0}.section-title{margin-bottom:14px}.section-title>span{font-size:11px;color:#a0a595}.section-title small{font-size:11px;font-weight:400;color:#aca1bb;margin-left:8px}.focus-symbol{color:var(--purple);font-size:21px;vertical-align:middle;margin-right:6px}#focus-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:28px}.focus-card{background:var(--focus);border:1px solid #e4daf4;border-radius:12px;padding:12px 14px;text-align:left;min-height:76px;display:flex;align-items:flex-start;gap:10px}.focus-card:hover{background:#e7def5}.focus-card strong{font-size:12px;font-weight:500;line-height:1.3;color:#68518d;display:block;overflow-wrap:anywhere}.focus-card small{font-size:10px;color:#9b8bb2;display:block;margin-top:4px}.focus-number{flex:none;display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;border-radius:6px;background:#dfd3ef;color:#68518d;font-size:12px;font-weight:600;line-height:1}.focus-empty .focus-number{background:#eeebf3;color:#9383a9}.focus-empty{background:transparent;border:1px dashed #d9d8df;color:#a7a0b3;align-items:center;justify-content:center;font-size:12px}.calendar-panel{background:white;border:1px solid var(--line);border-radius:15px;overflow:hidden}.calendar-toolbar{padding:20px 20px 15px}.date-controls{gap:7px}.date-controls h2{min-width:125px;text-align:center}.date-controls #today{font-size:11px;border:1px solid var(--line);margin-left:8px}.segments{background:#f3f4ef;padding:3px;border-radius:9px;display:flex}.segments button{font-size:11px;padding:7px 12px;color:#929889}.segments .active{background:#fff;box-shadow:0 1px 3px #0000000d;color:#394735}.calendar-note{padding:0 25px 15px;display:flex;justify-content:space-between;color:#a3a99c;font-size:10px}.calendar-note i{display:inline-block;width:7px;height:7px;background:#b49bd5;border-radius:2px;margin-right:4px}.time-scroll{max-height:590px;overflow:auto;position:relative;border-top:1px solid var(--line)}.day-heads{position:sticky;top:0;background:#fff;z-index:5;display:grid;border-bottom:1px solid var(--line);margin-left:58px}.day-heading{padding:13px 4px;text-align:center;font-size:11px;color:#89917f;border-left:1px solid var(--line)}.day-heading b{margin-left:5px;color:#46513e}.time-layout{display:grid;grid-template-columns:58px minmax(0,1fr)}.time-labels{height:1824px;position:relative}.time-label{position:absolute;right:12px;top:0;font-size:10px;color:#a3aa9c;transform:translateY(-6px)}.time-label:first-child{transform:translateY(3px)}.days-grid{display:grid;position:relative;min-width:0}.day-column{height:1824px;position:relative;border-left:1px solid var(--line);background:repeating-linear-gradient(to bottom,transparent 0,transparent 37px,#f4f5f1 37px,#f4f5f1 38px,transparent 38px,transparent 75px,#e8ece2 75px,#e8ece2 76px);cursor:crosshair}.event{position:absolute;left:9px;right:9px;border-left:3px solid #9ead8c;border-radius:7px;background:#edf1e7;padding:9px 11px;cursor:grab;overflow:hidden;touch-action:none;user-select:none;min-height:19px;color:#46563b;z-index:2}.event.focus{background:var(--focus);border-color:#a48acb;color:#68518d}.event.completed{opacity:.5}.event-title{display:block;font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.event-time{display:block;font-size:10px;opacity:.65;margin-top:5px}.event .resize{position:absolute;bottom:0;height:9px;left:0;right:0;cursor:ns-resize;text-align:center;font-size:9px;line-height:7px;opacity:.35}.event.compact{padding:3px 8px}.event.compact .event-time{display:none}.event:hover{filter:brightness(.97);box-shadow:0 3px 12px #42503912}.week .event{left:2px;right:2px;padding-left:5px;padding-right:4px}.week .event-title{font-size:10px}.week .event-time{font-size:8px}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--line)}.month-weekday{padding:12px;text-align:center;color:var(--muted);font-size:11px}.month-cell{min-height:110px;border-top:1px solid var(--line);border-right:1px solid var(--line);padding:9px;cursor:pointer}.month-cell:hover{background:#fafbf8}.month-cell.outside{opacity:.4}.month-cell.today>b{background:var(--green);color:white;border-radius:50%;padding:5px 7px}.month-cell>b{font-size:12px;font-weight:500}.month-event{display:block;padding:5px;margin-top:5px;border-radius:4px;background:#edf1e7;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.month-event.focus{background:var(--focus);color:var(--purple)}footer{display:flex;justify-content:space-between;color:#a6ac9c;font-size:10px;padding-top:20px}footer span{color:#b0b5a7}dialog{border:1px solid #e6e9df;border-radius:18px;padding:26px;width:440px;max-width:calc(100% - 24px);box-shadow:0 20px 80px #24332926;color:var(--ink)}dialog::backdrop{background:#2733294d;backdrop-filter:blur(3px)}.dialog-head{margin-bottom:20px}label{display:block;font-size:12px;color:#78816f;margin-bottom:16px}label input:not([type=checkbox]),label select{display:block;width:100%;border:1px solid #dfe4d9;border-radius:8px;padding:11px;margin-top:7px;background:#fafbf8;color:var(--ink)}.form-row{display:flex;gap:14px}.form-row label{flex:1;min-width:0}.check{display:flex;align-items:center;gap:8px}.check small{margin-left:auto;color:#a0a995}.check input{accent-color:var(--purple)}.form-help{font-size:11px;color:#929b8b;line-height:1.6}.dialog-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end;margin-top:22px}.dialog-actions button{font-size:12px}.primary{background:var(--green);color:white}.primary:hover{background:#49644e}.danger{color:#af756c}.block-chip{font-size:10px;color:#929b8b;padding:4px 0}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#344c3b;color:#fff;padding:12px 20px;border-radius:10px;z-index:20;opacity:0;pointer-events:none;font-size:12px;transition:opacity .2s}#toast.show{opacity:1}#mobile-tasks{display:none}.empty-list{font-size:12px;color:#9ba58e;padding:20px 8px;line-height:1.7}
@media(min-width:1600px){main{padding:40px 60px}}@media(max-width:1100px){main{padding:25px 22px}.app{grid-template-columns:250px minmax(0,1fr)}.sidebar{padding:30px 17px}.calendar-toolbar{flex-wrap:wrap;gap:14px}h1{font-size:25px}.section-title>span{display:none}}@media(max-width:760px){.app{display:block}.sidebar{display:none;position:fixed;z-index:15;width:min(340px,90vw);box-shadow:10px 0 60px #25302133}.sidebar.open{display:flex}main{padding:24px 16px 85px}.breadcrumb{font-size:9px}.header-row{margin:23px 0}h1{font-size:27px}.focus-card{min-height:54px;padding:9px 12px}#focus-list{grid-template-columns:1fr;gap:7px;margin-bottom:22px}.focus-card small{margin-top:3px}.focus-empty{min-height:36px;padding:7px 12px}.calendar-toolbar{padding:14px 9px;justify-content:center}.date-controls h2{min-width:130px}.segments{width:100%;justify-content:center}.segments button{flex:1}.calendar-note{padding:0 12px 12px;font-size:9px;gap:10px}.time-scroll{max-height:none}.event{left:6px;right:6px}.calendar-panel{border-radius:12px}footer span{display:none}#mobile-tasks{display:block;position:fixed;bottom:17px;left:50%;transform:translateX(-50%);background:var(--green);color:white;border-radius:25px;padding:15px 22px;box-shadow:0 5px 25px #344c3b40;z-index:16;white-space:nowrap}.month-cell{padding:4px;min-height:80px}.month-event{font-size:8px;padding:3px}.week .event-title{font-size:8px}.week .event-time{display:none}.day-heads{margin-left:40px}.time-layout{grid-template-columns:40px minmax(0,1fr)}.time-label{right:7px}.day-heading{font-size:9px}.day-heading b{display:block;margin:3px 0 0}.dialog-actions{gap:4px}}

.voice-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:36px;min-height:40px;color:#78836e}.voice-button.listening{background:#eee8fa;color:#7761af;box-shadow:0 0 0 2px #cdbce7 inset}.title-with-voice{display:flex;border:1px solid #dfe4d9;background:#fafbf8;border-radius:8px;margin-top:-8px;margin-bottom:15px}.title-with-voice input{width:100%;min-width:0;padding:11px;border:0;background:transparent;border-radius:8px;color:var(--ink);font:inherit}.voice-help{font-size:11px;line-height:1.65;background:#eee8fa;color:#68518d;padding:10px 12px;border-radius:8px;margin:8px 0 15px}.voice-help[hidden]{display:none}.task-details{margin-bottom:18px}.task-details summary{cursor:pointer;color:#78816f;font-size:12px;padding:8px 0}.task-details summary span{font-size:10px;color:#9b8bb2}.task-details textarea{font:inherit;width:100%;resize:vertical;min-height:75px;border:1px solid #dfe4d9;background:#fafbf8;color:var(--ink);border-radius:8px;padding:10px;margin-top:5px}.task-details small{display:block;font-size:10px;line-height:1.5;color:#929b8b;margin-top:5px}dialog{max-height:calc(100dvh - 24px);overflow-y:auto}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.duration-picker{border:0;padding:0;margin:0 0 4px;min-width:0}.duration-picker legend{font-size:12px;color:#78816f;margin-bottom:10px}.duration-mode{display:flex;gap:18px;margin-bottom:10px;flex-wrap:wrap}.duration-mode label{display:flex;align-items:center;gap:6px;margin:0;font-size:12px}.duration-mode input{accent-color:var(--purple);margin:0}.duration-picker input:disabled,.duration-picker select:disabled{opacity:.4;cursor:not-allowed;background:#f0f1ed}.comment-voice-row{display:flex;align-items:center;gap:5px;color:#929b8b;font-size:11px}.comment-voice-row .voice-button{min-height:34px}

[hidden]{display:none!important}.filters{flex-wrap:wrap}.full-select{display:block;width:100%;border:1px solid #dfe4d9;border-radius:8px;padding:11px;margin-top:-8px;margin-bottom:16px;background:#fafbf8;color:var(--ink)}.day-tasks{padding:13px 22px;border-top:1px solid var(--line);background:#fafbf8}.day-tasks h3{font-size:11px;font-weight:500;color:#929b8b;margin:5px 0 10px}.day-task{display:flex;align-items:center;gap:9px;margin:6px 0;border-radius:8px;background:#edf1e7;padding:7px 10px;font-size:12px}.day-task.focus{background:var(--focus);color:#68518d}.day-task-title{text-align:left;flex:1;padding:4px;overflow-wrap:anywhere;font-size:12px}.day-task>button:last-child{font-size:10px;white-space:nowrap}.block-chip{display:block;text-align:left}#edit-focus-date{margin-bottom:5px}#task-dates{font-size:10px}#block-task-title{line-height:1.6;overflow-wrap:anywhere}.duration-picker select{max-width:100%}

.duration-mode input[type=radio]{display:inline-block;width:14px;height:14px;padding:0;border:0;flex:none;background:transparent;margin:0}.duration-picker legend span{color:#a092b0}#edit-deadline{min-height:41px}#focus-date-row small{display:block;font-size:10px;line-height:1.5;color:#929b8b}.day-task .check-button{margin:0}

#editor{width:540px;padding:24px}#editor .dialog-head{margin-bottom:22px}#editor .dialog-head h2{font-size:22px;font-weight:600}#editor .task-details{margin-top:-5px;margin-bottom:21px}#editor .task-details summary{font-size:12px}#comment-indicator.has-comment{display:inline-block;margin-left:7px;border-radius:12px;padding:3px 8px;background:var(--focus);color:#68518d;font-size:10px}.duration-chips{display:flex;flex-wrap:wrap;gap:8px;margin:5px 0 12px}.duration-chips button{border:1px solid #dfe4d9;border-radius:24px;padding:9px 16px;font-size:13px;background:#fafbf8}.duration-chips button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}#editor .task-estimate{padding-bottom:14px;margin-bottom:20px;border-bottom:1px solid var(--line)}#custom-estimate-row{margin-top:12px}.planning-options{padding:0;border:0;margin:0 0 17px;min-width:0}.planning-options legend{font-size:12px;color:#78816f;margin-bottom:12px}.planning-options>label{display:flex;align-items:center;gap:9px;margin-bottom:13px;font-size:13px;color:#46513e}.planning-options input[type=radio]{appearance:auto;display:inline-block;flex:none;width:17px;height:17px;margin:0;padding:0;accent-color:var(--green)}.deadline-section{border-top:1px solid var(--line);padding-top:18px;margin-top:8px;margin-bottom:19px}.deadline-section h3{font-size:12px;font-weight:500;color:#78816f;margin:0 0 12px}.deadline-section .check{font-size:13px;color:#46513e}#editor .dialog-actions .primary{width:100%;padding:13px;border-radius:24px}.comment-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;color:#8b7c9d;font-size:12px;line-height:1;vertical-align:middle;cursor:help}.task>.comment-badge{margin-top:3px}.focus-card .task-body{position:relative;padding-right:20px!important}.focus-card .comment-badge{position:absolute;right:0;top:2px}.event .comment-badge{position:absolute;right:9px;top:8px;color:inherit}.event:has(.comment-badge) .event-title{padding-right:17px}.event.compact .comment-badge{top:4px}.block-duration-mode{display:flex;gap:18px;margin-bottom:10px}.block-duration-mode label{display:flex;align-items:center;gap:6px;margin:0;font-size:12px}.block-duration-mode input[type=radio]{width:14px;height:14px;padding:0;margin:0;accent-color:var(--purple)}
@media(max-width:760px){#editor{padding:22px 18px}.duration-chips{gap:6px}.duration-chips button{padding:9px 13px}}

.block-end{flex:1;font-size:12px;color:#78816f;margin-bottom:16px}.block-end output{display:block;border:1px solid #e5e6df;background:#f4f5ef;border-radius:8px;padding:11px;margin-top:7px;color:#46513e;min-height:40px}.budget-summary{padding:10px 12px;border-radius:8px;background:#f3f4ee;font-size:11px;line-height:1.7}.budget-summary:empty{display:none}.day-task-budget{font-size:10px;color:#87927d}.day-task{flex-wrap:wrap}#task-planning-time .check{line-height:1.5}#task-planning-time .check input{flex:none}

/* Compact task form: reduce whitespace without changing field order or behavior. */
#editor{width:500px;padding:18px 22px}#editor .dialog-head{margin-bottom:14px}#editor .dialog-head h2{font-size:20px}#editor label{margin-bottom:10px}#editor label input:not([type=checkbox]):not([type=radio]),#editor label select{padding:8px 10px;margin-top:5px}#editor .title-with-voice{margin-bottom:8px}#editor .title-with-voice input{padding:8px 10px}#editor .voice-button{min-height:34px}#editor .task-details{margin-top:0;margin-bottom:12px}#editor .task-details summary{padding:5px 0}#editor .duration-picker legend{margin-bottom:6px}#editor .duration-chips{gap:6px;margin:3px 0 7px}#editor .duration-chips button{padding:7px 13px}#editor .task-estimate{padding-bottom:9px;margin-bottom:12px}#editor .planning-options{margin-bottom:8px}#editor .planning-options legend{margin-bottom:8px}#editor .planning-options>label{margin-bottom:6px;min-height:24px}#editor .form-row{gap:10px}#editor .block-end{margin-bottom:10px}#editor .block-end output{padding:8px 10px;margin-top:5px;min-height:34px}#editor .form-help{margin-top:6px;margin-bottom:8px;font-size:10px;line-height:1.5}#editor .budget-summary{padding:7px 9px}#editor .deadline-section{padding-top:10px;margin-top:7px;margin-bottom:10px}#editor .deadline-section h3{margin-bottom:8px}#editor #edit-deadline{min-height:34px}#editor .dialog-actions{margin-top:12px}#editor .dialog-actions .primary{padding:10px}#editor #custom-estimate-row{margin-top:8px}#editor .check{min-height:26px}#editor #task-dates:empty,#editor #existing-blocks:empty{display:none}
@media(max-width:760px){#editor{padding:16px;max-width:calc(100% - 20px)}#editor .duration-chips button{min-height:36px}#editor .planning-options>label{min-height:30px}#editor .check{min-height:32px}}

.planning-fields{margin:6px 0 12px 8px;padding:7px 0 0 17px;border-left:2px solid #e7eadf}.planning-fields label{display:block;font-size:12px;color:#78816f}.planning-fields .check{display:flex}.planning-fields .form-row{display:flex}#editor .planning-fields .form-help{margin-bottom:6px}

#editor .block-end output{border:0;background:transparent;border-radius:0;padding:4px 0 0;margin-top:5px;min-height:0;font-size:17px;font-weight:600;color:#68518d;font-variant-numeric:tabular-nums;line-height:1.3}#editor .block-end small{display:block;font-size:10px;color:#929b8b;margin-top:3px;line-height:1.4}#editor .block-end{align-self:flex-start}

/* Duration choices fit their labels instead of stretching across the form. */
#editor .duration-chips{display:flex;flex-wrap:wrap;gap:4px;margin:3px 0 6px}#editor .duration-chips button{flex:0 0 auto;width:auto;padding:5px 8px;min-height:26px;border-radius:6px;font-size:11px;line-height:1.2;white-space:nowrap}
@media(max-width:400px){#editor .duration-chips button{padding:6px 9px;min-height:30px}}

#editor .focus-warning{font-size:12px;line-height:1.5;color:#8a462d;background:#fff1e7;border:1px solid #efc8b1;border-radius:8px;padding:10px 12px;margin:0 0 12px}#editor .focus-warning:focus{outline:2px solid #c78159;outline-offset:2px}

.form-message{font-size:12px;line-height:1.5;color:#8a462d;background:#fff1e7;border:1px solid #efc8b1;border-radius:8px;padding:10px 12px;margin:12px 0}.form-message:focus{outline:2px solid #c78159;outline-offset:2px}

.day-task[draggable=true]{cursor:grab}.day-task[draggable=true]:active{cursor:grabbing}.day-task[draggable=true] .day-task-title{cursor:grab}

#block-editor{width:500px;padding:18px 22px}#block-editor label{margin-bottom:10px}#block-editor .duration-chips{display:flex;flex-wrap:wrap;gap:4px;margin:3px 0 9px}#block-editor .duration-chips button{flex:0 0 auto;width:auto;padding:5px 8px;min-height:26px;border-radius:6px;font-size:11px;line-height:1.2;white-space:nowrap}#block-editor .dialog-actions .primary{padding:10px 15px}#block-editor .duration-picker legend{margin-bottom:6px}

/* Main form sections stand apart from secondary field labels. */
#editor label[for="edit-title"],
#editor .task-details summary,
#editor .task-estimate>legend,
#editor .planning-options>legend,
#editor .deadline-section>h3{
 color:#344c3b;font-size:13px;font-weight:650;line-height:1.35;
 background:#eef1e8;border-left:3px solid #9aa98a;border-radius:0 5px 5px 0;
 padding:5px 9px;margin-bottom:8px;box-sizing:border-box;
}
#editor .task-estimate>legend,#editor .planning-options>legend{width:100%}
#editor label[for="edit-title"]{display:block}
#editor .title-with-voice{margin-top:0}
#editor .task-details{margin-top:0;margin-bottom:12px}
#editor .task-details summary{list-style-position:inside;margin-bottom:0;cursor:pointer}
#editor .task-details[open] summary{margin-bottom:7px}
#editor .deadline-section>h3{margin-top:0}
#editor .task-estimate{border-bottom:0;padding-bottom:4px}
#editor .deadline-section{border-top:0;padding-top:5px}
#editor .planning-fields label,#editor .planning-fields .block-end{color:#78816f;font-weight:400}

.comparison-banner{display:flex;justify-content:space-between;gap:12px;align-items:center;background:#eee8fa;border:1px solid #e4daf4;color:#68518d;border-radius:9px;padding:10px 12px;font-size:11px;margin-bottom:20px}.comparison-banner a{color:inherit;text-decoration:underline}.approach-details{border-top:1px solid var(--line);margin:10px 0;padding-top:8px;color:#78816f}.approach-details>summary{cursor:pointer;font-size:12px;font-weight:600;padding:5px 0}.approach-details[open]>summary{margin-bottom:8px}#editor .approach-details .duration-picker>legend{background:none;border:0;padding:0;font-size:12px}#editor .approach-details #remove-selected-block{font-size:11px;margin-top:7px}@media(max-width:760px){.comparison-banner{flex-direction:column;align-items:flex-start}}

.calendar-conflicts{font-size:12px;line-height:1.5;padding:10px 14px;margin:0 15px 12px;border:1px solid #efc8b1;border-radius:8px;background:#fff1e7;color:#8a462d}

#editor .duration-cheatsheet{font-size:11px;color:#78816f;margin:4px 0 9px}#editor .duration-cheatsheet summary{cursor:pointer;padding:4px 0}#editor .duration-cheatsheet table{border-collapse:collapse;margin-top:6px;width:min(100%,250px);background:#f7f8f3;border-radius:6px;font-variant-numeric:tabular-nums}#editor .duration-cheatsheet th,#editor .duration-cheatsheet td{padding:4px 10px;border-bottom:1px solid #e8eae3;text-align:left;font-weight:400}#editor .duration-cheatsheet td{color:#344c3b;text-align:right}#editor .duration-cheatsheet tr:last-child th,#editor .duration-cheatsheet tr:last-child td{border-bottom:0}

#editor .title-with-voice{background:#f1f5ed;border:1.5px solid #9aaa8b;border-radius:10px;margin-top:3px;margin-bottom:10px}#editor .title-with-voice input{font-size:16px;font-weight:550;color:#344c3b;padding:11px 12px}#editor .title-with-voice input::placeholder{color:#62755b;opacity:1}#editor .title-with-voice:focus-within{border-color:#637e55;box-shadow:0 0 0 3px #92a68020}#editor .title-with-voice .voice-button{color:#637e55}

#editor .dialog-head{align-items:center;gap:8px;margin-bottom:12px}#editor .dialog-head .title-with-voice{flex:1;min-width:0;margin:0}#editor .dialog-head .title-with-voice input{min-width:0;font-size:17px;padding:11px 12px}#editor .dialog-head #close-editor{flex:none;align-self:center}#editor .dialog-head .sr-only{padding:0;margin:0;border:0}

.task-outcome{border-top:1px solid var(--line);padding-top:12px;margin:12px 0}.task-outcome h3{font-size:13px;color:#344c3b;margin:0 0 9px}.outcome-toggles{display:flex;gap:24px}.outcome-question{font-size:12px;color:#46513e;margin:6px 0 8px}.outcome-answers{display:flex;gap:6px;margin-bottom:12px}.outcome-answers button{font-size:11px;padding:7px 10px;border:1px solid #dfe4d9;background:#fafbf8}.outcome-answers button[aria-pressed=true]{background:#344c3b;border-color:#344c3b;color:white}.outcome-preview{font-size:11px;line-height:1.6;background:#eef1e8;color:#46513e;border-radius:7px;padding:9px 11px;margin:7px 0}.task-outcome input[type=checkbox]{accent-color:#7761af}

.event-actions{position:absolute;right:7px;top:4px;display:flex;align-items:center;gap:7px;cursor:default;z-index:3;touch-action:auto}.event-actions .event-done{display:flex;align-items:center;gap:4px;margin:0;font-size:10px;color:inherit;cursor:pointer;white-space:nowrap}.event-actions input[type=checkbox]{width:13px;height:13px;margin:0;padding:0;accent-color:#7761af}.event-duplicate{display:flex;align-items:center;gap:3px;padding:3px 5px;font-size:10px;color:inherit;background:#ffffff88;border:1px solid #c8c4d555;border-radius:5px}.event .event-title{padding-right:145px}.event:has(.comment-badge) .event-title{padding-right:161px}.event .comment-badge{right:143px}.week .event-done span,.week .duplicate-caption{display:none}.week .event-actions{right:2px;gap:3px}.week .event-title{padding-right:43px}.week .event-duplicate{padding:2px}#quick-outcome{width:390px}#quick-outcome-task{font-size:14px;line-height:1.5;color:#68518d;margin-bottom:16px}#quick-outcome .task-outcome{border:0;padding:0}#quick-outcome .task-outcome h3{display:none}#quick-outcome .dialog-actions .primary{width:100%;padding:11px}@media(max-width:480px){.event-actions .event-done span,.event-actions .duplicate-caption{display:none}.event .event-title{padding-right:55px}.event-actions{gap:5px}.event .comment-badge{right:60px}}

.sidebar.calendar-drop-target{background:#e6ecde;box-shadow:inset 0 0 0 2px #8fa57c}.sidebar-drop-hint{font-size:12px;line-height:1.5;padding:12px;border:1px dashed #8fa57c;border-radius:9px;background:#fafcf6;color:#465b3c;margin:5px 0 12px;pointer-events:none}

#editor .focus-choice{padding:9px 11px;border-radius:9px;background:#f5f1fb;border:1px solid #e5dcf2;color:#7761af;gap:8px;transition:background .15s,border-color .15s}#editor .focus-choice small{color:#a292b8}#editor .focus-choice:has(input:checked){background:var(--focus);border-color:#b39ace;color:#68518d;font-weight:600}#editor .focus-choice:has(input:checked) small{font-weight:400;color:#8d79a7}#editor .focus-choice input{accent-color:#7761af}

#quick-outcome{width:460px;padding:20px}#quick-outcome .duration-chips{display:flex;flex-wrap:wrap;gap:4px;margin:3px 0 12px}#quick-outcome .duration-chips button{padding:5px 8px;min-height:26px;border-radius:6px;font-size:11px;line-height:1.2;white-space:nowrap}#quick-outcome .duration-picker>legend,#quick-outcome .planning-options>legend{font-size:12px;font-weight:600;color:#344c3b;background:#eef1e8;border-left:3px solid #9aa98a;padding:5px 8px;margin:5px 0 10px;width:100%;box-sizing:border-box}#quick-outcome .block-end output{background:none;border:0;padding:6px 0 0;min-height:0;color:#68518d;font-weight:600;font-size:17px}#quick-outcome .block-end small{display:block;font-size:10px;color:#929b8b;line-height:1.4;margin-top:3px}#quick-outcome label{margin-bottom:10px}#quick-outcome .planning-options>label{display:flex}#quick-outcome .planning-fields{margin-bottom:5px}

.filters{display:flex;flex-direction:column;align-items:stretch;gap:8px}.filter-row{display:flex;gap:5px;flex-wrap:wrap}.filter-row-secondary{padding-top:7px;border-top:1px solid #dfe4d8}

.focus-card.completed{background:#f3f0f7;border-color:#e7e1ed}.focus-card.completed .task-body{opacity:.55}.focus-card.completed .check-button{background:#c4b7d6;border-color:#c4b7d6;color:white}.focus-card.completed:hover{background:#eeebf3}

/* One warm yellow palette for day focus across all views. */
.focus-symbol,.task-star{color:#b38a1d}.calendar-note i{background:#d4ad3e}
.focus-card{border-color:#ead58b}.focus-card:hover{background:#ffeb9e}.focus-card strong{color:#705614}.focus-card small{color:#947d3d}.focus-card .check-button,.is-focus .check-button{border-color:#bda04d;accent-color:#ad861b}
.task.is-focus{background:#fff6d4;border-color:#ead58b}
.event.focus{background:var(--focus);border-color:#c4a03b;color:#705614}.month-event.focus,.day-task.focus{background:var(--focus);color:#705614}
.focus-number{background:#f3dfa0;color:#705614}.focus-empty{background:transparent;border-color:#e2d7af;color:#95875d}.focus-empty:hover{background:#fff9e6}.focus-empty .focus-number{background:#f5ecd0;color:#95834b}
#editor .focus-choice{background:#fff9e5;border-color:#eadfb5;color:#947620}#editor .focus-choice small{color:#a18d54}#editor .focus-choice:has(input:checked){background:var(--focus);border-color:#c9a848;color:#705614}#editor .focus-choice:has(input:checked) small{color:#947d3d}#editor .focus-choice input{accent-color:#ad861b}
.focus-card.completed{background:#f5f1e2;border-color:#e5debf}.focus-card.completed:hover{background:#efead9}.focus-card.completed .check-button{background:#c5b781;border-color:#c5b781;color:white}.focus-card .comment-badge{color:#947d3d}

/* Focus takes priority over work; ordinary tasks use a neutral warm grey. */
:root{--ordinary-bg:#eeefea;--ordinary-ink:#50564d;--work-bg:#dfeaf5;--work-ink:#3d5d7a}
.task:not(.is-focus):not(.is-work){background:var(--ordinary-bg);border-color:#dfe1d9}.event:not(.focus):not(.work),.day-task:not(.focus):not(.work),.month-event:not(.focus):not(.work){background:var(--ordinary-bg);color:var(--ordinary-ink)}.event:not(.focus):not(.work){border-left-color:#a7ada1}
.task.is-work:not(.is-focus){background:var(--work-bg);border-color:#c6d7e7;color:var(--work-ink)}.event.work:not(.focus),.day-task.work:not(.focus),.month-event.work:not(.focus){background:var(--work-bg);color:var(--work-ink)}.event.work:not(.focus){border-left-color:#8aa9c6}.task.is-work:not(.is-focus) .check-button{border-color:#8aa9c6}.task.is-work:not(.is-focus) .task-meta{color:#72899c}
#editor .work-choice{color:var(--work-ink);font-size:12px;gap:8px}#editor .work-choice input{accent-color:var(--work-ink)}.task.done{opacity:.65}

/* Anchor the page at the top and give the remaining viewport to the calendar. */
main{margin:0 auto}
@media(min-width:761px){
 main{height:100dvh;min-height:570px;display:flex;flex-direction:column;padding:18px 28px 12px}
 main>header,.focus-section,main>footer{flex:none}
 .header-row{margin:14px 0 18px}h1{font-size:27px;margin-bottom:7px}
 .section-title{margin-bottom:9px}#focus-list{gap:10px;margin-bottom:16px}.focus-card{min-height:64px;padding:11px 12px}
 .calendar-panel{flex:1;min-height:220px;display:flex;flex-direction:column}
 .calendar-toolbar{padding:12px 16px 9px;flex:none}.calendar-note{padding:0 20px 10px;flex:none}
 #calendar-conflicts{flex:none;margin-bottom:8px}
 #calendar{flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto}
 .time-scroll{flex:1;min-height:0;max-height:none}
 .day-tasks{flex:none;max-height:24dvh;overflow:auto;padding:8px 16px}
 .month-grid{flex:none}.month-cell{min-height:90px}
 footer{padding-top:9px}
}

.side-heading{margin-bottom:16px}

.filters>.filter-row:first-child{background:#e1e5d9;padding:3px;border-radius:10px;gap:3px}.filters>.filter-row:first-child button{flex:1;font-size:12px;padding:9px 8px}.filters>.filter-row:first-child button.active{background:#fff;box-shadow:0 1px 3px #344c3b12;color:#344c3b}.filter-row-secondary{border-top:0;padding:6px 1px 3px;gap:6px}.subfilter-label{flex-basis:100%;font-size:10px;color:#929b88;margin:0 0 2px 2px}.filter-row-secondary button{border:1px solid #d6dcce;border-radius:15px;background:transparent;font-size:11px;padding:5px 10px}.filter-row-secondary button.active{background:#dfe7d5;border-color:#a7b996;color:#344c3b}.filter-row-secondary button[aria-pressed=true]::before{content:'✓ ';font-size:10px}

.filters>.filter-row:first-child{align-self:flex-start;width:fit-content;padding:2px;gap:2px;border-radius:8px}.filters>.filter-row:first-child button{flex:0 0 auto;font-size:11px;padding:6px 10px;border-radius:6px}

#task-list{margin-top:12px}

/* Always expose the scheduled interval, including short events. */
.event.compact .event-time,.week .event .event-time{display:block}.event.compact .event-time{margin-top:2px;line-height:1.15;font-size:9px}.event.tiny{display:flex;align-items:center;gap:7px;padding:2px 150px 2px 7px}.event.tiny .event-time{order:0;flex:none;margin:0;white-space:nowrap;font-size:9px}.event.tiny .event-title{order:1;flex:1;min-width:0;padding-right:0;font-size:10px}.week .event.tiny{display:block;padding:2px 43px 2px 4px}.week .event.tiny .event-time{overflow:hidden;text-overflow:ellipsis;font-size:8px}.week .event.tiny .event-title{display:none}.week .event .event-time{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:480px){.event.tiny{padding-right:55px}.event.tiny .event-time{font-size:8px}}

#editor .task-flag-buttons{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:4px 0 13px}#editor .task-flag{font-size:12px;line-height:1.4;border-radius:16px;border:1px solid;padding:6px 11px}#editor .focus-flag{background:#fff9e5;border-color:#eadfb5;color:#947620}#editor .focus-flag[aria-pressed=true]{background:#ffe891;border-color:#c9a848;color:#705614;font-weight:600}#editor .work-flag{background:#eef4fa;border-color:#c6d7e7;color:#587997}#editor .work-flag[aria-pressed=true]{background:#cbdff1;border-color:#8aa9c6;color:#3d5d7a;font-weight:600}#editor .compact-deadline{margin:13px 0 10px}#editor .deadline-actions{display:flex;gap:5px;align-items:center;margin-bottom:7px}#editor #deadline-toggle{padding:4px 0;font-size:12px;color:#78816f}#editor #deadline-toggle:hover{background:none;color:#344c3b;text-decoration:underline}#editor #deadline-clear{padding:2px 7px;color:#929b8b;font-size:17px}#editor .compact-deadline #deadline-row{margin-top:5px}

@media(min-width:761px){.app{grid-template-columns:var(--sidebar-width,280px) 8px minmax(0,1fr)}.sidebar{grid-column:1;border-right:0}main{grid-column:3}#sidebar-resizer{grid-column:2;position:sticky;top:0;height:100dvh;background:#e0e5d8;cursor:col-resize;touch-action:none;display:flex;align-items:center;justify-content:center;z-index:8;outline-offset:-2px}#sidebar-resizer span{width:2px;height:34px;background:#a9b69b;border-radius:2px;pointer-events:none}#sidebar-resizer:hover,#sidebar-resizer.resizing{background:#bac8aa}body.sidebar-resizing,body.sidebar-resizing *{cursor:col-resize!important;user-select:none!important}}@media(max-width:760px){#sidebar-resizer{display:none}}

#editor .deadline-details{margin:12px 0}#editor .deadline-details summary{cursor:pointer;list-style-position:inside;color:#344c3b;font-size:13px;font-weight:650;line-height:1.35;background:#eef1e8;border-left:3px solid #9aa98a;border-radius:0 5px 5px 0;padding:5px 9px;box-sizing:border-box}#editor .deadline-details[open] summary{margin-bottom:9px}#editor #deadline-indicator{font-size:11px;font-weight:400;color:#78816f}#editor .deadline-details #deadline-clear{font-size:11px;padding:3px 0;color:#a06d58}#editor .deadline-details #deadline-row{margin-top:0}

.task-meta .no-date-label{color:#b2473c;font-weight:500}

.day-drop-zone{border:1px dashed #d7dece;border-radius:8px;padding:7px 10px;margin:3px 0 7px;background:#f7f9f3;transition:background .12s,border-color .12s}.day-drop-zone:last-child{margin-bottom:0}.day-drop-zone.day-drop-active{background:#e6eddb;border-color:#8da576;box-shadow:inset 0 0 0 1px #8da576}.day-drop-hint{font-size:11px;line-height:1.5;color:#8c9782;margin:5px 0}.day-drop-zone.day-drop-active .day-drop-hint{color:#465b3c}

#task-dates{white-space:pre-line;line-height:1.7}

.day-task-duration{flex:none;font-size:12px;font-weight:500;white-space:nowrap;color:inherit;padding:3px 7px;border-radius:5px;background:#ffffff80}.day-task .day-task-title{min-width:100px}

.deadline-label{display:block;font-size:11px;font-weight:500;line-height:1.4;margin-top:5px;color:#7b8178;overflow-wrap:anywhere}.deadline-label.deadline-urgent{color:#b3332e}.deadline-label.deadline-overdue{color:#82515c;background:#f1e5e8;border-radius:4px;padding:2px 5px;width:fit-content}.deadline-label.deadline-done{color:#93968f;font-weight:400}.event>.deadline-label{font-size:10px;margin-top:4px}.event.compact .deadline-label{display:inline;font-size:inherit;margin:0;padding:0;background:none}.day-task>.deadline-label{flex-basis:100%;margin:0 0 2px 26px;font-size:11px}.focus-card .deadline-label{font-size:10px}.event.tiny .event-time{min-width:0;flex-shrink:1;overflow:hidden;text-overflow:ellipsis}.task-meta+.deadline-label{margin-top:5px}

/* Compact untimed-day rows: metadata never pushes the time action to a new line. */
.day-task{display:grid;grid-template-columns:17px minmax(0,1fr) auto auto auto;gap:3px 8px;padding:7px 9px;align-items:center}.day-task>.check-button{grid-column:1;grid-row:1}.day-task>.day-task-title{grid-column:2;grid-row:1;min-width:0;padding:2px 0}.day-task>.day-task-duration{grid-column:3;grid-row:1;font-size:11px;padding:2px 6px}.day-task>.comment-badge{grid-column:4;grid-row:1}.day-task>button:last-child{grid-column:5;grid-row:1;padding:4px 6px;font-size:10px;white-space:nowrap}.day-task>.deadline-label{grid-column:2 / -1;grid-row:2;flex-basis:auto;margin:0;font-size:10px;padding-top:0;line-height:1.3}.day-task>.deadline-label.deadline-overdue{padding:1px 4px}.day-drop-zone{padding:5px 8px;margin:2px 0 5px}.day-tasks h3{margin:3px 0 6px}

/* Denser sidebar list without shrinking task text. */
.sidebar .task{padding:9px 10px;margin-bottom:5px;gap:8px;border-radius:9px}.sidebar .task-meta{margin-top:3px;line-height:1.4}.sidebar .task .deadline-label{margin-top:3px;line-height:1.3}.sidebar .task .deadline-label.deadline-overdue{padding:1px 4px}.sidebar #task-list{margin-top:8px}.sidebar .filters{gap:5px}.sidebar .filter-row-secondary{padding-top:3px}

.filter-count{font-size:10px;opacity:.75;margin-left:3px;font-variant-numeric:tabular-nums}.task-date-group{font-size:10px;line-height:1.4;font-weight:500;color:#87917e;margin:11px 2px 5px}.task-date-group:first-child{margin-top:3px}.task-date-group.selected-date{color:#465b3c;font-weight:600}.past-tasks{flex:none;padding:7px 16px;background:#f5f4ee;border-top:1px solid #e6e5dc;max-height:27dvh;overflow:auto}.past-tasks>summary{font-size:11px;color:#8a7455;cursor:pointer;padding:3px 0}.past-task{display:flex;align-items:center;flex-wrap:wrap;gap:4px 9px;padding:5px 0;border-bottom:1px solid #e9e7df}.past-task:last-child{border-bottom:0}.past-task-title{flex:1;min-width:120px;text-align:left;font-size:12px;padding:3px 0}.past-task-date{font-size:10px;color:#929383;white-space:nowrap}.past-task-plan{font-size:10px;padding:4px 7px;color:#526744;background:#e9eddf;border-radius:5px}

.event-actions button{font-size:15px;line-height:1;padding:3px 4px;border:0;background:transparent;color:inherit;min-width:22px;min-height:22px}.event-actions .event-done{padding:3px;min-width:20px;min-height:22px;box-sizing:border-box}.event-actions .task-cancel{font-size:13px;opacity:.65}.event-actions .task-cancel:hover{opacity:1;color:#a3574c}.event .event-title{padding-right:87px}.event:has(.comment-badge) .event-title{padding-right:100px}.event .comment-badge{right:91px}.event.tiny{padding-right:88px}.week .event-title{padding-right:76px}.sidebar .task{align-items:flex-start}.sidebar .task>.event-actions,.focus-card>.event-actions,.past-task>.event-actions{position:static;flex:none;gap:1px;align-self:flex-start}.focus-card>.task-body{flex:1;min-width:0}.day-task>.event-actions{position:static;grid-column:4;grid-row:1;gap:1px}.day-task>.day-task-title{grid-column:1 / 3}.day-task>.deadline-label{grid-column:1 / -1;margin-left:0}.day-task>.comment-badge{display:none}.filters>.filter-row:first-child{flex-wrap:wrap}.task-restore{color:#526f43!important}.event.completed .event-actions{opacity:1}

.header-row{position:relative}#undo-action{order:2;flex:none;margin-left:auto;border:1px solid #dce1d4;border-radius:7px;padding:6px 10px;font-size:11px;white-space:nowrap;color:#52664a;background:#f1f4ec}#undo-action:disabled{opacity:.4}@media(max-width:480px){#undo-action{padding:5px 7px;font-size:10px}.header-row{gap:7px}}

.filter-row-secondary #past-filter.has-past-tasks{color:#b3332e;border-color:#dfb5ae;background:#fbefec}.filter-row-secondary #past-filter.has-past-tasks.active{background:#f5d9d3;border-color:#c88176;color:#a52c27}

#focus-transfer{width:410px}#focus-transfer p{font-size:12px;line-height:1.6}.focus-replacement{display:block;width:100%;text-align:left;margin:6px 0;background:#fff5cc;font-size:12px}#focus-transfer-without,#focus-transfer-cancel{font-size:12px;margin-top:9px}

.sidebar .task-date-group{font-size:12px;font-weight:650;line-height:1.35;color:#46563d;background:#e1e6d8;border-left:3px solid #9aaa8b;border-radius:0 5px 5px 0;padding:5px 8px;margin:12px 0 6px}.sidebar .task-date-group:first-child{margin-top:3px}.sidebar .task-date-group.selected-date{background:#d5dfc9;border-left-color:#71885f;color:#344c3b}

.filter-row-secondary button.has-deadlines{color:#b3332e;border-color:#dfb5ae;background:#fbefec}.filter-row-secondary button.has-deadlines.active{background:#f5d9d3;border-color:#c88176;color:#a52c27}

.past-tasks{background:#fbefec;border-top-color:#ecd2cc}.past-tasks>summary{color:#b3332e;font-weight:600}.past-tasks>summary:hover{color:#a52c27}.past-tasks .past-task{border-bottom-color:#ecd9d4}

/* Compact checklist inside the comment */
.edit-checklist{display:grid;gap:5px;margin-top:10px}.checklist-row{display:flex;align-items:center;gap:8px}.checklist-row>input[type=checkbox]{flex:0 0 auto;width:16px;height:16px;margin:0;accent-color:var(--green)}.checklist-row .checklist-text{min-width:0;flex:1;padding:7px 9px;font-size:inherit;border:1px solid transparent;background:#f5f6f1;border-radius:7px}.checklist-row.checked .checklist-text{color:#969d91;text-decoration:line-through;background:transparent}.checklist-remove{padding:4px 7px;color:#8c9587;font-size:19px}.add-checklist-item{padding:8px 0;color:var(--green);font-size:13px}

/* Consistent compact spacing in the task editor. */
#editor .task-flag-buttons{margin:2px 0 10px;gap:6px}
#editor .task-details{margin-bottom:10px}
#editor .task-details[open] summary{margin-bottom:5px}
#editor .comment-voice-row{margin:2px 0;gap:3px;line-height:1.3}
#editor .comment-voice-row .voice-button{min-height:26px;min-width:28px;padding:3px}
#editor .task-details textarea{display:block;min-height:52px;margin-top:3px;padding:8px 10px;line-height:1.45}
#editor .edit-checklist{margin-top:6px;gap:4px}
#editor .edit-checklist:empty{display:none}
#editor .add-checklist-item{padding:6px 0;margin-top:3px;font-size:12px}
#editor .task-estimate{margin-bottom:10px;padding-bottom:2px}
#editor .planning-options{margin-bottom:4px}
#editor .planning-fields{margin:4px 0 7px 8px;padding:6px 0 0 13px}
#editor .planning-fields .form-row{align-items:flex-start}
#editor .planning-fields label,#editor .planning-fields .block-end{margin-bottom:6px}
#editor .deadline-details{margin:8px 0}
#editor #task-dates{line-height:1.45;margin:7px 0}
#editor .dialog-actions{margin-top:10px}

/* Notes belong to the title, apart from task actions. */
.task-name .comment-badge,.focus-card .task-body .comment-badge,.event .event-title .comment-badge,.day-task-title .comment-badge,.month-event .comment-badge{position:static;display:inline-flex;vertical-align:-2px;margin:0 5px 0 0;color:inherit;opacity:.75;width:15px;height:15px}.comment-badge svg{display:block;flex:none}.focus-card .task-body{padding-right:0!important}

.task-name .comment-badge,.focus-card .task-body .comment-badge,.event .event-title .comment-badge,.day-task-title .comment-badge,.month-event .comment-badge{color:#376850;opacity:1}.comment-badge svg{stroke-width:2}

#editor .repeat-days{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0}#editor .repeat-days label{display:flex;align-items:center;gap:3px;margin:0;padding:5px;background:#f1f4ec;border-radius:5px;font-size:11px}#editor .repeat-days input{margin:0;width:14px;height:14px;accent-color:var(--green)}#repeat-weekdays>small{font-size:10px;color:#87917e}

.comment-popover{position:fixed;z-index:10000;width:max-content;max-width:min(330px,calc(100vw - 16px));max-height:min(360px,70vh);overflow:auto;pointer-events:none;box-sizing:border-box;background:#fffef9;border:1px solid #d6dfcf;border-radius:9px;box-shadow:0 6px 24px #25302126;padding:11px 13px;color:#344c3b;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}.comment-popover[hidden]{display:none}.comment-popover-heading{display:block;font-size:11px;margin-bottom:5px;color:#74836c}.comment-popover-text{white-space:pre-wrap;margin-bottom:5px}.comment-popover-item{white-space:pre-wrap;padding:2px 0}.comment-popover-item.checked{color:#91998b;text-decoration:line-through}

.comment-popover{pointer-events:auto;max-height:calc(100dvh - 24px)}.comment-popover-item{display:block!important;min-height:18px;color:#344c3b}.comment-popover-item.checked{color:#91998b}

/* Short events keep the same reading order: title, then time. */
.event.tiny .event-title{order:0;flex:0 1 auto}.event.tiny .event-time{order:1}.week .event.tiny .event-title{display:block}

/* Uniform action icons, centered even in fifteen-minute events. */
.event-actions{align-items:center;gap:3px}.event-actions button,.event-actions .event-done{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;min-width:22px;min-height:22px;box-sizing:border-box;padding:3px;margin:0;border-radius:4px}.event-actions button svg{display:block;flex:none}.event-actions button:hover,.event-actions .event-done:hover{background:#ffffff99}.event-actions .task-cancel{opacity:.7}.event.tiny>.event-actions{top:50%;transform:translateY(-50%);right:7px;gap:3px}.event.tiny>.resize{bottom:0;line-height:3px;opacity:.35}

/* Duration does not change the visual importance of a task. */
.event .event-title,.event.compact .event-title,.event.tiny .event-title,.week .event .event-title{font-size:12px;font-weight:500;line-height:1.3}.event .event-time,.event.compact .event-time,.event.tiny .event-time,.week .event .event-time{font-size:10px;line-height:1.2}

.sidebar .task-date-group[role=button]{cursor:pointer}.sidebar .task-date-group[role=button]:hover{background:#d5dfc9;color:#344c3b}.sidebar .task-date-group[role=button]:focus-visible{outline:2px solid #71885f;outline-offset:2px}

#editor .cheatsheet-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}#editor .cheatsheet-columns table{width:100%;margin-top:5px}#editor .cheatsheet-columns th,#editor .cheatsheet-columns td{padding:4px 6px;white-space:nowrap}@media(max-width:360px){#editor .cheatsheet-columns{gap:5px}#editor .cheatsheet-columns th,#editor .cheatsheet-columns td{font-size:10px;padding:4px}}

.sidebar .task{flex-wrap:wrap}.sidebar .task>.task-body{flex:1;min-width:0}.sidebar .task>.sidebar-deadline{display:flex;justify-content:space-between;align-items:baseline;flex-basis:100%;width:100%;gap:6px 12px;margin-top:0;flex-wrap:wrap;font-size:11px}.sidebar-deadline .deadline-date{margin-left:auto;white-space:nowrap;font-weight:400}.sidebar .task>.sidebar-deadline.deadline-overdue{box-sizing:border-box;width:100%}

#repeat-everyday{font-size:11px;padding:5px 9px;border:1px solid #cbd5c2;background:#f1f4ec;color:#465b3c;border-radius:6px;margin-top:5px}#repeat-everyday[aria-pressed=true]{background:#344c3b;color:white}#repeat-until-row{margin-top:9px}

input[type=date]{cursor:pointer}input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer}

/* One comment surface with text, checklist and toolbar. */
#editor .comment-unified{border:1px solid #dfe4d9;border-radius:8px;background:#fafbf8;overflow:hidden;margin-top:6px}#editor .comment-unified:focus-within{border-color:#9aab8b}#editor .comment-unified textarea{border:0;border-radius:0;background:transparent;margin:0;min-height:52px;padding:9px 11px;resize:vertical}#editor .comment-unified-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 6px 4px}#editor .comment-unified-toolbar .add-checklist-item{margin:0;padding:5px;font-size:12px}#editor .comment-unified-toolbar .voice-button{min-height:28px;min-width:30px;padding:4px}#editor .comment-unified .edit-checklist{margin:0;padding:3px 10px 5px}#editor .comment-unified .checklist-text{background:#f0f3eb}#editor .comment-unified .checklist-row.checked .checklist-text{background:transparent}

/* Compact recurrence controls with responsive rows. */
#editor #repeat-details[open] summary{margin-bottom:6px}#editor #repeat-details>label,#editor #repeat-monthly label{margin-bottom:6px;font-size:11px}#editor #repeat-details select,#editor #repeat-details input[type=date],#editor #repeat-details input[type=number]{padding:6px 9px;margin-top:3px;min-height:30px;font-size:12px}#editor #repeat-weekdays:not([hidden]){display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:5px 0 7px}#editor #repeat-everyday{margin:0;padding:5px 7px}#editor #repeat-details .repeat-days{margin:0;gap:4px}#editor #repeat-details .repeat-days label{padding:4px;margin:0;gap:3px}#editor #repeat-monthly:not([hidden]){display:flex;align-items:flex-end;flex-wrap:wrap;gap:6px 9px;margin-top:4px}#editor .repeat-month-type{flex:1;min-width:150px}#editor #repeat-month-number-row{width:75px;flex:none}#editor #repeat-month-week-row:not([hidden]){display:flex;flex:1 1 230px;gap:7px}#editor #repeat-month-week-row label{flex:1;min-width:0}#editor #repeat-until-row{margin-top:5px;max-width:240px}#editor #repeat-until-row small{font-size:10px}#editor #repeat-details>label:first-of-type select{margin-top:0}

/* Compact task planning: date, start and calculated end share a row. */
#editor .planning-options>label{min-height:22px;margin-bottom:4px;gap:7px}
#editor .planning-options>legend{margin-bottom:6px}
#editor #planning-fields:not([hidden]){display:grid;grid-template-columns:minmax(135px,1.1fr) minmax(0,1.7fr);gap:8px;margin:4px 0 6px 8px;padding:5px 0 0 12px;align-items:start}
#editor #task-planning-date label,#editor #task-planning-time label,#editor #task-planning-time .block-end{font-size:11px;margin-bottom:3px}
#editor #task-planning-time .form-row{gap:8px}
#editor #planning-fields input{padding:6px 8px;min-height:31px;font-size:12px;margin-top:4px}
#editor #task-planning-time label small{display:block;font-size:10px}
#editor #task-planning-time .block-end output{font-size:16px;padding:7px 0 0;margin-top:4px}
#editor #task-planning-time .block-end small{font-size:10px;margin-top:2px;line-height:1.25}
#editor #planning-fields:has(#task-planning-time[hidden]){grid-template-columns:minmax(135px,240px)}
@media(max-width:480px){#editor #planning-fields:not([hidden]){grid-template-columns:1fr}#editor #task-planning-time label small{display:inline}#editor #planning-fields input{font-size:16px}}

/* Align the planning row without wrapped labels. */
#editor #planning-fields:not([hidden]){grid-template-columns:minmax(145px,1.15fr) minmax(0,1.6fr);gap:10px;padding-top:5px}#editor #task-planning-time .form-row{gap:10px}#editor #task-planning-date label,#editor #task-planning-time label,#editor #task-planning-time .block-end{line-height:1.4;font-size:12px;margin:0}#editor #planning-fields input{margin-top:5px;height:34px;box-sizing:border-box}#editor #task-planning-time .block-end output{display:block;box-sizing:border-box;height:34px;margin-top:5px;padding:5px 0;font-size:17px;line-height:24px}#editor #task-planning-time .block-end small{white-space:nowrap;font-size:10px;line-height:1.3;margin-top:2px}#editor #task-planning-time label::after{content:'Необязательно';display:block;font-size:10px;color:#929b8b;line-height:1.3;margin-top:2px}@media(max-width:480px){#editor #planning-fields:not([hidden]){grid-template-columns:1fr}#editor #task-planning-time .form-row{display:grid;grid-template-columns:1fr 1fr}}

#editor .task-details[open] #comment-indicator{display:none}#editor #repeat-weekdays.everyday-compact .repeat-days{display:none}#editor #repeat-custom-days{font-size:11px;padding:5px 7px;color:#78816f}#editor #task-dates{font-size:10px;line-height:1.5}

/* Outline expanded sections so their contents have a clear boundary. */
#editor .task-details[open],#editor .deadline-details[open]{border:1px solid #d9e1d1;border-radius:7px;padding:0 9px 8px;box-sizing:border-box}
#editor .task-details[open]>summary,#editor .deadline-details[open]>summary{margin:0 -9px 7px;width:calc(100% + 18px);border-radius:6px 6px 0 0;box-sizing:border-box}
#editor .task-details[open] .comment-unified{margin-top:0}

.calendar-week-caption{display:block;font-size:10px;font-weight:400;color:#87917e;margin-top:2px}.month-grid{grid-template-columns:32px repeat(7,minmax(0,1fr))}.month-week-number{font-size:11px;color:#87917e;text-align:center;padding:9px 2px;background:#f4f6ef;border-bottom:1px solid #e7eadf}.week-number-heading{font-size:9px}.date-controls h2{line-height:1.3}.sidebar .task-date-group{line-height:1.5}@media(max-width:480px){.month-grid{grid-template-columns:24px repeat(7,minmax(0,1fr))}.month-week-number{font-size:10px}}

.calendar-date-picker{position:relative;display:flex;align-items:center;border-radius:7px}.calendar-date-picker:hover{background:#eef1e8}.calendar-date-picker:focus-within{outline:2px solid #9aab8b;outline-offset:2px}#calendar-jump-date{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;padding:0;border:0;box-sizing:border-box}.calendar-date-picker h2{pointer-events:none}

.day-drop-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.day-drop-heading h3{margin:0!important}.day-add-task{font-size:21px;line-height:1;padding:2px 6px;min-width:28px;min-height:28px;color:#52664a;border-radius:5px}.day-add-task:hover{background:#e6eddb}.day-drop-heading{margin-bottom:4px}

.sidebar .task-date-group{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.sidebar-week-number{margin-left:auto;white-space:nowrap;font-size:10px;font-weight:400;color:#718264}.calendar-week-label{display:inline-block;font-size:10px;font-weight:400;color:#78876e;background:#eef1e8;border-radius:5px;padding:4px 7px;white-space:nowrap}.calendar-week-label[hidden]{display:none}

#export-tasks{display:block;text-align:left;color:#344c3b;font-size:12px;padding:7px 0;font-weight:500}

.calendar-color-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.calendar-note i.work-legend-swatch{background:#8aa9c6}

/* Keep the schedule prominent and repetition out of the daily overview. */
@media(min-width:761px){.header-row{margin:8px 0 12px}h1{font-size:25px;margin-bottom:4px}.section-title{margin-bottom:7px}#focus-list{margin-bottom:11px}.focus-card{min-height:54px;padding:9px 11px}.calendar-toolbar{padding:9px 14px 7px}.calendar-note{padding-bottom:7px}}
.day-drop-zone.empty{padding:3px 8px}.day-drop-zone.empty .day-drop-heading{margin:0}.day-add-task{min-height:25px}.future-repeat-toggle{font-size:11px;color:#66785b;padding:5px 7px;background:#e5eadc;border-radius:6px;margin:0 0 5px;text-align:left}
/* All event headers use the same title → time reading order. */
.event .event-title,.event.compact .event-title,.event.tiny .event-title,.week .event .event-title{display:inline;vertical-align:baseline;padding-right:0;white-space:normal;overflow-wrap:anywhere}.event .event-time,.event.compact .event-time,.event.tiny .event-time,.week .event .event-time{display:inline;margin:0 0 0 8px;vertical-align:baseline;white-space:nowrap}.event,.event.tiny{display:block;padding:5px 88px 3px 10px}.event.tiny{padding-top:1px;padding-bottom:1px;white-space:nowrap;overflow:hidden}.event.tiny .event-title{white-space:nowrap}.event>.deadline-label{display:block}.event .event-actions{top:4px}.event.tiny>.event-actions{top:50%}.event:has(.comment-badge) .event-title{padding-right:0}.week .event,.week .event.tiny{padding-right:75px;padding-left:4px}

.sidebar .future-repeat-toggle{display:block;width:fit-content;max-width:100%;margin:3px 0 11px auto;padding:5px 9px;background:transparent;border:1px solid #b8c7aa;border-radius:6px;color:#52664a;text-align:right;font-size:11px}.sidebar .future-repeat-toggle:hover{background:#e5eadc}

.backup-controls{margin-top:5px;font-size:11px}.backup-controls summary{cursor:pointer;color:#52664a;padding:5px 0}.backup-controls button{display:block;text-align:left;font-size:11px;padding:6px 0;color:#52664a}#backup-message{font-size:10px;line-height:1.5;margin:5px 0;color:#66785b}#restore-backup-dialog{width:420px}#restore-backup-dialog p{font-size:12px;line-height:1.6}#reset[hidden]{display:none}

#series-scope{width:390px}#series-scope p{font-size:12px;line-height:1.6}.series-scope-actions{display:flex;flex-wrap:wrap;gap:7px}.series-scope-actions button{font-size:12px;padding:8px 10px;background:#eef1e8;color:#344c3b}

#editor #deadline-indicator.has-setting,#editor #repeat-indicator.has-setting{display:inline-block;margin-left:7px;border-radius:12px;padding:3px 8px;background:var(--focus);color:#68518d;font-size:10px;font-weight:500}#editor .deadline-details[open] #deadline-indicator,#editor .deadline-details[open] #repeat-indicator{display:none}

/* Keep calendar navigation in place when focus contents change. */
@media(min-width:761px){
 #focus-list{height:94px;grid-template-rows:94px;align-items:stretch}
 #focus-list .focus-card{height:94px;min-height:0;max-height:94px;box-sizing:border-box;overflow:hidden}
 #focus-list .focus-card>.task-body{max-height:100%;overflow:auto}
 .calendar-date-picker{width:190px;flex:0 0 190px;justify-content:center}
 .calendar-date-picker #date-title{min-width:0;width:100%;margin-left:0;margin-right:0;text-align:center}
 .date-controls{flex-wrap:nowrap}
}

/* The day is already identified in the toolbar; retain column labels in week view. */
.time-scroll:not(.week)>.day-heads{display:none}

/* Reserve room for two title lines and metadata without nested scrolling. */
@media(min-width:761px){
 #focus-list{height:116px;grid-template-rows:116px}
 #focus-list .focus-card{height:116px;max-height:116px;padding:11px 12px;overflow:hidden}
 #focus-list .focus-card>.task-body{max-height:none;overflow:visible}
 #focus-list .focus-task-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.35;max-height:2.7em}
 #focus-list .focus-card small{line-height:1.35;margin-top:5px}
 #focus-list .focus-card .deadline-label{line-height:1.35;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* Current time and elapsed portion of today, without changing task status. */
.elapsed-day-shade{position:absolute;top:0;left:0;right:0;background:#53634b0d;pointer-events:none;z-index:4}.current-time-line{position:absolute;left:0;right:0;height:0;border-top:2px solid #b94c40;pointer-events:none;z-index:5;color:#a43d33;font-size:10px;line-height:1;box-sizing:border-box;text-align:right;padding-right:5px;text-shadow:0 1px #fff,1px 0 #fff}.current-time-line::before{content:'';position:absolute;left:-4px;top:-5px;width:8px;height:8px;border-radius:50%;background:#b94c40}.current-time-line[hidden]{display:none}

/* Stronger grouping without adding height. */
.day-tasks .day-drop-zone{background:#edf2e7;border:1px solid #becbb0;border-left:3px solid #7f966e}.day-drop-heading h3{color:#344c3b;font-weight:650}.day-task{background:#fff!important;border:1px solid #d5ddcd;border-radius:8px}.day-task.focus{background:var(--focus)!important;border-color:#e3c663}.day-task.work:not(.focus){background:#e9f1fa!important;border-color:#b5cce2}.day-task-duration{color:#344c3b;font-weight:600}.day-task-title{font-weight:550}
#editor .title-with-voice{display:flex;align-items:center}#editor .title-with-voice input{min-width:0;flex:1}#editor .clear-field{flex:none;width:30px;height:30px;padding:2px;font-size:21px;color:#6f7e68}#editor .comment-unified-toolbar .clear-field{margin-left:auto;order:1}#editor .comment-unified-toolbar .voice-button{order:2}#completion-date-dialog{width:360px}#completion-date{width:100%;padding:10px;border:1px solid #bdcbb3;border-radius:8px;background:#fafbf8}#outcome-completion-row{padding:10px;background:#eef2e8;border-radius:8px}

.task.has-day-no-time:not(.is-focus):not(.is-work){background:#f5f8ef;border-left:3px solid #7f966e}.task.has-day-no-time .task-meta{color:#52694a}

#completion-task-name{margin:12px 0 8px;font-size:15px;font-weight:600;color:var(--green);overflow-wrap:anywhere}

.outcome-answer-panel{margin:12px 0;padding:12px;border:1px solid #d9e1d1;border-radius:10px;background:#f5f7f1}.outcome-answer-panel.needs-answer{background:#fff6d8;border-color:#d4b85b;border-left:4px solid #bd9630}.outcome-answer-hint{display:block;margin-bottom:6px;font-size:11px;font-weight:650;color:#806214}.outcome-answer-panel:not(.needs-answer) .outcome-answer-hint{color:#657b57}.outcome-answer-panel .outcome-question{margin:0 0 9px;font-weight:650;color:#344c3b}.outcome-answer-panel .outcome-answers{margin:0;display:flex;flex-wrap:wrap;gap:7px}.outcome-answer-panel .outcome-answers button{background:#fff;border:1px solid #c9cfbc;padding:9px 12px}.outcome-answer-panel .outcome-answers button[aria-pressed=true]{background:#344c3b;color:#fff;border-color:#344c3b;font-weight:600}

/* Keep clear at the far right, after dictation. */
#editor .title-with-voice input{order:0}#editor .title-with-voice .voice-button{order:1}#editor .title-with-voice .clear-field{order:2}
#editor .comment-unified-toolbar .add-checklist-item{order:0}#editor .comment-unified-toolbar .voice-button{order:1;margin-left:auto}#editor .comment-unified-toolbar .clear-field{order:2;margin-left:0}

.outcome-answer-hint{display:none!important}.outcome-answer-panel{margin:8px 0;padding:9px 10px;border-radius:8px}.outcome-answer-panel .outcome-question{margin:0 0 6px;font-size:12px}.outcome-answer-panel .outcome-answers{gap:6px}.outcome-answer-panel .outcome-answers button{padding:6px 9px;font-size:12px}#quick-outcome{padding:18px 20px}#quick-outcome .dialog-head{margin-bottom:12px}#quick-outcome-task{margin:8px 0 12px}#quick-outcome .outcome-toggles{margin-bottom:8px}#quick-outcome .dialog-actions{margin-top:14px}

/* Compact duplicate editor; keep readable controls on small screens. */
#quick-outcome .task-outcome{border-top:0;margin:0;padding-top:0}#quick-outcome .outcome-toggles{gap:18px;margin:0 0 6px}#quick-outcome .outcome-toggles label{margin-bottom:4px}#quick-outcome .outcome-answer-panel{margin:6px 0 9px;padding:8px 10px}#quick-outcome .duration-picker{margin:0 0 9px}#quick-outcome .duration-picker>legend,#quick-outcome .planning-options>legend{margin:3px 0 7px;padding:4px 8px}#quick-outcome .duration-chips{margin:0 0 4px}#quick-outcome .duration-picker>.form-help{font-size:10px;margin:3px 0 0;line-height:1.4}#quick-outcome .planning-options{margin:0;padding-bottom:0}#quick-outcome .planning-options>label{min-height:22px;margin-bottom:4px}#quick-outcome #followup-fields{display:grid;grid-template-columns:minmax(140px,1.5fr) minmax(95px,1fr) minmax(85px,.9fr);align-items:start;gap:10px;margin-top:6px;padding:4px 0 4px 10px}#quick-outcome #followup-date-row{min-width:0}#quick-outcome #followup-time-row{display:contents}#quick-outcome #followup-fields label{margin:0;font-size:11px}#quick-outcome #followup-fields input{margin-top:5px;padding:8px;min-height:36px;width:100%;min-width:0}#quick-outcome .block-end{min-width:0;font-size:11px}#quick-outcome .block-end output{margin-top:5px;line-height:36px;min-height:36px;padding:0;font-size:18px}#quick-outcome .block-end small{font-size:9px;margin-top:0}#quick-outcome .outcome-preview{margin:9px 0 0;padding:7px 10px;font-size:10px;line-height:1.4}#quick-outcome .dialog-actions{margin-top:12px}#quick-outcome .dialog-actions .primary{padding:9px 12px}
@media(max-width:480px){#quick-outcome{padding:16px}#quick-outcome #followup-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}#quick-outcome #followup-date-row{grid-column:1/-1}#quick-outcome .outcome-answers button{min-height:34px}#quick-outcome .duration-chips button{min-height:30px}}

/* Legend shares the calendar toolbar instead of occupying a separate row. */
.calendar-toolbar>.calendar-color-legend{display:flex;align-items:center;gap:12px;font-size:10px;color:#8a9483;margin-left:auto;white-space:nowrap}.calendar-toolbar>.calendar-color-legend>span{display:inline-flex;align-items:center;gap:5px}.calendar-toolbar>.calendar-color-legend i{display:inline-block;width:7px;height:7px;border-radius:2px;background:#d3ab36}.calendar-toolbar>.calendar-color-legend .work-legend-swatch{background:#88a9c8}.calendar-toolbar{padding-bottom:12px}@media(max-width:760px){.calendar-toolbar>.calendar-color-legend{margin-left:0;gap:10px;font-size:9px}}




/* Reminder shares the existing breadcrumb row; no extra height or notification styling. */
.header-topline{display:flex;align-items:baseline;justify-content:space-between;gap:18px}.header-topline .breadcrumb{min-width:0}.header-topline .pace-reminder{flex:0 1 auto;margin:0;padding:0;border:0;border-radius:0;background:none;color:#526b49;font-size:12px;font-weight:500;line-height:1.35;text-align:right}.header-row>div{min-width:0}
@media(min-width:761px){#focus-list{height:88px;grid-template-rows:88px}#focus-list .focus-card{height:88px;max-height:88px;min-height:0;padding:8px 11px}#focus-list .focus-card small{margin-top:3px}#focus-list .focus-card .deadline-label{margin-top:3px}}
@media(max-width:760px){.header-topline{align-items:flex-start;gap:10px}.header-topline .pace-reminder{max-width:48%;font-size:10px}.header-topline .breadcrumb{flex:1}}

#cloud-panel{position:relative;background:#f2f4ed;padding:8px 16px;border-bottom:1px solid #d8dfd1;font-size:13px}#cloud-panel summary{cursor:pointer}#cloud-panel form,#cloud-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}#cloud-panel input{max-width:230px;padding:8px}#cloud-status{margin:6px 0}#cloud-panel [hidden]{display:none}
#cloud-review{background:#fff0c0;color:#705614}#cloud-review[hidden]{display:none}#cloud-conflict-dialog{width:850px;max-height:90dvh;overflow:auto;padding:18px}.cloud-versions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cloud-versions section{min-width:0;background:#f5f7f0;border:1px solid #d6dfcc;border-radius:9px;padding:12px}.cloud-versions h3{margin:0 0 8px;font-size:14px}.cloud-version-list{max-height:40dvh;overflow:auto;overflow-wrap:anywhere;font-size:12px}.cloud-version-list details{border-top:1px solid #dbe2d4;padding:8px 0}.cloud-version-list summary{cursor:pointer;font-weight:600}.cloud-version-list pre{white-space:pre-wrap;font:inherit;line-height:1.5;margin:6px 0}.cloud-choice-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.cloud-choice-actions button{border:1px solid #c3d0b9;background:#edf2e7;font-size:12px}#cloud-resolution-status{font-size:12px;color:#9c3d31}@media(max-width:600px){.cloud-versions{grid-template-columns:1fr}.cloud-version-list{max-height:25dvh}.cloud-choice-actions button{width:100%}}
.sidebar-close{display:none}
@media(max-width:760px){.sidebar-close{display:flex;position:absolute;top:10px;right:10px;width:44px;height:44px;padding:0;align-items:center;justify-content:center;font-size:30px;line-height:1;color:var(--green);background:#e1e6d9;border-radius:50%;z-index:1}.sidebar.open~main #mobile-tasks{display:none}}

/* Compact phone overview; preserve readable text and touch targets. */
@media(max-width:760px){
 main{padding:12px 12px 88px}
 .header-topline{gap:8px;align-items:center}
 .header-topline .breadcrumb{font-size:8px;letter-spacing:.6px}
 .header-topline .pace-reminder{font-size:9px;line-height:1.25;max-width:52%}
 .header-row{margin:10px 0 12px;gap:6px}
 h1{font-size:23px;line-height:1.15;margin-bottom:4px;letter-spacing:-.7px}
 #summary{font-size:11px;line-height:1.4}
 #undo-action{font-size:11px;padding:7px 8px;min-height:36px}
 .section-title{margin-bottom:6px}
 .focus-symbol{font-size:17px;margin-right:4px}
 #focus-list{gap:5px;margin-bottom:12px}
 #focus-list .focus-card{min-height:0;padding:8px 10px;border-radius:10px;gap:6px}
 #focus-list .focus-card strong{font-size:12px;line-height:1.3}
 #focus-list .focus-card small{font-size:10px;margin-top:2px;line-height:1.3}
 #focus-list .focus-card .deadline-label{font-size:10px;margin-top:2px;line-height:1.3}
 #focus-list .focus-empty{min-height:40px;padding:6px 10px}
 .calendar-toolbar{padding:6px 8px;gap:4px 8px}
 .date-controls{width:100%;gap:3px;justify-content:space-between}
 .date-controls .icon{min-width:36px;min-height:40px;padding:4px}
 .calendar-date-picker{min-width:0;flex:1;justify-content:center}
 .date-controls #date-title{font-size:14px;min-width:0;text-align:center;white-space:nowrap}
 #today{font-size:11px;min-height:36px;padding:6px 8px}
 .calendar-week-label{font-size:9px;padding:3px 5px}
 .calendar-toolbar>.calendar-color-legend{order:3;width:100%;justify-content:flex-end;font-size:9px;gap:10px;line-height:1.2}
 .calendar-toolbar .segments{order:2;width:100%;padding:3px}
 .calendar-toolbar .segments button{min-height:36px;padding:6px 8px;font-size:12px}
 .day-tasks{padding:8px!important}
 .day-tasks .day-drop-zone{padding:6px 8px}
 .day-drop-heading{margin-bottom:4px}
 .day-drop-heading h3{font-size:12px}
 .day-add-task{min-width:40px;min-height:40px}
 #mobile-tasks{padding:11px 19px;min-height:44px;font-size:13px;bottom:calc(12px + env(safe-area-inset-bottom,0px))}
}

/* Phone layout: shared toolbar row and a dedicated task-list bar. */
@media(max-width:760px){
 body{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
 #cloud-panel{flex:none}
 .app{flex:1;min-height:0;min-width:0;overflow:hidden}
 main{height:100%;overflow:auto;padding-bottom:14px;overscroll-behavior-y:contain}
 #mobile-tasks{position:relative;left:auto;bottom:auto;transform:none;flex:none;width:100%;min-height:52px;margin:0;border-radius:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));box-shadow:0 -1px 0 #ffffff33;z-index:16}
 .calendar-toolbar .segments{order:2;flex:1;min-width:0;width:auto}
 .calendar-toolbar>.calendar-color-legend{order:2;flex:0 0 auto;width:auto;gap:5px;align-items:flex-start;flex-direction:column;font-size:9px;margin:0}
 .calendar-toolbar .segments button{padding:6px 5px}
 #focus-list .focus-card>.task-body{display:block;line-height:1.35}
 #focus-list .focus-card .focus-task-title{display:inline;font-size:12px}
 #focus-list .focus-card small{display:inline;margin:0 0 0 7px;font-size:10px;white-space:normal}
 #focus-list .focus-card .deadline-label{display:block;margin-top:3px}
 .sidebar{padding:16px 14px 24px;height:100dvh}
 .sidebar .brand{font-size:28px;line-height:1.1;margin-right:46px}
 .sidebar .tagline{margin:4px 0 16px;font-size:11px}
 .sidebar .side-heading{margin-bottom:10px}
 .sidebar .filters{margin-top:0}
 .sidebar-close{top:8px;right:8px}
}
