.el-app{padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:10px;min-width:0;color:var(--ink);overflow-anchor:none}.el-app [hidden]{display:none!important}.el-heading,.el-range,.el-presets,.el-quick-row,.el-records>header,.el-records>header>div,.el-search-row,.el-card-top{display:flex;align-items:center;gap:8px}.el-heading,.el-records>header,.el-card-top{justify-content:space-between}.el-heading{min-height:26px;margin-bottom:10px}.el-heading h3{font-size:17px;margin:0}.el-message{font-size:12px;color:var(--muted);line-height:1.4;max-width:75%;text-align:right}.el-app button,.el-app select{font:inherit;font-size:12px;border:1px solid var(--control-border);background:var(--surface-raised);color:var(--ink);border-radius:var(--control-radius);padding:6px 9px;white-space:nowrap}.el-app button{cursor:pointer}.el-app button:hover:not(:disabled){background:var(--control-hover);border-color:var(--control-border)}.el-app button:disabled{opacity:.5;cursor:not-allowed}.el-app button.el-primary{background:var(--action-bg);color:var(--action-ink);border-color:var(--action-bg);font-weight:650}.el-app button[aria-pressed=true]{background:var(--control-selected);border-color:var(--control-border);color:var(--ink)}.el-app :focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.el-compose{margin-bottom:12px}.el-quick-row>input,.el-search-row>input,.el-detail-input textarea{box-sizing:border-box;min-width:0;font:inherit;font-size:13px;border:1px solid var(--control-border);border-radius:var(--control-radius);background:var(--surface-inset);color:var(--ink);padding:8px 10px}.el-quick-row>input{flex:1;width:0}.el-quick-row button{min-height:34px}.el-detail-input{margin-top:7px}.el-detail-input textarea{width:100%;resize:vertical;line-height:1.6}.el-detail-input small{display:block;text-align:right;color:var(--muted);font-size:12px;margin-top:3px}.el-compose>p{font-size:12px;color:var(--text-soft);margin:0 0 6px}.el-chart-panel{padding:10px 8px 5px;border:1px solid var(--line);border-radius:7px;background:var(--panel)}.el-range{flex-wrap:wrap;gap:6px;margin-bottom:5px}.el-range>div:last-child{display:flex;gap:4px;margin-left:auto}.el-range>div:last-child button{padding:3px 10px;font-size:20px;line-height:1.1}.el-range-label{font-size:12px;color:var(--muted);margin-left:auto}.el-presets{gap:4px}.el-range select{max-width:130px}.el-plot{width:100%;min-width:0}.el-app svg.el-chart{display:block;width:100%!important;height:216px!important;max-width:none;touch-action:pan-y;overflow:visible}.el-chart text{font:10px system-ui,sans-serif;fill:var(--muted);stroke:none;user-select:none}.el-grid{stroke:var(--line);stroke-width:1;stroke-dasharray:3 5;opacity:.6}.el-future{stroke:none;fill:var(--surface);opacity:.45;pointer-events:none}.el-line{fill:none;stroke:var(--state-info);stroke-width:2.5;stroke-linejoin:round;pointer-events:none}.el-day{fill:var(--panel);stroke:var(--state-info);stroke-width:2;cursor:pointer}.el-day:hover,.el-day:focus,.el-day.el-selected{fill:var(--state-info);stroke:var(--ink);stroke-width:3;outline:none}.el-chart .el-count{fill:var(--state-info);font-weight:600}.el-today{stroke:var(--state-neutral);stroke-width:1;stroke-dasharray:3 4}.el-chart .el-today-label{fill:var(--state-warning)}.el-chart-help{margin:0;font-size:12px;line-height:1.5;color:var(--muted)}.el-records{margin-top:16px}.el-records h4{font-size:13px;margin:0}.el-records>header span{font-size:12px;color:var(--muted)}.el-records>header button{padding:3px 7px;font-size:12px}.el-search-row{margin-top:9px;position:relative}.el-search-row>input{flex:1;width:0;padding-right:38px}.el-search-row button{position:absolute;right:5px;padding:2px 8px;border:0;background:none;font-size:18px}.el-search-row input::-webkit-search-cancel-button{display:none}.el-list{display:grid;gap:6px;margin-top:8px}.el-card{padding:9px 11px;border:1px solid var(--line);border-radius:6px;min-width:0}.el-card h5{margin:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere;font-weight:550}.el-card-top>div{display:flex;flex-shrink:0;gap:3px}.el-card-top button{padding:2px 5px;font-size:12px;background:none;border-color:transparent;color:var(--muted)}.el-meta{display:flex;flex-wrap:wrap;gap:4px 12px;margin:3px 0 0;font-size:12px;color:var(--muted)}.el-legacy{color:var(--muted)}.el-card details{margin-top:5px;font-size:12px}.el-card summary{cursor:pointer;color:var(--text-soft)}.el-card details p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:5px 0 0}.el-card>small{display:block;margin-top:5px;font-size:12px;color:var(--muted)}.el-empty{padding:24px 10px;text-align:center;color:var(--muted);font-size:12px}.el-more{margin-top:8px}.el-recovery{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;border:1px solid var(--state-warning);border-radius:6px;margin-bottom:10px;font-size:12px}
@media(max-width:600px){.el-app{padding:10px}.el-app input,.el-app textarea{font-size:16px}.el-app button,.el-app select{min-height:32px}.el-quick-row{flex-wrap:wrap;gap:5px}.el-quick-row>input{flex-basis:calc(100% - 140px)}.el-quick-row button{padding:5px 7px}.el-range-label{order:3;width:100%;text-align:center}.el-card-top{align-items:flex-start}.el-card{padding:8px}.el-records>header{gap:4px}}
.el-quick-row{align-items:center;justify-content:center}.el-quick-row>input{max-width:660px;height:36px}.el-quick-row button{height:36px;margin:0;align-self:center}.el-date-tools{display:flex;align-items:center;gap:7px;font-size:12px;flex-wrap:wrap}.el-range-label{margin-left:0;margin-right:auto}.el-app svg.el-chart{cursor:grab;touch-action:pan-y}.el-app svg.el-chart:active{cursor:grabbing}.el-planned-day{stroke-dasharray:3 2;stroke:var(--state-warning)}.el-confirm{margin-top:8px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px}.el-confirm strong{font-weight:500;color:var(--state-warning)}
@media(max-width:600px){.el-quick-row>input{flex-basis:100%;width:100%;flex-grow:1}.el-quick-row{justify-content:center}.el-range-label{order:0;width:auto}.el-date-tools{width:100%;justify-content:center}}
.el-empty-future{opacity:0}.el-empty-future:hover,.el-empty-future:focus,.el-empty-future.el-selected{opacity:1}

.el-day-hit{fill:transparent;stroke:none;cursor:pointer}.el-date-picker{display:flex;align-items:center;gap:6px;margin:0;font-size:12px;white-space:nowrap}.el-date-picker input{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);padding:4px 6px;min-width:135px;border-radius:5px;height:30px}.el-range{align-items:center}.el-date-tools{margin-left:auto}.el-day-hit:hover{fill:var(--control-hover)}
@media(max-width:600px){.el-date-tools{margin-left:0}.el-date-picker{width:100%;justify-content:center}.el-date-picker input{font-size:16px;min-height:38px}}

.el-range{align-items:center;gap:8px}
.el-date-tools{display:flex;align-items:center;min-width:0;font-size:12px;line-height:1.5}
.el-date-picker{align-self:center;align-items:center;margin:0;line-height:32px}
.el-app .el-date-picker input{box-sizing:border-box;height:32px;min-height:32px;width:150px;min-width:0;max-width:170px;margin:0;padding:4px 6px;line-height:normal;align-self:center}
.el-cursor{stroke:var(--text-soft);stroke-width:1;stroke-dasharray:3 3;pointer-events:none}
.el-plot{overflow:hidden}
@media(max-width:600px){.el-date-tools{width:100%;justify-content:flex-start}.el-date-picker{width:auto;justify-content:flex-start;line-height:38px}.el-app .el-date-picker input{height:38px;min-height:38px}.el-range{row-gap:6px}}

.el-line,.el-day{stroke:var(--state-info)}
.el-chart .el-has-events{fill:var(--state-info);stroke:var(--state-info)}
.el-chart .el-has-events.el-selected{fill:var(--state-info);stroke:var(--ink)}
.el-chart .el-count{fill:var(--state-info)}
.el-planned-day,.el-chart .el-has-events.el-planned-day{stroke:var(--state-warning)}
.el-today{stroke:var(--state-neutral)}.el-chart .el-today-label{fill:var(--state-neutral)}
.el-confirm strong,.el-recovery{color:var(--state-warning);border-color:var(--state-warning)}
.el-card-top button[data-el=delete]:hover:not(:disabled){color:var(--state-danger);border-color:var(--state-danger)}

.el-chart .el-has-events.el-planned-day{fill:var(--state-warning)}
.el-chart .el-planned-day+.el-count{fill:var(--state-warning)}

/* A wheel is optional: touch and keyboard users have explicit zoom actions. */
.el-touch-tools{display:flex;gap:6px;align-items:center}
.el-touch-tools button{min-width:36px;min-height:36px;font-size:18px}
@media(max-width:700px),(pointer:coarse){
 .el-app .el-touch-tools button,.el-app .el-quick-row button,.el-card-top button,.el-confirm button,.el-records>header button{min-width:44px;min-height:44px;height:auto}
 .el-app .el-date-picker input{min-height:44px;height:44px}
 .el-card-top{flex-wrap:wrap;gap:4px}
 .el-card-top h5{flex:1 1 140px;min-width:0}
 .el-touch-tools{margin-left:auto}
}

.el-list-tools{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.el-records>header{flex-wrap:wrap}.el-chart text tspan{font-size:9px;fill:var(--muted)}

/* Calendar range shortcuts remain reachable on narrow screens. */
.el-presets{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.el-presets button{min-height:44px}
.el-presets button[aria-pressed="true"]{background:var(--control-selected);color:var(--ink);border-color:var(--control-border);font-weight:600}

/* Keep the journal close to the typing path and list controls on one line. */
.el-compose{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 14px;margin-bottom:10px}
.el-compose>p{margin:0;max-width:290px;line-height:1.5}
.el-quick-row{justify-content:flex-start;min-width:0}
.el-quick-row>input{max-width:none}
.el-detail-input{grid-column:2;margin-top:0}
.el-records>header>.el-search-row{position:static;flex:0 1 260px;min-width:140px;margin:0 0 0 auto;gap:6px}
.el-search-row>input{padding-right:10px;width:100%;min-height:34px}
.el-search-row button{position:static;padding:4px 6px;min-height:34px;font-size:12px;color:var(--muted)}
.el-records>header>.el-list-tools{flex:0 0 auto}
@media(max-width:700px){
 .el-compose{grid-template-columns:minmax(0,1fr);gap:6px}
 .el-compose>p{max-width:none}
 .el-detail-input{grid-column:1}
 .el-quick-row{justify-content:flex-start}
 .el-quick-row>input{min-height:44px}
 .el-records>header{gap:8px}
 .el-records>header>.el-search-row{order:3;flex:1 1 100%;margin:0;min-width:0}
 .el-search-row>input,.el-search-row button{min-height:44px}
 .el-search-row>input{font-size:16px}
 .el-records>header>.el-list-tools{margin-left:auto}
}

/* Action hierarchy and neutral selected controls match the rest of the workbench. */
.el-app button.el-primary:hover:not(:disabled){background:var(--action-hover);border-color:var(--action-hover);color:var(--action-ink)}
.el-app button[aria-pressed=true]:hover:not(:disabled){background:var(--control-selected)}
.el-card-top button[data-el=delete]{color:var(--state-danger)}
.el-card-top button[data-el=delete]:hover:not(:disabled){background:var(--state-danger-bg)}
.el-app .el-date-picker input{background:var(--surface-inset);border-color:var(--control-border);border-radius:var(--control-radius)}

/* Follow-up actions stay readable beside long event titles. */
.el-card-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;min-width:0}
.el-card-actions button{white-space:normal;overflow-wrap:anywhere}
.el-card-actions .el-followed-label{color:var(--state-success);font-weight:600}
@media(max-width:700px){.el-card-actions{flex:1 1 100%}}

.el-heading h3{display:none}.el-heading:has(.el-message:empty){display:none}.el-chart-panel>summary{cursor:pointer;min-height:36px;padding:4px 0;font-size:13px;color:var(--muted)}.el-chart-panel[open]>summary{margin-bottom:12px}.el-records{margin-top:12px}.el-card h5{font-size:14px}.el-card details p{font-size:14px;line-height:1.65}@media(max-width:700px){.el-chart-panel>summary{min-height:44px}}

.el-chart-panel>h4{margin:0 0 12px;font-size:13px;font-weight:400;color:var(--muted)}

/* Keep the date range and its presets adjacent, including narrow screens. */
.el-range-label{margin-right:0}
.el-range>.el-presets{display:flex;flex-wrap:nowrap;gap:4px}
@media(max-width:600px){.el-range-label{width:auto;text-align:left}.el-range>.el-presets{margin-right:0}}

/* Feedback 199: compose at chart top; presets match the project filters. */
.el-app .el-range>.el-presets button{font-size:13px;line-height:1.4;padding:5px 10px;min-height:32px;height:auto;border-radius:var(--control-radius);font-weight:500}.el-app .el-range>.el-presets{margin:0 0 0 auto}.el-compose{grid-template-columns:auto minmax(0,1fr)}.el-chart-panel>.el-compose{padding:4px 2px 8px}.el-compose>p{white-space:nowrap}
@media(max-width:600px){.el-compose{grid-template-columns:minmax(0,1fr)}.el-app .el-range>.el-presets button{min-height:44px}}

/* Feedback 206: one compact composer/range row, wrapping only on narrow screens. */
.el-chart-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px;margin-bottom:8px}
.el-chart-toolbar>.el-compose{min-width:0;margin:0;padding:0}
.el-chart-toolbar>.el-range{min-height:36px;margin:0;align-items:center}
.el-chart-toolbar .el-compose>p{white-space:normal}
.el-chart-toolbar .el-quick-row{min-height:40px}
.el-chart-toolbar .el-quick-row>input{margin:0}
@media(max-width:700px){.el-chart-toolbar{grid-template-columns:minmax(0,1fr);gap:6px}.el-chart-toolbar>.el-range{justify-content:flex-end}}

.el-day-separators{fill:none;stroke:var(--muted);stroke-width:1;opacity:.15;pointer-events:none}

.el-conflict-host { grid-column: 1 / -1; min-width: 0; }
.el-conflict-host:empty { display: none; }
.el-conflict { padding: 10px; border: 1px solid var(--state-warning); border-radius: 6px; font-size: 13px; }
.el-conflict-text { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.el-conflict-text p { margin: 4px 0; }
.el-conflict small { display: inline-block; margin: 4px 8px; color: var(--muted); }
.el-chart .el-count { pointer-events: none; }

.el-app{padding:0;border:0;background:transparent}
.el-app .el-chart-panel,.el-app .el-records{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.el-app .el-chart-panel{padding:0 12px 8px}
.el-chart-panel .el-chart-toolbar,.el-records>header{
 padding:10px 14px;border-bottom:1px solid var(--line);border-radius:var(--radius) var(--radius) 0 0;background:var(--section-head)
}
.el-chart-panel .el-chart-toolbar{margin:0 -12px 7px}
.el-app .el-records{padding:0 14px 12px}
.el-records>header{margin:0 -14px 8px}
.el-records>header h4{font:500 20px/1.4 var(--display-font)}
.el-records .el-card{border-radius:var(--control-radius);background:var(--surface-inset)}
@media(max-width:700px),(pointer:coarse){
 .el-edit-dialog .el-edit-actions button{min-height:44px}
}
@media(max-height:500px) and (max-width:700px),(max-height:500px) and (pointer:coarse){
 .el-edit-dialog .el-edit-actions{position:sticky;bottom:0;padding:6px 0;background:var(--surface);border-top:1px solid var(--line)}
}
@media(max-width:700px){
 .el-app .el-records{padding:0 8px 8px}
 .el-records>header{margin-inline:-8px}
 .el-chart-panel .el-chart-toolbar,.el-records>header{padding:8px}
 .el-records>header h4{font-size:18px}
}

.el-card[data-status]:not([data-status=""]){border-inline-start:4px solid var(--work-state-color,var(--state-neutral))}
