.project-open{--background:#f2f3ef;--paper:#fff;--espresso:#103e33;--heading:#182b26;--body:#64706a;--accent:#7d896b;--border:#e0e5df;background:var(--background);color:var(--body)}
.project-open>.company-header,.project-open>footer{display:none}.project-open main{display:block;padding:0;margin:0;max-width:none;width:100%}.customer-project{width:100%;max-width:none;min-height:100dvh;align-self:auto}.portal-workspace{margin-left:238px;padding:26px 30px 40px;max-width:1760px}.project-body{gap:22px}.portal-sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#09291f;color:#e5eeE8;padding:28px 18px 20px;display:flex;flex-direction:column;z-index:20;overflow-y:auto}.portal-brand{display:flex;align-items:center;gap:12px;color:inherit;min-height:58px}.portal-brand>span{font:46px Georgia,serif;line-height:1}.portal-brand small{font-size:9px;line-height:1.7;letter-spacing:0}.portal-sidebar nav{display:grid;gap:3px;margin-top:25px}.customer-project .portal-sidebar button{display:flex;align-items:center;gap:12px;border:0;background:none;color:#e9eeeb;text-align:left;padding:10px 12px;min-height:44px;font-size:12px;width:100%}.portal-sidebar button svg{width:18px;height:18px}.customer-project .portal-sidebar button:hover{background:#ffffff0d}.customer-project .portal-sidebar button[aria-current=page]{background:#40513b;color:#fff}.portal-profile{margin-top:auto;border-top:1px solid #ffffff24;padding:24px 0 14px;display:flex;align-items:center;gap:10px}.portal-avatar{width:35px;height:35px;border-radius:50%;background:#d5dfd2;color:#163b30;display:grid;place-items:center;font-family:Georgia,serif;flex-shrink:0}.portal-profile strong{display:block;font-size:12px;font-weight:500;overflow-wrap:anywhere}.portal-profile small{display:block;font-size:10px;margin-top:6px;color:#a9bdb3}.portal-page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.portal-page-header p{font-size:10px;margin:0 0 7px}.portal-page-header h1{font:600 24px 'Segoe UI',Arial,sans-serif;margin:0}.portal-page-header>button{width:44px;padding:10px}.project-status:empty{display:none}.project-status{margin:0 0 14px;padding:10px;background:#e7eee8;border-radius:4px}.portal-mobile-header,.portal-bottom-nav,.portal-mobile-actions,.portal-scrim,.customer-project .portal-mobile-close{display:none}.portal-hero{position:relative;isolation:isolate;min-height:195px;padding:32px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:#123e32;color:white;overflow:hidden;border-radius:8px 8px 0 0;margin-bottom:-22px}.portal-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.portal-hero.has-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#082b26ed,#082b2690 60%,#082b2640);z-index:-1}.portal-hero h1{font:600 34px 'Segoe UI',Arial,sans-serif;color:#fff;margin:8px 0}.portal-hero p{font-size:13px;margin:7px 0;line-height:1.6}.portal-project-label{background:#fffffff0;color:#23392e;padding:18px 22px;min-width:200px;max-width:300px;border-radius:8px;display:grid;gap:8px}.portal-project-label small,.portal-project-label span{font-size:11px}.portal-project-label strong{font-size:15px}.portal-overview{background:#fff;padding:26px 20px 20px;border-radius:0 0 8px 8px}.portal-steps{display:flex;list-style:none;margin:0 0 28px;padding:0;overflow-x:auto}.portal-steps li{flex:1;min-width:100px;text-align:center;position:relative;font-size:11px;padding:0 8px}.portal-steps li:before{content:'';position:absolute;top:12px;left:-50%;width:100%;height:2px;background:#dce1da}.portal-steps li:first-child:before{display:none}.portal-steps li>span{display:grid;place-items:center;width:25px;height:25px;margin:0 auto 10px;background:#dce1da;color:white;border-radius:50%;position:relative;border:3px solid white;box-sizing:content-box;top:-3px}.portal-steps svg{width:14px;height:14px}.portal-steps li.done>span{background:#14654d}.portal-steps li.done:before{background:#14654d}.portal-steps li.current>span{background:#087a81;box-shadow:0 0 0 1px #087a81}.portal-steps strong{display:block;font-weight:600;color:#263e34;line-height:1.5}.portal-steps small{display:block;font-size:10px;line-height:1.5;margin-top:4px}.portal-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.portal-kpis article{background:#f4f5f1;border:1px solid #e9ece5;border-radius:6px;padding:16px;min-width:0;display:flex;flex-direction:column;align-items:flex-start}.portal-kpi-title{display:flex;align-items:center;gap:9px;font-size:11px;color:#213c30;margin-bottom:15px}.portal-kpi-title svg{width:26px;height:26px;padding:5px;border-radius:5px;background:#f5e8cb;color:#976019}.portal-kpis article:nth-child(2) svg{background:#e0edf1;color:#267287}.portal-kpis article:nth-child(3) svg{background:#e0efe0;color:#267240}.portal-kpis article:nth-child(4) svg{background:#eee5f5;color:#7954a0}.portal-kpis h3{font-size:19px;line-height:1.4;margin:0;color:#182d25;overflow-wrap:anywhere}.portal-kpis article:first-child h3{font-size:14px}.portal-kpis p{font-size:11px;line-height:1.7;margin:7px 0 12px}.customer-project .portal-kpis button{padding:0;min-height:32px;border:0;background:none;text-decoration:underline;text-underline-offset:3px;margin-top:auto;font-size:11px;display:flex;align-items:center;gap:8px;text-align:left}.portal-kpis progress{width:100%;height:7px;accent-color:#137b7f;margin:0 0 8px}.portal-home-grid{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(220px,1fr);gap:18px}.portal-updates,.portal-quick{background:white;border-radius:8px;padding:20px;min-width:0}.portal-updates>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.portal-updates h2,.portal-quick h2{font-size:17px;color:#182d25;margin:0 0 15px}.portal-updates>header h2{margin:0}.customer-project .portal-updates>header button{border:0;background:none;padding:0;text-decoration:underline;font-size:11px;min-height:32px}.portal-update-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.portal-update-grid article{min-width:0}.portal-update-grid h3{font-size:13px;color:#1b3027;margin:12px 0 6px}.portal-update-grid small{font-size:10px}.portal-update-grid p{font-size:11px;line-height:1.7;overflow-wrap:anywhere}.customer-project .portal-photo{width:100%;aspect-ratio:1.6;padding:0;overflow:hidden;border:0;border-radius:5px;background:#eef1eb;display:block}.portal-photo img{width:100%;height:100%;object-fit:cover}.portal-update-symbol{height:90px;display:grid;place-items:center;background:#edf2eb;border-radius:5px;color:#56816a}.portal-update-symbol svg{width:32px;height:32px}.customer-project .portal-update-grid article>button:last-child{border:0;background:none;padding:0;display:flex;align-items:center;gap:8px;font-size:11px}.customer-project .portal-quick>button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;margin-bottom:9px;padding:10px;border-color:#e9ece6;font-size:11px;background:#fafbf8}.portal-quick button>span{flex:1}.portal-quick button>svg:first-child{color:#22756a}.portal-quick button>svg:last-child{width:13px}.portal-empty{grid-column:1/-1;font-size:13px;line-height:1.8}.project-section{background:transparent;border-top:0;border-bottom:1px solid var(--border);padding:10px 0 24px}.project-section h2{font:600 23px 'Segoe UI',Arial,sans-serif}.project-section>header{margin-bottom:18px}.project-version,.project-update,.project-message{background:white;padding:22px;border:1px solid var(--border);border-radius:6px;margin-bottom:12px}.project-version details{background:transparent}.project-options button{background:#f7f9f5}.project-dialog{--paper:white;--heading:#182b26;--espresso:#103e33;--border:#dfe6df;color:#243e32}.project-dialog h2{font-family:'Segoe UI',Arial,sans-serif;font-size:20px;font-weight:600}.project-dialog::backdrop{background:#05251dcc}.portal-image-preview{width:100%;max-height:65dvh;object-fit:contain}.project-dialog :focus-visible,.customer-project :focus-visible{outline:3px solid #32918f;outline-offset:3px}.portal-menu-open{overflow:hidden}
.customer-project .portal-sidebar .portal-mobile-close{display:none}
.project-body{grid-template-columns:minmax(0,1fr)}.project-body>*{min-width:0}.portal-overview{max-width:100%}
.project-dialog[open]{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;height:fit-content;max-height:calc(100dvh - 24px)}
@media(max-width:768px){.customer-project .portal-sidebar .portal-mobile-close{display:grid}.portal-overview .portal-steps li{min-width:0;flex-basis:0;overflow-wrap:anywhere;font-size:8px}.portal-overview .portal-steps{overflow:visible}}
@media(max-width:768px){.portal-steps strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px}.portal-steps li{overflow-wrap:normal}}
@media(min-width:1600px){.portal-workspace{padding:32px 45px}.portal-hero{min-height:230px}}
@media(min-width:769px) and (max-width:1150px){.portal-sidebar{width:200px;padding:20px 12px}.portal-workspace{margin-left:200px;padding:22px}.portal-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-home-grid{grid-template-columns:1fr}.portal-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.portal-quick h2{grid-column:1/-1}.portal-project-label{display:none}}
@media(max-width:768px){.portal-workspace{margin:0;padding:0 16px calc(90px + env(safe-area-inset-bottom));max-width:100%;overflow:clip}.portal-mobile-header{display:flex;align-items:center;justify-content:space-between;background:#0c3025;color:white;padding:16px;margin:0 -16px}.portal-mobile-header .portal-brand{min-height:38px}.portal-brand>span{font-size:33px}.portal-brand small{font-size:8px}.customer-project .portal-mobile-header>button{background:transparent;color:white;border-color:#ffffff30;width:44px;padding:10px}.portal-page-header{display:none}.project-status{margin-top:12px}.project-body{gap:16px}.portal-hero{min-height:180px;margin:0 -16px -16px;padding:28px 20px;border-radius:0;align-items:flex-start;flex-direction:column;justify-content:center;gap:6px}.portal-hero h1{font-size:27px}.portal-hero p{font-size:12px}.portal-hero .portal-project-label{background:transparent;color:white;padding:0;gap:4px}.portal-project-label strong{font-size:13px}.portal-project-label span{display:none}.portal-overview{padding:20px 12px 12px;margin:0 -4px;border-radius:8px}.portal-steps{margin-bottom:14px;gap:0}.portal-steps li{min-width:70px;padding:0 3px;font-size:9px}.portal-steps small{display:none}.portal-steps li>span{width:20px;height:20px}.portal-kpis{grid-template-columns:1fr;gap:0}.portal-kpis article{display:none}.portal-kpis article:first-child{display:flex;padding:15px}.portal-kpi-title{margin-bottom:7px}.portal-kpis article:first-child h3{font-size:14px}.portal-kpis article:first-child p{font-size:12px}.portal-kpis article:first-child button{min-height:44px}.portal-home-grid{grid-template-columns:1fr}.portal-quick{display:none}.portal-updates{padding:18px 12px;order:2}.portal-update-grid{grid-template-columns:1fr}.portal-update-grid article{display:grid;grid-template-columns:90px minmax(0,1fr);column-gap:12px;border-bottom:1px solid var(--border);padding:10px 0}.portal-update-grid .portal-photo,.portal-update-symbol{grid-row:1/5;height:84px;aspect-ratio:auto}.portal-update-grid h3{margin:0 0 5px}.portal-update-grid p{margin:5px 0}.portal-update-grid article>button:last-child{grid-column:2}.portal-mobile-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;grid-row:3}.customer-project .portal-mobile-actions button{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:86px;font-size:10px;padding:12px 4px;gap:9px;background:#fff;border-color:#e0e5df}.portal-mobile-actions svg{width:23px;height:23px}.portal-bottom-nav{position:fixed;inset:auto 0 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));z-index:15;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#fffffff7;border-top:1px solid #dde4dc}.customer-project .portal-bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:6px 1px;border:0;background:none;font-size:9px;color:#6e7d73;min-height:48px}.portal-bottom-nav button svg{width:20px;height:20px}.customer-project .portal-bottom-nav button[aria-current=page]{color:#0c4b38;background:#e9f0e8}.portal-sidebar{transform:translateX(-100%);transition:transform .2s;width:min(300px,88vw);padding:20px 16px}.portal-sidebar nav{margin-top:12px}.customer-project .portal-mobile-close{display:grid;place-items:center;width:44px;margin-left:auto;padding:0}.portal-menu-open .portal-sidebar{transform:translateX(0)}.portal-menu-open .portal-scrim{display:block;position:fixed;inset:0;z-index:19;background:#001d17a6}.project-section{padding-top:20px}.project-section h2{font-size:21px}.project-version,.project-update,.project-message{padding:16px}.project-section p{font-size:13px}.project-financials{grid-template-columns:repeat(2,minmax(0,1fr))}.project-dialog{max-height:calc(100dvh - 24px)}.portal-workspace>.project-body>.project-actions{padding-top:20px}}
@media(prefers-reduced-motion:reduce){.portal-sidebar{transition:none}}
/* The customer workspace shares the welcome page's warm finish palette. */
:root{--background:#f7f3ed;--paper:#fffdf9;--espresso:#654a38;--heading:#493a2f;--body:#796a5c;--accent:#a18363;--border:#e5d9cb}
.company-header{background:#5a4435;color:#fff7ed;justify-content:center;gap:18px;min-height:112px}.company-header img{width:74px;height:68px;object-fit:contain}.company-header .company-name{color:#fff7ed;white-space:nowrap;font:26px Georgia,serif}.welcome{background:#fffdf9}.welcome-project-actions{flex-direction:column;margin-top:13px}.welcome #viewEstimate,.welcome .portal-entry{width:250px;max-width:100%;min-height:51px}.portal-entry{border:1px solid #8a6b50;background:#f7f0e6;color:#5a4435;font-size:14px;font-weight:600}.portal-entry:hover{background:#eee1cf}
.project-open{--background:#f7f3ed;--paper:#fffdf9;--espresso:#654a38;--heading:#493a2f;--body:#796a5c;--accent:#a18363;--border:#e5d9cb;background:#f7f3ed}.portal-sidebar{background:#49382c;color:#fff7ed}.portal-brand{gap:9px}.portal-brand img{width:40px;height:40px;object-fit:contain;background:#fffdf9;padding:3px;border-radius:4px;flex:none}.portal-brand strong{font:13px Georgia,serif;white-space:nowrap;color:#fff7ed}.customer-project .portal-sidebar button{color:#f6ede3}.customer-project .portal-sidebar button[aria-current=page]{background:#806448}.portal-avatar{background:#d9c6ac;color:#594331}.portal-profile small{color:#d2bfa9}.portal-company-header{display:flex;justify-content:space-between;align-items:center;background:#5a4435;color:#fff7ed;margin:-26px -30px 24px;padding:16px 30px;min-height:90px}.portal-company-header .portal-brand img{width:58px;height:55px}.portal-company-header .portal-brand strong{font-size:25px}.portal-company-header>[data-project-menu]{display:none}.portal-page-header{gap:12px}.portal-page-header>div{flex:1}.portal-page-header h1{color:#493a2f}.portal-workspace[data-current-screen=project]>.portal-page-header{display:none}.portal-hero{background:#e9ddce;color:#5d4b3b;min-height:180px;border:1px solid #e0d0bb;border-bottom:0}.portal-hero h1{color:#49382b;font-family:Georgia,serif;font-weight:400;font-size:36px}.portal-hero.has-photo:after{background:#f0e4d5dc}.portal-project-label{background:#fffaf1e8;color:#5d4937;border:1px solid #dfcdb5}.portal-overview,.portal-updates,.portal-quick{background:#fffdf9}.portal-kpis article{background:#f4ede4;border-color:#e8ddce}.portal-kpis h3,.portal-kpi-title,.portal-updates h2,.portal-quick h2,.portal-update-grid h3{color:#4b392b}.portal-kpi-title svg,.portal-kpis article:nth-child(2) svg,.portal-kpis article:nth-child(3) svg,.portal-kpis article:nth-child(4) svg{background:#e8d9c0;color:#81613b}.portal-kpis progress{accent-color:#92704b}.portal-steps li:before{background:#dfd3c3}.portal-steps li>span{background:#d7c9b8;border-color:#fffdf9}.portal-steps li.done>span,.portal-steps li.done:before{background:#836542}.portal-steps li.current>span{background:#ac8457;box-shadow:0 0 0 1px #ac8457}.portal-steps strong{color:#5d4937}.customer-project .portal-quick>button{background:#fcf8f1;border-color:#e9dece}.portal-quick button>svg:first-child{color:#957347}.portal-update-symbol{background:#eee2d3;color:#947047}.project-version,.project-update,.project-message{background:#fffdf9;border-color:#e5d9cb}.project-options button{background:#f5eee4}.project-response{color:#80613e}.project-dialog{--paper:#fffdf9;--heading:#493a2f;--espresso:#654a38;--border:#e5d9cb;color:#493a2f}.project-dialog::backdrop{background:#35291fcc}.project-dialog :focus-visible,.customer-project :focus-visible{outline-color:#aa835a}.project-status{background:#efe3d2}.portal-bottom-nav{background:#fffcf6f7;border-color:#e5d9cb}.customer-project .portal-bottom-nav button{color:#8b7765}.customer-project .portal-bottom-nav button[aria-current=page]{background:#eee0cc;color:#6b4e36}.customer-project .portal-mobile-actions button{background:#fffdf9;border-color:#e6d9c8;color:#6a503d}.portal-menu-open .portal-scrim{background:#32251bc2}
.conversation-channels{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0 0 18px;border-bottom:1px solid var(--border);font-size:12px}.conversation-channel{color:#694d35;font-weight:600;display:inline-flex;gap:8px;align-items:center}.conversation-channel:before{content:'';width:7px;height:7px;border-radius:50%;background:#a68251}.conversation-channels a{display:inline-flex;align-items:center;gap:7px;color:#795b41;margin-left:auto;min-height:44px}.conversation-offline{color:#8f8173;font-size:11px}.conversation-thread{display:flex;flex-direction:column;gap:14px;padding:24px 0;min-height:180px}.conversation-empty{padding:25px 15px;text-align:center;align-self:center}.conversation-empty>svg{width:35px;height:35px;color:#a98a66}.conversation-empty h3{margin-top:16px}.conversation-thread .project-message{max-width:85%;margin:0;border-left:1px solid var(--border);border-radius:8px;padding:16px 20px}.conversation-thread .project-message.customer{background:#785a43;color:#fff9ef;align-self:flex-end;border-color:#785a43}.conversation-thread .project-message.customer small{color:#f1dfc9}.conversation-thread .project-message.staff{align-self:flex-start;background:#f0e5d7;border-color:#e2d0b8}.conversation-composer{background:#fffdf9;border:1px solid var(--border);border-radius:8px;padding:18px;display:grid;gap:12px}.conversation-composer>label{font-size:13px;font-weight:600}.conversation-composer textarea{width:100%;min-width:0;resize:vertical;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--heading);font:15px/1.7 'Segoe UI',Arial,sans-serif;min-height:110px;padding:5px 0 14px}.conversation-composer-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}.conversation-composer-actions>button{display:flex;gap:9px;align-items:center}.conversation-attachment{display:grid;grid-template-columns:18px minmax(0,1fr);gap:7px;font-size:12px;max-width:240px;min-width:0}.conversation-attachment input{grid-column:1/-1;width:100%;min-height:35px;font-size:11px}.conversation-composer [role=alert]:empty{display:none}
@media(min-width:1600px){.portal-company-header{margin:-32px -45px 24px;padding-left:45px;padding-right:45px}}
@media(min-width:769px) and (max-width:1150px){.portal-company-header{margin:-22px -22px 22px;padding:16px 22px}}
@media(max-width:768px){.company-header{min-height:88px;padding:14px 16px;gap:12px}.company-header img{width:54px;height:50px}.company-header .company-name{font-size:22px}.portal-company-header{margin:0 -16px 18px;padding:14px 16px;min-height:86px;gap:10px}.portal-company-header .portal-brand{gap:10px;min-height:0}.portal-company-header .portal-brand img{width:44px;height:44px}.portal-company-header .portal-brand strong{font-size:20px}.customer-project .portal-company-header>[data-project-menu]{display:grid;place-items:center;flex:none;background:#ffffff0a;color:#fff8ef;border-color:#ffffff35;width:44px;padding:9px}.portal-page-header{display:flex;margin:0 0 18px}.portal-page-header h1{font-size:19px}.portal-page-header p{display:none}.portal-page-header>button{padding:8px;width:40px}.portal-hero{margin:0 0 -16px;padding:25px 20px;min-height:185px;border-radius:8px 8px 0 0;gap:10px}.portal-hero h1{font-size:29px;line-height:1.3}.portal-hero p{font-size:12px}.portal-hero .portal-project-label{color:#796047;border:0}.portal-overview{margin:0}.portal-sidebar .portal-brand strong{font-size:14px}.conversation-thread .project-message{max-width:94%;padding:14px}.conversation-composer{padding:14px}.conversation-channels{gap:8px}.conversation-channels a{font-size:12px}.conversation-composer-actions{gap:10px}.conversation-attachment{max-width:100%}}
@media(max-width:360px){.company-header .company-name{font-size:19px}.company-header img{width:45px;height:44px}.portal-company-header{padding:12px;gap:8px}.portal-company-header .portal-brand{gap:8px}.portal-company-header .portal-brand img{width:38px;height:40px}.portal-company-header .portal-brand strong{font-size:17px}.customer-project .portal-company-header>[data-project-menu]{width:40px;min-height:40px}.portal-hero{padding:22px 16px}}
.project-dialog video{display:block;width:100%;max-height:65dvh;background:#17130f;aspect-ratio:16/9}
.portal-brand img,.company-header img{background:transparent;padding:0;border-radius:0}
.portal-hero .portal-welcome{margin:8px 0 12px;font-family:Georgia,serif;font-size:24px;font-weight:400;line-height:1.4;color:#5d4b3b}
.portal-hero>div{min-width:0}.portal-hero h1,.portal-hero .portal-welcome{overflow-wrap:anywhere}
.portal-approved-next{background:#f4eee6;border-radius:18px;padding:28px;color:#49382c;min-width:0}
.portal-approved-label{display:flex;align-items:center;gap:12px;margin-bottom:22px;color:#594536}
.portal-approved-label>svg{width:40px;height:40px;padding:10px;background:#e7d8c1;border-radius:10px;color:#765638;flex:none}
.portal-approved-label h2{font-size:16px;margin:0;font-weight:600}
.portal-approved-next>h3{font-size:24px;line-height:1.3;margin:0 0 16px;color:#49382c}
.portal-approved-next p{font-size:15px;line-height:1.7;margin:0 0 16px;color:#6f5e50;overflow-wrap:anywhere}
.portal-approved-message{margin-top:24px;padding:22px;background:#fff;border:1px solid #e5d9cb;border-radius:14px}
.portal-approved-message>svg{width:24px;height:24px;color:#765638;margin-bottom:12px}
.portal-approved-message h4{font-size:17px;line-height:1.4;color:#49382c;margin:0 0 12px}
.customer-project .portal-approved-message>button{width:100%;min-height:48px;background:#573c2b;border-color:#573c2b;color:#fff7ed;border-radius:6px;font-size:15px}
.customer-project .portal-approved-message>button:hover{background:#684b37}
.customer-project .portal-approved-message>button:active{background:#463020}
.customer-project .portal-approved-estimate{display:flex;align-items:center;justify-content:center;gap:10px;max-width:100%;min-height:48px;margin:18px auto 0;padding:8px;background:transparent;border:0;color:#765638;font-size:14px;text-decoration:underline;text-underline-offset:4px}
.portal-approved-estimate svg{width:19px;height:19px;flex:none}
.portal-message-sent{background:#f4eee6;border:1px solid #e5d9cb;border-radius:12px;padding:24px;color:#49382c;min-width:0}
.portal-message-sent h2{font-size:22px;line-height:1.35;margin:0 0 14px;color:#49382c}
.portal-message-sent p{font-size:15px;line-height:1.7;color:#6f5e50;margin:0 0 14px}
.portal-message-sent small{display:block;margin-top:10px;color:#6f5e50}
.portal-message-sent a.primary{background:#573c2b;color:#fff7ed;text-decoration:none;min-height:46px}
.portal-message-sent .text-button{margin:14px 0 0}
#pdfViewer .viewer-actions #approveViewerEstimate{background:#1264bd;border-color:#1264bd;color:#fff}
#pdfViewer .viewer-actions #approveViewerEstimate:hover:not(:disabled){background:#0d509b;border-color:#0d509b}
#pdfViewer .viewer-actions #approveViewerEstimate:active:not(:disabled){background:#093f7d;border-color:#093f7d}
@media(max-width:600px){#pdfViewer .viewer-header{flex-wrap:wrap}#pdfViewer .viewer-header h2{width:100%;font-size:16px}#pdfViewer .viewer-actions{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:6px}#pdfViewer .viewer-actions button{font-size:12px;min-width:0;min-height:44px;padding:8px 5px;white-space:normal}#pdfViewer .viewer-actions #closeViewer{grid-column:3}#pdfViewer .viewer-actions #downloadPdf{grid-column:1}#pdfViewer .viewer-actions #approveViewerEstimate{grid-column:2}.portal-message-sent{padding:20px}.portal-message-sent h2{font-size:20px}}
@media(max-width:768px){.portal-approved-next{padding:20px}.portal-approved-message{padding:18px}.portal-approved-next>h3{font-size:22px}}
.portal-simple-overview .portal-kpis{grid-template-columns:1fr}
.portal-simple-overview .portal-kpis article{padding:20px}
.portal-simple-overview .portal-kpis article>button{display:inline-flex;align-items:center;gap:8px;text-decoration:underline;text-underline-offset:4px;align-self:flex-start}
@media(max-width:768px){.portal-hero .portal-welcome{font-size:20px}.portal-bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))}.portal-mobile-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
.company-header,.portal-company-header{background:#ead2bf;color:#60432f;border-bottom:1px solid #d9bfa8}
.company-header img,.portal-company-header .portal-brand img{filter:none;background:transparent;padding:0;object-fit:contain;border-radius:10px}
.company-header .company-name,.portal-company-header .portal-brand strong{font:400 26px/1.25 "Segoe UI",Arial,sans-serif;color:#60432f;white-space:nowrap}
.company-name strong,.portal-company-header .portal-brand b{font-weight:700}
.company-header{gap:14px}.company-header img{width:76px;height:76px}
.portal-company-header .portal-brand img{width:64px;height:64px}
.customer-project .portal-company-header>[data-project-menu]{color:#60432f;border-color:#60432f55;background:transparent}
body:not(.project-open) .welcome{background:transparent;border:0;box-shadow:none;padding:32px 24px}
body:not(.project-open) .welcome .eyebrow{font-size:10px;letter-spacing:1px}
body:not(.project-open) .welcome .introduction{margin-bottom:26px}
@media(max-width:768px){.company-header .company-name,.portal-company-header .portal-brand strong{font-size:16px}.company-header img,.portal-company-header .portal-brand img{width:48px;height:46px}.company-header,.portal-company-header{gap:8px}.portal-company-header .portal-brand{gap:8px}.company-header{min-height:86px}}
@media(max-width:360px){.company-header .company-name,.portal-company-header .portal-brand strong{font-size:14px}.company-header img,.portal-company-header .portal-brand img{width:42px;height:42px}.company-header{padding-left:12px;padding-right:12px}}
.company-header,.portal-company-header{background:#36393b;border-color:#484b4d;color:#f5f0e9}
.company-header .company-name,.portal-company-header .portal-brand strong{color:#f5f0e9}
.company-header img,.portal-company-header .portal-brand img{filter:none}
.customer-project .portal-company-header>[data-project-menu]{color:#f5f0e9;border-color:#f5f0e944}
.customer-project .portal-kpis .portal-approval-button{background:#36393b;color:#fff;border:1px solid #36393b;border-radius:6px;padding:10px 14px;min-height:44px;text-decoration:none;margin:0 0 10px;font-size:13px;font-weight:600}
.company-header,.portal-company-header{background:#745943;border-color:#634936;color:#fff7ed}
.customer-project .portal-kpis .portal-approval-button{background:#573c2b;border-color:#573c2b;color:#fff7ed}
.portal-sidebar .portal-brand{display:grid;grid-template-columns:40px minmax(0,1fr);gap:9px}
.portal-sidebar .portal-brand img{filter:none;background:transparent;padding:0;border-radius:8px}
.portal-sidebar .portal-brand strong{font:400 14px/1.4 "Segoe UI",Arial,sans-serif;white-space:normal;color:#fff7ed;overflow-wrap:anywhere}
.portal-sidebar .portal-brand b{font-weight:700}
.estimate-approval-dialog{background:#fff;color:#5d493b;border:1px solid #e3d9ce;border-radius:12px;width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}
.estimate-approval-dialog>header{background:#fff;padding:18px 22px;border-bottom:1px solid #e8e0d7}
.estimate-approval-dialog>header h2{font:650 21px/1.35 "Segoe UI",Arial,sans-serif;color:#4e3728}
.estimate-approval-dialog .project-form{padding:22px;gap:17px}
.estimate-approval-total{display:grid;gap:7px;padding-bottom:6px}
.estimate-approval-total span{font-size:13px;color:#806e60}
.estimate-approval-total strong{font:750 34px/1.2 "Segoe UI",Arial,sans-serif;color:#4e3728}
.estimate-approval-dialog .primary{background:#573c2b;border-color:#573c2b;color:#fff7ed;width:100%;min-height:48px}
.estimate-approval-dialog .estimate-approval-footer{text-align:center;font-size:11px;line-height:1.6;color:#8b7c70}
.estimate-approval-dialog .project-form-error:empty{display:none}
.estimate-approval-success>header{border:0;padding-bottom:0}
.estimate-approval-confirmation{padding:8px 24px 28px;text-align:center}
.estimate-approval-success-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 18px;border-radius:50%;color:#237b4c;background:#e8f4ec;border:1px solid #b5d7c1}
.estimate-approval-success-icon svg{width:30px;height:30px}
.estimate-approval-confirmation h2{font:700 24px/1.3 "Segoe UI",Arial,sans-serif;color:#4e3728;margin:0 0 16px}
.estimate-approval-confirmation p{font-size:14px;line-height:1.8;margin:0 0 22px}
#pdfViewer .viewer-back-mobile{display:none}
#pdfViewer .pdf-scroll{background:#f1f2f3}
#pdfViewer .pdf-page figcaption{left:auto;right:8px;bottom:5px;background:#ffffffdb;padding:2px 4px;border-radius:2px}
@media(max-width:600px){
  #pdfViewer{width:100%;height:100dvh;margin:0;border:0;border-radius:0}
  #pdfViewer .viewer-header{display:flex;flex-wrap:nowrap;gap:6px;padding:calc(6px + env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) 6px max(8px,env(safe-area-inset-left));min-height:56px}
  #pdfViewer .viewer-header h2{order:0;flex:1;width:auto;min-width:0;font-size:14px;line-height:1.3}
  #pdfViewer .viewer-actions{display:contents;width:auto}
  #pdfViewer .viewer-actions #closeViewer{order:-1;width:40px;min-width:40px;height:40px;min-height:40px;padding:8px;border:0}
  #pdfViewer .viewer-close-desktop{display:none}#pdfViewer .viewer-back-mobile{display:block}
  #pdfViewer .viewer-actions #downloadPdf{order:1;width:40px;min-width:40px;height:40px;min-height:40px;padding:8px;border:0}
  #pdfViewer #downloadPdf span{display:none}
  #pdfViewer .viewer-actions #approveViewerEstimate{order:2;flex:none;width:auto;min-width:0;min-height:40px;padding:8px;font-size:11px;white-space:nowrap}
  #pdfViewer .zoom-bar{justify-content:flex-start;gap:4px;padding:3px 8px;min-height:42px;background:#fafafa}
  #pdfViewer .zoom-bar button{width:36px;min-width:36px;min-height:36px;height:36px;padding:7px;border-color:transparent;background:transparent}
  #pdfViewer .zoom-bar output{font-size:11px;min-width:54px}#pdfViewer #pageCount{margin-left:auto}
  #pdfViewer .pdf-scroll{padding:0 0 env(safe-area-inset-bottom);scrollbar-width:thin}
  #pdfViewer .pdf-pages{gap:8px}#pdfViewer .pdf-page{box-shadow:none}
}
@media(max-width:768px){.portal-sidebar .portal-brand{grid-template-columns:40px minmax(0,1fr) 36px}.customer-project .portal-sidebar .portal-mobile-close{width:36px;min-width:36px}.estimate-approval-dialog>header{padding:14px 16px}.estimate-approval-dialog>header h2{font-size:19px}.estimate-approval-dialog .project-form{padding:18px;gap:15px}}
.portal-website-footer{display:flex;flex-direction:column;align-items:center;gap:12px;padding:24px 16px;flex-shrink:0}
.portal-website-footer>span{display:flex;align-items:center;justify-content:center;gap:8px}
.portal-website-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;border:1px solid #6b503c;border-radius:6px;background:#6b503c;color:#fff;font:600 13px/1.5 'Segoe UI',Arial,sans-serif;text-decoration:none;text-align:center}
.portal-website-button:hover{background:#533c2b;border-color:#533c2b}
.portal-website-button:focus-visible{outline:3px solid #316aab;outline-offset:3px}
.portal-viewer-footer{padding:8px 16px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--border);background:#fff}
.portal-viewer-footer .portal-website-button{min-height:44px;padding:8px 20px}
