/* Estimation is a single-screen working surface; the shared sidebar stays in place. */
#overlay .modal-backdrop:has(.ed-task-editor-dialog){padding:16px;align-items:center}
#overlay .modal.ed-tasks-dialog.ed-task-editor-dialog{width:min(620px,100%);max-width:620px;height:auto;max-height:calc(100dvh - 32px);border:1px solid var(--line);border-radius:22px;margin:0}
#overlay .ed-task-editor-dialog>header{padding:18px 22px;align-items:center}
#overlay .ed-task-editor-dialog .ed-task-dialog-body{flex:0 1 auto;padding:0;overflow:auto}
#overlay .ed-task-editor-dialog .ed-form-actions{padding-top:4px}
.ed-task-unassigned:hover{text-decoration:none;color:var(--muted)}
.ed-metrics{gap:14px}
.ed-metric{display:flex;align-items:center;gap:12px;position:relative;text-align:left;padding:16px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface);box-shadow:var(--shadow);color:var(--text);min-width:0;transition:transform 150ms ease,border-color 150ms ease,box-shadow 150ms ease}
.ed-metric:hover{transform:translateY(-3px);border-color:var(--accent-line);box-shadow:var(--shadow-hover)}
.ed-metric-icon{width:40px;height:40px;flex-shrink:0;display:grid;place-items:center;border-radius:12px;background:var(--tone-bg);color:var(--tone-ink)}
.ed-metric-icon svg{width:21px;height:21px}.ed-metric-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.ed-metric-copy>span{font-size:.8125rem;color:var(--muted)}.ed-metric-copy>strong{font-size:1.6rem;line-height:1.25}.ed-metric-copy>small{font-size:.75rem;color:var(--muted)}.ed-metric-arrow{position:absolute;right:13px;top:13px;color:var(--muted)}.ed-metric-arrow svg{width:15px;height:15px}
.ed-tone-blue{--tone-bg:#eaf2ff;--tone-ink:#396dbe}.ed-tone-red{--tone-bg:#fbeef0;--tone-ink:#b83249}.ed-tone-violet{--tone-bg:#f0eaff;--tone-ink:#7853d5}.ed-tone-green{--tone-bg:#e6f6ef;--tone-ink:#158260}
.ed-dashboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch;min-height:0}
.ed-dashboard>.panel{min-width:0;min-height:0;overflow:hidden;margin:0;display:flex;flex-direction:column}
.ed-dashboard header{flex:none;height:82px;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line)}
.ed-dashboard header h2{font-size:var(--text-section);line-height:1.35;margin:0;font-weight:600}
.ed-dashboard header .eyebrow{margin:0 0 3px;font-size:.75rem;color:var(--muted)}
.ed-heading-icon{width:36px;height:36px;display:grid;place-items:center;color:var(--accent);background:var(--accent-soft);border-radius:10px}.ed-heading-icon svg{width:19px;height:19px}
.ed-dashboard .ed-user{font-size:.75rem;color:var(--muted);overflow-wrap:anywhere;margin:2px 0 0}.ed-dashboard header>.primary{flex-shrink:0}
.ed-calendar-toolbar{height:62px;flex:none;padding:10px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}
.ed-month{display:flex;flex-direction:column;gap:2px;min-width:0}.ed-month strong{font-size:.9375rem;text-transform:capitalize}.ed-month small{font-size:.75rem;color:var(--muted)}
.ed-calendar-options{display:flex;gap:6px;align-items:center}.ed-calendar-options .button,.ed-dashboard .view-switch button,.ed-tasks-dialog .view-switch button{font-size:.8125rem;padding:7px 10px;min-height:34px}.ed-calendar-options .icon-button{width:34px;height:34px;min-width:34px;min-height:34px;border:1px solid var(--line);border-radius:8px}
.ed-weekdays,.ed-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.ed-weekdays{flex:none;border-bottom:1px solid var(--line);background:var(--soft)}.ed-weekdays>span{font-size:.6875rem;text-align:left;color:var(--muted);font-weight:650;text-transform:uppercase;padding:6px 8px}
.ed-days{flex:1;min-height:0;grid-template-rows:repeat(var(--ed-weeks),minmax(0,1fr))}
.ed-day{min-width:0;min-height:0;padding:5px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:3px}.ed-day:nth-child(7n){border-right:0}.ed-day:nth-last-child(-n+7){border-bottom:0}.ed-day.outside{background:var(--soft);color:var(--muted)}
.ed-day-number{width:23px;height:23px;flex:none;display:grid;place-items:center;align-self:flex-start;border-radius:50%;color:inherit;font-size:.75rem;font-weight:600}.ed-day-number.is-today{background:var(--accent-fill);color:white}
.ed-day-quotes{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;display:flex;flex-direction:column;gap:4px}
.ed-quote-chip{display:flex;flex-direction:column;gap:2px;flex:none;width:100%;border:1px solid #c4dcfa;border-radius:6px;background:#eaf4ff;color:#2b5e92;padding:4px 5px;text-align:left;min-width:0;transition:border-color 150ms ease,background 150ms ease}
.ed-quote-chip:hover{background:#dcecff;border-color:#7ea8d6}.ed-quote-chip small{display:block;font-size:.6875rem;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ed-quote-chip strong{display:block;width:100%;font-size:.75rem;line-height:1.2;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ed-task-toolbar{display:flex;flex:none;justify-content:space-between;align-items:center;gap:8px;padding:10px 16px;min-height:62px;border-bottom:1px solid var(--line)}.ed-task-toolbar>span{font-size:.8125rem;color:var(--muted)}
.ed-task-list{min-height:0;overflow:auto}.ed-task-preview{flex:1;overflow:hidden}.ed-task{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}.ed-task[hidden]{display:none}.ed-task:last-child{border-bottom:0}.ed-task-check>input{width:18px;height:18px;margin:3px 0 0;accent-color:var(--accent-fill);flex-shrink:0}
.ed-task-copy{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}.ed-task-title,.ed-task-project{border:0;background:transparent;color:var(--text);padding:0;text-align:left;overflow-wrap:anywhere}.ed-task-title{font-size:.9375rem;line-height:1.4;font-weight:600}.ed-task-title:hover,.ed-task-project:hover{text-decoration:underline;color:var(--accent)}.ed-task-project{font-size:.8125rem;color:var(--muted);line-height:1.4}.ed-task-copy>p{font-size:.8125rem;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.ed-task-preview .ed-task-title,.ed-task-preview .ed-task-project{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.ed-task-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:.75rem;color:var(--muted);margin-top:4px}.ed-task-meta>time{display:flex;align-items:center;gap:5px}.ed-task-meta svg{width:13px;height:13px}.ed-task-meta .overdue{color:var(--accent)}.ed-task.is-complete .ed-task-title{text-decoration:line-through;color:var(--muted)}.ed-task .ed-edit{min-width:30px;width:30px;min-height:30px;height:30px;flex-shrink:0}.ed-task .ed-edit svg{width:15px;height:15px}
.ed-tasks-more{flex:none;border-top:1px solid var(--line);padding:10px 16px;text-align:center;background:var(--surface)}.ed-tasks-more[hidden]{display:none}.ed-tasks-more button{color:var(--accent);font-size:.875rem;font-weight:600;min-height:30px}.ed-tasks-more button:hover{text-decoration:underline}.ed-tasks-more span{color:var(--muted);font-weight:400}
.ed-empty{padding:28px 16px;text-align:center;color:var(--muted);font-size:.875rem;line-height:1.5;margin:0}.ed-dashboard .empty{padding:24px 20px;min-height:0;height:100%}
.ed-task-form{display:flex;flex-direction:column;gap:14px;margin:0;padding:20px;background:var(--surface)}.ed-task-form h3{display:none}.ed-task-form label{display:flex;flex-direction:column;gap:6px;font-size:.875rem;min-width:0}.ed-task-form :is(input,select,textarea){width:100%;min-width:0;max-width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--surface);color:var(--text);font-size:1rem;line-height:1.4}.ed-task-form textarea{resize:vertical;min-height:72px}.ed-form-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ed-task-form .ed-assigned,.ed-project-label{font-size:.8125rem;color:var(--muted);margin:0;overflow-wrap:anywhere}.ed-form-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.ed-load-error{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:var(--accent-soft);border:1px solid var(--accent-line,var(--line));border-radius:var(--radius-card)}.ed-dashboard:has(.ed-load-error){grid-template-rows:auto minmax(0,1fr)}.ed-notice{padding:8px 16px;flex:none;font-size:.8125rem;margin:0;color:var(--text);background:var(--soft)}.ed-notice[hidden]{display:none}
.ed-dialog{max-width:760px;display:flex;flex-direction:column;overflow:hidden;border-radius:22px;box-shadow:var(--shadow-dialog)}.ed-dialog>header{padding:24px;align-items:flex-start;gap:16px;flex:none}.ed-dialog>header h2{min-width:0}.ed-dialog .eyebrow{display:block;color:var(--muted);font-size:.75rem;letter-spacing:.08em;font-weight:600;margin-bottom:6px}.ed-dialog-title{display:block;font-size:1.5rem;line-height:1.2;font-weight:650;letter-spacing:-.035em}.ed-dialog-description{display:block;font-size:.875rem;font-weight:400;letter-spacing:normal;line-height:1.5;margin-top:8px;color:var(--muted)}.ed-dialog #close-modal{border:1px solid var(--line);border-radius:10px;flex-shrink:0}.ed-stat-list{padding:0 24px 16px;overflow:auto;min-height:0}.ed-stat-row{display:flex;align-items:center;gap:14px;width:100%;text-align:left;color:var(--text);padding:16px 6px;border:0;border-bottom:1px solid var(--line);background:transparent}.ed-stat-row:hover{background:var(--soft)}.ed-stat-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.ed-stat-copy small{font-size:.6875rem;color:var(--muted);text-transform:uppercase;letter-spacing:.035em;overflow-wrap:anywhere}.ed-stat-copy strong{font-size:.875rem;line-height:1.4;overflow-wrap:anywhere}.ed-stat-copy>span{font-size:.75rem;color:var(--muted)}.ed-status{flex:none;font-size:.6875rem;line-height:1.3;padding:6px 8px;border-radius:30px;background:var(--tone-bg);color:var(--tone-ink);font-weight:600;border:1px solid color-mix(in srgb,var(--tone-ink) 20%,transparent)}.ed-stat-row>svg{width:15px;flex-shrink:0;color:var(--muted)}.ed-stat-list .empty{min-height:220px}.ed-stat-list .empty>svg{color:var(--accent)}.ed-task-dialog-body{overflow:auto;min-height:0}.ed-tasks-dialog .ed-task-list{overflow:visible}.ed-tasks-dialog .ed-task-toolbar{position:sticky;top:0;background:var(--surface);z-index:1;gap:12px;flex-wrap:wrap}.ed-tasks-dialog .ed-task-toolbar>span{margin-right:auto}.ed-dialog button:disabled,.ed-dashboard button:disabled{opacity:.55;cursor:not-allowed}
html[data-theme=dark] .ed-tone-blue{--tone-bg:#263950;--tone-ink:#a6c9ff}html[data-theme=dark] .ed-tone-red{--tone-bg:#40282f;--tone-ink:#ffa5b2}html[data-theme=dark] .ed-tone-violet{--tone-bg:#352d49;--tone-ink:#c8b6ff}html[data-theme=dark] .ed-tone-green{--tone-bg:#20382c;--tone-ink:#8ed6b3}html[data-theme=dark] .ed-quote-chip{background:#213342;color:#a4cdec;border-color:#38566e}html[data-theme=dark] .ed-quote-chip:hover{background:#2b4357}
@media(min-width:901px) and (min-height:600px){
 .is-estimation-dashboard .stage{height:100dvh;min-height:0}.is-estimation-dashboard .topbar{flex-shrink:0}.is-estimation-dashboard .content{display:flex;flex-direction:column;min-height:0;padding:22px 32px 14px}.is-estimation-dashboard .page-heading{flex:none;margin-bottom:16px}.is-estimation-dashboard .page-heading p{margin-top:6px}.is-estimation-dashboard .metrics{flex:none;margin-bottom:16px}.is-estimation-dashboard .ed-dashboard{flex:1}.is-estimation-dashboard .workspace-footer{flex:none;padding-bottom:10px}.is-estimation-dashboard.is-preview .stage{height:calc(100dvh - 48px)}
}
@media(min-width:901px) and (max-height:800px){.is-estimation-dashboard .content{padding-top:16px}.is-estimation-dashboard .page-heading{margin-bottom:12px}.is-estimation-dashboard .page-heading h1{font-size:1.5rem}.ed-metric{padding:12px;gap:10px}.ed-metric-copy{gap:3px}.ed-metric-copy>strong{font-size:1.4rem}.ed-metric-icon{width:34px;height:34px}.ed-dashboard header{height:70px;padding:10px 14px}.ed-calendar-toolbar,.ed-task-toolbar{height:52px;min-height:52px;padding:8px 12px}.ed-day{padding:3px;gap:2px}.ed-day-number{width:20px;height:20px}.ed-weekdays>span{padding:4px 6px}.ed-metric-copy>small{line-height:1.3}}
@media(max-width:1200px) and (min-width:901px){.ed-metrics{gap:10px}.ed-metric{gap:8px;padding:12px}.ed-metric-icon{width:32px;height:32px}.ed-metric-copy>small{max-width:120px}.is-estimation-dashboard .content{padding-left:20px;padding-right:20px}.ed-dashboard{gap:14px}.ed-dashboard header{padding-left:12px;padding-right:12px}.ed-calendar-toolbar{padding-left:10px;padding-right:10px}.ed-calendar-options{gap:4px}.ed-calendar-options .button{padding:6px}.ed-day{padding:3px}.ed-quote-chip{padding:3px}}
@media(max-width:900px),(max-height:599px){.ed-dashboard{grid-template-columns:1fr}.ed-dashboard>.panel{height:560px}.ed-metric-arrow{display:none}}
@media(max-width:550px){.ed-metrics{gap:10px}.ed-metric{padding:12px;gap:8px}.ed-metric-icon{width:30px;height:30px}.ed-metric-copy>small{line-height:1.4}.ed-dashboard>.panel{height:530px}.ed-dashboard header{height:78px;padding:12px}.ed-calendar-toolbar{padding:10px 12px}.ed-day{padding:3px;gap:2px}.ed-day-number{width:21px;height:21px}.ed-quote-chip{padding:3px}.ed-weekdays>span{padding-left:4px}.ed-form-pair{grid-template-columns:1fr}.ed-task{padding:14px 12px;gap:9px}.ed-dialog>header{padding:20px}.ed-stat-list{padding:0 14px 10px}.ed-stat-row{flex-wrap:wrap;gap:8px}.ed-stat-copy{flex-basis:100%}.ed-stat-row>svg{margin-left:auto}.ed-dialog-title{font-size:1.3rem}.ed-task-form{padding:16px}}
@media(prefers-reduced-motion:reduce){.ed-metric{transition:none}.ed-metric:hover{transform:none}}

.ed-calendar{container-type:inline-size}.ed-tone-preparation{--tone-bg:#f5edf0;--tone-ink:#865463}
html[data-theme=dark] .ed-tone-preparation{--tone-bg:#392d32;--tone-ink:#deafbf}
@container(max-width:650px){.ed-chip-kind{display:none}}

.ed-calendar-body{display:flex;flex-direction:column;flex:1;min-height:0}
.ed-mobile-day,.ed-mobile-agenda{display:none}
.ed-task-check{display:flex;align-items:flex-start;justify-content:center;flex:0 0 22px;min-height:24px;cursor:pointer}
