:root{color-scheme:dark;--bg:#2f2c2f;--panel:#222;--line:#444;--text:#fff;--muted:#ccc;--accent:#90ee90}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.6 'Segoe UI',sans-serif}header{position:sticky;top:16px;z-index:10;max-width:1400px;margin:16px auto 44px;padding:18px 28px;display:flex;justify-content:space-between;align-items:center;gap:20px;border:1px solid var(--line);border-radius:22px;background:#1a1a1a;box-shadow:0 12px 40px #0004;backdrop-filter:blur(14px)}a{color:var(--accent)}.brand{font-weight:800;letter-spacing:3px;color:var(--text);text-decoration:none}.brand span{display:block;font-size:9px;letter-spacing:2px;color:var(--muted)}main{max-width:1400px;margin:auto;padding:0 24px}h1{font-size:clamp(32px,4vw,54px);line-height:1.12;letter-spacing:-1.5px;margin:14px 0 24px;overflow-wrap:anywhere}h2{font-size:23px;line-height:1.25}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--accent);font-weight:700}.panel,details{border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:24px;margin-bottom:18px}#auth,#activation,#expired{max-width:570px;margin:70px auto}label{display:block;font-size:13px;font-weight:600;margin:14px 0}input,textarea,select{display:block;width:100%;margin-top:7px;padding:11px 12px;background:#1e1e1e;color:var(--text);border:1px solid #454956;border-radius:9px;font:inherit;min-width:0}textarea{min-height:100px;resize:vertical}input[type=checkbox]{display:inline-block;width:auto;margin:0 9px 0 0}input[type=color]{height:43px;padding:3px}button,.button{cursor:pointer;border:1px solid transparent;border-radius:10px;background:var(--accent);color:#172017;padding:11px 17px;font:600 14px 'Segoe UI',sans-serif;text-decoration:none;display:inline-block;min-height:42px}button:hover,.button:hover{filter:brightness(1.1)}button:disabled{opacity:.45;cursor:not-allowed}.secondary{background:#333;color:var(--text);border-color:#414657}.danger{color:#ffadb3;background:transparent;border-color:#74434a}.actions{display:flex;flex-wrap:wrap;gap:9px}.intro,.toolbar{display:flex;justify-content:space-between;align-items:center;gap:22px}.toolbar{position:sticky;top:105px;z-index:5;background:#222;border:1px solid var(--line);border-radius:15px;padding:12px 18px}.toolbar label{margin:0;min-width:210px}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:24px;margin-top:24px}summary{cursor:pointer;font-weight:700;font-size:18px}details[open]>summary{margin-bottom:20px}.muted{color:var(--muted);font-size:13px}#notice{padding:13px 18px;border-left:3px solid var(--accent);background:#242e24;border-radius:7px;white-space:pre-wrap}.row{padding:16px;border:1px solid var(--line);border-radius:10px;margin:12px 0}.photo img{max-width:100%;height:160px;object-fit:cover;border-radius:10px}.photo{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}#history{padding-left:20px;font-size:13px;overflow-wrap:anywhere}dialog{color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:18px;padding:0;width:min(1500px,96vw);height:92vh;max-width:96vw;max-height:95vh}dialog::backdrop{background:#06060cbb;backdrop-filter:blur(6px)}.preview-head{display:flex;justify-content:space-between;gap:20px;padding:16px 24px;align-items:center}.preview-head p{margin:3px 0}iframe{width:100%;height:calc(100% - 108px);border:0;background:white}footer{text-align:center;font-size:12px;color:var(--muted);padding:50px 24px}[hidden]{display:none!important}:focus-visible{outline:3px solid #90ee90;outline-offset:4px}@media(max-width:900px){header{margin:12px 12px 30px;padding:15px;top:8px}.editor-grid{grid-template-columns:1fr}.intro,.toolbar{align-items:stretch;flex-direction:column}.toolbar{position:static}.preview-head{padding:12px;flex-wrap:wrap}main{padding:0 14px}.panel,details{padding:18px}#account{font-size:12px}.brand{font-size:13px}.actions button{flex:1}}@media(prefers-reduced-motion:no-preference){.panel{animation:enter .35s ease-out}@keyframes enter{from{opacity:.3;transform:translateY(8px)}to{opacity:1;transform:none}}}
.account-panel{max-width:650px;margin:45px auto}.account-panel p{line-height:1.8}.account-panel form{margin-bottom:20px}#mfa-qr{background:white;padding:12px;border-radius:12px;max-width:100%;height:auto}#mfa-secret{display:block;overflow-wrap:anywhere;padding:14px;background:#1e1e1e}#recovery-codes{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:2;background:#1e1e1e;padding:18px;border-radius:12px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:28px}.product-grid .panel{display:flex;flex-direction:column}.product-grid .actions{margin-top:auto;padding-top:20px}#purchase-history article{border-bottom:1px solid var(--line);padding:18px 0}#privacy-tools .actions{margin-top:20px}#account{display:flex;gap:10px;flex-wrap:wrap}#checkout-panel{max-width:850px}#services-panel>p{max-width:900px}#register-panel button[data-signin]{margin-top:15px}pre{max-width:100%}@media(max-width:900px){.product-grid{grid-template-columns:1fr}}@media(max-width:600px){.brand{letter-spacing:1px}header{align-items:flex-start}.brand span{letter-spacing:1px}#account{justify-content:flex-end}#account button{padding:8px;font-size:12px}}

/* Same charcoal, green accent and typography as the public PerunCloud site. */
header{border-radius:0;margin-top:0;top:0;background:#1a1a1a;border:0;border-bottom:1px solid #444;box-shadow:none;backdrop-filter:none;max-width:none;padding:24px max(24px,calc((100vw - 1352px)/2))}.brand{font-size:1.2rem;letter-spacing:1px}.brand span{color:#ccc}.panel,details{border-radius:8px}.secondary{border-color:#666}button,.button{border-radius:5px}h1{letter-spacing:-.5px;font-size:clamp(2rem,4vw,2.5rem)}a{color:#90ee90}.journey{padding:16px;background:#262e26;border-left:3px solid #90ee90;margin:20px 0}.brief-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.brief-grid .wide{grid-column:1/-1}#brief-panel{max-width:1100px;margin:32px auto}#brief-panel section{margin:32px 0;border-top:1px solid #444;padding-top:20px}#brief-upload{display:flex;gap:20px;align-items:end;flex-wrap:wrap}#brief-upload label{flex:1;min-width:180px}.brief-grid small{display:block;color:#ccc;font-weight:400}#brief-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}@media(max-width:650px){.brief-grid,#brief-photos{grid-template-columns:1fr}header{padding:18px 14px;flex-wrap:wrap}#brief-panel{margin-top:24px}}
.workspace-tabs{display:flex;gap:10px;margin:24px 0}.inbox-counts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:24px 0}.inbox-count{padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.inbox-count strong{display:block;font-size:28px;color:var(--accent)}.inbox-count span{font-size:13px}.inbox-filter{display:flex;align-items:end;justify-content:space-between;gap:20px}.inbox-filter label{min-width:220px}.inbox-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1.5fr);gap:24px;align-items:start}.inbox-item{display:block;width:100%;text-align:left;margin-bottom:12px;border-radius:14px;padding:20px}.inbox-item[aria-pressed=true]{border-color:var(--accent)}.inbox-item strong,.inbox-item span,.inbox-item small{display:block;overflow-wrap:anywhere}.inbox-item span{font-weight:400;margin:5px 0}.inbox-item small{font-size:12px;color:var(--muted)}.inbox-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 20px;font-size:14px}.inbox-facts dt{color:var(--muted)}.inbox-facts dd{margin:0;overflow-wrap:anywhere}.inbox-text{white-space:pre-wrap;overflow-wrap:anywhere}.inbox-message{padding:14px 0;border-bottom:1px solid var(--line)}.inbox-message p{margin-bottom:0}.inbox-detail{min-width:0}.inbox-detail details{padding:16px}.inbox-detail h3{overflow-wrap:anywhere}@media(max-width:760px){.inbox-grid{grid-template-columns:1fr}.inbox-counts{grid-template-columns:repeat(3,minmax(0,1fr))}.inbox-filter{align-items:stretch;flex-direction:column;gap:0}.inbox-facts{grid-template-columns:1fr;gap:4px}.inbox-facts dd{margin-bottom:10px}}

.business-list{display:grid;gap:16px;margin:20px 0}.business-list article{margin:0}#business-dns code{display:block;padding:12px;background:#181818;border:1px solid var(--line);border-radius:8px;overflow-wrap:anywhere}#businesses-panel textarea{width:100%}#selected-business-name{font-weight:700;color:var(--accent)}

.delivery-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.5rem 0}.delivery-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.delivery-grid .panel{min-width:0}.delivery-event{border-left:3px solid var(--accent,#b9a7ff);padding:.2rem 1rem;margin:1.2rem 0}.delivery-event p{white-space:pre-wrap;overflow-wrap:anywhere}.delivery-event small{opacity:.7}#delivery-feedback{margin-top:1.8rem}#delivery-note{width:100%;box-sizing:border-box}@media(max-width:760px){.delivery-steps,.delivery-grid{grid-template-columns:1fr}.workspace-tabs{flex-wrap:wrap}}

#delivery-edits fieldset{min-width:0;margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:12px}#delivery-policy{padding:16px;background:#1b291e;border-left:3px solid var(--accent);border-radius:8px}#delivery-edits select{max-width:100%}

.request-photo{display:block;width:100%;max-width:360px;max-height:240px;object-fit:contain;border-radius:10px;margin:14px 0;background:#171717}

.inbox-filter{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));align-items:end;gap:1rem}.inbox-filter>label,.inbox-filter>form{min-width:0;margin:0}.inbox-filter label{min-width:0}.inbox-filter input{max-width:100%}#inbox-follow-counts{flex-wrap:wrap;margin-block:1rem}
/* Touch-friendly gallery, retaining the customer portal theme. */
.customer-gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px;margin:24px 0}.gallery-photo{min-width:0}.gallery-photo img{display:block;width:100%;height:220px;object-fit:cover;border-radius:12px;margin-bottom:16px}.gallery-photo input{width:100%;min-width:0}.gallery-photo .actions{flex-wrap:wrap}.gallery-photo button,#gallery-panel button,.gallery-dialog button{min-height:44px}.gallery-dialog{width:min(1100px,94vw);max-height:90dvh;overflow:auto}.gallery-dialog::backdrop{background:#000b}#gallery-tools form{max-width:760px}#gallery-file{max-width:100%;white-space:normal}#gallery-jobs p{overflow-wrap:anywhere}@media(max-width:600px){.gallery-dialog{padding:18px}.gallery-photo img{height:auto;aspect-ratio:4/3}.workspace-tabs{flex-wrap:wrap}}

/* Support keeps customer text literal and fits small screens. */
.support-message{white-space:pre-wrap;overflow-wrap:anywhere}#support-panel article button{max-width:100%;white-space:normal;overflow-wrap:anywhere}#support-panel textarea{min-height:120px}#support-panel details{margin-top:1rem}#support-panel h2{overflow-wrap:anywhere}
#support-title{scroll-margin-top:8rem}@media(max-width:700px){#support-title{scroll-margin-top:15rem}}

#quote-items fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:16px 0;min-width:0}#quote-items label:first-of-type{grid-column:1/-1}.quote-document{overflow-wrap:anywhere}.quote-lines{display:grid;gap:12px}#quote-share{font-size:14px}#quote-form fieldset{min-width:0}#quote-response label:has(input[type=checkbox]){display:block}
@media print{:root{color-scheme:light}body>header,body>footer,main>:not(#quotes-panel):not(#quote-public-document):not(#invoices-panel),#quotes-panel>:not(#quotes-available),#quotes-available>:not(#quote-work),#quote-work>:not(#quote-document){display:none!important}body,main,#quotes-panel,#quotes-available,#quote-work,.quote-document{position:static!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;color:#111!important;background:white!important;box-shadow:none!important}.quote-document *{color:#111!important;background:white!important;box-shadow:none!important}.quote-document article{break-inside:avoid}}

#invoice-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;min-width:0}#invoice-fields label{min-width:0}#invoice-fields textarea{width:100%}#invoice-document{overflow-wrap:anywhere}#invoice-history article{overflow-wrap:anywhere}#invoice-payment label:has(input[type=checkbox]),#invoice-fields label:has(input[type=checkbox]){display:block}#invoice-fields input[type=checkbox],#invoice-payment input[type=checkbox]{width:auto}
@media print{#invoices-panel>:not(#invoices-available),#invoices-available>:not(#invoice-work),#invoice-work>:not(#invoice-document){display:none!important}#invoices-panel,#invoices-available,#invoice-work,#invoice-document{position:static!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;color:#111!important;background:white!important;box-shadow:none!important}#invoice-document *{color:#111!important;background:white!important;box-shadow:none!important}#invoice-document article{break-inside:avoid}.invoice-credit-note{break-before:page}}

.jobs-list,.job-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem;margin:1rem 0}.job-photos img{width:100%;max-height:280px;object-fit:contain;border-radius:12px}#job-summary p,#job-history p{white-space:pre-wrap;overflow-wrap:anywhere}#job-work{margin-top:1.5rem}#job-actions button{min-height:44px}#job-form fieldset{display:grid;gap:.8rem}#job-history article{border-bottom:1px solid var(--line,#33413a);padding:.8rem 0}@media(max-width:600px){#job-actions{display:grid;grid-template-columns:1fr 1fr}#job-work .actions{gap:.6rem}}

.documents-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:1rem;margin:1.25rem 0}#documents-panel details{margin:1rem 0}#documents-panel summary{cursor:pointer;min-height:44px;padding:.6rem 0;font-weight:600}#documents-panel .check{display:flex;gap:.7rem;align-items:flex-start}#documents-panel .check input{width:auto;flex:none;margin-top:.3rem}#document-work p,#document-history pre,#document-shares{overflow-wrap:anywhere;white-space:pre-wrap}#document-history pre{font:inherit}#document-history article{border-bottom:1px solid var(--line);padding:.8rem 0}#documents-panel button{min-height:44px}#documents-panel textarea,#documents-panel input,#documents-panel select{max-width:100%}#document-work{margin-top:2rem}

.visibility-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:1.5rem}.visibility-grid aside{display:grid;gap:1.5rem;align-content:start}.visibility-grid pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere}.visibility-grid .panel{min-width:0}.visibility-grid input,.visibility-grid textarea{max-width:100%;width:100%}.visibility-grid .check{display:flex;align-items:flex-start;gap:.7rem}.visibility-grid .check input{width:auto;flex:none;margin-top:.3rem}.visibility-grid .actions>*{min-height:44px;overflow-wrap:anywhere}.visibility-grid a{overflow-wrap:anywhere}@media(max-width:850px){.visibility-grid{grid-template-columns:1fr}}

@media(max-width:850px){.visibility-grid.has-saved>aside{display:contents}.visibility-grid.has-saved .visibility-share{order:-1}.visibility-grid.has-saved>aside>section:not(.visibility-share){order:1}}

/* Compact account navigation on phones, retaining the public-site theme. */
#account-menu-toggle{display:none}
@media screen and (max-width:600px){
 body>header{flex-wrap:wrap;align-items:center;gap:12px;padding:14px;margin:0 0 22px;top:0}
 #account-menu-toggle:not([hidden]){display:inline-block;margin-left:auto;min-height:44px}
 #account{display:none;width:100%;max-height:60vh;overflow:auto;justify-content:stretch}
 #account.menu-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #account button,#account a{min-height:44px;text-align:center;white-space:normal}
}

.workspace-shortcuts .panel{display:flex;flex-direction:column;gap:10px;min-width:0}.workspace-shortcuts .panel h3,.workspace-shortcuts .panel p{margin:0}.workspace-shortcuts .panel button{margin-top:auto;min-height:44px;align-self:flex-start}

/* Keep account sign-in and verification fields on one consistent column. */
body.auth-layout>header{margin-bottom:28px}
body.auth-layout main{width:100%;max-width:584px;display:flex;flex-direction:column;gap:16px}
body.auth-layout #notice{margin:0;font-size:14px;line-height:1.5}
body.auth-layout .demo-banner{margin:0;padding:16px 20px;font-size:13px;line-height:1.6}
body.auth-layout #auth,body.auth-layout .account-panel{width:100%;max-width:none;margin:0;padding:28px}
body.auth-layout h1{font-size:30px;line-height:1.2;margin:16px 0}
body.auth-layout .eyebrow{margin-top:0}
body.auth-layout .journey{font-size:12px;line-height:1.6;padding:12px;margin:16px 0}
body.auth-layout form{display:grid;gap:16px;margin:20px 0 0}
body.auth-layout form label{margin:0;font-size:14px}
body.auth-layout form input:not([type=checkbox]){min-height:46px;font-size:16px}
body.auth-layout form>button{width:100%;min-height:46px;margin-top:4px}
body.auth-layout .actions{gap:12px;margin-top:14px}
body.auth-layout .actions>button{flex:1;min-width:0;min-height:46px}
body.auth-layout #auth>a:last-child{display:block;margin-top:20px;font-size:13px}
body.auth-layout>footer{padding:32px 24px}
@media(max-width:480px){
 body.auth-layout main{padding:0 16px;gap:14px}
 body.auth-layout #auth,body.auth-layout .account-panel{padding:20px}
 body.auth-layout h1{font-size:27px}
 body.auth-layout .demo-banner{padding:14px 16px}
}

/* Customer workspace: persistent navigation and explicit service states. */
body.portal-layout{--bg:#202224;--panel:#282b2d;--line:#414648;--muted:#b5bdb8;background:var(--bg)}
body.portal-layout>header{height:84px;padding:16px 28px;margin:0;align-items:center;border-bottom:1px solid var(--line)}
#header-business{margin:0;font-size:14px;color:var(--muted);max-width:60%;overflow-wrap:anywhere;text-align:right}
body.portal-layout #account{position:fixed;top:84px;bottom:0;left:0;width:248px;padding:22px 16px;background:#191d1b;border-right:1px solid var(--line);display:flex;flex-direction:column;flex-wrap:nowrap;gap:22px;overflow-y:auto;z-index:9;font-size:14px}
.nav-group{display:grid;gap:5px;flex-shrink:0;min-width:0}.nav-heading{margin:0 12px 6px;color:#a0ada5;text-transform:uppercase;font-size:11px;letter-spacing:1.5px;font-weight:700}
#account .nav-item{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;padding:10px 12px;border:1px solid transparent;border-radius:7px;background:transparent;color:#e0e7e2;font-size:14px;font-weight:500;text-align:left;text-decoration:none;line-height:1.4;white-space:normal}
#account .nav-item:hover{background:#2b352e;filter:none}#account .nav-item.is-current{background:#283c2d;border-color:#6bba77;color:#b5f1ba;font-weight:700}
#account .nav-item.module-enabled{color:#b2f2b8}#account .nav-item.module-disabled{color:#a9afab;opacity:1;background:#202522;cursor:not-allowed}
#account .module-badge{font-size:10px;line-height:1.25;max-width:94px;text-align:right;background:none;padding:0;border:0;flex-shrink:0;color:inherit}
body.portal-layout main{max-width:1600px;margin:0 0 0 248px;padding:28px 36px;min-width:0}
body.portal-layout h1{font-size:32px;line-height:1.2;margin:12px 0 18px}body.portal-layout #notice{margin:0 0 24px;font-size:14px}body.portal-layout>footer{margin-left:248px;padding:24px}
body.portal-layout #account-summary{font-size:13px;color:var(--muted);padding:14px 18px;margin-bottom:28px}body.portal-layout #selected-business-name{font-size:15px;font-weight:600;margin-bottom:12px}
body.portal-layout .product-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:18px;margin:20px 0 32px}
.module-card{position:relative;border-top:3px solid var(--line);gap:12px;padding:22px!important}.module-card.module-enabled{border-color:#56795c;border-top-color:#90ee90;background:#27332b}.module-card.module-disabled{background:#27292a;border-color:#464b48;color:#b7bdb9}
.module-card .module-badge{align-self:flex-start;display:inline-flex;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:600;line-height:1.5;background:#303a33;color:#c7d2cb}.module-card.module-enabled .module-badge{background:#365440;color:#b9f8c1}.module-card h3{font-size:20px}.module-card p{font-size:14px;line-height:1.6;color:var(--muted)}.module-card button{width:100%;align-self:stretch!important;margin-top:auto!important}.module-card button:disabled{opacity:1;color:#aab2ad;background:#303532;border-color:#4b534e;font-size:12px}
body.portal-layout .toolbar{top:100px}body.portal-layout .account-panel{max-width:none;margin:0}body.portal-layout #services-panel>h2{margin-top:32px}
body.portal-layout .intro{align-items:flex-start}body.portal-layout .intro p{max-width:740px}body.portal-layout .editor-grid{grid-template-columns:minmax(0,1fr) 300px}
@media screen and (max-width:1100px){body.portal-layout main{padding:24px}body.portal-layout .editor-grid{grid-template-columns:1fr}}
@media screen and (max-width:900px){
 body.portal-layout>header{height:auto;min-height:76px;padding:16px 20px;gap:12px;flex-wrap:wrap}
 body.portal-layout #account-menu-toggle:not([hidden]){display:block;margin-left:auto;min-height:44px}
 body.portal-layout #header-business{max-width:none;width:100%;text-align:left;font-size:12px}
 body.portal-layout #account{display:none;position:static;width:auto;margin:0;padding:20px;border-right:0;border-bottom:1px solid var(--line);max-height:65vh}
 body.portal-layout #account.menu-open{display:flex;gap:22px}
 body.portal-layout main{margin:0;padding:24px 18px}body.portal-layout>footer{margin:0}
 body.portal-layout .toolbar{position:static}body.portal-layout h1{font-size:28px}
}
@media print{body.portal-layout #account,body.portal-layout>header{display:none!important}body.portal-layout main{margin:0!important}}

.header-preferences{display:flex;align-items:center;justify-content:flex-end;gap:24px;min-width:0}
#appearance-control{display:flex;align-items:center;gap:10px;margin:0;font-size:12px;font-weight:500;white-space:nowrap}
#portal-appearance{width:175px;margin:0;padding:7px 10px;min-height:36px;font-size:13px}
body.portal-layout .header-preferences #header-business{max-width:320px}
body.portal-layout[data-portal-theme]{--accent:var(--theme-accent,#90ee90);--bg:var(--theme-bg,#202224);--panel:#282b2d;--text:#f0f4f1;--muted:#b5bdb8;--line:#414648;--theme-sidebar:#191d1b;--theme-field:#202422;--theme-enabled:#293b2e;--theme-muted:#303632;color-scheme:dark}
body.portal-layout[data-portal-theme=light]{--accent:var(--theme-accent,#226038);--bg:var(--theme-bg,#f3f5f4);--panel:#ffffff;--text:#1d2922;--muted:#526158;--line:#cbd4ce;--theme-sidebar:#e8eeea;--theme-field:#f8faf8;--theme-enabled:#edf6ef;--theme-muted:#edf0ee;color-scheme:light}
body.portal-layout[data-portal-theme]>header,body.portal-layout[data-portal-theme] #account{background:var(--theme-sidebar);border-color:var(--line)}
body.portal-layout[data-portal-theme] :is(input,select,textarea,.toolbar,pre,#mfa-secret){background:var(--theme-field);color:var(--text);border-color:var(--line)}
body.portal-layout[data-portal-theme] :is(button,.button){color:var(--theme-on-accent,#172017)}
body.portal-layout[data-portal-theme=light] :is(button,.button){color:var(--theme-on-accent,#ffffff)}
body.portal-layout[data-portal-theme] :is(.secondary,button:disabled){background:var(--theme-muted);color:var(--muted);border-color:var(--line)}
body.portal-layout[data-portal-theme] #account .nav-item{color:var(--text)}
body.portal-layout[data-portal-theme] #account .nav-item:is(:hover,.is-current){background:var(--theme-enabled);border-color:var(--accent);color:var(--accent)}
body.portal-layout[data-portal-theme] #account .module-enabled{color:var(--accent)}
body.portal-layout[data-portal-theme] #account .module-disabled{background:var(--theme-muted);color:var(--muted);border-color:transparent}
body.portal-layout[data-portal-theme] :is(.nav-heading,.brand span){color:var(--muted)}
body.portal-layout[data-portal-theme] :is(#notice,.journey,#delivery-policy){background:var(--theme-enabled);color:var(--text);border-color:var(--accent)}
body.portal-layout[data-portal-theme] .module-card.module-enabled{background:var(--theme-enabled);border-color:var(--accent)}
body.portal-layout[data-portal-theme] .module-card.module-disabled{background:var(--panel);color:var(--muted);border-color:var(--line)}
body.portal-layout[data-portal-theme] .module-card .module-badge{background:var(--theme-muted);color:var(--muted)}
body.portal-layout[data-portal-theme] .module-card.module-enabled .module-badge{background:var(--panel);color:var(--accent);border:1px solid var(--accent)}
body.portal-layout[data-portal-theme] .module-card button:disabled{background:var(--theme-muted);color:var(--muted);border-color:var(--line)}
body.portal-layout[data-portal-theme] :focus-visible{outline-color:var(--accent)}
@media(max-width:900px){.header-preferences{width:100%;justify-content:space-between;gap:12px;flex-wrap:wrap}body.portal-layout .header-preferences #header-business{max-width:none;width:auto;margin:0;text-align:left}#appearance-control{flex-wrap:wrap}}
