/* Approved blue-plum / cool eucalyptus / neutral pearl finish. Surface properties only:
   preserve layout, typography, dimensions, controls and semantic status colours. */
#app-shell[data-space=client]{
 --ink:#30283c;--lake:#503259;--lake-deep:#30283c;--muted:#6b6071;--line:#c6bdcb;
 --workspace-ink:#30283c;--workspace-deep:#503259;--workspace-soft:#e8e5ea;--workspace-line:#c6bdcb;
 --surface-shadow:0 4px 16px #30283c10;
}
#app-shell[data-space=vendor]:not([data-view=plan]){
 --ink:#253b34;--lake:#294b43;--lake-deep:#203d36;--muted:#58695f;--line:#b9c6bd;
 --workspace-ink:#253b34;--workspace-deep:#294b43;--workspace-soft:#e7ede7;--workspace-line:#b9c6bd;
 --surface-shadow:0 4px 16px #253b3410;
}
body:has(#app-shell[data-space=client]){background:#f3f3f1!important;background-image:none!important;}
body:has(#app-shell[data-space=vendor]:not([data-view=plan])){background:#edf0ee!important;background-image:none!important;}
/* Smooth overlapping light washes; no floral assets or geometric decoration. */
#app-shell[data-space=client][data-view=plan]{
 background-color:#28172f!important;
 background-image:radial-gradient(ellipse 70% 34% at 43% 12%,#82618b30,transparent 76%),radial-gradient(ellipse 80% 62% at 48% 30%,#4d3058,transparent 80%),linear-gradient(160deg,#28172f,#301b38 48%,#24142b)!important;
 background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
}
#app-shell[data-space=client][data-view=plan] :is(main,#plan-view,.app-header){background:transparent!important;}
#app-shell[data-view=plan] .app-header :is(.app-brand,.icon-button),#app-shell[data-view=plan] #planner-heading{color:#fff;}
#app-shell[data-view=plan] :is(.event-chip,.prompt-card,.brief-field){border-color:#aaa0b3;box-shadow:0 3px 12px #211a2e1a;}
#app-shell[data-view=plan] .event-chip[aria-pressed=true]{background-color:#dedbe2;border-color:#fff;}
#app-shell[data-view=plan] :is(.build-event,.round-submit){background-color:#503259!important;border-color:#a79aaf;}
/* Inner pages carry pale workspace tints for reading and form completion. */
#app-shell[data-space=client]:not([data-view=plan]){
 background-color:#e8e7e9!important;
 background-image:radial-gradient(ellipse at 30% 0%,#f3f3f1cc,transparent 60%),radial-gradient(ellipse at 100% 70%,#bcb8c12b,transparent 65%),linear-gradient(155deg,#eeedef,#e3e2e5 60%,#f0eff1)!important;
}
#app-shell[data-space=vendor]:not([data-view=plan]),
#app-shell[data-space=vendor][data-view=vendor-home]{
 background-color:#e4eae4!important;
 background-image:radial-gradient(ellipse at 45% 8%,#f3f3f1cc,transparent 58%),radial-gradient(ellipse at 48% 62%,#f3f3f1cc,transparent 68%),linear-gradient(120deg,#ced8d1,#e9eeeb 42%,#d4ddd6)!important;
 background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;
}
#app-shell[data-space]:not([data-view=plan]) :is(main,.app-view,.app-header){background:transparent!important;}
#app-shell[data-space]:not([data-view=plan]) .app-view{color:var(--ink);}
#app-shell[data-space]:not([data-view=plan]) :is(.screen-heading,.results-top,.browse-section-heading,.heading-row)>:is(h1,h2,.eyebrow,p),
#app-shell[data-space]:not([data-view=plan]) .app-view>:is(h1,h2,h3),
#app-shell[data-space]:not([data-view=plan]) .app-view>[id$="-body"]>:is(h1,h2,h3),
#app-shell[data-space]:not([data-view=plan]) .saved-account-events>h2,
#app-shell[data-space=vendor] #account-view .vendor-account-overview #account-heading,
#vendor-home-view .vendor-home-section-heading h2{color:var(--ink);}
#app-shell[data-space]:not([data-view=plan]) .app-view>.text-button,
#app-shell[data-space]:not([data-view=plan]) .app-view>[id$="-body"]>.flow-tools>.text-button{color:var(--lake-deep);}
#app-shell[data-space]:not([data-view=plan]) :is(.app-view,.app-view>[id$="-body"])>.preview-note,
#app-shell[data-space=vendor] #account-view .vendor-account-overview .account-login-email{color:var(--muted);}
#app-shell[data-space]:not([data-view=plan]) :is(.account-panel,.account-listing,.account-workspace,.settings-card,.request-card,.vendor-card,.proposal-card,.direct-thread,.direct-conversation,.support-inbox,.subscription-current,.subscription-plan,.business-details-form,.vendor-home-welcome,.vendor-home-empty,.vendor-home-summary>button,.vendor-home-listing,.vendor-listing-card,.vendor-account-row,.custom-brief,.custom-selection,.draft-save-bar,.brief-confirm,.priority-panel,.vendor-onboarding>fieldset){
 background-color:#f3f3f1!important;background-image:none!important;border-color:var(--line);color:var(--ink);box-shadow:var(--surface-shadow)!important;
}
#app-shell[data-space=vendor] #account-view .vendor-account-overview{background:transparent!important;box-shadow:none!important;color:var(--ink);}
#app-shell[data-space]:not([data-view=plan]) :is(input,select,textarea){border-color:var(--line);accent-color:var(--lake);}
#app-shell[data-space=vendor]:not([data-view=plan]) .primary-button{background:#294b43!important;border-color:#294b43;color:#fff;}
#app-shell[data-space=client]:not([data-view=plan]) .primary-button{background:#503259;border-color:#503259;color:#fff;}
#app-shell[data-space]:not([data-view=plan]) .primary-button:hover{background:var(--lake-deep)!important;}
#app-shell[data-space]:not([data-view=plan]) .secondary-button{background:#f3f3f1!important;border-color:var(--line);color:var(--ink);}
#app-shell[data-space]:not([data-view=plan]) .direct-thread[aria-pressed=true]{background:var(--workspace-soft)!important;border-color:var(--lake);}
#app-shell[data-space=vendor]:not([data-view=plan]) .vendor-home-summary>button.has-unread{background:#e7ede7!important;}
#app-shell[data-space=vendor]:not([data-view=plan]) .vendor-home-summary>button.has-unread small{color:var(--muted);}
#app-shell[data-space=vendor]:not([data-view=plan]) .vendor-home-summary .vendor-home-unread{color:#b42336;}
#app-shell[data-space=vendor]:not([data-view=plan]) .support-admin-message{background:#e3ebe3;border-left-color:#294b43;}
#app-shell[data-space=vendor]:not([data-view=plan]) .support-message:not(.support-admin-message){background:#edf0ee;}
#app-shell[data-space=vendor]:not([data-view=plan]) .bottom-nav button[aria-current=page]{color:#294b43;}
#app-shell[data-space=vendor]:not([data-view=plan]) .bottom-nav button[aria-current=page] .icon{background:#dce5dd;box-shadow:0 0 0 5px #dce5dd;}
#app-shell[data-space] .bottom-nav{background:#f3f3f1!important;background-image:none!important;border-top-color:var(--line);}
/* Dialogs live outside the shell and follow the active workspace palette. */
body:has(#app-shell[data-space=vendor]:not([data-view=plan])) dialog{--ink:#253b34;--lake:#294b43;--line:#b9c6bd;--muted:#58695f;background:#fff;color:var(--ink);}
body:has(#app-shell[data-space=client]) dialog{--ink:#30283c;--lake:#503259;--line:#c6bdcb;background:#fff;color:var(--ink);}
body:has(#app-shell[data-space=vendor]:not([data-view=plan])) :is(.utility-dialog,.service-picker) .primary-button{background:#294b43;border-color:#294b43;}

/* Shared tokens reach dialogs outside the shell as well as workspace controls. */
body:has(#app-shell[data-space=client]){
 --theme-ink:#30283c;--theme-action:#503259;--theme-hover:#392344;
 --theme-muted:#6b6071;--theme-line:#c6bdcb;--theme-soft:#e8e5ea;
 --theme-surface:#f3f3f1;--theme-paper:#f3f3f1;
}
body:has(#app-shell[data-space=vendor]:not([data-view=plan])){
 --theme-ink:#253b34;--theme-action:#294b43;--theme-hover:#203d36;
 --theme-muted:#58695f;--theme-line:#b9c6bd;--theme-soft:#e3ebe3;
 --theme-surface:#f3f3f1;--theme-paper:#f3f3f1;
}
#app-shell[data-space]{--paper:var(--theme-paper);--mist:var(--theme-soft);--ink:var(--theme-ink);--lake:var(--theme-action);--lake-deep:var(--theme-hover);--muted:var(--theme-muted);--line:var(--theme-line);}
/* The vendor homepage matches the approved dark eucalyptus preview. */
#app-shell[data-space=vendor][data-view=vendor-home]{
 background-color:#294b43!important;
 background-image:radial-gradient(ellipse at 46% 20%,#72978660,transparent 70%),linear-gradient(130deg,#24483f,#365d50 48%,#203e37)!important;
}
#app-shell[data-space=vendor][data-view=vendor-home] .app-header :is(.app-brand,.icon-button,#client-space-label,#header-signout){color:#f3f3f1!important;}
#app-shell[data-space=vendor][data-view=vendor-home] .screen-heading>h1,
#app-shell[data-space=vendor][data-view=vendor-home] .vendor-home-section-heading h2{color:#f3f3f1;}
/* Header and footer identity; preserve badge colours and contrast. */
#app-shell[data-space]:not([data-view=plan]) .app-header :is(.app-brand,.icon-button,#client-space-label,#header-signout){color:var(--theme-ink);}
#app-shell[data-space] .language-switch,body:has(#app-shell) dialog .language-switch{background:#f3f3f1;border-color:var(--theme-line);color:var(--theme-ink);}
#app-shell[data-space] .language-switch button[aria-pressed=true],body:has(#app-shell) dialog .language-switch button[aria-pressed=true]{background:var(--theme-action);color:#f3f3f1;}
#app-shell[data-space] .bottom-nav button{color:var(--theme-muted);}
#app-shell[data-space] .bottom-nav button[aria-current=page]{color:var(--theme-ink);}
#app-shell[data-space] .bottom-nav button[aria-current=page] .icon{background:var(--theme-soft);box-shadow:0 0 0 5px var(--theme-soft);}
#app-shell[data-view=plan] :is(.planner-type-label,#planner-heading,.app-brand,#header-menu){color:#f3f3f1;}
#app-shell[data-view=plan] :is(.event-chip,.prompt-card,.brief-field){background:#f3f3f1;color:#30283c;}
#app-shell[data-view=plan] :is(.prompt-card textarea,.brief-field input,.brief-field select,.et-date-button,.field-clear,.field-currency,.brief-field>.icon){background:transparent;color:#30283c;}
#app-shell[data-view=plan] :is(.planner-field-caption,.prompt-card textarea::placeholder){color:#6b6071;}
#app-shell[data-view=plan] .event-chip[aria-pressed=true]{background:#dedbe2;box-shadow:inset 0 0 0 2px #503259;}
#app-shell[data-view=plan] :is(.build-event,.round-submit){color:#f3f3f1;}
#app-shell[data-view=plan] .app-header [data-admin-open]{background:#503259;color:#f3f3f1;border-color:#a79aaf;}
/* Replace legacy blue/teal patches in reading panels, filters and forms. */
#app-shell[data-space]:not([data-view=plan]) :is(.direct-notice,.direct-allowance,.subscription-paid,.occasion-space-bar,.account-destination,.browse-filter-panel,.platform-help-intro,.occasion-about-intro,.occasion-about-grid article,.support-conversation,.listing-management-note,.vendor-event-types,.custom-vendor-card,.custom-vendor,.empty-state,.inquiry-card,.offer-card,.profile-card,.vendor-profile-card,.choice-card,.legal-document){background:#f3f3f1!important;color:var(--theme-ink);border-color:var(--theme-line);}
#app-shell[data-space]:not([data-view=plan]) :is(.primary-button,.direct-search button[type=submit]){background:var(--theme-action)!important;border-color:var(--theme-action);color:#f3f3f1;}
#app-shell[data-space]:not([data-view=plan]) .primary-button:hover{background:var(--theme-hover)!important;}
#app-shell[data-space]:not([data-view=plan]) :is(.secondary-button,.text-button,.icon-button,.account-destination,.direct-archive-subject,.support-inbox-toggle,.support-thread){color:var(--theme-ink);}
#app-shell[data-space]:not([data-view=plan]) :is(.direct-filters button,.support-inbox-toggle,.direct-conversation-options summary,.account-auth-tabs button,.account-destination){background:#f3f3f1;border-color:var(--theme-line);color:var(--theme-ink);}
#app-shell[data-space]:not([data-view=plan]) :is(.direct-filters button,.account-auth-tabs button)[aria-pressed=true],
#app-shell[data-space]:not([data-view=plan]) .account-workspace [aria-pressed=true]{background:var(--theme-action);border-color:var(--theme-action);color:#f3f3f1;}
#app-shell[data-space]:not([data-view=plan]) :is(.direct-search input,input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){background:#fcfcfb;color:var(--theme-ink);border-color:var(--theme-line);accent-color:var(--theme-action);}
#app-shell[data-space]:not([data-view=plan]) :is(input,textarea)::placeholder{color:var(--theme-muted);}
#app-shell[data-space]:not([data-view=plan]) :is(.support-thread,.chat-message,.direct-archive-subject[aria-pressed=true]){background:var(--theme-soft);color:var(--theme-ink);}
#app-shell[data-space]:not([data-view=plan]) :is(.support-message,.chat-message.outgoing){background:var(--theme-soft);color:var(--theme-ink);}
#app-shell[data-space]:not([data-view=plan]) .support-admin-message{background:#f3f3f1;border-left-color:var(--theme-action);}
#app-shell[data-space]:not([data-view=plan]) :is(.support-inbox-content>p:first-child,.direct-thread small,.direct-thread .direct-snippet,.vendor-home-summary small,.vendor-home-listing small){color:var(--theme-muted);}
#app-shell[data-space]:not([data-view=plan]) :is(.account-panel,.request-card,.subscription-current,.subscription-plan,.subscription-paid,.account-destination,.vendor-home-welcome,.direct-conversation,.platform-help-intro,.occasion-about-intro,.occasion-about-grid article) :is(h1,h2,h3,label,legend,strong){color:var(--theme-ink);}
#app-shell[data-space]:not([data-view=plan]) .direct-thread[data-unread=true]{border-left-color:var(--theme-action);}
/* All overlay surfaces share pearl; destructive actions retain their red. */
body:has(#app-shell) dialog{--ink:var(--theme-ink);--lake:var(--theme-action);--line:var(--theme-line);--muted:var(--theme-muted);background:#f3f3f1;color:var(--theme-ink);}
body:has(#app-shell) :is(.utility-dialog,.service-picker) .primary-button{background:var(--theme-action);border-color:var(--theme-action);color:#f3f3f1;}
body:has(#app-shell) dialog :is(input,select,textarea){background:#fcfcfb;color:var(--theme-ink);border-color:var(--theme-line);accent-color:var(--theme-action);}
body:has(#app-shell) dialog :is(.secondary-button,.utility-nav button,.text-button){background-color:#f3f3f1;color:var(--theme-ink);border-color:var(--theme-line);}
#app-shell[data-space] :focus-visible,body:has(#app-shell) dialog :focus-visible{outline-color:var(--theme-action);}
#app-shell[data-space] .bottom-nav button[aria-current=page] .home-icon{fill:currentColor;stroke:currentColor;}
#app-shell[data-view=plan]{box-shadow:0 0 0 2px #30283c,0 24px 70px #211a2e40;}
#app-shell[data-view=plan] .prompt-card textarea::placeholder{color:#6b6071;}

/* Destructive actions keep their established red meaning. */
#app-shell[data-space] :is([data-direct-decline],[data-listing-delete],.listing-delete,[name=decision][value=declined],.direct-delete-button){color:#9b2034;}
body:has(#app-shell) .et-calendar button{background:var(--theme-soft);color:var(--theme-ink);}
body:has(#app-shell) .et-calendar-grid button{background:transparent;}
body:has(#app-shell) .et-calendar-grid button[aria-current]{background:var(--theme-action);color:#f3f3f1;}
body:has(#app-shell) .et-calendar-grid>span{color:var(--theme-muted);}
body:has(#app-shell) .et-calendar::backdrop{background:#211a2e88;}
#app-shell[data-space]:not([data-view=plan]) :is(.et-date-button,.vendor-taxonomy-setup){background:#f3f3f1;color:var(--theme-ink);border-color:var(--theme-line);}

/* Signed-in account rules predate the palette and use their own page ID. */
#app-shell[data-space] #account-view{background:transparent!important;color:var(--theme-ink);}
#app-shell[data-space] #account-view .account-login-email{color:var(--theme-ink);}
#app-shell[data-space] #account-view .vendor-account-row{color:var(--theme-ink);border-color:var(--theme-line);}
#app-shell[data-space] #account-view .vendor-account-row :is(strong,.icon){color:var(--theme-ink);}
#app-shell[data-space] #account-view .vendor-account-row small{color:var(--theme-muted);}
#app-shell[data-space] #account-view .vendor-account-row:hover{background:var(--theme-soft)!important;border-color:var(--theme-action);}
/* Keep overlay backgrounds and the account shortcuts in the same palette. */
body:has(#app-shell) #utility-dialog{background:#f3f3f1;color:var(--theme-ink);}
body:has(#app-shell) #utility-dialog::backdrop{background:#211e2b99;}
body:has(#app-shell[data-space=vendor]) #utility-dialog::backdrop{background:#22332d99;}
body:has(#app-shell) #utility-dialog .menu-client-access{background:#503259;border-color:#503259;color:#f3f3f1;}
body:has(#app-shell) #utility-dialog .menu-vendor-access{background:#e3ebe3;border-color:#a2b2a8;color:#253b34;}
body:has(#app-shell) #utility-dialog .menu-client-access:hover{background:#392344;}
body:has(#app-shell) #utility-dialog .menu-vendor-access:hover{background:#d6e0d7;}
body:has(#app-shell) #utility-dialog .dialog-close{background:#f3f3f1;border-color:var(--theme-line);color:var(--theme-ink);}
#app-shell[data-space] #account-view .vendor-account-arrow{color:var(--theme-ink);}
#app-shell[data-space] #account-settings-view .occasion-settings-grid article{background:#f3f3f1;color:var(--theme-ink);border-color:var(--theme-line);}
#app-shell[data-space] #account-settings-view .occasion-settings-grid form{background:transparent;color:var(--theme-ink);}
#app-shell[data-space] #account-settings-view :is(h1,h2,label,.eyebrow){color:var(--theme-ink);}
/* Decorative gold is retired across both workspaces and their dialogs. */
#app-shell[data-space],body:has(#app-shell) dialog{--gold:var(--theme-action);}
#app-shell[data-space] .eyebrow{color:var(--theme-action);}
#app-shell[data-view=plan] .eyebrow{color:#f3f3f1;}
body:has(#app-shell) dialog .eyebrow{color:var(--theme-action);}

/* Listing and comparison dialogs live outside the account shell. */
body:has(#app-shell) :is(.detail-dialog,.comparison-dialog){
 --paper:var(--theme-paper);--mist:var(--theme-soft);--lake-deep:var(--theme-hover);
 background:var(--theme-paper);color:var(--theme-ink);border-color:var(--theme-line);
}
body:has(#app-shell) :is(.detail-dialog,.comparison-dialog) .primary-button{
 background:var(--theme-action)!important;border-color:var(--theme-action);color:#f3f3f1;
}
body:has(#app-shell) :is(.detail-dialog,.comparison-dialog) .primary-button:not(:disabled):hover{
 background:var(--theme-hover)!important;border-color:var(--theme-hover);
}
body:has(#app-shell) :is(.detail-dialog,.comparison-dialog) .secondary-button{
 background:var(--theme-paper);border-color:var(--theme-line);color:var(--theme-ink);
}
body:has(#app-shell) .detail-body :is(.detail-price,.listing-price-guide){background:var(--theme-soft)!important;color:var(--theme-ink);}
body:has(#app-shell) .detail-body .eyebrow{color:var(--theme-muted);}
body:has(#app-shell) :is(.demo-listing-label,.demo-detail-note){background:var(--theme-soft);border-color:var(--theme-line);color:var(--theme-muted);}
body:has(#app-shell) :is(.detail-dialog,.comparison-dialog)::backdrop{background:#211e2b99;}
body:has(#app-shell[data-space=vendor]) :is(.detail-dialog,.comparison-dialog)::backdrop{background:#22332d99;}

/* A quiet area label uses the existing header marker, without extra controls. */
#app-shell[data-view=plan] .current-space-marker:not([hidden]){display:flex!important;background:transparent;border:0;color:#f3f3f1;padding:0 28px 8px;font-size:11px;letter-spacing:.04em;}
body:has(#app-shell) #utility-dialog .menu-area-switch{color:var(--theme-ink);text-align:left;min-height:44px;}
#app-shell .account-shared-login-note{color:var(--theme-muted);font-size:.875rem;line-height:1.5;}

#app-shell .sample-listings-section{margin-top:24px;border-top:1px solid var(--theme-line);padding-top:14px;}
#app-shell .sample-listings-section>summary{min-height:44px;cursor:pointer;color:var(--theme-ink);padding:10px 0;}
body:has(#app-shell) [data-platform-report=listing]{display:block;min-height:44px;text-decoration:underline;text-underline-offset:3px;}

/* Every account dialog uses the current role, including live listing details. */
body:has(#app-shell) dialog .primary-button{background:var(--theme-action)!important;border-color:var(--theme-action);color:#f3f3f1;}
body:has(#app-shell) dialog .primary-button:not(:disabled):hover{background:var(--theme-hover)!important;border-color:var(--theme-hover);}

/* Planner examples are hints, never entered values. */
#app-shell[data-view=plan] .brief-field input::placeholder{color:#6b6071;opacity:1;font-weight:400;}

/* Shared champagne accents: fine outlines and selection cues, with pearl text. */
body:has(#app-shell){--accent-gold:#c3aa76;--accent-gold-ink:#806538;}
#app-shell[data-view=plan] #header-menu,
#app-shell[data-space=vendor][data-view=vendor-home] .app-header #header-menu{color:var(--accent-gold)!important;}
#app-shell[data-view=plan] .event-chip[aria-pressed=true]{background:#ded4e1;border-color:var(--accent-gold);box-shadow:inset 0 0 0 1px var(--accent-gold);}
#app-shell[data-view=plan] :is(.build-event,.round-submit),
#app-shell[data-space]:not([data-view=plan]) .primary-button,
body:has(#app-shell) dialog .primary-button{border-color:var(--accent-gold);box-shadow:inset 0 0 0 1px var(--accent-gold)!important;}
#app-shell[data-space] .bottom-nav button[aria-current=page]{box-shadow:inset 0 -2px var(--accent-gold);}
#app-shell[data-space=vendor] .vendor-welcome-steps li::marker{color:var(--accent-gold-ink);}
#app-shell[data-space=vendor] .vendor-welcome-trial{border-color:var(--accent-gold);}
#app-shell[data-space] .language-switch button[aria-pressed=true]{box-shadow:inset 0 -2px var(--accent-gold);}

/* Both homepages share a centred wordmark and equal-width side slots. */
#app-shell:is([data-view=plan],[data-view=vendor-home]) .app-header{
 display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px;gap:8px 12px;
 width:100%;max-width:none;box-sizing:border-box;margin:0;height:auto!important;
 padding:16px 22px!important;align-items:center;
}
#app-shell:is([data-view=plan],[data-view=vendor-home]) .app-header .app-brand{
 position:static!important;inset:auto!important;transform:none!important;
 grid-column:2;grid-row:1;justify-self:center;margin:0!important;
 width:max-content;max-width:100%;font-size:1.125rem;
}
#app-shell:is([data-view=plan],[data-view=vendor-home]) .app-header .header-actions{display:contents;}
#app-shell:is([data-view=plan],[data-view=vendor-home]) .app-header #header-menu{grid-column:3;grid-row:1;justify-self:end;}
#app-shell[data-view=plan] .app-header .language-switch{position:static!important;grid-column:1/-1;grid-row:2;justify-self:end;width:max-content;}
#app-shell[data-view=plan] .app-header [data-admin-open]{grid-column:1/-1;grid-row:3;justify-self:end;}

/* Comparison headers follow the active area instead of the legacy blue fill. */
body:has(#app-shell) .comparison-table thead th{background:var(--theme-soft);color:var(--theme-ink);}
body:has(#app-shell) .comparison-table tbody th{background:var(--theme-paper);color:var(--theme-ink);}

/* Browse captions and enhanced picker values must not inherit legacy blue. */
#app-shell[data-space] #browse-view .browse-filter-panel :is(.picker-pill,.browse-extra-filters label){color:var(--theme-muted)}
#app-shell[data-space] #browse-view .browse-filter-panel :is(.location-picker-trigger,select,.browse-filter-toolbar){color:var(--theme-ink)}
#app-shell[data-space] #browse-view #vendor-search::placeholder{color:var(--theme-muted)}
#app-shell[data-space] #browse-view #approved-listings .field-hint{color:var(--theme-muted)}

/* Inner-page controls use the same palette, including browser autofill. */
#app-shell[data-space]:not([data-view=plan]) .app-header #header-menu{background:transparent;border-color:transparent;box-shadow:none;color:var(--theme-ink)}
#app-shell[data-space]:not([data-view=plan]) .app-header #header-menu:is(:hover,:focus-visible,:active){background:var(--theme-soft);border-color:transparent;box-shadow:none}
body:has(#app-shell) .password-field>.password-visibility{transform:translateY(-50%)!important;transition:none!important;animation:none!important;background:transparent!important;border:0;box-shadow:none!important;color:var(--theme-ink)}
body:has(#app-shell) .password-field>.password-visibility:hover{background:transparent!important}
body:has(#app-shell) .password-field>.password-visibility:focus-visible{outline:2px solid var(--accent-gold,#806538);outline-offset:-2px}
#app-shell input:-webkit-autofill{ -webkit-box-shadow:0 0 0 1000px #fcfcfb inset!important;box-shadow:0 0 0 1000px #fcfcfb inset!important;-webkit-text-fill-color:var(--theme-ink)!important;caret-color:var(--theme-ink)}
#app-shell input:autofill{box-shadow:0 0 0 1000px #fcfcfb inset!important;color:var(--theme-ink);caret-color:var(--theme-ink)}

/* Share fallback follows active workspace theme. */
#utility-dialog #copy-link{background:#f3f3f1;color:var(--theme-ink,#30283c);border:1px solid var(--theme-line,#c6bdcb)}
#utility-dialog #copy-link:focus{outline:2px solid var(--theme-action,#503259);outline-offset:2px}

#client-body .request-card[hidden]{display:none!important}

/* Toasts live outside the app shell, so use the active space explicitly. */
body:has(#app-shell[data-space=client]) #toast{background:#503259!important;color:#f5f4ef!important;border:1px solid #bba36d}
body:has(#app-shell[data-space=vendor]) #toast{background:#294b43!important;color:#f5f4ef!important;border:1px solid #bba36d}

#app-shell #vendor-onboarding-form #vendor-save-feedback{background:#edf1eb!important;color:#29483c!important;border-color:#8ba495!important;border-left:3px solid #547565!important}
