/* Remaining workspace sections use the owner-approved compact scale.
   Projects and manual inputs never receive workspace-standard-view.
   The white estimate document, financial cells and public landing keep their styles. */
.workspace-compact-shell .workspace-standard-view{font-size:13px;line-height:1.5;min-width:0}
.workspace-compact-shell .workspace-standard-view .workspace-topbar{display:flex;align-items:center;margin-bottom:18px;gap:16px}
.workspace-compact-shell .workspace-standard-view .workspace-topbar h1{font-size:28px;line-height:1.2;margin:0 0 6px}
.workspace-compact-shell .workspace-standard-view .workspace-breadcrumb{font-size:12px}
.workspace-compact-shell .workspace-standard-view .account-verification-notice{min-height:0;padding:8px 12px;gap:12px;margin:0 0 18px;border-radius:7px}
.workspace-compact-shell .workspace-standard-view .account-verification-notice>div{display:flex;flex-wrap:wrap;gap:6px}
.workspace-compact-shell .workspace-standard-view .account-verification-notice :is(strong,p){font-size:12px;line-height:1.5;margin:0}
.workspace-compact-shell .workspace-standard-view .account-verification-notice button{font-size:12px;min-height:28px;padding:4px 9px;white-space:normal}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate){--line:#293e48;--muted:#9cafb8;--text:#edf1f2;--panel:#0e1b22}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) :is(button,input,select,textarea){font-family:inherit;font-size:13px;line-height:1.4;box-sizing:border-box}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select){height:36px;min-height:36px;max-width:100%;min-width:0;padding:6px 10px;border-radius:5px}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) textarea{min-height:70px;padding:8px 10px;border-radius:5px;resize:vertical}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) button{min-height:34px;padding:6px 11px;font-weight:550;border-radius:5px;white-space:normal}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) button svg{width:16px;height:16px;flex-shrink:0}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) :is(h2,h3,h4){font-family:inherit;line-height:1.4;letter-spacing:normal}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) h2{font-size:18px;margin:0 0 10px;font-weight:650}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) h3{font-size:15px;margin:0 0 9px;font-weight:650}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) h4{font-size:13px;margin:0 0 8px}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) p{font-size:13px;line-height:1.5;margin-top:6px;margin-bottom:12px}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) :is(.mini,small){font-size:11px;line-height:1.5}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) :is(.eyebrow,.chat-project-label,.task-project-label){font-size:10px;letter-spacing:1px}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) .field{gap:5px;min-width:0;margin-bottom:0;font-size:12px}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) .field>span{font-size:12px;line-height:1.4}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) .badge{font-size:11px;line-height:1.4;padding:4px 8px}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) :is(.panel,.soft-panel){padding:16px;border-radius:8px;box-shadow:none;min-width:0}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) :is(.stack,.grid-2,.grid-3){gap:16px}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) :is(.actions,.inline-form){gap:8px;flex-wrap:wrap;align-items:flex-end}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) .section-head{gap:12px;margin-bottom:14px;flex-wrap:wrap}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) .notice{font-size:12px;line-height:1.5;padding:10px 12px;border-radius:6px}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) .notice p{font-size:12px;margin:4px 0 0}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) :is(th,td){font-size:12px;padding:10px 12px;line-height:1.45}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) th{font-size:11px}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) .table-wrap{max-width:100%;overflow:auto}
.workspace-compact-shell .workspace-standard-view:not(.view-estimate) :is(.empty-state,.chat-empty-project,.task-empty){min-height:0;padding:28px 18px;font-size:13px}
/* Compact colored context and panel boundaries, shared with the manual form. */
.workspace-compact-shell .workspace-standard-view :is(.project-chat-header,.project-tasks-header){padding:14px 16px;border-radius:8px;background:#14251f;border-color:#385447;box-shadow:none;gap:16px;align-items:center}
.workspace-compact-shell .workspace-standard-view :is(.project-chat-header,.project-tasks-header) h2{font-size:18px;margin:3px 0 5px}
.workspace-compact-shell .workspace-standard-view :is(.project-chat-header,.project-tasks-header) p{font-size:12px;margin:0;color:#aabbb5}
.workspace-compact-shell .workspace-standard-view :is(.project-chat-screen,.project-tasks-screen,.project-tasks-primary){gap:16px}
.workspace-compact-shell .workspace-standard-view .project-chat-participants{padding:7px 9px;gap:8px}
.workspace-compact-shell .workspace-standard-view .project-chat-participants span{width:26px;height:26px;font-size:10px}
.workspace-compact-shell .workspace-standard-view .project-chat-participants strong{font-size:11px}
.workspace-compact-shell .workspace-standard-view .project-chat-toolbar{padding:12px 16px;gap:12px}
.workspace-compact-shell .workspace-standard-view .project-chat-toolbar h3{font-size:14px;margin:0 0 3px}
.workspace-compact-shell .workspace-standard-view .project-chat-toolbar p{font-size:11px;margin:0}
.workspace-compact-shell .workspace-standard-view .project-chat-feed{min-height:240px;max-height:calc(100dvh - 440px);padding:16px;gap:12px}
.workspace-compact-shell .workspace-standard-view .project-chat-empty{padding:30px 16px}
.workspace-compact-shell .workspace-standard-view .project-chat-empty strong{font-size:15px}
.workspace-compact-shell .workspace-standard-view .project-chat-empty svg{width:30px;height:30px;margin-bottom:9px}
.workspace-compact-shell .workspace-standard-view :is(.project-chat-avatar,.project-chat-current-avatar){width:30px;height:30px;font-size:11px}
.workspace-compact-shell .workspace-standard-view .project-chat-bubble{min-width:0;padding:9px 12px}
.workspace-compact-shell .workspace-standard-view .project-chat-composer{padding:12px 16px;gap:10px}
.workspace-compact-shell .workspace-standard-view .project-chat-composer textarea{min-height:52px}
.workspace-compact-shell .workspace-standard-view .task-summary{padding:8px 12px;gap:7px 10px}
.workspace-compact-shell .workspace-standard-view .task-summary strong{font-size:18px}
.workspace-compact-shell .workspace-standard-view .task-summary span{font-size:11px}
.workspace-compact-shell .workspace-standard-view .project-tasks-layout{grid-template-columns:minmax(0,1.4fr) minmax(270px,.85fr);gap:16px}
.workspace-compact-shell .workspace-standard-view :is(.task-create-panel,.project-task-detail){padding:16px;border-radius:8px;min-height:0}
.workspace-compact-shell .workspace-standard-view .task-create-panel{gap:12px}
.workspace-compact-shell .workspace-standard-view .task-panel-heading{gap:10px;margin-bottom:10px}
.workspace-compact-shell .workspace-standard-view .task-panel-heading h3{font-size:15px;margin:0 0 3px}
.workspace-compact-shell .workspace-standard-view .task-panel-heading p{font-size:12px;margin:0}
.workspace-compact-shell .workspace-standard-view .task-create-row{gap:10px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
.workspace-compact-shell .workspace-standard-view .task-list-panel>.task-panel-heading{padding:12px 16px;margin:0;background:#14252c}
.workspace-compact-shell .workspace-standard-view button.project-task-card{min-height:58px;padding:12px 16px;border-radius:0;grid-template-columns:90px minmax(120px,1fr);gap:7px 12px}
.workspace-compact-shell .workspace-standard-view .project-task-card>strong{font-size:13px}
.workspace-compact-shell .workspace-standard-view .task-card-meta{grid-column:2;gap:10px;flex-wrap:wrap;font-size:11px}
.workspace-compact-shell .workspace-standard-view :is(.task-list-empty,.task-detail-empty){padding:28px 16px}
.workspace-compact-shell .workspace-standard-view :is(.task-list-empty,.task-detail-empty) strong{font-size:15px}
.workspace-compact-shell .workspace-standard-view :is(.task-list-empty,.task-detail-empty) svg{width:30px;height:30px}
.workspace-compact-shell .workspace-standard-view .task-detail-form{gap:10px}
.workspace-compact-shell .workspace-standard-view :is(.task-comments,.task-history){margin-top:16px;padding-top:12px}
/* Upload, extracted values and confirmation retain their original actions. */
.workspace-compact-shell .workspace-standard-view.view-ai-intake .workspace-topbar{display:flex}
.workspace-compact-shell .workspace-standard-view .ai-intake-screen{width:100%;margin:0;min-width:0}
.workspace-compact-shell .workspace-standard-view .ai-intake-header{gap:16px;align-items:center}
.workspace-compact-shell .workspace-standard-view .ai-intake-header h2{font-size:18px;max-width:none;margin:0 0 5px;line-height:1.4}
.workspace-compact-shell .workspace-standard-view .ai-intake-header p{font-size:12px;margin:0}
.workspace-compact-shell .workspace-standard-view .ai-intake-header .badge{margin:0;flex-shrink:0}
.workspace-compact-shell .workspace-standard-view .ai-progress{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:18px 0 0}
.workspace-compact-shell .workspace-standard-view .ai-step{display:flex;align-items:center;gap:8px;min-height:48px;padding:9px 10px;border-radius:6px}
.workspace-compact-shell .workspace-standard-view .ai-step::after{display:none}
.workspace-compact-shell .workspace-standard-view .ai-step span{width:24px;height:24px;flex:0 0 24px;font-size:11px}
.workspace-compact-shell .workspace-standard-view .ai-step>svg{display:none}
.workspace-compact-shell .workspace-standard-view .ai-step strong{font-size:11px;text-align:left;line-height:1.35}
.workspace-compact-shell .workspace-standard-view .ai-upload-notice{grid-template-columns:18px minmax(0,1fr);min-height:0;gap:10px;margin-top:16px;padding:12px 14px}
.workspace-compact-shell .workspace-standard-view .ai-upload-notice>svg{width:18px;height:18px}
.workspace-compact-shell .workspace-standard-view .ai-upload-notice strong{font-size:13px;margin:0 0 4px}
.workspace-compact-shell .workspace-standard-view .ai-upload-notice p{font-size:12px}
.workspace-compact-shell .workspace-standard-view .ai-upload-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:16px;margin-top:16px}
.workspace-compact-shell .workspace-standard-view .ai-upload-card{min-height:0;padding:16px;background:#0e1b22;border-radius:8px}
.workspace-compact-shell .workspace-standard-view .ai-upload-card h3{font-size:15px;margin-bottom:12px}
.workspace-compact-shell .workspace-standard-view .ai-file-label{font-size:12px;margin-bottom:6px}
.workspace-compact-shell .workspace-standard-view .ai-source-trigger{min-height:36px;padding:6px 10px;font-size:13px}
.workspace-compact-shell .workspace-standard-view .ai-drop-zone{min-height:155px;padding:12px}
.workspace-compact-shell .workspace-standard-view .ai-drop-zone>svg{width:28px;height:28px}
.workspace-compact-shell .workspace-standard-view .ai-drop-zone strong{font-size:13px}
.workspace-compact-shell .workspace-standard-view .ai-drop-zone>span{font-size:11px;margin:3px 0}
.workspace-compact-shell .workspace-standard-view .ai-drop-zone em{font-size:12px;padding:6px 10px}
.workspace-compact-shell .workspace-standard-view .ai-drop-zone small{font-size:11px;margin-top:8px}
.workspace-compact-shell .workspace-standard-view .ai-upload-card .primary{min-height:34px;font-size:13px;margin-top:12px}
.workspace-compact-shell .workspace-standard-view .ai-upload-help p{font-size:12px}
.workspace-compact-shell .workspace-standard-view .ai-upload-help button{min-height:34px;font-size:13px;margin-top:14px;padding:6px 11px}
.workspace-compact-shell .workspace-standard-view :is(.local-document-review,.required-input-summary,.opening-schedule-review,.local-calculation-mapping-preview){margin-top:16px;padding-top:14px}
/* Catalog: one compact row per existing record, no change to price or save handling. */
.workspace-compact-shell .workspace-standard-view .price-catalog-list{border:1px solid #2c414a;border-radius:7px;overflow:hidden;margin-top:14px}
.workspace-compact-shell .workspace-standard-view .price-catalog-row{display:grid;grid-template-columns:minmax(0,1fr) 135px auto;gap:14px;align-items:center;padding:10px 14px;border-bottom:1px solid #263b44;background:#0e1b22}
.workspace-compact-shell .workspace-standard-view .price-catalog-row:last-child{border-bottom:0}
.workspace-compact-shell .workspace-standard-view .price-catalog-row:nth-child(even){background:#111f27}
.workspace-compact-shell .workspace-standard-view .price-catalog-name{display:flex;align-items:baseline;gap:12px;min-width:0;justify-content:space-between}
.workspace-compact-shell .workspace-standard-view .price-catalog-name strong{font-size:13px;font-weight:550;overflow-wrap:anywhere}
.workspace-compact-shell .workspace-standard-view .price-catalog-name>span{color:#9cafb8;font-size:11px;white-space:nowrap}
.workspace-compact-shell .workspace-standard-view .price-catalog-price{display:grid;gap:4px;font-size:11px}
.workspace-compact-shell .workspace-standard-view .price-catalog-row button{align-self:end}
/* Exports and settings. */
.workspace-compact-shell .workspace-standard-view .documents-toolbar{align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.workspace-compact-shell .workspace-standard-view .documents-export-choice{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-start}
.workspace-compact-shell .workspace-standard-view .documents-export-choice .field{flex:1 1 190px}
.workspace-compact-shell .workspace-standard-view .documents-export-choice button{margin-top:22px;align-self:flex-start}
.workspace-compact-shell .workspace-standard-view .documents-table-wrap{margin-top:0}
.workspace-compact-shell .workspace-standard-view .documents-table td{height:auto;padding:13px 12px}
.workspace-compact-shell .workspace-standard-view .documents-empty-row td{height:80px}
.workspace-compact-shell .workspace-standard-view.view-subscription .workspace-status-grid{display:flex;flex-wrap:wrap;gap:10px 24px;padding:12px 16px;border:1px solid #2b4149;border-radius:8px;background:#0e1b22}
.workspace-compact-shell .workspace-standard-view .workspace-status-card{display:flex;align-items:center;gap:8px;min-height:0;padding:0;border:0;background:none;box-shadow:none}
.workspace-compact-shell .workspace-standard-view .workspace-status-card>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.workspace-compact-shell .workspace-standard-view .workspace-status-card :is(.status-label,strong){font-size:12px;margin:0}
.workspace-compact-shell .workspace-standard-view .workspace-status-icon{width:18px;height:18px;margin:0}
.workspace-compact-shell .workspace-standard-view .workspace-status-card .badge{display:none}
.workspace-compact-shell .workspace-standard-view .tariff-card{padding:16px;border-radius:8px;box-shadow:none;gap:12px}
.workspace-compact-shell .workspace-standard-view .tariff-price{font-size:20px;line-height:1.4}
.workspace-compact-shell .workspace-standard-view .tariff-card .clean-list{font-size:12px;line-height:1.6;margin:10px 0 14px}
.workspace-compact-shell .workspace-standard-view .tariff-payment-form{gap:10px}
.workspace-compact-shell .workspace-standard-view .team-invite-form{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px;border:1px solid #355346;border-radius:7px;background:#13251f;margin-top:14px}
.workspace-compact-shell .workspace-standard-view .team-invite-form h3{margin:0}
.workspace-compact-shell .workspace-standard-view .team-role-help{font-size:12px;margin:14px 0}
.workspace-compact-shell .workspace-standard-view .participant-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.workspace-compact-shell .workspace-standard-view .participant-card{padding:12px;gap:10px;border-radius:7px}
.workspace-compact-shell .workspace-standard-view .participant-avatar{width:32px;height:32px;font-size:12px}
.workspace-compact-shell .workspace-standard-view .participant-card strong{font-size:13px}
.workspace-compact-shell .workspace-standard-view .participant-card>div{min-width:0;overflow-wrap:anywhere}
.workspace-compact-shell .workspace-standard-view.view-team [data-form=profile]{max-width:540px}
.workspace-compact-shell .workspace-standard-view:is(.view-security,.view-mfa-setup,.view-workspace)>.panel{max-width:760px}
.workspace-compact-shell .workspace-standard-view:is(.view-security,.view-mfa-setup,.view-workspace) .stack{max-width:500px;align-items:start}
.workspace-compact-shell .workspace-standard-view:is(.view-security,.view-mfa-setup,.view-workspace) .field{width:100%}
.workspace-compact-shell .workspace-standard-view .legal-consent-document{gap:7px}
.workspace-compact-shell .workspace-standard-view .legal-consent-choice{font-size:12px;line-height:1.5;align-items:flex-start}
.workspace-compact-shell .workspace-standard-view .legal-consent-choice input{width:16px;height:16px;flex:0 0 16px;margin-top:2px}
.workspace-compact-shell .workspace-standard-view .legal-consent-history{font-size:12px;line-height:1.6;padding-left:18px}
/* Estimate remains a white working document; unify its surrounding workspace only. */
.workspace-compact-shell .workspace-standard-view.view-estimate .register-header{margin:-22px -30px 0;padding:20px 30px}
.workspace-compact-shell .workspace-standard-view.view-estimate .register-title{margin:18px 0}
.workspace-compact-shell .workspace-standard-view.view-estimate .register-title h1{font-size:28px}
.workspace-compact-shell .workspace-standard-view.view-estimate .register-search{height:36px}
.workspace-compact-shell .workspace-standard-view.view-estimate .register-filter{height:36px}
.workspace-compact-shell .workspace-standard-view.view-estimate .register-filter select{height:34px}
.workspace-compact-shell .workspace-standard-view.view-estimate .register-table th{height:48px;padding-block:9px}
.workspace-compact-shell .workspace-standard-view.view-estimate .register-table td{height:64px;padding-block:10px}
.workspace-compact-shell .workspace-standard-view.view-estimate .estimate-detail-panel>.section-head h2{font-size:24px}
.workspace-compact-shell .workspace-standard-view.view-estimate .estimate-detail-panel>.section-head{margin-bottom:12px}
.workspace-compact-shell .workspace-standard-view.view-estimate .ledger-dialog{font-family:inherit;font-size:13px;padding:20px}
.workspace-compact-shell .workspace-standard-view.view-estimate .ledger-dialog h2{font-size:18px}
.workspace-compact-shell .workspace-standard-view.view-estimate .ledger-dialog>header{margin-bottom:18px}
@media(max-width:1100px){
 .workspace-compact-shell .workspace-standard-view .project-tasks-layout{grid-template-columns:1fr}
 .workspace-compact-shell .workspace-standard-view .project-task-detail{position:static}
 .workspace-compact-shell .workspace-standard-view .task-create-row{grid-template-columns:1fr 1fr}
 .workspace-compact-shell .workspace-standard-view .task-create-row button{justify-self:start}
 .workspace-compact-shell .workspace-standard-view.view-estimate .register-header{margin:-22px -22px 0;padding:20px 22px}
 .workspace-compact-shell .workspace-standard-view .team-invite-form{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
 .workspace-compact-shell .workspace-standard-view .workspace-topbar h1{font-size:24px}
 .workspace-compact-shell .workspace-standard-view .account-verification-notice{flex-wrap:wrap}
 .workspace-compact-shell .workspace-standard-view .ai-progress{grid-template-columns:repeat(2,minmax(0,1fr))}
 .workspace-compact-shell .workspace-standard-view :is(.ai-upload-grid,.team-invite-form){grid-template-columns:1fr}
 .workspace-compact-shell .workspace-standard-view :is(.project-chat-header,.project-tasks-header){flex-wrap:wrap}
 .workspace-compact-shell .workspace-standard-view .project-chat-feed{min-height:240px;max-height:440px}
 .workspace-compact-shell .workspace-standard-view .project-chat-message{max-width:94%}
 .workspace-compact-shell .workspace-standard-view .project-chat-composer{grid-template-columns:minmax(0,1fr) auto;padding:12px}
 .workspace-compact-shell .workspace-standard-view .project-chat-current-avatar{display:none}
 .workspace-compact-shell .workspace-standard-view .price-catalog-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}
 .workspace-compact-shell .workspace-standard-view .price-catalog-name{grid-column:1/-1}
 .workspace-compact-shell .workspace-standard-view .documents-export-choice button{margin-top:0}
 .workspace-compact-shell .workspace-standard-view.view-estimate .register-header{margin:-18px -16px 0;padding:18px 16px}
}
.workspace-compact-shell .workspace-standard-view .price-catalog-price>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.workspace-compact-shell .workspace-standard-view .price-catalog-price{gap:0}
.workspace-compact-shell .workspace-standard-view .tariff-card{min-height:0;gap:10px}
.workspace-compact-shell .workspace-standard-view .tariff-top h3{margin:0}
.workspace-compact-shell .workspace-standard-view .tariff-card .clean-list{gap:6px;margin:4px 0 6px}
.workspace-compact-shell .workspace-standard-view .tariff-card .clean-list li{font-size:12px}
.workspace-compact-shell .workspace-standard-view .tariff-card .payment-note{margin:0}

/* Commercial proposal export controls, scoped to documents. */
.workspace-compact-shell .workspace-standard-view .documents-export-choice .document-kind-field{flex:1.3 1 245px}
.workspace-compact-shell .workspace-standard-view .documents-export-choice .document-format-field{flex:0 1 140px}
.workspace-compact-shell .documents-offer-help{margin:0 0 18px;line-height:1.5;max-width:900px}
.workspace-compact-shell .document-type-label{display:block;margin-top:4px;font-size:11px;color:var(--text-muted,#8fa1a8)}
