/* Job workspace presentation only. Existing controls and data bindings stay intact. */
html body #project-workspace{max-width:1440px;margin-inline:auto;--job-gap:24px}
html body #project-workspace .workspace-primary{background:transparent!important;border:0!important;border-bottom:1px solid var(--brand-line)!important;padding:0!important;gap:24px;margin:0 0 24px;overflow-x:auto}
html body #project-workspace .workspace-primary button{background:transparent!important;color:var(--brand-muted)!important;border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;padding:14px 2px!important;min-height:48px;box-shadow:none!important;white-space:nowrap}
html body #project-workspace .workspace-primary button.active{color:var(--brand-gold)!important;border-bottom-color:var(--brand-gold)!important}
html body #project-workspace #backToProjects{margin:0 0 20px;min-height:44px}
html body #project-workspace .project-hero-card{padding:28px!important;border-radius:18px!important;gap:28px;margin-bottom:24px;box-shadow:none!important}
html body #project-workspace .project-title-row{gap:16px;align-items:flex-start}
html body #project-workspace .project-title-row h1{font-size:clamp(24px,2.5vw,34px);line-height:1.25;letter-spacing:-.7px;max-width:28ch}
html body #project-workspace .workspace-status{padding:7px 12px;font-size:13px;line-height:1.3;flex-shrink:0}
html body #project-workspace .workspace-progress{margin-top:24px;max-width:640px}
html body #project-workspace .next-action{padding:20px;border-radius:12px;background:var(--brand-gold-soft)!important}
html body #project-workspace .next-action>span{font-size:11px;letter-spacing:.1em}
html body #project-workspace .next-action small{font-size:14px;line-height:1.55}
html body #project-workspace .workspace-overview-grid{grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr);gap:var(--job-gap);align-items:start}
html body #project-workspace :is(.workspace-main-column,.workspace-side-column){gap:var(--job-gap);min-width:0}
html body #project-workspace .workspace-card{padding:24px!important;border-radius:16px!important;box-shadow:none!important;min-width:0}
html body #project-workspace .card-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
html body #project-workspace .card-head h2{font-size:18px;line-height:1.3;letter-spacing:-.3px;margin:0}
html body #project-workspace .card-head button{min-height:40px;padding:8px 12px!important;white-space:nowrap;flex-shrink:0}
html body #project-workspace .project-info-grid{grid-template-columns:repeat(2,minmax(0,1fr));border:0!important;border-radius:0;gap:0 24px}
html body #project-workspace .project-info-grid>div{padding:16px 0;border:0!important;border-bottom:1px solid var(--brand-line)!important;min-width:0}
html body #project-workspace .project-info-grid>div:nth-last-child(-n+2){border-bottom:0!important}
html body #project-workspace .project-info-grid span{font-size:11px;letter-spacing:.08em;line-height:1.5}
html body #project-workspace .project-info-grid strong{font-size:15px;line-height:1.55;overflow-wrap:anywhere;margin-top:6px}
html body #project-workspace .project-info-grid small{display:block;font-size:12px;color:var(--brand-muted);font-weight:400;line-height:1.5;margin-top:6px}
html body #project-workspace .workspace-actions{display:grid;gap:0}
html body #project-workspace .workspace-actions button{display:grid!important;grid-template-columns:36px minmax(0,1fr) 14px!important;width:100%!important;min-height:76px!important;padding:14px 0!important;gap:12px!important;border:0!important;border-bottom:1px solid var(--brand-line)!important;border-radius:0!important;background:transparent!important;text-align:left!important;box-shadow:none!important}
html body #project-workspace .workspace-actions button:last-child{border-bottom:0!important}
html body #project-workspace .workspace-actions button>span{min-width:0}
html body #project-workspace .workspace-actions :is(strong,small){display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
html body #project-workspace .workspace-actions strong{font-size:14px;color:var(--brand-text)!important}
html body #project-workspace .workspace-actions small{font-size:12px;font-weight:400;margin-top:3px;color:var(--brand-muted)!important}
html body #project-workspace .workspace-actions i{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;font-style:normal;background:var(--brand-surface-soft)!important;color:var(--brand-gold)!important}
html body #project-workspace .money-line{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:6px 16px;padding:14px 0;align-items:start;font-size:14px;line-height:1.5}
html body #project-workspace .money-line>strong{text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html body #project-workspace .money-line>:nth-child(n+3){grid-column:1/-1;font-size:12px;color:var(--brand-muted)!important;font-weight:400;line-height:1.55}
html body #project-workspace .tool-links button{width:100%;min-height:48px;padding:13px 0!important;gap:12px;background:transparent!important;border:0!important;border-top:1px solid var(--brand-line)!important;border-radius:0!important;text-align:left;line-height:1.5}
html body #project-workspace .tool-links button:first-child{border-top:0!important}
html body #project-workspace button:focus-visible{outline:3px solid var(--brand-gold)!important;outline-offset:3px}
@media(hover:hover){html body #project-workspace :is(.workspace-actions,.tool-links) button:hover{background:var(--brand-surface-soft)!important}}
@media(max-width:1100px){html body #project-workspace .workspace-overview-grid{grid-template-columns:minmax(0,1fr)}html body #project-workspace .workspace-side-column{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){html body #project-workspace{--job-gap:16px}html body #project-workspace .workspace-primary{gap:20px}html body #project-workspace :is(.project-hero-card,.workspace-card){padding:20px!important}html body #project-workspace .workspace-side-column{grid-template-columns:minmax(0,1fr)}html body #project-workspace .project-title-row h1{font-size:26px}html body #project-workspace .project-info-grid{gap:0 16px}}
@media(max-width:360px){html body #project-workspace .project-info-grid{grid-template-columns:minmax(0,1fr)}html body #project-workspace .project-info-grid>div{border-bottom:1px solid var(--brand-line)!important}}

/* Keep each job destination distinct, including on narrow phone screens. */
html body #project-workspace .workspace-primary{flex-wrap:nowrap!important;gap:20px!important;overflow-x:auto;position:static;scrollbar-width:none}
html body #project-workspace .workspace-primary button{flex:0 0 auto!important;font-size:14px!important;padding:12px 2px!important}
html body #project-workspace[data-workspace-section]:not([data-workspace-section="overview"])>.project-hero-card{display:none!important}
html body #project-workspace .workspace-job-context{font-size:18px;font-weight:700;color:var(--brand-text);line-height:1.4;margin:0 0 20px;overflow-wrap:anywhere}
html body #project-workspace .workspace-job-context[hidden]{display:none!important}
html body #project-workspace .workspace-actions{gap:10px;margin:16px 0 24px}
@media(max-width:650px){html body #project-workspace .workspace-primary{gap:18px!important;margin-bottom:16px}html body #project-workspace .workspace-primary button{font-size:13px!important}html body #project-workspace .workspace-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}html body #project-workspace .workspace-actions button{min-width:0;width:100%;white-space:normal;padding:12px;font-size:14px}}
/* Plain section actions are not the icon/title/chevron rows used by Quick Access. */
html body #project-workspace .workspace-actions button[data-workspace-tool]{display:flex!important;grid-template-columns:none!important;align-items:center;justify-content:center;min-height:48px!important;padding:12px 14px!important;border:1px solid var(--brand-line)!important;border-radius:12px!important;background:var(--brand-surface)!important;color:var(--brand-text)!important;text-align:center!important;white-space:normal!important;word-break:normal;overflow-wrap:normal;font-size:14px!important;line-height:1.4!important}

/* Compact job hierarchy: one job header, section tabs, then content. */
html body #project-workspace .workspace-back{margin:0 0 10px}
html body #project-workspace #backToProjects{min-height:44px!important;margin:0!important;padding:8px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--brand-muted)!important;font-size:14px!important}
html body #project-workspace .workspace-job-context{margin:0 0 12px;font-size:20px;letter-spacing:-.3px}
html body #project-workspace :is(#profitabilityBackBtn,#projectSettingsBackBtn){display:none!important}
html body #project-workspace #project-tab-files>.phase20-heading{display:none!important}
html body #project-workspace #project-tab-files :is(.photos-toolbar,.docs-toolbar)>div:first-child{display:none!important}
html body #project-workspace #project-tab-files .workspace-secondary{margin:0 0 16px;gap:8px}
html body #project-workspace #project-tab-files .workspace-secondary button{font-size:14px;min-height:44px;padding:9px 16px;border-radius:10px}
html body #project-workspace .photos-toolbar{display:flex!important;justify-content:flex-end;align-items:center;gap:12px;margin:0 0 20px!important}
html body #project-workspace #addProjectPhoto{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto!important;width:auto!important;max-width:100%!important;min-width:180px!important;min-height:44px!important;padding:12px 18px!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;font-size:14px!important;line-height:1.4!important;border-radius:12px!important}
html body #project-workspace #cpProjectName{display:none}
@media(max-width:650px){body:has(#project-workspace.active) .topbar{height:52px!important;min-height:52px!important;padding-block:4px!important}html body #project-workspace .workspace-primary{margin:0 0 20px!important}html body #project-workspace .phase20-heading p{font-size:14px;line-height:1.5;margin:6px 0 14px}html body #project-workspace .photos-toolbar{justify-content:flex-start}}

html body #project-workspace .docs-toolbar{display:flex!important;justify-content:flex-end;gap:12px;margin-bottom:20px}html body #project-workspace #uploadDocumentBtn{width:auto!important;min-width:180px;white-space:normal!important;min-height:44px;padding:12px 18px!important;font-size:14px!important}

/* Readable subpage actions: never squeeze labels into icon-sized columns. */
html body #project-workspace :is(.change-head,.expense-screen-head){display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important}
html body #project-workspace :is(.change-head,.expense-screen-head)>div{flex:1 1 260px!important;min-width:0!important}
html body :is(#addChangeBtn,#addExpenseBtn,#dev293DocumentRefresh,#dev294FinanceRefresh){display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:auto!important;min-width:max-content!important;max-width:100%!important;min-height:44px!important;padding:12px 18px!important;font-size:15px!important;line-height:1.3!important;white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;border-radius:10px!important}
html body .dev293-page-head{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:16px!important}
html body .dev293-page-head>div{flex:1 1 250px!important;min-width:0!important}
html body :is(#changeBackBtn,#expenseBackBtn,#estimateContractBackBtn,#dev294FinanceBack,#dev293DocumentBack){display:inline-flex!important;align-items:center!important;gap:8px!important;min-height:44px!important;width:auto!important;max-width:100%!important;padding:10px 0!important;background:transparent!important;border:0!important;box-shadow:none!important;font-size:15px!important;line-height:1.4!important;word-break:normal!important}
@media(max-width:650px){html body #project-workspace :is(.change-head,.expense-screen-head){display:block!important}html body #project-workspace :is(#addChangeBtn,#addExpenseBtn){margin:0 0 20px!important}html body .dev293-page-head>div{flex-basis:65%!important}}
