:root{
    /* Owner-managed palette. These fallbacks match the current public identity. */
    --theme-primary:#0B1F3A;
    --theme-secondary:#123B68;
    --theme-background:#F8FAFC;
    --theme-surface:#FFFFFF;
    --theme-text:#172033;
    --theme-text-muted:#64748B;
    --theme-border:#D6DEE8;
    --theme-button-primary:#0B1F3A;
    --theme-button-primary-text:#FFFFFF;

    /* Derived with the same deterministic algorithm used by dashboard.theme. */
    --theme-primary-hover:#123B68;
    --theme-primary-active:#071A2F;
    --theme-primary-soft:#EDF4FF;
    --theme-secondary-soft:#E3E7ED;
    --theme-link:#0B1F3A;
    --theme-focus-ring:#0B1F3A;
    --theme-button-primary-hover:#123B68;
    --theme-inverse-surface:#050505;
    --theme-shadow-color:#071A2F;

    /* Fixed semantic and service colors are intentionally outside the Theme. */
    --semantic-success:#1E7D46;
    --semantic-warning:#9A6A00;
    --semantic-danger:#B42318;
    --semantic-info:#2563EB;
    --service-whatsapp:#25D366;
    --rating-star:#B7791F;
    --media-overlay:#050505;

    /* Compatibility aliases: preserve exact disabled-theme visuals. */
    --primary:var(--theme-primary);
    --primary-2:var(--theme-primary-hover);
    --primary-gradient:linear-gradient(135deg,var(--theme-primary-active),var(--theme-primary),var(--theme-primary-hover));
    --primary-green:var(--theme-primary);
    --primary-green-dark:var(--theme-primary-hover);
    --header-bg:var(--theme-primary);
    --page-background:#FFFFFF;
    --page-gray:#FFFFFF;
    --card:#FFFFFF;
    --line:#D6DEE8;
    --line-strong:#CBD5E1;
    --muted:#64748B;
    --text-dark:#243528;
    --surface-dark:#050505;
    --surface-dark-2:#0B0B0B;
    --home-bg:#F8FAFC;
    --home-card:#FFFFFF;
    --home-line:#D6DEE8;
    --home-muted:#64748B;
    --home-soft:#EDF4FF;
    --sec-navy:#0B1F3A;
    --sec-navy-soft:#1F3A5F;
    --sec-ink:#111827;
    --sec-muted:#6B7280;
    --sec-line:#E5E7EB;
    --sec-bg-soft:#EEF2F7;
    --legacy-add-button:#C9A227;
    --legacy-add-button-hover:#D8B02F;
    --legacy-add-button-text:#0B1F3A;
    --control-border:#D1D5DB;
    --control-border-strong:#CBD5E1;

    /* Exact legacy fallbacks; runtime values switch only after explicit activation. */
    --legacy-primary:#0B1F3A;
    --legacy-primary-hover:#123B68;
    --legacy-primary-active:#071A2F;
    --legacy-primary-soft:#E8F3E8;
    --legacy-accent:#6FAF74;
    --legacy-background:#FAF7EF;
    --legacy-surface:#FFFDF8;
    --legacy-text:#243528;
    --legacy-text-muted:#6E7B67;
    --legacy-border:#E5D8C3;
    --legacy-secondary-soft:#F3E8D2;
    --legacy-secondary:#D8C3A5;
    --legacy-link:#1266B0;

    --theme-auth-primary:#0B1F3A;
    --theme-auth-primary-hover:#123B68;
    --theme-auth-background:#F4F6FA;
    --theme-auth-surface:#FFFFFF;
    --theme-auth-border:#E2E8F0;
    --theme-auth-field:#F8FAFC;
    --theme-auth-text:#1F2A44;
    --theme-auth-text-muted:#64748B;

    --profile-primary:#143A63;
    --profile-primary-hover:#0E2A47;
    --profile-primary-soft:#EEF5FB;
    --profile-accent:#2D6EA6;
    --profile-background:#F6F8FB;
    --profile-surface:#FFFFFF;
    --profile-border:#D9E6F2;
    --profile-text:#172B3F;
    --profile-text-muted:#6A7684;

    --listing-flow-primary:#06613A;
    --listing-flow-primary-hover:#034327;
    --listing-flow-primary-soft:#EEF8F2;
    --listing-flow-background:#FBFAF8;
    --listing-flow-surface:#FFFFFF;
    --listing-flow-text:#171717;
    --listing-flow-text-muted:#7A7F88;
    --listing-flow-border:#E7E2DC;
    --listing-flow-button:#06613A;
    --listing-flow-button-text:#FFFFFF;
    --listing-media-primary:#065F35;
    --listing-media-primary-hover:#034326;
    --listing-media-primary-soft:#F3FAF6;
    --listing-media-text-muted:#777C86;
    --listing-media-button:#065F35;
    --legacy-publish-button:#6FAF74;

    --detail-background:#FDFCFB;
    --detail-surface:#FFFFFF;
    --detail-text:#1F2428;
    --detail-text-muted:#7A7F88;
    --detail-border:#E8E5DF;
    --category-text-muted:#667085;
    --messaging-action:#123B68;
    --messaging-avatar-soft:#E8F0F8;
    --messaging-row-border:#EDF1F5;
    --messaging-listing-link:#355D87;
    --messaging-muted-icon:#8AA4C8;
    --thread-header-surface:#F8F5EF;
    --thread-header-text:#111B21;
    --thread-header-border:#E6E1D9;
    --thread-control-soft:#EDF4FB;
    --thread-menu-border:#D6E2EC;
    --thread-focus:#60A5FA;
    --thread-link:#123B68;
    --thread-action:#5B8FB3;
    --thread-action-soft:#EAF2F8;
    --thread-composer-border:#D8E3EC;
    --quick-message-text:#111827;
    --quick-message-muted:#7B8490;
    --quick-message-field:#F1F5F9;
    --quick-message-close:#EEF1F4;
    --quick-message-focus:#2563EB;
    --public-page-background:#F6F8FB;
    --public-page-text:#25384B;
    --public-page-muted:#5D6E80;
    --public-body-text:#465A6E;
    --public-border:#E0E7EF;
    --about-text:#172B3F;
    --about-muted:#526478;
    --about-border:#DCE4ED;
    --about-card-border:#E1E7EE;
    --about-safe-background:#F4F8FC;
    --about-safe-border:#CAD8E8;
    --contact-muted:#5F7082;
    --contact-input-border:#DCE4ED;
    --commission-summary-background:#FDFEFF;
    --avatar-gradient-soft:#DCE7F1;
    --not-found-border:#E5E7EB;
    --password-reset-primary:#2F6B3F;
}
