/* Shared final pass. Each rule is scoped to a screen family, not drawing controls. */
#client-app{max-width:960px;padding:24px 28px 48px}
#client-app .client-header{margin:0;gap:16px;min-height:56px;align-items:center}
#client-app .client-header .brand{display:flex;align-items:center;font-size:25px}
#client-app .client-header .brand img{margin-right:8px}
#client-app .client-account{position:relative;flex:none}
#client-app .client-account>summary{list-style:none;display:flex;align-items:center;gap:6px;cursor:pointer;min-height:48px;padding:2px;border-radius:12px}
#client-app .client-account>summary::-webkit-details-marker{display:none}
#client-app .client-account>summary:focus-visible{outline:2px solid #4d6634;outline-offset:3px}
#client-app .client-avatar{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#202829;color:#d2f566;font-weight:700;overflow:hidden}
#client-app .client-avatar img{width:100%;height:100%;object-fit:cover}
#client-app .icon{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#client-app .client-account-menu{position:absolute;z-index:20;right:0;top:calc(100% + 8px);width:280px;max-width:calc(100vw - 32px);display:grid;gap:8px;padding:16px;background:#fff;border:1px solid #d9ddd2;border-radius:16px;box-shadow:0 10px 40px #2028291a;overflow-wrap:anywhere}
#client-app .client-account-menu>strong{font-size:16px}
#client-app .client-account-menu>small{margin-bottom:8px}
#client-app .client-account-menu>.button,#client-app .client-account-menu>button{display:flex;gap:10px;align-items:center;font-size:14px;text-align:left;min-height:44px}
#client-app .client-location{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #d9ddd2;padding:8px 0 16px;margin:0 0 24px;font-size:13px;color:#64706b}
#client-app .client-location a{display:flex;align-items:center;gap:6px;color:#202829;text-decoration:none;min-height:44px;margin:-10px 0}
#client-app .client-page-heading{margin-bottom:24px;max-width:600px}
#client-app h1{margin:0 0 12px}
#client-app .client-page-heading p{margin:0;font-size:15px;line-height:1.6}
#client-app .client-empty{border:1px solid #d9ddd2;max-width:640px;padding:24px}
#client-app .client-empty-icon{display:grid;place-items:center;width:48px;height:48px;background:#eef1e5;border-radius:14px;margin-bottom:18px}
#client-app .client-empty-icon .icon{width:26px;height:26px}
#client-app .client-empty h2{font-size:21px;line-height:1.3;margin:0 0 12px}
#client-app .client-empty p,#client-app .client-empty li{font-size:15px;color:#626e6a}
#client-app .client-empty ol{padding-left:22px;margin:18px 0}
#client-app .client-empty li{padding-left:4px;margin:10px 0}
#client-app .client-empty button{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px}
#client-app .client-work-return{max-width:640px;padding:24px 2px 0;font-size:15px}
#client-app .client-work-return p{margin:6px 0 14px;color:#626e6a}
#client-app .button.primary{background:#d2f566;border-color:#d2f566}
#client-app .client-work-return .button{display:inline-flex;align-items:center;gap:8px}
#client-app .client-projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#client-app .client-project{padding:20px;border:1px solid #d9ddd2;min-width:0}
#client-app .client-company{font-size:13px;color:#626e6a;margin:0 0 8px}
#client-app .client-project h2{margin:0 0 8px;font-size:21px}
#client-app .client-project h2 a{display:flex;align-items:center;justify-content:space-between;gap:12px;color:inherit;text-decoration:none}
#client-app .client-project .review-link{display:flex;align-items:center;gap:12px;justify-content:space-between}
#client-app .client-documents>summary,#client-app .document-date-filters>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;min-height:48px}
#client-app .client-documents>summary::-webkit-details-marker,#client-app .document-date-filters>summary::-webkit-details-marker{display:none}
#client-app .client-documents>summary:after,#client-app .document-date-filters>summary:after{content:"";width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);flex:none;margin:0 4px 4px}
#client-app .client-documents[open]>summary:after,#client-app .document-date-filters[open]>summary:after{transform:rotate(225deg);margin-bottom:0}
#client-app .paper{border:1px solid #d9ddd2}
#client-app .client-return{margin-bottom:16px}
#client-app .error:empty{display:none}
#client-app .client-passport h1,#client-app .client-library h1{margin-top:20px}
#client-app .auth{padding:24px;margin:0 auto}
#client-app input,#client-app select,#client-app textarea{font-size:16px}
#client-app .auth .company-actions{display:grid;gap:8px}
@media(max-width:600px){
 #client-app{padding:16px 16px 32px}
 #client-app .client-location{margin-bottom:24px}
 #client-app .client-projects{grid-template-columns:minmax(0,1fr)}
 #client-app .client-empty{padding:20px 18px}
 #client-app .client-empty h2{font-size:20px}
 #client-app .client-work-return .button{width:100%;justify-content:center}
 #client-app .client-project h2{font-size:20px}
 #client-app .client-passport,#client-app .client-library{padding:18px 16px}
 #client-app .auth{padding:20px 16px}
}
@media print{#client-app{padding:0;max-width:none}#client-app .paper{border:0}#client-app .client-header,#client-app .client-location{display:none}}

.account-shell .section-return-source{display:none!important}
.account-shell .company-actions:has(>.section-return-source:only-child){display:none}
.account-shell .account-top .row{min-width:0;flex:1}
.account-shell .account-top .btn{max-width:100%;gap:8px}
.account-shell .account-top .btn>span{white-space:normal;text-align:left;line-height:1.3}
.account-shell .ops-empty{border:1px solid var(--line);border-radius:16px;padding:20px;margin:20px 0;background:var(--paper,#fff)}
.account-shell .ops-empty h2{margin:0 0 10px;font-size:20px}
.account-shell .ops-empty p{color:var(--muted);line-height:1.55}
.account-shell .ops-checklists .check-row{gap:12px;align-items:center}
.account-shell .ops-checklists .check-row>span{min-width:0;overflow-wrap:anywhere}
.account-shell .ops-checklists .check-row>span:last-child{max-width:42%;line-height:1.4}
@media(max-width:600px){
 .account-shell .ops-checklists .check-row{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
 .account-shell .ops-checklists .check-row>span:last-child{max-width:none;text-align:left;font-size:13px}
 .account-shell .ops-checklists .check-row>span:only-child{font-size:inherit}
 .account-shell .company-hub-tabs{gap:4px;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0;display:flex;justify-content:space-between;overflow:visible}
 .account-shell .company-hub-tabs>a{padding:10px 4px;border-radius:0;border-bottom:3px solid transparent;box-shadow:none;font-size:13px;min-height:48px}
 .account-shell .company-hub-tabs>a[aria-current="page"]{background:transparent;border-bottom-color:var(--ink);color:var(--ink);font-weight:700}
}

#client-app .client-account>summary>.icon{transform:rotate(90deg);width:16px;height:16px}
#client-app .client-account[open]>summary>.icon{transform:rotate(-90deg)}
.account-shell .map-page .map-filters{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin:16px 0 8px}
.account-shell .map-filter-tools{min-width:160px;border:1px solid var(--line);border-radius:12px;background:#fff}
.account-shell .map-filter-tools>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:10px 14px;cursor:pointer;list-style:none;font-size:14px}
.account-shell .map-filter-tools>summary::-webkit-details-marker{display:none}
.account-shell .map-filter-tools>summary:after,.account-shell .map-start-options>summary:after{content:"";width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);flex:none;margin:0 2px 4px}
.account-shell .map-filter-tools[open]>summary:after,.account-shell .map-start-options[open]>summary:after{transform:rotate(225deg);margin-bottom:0}
.account-shell .map-filter-tools[open]{grid-column:1/-1;grid-row:2}
.account-shell .map-filter-fields{padding:4px 14px 14px;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.account-shell .map-page #map-route-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.account-shell .map-route-preparation{display:grid;gap:10px}
.account-shell .map-start-options{border:1px solid var(--line);border-radius:12px;background:white}
.account-shell .map-start-options>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;min-height:48px;padding:12px 14px;cursor:pointer}
.account-shell .map-start-options>summary::-webkit-details-marker{display:none}
.account-shell .map-start-options>div{padding:0 12px 12px;display:flex;gap:8px;flex-wrap:wrap}
.account-shell .map-route-build{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:16px}
.account-shell .map-page #map-route-actions>.btn,.account-shell .map-start-options .btn{border:1px solid var(--line);background:white}
.account-shell .map-page #map-route-help{font-weight:700;color:var(--ink);margin-bottom:6px}
.account-shell .map-page .map-detail-actions>.btn{border:1px solid var(--line)}
.account-shell .suppliers-page .supplier-heading{gap:12px;align-items:center}
.account-shell .suppliers-page .supplier-row{gap:12px;align-items:center;padding:16px}
.account-shell .suppliers-page .supplier-row>span{min-width:0;overflow-wrap:anywhere}
.account-shell .suppliers-page .supplier-row>span:last-child{font-size:13px;white-space:nowrap;flex:none}
.account-shell .suppliers-page .supplier-point{padding:16px;border:1px solid var(--line);border-radius:14px;background:white}
.account-shell .suppliers-page .supplier-actions{gap:8px}
.account-shell .suppliers-page .supplier-actions>.btn{border:1px solid var(--line);background:white;min-height:44px}
.account-shell .productivity-page .productivity-toolbar{justify-content:flex-end}
.account-shell .productivity-page .productivity-toolbar>.btn{min-height:44px}
@media(max-width:600px){
 .account-shell .map-page .map-filters{grid-template-columns:minmax(0,1fr);gap:10px}
 .account-shell .map-filter-tools{justify-self:start;min-width:140px;max-width:100%;margin:0}
 .account-shell .map-filter-tools[open]{width:100%;grid-row:auto}
 .account-shell .map-filter-fields{grid-template-columns:minmax(0,1fr)}
 .account-shell .map-route-preparation>.btn,.account-shell .map-route-build>.btn{width:100%}
 .account-shell .map-start-options>div{display:grid;grid-template-columns:minmax(0,1fr)}
 .account-shell .suppliers-page .supplier-facts{grid-template-columns:minmax(0,1fr);gap:4px}
 .account-shell .suppliers-page .supplier-facts dd{margin:0 0 12px}
 .account-shell .suppliers-page .supplier-facts dt{color:var(--muted);font-size:13px}
 .account-shell .suppliers-page .supplier-actions{display:flex;flex-wrap:wrap}
}

/* Remaining disclosures share a full-width target and a right-hand chevron. */
.account-shell :is(.daily-page,.productivity-page,.plan-import,.suppliers-page,.purchase-page,.ops-funds) details>summary,
.documents-library .library-filter-panel>summary{list-style:none;position:relative;min-height:48px;padding:12px 28px 12px 0;cursor:pointer;line-height:1.45}
.account-shell :is(.daily-page,.productivity-page,.plan-import,.suppliers-page,.purchase-page,.ops-funds) details>summary::-webkit-details-marker,
.documents-library .library-filter-panel>summary::-webkit-details-marker{display:none}
.account-shell :is(.daily-page,.productivity-page,.plan-import,.suppliers-page,.purchase-page,.ops-funds) details>summary:after,
.documents-library .library-filter-panel>summary:after{content:"";position:absolute;right:6px;top:19px;width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);background:none}
.account-shell :is(.daily-page,.productivity-page,.plan-import,.suppliers-page,.purchase-page,.ops-funds) details[open]>summary:after,
.documents-library .library-filter-panel[open]>summary:after{transform:rotate(225deg);top:23px}
.account-shell :is(.daily-page,.productivity-page,.plan-import,.suppliers-page,.purchase-page,.ops-funds) details>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.account-shell .daily-section>summary{padding:4px 28px 4px 0;min-height:44px}
.account-shell .daily-page details>summary>small{display:block;color:var(--muted);font-size:13px;line-height:1.5;margin-top:3px}
.account-shell .daily-page .daily-section{margin:16px 0;padding:16px;border-radius:14px}
.account-shell .daily-page .daily-fields{gap:16px}
.account-shell .daily-page .daily-actions{gap:8px}
.account-shell .daily-page .daily-actions>.btn{min-height:44px}
.account-shell .plan-import #plan-file{display:block;width:100%;padding:8px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:14px;min-height:64px}
.account-shell .plan-import #plan-file::file-selector-button{font:inherit;font-weight:700;border:0;border-radius:9px;background:var(--action);color:var(--ink);padding:12px 14px;min-height:44px;cursor:pointer;margin-right:10px}
.account-shell .plan-import h2{font-size:20px;line-height:1.35;margin:20px 0 10px}
.account-shell .plan-import #plan-body>p{line-height:1.6;color:var(--muted)}
.work-projects .lab-project-trash>span{display:inline!important}
.work-projects .lab-project-trash{width:auto!important;min-height:44px;gap:8px}
dialog#modal.chat-dialog>.dialog-back{align-self:flex-start;justify-content:flex-start;width:auto;min-width:44px;flex:none;margin:8px 16px 0;padding:10px 12px}
dialog#modal.chat-dialog>h2{padding-top:10px;padding-bottom:14px}
@media(max-width:600px){
 .account-shell .daily-page .daily-actions{display:grid;grid-template-columns:minmax(0,1fr)}
 .account-shell .daily-page .daily-section{padding:14px}
 .account-shell .productivity-team dl>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
 .account-shell .productivity-team dt,.account-shell .productivity-team dd{min-width:0;overflow-wrap:anywhere}
 .account-shell .productivity-page .productivity-dates{grid-template-columns:minmax(0,1fr)}
}

dialog#modal #backup-file{width:100%;max-width:100%;padding:8px;font-size:14px;border:1px solid var(--line);border-radius:12px;background:#fff;min-height:64px}
dialog#modal #backup-file::file-selector-button{font:inherit;border:0;border-radius:8px;background:var(--action);padding:10px;min-height:44px;cursor:pointer;margin-right:8px}

dialog#modal :is(.employee-specialties,.employee-extra){border-block:1px solid var(--line);padding:4px 0}
dialog#modal :is(.employee-specialties,.employee-extra)>summary{position:relative;list-style:none;cursor:pointer;padding:12px 28px 12px 0;min-height:48px;font-weight:700}
dialog#modal :is(.employee-specialties,.employee-extra)>summary::-webkit-details-marker{display:none}
dialog#modal :is(.employee-specialties,.employee-extra)>summary:after{content:"";position:absolute;right:6px;top:18px;width:8px;height:8px;border-bottom:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg)}
dialog#modal :is(.employee-specialties,.employee-extra)[open]>summary:after{transform:rotate(225deg);top:22px}
dialog#modal .employee-specialties>summary small{display:block;font-size:13px;color:var(--muted);font-weight:400;line-height:1.45;margin-top:4px}
dialog#modal .employee-specialties .specialty-picks{border:0;padding:0;margin:4px 0 12px}
dialog#modal .employee-specialties legend{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.account-shell .account-team-inactive{margin-top:16px}
.account-shell .account-team-list .account-member-copy{min-width:0;overflow-wrap:anywhere}

@media(max-width:600px){
 dialog#modal form:has([name="corniceScheme"]) .two-cols{grid-template-columns:minmax(0,1fr)}
}
.account-shell .suppliers-page .supplier-heading{margin-bottom:16px}

dialog#modal form:has([name="corniceScheme"]) :is([data-route-between],[data-route-return],[data-zone-sizes]){border:0;padding:0;margin:0;min-width:0}

.space-photos details>summary{position:relative;list-style:none;min-height:48px;padding:12px 28px 12px 0;cursor:pointer;line-height:1.45}
.space-photos details>summary::-webkit-details-marker{display:none}
.space-photos details>summary:after{content:"";position:absolute;right:6px;top:19px;width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
.space-photos details[open]>summary:after{transform:rotate(225deg);top:23px}
.space-photos .photo-gallery-search-row>.btn{border:1px solid var(--line);background:var(--paper);min-height:44px}
.space-photos .space-photo-upload input[type=file]{width:100%;min-height:64px;padding:8px;font-size:14px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}
.space-photos .space-photo-upload input[type=file]::file-selector-button{font:inherit;border:0;border-radius:8px;padding:10px;min-height:44px;background:var(--action);margin-right:8px;cursor:pointer}
@media(max-width:600px){.space-photos .photo-gallery-search-row{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.space-photos .photo-gallery-search-row>.btn{justify-self:end;padding-inline:20px}}
