/* Workspace settings drawer: positioning and the per-workspace brand themes.
   Control styling comes from erp.css so the drawer matches every other form. */
.rd-workspace-button{border:0;background:transparent;text-align:left;font:inherit;cursor:pointer;border-radius:var(--hrmc-r-control,6px)}
.rd-workspace-button:hover{background:var(--hrmc-surface-muted)}
.rd-workspace-button:focus-visible{outline:2px solid var(--hrmc-brand);outline-offset:2px}
.rd-settings-trigger{flex:none;width:38px;padding:6px}
.rd-settings{position:fixed;inset:0 0 0 auto;width:360px;max-width:100vw;background:var(--hrmc-surface,#fff);color:var(--hrmc-text,#253c38);z-index:2999;box-shadow:var(--hrmc-e3);overflow:auto;box-sizing:border-box}
.rd-settings[hidden],.rd-settings-backdrop[hidden]{display:none!important}
.rd-settings header{display:flex;align-items:center;justify-content:space-between}
.rd-settings h2{margin:0;letter-spacing:0}
.rd-settings .rz-dropdown{width:100%;max-width:100%}
.rd-theme-options>div{display:flex;gap:10px;flex-wrap:wrap}
.rd-theme-swatch{position:relative;width:32px;height:32px;cursor:pointer;display:block}
.rd-theme-swatch input{position:absolute;width:32px;height:32px;margin:0;opacity:0;cursor:pointer}
.rd-theme-swatch span{display:block;width:26px;height:26px;margin:3px;border-radius:50%;background:var(--swatch);pointer-events:none;box-shadow:inset 0 0 0 1px rgb(0 0 0 / 12%),0 1px 3px rgb(0 0 0 / 20%)}
.rd-theme-swatch input:checked+span{outline:2px solid var(--hrmc-text);outline-offset:2px}
.rd-theme-swatch input:focus-visible+span{outline:3px solid var(--hrmc-brand);outline-offset:3px}
body:has([data-workspace-theme="purple"]),[data-workspace-theme="purple"]{--hrmc-brand:#6144ce;--hrmc-brand-strong:#5236b5;--hrmc-brand-hover:#49309e;--hrmc-brand-soft:#f0ecfa;--hrmc-brand-edge:#b9abe5;--hrmc-action-primary:#5236b5;--hrmc-action-primary-hover:#49309e;--hrmc-hero-start:#2a1c5e;--hrmc-hero-end:#49309e;--hrmc-hero-eyebrow:#d6ccf5}
body:has([data-workspace-theme="blue"]),[data-workspace-theme="blue"]{--hrmc-brand:#355c98;--hrmc-brand-strong:#2f5187;--hrmc-brand-hover:#274672;--hrmc-brand-soft:#eaf0f8;--hrmc-brand-edge:#97b2d8;--hrmc-action-primary:#2f5187;--hrmc-action-primary-hover:#274672;--hrmc-hero-start:#172a48;--hrmc-hero-end:#2f5187;--hrmc-hero-eyebrow:#bfd3f0}
body:has([data-workspace-theme="green"]),[data-workspace-theme="green"]{--hrmc-brand:#28753e;--hrmc-brand-strong:#236636;--hrmc-brand-hover:#1d592e;--hrmc-brand-soft:#eaf5ed;--hrmc-brand-edge:#8dbf9c;--hrmc-action-primary:#236636;--hrmc-action-primary-hover:#1d592e;--hrmc-hero-start:#12351e;--hrmc-hero-end:#236636;--hrmc-hero-eyebrow:#b6e0c3}
body:has([data-workspace-theme="pink"]),[data-workspace-theme="pink"],body:not(:has(.hrmc-shell)){--hrmc-brand:#913052;--hrmc-brand-strong:#913052;--hrmc-brand-hover:#67233c;--hrmc-brand-soft:#fbeef3;--hrmc-brand-edge:#db9fb5;--hrmc-action-primary:#913052;--hrmc-action-primary-hover:#67233c;--hrmc-hero-start:#4a1529;--hrmc-hero-end:#913052;--hrmc-hero-eyebrow:#f3c5d5}
body:has([data-workspace-theme="red"]),[data-workspace-theme="red"]{--hrmc-brand:#b52e34;--hrmc-brand-strong:#9e272c;--hrmc-brand-hover:#8b2126;--hrmc-brand-soft:#fbeeee;--hrmc-brand-edge:#e0a0a3;--hrmc-action-primary:#9e272c;--hrmc-action-primary-hover:#8b2126;--hrmc-hero-start:#4d1215;--hrmc-hero-end:#9e272c;--hrmc-hero-eyebrow:#f5c3c5}
body:has([data-workspace-theme="graphite"]),[data-workspace-theme="graphite"]{--hrmc-brand:#4a5a66;--hrmc-brand-strong:#374151;--hrmc-brand-hover:#202936;--hrmc-brand-soft:#eef0f3;--hrmc-brand-edge:#a2abba;--hrmc-action-primary:#374151;--hrmc-action-primary-hover:#202936;--hrmc-hero-start:#1b222c;--hrmc-hero-end:#3c4d5b;--hrmc-hero-eyebrow:#c3ccd8}
@media(max-width:768px){.rd-settings-trigger{width:34px;min-height:34px}.hrmc-header-content{gap:6px}}
@media print{.rd-settings,.rd-settings-backdrop,.rd-settings-trigger{display:none!important}}
/* Dark appearance keeps each workspace colour instead of falling back to the HRMC amber.
   The accent lightens for contrast on dark surfaces; the sidebar deepens to the hover shade. */
/* Any workspace colour without its own dark block (the legacy "cosmosoft" amber) still needs
   sidebar text tuned to a saturated bar; HRMC's dark tokens measure 1.92:1 on one. */
@media (prefers-color-scheme:dark){
 :root:not([data-hrmc-appearance="light"]) .hrmc-shell[data-workspace-theme]{--hrmc-sidebar-text:#fff;--hrmc-sidebar-muted:color-mix(in srgb,#fff 84%,var(--hrmc-brand-strong));--hrmc-sidebar-edge:var(--hrmc-brand-edge)}
}
:root[data-hrmc-appearance="dark"] .hrmc-shell[data-workspace-theme]{--hrmc-sidebar-text:#fff;--hrmc-sidebar-muted:color-mix(in srgb,#fff 84%,var(--hrmc-brand-strong));--hrmc-sidebar-edge:var(--hrmc-brand-edge)}
/* The legacy "Original" amber needs the same dark treatment as the named colours: HRMC
   lightens its brand for dark and flips on-brand to near-black, which measured 1.19:1
   on the dark header and 4.31:1 on the primary button. */
@media (prefers-color-scheme:dark){
 :root:not([data-hrmc-appearance="light"]) .hrmc-shell[data-workspace-theme="cosmosoft"]{--hrmc-brand:#e8913a;--hrmc-brand-strong:#a85400;--hrmc-brand-hover:#f0a961;--hrmc-brand-soft:#2b1f14;--hrmc-brand-edge:#f0a961;--hrmc-on-brand:#fff;--hrmc-action-primary:#a85400;--hrmc-action-primary-hover:#c96a18;--hrmc-sidebar-text:#fff;--hrmc-sidebar-muted:color-mix(in srgb,#fff 84%,var(--rd-sidebar-bg));--hrmc-sidebar-edge:#f0a961;--hrmc-hero-eyebrow:#f0a961}
}
:root[data-hrmc-appearance="dark"] .hrmc-shell[data-workspace-theme="cosmosoft"]{--hrmc-brand:#e8913a;--hrmc-brand-strong:#a85400;--hrmc-brand-hover:#f0a961;--hrmc-brand-soft:#2b1f14;--hrmc-brand-edge:#f0a961;--hrmc-on-brand:#fff;--hrmc-action-primary:#a85400;--hrmc-action-primary-hover:#c96a18;--hrmc-sidebar-text:#fff;--hrmc-sidebar-muted:color-mix(in srgb,#fff 84%,var(--rd-sidebar-bg));--hrmc-sidebar-edge:#f0a961;--hrmc-hero-eyebrow:#f0a961}
@media (prefers-color-scheme:dark){
 :root:not([data-hrmc-appearance="light"]) .hrmc-shell[data-workspace-theme="pink"]{--hrmc-brand:#e08fae;--hrmc-brand-strong:#913052;--hrmc-brand-hover:#e8a3bd;--hrmc-brand-soft:#2b141d;--hrmc-brand-edge:#f0b8cb;--hrmc-on-brand:#fff;--hrmc-action-primary:#a63a5e;--hrmc-action-primary-hover:#bf4a70;--hrmc-sidebar-active:#5a1f35;--hrmc-sidebar-hover:#7a2946;--hrmc-sidebar-edge:#f0b8cb;--hrmc-hero-eyebrow:#f0b8cb;--hrmc-sidebar-text:#fff;--hrmc-sidebar-muted:color-mix(in srgb,#fff 84%,var(--hrmc-brand-strong))}
 :root:not([data-hrmc-appearance="light"]) .hrmc-shell[data-workspace-theme="purple"]{--hrmc-brand:#b7a3f0;--hrmc-brand-strong:#5236b5;--hrmc-brand-hover:#c6b6f5;--hrmc-brand-soft:#1f1834;--hrmc-brand-edge:#d2c6f8;--hrmc-on-brand:#fff;--hrmc-action-primary:#6144ce;--hrmc-action-primary-hover:#7457dd;--hrmc-sidebar-active:#3a2681;--hrmc-sidebar-hover:#49309e;--hrmc-sidebar-edge:#d2c6f8;--hrmc-hero-eyebrow:#d2c6f8;--hrmc-sidebar-text:#fff;--hrmc-sidebar-muted:color-mix(in srgb,#fff 84%,var(--hrmc-brand-strong))}
 :root:not([data-hrmc-appearance="light"]) .hrmc-shell[data-workspace-theme="blue"]{--hrmc-brand:#9cb8e3;--hrmc-brand-strong:#2f5187;--hrmc-brand-hover:#b3c9ea;--hrmc-brand-soft:#14203a;--hrmc-brand-edge:#c4d6f0;--hrmc-on-brand:#fff;--hrmc-action-primary:#355c98;--hrmc-action-primary-hover:#4470b3;--hrmc-sidebar-active:#1f3a63;--hrmc-sidebar-hover:#274672;--hrmc-sidebar-edge:#c4d6f0;--hrmc-hero-eyebrow:#c4d6f0;--hrmc-sidebar-text:#fff;--hrmc-sidebar-muted:color-mix(in srgb,#fff 84%,var(--hrmc-brand-strong))}
 :root:not([data-hrmc-appearance="light"]) .hrmc-shell[data-workspace-theme="green"]{--hrmc-brand:#8fcfa3;--hrmc-brand-strong:#236636;--hrmc-brand-hover:#a6dbb6;--hrmc-brand-soft:#132a1a;--hrmc-brand-edge:#bce5c8;--hrmc-on-brand:#fff;--hrmc-action-primary:#28753e;--hrmc-action-primary-hover:#33904d;--hrmc-sidebar-active:#174a27;--hrmc-sidebar-hover:#1d592e;--hrmc-sidebar-edge:#bce5c8;--hrmc-hero-eyebrow:#bce5c8;--hrmc-sidebar-text:#fff;--hrmc-sidebar-muted:color-mix(in srgb,#fff 84%,var(--hrmc-brand-strong))}
 :root:not([data-hrmc-appearance="light"]) .hrmc-shell[data-workspace-theme="red"]{--hrmc-brand:#ec9296;--hrmc-brand-strong:#9e272c;--hrmc-brand-hover:#f1a8ab;--hrmc-brand-soft:#2e1416;--hrmc-brand-edge:#f5c3c5;--hrmc-on-brand:#fff;--hrmc-action-primary:#b52e34;--hrmc-action-primary-hover:#cf3a41;--hrmc-sidebar-active:#6f1b1f;--hrmc-sidebar-hover:#8b2126;--hrmc-sidebar-edge:#f5c3c5;--hrmc-hero-eyebrow:#f5c3c5;--hrmc-sidebar-text:#fff;--hrmc-sidebar-muted:color-mix(in srgb,#fff 84%,var(--hrmc-brand-strong))}
 :root:not([data-hrmc-appearance="light"]) .hrmc-shell[data-workspace-theme="graphite"]{--hrmc-brand:#b4c0cd;--hrmc-brand-strong:#374151;--hrmc-brand-hover:#c6d0da;--hrmc-brand-soft:#1c232b;--hrmc-brand-edge:#d3dbe3;--hrmc-on-brand:#fff;--hrmc-action-primary:#4a5a66;--hrmc-action-primary-hover:#5b6d7b;--hrmc-sidebar-active:#242c36;--hrmc-sidebar-hover:#2f3a46;--hrmc-sidebar-edge:#d3dbe3;--hrmc-hero-eyebrow:#d3dbe3;--hrmc-sidebar-text:#fff;--hrmc-sidebar-muted:color-mix(in srgb,#fff 84%,var(--hrmc-brand-strong))}
}
:root[data-hrmc-appearance="dark"] .hrmc-shell[data-workspace-theme="pink"]{--hrmc-brand:#e08fae;--hrmc-brand-strong:#913052;--hrmc-brand-hover:#e8a3bd;--hrmc-brand-soft:#2b141d;--hrmc-brand-edge:#f0b8cb;--hrmc-on-brand:#fff;--hrmc-action-primary:#a63a5e;--hrmc-action-primary-hover:#bf4a70;--hrmc-sidebar-active:#5a1f35;--hrmc-sidebar-hover:#7a2946;--hrmc-sidebar-edge:#f0b8cb;--hrmc-hero-eyebrow:#f0b8cb;--hrmc-sidebar-text:#fff;--hrmc-sidebar-muted:color-mix(in srgb,#fff 84%,var(--hrmc-brand-strong))}
:root[data-hrmc-appearance="dark"] .hrmc-shell[data-workspace-theme="purple"]{--hrmc-brand:#b7a3f0;--hrmc-brand-strong:#5236b5;--hrmc-brand-hover:#c6b6f5;--hrmc-brand-soft:#1f1834;--hrmc-brand-edge:#d2c6f8;--hrmc-on-brand:#fff;--hrmc-action-primary:#6144ce;--hrmc-action-primary-hover:#7457dd;--hrmc-sidebar-active:#3a2681;--hrmc-sidebar-hover:#49309e;--hrmc-sidebar-edge:#d2c6f8;--hrmc-hero-eyebrow:#d2c6f8;--hrmc-sidebar-text:#fff;--hrmc-sidebar-muted:color-mix(in srgb,#fff 84%,var(--hrmc-brand-strong))}
:root[data-hrmc-appearance="dark"] .hrmc-shell[data-workspace-theme="blue"]{--hrmc-brand:#9cb8e3;--hrmc-brand-strong:#2f5187;--hrmc-brand-hover:#b3c9ea;--hrmc-brand-soft:#14203a;--hrmc-brand-edge:#c4d6f0;--hrmc-on-brand:#fff;--hrmc-action-primary:#355c98;--hrmc-action-primary-hover:#4470b3;--hrmc-sidebar-active:#1f3a63;--hrmc-sidebar-hover:#274672;--hrmc-sidebar-edge:#c4d6f0;--hrmc-hero-eyebrow:#c4d6f0;--hrmc-sidebar-text:#fff;--hrmc-sidebar-muted:color-mix(in srgb,#fff 84%,var(--hrmc-brand-strong))}
:root[data-hrmc-appearance="dark"] .hrmc-shell[data-workspace-theme="green"]{--hrmc-brand:#8fcfa3;--hrmc-brand-strong:#236636;--hrmc-brand-hover:#a6dbb6;--hrmc-brand-soft:#132a1a;--hrmc-brand-edge:#bce5c8;--hrmc-on-brand:#fff;--hrmc-action-primary:#28753e;--hrmc-action-primary-hover:#33904d;--hrmc-sidebar-active:#174a27;--hrmc-sidebar-hover:#1d592e;--hrmc-sidebar-edge:#bce5c8;--hrmc-hero-eyebrow:#bce5c8;--hrmc-sidebar-text:#fff;--hrmc-sidebar-muted:color-mix(in srgb,#fff 84%,var(--hrmc-brand-strong))}
:root[data-hrmc-appearance="dark"] .hrmc-shell[data-workspace-theme="red"]{--hrmc-brand:#ec9296;--hrmc-brand-strong:#9e272c;--hrmc-brand-hover:#f1a8ab;--hrmc-brand-soft:#2e1416;--hrmc-brand-edge:#f5c3c5;--hrmc-on-brand:#fff;--hrmc-action-primary:#b52e34;--hrmc-action-primary-hover:#cf3a41;--hrmc-sidebar-active:#6f1b1f;--hrmc-sidebar-hover:#8b2126;--hrmc-sidebar-edge:#f5c3c5;--hrmc-hero-eyebrow:#f5c3c5;--hrmc-sidebar-text:#fff;--hrmc-sidebar-muted:color-mix(in srgb,#fff 84%,var(--hrmc-brand-strong))}
:root[data-hrmc-appearance="dark"] .hrmc-shell[data-workspace-theme="graphite"]{--hrmc-brand:#b4c0cd;--hrmc-brand-strong:#374151;--hrmc-brand-hover:#c6d0da;--hrmc-brand-soft:#1c232b;--hrmc-brand-edge:#d3dbe3;--hrmc-on-brand:#fff;--hrmc-action-primary:#4a5a66;--hrmc-action-primary-hover:#5b6d7b;--hrmc-sidebar-active:#242c36;--hrmc-sidebar-hover:#2f3a46;--hrmc-sidebar-edge:#d3dbe3;--hrmc-hero-eyebrow:#d3dbe3;--hrmc-sidebar-text:#fff;--hrmc-sidebar-muted:color-mix(in srgb,#fff 84%,var(--hrmc-brand-strong))}
