/* Mobile Estimation: page scrolling, touch controls and a readable deadline agenda. */
@media(max-width:900px){
 .office.is-estimation-dashboard>.stage{height:auto;min-height:100dvh}
 .office.is-estimation-dashboard>.stage>.content{display:block;min-height:0;padding-top:20px;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 24px)}
 .is-estimation-dashboard .content>.page-heading{gap:8px;margin-bottom:16px}
 .is-estimation-dashboard .content>.page-heading h1{font-size:28px;line-height:1.2}
 .is-estimation-dashboard .content>.page-heading p{font-size:14px;line-height:1.5;margin-top:6px}
 .is-estimation-dashboard .ed-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}
 .is-estimation-dashboard .ed-metric{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;gap:10px;padding:14px;min-height:138px;border-radius:18px;touch-action:manipulation}
 .is-estimation-dashboard .ed-metric-icon{width:32px;height:32px;border-radius:10px}
 .is-estimation-dashboard .ed-metric-icon svg{width:18px;height:18px}
 .is-estimation-dashboard .ed-metric-copy{display:contents}
 .is-estimation-dashboard .ed-metric-copy>span{grid-column:2;align-self:center;color:var(--text);font-size:14px;line-height:1.4;overflow-wrap:anywhere}
 .is-estimation-dashboard .ed-metric-copy>strong{grid-column:1/-1;font-size:28px;font-weight:600;line-height:1.1;font-variant-numeric:tabular-nums}
 .is-estimation-dashboard .ed-metric-copy>small{grid-column:1/-1;font-size:12px;line-height:1.4;max-width:none;overflow-wrap:anywhere}
 .is-estimation-dashboard .ed-metric-arrow{display:none}
 .is-estimation-dashboard .ed-dashboard{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;gap:16px}
 .is-estimation-dashboard .ed-dashboard>.panel{height:auto;min-height:0;border-radius:20px}
 .is-estimation-dashboard .ed-dashboard header{height:auto;min-height:82px;padding:16px;align-items:center;gap:10px;flex-wrap:wrap}
 .is-estimation-dashboard .ed-dashboard header>div{min-width:0;flex:1 1 150px}
 .is-estimation-dashboard .ed-dashboard header h2{font-size:18px;font-weight:550;line-height:1.4;overflow-wrap:anywhere}
 .is-estimation-dashboard .ed-dashboard header .eyebrow,.is-estimation-dashboard .ed-user{font-size:12px;line-height:1.4}
 .is-estimation-dashboard .ed-dashboard header>.primary{min-height:44px;font-size:14px;padding:10px 14px;white-space:normal}
 .is-estimation-dashboard .ed-calendar-body{flex:none}
 .is-estimation-dashboard .ed-calendar-toolbar{height:auto;min-height:68px;padding:12px 14px;flex-wrap:wrap;gap:10px}
 .is-estimation-dashboard .ed-month{flex:1 1 150px;gap:3px}
 .is-estimation-dashboard .ed-month strong{font-size:16px;line-height:1.4}
 .is-estimation-dashboard .ed-month small{font-size:12px;line-height:1.4}
 .is-estimation-dashboard .ed-calendar-options{gap:6px;margin-left:auto}
 .is-estimation-dashboard .ed-calendar-options .button{min-height:44px;padding:10px 14px;font-size:14px}
 .is-estimation-dashboard .ed-calendar-options .icon-button{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%;padding:10px}
 .is-estimation-dashboard .ed-weekdays{padding:4px 6px;border-bottom:0}
 .is-estimation-dashboard .ed-weekdays>span{padding:6px 0;text-align:center;font-size:11px;line-height:1.4}
 .is-estimation-dashboard .ed-days{flex:none;grid-template-rows:repeat(var(--ed-weeks),auto);gap:2px;padding:4px 6px 10px}
 .is-estimation-dashboard .ed-day{display:block;min-width:0;border:0;padding:0;background:none;gap:0}
 .is-estimation-dashboard .ed-day>.ed-day-number,.is-estimation-dashboard .ed-day-quotes{display:none}
 .is-estimation-dashboard .ed-mobile-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:100%;min-height:48px;padding:4px 0;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--text);font-size:14px;line-height:1.4;touch-action:manipulation}
 .is-estimation-dashboard .ed-mobile-day small{min-height:14px;font-size:10px;line-height:14px;font-weight:600;color:var(--accent)}
 .is-estimation-dashboard .ed-day.outside .ed-mobile-day{color:var(--muted)}
 .is-estimation-dashboard .ed-mobile-day.is-today{border-color:var(--accent);font-weight:600}
 .is-estimation-dashboard .ed-mobile-day[aria-pressed=true]{color:#fff;background:var(--ui-primary);border-color:var(--ui-primary)}
 .is-estimation-dashboard .ed-mobile-day[aria-pressed=true] small{color:#fff}
 .is-estimation-dashboard .ed-mobile-agenda{display:block;min-width:0;padding:14px;border-top:1px solid var(--line)}
 .is-estimation-dashboard .ed-agenda-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--line);border-radius:16px;background:var(--glass-inset)}
 .is-estimation-dashboard .ed-agenda-options button{min-height:44px;border:1px solid transparent;border-radius:12px;padding:8px;font-size:13px;line-height:1.4;color:var(--muted);background:transparent;white-space:normal}
 .is-estimation-dashboard .ed-agenda-options button[aria-pressed=true]{color:var(--text);background:var(--ui-neutral);border-color:var(--line);box-shadow:var(--glass-highlight);font-weight:550}
 .is-estimation-dashboard .ed-agenda-summary{font-size:12px;line-height:1.5;margin:12px 0 6px;color:var(--muted)}
 .is-estimation-dashboard .ed-agenda-list{display:grid;gap:8px;min-width:0}
 .is-estimation-dashboard .ed-agenda-quote{display:flex;align-items:center;gap:12px;width:100%;min-height:72px;padding:12px;text-align:left;border:1px solid var(--line);border-radius:14px;background:var(--glass-inset);color:var(--text)}
 .is-estimation-dashboard .ed-agenda-copy{display:grid;gap:4px;flex:1;min-width:0;overflow-wrap:anywhere}
 .is-estimation-dashboard .ed-agenda-copy strong{font-size:14px;line-height:1.5;font-weight:550}
 .is-estimation-dashboard .ed-agenda-copy :is(small,span){font-size:12px;line-height:1.5;color:var(--muted)}
 .is-estimation-dashboard .ed-agenda-quote>svg{width:18px;height:18px;flex:none;color:var(--muted)}
 .is-estimation-dashboard .ed-agenda-more{width:100%;min-height:44px;margin-top:10px;font-size:14px;white-space:normal}
 .is-estimation-dashboard .ed-task-toolbar,.ed-tasks-dialog .ed-task-toolbar{height:auto;min-height:64px;gap:8px;padding:10px 12px;flex-wrap:wrap}
 .is-estimation-dashboard .ed-task-toolbar .view-switch,.ed-tasks-dialog .view-switch{display:flex;flex:1;min-width:0;gap:3px}
 .is-estimation-dashboard .ed-task-toolbar .view-switch button,.ed-tasks-dialog .view-switch button{flex:1;min-width:0;min-height:44px;padding:8px;font-size:13px;line-height:1.4;white-space:normal}
 .is-estimation-dashboard .ed-task-toolbar>span{font-size:12px;flex:none}
 .is-estimation-dashboard .ed-task-preview{flex:none;height:auto;max-height:none;overflow:visible}
 :is(.is-estimation-dashboard,.ed-tasks-dialog) .ed-task{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:start;gap:8px;padding:12px}
 :is(.is-estimation-dashboard,.ed-tasks-dialog) .ed-task[hidden]{display:none}
 :is(.is-estimation-dashboard,.ed-tasks-dialog) .ed-task-check{display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;margin:0;cursor:pointer}
 :is(.is-estimation-dashboard,.ed-tasks-dialog) .ed-task-check>input{width:22px;height:22px;margin:0;accent-color:var(--ui-primary)}
 :is(.is-estimation-dashboard,.ed-tasks-dialog) .ed-task-title{display:block;min-height:44px;font-size:15px;line-height:1.5;padding-block:8px;-webkit-line-clamp:unset}
 :is(.is-estimation-dashboard,.ed-tasks-dialog) .ed-task-project{display:block;min-height:44px;font-size:13px;line-height:1.5;padding-block:8px;-webkit-line-clamp:unset}
 :is(.is-estimation-dashboard,.ed-tasks-dialog) .ed-task-copy{gap:0}
 :is(.is-estimation-dashboard,.ed-tasks-dialog) .ed-task-copy>p{font-size:13px;line-height:1.5;margin-top:4px}
 :is(.is-estimation-dashboard,.ed-tasks-dialog) .ed-task-meta{font-size:12px;line-height:1.5;gap:6px;margin-top:8px}
 :is(.is-estimation-dashboard,.ed-tasks-dialog) .ed-task-meta>time{flex-wrap:wrap}
 :is(.is-estimation-dashboard,.ed-tasks-dialog) .ed-task .ed-edit{width:44px;height:44px;min-width:44px;min-height:44px;padding:12px;border-radius:50%}
 .is-estimation-dashboard .ed-tasks-more{padding:10px 12px}
 .is-estimation-dashboard .ed-tasks-more button{min-height:44px;width:100%;font-size:14px;line-height:1.4}
 .is-estimation-dashboard .ed-load-error{flex-wrap:wrap;overflow-wrap:anywhere;font-size:14px}
 .is-estimation-dashboard .ed-empty{height:auto;font-size:14px;line-height:1.6;padding:20px 8px}
 :is(.is-estimation-dashboard,.ed-dialog) :is(button,input,summary):focus-visible{outline:2px solid var(--ui-focus);outline-offset:-3px}
}
@media(max-width:800px){
 .office.is-estimation-dashboard>.stage>.topbar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px;padding:10px;position:relative;top:0;border-radius:24px}
 .office.is-estimation-dashboard>.stage>.topbar>.mobile-menu{grid-area:1 / 1}
 .office.is-estimation-dashboard>.stage>.topbar>.department-switcher{grid-area:1 / 2;min-width:0;width:100%;max-width:none}
 .office.is-estimation-dashboard>.stage>.topbar>.global-search{grid-area:1 / 3;margin:0;width:44px}
 .office.is-estimation-dashboard>.stage>.topbar>.topbar-actions{grid-area:2 / 1 / 3 / -1;display:grid;grid-template-columns:minmax(0,1fr) repeat(4,44px);gap:6px;width:100%;margin:0;min-width:0}
 .office.is-estimation-dashboard .topbar .mobile-punch{width:100%;margin:0;padding-inline:8px;gap:6px}
 .office.is-estimation-dashboard .topbar .mobile-punch-copy{min-width:0}
 .office.is-estimation-dashboard .topbar .mobile-punch-copy strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;max-width:100%}
 .office.is-estimation-dashboard .topbar .mobile-punch-copy small{font-size:11px}
 #overlay .ed-dialog{width:100%;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0;overflow:hidden}
 #overlay .modal-backdrop:has(.ed-dialog){padding:0;align-items:stretch}
 #overlay .ed-dialog>header{padding:calc(env(safe-area-inset-top,0px) + 16px) calc(env(safe-area-inset-right,0px) + 16px) 14px calc(env(safe-area-inset-left,0px) + 16px);gap:12px}
 #overlay .ed-dialog>header h2{font-size:20px;line-height:1.4;overflow-wrap:anywhere}
 #overlay .ed-dialog #close-modal{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%}
 #overlay .ed-dialog-title{font-size:22px;line-height:1.3}
 #overlay .ed-dialog-description{font-size:14px;line-height:1.5}
 #overlay .ed-dialog :is(.ed-task-dialog-body,.ed-stat-list){flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 20px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
 #overlay .ed-stat-list{padding-inline:calc(env(safe-area-inset-left,0px) + 16px) calc(env(safe-area-inset-right,0px) + 16px)}
 #overlay .ed-stat-row{flex-wrap:wrap;gap:8px;padding:16px 0}
 #overlay .ed-stat-copy{flex-basis:100%;gap:6px}
 #overlay .ed-stat-copy strong{font-size:15px;line-height:1.5}
 #overlay .ed-stat-copy :is(small,span),#overlay .ed-status{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
 #overlay .ed-stat-row>svg{margin-left:auto}
 #overlay .ed-task-form{padding:16px;gap:16px}
 #overlay .ed-form-pair{grid-template-columns:minmax(0,1fr)}
 #overlay .ed-task-form :is(input,select,textarea){font-size:16px;min-height:48px;padding:12px}
 #overlay .ed-task-form textarea{min-height:112px}
 #overlay .ed-form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:8px}
 #overlay .ed-form-actions button{min-height:48px;font-size:14px;white-space:normal}
}
@media(max-width:360px){
 .is-estimation-dashboard .ed-metric{grid-template-columns:minmax(0,1fr);gap:8px;padding:12px}
 .is-estimation-dashboard .ed-metric-copy>span{grid-column:1}
 .office.is-estimation-dashboard>.stage>.topbar>.topbar-actions{grid-template-columns:repeat(4,minmax(0,1fr));justify-items:center}
 .office.is-estimation-dashboard .topbar .mobile-punch{grid-column:1/-1;justify-content:center}
 .office.is-estimation-dashboard .topbar .mobile-punch-copy{flex-direction:row;gap:8px;align-items:center}
}
@media(hover:none){.is-estimation-dashboard .ed-metric:hover{transform:none}}
@media(forced-colors:active){.is-estimation-dashboard .ed-mobile-day[aria-pressed=true],.is-estimation-dashboard .ed-agenda-options button[aria-pressed=true]{outline:2px solid Highlight;outline-offset:-2px}}
