/* Owner review 20 October: summary first, explicit disclosure, compact working rows. */
.project-head-inner{border-bottom:0;padding-bottom:0}
.project-head-inner .tabs{margin-bottom:0}
.project-head-inner+.content-page{border-top:0}
.object-data-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 14px}
.object-data-actions>.btn{min-height:44px;padding:8px;font-size:13px}
.lab-object-data{padding:14px 16px}
.object-data-facts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 20px;margin:0 0 14px}
.object-data-facts>div{min-width:0}
.object-data-facts .is-wide{grid-column:1/-1}
.object-data-facts dt{font-size:12px;color:var(--muted);margin:0 0 4px}
.object-data-facts dd{font-size:15px;line-height:1.4;margin:0;overflow-wrap:anywhere}
.lab-object-data>.ux-inline-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:4px 12px;margin:0 0 12px}
.lab-object-data>.ux-inline-actions>.btn{width:auto}
.lab-object-data>.ux-inline-actions .btn{min-height:44px;font-size:13px;padding:8px 0}
.object-brief{margin:0;border-top:1px solid var(--line)}
.object-brief>summary{font-size:14px;cursor:pointer;min-height:48px;padding:14px 0}
.object-brief .work-object-task{margin:0 0 12px;padding:0;line-height:1.5;font-size:14px}
.lab-object-data .work-object-actions{border-top:0}
.lab-object-data .work-object-actions>.btn,.lab-object-data .work-object-actions>a{border-top:1px solid var(--line);border-bottom:0;min-height:48px;padding-block:12px}
.lab-object-data>.work-object-actions>.btn:not(:last-child){border-bottom:0}
.lab-object-data>.work-disclosure{border-top:1px solid var(--line);border-bottom:0}
.lab-object-data .work-disclosure-body{padding:12px 0}
.lab-object-data .work-disclosure-body .ux-data{row-gap:10px}

.live-estimate>.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 16px}
.live-estimate>.section-head h2{font-size:19px}
.live-estimate>.section-head>.btn{width:auto;min-width:0;flex:none;white-space:nowrap;min-height:44px;padding:10px 12px;font-size:13px}
.live-estimate-channels{margin:0 0 14px;max-width:420px}
.live-estimate-channels .btn{min-height:42px}
.estimate-working-summary{margin:0 0 14px;padding:0;gap:12px}
.estimate-working-summary strong{font-size:13px;font-weight:500}
.estimate-working-summary small{font-size:12px;line-height:1.4}
.estimate-working-summary>.btn{font-size:12px;min-height:44px;padding:8px}
.live-estimate-total{margin:18px 0 20px;padding:0}
.live-estimate-total>strong{font-size:30px;line-height:1.15}
.live-estimate-total>small{font-size:12px;margin-top:6px}
.estimate-composition{background:var(--paper,#fff);border:1px solid var(--line);border-radius:16px;margin:16px 0;overflow:clip}
.estimate-composition>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:76px;padding:16px;cursor:pointer}
.estimate-composition>summary::-webkit-details-marker{display:none}
.estimate-composition>summary strong{display:block;font-size:16px}
.estimate-composition>summary small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.estimate-disclosure-label{font-size:12px;display:flex;gap:8px;align-items:center}
.estimate-disclosure-label:after{content:"";width:7px;height:7px;border-right:1.5px solid;border-bottom:1.5px solid;transform:rotate(45deg);margin-top:-4px}
.estimate-composition[open] .estimate-disclosure-label{font-size:0}
.estimate-composition[open] .estimate-disclosure-label:before{content:"Свернуть";font-size:12px}
.estimate-composition[open] .estimate-disclosure-label:after{transform:rotate(225deg);margin-top:4px}
.estimate-composition-body{padding:0 16px}
.estimate-composition .estimate-view-options{border-top:1px solid var(--line);border-bottom:0;margin:0}
.estimate-composition .estimate-view-options>summary{padding:12px 0;min-height:48px}
.estimate-composition .estimate-view-options>summary small{display:inline;margin-left:8px;font-size:12px}
.estimate-composition .ux-estimate-list{display:block;margin:0}
.estimate-composition .ux-estimate-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,auto);gap:6px 12px;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;padding:14px 0;margin:0;box-shadow:none}
.estimate-composition .estimate-line-copy{min-width:0;grid-column:1}
.estimate-drawing-link{padding:0!important;text-align:left}
.estimate-drawing-link>span{font-size:14px;line-height:1.35;font-weight:600}
.estimate-drawing-link>small{font-size:11px}
.estimate-line-copy>small{font-size:11px;line-height:1.4;margin-top:4px}
.estimate-composition .estimate-line-values{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-start;gap:4px;grid-column:2;grid-row:1;margin:0;padding:0}
.estimate-line-values .estimate-quantity{font-size:12px;line-height:1.4}
.estimate-line-values .estimate-line-amount{font-size:16px;line-height:1.35;white-space:nowrap}
.estimate-composition .estimate-line-tools{grid-column:1/-1;border:0;margin:0;padding:0}
.estimate-line-tools>summary{min-height:36px;padding:8px 0;font-size:12px;color:var(--muted)}
.estimate-line-tools>div{padding:4px 0 8px;display:flex;gap:8px;flex-wrap:wrap}
.estimate-line-tools>div>.btn,.estimate-line-tools .estimate-price-trigger{width:auto;font-size:13px;min-height:44px}
.estimate-composition .estimate-price-editor{grid-column:1/-1}
.live-estimate>.estimate-actions,.live-estimate>.estimate-actions:has(.estimate-project-items){display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:8px}
.estimate-actions>.btn{min-height:48px;padding:10px;font-size:13px}
.estimate-actions>.estimate-project-items,.estimate-actions>.estimate-tools{grid-column:1/-1}
.estimate-tools>summary{font-size:14px;min-height:48px;padding:14px 0}

.lab-documents>.section-head{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:14px}
.lab-documents>.section-head p{display:none}
.lab-documents .lab-document-routes{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.lab-document-routes .btn{min-height:44px;padding:8px 10px;font-size:12px}
.lab-documents .ux-document-list{display:block;background:var(--paper,#fff);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.lab-documents .ux-document-row{display:grid;grid-template-columns:28px minmax(0,1fr) 16px;align-items:center;gap:12px;position:relative;min-height:84px;padding:14px 16px;border:0;border-radius:0;box-shadow:none;background:transparent;margin:0}
.lab-documents .ux-document-row+.ux-document-row{border-top:1px solid var(--line)}
.lab-documents .document-icon{width:28px;height:36px;padding:0;background:transparent;border-radius:0}
.lab-documents .document-icon .icon{width:24px;height:24px}
.lab-documents .ux-document-open{min-width:0;text-align:left;align-items:flex-start;padding:0;min-height:48px}
.lab-documents .ux-document-open:after{content:"";position:absolute;inset:0}
.lab-documents .ux-document-open:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.lab-documents .ux-document-open strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.lab-documents .ux-document-open small{font-size:12px;line-height:1.35;margin-top:5px}
.document-row-chevron .icon{width:16px;height:16px}

#modal>.document-expand{position:absolute;right:68px;top:18px;width:44px;height:44px;min-height:44px;border:0;background:var(--tint,#f0f1e8);border-radius:50%;z-index:2}
#modal:has(>[data-document-expand])>h2{padding-right:94px;margin-top:8px;font-size:22px;line-height:1.3}
#modal.document-expanded.document-expanded{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:24px max(20px,calc((100vw - 1000px)/2)) max(24px,env(safe-area-inset-bottom))}
#modal.document-expanded>.dialog-close{position:fixed;top:max(12px,env(safe-area-inset-top));right:16px}
#modal.document-expanded>.document-expand{position:fixed;top:max(12px,env(safe-area-inset-top));right:68px}
#modal .document-action-bar{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;margin:14px 0}
#modal .document-action-bar>.btn{min-height:44px;font-size:13px;flex:none;padding:10px 14px}
#modal .ux-export-more{position:relative;flex:none;min-width:100px}
#modal .ux-export-more>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:12px;min-height:44px;padding:10px 16px;cursor:pointer;font-size:13px}
#modal .ux-export-more>summary:after{content:"···";font-size:18px;line-height:1}
#modal .ux-export-more:not([open])>div{display:none!important}
#modal .ux-export-more[open]>div{position:absolute;z-index:5;right:0;top:calc(100% + 6px);width:230px;max-width:calc(100vw - 48px);padding:6px;background:var(--paper,#fff);border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 26px #2028291a;display:grid;gap:2px}
#modal .ux-export-more[open]>div>.btn{width:100%;justify-content:flex-start;text-align:left;border:0;background:transparent;min-height:44px;padding:10px;font-size:13px}
.document-reader-context{gap:4px}
.document-scope-detail>summary{font-size:12px;color:var(--muted);padding:6px 0;min-height:32px;cursor:pointer}
.document-scope-detail>p{font-size:13px;line-height:1.5;color:var(--muted);margin:4px 0 8px}
.document-reader-totals{margin:12px 0}
.document-view-controls{border:0;background:var(--bg);padding:4px;border-radius:12px}
.document-view-controls>.btn{border:0!important;border-radius:9px;min-height:40px}
.document-view-controls>.btn[aria-pressed=true]{background:var(--paper,#fff);box-shadow:0 1px 4px #20282910}
.document-reader-line h4{font-size:15px}
.document-reader-details>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px}
.document-reader-details>summary:after{content:"";width:7px;height:7px;border-bottom:1.5px solid;border-right:1.5px solid;transform:rotate(45deg);flex:none;margin-right:5px}
.document-reader-details[open]>summary:after{transform:rotate(225deg)}

.space-geometry-disclosure{margin:18px 0;background:var(--paper,#fff);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.space-geometry-disclosure>summary{padding:14px 16px;min-height:48px;font-size:14px}
.space-geometry-disclosure .space-passport-geometry{padding:0 16px 14px;border:0;margin:0}
.space-geometry-disclosure .space-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0;padding:0;border:0}
.space-metrics>div{padding:0;border:0;min-width:0}
.space-metrics dt{font-size:11px;line-height:1.3;margin:0 0 5px}
.work-space .space-geometry-disclosure .space-metrics dt{min-height:0}
.space-metrics dd{font-size:19px;white-space:nowrap;line-height:1.2;margin:0}
.space-metrics dd small{font-size:11px;font-weight:400}
.space-geometry-disclosure .space-openings{font-size:12px;color:var(--muted);margin:14px 0 0;padding:0;border:0}
.work-space-panels .work-disclosure-body{padding:16px}
.work-space-panels .space-calculation-options{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.work-space-panels .space-calculation-options .btn{font-size:13px;min-height:44px}

.versions-help,.version-scope{margin:0}
.versions-help>summary,.version-scope>summary{min-height:44px;font-size:13px;cursor:pointer;padding:10px 0}
.versions-help>p,.version-scope>p{font-size:13px;line-height:1.5;margin:0 0 12px}
.estimate-versions{display:grid;gap:12px}
.estimate-versions .estimate-version{background:var(--bg);border:0;border-radius:14px;padding:16px;margin:0}
.estimate-version>div>strong{font-size:16px}
.estimate-version .drawing-working-badge{display:table;margin:8px 0}
.estimate-version .ux-inline-actions{gap:6px}
.estimate-version .ux-inline-actions .btn{font-size:13px;padding:8px;min-height:44px}
#modal:not(:has(.project-create-form)) .flow-progress:not(.flow-sections){display:flex;gap:0;background:transparent;padding:0;margin:18px 0 8px;border:0;border-radius:0}
#modal:not(:has(.project-create-form)) .flow-progress:not(.flow-sections)>button{flex:1;min-height:44px;padding:8px 4px;gap:8px;border:0;border-bottom:2px solid var(--line);border-radius:0;background:transparent;font-size:13px;box-shadow:none}
#modal:not(:has(.project-create-form)) .flow-progress:not(.flow-sections)>button b{font-size:12px;width:22px;height:22px;min-width:22px;border-radius:50%;background:var(--bg);color:var(--muted);display:grid;place-items:center}
#modal:not(:has(.project-create-form)) .flow-progress:not(.flow-sections)>button.active{border-bottom-color:var(--ink);color:var(--ink)}
#modal:not(:has(.project-create-form)) .flow-progress:not(.flow-sections)>button.active b{background:var(--ink);color:var(--accent)}
#modal .flow-status{margin:6px 0 14px;font-size:12px;color:var(--muted)}
#modal.lab-room-create{min-height:0;padding-bottom:max(16px,env(safe-area-inset-bottom))}
#modal.lab-room-create>h2{margin-top:8px;padding-right:42px}
#modal.lab-room-create .lab-dialog-context{margin:0 0 18px}
#modal.lab-room-create .lab-form-hint{margin:10px 0;font-size:13px}
#modal.lab-room-create .dialog-actions{margin-top:20px;padding-top:0}
@media(max-width:600px){
 .live-estimate>.section-head h2{font-size:17px}
 .live-estimate>.section-head>.btn .icon{display:none}
 .estimate-composition>summary{padding:14px;gap:8px}
 .estimate-composition-body{padding-inline:14px}
 .estimate-composition .ux-estimate-line{grid-template-columns:minmax(0,1fr) minmax(76px,auto);gap:4px 10px}
 .estimate-composition .estimate-line-copy .line-type{display:none}
 .estimate-line-values .estimate-line-amount{font-size:15px}
 .space-geometry-disclosure .space-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}
 #modal.document-expanded.document-expanded{padding:16px 16px max(20px,env(safe-area-inset-bottom))}
 #modal:has(>[data-document-expand])>h2{font-size:20px;padding-right:90px}
 #modal:not(.chat-dialog):not(.assembly-dialog)>.dialog-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:20px}
 #modal:not(.chat-dialog):not(.assembly-dialog)>.dialog-actions>[type=submit]{flex-basis:100%;order:-1;min-height:48px}
 #modal:not(.chat-dialog):not(.assembly-dialog)>.dialog-actions>.btn:not([type=submit]){flex:1;min-height:44px}
 .lab-documents .ux-document-row{padding:12px;gap:10px;min-height:80px}
}
@media print{.document-expand{display:none!important}}

/* Calendar: visible workload, explicit scope, and a legible agenda. */
.home-calendar-scope{display:flex;gap:4px;padding:4px;background:var(--bg);border-radius:12px;margin:0 0 12px}
.home-calendar-scope>.btn{flex:1;min-height:40px;padding:8px;border:0;background:transparent;font-size:13px}
.home-calendar-scope>.btn[aria-pressed=true]{background:var(--paper,#fff);box-shadow:0 1px 4px #20282914}
.home-calendar-nav{gap:6px;flex-wrap:nowrap}
.home-calendar-nav>strong{flex:1;text-align:center;font-size:15px}
.home-calendar-nav>.icon-btn{width:40px;height:44px;flex:none}
.home-calendar-nav>.btn{font-size:12px;padding:8px}
.home-calendar-days{gap:4px}
.home-calendar-days>button{height:56px;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:10px}
.home-calendar-days>button>span{font-size:14px;line-height:1.2}
.home-calendar-days>button.has-events{background:#edf2dd;font-weight:650}
.home-calendar-days>button.has-overdue{background:#fcf0e8}
.home-calendar-event-count{font-size:10px;line-height:16px;min-width:18px;padding:0 4px;border-radius:6px;background:#dce9bc;color:#334c20}
.has-overdue .home-calendar-event-count{background:#f3d5c6;color:#823b28}
.home-calendar-days>button[aria-pressed=true]{background:var(--ink);color:#fff}
.home-calendar-days>button[aria-current=date]{outline:1.5px solid var(--ink);outline-offset:-1.5px}
.home-agenda h3{display:flex;justify-content:space-between;align-items:center;font-size:16px;margin:16px 0 6px}
.home-agenda h3 small{font-size:12px;font-weight:400;color:var(--muted)}
.home-agenda>a:not(.btn){padding:14px 0;gap:12px}
.home-agenda>a>span:first-child{font-size:12px;flex:none;min-width:36px}
.home-agenda>a strong{font-size:14px;line-height:1.4}
.home-agenda>a small{font-size:12px;line-height:1.4}
.home-agenda>a.is-overdue>span:first-child{color:#9e392b;font-weight:650}
.home-calendar-status{font-size:11px;margin:10px 0}

/* Personal day uses the same task and stage records. */
.today-page .today-intro{font-size:14px;margin-bottom:14px}
.today-counts{display:flex;gap:20px;margin:16px 0 20px;font-size:12px;color:var(--muted)}
.today-counts strong{font-size:23px;display:block;color:var(--ink)}
.today-counts .is-late,.today-counts .is-late strong{color:#9e392b}
.today-page .today-filters{display:flex;gap:4px;background:#eaece3;border-radius:12px;padding:4px}
.today-filters>.btn{flex:1;border:0;border-radius:9px;background:transparent;min-height:40px}
.today-filters .btn[aria-pressed=true]{background:var(--paper,#fff);color:var(--ink);box-shadow:0 1px 4px #20282912}
.today-page .today-empty{background:var(--paper,#fff);border:1px solid var(--line);border-radius:18px;padding:28px 24px;margin:24px 0 14px;text-align:center}
.today-empty-icon{width:68px;height:68px;margin:0 auto 20px;background:#edf3dc;border-radius:22px;display:grid;place-items:center;color:#526733}
.today-empty-icon .icon{width:32px;height:32px}
.today-page .today-empty h2{font-size:20px;line-height:1.3;margin:0 0 12px}
.today-page .today-empty p{font-size:14px;line-height:1.6;margin:0;color:var(--muted)}
.today-page .today-footer{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.today-page .today-footer>.btn{font-size:14px;min-height:48px}
.today-page .today-sync{font-size:11px;margin:10px 0;color:var(--muted)}
.today-page .today-row{gap:6px;border-radius:14px;padding:16px}
.today-row .today-row-context{font-size:11px}
.today-page .today-open{font-size:12px;color:#526733}
.today-page .today-late .today-row{border-left:3px solid #d59976}

/* Room positions keep quantity beside the name, reveal controls on demand. */
.work-space-panels .space-positions>.section-head{margin:0 0 12px}
.work-space-panels .space-positions>.section-head>.btn{width:auto;min-height:44px;font-size:13px;padding:8px 10px}
.work-space-panels .space-position-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
.space-position-tools .field{margin:0;font-size:12px}
.space-position-tools input{min-height:44px}
.work-space-panels .space-position-filters{position:relative;margin:0;border:0}
.space-position-filters>summary{min-height:44px;padding:12px 4px;font-size:12px;cursor:pointer}
.space-position-filters[open]>div{position:absolute;z-index:3;right:0;width:240px;max-width:calc(100vw - 72px);padding:12px;background:var(--paper,#fff);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 20px #20282914}
.space-position-filters:not([open])>div{display:none}
.space-position-results{margin:10px 0;font-size:11px}
.space-position-group>h4{font-size:12px;color:var(--muted);font-weight:500;margin:16px 0 2px}
.work-space-panels .space-position-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:14px 0;margin:0}
.space-position-row>div{min-width:0}
.space-position-row>div>strong{font-size:14px;line-height:1.4}
.space-position-row>div>small{font-size:11px;line-height:1.4;margin-top:4px}
.space-position-row>.space-position-quantity{font-size:13px;white-space:nowrap;align-self:start}
.space-position-edit{grid-column:1/-1}
.space-position-edit>summary{font-size:12px;min-height:36px;padding:9px 0;cursor:pointer;color:var(--muted)}
.space-position-edit>div{display:flex;flex-wrap:wrap;gap:8px;padding:4px 0}
.space-position-edit:not([open])>div{display:none}
.space-position-edit .btn{font-size:13px;min-height:44px;padding:8px 12px}
.work-space-panels .space-execution-stage{padding:0;margin:10px 0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.space-execution-stage>summary{padding:14px;min-height:64px;cursor:pointer;list-style:none;position:relative;padding-right:36px}
.space-execution-stage>summary:after{content:"⌄";position:absolute;right:14px;top:20px}
.space-execution-stage[open]>summary:after{content:"⌃"}
.space-execution-stage>summary strong{font-size:14px;display:block}
.space-execution-stage>summary small{display:block;font-size:11px;color:var(--muted);margin-top:5px}
.space-execution-stage-body{padding:0 14px 12px}
.space-execution-stage-body .space-execution-line{padding:14px 0}
.space-execution-stage-body .space-execution-line strong{font-size:14px}
.space-execution-stage-body .space-execution-line span,.space-execution-stage-body .space-execution-line small{font-size:12px}
.work-space-panels .space-tasks .section-head,.work-space-panels .space-execution .section-head{margin:0 0 12px}
.work-space-panels .space-tasks .section-head .btn,.work-space-panels .space-execution .section-head .btn{font-size:13px;min-height:44px}
.work-space-panels .space-tasks .task-row{padding:14px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;display:grid;gap:8px}
.space-tasks .task-row strong{font-size:14px;line-height:1.4}
.space-tasks .task-row small,.space-tasks .task-status{font-size:11px;line-height:1.4}

/* Execution: stage summaries first; completed quantity stays distinct from acceptance. */
.ops-progress-detail{border:1px solid var(--line);border-radius:14px;margin:14px 0;overflow:hidden}
.ops-progress-detail>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px;cursor:pointer;list-style:none}
.ops-progress-detail>summary strong{font-size:17px}
.ops-progress-detail>summary span{font-size:12px;color:var(--muted)}
.ops-progress-detail>.execution-progress{border:0;margin:0;padding:0 14px 14px}
.ops-work-overview .work-summary{flex-wrap:nowrap;align-items:center;gap:12px;margin:14px 0}
.ops-work-overview .work-summary p{font-size:12px;line-height:1.4}
.ops-work-overview .work-summary .btn{min-height:44px;padding:8px 12px;font-size:13px}
#modal .ops-work-overview .ops-toolbar{display:flex;align-items:center;gap:8px}
.ops-work-overview .ops-toolbar>.btn{width:auto;flex:1;font-size:13px;min-height:44px}
.ops-work-overview .ops-toolbar>.ops-more{flex:1}
.ops-work-overview .ops-toolbar summary{min-height:44px;font-size:13px;padding:12px}
.ops-work-overview .execution-filters{display:flex;overflow-x:auto;gap:4px;margin:16px 0 12px;padding:4px;background:var(--bg);border-radius:12px}
.ops-work-overview .execution-filters>.btn{flex:none;width:auto;white-space:nowrap;min-height:40px;padding:8px 10px;font-size:11px}
.ops-stage-list{display:grid;gap:10px}
.ops-stage-list .ops-stage{margin:0;border-radius:14px}
.ops-progress-detail>summary:after{content:"⌄";flex:none;color:var(--muted)}
.ops-progress-detail[open]>summary:after{content:"⌃"}
.ops-stage-list .ops-stage>summary{padding:14px;gap:12px}
.ops-stage-heading strong{font-size:15px;line-height:1.4}
.ops-stage-heading small{font-size:11px;line-height:1.5}
.ops-stage-progress{font-size:19px}
.ops-stage-progress small{font-size:11px}
.ops-stage-body .work-line{padding:14px 0}
.ops-work-heading strong{font-size:14px;line-height:1.4}
.ops-work-heading small{font-size:11px}
.ops-stage-body .ops-work-quantities{margin:10px 0;gap:20px}
.ops-work-quantities>span{font-size:11px}
.ops-work-quantities strong{font-size:15px}
.ops-stage-body .ops-work-actions>.btn{min-height:44px;width:100%;font-size:13px}
.ops-line-details>summary{min-height:36px;padding:9px 0;font-size:12px}
.ops-stage-body .ops-line-details:not([open])>.btn{display:none}
.ops-line-details>.btn{font-size:13px}
.ops-stage-tools{padding-top:12px}
#modal:has(.work-document) .work-dialog-nav{margin:12px 0;gap:6px}
#modal:has(.work-document) .work-dialog-nav>.btn{min-height:40px;font-size:12px;padding:8px}
#modal:has(.work-document)>.ux-inline-actions{display:flex;gap:8px;margin:12px 0}
#modal:has(.work-document)>.ux-inline-actions>.btn{font-size:13px;min-height:44px;flex:1;padding:10px}
#modal .work-document>h2{display:none}
#modal .work-document>small{font-size:11px;color:var(--muted)}
#modal .work-document>p{font-size:13px;line-height:1.5}
#modal .work-act-row{padding:16px 0}
#modal .work-act-row .work-row-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
#modal .work-act-row .work-row-head strong{font-size:14px}
#modal .work-act-row p{font-size:13px;line-height:1.5}
#modal .work-act-row small{font-size:11px;line-height:1.5}
#modal .work-act-row .work-note{color:var(--muted)}
#modal .work-act-row .ux-inline-actions>.btn{font-size:12px;min-height:44px}

.daily-page .daily-heading{margin:0 0 16px}
.daily-page .daily-section{padding:16px;margin:12px 0}
.daily-page .daily-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px}
.daily-section-heading h3{font-size:16px;margin:0}
.daily-section-heading>span{font-size:11px;color:var(--muted)}
.daily-page .daily-main-field .field{margin-bottom:0}
.daily-page .daily-extra-fields{margin-top:16px;padding-top:0;border-top:1px solid var(--line)}
.daily-page .daily-extra-fields>summary{padding:14px 0 0;font-size:14px;min-height:44px}
.daily-page .daily-extra-fields>summary small{font-size:11px;margin-top:4px}
.daily-page .daily-section>summary{font-size:14px;min-height:40px}
.daily-page .daily-section>summary small{font-size:11px;margin-top:5px}
.daily-page .daily-fields{margin-top:14px}
.daily-page .daily-save{padding:4px 0 12px;gap:8px}
.daily-page .daily-save small{font-size:11px;text-align:center}
.daily-page .daily-actions{gap:8px;margin:14px 0}
.daily-page .daily-actions .btn{font-size:13px;padding:10px 12px}
.work-space-panels .space-records>.section-head{margin:0 0 12px}
.work-space-panels .space-records>.section-head .ux-inline-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.work-space-panels .space-records>.section-head .btn{font-size:12px;line-height:1.4;min-height:44px;padding:8px}
.work-space-panels .space-record-group{margin:14px 0;padding:0}
.work-space-panels .space-record-group h4{font-size:14px;margin:0 0 8px}
.work-space-panels .space-record-group p{font-size:12px;line-height:1.5;margin:8px 0}
.work-space-panels .space-record-group>summary{font-size:13px;min-height:44px;padding:12px 0}
.work-space-panels .space-record-row{padding:12px 0;gap:10px}
.work-space-panels .space-record-row strong{font-size:14px;line-height:1.4}
.work-space-panels .space-record-row small{font-size:11px;line-height:1.5}
.work-space-panels .space-record-row>.btn{font-size:12px;padding:8px;min-height:44px}
@media(min-width:900px){
 .today-page .today-empty{max-width:540px;margin:30px auto 16px;padding:36px}
 .today-page:has(.today-empty) .today-footer{max-width:540px;margin:auto}
 .ops-stage-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
 .ops-stage-list .ops-stage{margin:0}
 .ops-stage-list .ops-stage[open]{grid-column:1/-1}
 .ops-stage-body{padding:16px}
}
@media(max-width:360px){
 #modal:has(>[data-document-expand])>h2{padding-right:0;padding-top:48px;overflow-wrap:anywhere}
 .home-calendar-days{gap:3px}
 .home-calendar-days>button{min-height:48px;height:48px}
 .home-calendar-nav>strong{font-size:13px}
 .home-calendar-nav>.btn{font-size:11px;padding:4px}
 .home-calendar-nav>.icon-btn{width:32px}
 .space-position-row>.space-position-quantity{font-size:12px;max-width:85px;white-space:normal;text-align:right}
 .ops-progress-detail>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px}
 .ops-progress-detail>summary>strong,.ops-progress-detail>summary>span{grid-column:1}
 .ops-progress-detail>summary:after{grid-column:2;grid-row:1/3;align-self:center}
}

.workspace-task-return{margin:12px 16px 20px;padding:12px 16px;border:1px solid var(--line,#d9ded2);border-radius:14px;background:var(--card,#fff);max-width:100%;overflow-wrap:anywhere}
.workspace-task-return p{margin:8px 0 12px}.workspace-task-return .row{display:flex;flex-wrap:wrap;gap:8px}.workspace-task-return .btn{min-height:44px;white-space:normal;max-width:100%}
