/* Original RCW typography, layout and components remain unchanged. */
:root:root:not([data-crm-theme="olive"]){--crm-primary:#c1a05a;--crm-primary-hover:#d6b77a;--crm-primary-border:#c1a05a;--crm-on-primary:#1f2420;--crm-focus:#c1a05a}
.brand .vetrasa-full-logo,.login-brand .vetrasa-full-logo{display:block;width:180px!important;height:auto!important;max-width:100%;object-fit:contain;background:transparent;border-radius:8px;padding:8px}.brand{min-height:0!important}.login-brand .vetrasa-full-logo{width:210px!important}@media(max-width:680px){.brand .vetrasa-full-logo{width:120px!important}}
.login>.vetrasa-full-logo{display:block;width:210px;height:auto;max-width:100%;margin:0 auto 24px;background:transparent;border-radius:8px;padding:8px}.brand .vetrasa-full-logo{background:#f3f1e9}
.sidebar .brand .vetrasa-full-logo{aspect-ratio:993/797!important;max-height:none!important;filter:var(--vetrasa-logo-filter)!important;opacity:1!important}@media(max-width:680px){.sidebar .brand{width:164px!important}.sidebar .brand .vetrasa-full-logo{width:164px!important}.mobile-menu-toggle{align-self:center}}
.board-card{min-width:0}.board-card-open{min-width:0}.board-card:has(.board-card-claim){display:flex;flex-direction:column}.board-card-title,.board-card-owner{overflow-wrap:anywhere}
/* Keep the unassigned-deal action from consuming the title column. */
.board-card:has(>.deal-contact-actions)>.board-card-open{grid-column:1;grid-row:1}
.board-card:has(>.deal-contact-actions)>.deal-contact-actions{grid-column:2;grid-row:1}
.board-card>[data-action="claim-deal"]{grid-column:1/-1;grid-row:2;margin:0 8px 8px;width:calc(100% - 16px)}

/* Immutable vertical alpha PNG: no logo tile, border, halo or horizontal replacement. */
:root{--vetrasa-logo-filter:brightness(0) invert(1)}
.sidebar .brand,.sidebar .brand .vetrasa-full-logo,.login>.vetrasa-full-logo{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.sidebar .brand .vetrasa-full-logo,.login>.vetrasa-full-logo{padding:0!important;filter:var(--vetrasa-logo-filter,none)!important}
/* Exact core colours from the preserved Vetrasa request form. */
:root:root[data-crm-theme="olive"]{
 --crm-text:#202720;--crm-muted:#475444;--crm-line:#c7d0bc;--crm-focus:#49783b;
 --crm-background:#f3f1e9;--crm-glass:#fffefa;--crm-chrome:#e5e9d8;
 --crm-mobile-header:#e5e9d8;--crm-mobile-menu:#f3f1e9;--crm-dialog:#fffefa;
 --crm-raised:#e5e9d8;--crm-control:#e5e9d8;--crm-inset:#f3f1e9;--crm-field:#fff;
 --crm-solid:#fffefa;--crm-hover:#e5e9d8;--crm-primary:#273f2e;--crm-primary-hover:#506743;
 --crm-primary-border:#273f2e;--crm-on-primary:#fff;--crm-backdrop:#20272080;
 --crm-link:#273f2e;--crm-message-mine:#e5e9d8;--vetrasa-logo-filter:none;
 --crm-error:#8b2f24;--crm-error-line:#b9827b;--crm-error-surface:#fff2ef;
 --crm-warning:#68531d;--crm-warning-line:#a89373;--crm-warning-surface:#fff8e6;
 color-scheme:light;background:var(--crm-background);accent-color:var(--crm-primary);
}
[data-crm-theme="olive"] .sidebar nav button.active{background:#fffefa;border-color:#c7d0bc}
[data-crm-theme="olive"] :is(.owner-filter button[aria-pressed=true],.tabs button[aria-selected=true]){border-color:#49783b}
[data-crm-theme="olive"] .overview-stage progress::-webkit-progress-value{background:#506743}
[data-crm-theme="olive"] .overview-stage progress::-moz-progress-bar{background:#506743}
[data-crm-theme="olive"] .overview-stage progress::-webkit-progress-bar{background:#d6d8ca}
[data-crm-theme="olive"] .liquid-glass-navigation:not([hidden]){border-color:#c7d0bc}
.interface-theme-swatch--olive{background:#f3f1e9;border-color:#c7d0bc}
.interface-theme-swatch--olive>span{background:#e5e9d8;border-color:#c7d0bc}
.interface-theme-swatch--olive>span+span{background:linear-gradient(#273f2e 0 40%,transparent 40% 54%,#fffefa 54%)}

/* Use the immutable PNG luminance times its native alpha, preserving letter cutouts. */
:root{--vetrasa-logo-filter:url(#vetrasa-logo-alpha) brightness(0) invert(1)}
:root:root[data-crm-theme="olive"]{--vetrasa-logo-filter:url(#vetrasa-logo-alpha) brightness(0)}

/* Keep the shared logo alpha filter out of the login grid. */
.vetrasa-logo-filters{position:absolute;width:0;height:0;pointer-events:none}
