/* One responsive presentation, shared production handlers and records. */
.s84-experience{--s84-ink:#203a32;--s84-green:#165e4c;--s84-line:#dce5df;--s84-muted:#62736b;background:#f5f5ef;color:var(--s84-ink);font-family:Tahoma,Arial,sans-serif;line-height:1.7}
.s84-experience *{box-sizing:border-box}
.s84-experience [hidden]{display:none!important}
.s84-experience .app-shell{max-width:1600px;margin:auto;display:grid;grid-template-columns:224px minmax(0,1fr)}
.s84-experience .content{min-width:0;padding:24px 30px}
.s84-experience .sidebar{min-width:0;background:#fff;border-inline-end:1px solid var(--s84-line);padding:20px 12px}
.s84-experience .sidebar button,.s84-experience .sidebar>a{font:inherit;font-size:14px;text-align:start;border:0;border-radius:9px;padding:11px 12px;min-height:44px;width:100%;display:block;background:transparent;color:var(--s84-ink)}
.s84-experience .sidebar button.active{background:#e8f1eb;color:var(--s84-green);font-weight:700}
.s84-experience .sidebar .s84-record-link{margin:12px 0;border:1px solid var(--s84-line)}
.s84-experience .topbar{background:#133e32;color:#fff;gap:12px;flex-wrap:wrap}
.s84-experience .userbox{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.s84-experience .userbox>small:last-of-type{display:none}
.s84-scope{display:flex;align-items:center;gap:20px;margin:0 0 22px;padding:16px 20px;background:#fff;border:1px solid var(--s84-line);border-radius:14px}
.s84-scope>div:first-child{display:flex;flex-direction:column;min-width:130px}
.s84-scope small{font-size:11px;color:var(--s84-muted)}
.s84-scope strong{font-size:17px}
.s84-scope .project-select{flex:1;min-width:0;max-width:460px;margin-inline-start:auto}
.s84-scope label{font-size:12px;color:var(--s84-muted)}
.s84-scope select{width:100%;max-width:100%;min-height:44px;background:#f8faf7;border:1px solid #bdcfc2;border-radius:9px;padding:9px 12px;font:inherit;color:var(--s84-ink)}
.s84-heading{padding:24px 28px;border-radius:18px;background:linear-gradient(105deg,#edf2e9,#fffdf8);border:1px solid #e1e6da;margin-bottom:18px}
.s84-heading h1{font-size:clamp(23px,2.5vw,34px);font-weight:700;line-height:1.6;margin:5px 0 12px;max-width:780px}
.s84-eyebrow{font-size:12px;color:#577048}
.s84-summary{font-size:15px;max-width:840px;margin:0;color:#51665b}
.s84-workspace>h2{font-size:18px;margin:22px 0 12px}
.s84-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.s84-metric{display:flex;flex-direction:column;align-items:flex-start;gap:2px;background:#fff;border:1px solid var(--s84-line);border-radius:12px;padding:16px 20px;text-align:start;font:inherit;cursor:pointer;color:var(--s84-ink)}
.s84-metric strong{font-size:27px;line-height:1.2;font-weight:500;font-variant-numeric:tabular-nums}
.s84-metric span{font-size:12px;color:var(--s84-muted)}
.s84-next{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.s84-next-item{border:1px solid #c7d9ca;border-inline-start:3px solid #66815a;background:#fff;border-radius:12px;padding:18px;display:flex;gap:12px;align-items:center;justify-content:space-between}
.s84-next-item:first-child{grid-column:1/-1;background:#f2f7ef}
.s84-next-item h3{margin:0 0 4px;font-size:16px}
.s84-next-item p{margin:0;color:var(--s84-muted);font-size:13px}
.s84-record-link{color:var(--s84-green);text-decoration:none;font-size:13px;min-height:44px;display:inline-flex;align-items:center;padding:8px 10px;border-radius:8px;overflow-wrap:anywhere}
.s84-next-item>.s84-record-link{background:var(--s84-green);color:#fff;flex-shrink:0;padding:10px 20px}
.s84-record-link:hover{text-decoration:underline;background:#eef4ed}
.s84-next-item>.s84-record-link:hover{background:#104a3b}
.s84-live{font-size:11px;color:var(--s84-muted);margin:10px 0 18px}
.s84-records{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}
.s84-record-panel{background:#fff;border:1px solid var(--s84-line);border-radius:14px;padding:18px;min-width:0}
.s84-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.s84-panel-head h2{font-size:16px;margin:0}
.s84-record-panel ul{list-style:none;padding:0;margin:0}
.s84-record-panel li{padding:10px 0;border-bottom:1px solid #edf0e9}
.s84-record-panel li:last-child{border-bottom:0}
.s84-record-panel li .s84-record-link{padding:0;min-height:32px;font-size:14px;font-weight:700}
.s84-record-panel small{display:block;color:var(--s84-muted);font-size:11px}
.s84-muted{font-size:13px;color:var(--s84-muted)}
.s84-experience .chat-card{background:#fff;border:1px solid #c2d2c8;border-radius:16px;box-shadow:0 6px 20px #294f3b06;padding:22px;margin:18px 0}
.s84-experience .chat-card .section-title h2{font-size:19px}
.s84-experience #chatMessages{max-height:410px;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere}
.s84-experience #chatInput{font-size:16px;min-height:88px}
.s84-prompts,.s84-provider-routes{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 18px}
.s84-chip,.s84-button{min-height:44px;border:1px solid #c8d9cc;border-radius:9px;background:var(--s84-green);color:white;font:inherit;font-size:13px;padding:9px 16px;cursor:pointer}
.s84-chip,.s84-secondary{background:#f2f6ef;color:var(--s84-green)}
.s84-button:disabled,.s84-chip:disabled{opacity:.5;cursor:wait}
.s84-provider-routes .s84-record-link{border:1px solid var(--s84-line);background:white;padding:10px 18px}
.s84-experience .client-route-hub{display:none}
.s84-experience .client-services-drawer{margin:22px 0;padding:22px;background:white}
.s84-experience .client-services-drawer>h2{font-size:20px}
.s84-service-search{display:flex;flex-direction:column;gap:5px;font-size:12px;margin:16px 0;color:var(--s84-muted)}
.s84-service-search input{border:1px solid #bfd0c2;border-radius:9px;padding:13px 16px;min-height:46px;font:inherit;font-size:15px;background:#fafcf8}
.s84-experience .client-service-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.s84-experience .client-service-card{padding:16px;background:#fbfcf8}
.s84-experience .client-service-card h4{font-size:14px;margin:0 0 6px}
.s84-experience .client-assistant{scroll-margin-top:18px}
.s84-experience .client-assistant-note{font-size:12px}
.s84-experience .client-assistant .s84-form-open{background:#fff;color:var(--s84-green)}
.s84-experience .ec-table,.s84-experience .rc-table{max-width:100%;overflow-x:auto}
.s84-experience .modal-card{max-height:90dvh;overflow:auto}
.s84-experience button:focus-visible,.s84-experience a:focus-visible,.s84-experience input:focus-visible,.s84-experience select:focus-visible,.s84-experience textarea:focus-visible{outline:3px solid #ad8b3e;outline-offset:3px}
.s84-mobile-menu{display:none}
.s84-skip{position:fixed;inset-inline-start:12px;top:-100px;background:#fff;color:#173c30;padding:12px;z-index:10000;border:2px solid #173c30;border-radius:8px}
.s84-skip:focus{top:12px}
@media(max-width:1050px){.s84-experience .app-shell{grid-template-columns:194px minmax(0,1fr)}.s84-experience .content{padding:20px}.s84-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.s84-experience .client-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.s84-scope{flex-wrap:wrap;gap:12px}.s84-scope .project-select{max-width:none}}
@media(max-width:740px){.s84-experience .app-shell{display:flex;flex-direction:column}.s84-experience .content{padding:12px}.s84-mobile-menu{display:block;margin:10px 12px 0;padding:12px 16px;border:1px solid #becfc1;border-radius:10px;background:white;color:#165e4c;text-align:start;font:inherit;min-height:46px}.s84-experience .sidebar{display:none;width:auto;max-height:65dvh;overflow:auto;padding:14px;margin:10px 12px;background:#fff;border:1px solid var(--s84-line);border-radius:12px}.s84-experience .sidebar.s84-nav-open{display:block}.s84-experience .client-nav-group{margin-bottom:14px}.s84-scope{padding:14px;margin-bottom:14px}.s84-scope .project-select{order:3;flex-basis:100%;width:100%}.s84-scope>.s84-button{margin-inline-start:auto}.s84-heading{padding:20px}.s84-heading h1{font-size:25px}.s84-summary{font-size:14px}.s84-records,.s84-next{grid-template-columns:1fr}.s84-next-item{align-items:stretch;flex-direction:column;padding:16px}.s84-next-item>.s84-record-link{justify-content:center}.s84-record-panel{padding:14px}.s84-experience .topbar{padding:12px;align-items:flex-start}.s84-experience .userbox{font-size:12px;gap:7px}.s84-experience .chat-card{padding:14px}.s84-prompts{flex-wrap:nowrap;overflow-x:auto;padding:3px 3px 8px}.s84-chip{white-space:nowrap;flex-shrink:0}.s84-experience .client-services-drawer{padding:16px}.s84-experience .client-service-grid{grid-template-columns:1fr 1fr}.s84-experience .client-service-card{padding:10px}.s84-experience .client-engineering-tabs{display:grid;grid-template-columns:1fr 1fr}.s84-experience .client-engineering-tabs button{font-size:12px}.s84-provider-routes{display:grid;grid-template-columns:1fr 1fr}.s84-provider-routes a{font-size:12px}.s84-experience .modal-card{width:calc(100vw - 20px);margin:10px;max-height:90dvh}.s84-experience .form-grid{grid-template-columns:1fr}.s84-experience .client-contractor-dashboard .client-service-grid{grid-template-columns:1fr}}
@media(max-width:360px){.s84-experience .client-service-grid{grid-template-columns:1fr}.s84-heading h1{font-size:22px}.s84-metric{padding:12px}.s84-scope>div:first-child{min-width:0}}
@media(prefers-reduced-motion:reduce){.s84-experience *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* R225: a wrapped header must occupy its true height and never cover navigation. */
.s84-experience.s84-experience .topbar{height:auto;min-height:68px;position:relative;top:auto;padding:12px 24px;align-items:center}
@media(max-width:740px){.s84-experience.s84-experience .topbar{padding:12px}}

/* R226 — shared founder palette, scoped to engineer accounts. */
body.sahm-engineer-theme{--bg:#0c3328;--card:#124c3b;--ink:#fff;--muted:#d2e6dc;--line:#477565;--s84-ink:#fff;--s84-green:#248367;--s84-line:#477565;--s84-muted:#d2e6dc;background:#0c3328!important;color:#fff!important;color-scheme:dark}
body.sahm-engineer-theme :is(h1,h2,h3,h4,p,strong,small,span,label,legend,dt,dd,summary,th,td,li,time){color:inherit}
body.sahm-engineer-theme :is(a,button,input,select,textarea){color:#fff!important}
body.sahm-engineer-theme :is(.app-shell,.content,.view){background:transparent!important;color:#fff!important}
body.sahm-engineer-theme :is(.topbar,.sidebar){background:#103e31!important;color:#fff!important;border-color:#477565!important}
body.sahm-engineer-theme .topbar{padding:16px 24px!important;align-items:center!important;gap:16px!important;border-bottom:1px solid #477565}
body.sahm-engineer-theme .topbar .brand{flex:0 0 auto}
body.sahm-engineer-theme .topbar .userbox{flex:1;justify-content:flex-end;min-width:0;gap:8px}
body.sahm-engineer-theme .topbar :is(a,button){background:#176047!important;border:1px solid #477565!important;border-radius:9px;padding:8px 12px;text-decoration:none;min-height:42px;display:inline-flex;align-items:center;justify-content:center;font-size:13px}
body.sahm-engineer-theme .topbar>a{margin:0!important}
body.sahm-engineer-theme .app-shell{grid-template-columns:240px minmax(0,1fr)}
body.sahm-engineer-theme .sidebar{padding:20px 12px!important}
body.sahm-engineer-theme .sidebar :is(button,a){line-height:1.7;overflow-wrap:anywhere}
body.sahm-engineer-theme .sidebar .side-main{background:transparent!important;border:1px solid transparent!important;color:#fff!important}
body.sahm-engineer-theme .sidebar .side-main.active,body.sahm-engineer-theme .sidebar .side-main:hover{background:#237a59!important;border-color:#91c1a9!important}
body.sahm-engineer-theme .engineer-nav-heading{font-size:12px;font-weight:700;color:#c4dfd0;padding:18px 12px 6px;border-top:1px solid #477565;margin-top:8px}
body.sahm-engineer-theme .engineer-nav-heading:first-child{padding-top:4px;border-top:0;margin-top:0}
body.sahm-engineer-theme :is(.card,.s84-scope,.s84-heading,.s84-record-panel,.s84-next-item,.s84-metric,.chat-card,.list-card,.center-step,.ec-panel,.ec-context,.ec-shell,.ed-dashboard-card,.ed-report,.rc-card,.rc-panel,.rc-head,.sm-card,.so-card,.money-card,.modal-card,.client-assistant,.form-grid,dialog){background:#124c3b!important;color:#fff!important;border-color:#477565!important;box-shadow:none!important}
body.sahm-engineer-theme :is(article,fieldset,details,.ec-notice,.ed-note,.ec-file,.ec-files,.ec-confirm,.ec-signatures,.ec-phase-list>article,.s84-provider-routes a,.client-services-drawer,.rc-empty,.empty){background:#164f3d!important;color:#fff!important;border-color:#477565!important}
body.sahm-engineer-theme :is(.s84-eyebrow,.s84-summary,.s84-muted,.s84-live,.ec-muted,.side-note,.muted,.eyebrow){color:#d2e6dc!important}
body.sahm-engineer-theme :is(button,.s84-button,.s84-chip,.ec-button,.ghost,.direct-link,.rc-button){background:#237a59!important;border:1px solid #6caa8e!important;color:#fff!important}
body.sahm-engineer-theme :is(button,a):hover{filter:brightness(1.13)}
body.sahm-engineer-theme :is(input,select,textarea){background:#0b382b!important;border:1px solid #81aa97!important;border-radius:8px;color:#fff!important;accent-color:#8bd5ab}
body.sahm-engineer-theme ::placeholder{color:#bfd4c9!important;opacity:1}
body.sahm-engineer-theme :is(table,thead,tbody,tr,th,td){background:#124c3b!important;color:#fff!important;border-color:#477565!important}
body.sahm-engineer-theme :is(.badge,.ec-badge,.rc-badge){background:#276c50!important;color:#fff!important;border-color:#86b39c!important}
body.sahm-engineer-theme :is(.error,.ec-error,.ec-warning,[role=alert]){color:#fff!important;background:#55422a!important;border:1px solid #d6ba77!important;padding:10px;border-radius:8px}
body.sahm-engineer-theme :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #ffe49a!important;outline-offset:3px}
body.sahm-engineer-theme button:disabled{opacity:.6;cursor:wait}
body.sahm-engineer-theme dialog::backdrop{background:rgba(0,20,12,.75)}
body.sahm-engineer-theme .s84-mobile-menu{background:#176047!important;color:#fff!important;border-color:#6caa8e!important}
@media(max-width:740px){body.sahm-engineer-theme .app-shell{display:flex}body.sahm-engineer-theme .topbar{padding:12px!important;gap:10px!important}body.sahm-engineer-theme .topbar .userbox{flex-basis:100%;justify-content:flex-start}body.sahm-engineer-theme .sidebar{max-height:70dvh}body.sahm-engineer-theme .topbar :is(a,button){font-size:12px;padding:8px}}

/* R228: dialogs retain readable green headers and supporting text. */
body.sahm-engineer-theme :is(.ed-dialog-head,.ed-preview-head){background:#103e31!important;color:#fff!important;border-color:#477565!important}
body.sahm-engineer-theme :is(.ed-context,.ed-note,.ed-table small,.ed-check,.ec-help){color:#e4f0e9!important}

/* R226 — shared founder palette, scoped to customer accounts. */
body.sahm-customer-theme{--bg:#0c3328;--card:#124c3b;--ink:#fff;--muted:#d2e6dc;--line:#477565;--s84-ink:#fff;--s84-green:#248367;--s84-line:#477565;--s84-muted:#d2e6dc;background:#0c3328!important;color:#fff!important;color-scheme:dark}
body.sahm-customer-theme :is(h1,h2,h3,h4,p,strong,small,span,label,legend,dt,dd,summary,th,td,li,time){color:inherit}
body.sahm-customer-theme :is(a,button,input,select,textarea){color:#fff!important}
body.sahm-customer-theme :is(.app-shell,.content,.view){background:transparent!important;color:#fff!important}
body.sahm-customer-theme :is(.topbar,.sidebar){background:#103e31!important;color:#fff!important;border-color:#477565!important}
body.sahm-customer-theme .topbar{padding:16px 24px!important;align-items:center!important;gap:16px!important;border-bottom:1px solid #477565}
body.sahm-customer-theme .topbar .brand{flex:0 0 auto}
body.sahm-customer-theme .topbar .userbox{flex:1;justify-content:flex-end;min-width:0;gap:8px}
body.sahm-customer-theme .topbar :is(a,button){background:#176047!important;border:1px solid #477565!important;border-radius:9px;padding:8px 12px;text-decoration:none;min-height:42px;display:inline-flex;align-items:center;justify-content:center;font-size:13px}
body.sahm-customer-theme .topbar>a{margin:0!important}
body.sahm-customer-theme .app-shell{grid-template-columns:240px minmax(0,1fr)}
body.sahm-customer-theme .sidebar{padding:20px 12px!important}
body.sahm-customer-theme .sidebar :is(button,a){line-height:1.7;overflow-wrap:anywhere}
body.sahm-customer-theme .sidebar .side-main{background:transparent!important;border:1px solid transparent!important;color:#fff!important}
body.sahm-customer-theme .sidebar .side-main.active,body.sahm-customer-theme .sidebar .side-main:hover{background:#237a59!important;border-color:#91c1a9!important}
body.sahm-customer-theme .engineer-nav-heading{font-size:12px;font-weight:700;color:#c4dfd0;padding:18px 12px 6px;border-top:1px solid #477565;margin-top:8px}
body.sahm-customer-theme .engineer-nav-heading:first-child{padding-top:4px;border-top:0;margin-top:0}
body.sahm-customer-theme :is(.card,.s84-scope,.s84-heading,.s84-record-panel,.s84-next-item,.s84-metric,.chat-card,.list-card,.center-step,.ec-panel,.ec-context,.ec-shell,.ed-dashboard-card,.ed-report,.rc-card,.rc-panel,.rc-head,.sm-card,.so-card,.money-card,.modal-card,.client-assistant,.form-grid,dialog){background:#124c3b!important;color:#fff!important;border-color:#477565!important;box-shadow:none!important}
body.sahm-customer-theme :is(article,fieldset,details,.ec-notice,.ed-note,.ec-file,.ec-files,.ec-confirm,.ec-signatures,.ec-phase-list>article,.s84-provider-routes a,.client-services-drawer,.rc-empty,.empty){background:#164f3d!important;color:#fff!important;border-color:#477565!important}
body.sahm-customer-theme :is(.s84-eyebrow,.s84-summary,.s84-muted,.s84-live,.ec-muted,.side-note,.muted,.eyebrow){color:#d2e6dc!important}
body.sahm-customer-theme :is(button,.s84-button,.s84-chip,.ec-button,.ghost,.direct-link,.rc-button){background:#237a59!important;border:1px solid #6caa8e!important;color:#fff!important}
body.sahm-customer-theme :is(button,a):hover{filter:brightness(1.13)}
body.sahm-customer-theme :is(input,select,textarea){background:#0b382b!important;border:1px solid #81aa97!important;border-radius:8px;color:#fff!important;accent-color:#8bd5ab}
body.sahm-customer-theme ::placeholder{color:#bfd4c9!important;opacity:1}
body.sahm-customer-theme :is(table,thead,tbody,tr,th,td){background:#124c3b!important;color:#fff!important;border-color:#477565!important}
body.sahm-customer-theme :is(.badge,.ec-badge,.rc-badge){background:#276c50!important;color:#fff!important;border-color:#86b39c!important}
body.sahm-customer-theme :is(.error,.ec-error,.ec-warning,[role=alert]){color:#fff!important;background:#55422a!important;border:1px solid #d6ba77!important;padding:10px;border-radius:8px}
body.sahm-customer-theme :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #ffe49a!important;outline-offset:3px}
body.sahm-customer-theme button:disabled{opacity:.6;cursor:wait}
body.sahm-customer-theme dialog::backdrop{background:rgba(0,20,12,.75)}
body.sahm-customer-theme .s84-mobile-menu{background:#176047!important;color:#fff!important;border-color:#6caa8e!important}
@media(max-width:740px){body.sahm-customer-theme .app-shell{display:flex}body.sahm-customer-theme .topbar{padding:12px!important;gap:10px!important}body.sahm-customer-theme .topbar .userbox{flex-basis:100%;justify-content:flex-start}body.sahm-customer-theme .sidebar{max-height:70dvh}body.sahm-customer-theme .topbar :is(a,button){font-size:12px;padding:8px}}

body.sahm-customer-theme :is(.c73-hero,.c73-panel,.c73-row,.c73-metrics article,.c73-next article,.c73-domain-grid article,.c73-toolbar){background:#124c3b!important;color:#fff!important;border-color:#477565!important}
body.sahm-customer-theme .c73-hero span{color:#d2e6dc!important}
body.sahm-customer-theme .c73-grid{min-width:0}
body.sahm-customer-theme :focus-visible{outline:3px solid #b4ecc9;outline-offset:3px}

@media(min-width:981px){body.sahm-customer-theme .sidebar{display:block!important;position:sticky;top:0;max-height:100vh;overflow:auto}body.sahm-customer-theme .app-shell{display:grid!important;direction:rtl;grid-template-columns:240px minmax(0,1fr)}}

/* R254b — verified customer contrast and navigation. */
body.sahm-customer-theme :is(.r30-welcome,.rc-brain-channel,.active-plan-dock,.chat-messages,.bubble,.ed-dialog-head,.ed-ack,.s84-skip){background:#124c3b!important;background-image:none!important;color:#fff!important;border-color:#6caa8e!important}
body.sahm-customer-theme .bubble.mine{background:#216a50!important}
body.sahm-customer-theme :is(.ed-dialog-head h2,.ed-muted,.ed-dialog p){color:#e2f1e9!important}
body.sahm-customer-theme .sidebar>.engineer-nav-heading{display:none!important}

/* R255C — request badges, selected tab and contract progress contrast. */
body.sahm-customer-theme :is(.rc-category,.rc-status,.rc-tab.selected,.ec-progress li>span){background:#237a59!important;color:#fff!important;border-color:#91c1a9!important}
body.sahm-customer-theme .ec-progress li{color:#d2e6dc!important}
body.sahm-customer-theme .ec-progress li.current{color:#fff!important;border-color:#8bd5ab!important}
body.sahm-customer-theme .ec-progress li.current>span{background:#0b382b!important;outline:2px solid #8bd5ab}
body.sahm-customer-theme .sidebar :is(h2,.engineer-nav-heading){color:#d2e6dc!important}
