/* Vendored copy of velora-unified-app/shared/dynamic-island.css (re-vendored 1 Oct 2026 for B-243): Codex's approved Client V12 island,
   byte-identical below this comment; test/wp13b_l2_islands.test.js fails on any drift. Workforce is plain JS behind a strict CSP, so it
   cannot import the shared file: when the shared island changes, put the shared file again under this comment, never edit the copy.
   Workforce-only pieces (buttons as rows, badges, placement) live in styles.css ("islands"). */
/* Elgrace Dynamic Island for Operations, Growth + Business and Employee = Codex's Client V12 island
   (versions/v12/src/navigation-islands.css), palette and motion unchanged: shell 240ms cubic-bezier(.22,1,.36,1),
   items fade 140ms, the bottom pill slides 240ms. Selectors are doubled so they win over each app's older nav rules. */
nav.eg-island.eg-island{
 --v9-glass-ink:#fff;--v9-glass-bg:rgba(109,91,124,.94);--v9-glass-border:rgba(255,255,255,.45);--v9-glass-shadow:0 7px 28px #33244022,0 0 0 4px #b1a5bd38;
 box-sizing:border-box;display:block;isolation:isolate;overflow:hidden;margin:0;gap:0;min-width:0;min-height:0;max-height:none;
 color:var(--v9-glass-ink);background:var(--v9-glass-bg);border:1px solid var(--v9-glass-border);box-shadow:var(--v9-glass-shadow);
 -webkit-backdrop-filter:blur(18px) saturate(115%);backdrop-filter:blur(18px) saturate(115%);
 font-family:inherit;-webkit-tap-highlight-color:transparent;will-change:auto;
 transition:width 240ms cubic-bezier(.22,1,.36,1),height 240ms cubic-bezier(.22,1,.36,1),border-radius 240ms cubic-bezier(.22,1,.36,1)}
:root[data-theme=dark] nav.eg-island.eg-island,:root[data-department-theme=dark] nav.eg-island.eg-island{
 --v9-glass-ink:#f6efff;--v9-glass-bg:rgba(53,43,66,.94);--v9-glass-border:rgba(237,220,255,.2);--v9-glass-shadow:0 7px 28px #0003,0 0 0 4px #b1a5bd16}
:where(nav.eg-island--global){position:absolute;left:0;top:0;z-index:45}
:where(nav.eg-island--context){position:fixed;left:50%;bottom:calc(12px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:44}

nav.eg-island.eg-island .v12-island-trigger{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;min-width:0;height:44px;min-height:44px;gap:8px;margin:0;padding:0 10px;border:0;border-radius:22px;background:transparent;color:inherit;box-shadow:none;font:inherit;font-size:13px;font-weight:500;line-height:1.2;white-space:nowrap;cursor:pointer}
nav.eg-island.eg-island .v12-island-trigger:active{transform:none}
/* V12's own button motion on the trigger and footer buttons (its global `button` rule), stated here so no app's older
   button rule (Business .15s, People `all`, Operations .14s, Employee .17s) changes how the island feels. */
nav.eg-island.eg-island :is(.v12-island-trigger,.v12-island-footer>button){transition:background .2s,transform .2s,box-shadow .2s}
nav.eg-island.eg-island .v12-island-trigger svg{width:19px;height:19px;flex-shrink:0}
nav.eg-island.eg-island :is(a,button):focus-visible{outline:2px solid var(--v9-glass-ink);outline-offset:-4px}
nav.eg-island.eg-island .v12-island-items{opacity:1;visibility:visible;transition:opacity 140ms ease}
nav.eg-island.eg-island.is-collapsed .v12-island-items{opacity:0;visibility:hidden;pointer-events:none}

/* Main island: 82 x 50 pill, opens to a 188px menu. */
nav.eg-island.eg-island--global{width:var(--eg-global-compact-w,82px);max-width:none;height:50px;border-radius:25px;padding:2px}
nav.eg-island.eg-island--global.is-expanded{width:188px;height:var(--island-open-height);max-height:calc(100dvh - 28px);overflow-y:auto;padding:3px;scrollbar-width:none}
nav.eg-island.eg-island--global::-webkit-scrollbar{display:none}
nav.eg-island.eg-island--global.is-collapsed .v12-island-trigger{flex-direction:column;gap:3px;padding:3px 4px}
nav.eg-island.eg-island .v12-island-current{font-size:10.5px;line-height:12px;max-width:calc(var(--eg-global-compact-w,82px) - 8px);overflow:hidden;text-overflow:ellipsis}
nav.eg-island.eg-island--global.is-expanded .v12-island-trigger{justify-content:flex-start;padding-inline:12px}
nav.eg-island.eg-island--global.is-expanded .v12-island-trigger>span{flex:1;text-align:left;font-size:12px}
/* The open menu's width (188 - 3px padding - 1px border, each side) even while the pill is collapsed, so rows never
   reflow during the 240ms spring and the measured open height is the real one. */
nav.eg-island.eg-island--global .v12-island-items{display:flex;flex-direction:column;width:180px}
nav.eg-island.eg-island--global .v12-island-items>a{display:flex;align-items:center;gap:11px;min-height:52px;height:auto;margin:2px 0;padding:12px 13px;border-radius:20px;border:1px solid transparent;background:transparent;color:inherit;font-size:13px;line-height:1.3;white-space:nowrap;text-decoration:none}
nav.eg-island.eg-island--global .v12-island-items>a[aria-current=page]{background:#ffffff1c;border-color:#ffffff30;font-weight:600}
nav.eg-island.eg-island .v12-island-items>a i{font-style:normal;margin-left:6px;padding:0 6px;border-radius:9px;background:#ffffff2e;font-size:11px}
nav.eg-island.eg-island .v12-island-footer{border-top:1px solid var(--v9-glass-border);margin-top:4px;padding-top:3px}
nav.eg-island.eg-island .v12-island-footer>:is(button,a){display:flex;align-items:center;gap:10px;min-height:40px;width:100%;margin:0;padding:8px 13px;border:0;border-radius:17px;background:transparent;color:inherit;font:inherit;font-size:12px;text-decoration:none}

/* Section island: 158 x 50 pill at the bottom, opens to a tab row with a sliding pill. */
nav.eg-island.eg-island--context{width:158px;height:50px;max-width:calc(100vw - 20px);border-radius:25px;padding:2px}
nav.eg-island.eg-island--context.is-expanded{width:min(calc(var(--island-tabs)*var(--eg-tab-min,82px) + 16px),calc(100vw - 16px));height:98px;border-radius:27px;padding:3px 6px 5px}
nav.eg-island.eg-island--context.is-expanded>.v12-island-trigger{height:32px;min-height:32px;padding:0;gap:7px}
nav.eg-island.eg-island .v12-island-grip{height:3px;width:23px;border-radius:3px;background:currentColor;opacity:.6}
nav.eg-island.eg-island--context .v12-island-items{--tab-gap:var(--eg-tab-gap,3px);position:relative;display:grid;grid-template-columns:repeat(var(--island-tabs),minmax(0,1fr));gap:var(--tab-gap);width:auto}
nav.eg-island.eg-island--context .v12-island-items::before{content:'';position:absolute;inset-block:0;left:0;z-index:-1;width:calc((100% - (var(--island-tabs) - 1)*var(--tab-gap))/var(--island-tabs));border:1px solid #ffffff32;border-radius:18px;background:#ffffff1c;pointer-events:none;transform:translateX(calc(var(--island-active-index)*(100% + var(--tab-gap))));transition:transform 240ms cubic-bezier(.22,1,.36,1)}
nav.eg-island.eg-island--context .v12-island-items>:is(a,button){display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;height:56px;min-height:56px;min-width:0;margin:0;padding:7px 3px;border:0;border-radius:18px;background:transparent;color:inherit;font-size:12px;line-height:1.3;text-align:center;white-space:nowrap;text-decoration:none}
nav.eg-island.eg-island--context .v12-island-items>:is([aria-current=page],[aria-pressed=true]){font-weight:600}
nav.eg-island.eg-island--context .v12-island-items svg{width:20px;height:20px;stroke-width:1.8}

@media(hover:hover) and (pointer:fine){
 nav.eg-island.eg-island :is(.v12-island-trigger,.v12-island-footer>button,.v12-island-footer>a,.v12-island-items>a):hover{background:#ffffff12}
 nav.eg-island.eg-island--global .v12-island-items>a[aria-current=page]:hover{background:#ffffff1c}
}
@media(max-width:650px){
 nav.eg-island.eg-island--global{--eg-global-compact-w:64px}
 nav.eg-island.eg-island .v12-island-current{font-size:10px}
 nav.eg-island.eg-island--context.is-expanded{padding-inline:4px}
 nav.eg-island.eg-island--context .v12-island-items{--tab-gap:2px}
 nav.eg-island.eg-island--context .v12-island-items>:is(a,button){font-size:11px;padding-inline:1px}
 /* Phones: the footer rows (theme, Ask AI, the person) are 44 px tap targets; the open height is measured. */
 nav.eg-island.eg-island .v12-island-footer>:is(button,a){min-height:44px}
}
@media(max-width:350px){nav.eg-island.eg-island--context .v12-island-items>:is(a,button){font-size:10.5px}}
@media(prefers-reduced-motion:reduce){nav.eg-island.eg-island :is(.v12-island-trigger,.v12-island-footer>button),nav.eg-island.eg-island,nav.eg-island.eg-island .v12-island-items,nav.eg-island.eg-island--context .v12-island-items::before{transition:none}}
@media(prefers-reduced-transparency:reduce){nav.eg-island.eg-island{background:#756583;backdrop-filter:none;-webkit-backdrop-filter:none}:root[data-theme=dark] nav.eg-island.eg-island{background:#352b42}}
/* HOTFIX-V605 H2: the host of a sheet opened from a footer row (IslandPortal) takes no room; the sheet itself is a top-layer <dialog>. */
.eg-island-portal{display:contents}
