/* look.css - the expressive look (amendment A2; Figma page 12 "WEB v2 · EXPRESSIVE", collection "TOT / Mobile Look v1").
   Active only under <html data-look="expressive">; presets Daylight Bento (Classic), Indigo Horizon (Professional),
   Aurora Command (Enterprise) and Midnight Pro (dark). Colours and radii come from the generated tokens.css (--hrms-look-*);
   no hex literals here (DR-51) and logical properties only (DR-60). Poppins (en) and Alexandria (ar) are self-hosted
   (fonts/fonts.css); the font stack comes from the type-scale tokens (--hrms-font-family, TASK-DSC-011). */

:root[data-look="expressive"] {
    --hrms-look-font: "Poppins", "Cairo", system-ui, sans-serif;
    --hrms-look-font-ar: "Alexandria", "Cairo", system-ui, sans-serif;
    --hrms-shadow-card: 0 12px 32px var(--hrms-look-shadow);
    --hrms-look-nav-fg: var(--hrms-look-text-secondary);
    --hrms-look-glass: none;
}

:root[data-look="expressive"][data-level="professional"],
:root[data-look="expressive"][data-scheme="dark"] {
    --hrms-look-nav-fg: var(--hrms-look-nav-icon);
}

:root[data-look="expressive"][data-level="enterprise"]:is(:not([data-scheme="dark"]), [data-style="command"]) {
    --hrms-look-glass: blur(18px) saturate(140%);
}

/* Glass (TASK-DSC-102, Figma 13B G0): translucent shell, hero, cards, tiles and palette blur 24 px over the mesh at every level and
   in both schemes; data-transparency="reduced" (user choice) or prefers-reduced-transparency switches to the opaque palette
   (tokens.css) and drops the blur. Tables, forms and inputs stay solid (the MudBlazor theme uses the opaque palette). */
:root[data-look="expressive"][data-style="glass"] {
    --hrms-look-glass: blur(24px) saturate(150%);
}

:root[data-look="expressive"][data-style="glass"][data-transparency="reduced"] {
    --hrms-look-glass: none;
}

:root[data-look="expressive"][data-style="glass"] .hrms-cc {
    background: var(--hrms-look-surface);
    backdrop-filter: var(--hrms-look-glass);
}

/* ---------- Backdrop per level (Figma "TOT Web v2 / Backdrop" 7387:2, measured by the UX review 2026-10-13 on a 1440 x 900 frame):
   Classic two glow ellipses (640 at 1040,-260; 520 at 180,560), Professional no mesh (the hero band and its sheens carry the
   colour), Enterprise four mesh ellipses (720 at -200,-200; 680 at 900,-160; 640 at 1000,480; 620 at -120,520). Colours are the
   look's mesh tokens, transparent where a look has none (Daylight Bento, Command). ---------- */
:root[data-look="expressive"] body,
:root[data-look="expressive"] .hrms-shell {
    background: var(--hrms-look-canvas);
    background-attachment: fixed;
}

:root[data-look="expressive"][data-level="classic"] body,
:root[data-look="expressive"][data-level="classic"] .hrms-shell {
    background:
        radial-gradient(circle 320px at 94% 7%, var(--hrms-look-mesh-1), transparent 70%),
        radial-gradient(circle 260px at 31% 91%, var(--hrms-look-mesh-2), transparent 70%),
        var(--hrms-look-canvas);
    background-attachment: fixed;
}

:root[data-look="expressive"][data-level="enterprise"] body,
:root[data-look="expressive"][data-level="enterprise"] .hrms-shell {
    background:
        radial-gradient(circle 360px at 11% 18%, var(--hrms-look-mesh-1), transparent 70%),
        radial-gradient(circle 340px at 86% 20%, var(--hrms-look-mesh-2), transparent 70%),
        radial-gradient(circle 320px at 92% 89%, var(--hrms-look-mesh-3), transparent 70%),
        radial-gradient(circle 310px at 13% 92%, var(--hrms-look-mesh-1), transparent 70%),
        var(--hrms-look-canvas);
    background-attachment: fixed;
}

:root[data-look="expressive"] .hrms-shell {
    font-family: var(--hrms-font-family);
}

/* ---------- Navigation: sidebar (Classic light, Professional indigo, dark Midnight) and the floating rail (Aurora) ---------- */
:root[data-look="expressive"] .hrms-shell__nav {
    background: var(--hrms-look-nav-bg);
    border-inline-end-color: transparent;
    backdrop-filter: var(--hrms-look-glass);
}

:root[data-look="expressive"] .hrms-shell__nav .hrms-nav-item,
:root[data-look="expressive"] .hrms-shell__nav .hrms-band-label,
:root[data-look="expressive"] .hrms-shell__nav .hrms-rail__button {
    color: var(--hrms-look-nav-fg);
}

:root[data-look="expressive"] .hrms-shell__nav .hrms-nav-item__icon {
    color: var(--hrms-look-nav-icon);
}

:root[data-look="expressive"] .hrms-shell__nav .hrms-nav-item {
    border-radius: var(--hrms-look-radius-control);
}

:root[data-look="expressive"] .hrms-shell__nav .hrms-nav-item--active,
:root[data-look="expressive"] .hrms-shell__nav .hrms-nav-item--active .hrms-nav-item__icon {
    background: var(--hrms-look-nav-active-bg);
    color: var(--hrms-look-nav-active-fg);
}

:root[data-look="expressive"][data-nav="rail"] {
    --hrms-nav-width-rail: 96px;
}

:root[data-look="expressive"][data-nav="rail"] .hrms-shell__nav {
    padding: 12px;
    padding-inline-end: 0;
    background: transparent;
    border-inline-end: 0;
    backdrop-filter: none;
}

:root[data-look="expressive"][data-nav="rail"] .hrms-rail {
    border-radius: var(--hrms-look-radius-nav);
    background: var(--hrms-look-nav-bg);
    box-shadow: var(--hrms-shadow-card);
    backdrop-filter: var(--hrms-look-glass);
}

/* ---------- Top bar floats on the backdrop ---------- */
:root[data-look="expressive"] .hrms-shell__top {
    background: transparent;
    border-block-end-color: transparent;
    backdrop-filter: blur(12px);
}

/* ---------- Hero band on the persona homes ---------- */
:root[data-look="expressive"] .hrms-page-header--hero {
    padding: 28px 32px;
    border-radius: var(--hrms-look-radius-card);
    background: linear-gradient(110deg, var(--hrms-look-hero-start), var(--hrms-look-hero-mid) 50%, var(--hrms-look-hero-end));
    color: var(--hrms-look-hero-text);
    box-shadow: var(--hrms-shadow-card);
}

:root[data-look="expressive"] .hrms-page-header--hero .hrms-page-header__title,
:root[data-look="expressive"] .hrms-page-header--hero .hrms-page-header__subtitle,
:root[data-look="expressive"] .hrms-page-header--hero .hrms-page-header__meta {
    color: inherit;
}

:root[data-look="expressive"] .hrms-page-header--hero .hrms-page-header__title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
}

/* ---------- Cards, glass panels and bento tiles ---------- */
:root[data-look="expressive"] .hrms-card {
    border-color: var(--hrms-look-stroke);
    border-radius: var(--hrms-look-radius-card);
    background: var(--hrms-look-surface);
    backdrop-filter: var(--hrms-look-glass);
}

:root[data-look="expressive"] .hrms-metric {
    border-color: transparent;
    border-radius: var(--hrms-look-radius-tile);
    backdrop-filter: var(--hrms-look-glass);
}

:root[data-look="expressive"] .hrms-metric-row > .hrms-metric:nth-child(4n + 1) {
    background: var(--hrms-look-tile-1-bg);
    color: var(--hrms-look-tile-1-fg);
}

:root[data-look="expressive"] .hrms-metric-row > .hrms-metric:nth-child(4n + 2) {
    background: var(--hrms-look-tile-2-bg);
    color: var(--hrms-look-tile-2-fg);
}

:root[data-look="expressive"] .hrms-metric-row > .hrms-metric:nth-child(4n + 3) {
    background: var(--hrms-look-tile-3-bg);
    color: var(--hrms-look-tile-3-fg);
}

:root[data-look="expressive"] .hrms-metric-row > .hrms-metric:nth-child(4n + 4) {
    background: var(--hrms-look-tile-4-bg);
    color: var(--hrms-look-tile-4-fg);
}

:root[data-look="expressive"] .hrms-metric .hrms-metric__label,
:root[data-look="expressive"] .hrms-metric .hrms-metric__value,
:root[data-look="expressive"] .hrms-metric .hrms-metric__meta {
    color: inherit;
}

:root[data-look="expressive"] .hrms-status-badge,
:root[data-look="expressive"] .hrms-option-card,
:root[data-look="expressive"] .hrms-segmented__option {
    border-radius: var(--hrms-look-radius-control);
}

@media (prefers-reduced-transparency: reduce) {
    :root[data-look="expressive"],
    :root[data-look="expressive"][data-style="glass"] {
        --hrms-look-glass: none;
    }
}

/* ---------- Design-system components (TASK-DSC-030): hues follow the look tiles, rows lose dividers ---------- */
:root[data-look="expressive"] {
    --hrms-hue-1-bg: var(--hrms-look-tile-1-bg);
    --hrms-hue-1-fg: var(--hrms-look-tile-1-fg);
    --hrms-hue-2-bg: var(--hrms-look-tile-2-bg);
    --hrms-hue-2-fg: var(--hrms-look-tile-2-fg);
    --hrms-hue-3-bg: var(--hrms-look-tile-3-bg);
    --hrms-hue-3-fg: var(--hrms-look-tile-3-fg);
    --hrms-hue-4-bg: var(--hrms-look-tile-4-bg);
    --hrms-hue-4-fg: var(--hrms-look-tile-4-fg);
    --hrms-row-icon-bg: var(--hrms-look-accent-soft);
    --hrms-row-icon-fg: var(--hrms-look-accent-text);
}

:root[data-look="expressive"] .hrms-row {
    border-block-end: 0;
    padding-block: 6px;
}

:root[data-look="expressive"] .hrms-row__icon {
    border-radius: var(--hrms-look-radius-control);
}

:root[data-look="expressive"] .hrms-status-badge--accent {
    background: var(--hrms-look-accent-soft);
    color: var(--hrms-look-accent-text);
}

/* ---------- KPI tiles (TASK-DSC-031): an explicit hue wins over the nth-child bento colours; bento values use the Numeric style ---------- */
:root[data-look="expressive"] .hrms-metric[data-hue].hrms-metric--hue-1 { background: var(--hrms-hue-1-bg); color: var(--hrms-hue-1-fg); }
:root[data-look="expressive"] .hrms-metric[data-hue].hrms-metric--hue-2 { background: var(--hrms-hue-2-bg); color: var(--hrms-hue-2-fg); }
:root[data-look="expressive"] .hrms-metric[data-hue].hrms-metric--hue-3 { background: var(--hrms-hue-3-bg); color: var(--hrms-hue-3-fg); }
:root[data-look="expressive"] .hrms-metric[data-hue].hrms-metric--hue-4 { background: var(--hrms-hue-4-bg); color: var(--hrms-hue-4-fg); }

:root[data-look="expressive"] .hrms-metric[data-hue] .hrms-metric__label::before {
    display: none;
}

:root[data-look="expressive"] .hrms-metric__spark {
    color: inherit;
}

:root[data-look="expressive"][data-level="classic"] .hrms-metric__value {
    font: var(--hrms-font-numeric);
    letter-spacing: var(--hrms-tracking-numeric);
}

:root[data-look="expressive"][data-level="classic"] .hrms-metric--compact .hrms-metric__value {
    font: var(--hrms-font-title);
}

/* ---------- Cards, prepared actions and quick actions (TASK-DSC-032) ---------- */
:root[data-look="expressive"] .hrms-card--hero {
    background: linear-gradient(110deg, var(--hrms-look-hero-start), var(--hrms-look-hero-mid) 50%, var(--hrms-look-hero-end));
    color: var(--hrms-look-hero-text);
}

:root[data-look="expressive"] .hrms-action-card {
    border-color: var(--hrms-look-stroke);
    border-radius: var(--hrms-look-radius-card);
    background: var(--hrms-look-surface);
    box-shadow: var(--hrms-shadow-card);
    backdrop-filter: var(--hrms-look-glass);
}

:root[data-look="expressive"] .hrms-action-card__fact,
:root[data-look="expressive"] .hrms-action-card__proposal {
    border-radius: var(--hrms-look-radius-control);
    background: var(--hrms-look-accent-soft);
    color: var(--hrms-look-accent-text);
}

:root[data-look="expressive"] .hrms-action-card__primary {
    border-radius: var(--hrms-look-radius-control);
    background: linear-gradient(90deg, var(--hrms-look-accent), var(--hrms-look-accent-2));
}

/* Aurora: prepared cards carry a gradient top rule instead of the inline-start bar. */
:root[data-look="expressive"][data-level="enterprise"] .hrms-action-card {
    border-inline-start-width: 1px;
    border-inline-start-color: var(--hrms-look-stroke);
    background-image: linear-gradient(90deg, var(--hrms-look-accent-2), var(--hrms-look-mesh-2));
    background-size: 100% 3px;
    background-repeat: no-repeat;
}

:root[data-look="expressive"] .hrms-quick-actions__icon {
    background: var(--hrms-look-surface);
    color: var(--hrms-look-accent-text);
}

:root[data-look="expressive"] .hrms-quick-actions__item.is-primary .hrms-quick-actions__icon {
    background: var(--hrms-look-accent);
    color: var(--hrms-look-text-on-accent);
}

:root[data-look="expressive"] .hrms-quick-actions__item,
:root[data-look="expressive"] .hrms-quick-actions__kicker {
    color: var(--hrms-look-accent-text);
}

/* ---------- Shell geometry and hero band (TASK-DSC-020, page-12 guide "Web v2") ----------
   248 px sidebar (tokens feed --hrms-nav-width-expanded), 76 px top bar, content 1128 px with 32 px padding. Indigo Horizon and
   Midnight Pro paint the hero gradient as a band behind the top bar; a page with a hero PageHeader (data-hero on the shell) extends
   it behind its first row so the KPI row overlaps it. The band is a grid item of the shell, so RTL mirrors it. */
:root[data-look="expressive"] .hrms-topbar {
    min-height: var(--hrms-shell-topbar);
    padding-inline: var(--hrms-shell-padding);
}

:root[data-look="expressive"] .hrms-shell__main {
    padding-inline: var(--hrms-shell-padding);
}

:root[data-look="expressive"] .hrms-shell[data-layout="sidebar"] .hrms-shell__main > *,
:root[data-look="expressive"] .hrms-shell[data-layout="rail"] .hrms-shell__main > * {
    max-width: var(--hrms-shell-content-max);
}

:root[data-look="expressive"] .hrms-avatar-button__name {
    display: inline;
    max-inline-size: 160px;
    overflow: hidden;
    font: var(--hrms-font-label);
    text-overflow: ellipsis;
    white-space: nowrap;
}

:root[data-look="expressive"][data-level="professional"] .hrms-shell::before,
:root[data-look="expressive"][data-scheme="dark"] .hrms-shell::before {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: start;
    block-size: var(--hrms-shell-topbar);
    background: linear-gradient(110deg, var(--hrms-look-hero-start), var(--hrms-look-hero-mid) 50%, var(--hrms-look-hero-end));
    content: "";
    pointer-events: none;
}

/* TASK-PTA-074: the Midnight Pro stops are AA under white text on their own (MOB-187); the band keeps a light 25% canvas scrim only so the
   white-tinted top-bar chips (search, mode switch) stay at 4.5:1 on the lightest stop. Was 55% (R2-UX-27). */
:root[data-look="expressive"][data-scheme="dark"] .hrms-shell::before {
    background:
        linear-gradient(color-mix(in srgb, var(--hrms-look-canvas) 25%, transparent), color-mix(in srgb, var(--hrms-look-canvas) 25%, transparent)),
        linear-gradient(110deg, var(--hrms-look-hero-start), var(--hrms-look-hero-mid) 50%, var(--hrms-look-hero-end));
}

:root[data-look="expressive"][data-level="professional"] .hrms-shell[data-hero]::before,
:root[data-look="expressive"][data-scheme="dark"] .hrms-shell[data-hero]::before {
    block-size: var(--hrms-shell-hero);
}

:root[data-look="expressive"][data-level="professional"] .hrms-shell[data-layout="horizontal"]::before,
:root[data-look="expressive"][data-scheme="dark"] .hrms-shell[data-layout="horizontal"]::before {
    grid-column: 1;
}

:root[data-look="expressive"][data-level="professional"] .hrms-shell__top,
:root[data-look="expressive"][data-scheme="dark"] .hrms-shell__top {
    position: relative;
    color: var(--hrms-look-hero-text);
    backdrop-filter: none;
}

:root[data-look="expressive"][data-level="professional"] .hrms-shell__main,
:root[data-look="expressive"][data-scheme="dark"] .hrms-shell__main {
    position: relative;
}

:root[data-look="expressive"][data-level="professional"] .hrms-topbar .hrms-topbar__page-subtitle,
:root[data-look="expressive"][data-scheme="dark"] .hrms-topbar .hrms-topbar__page-subtitle,
:root[data-look="expressive"][data-level="professional"] .hrms-topbar .hrms-icon-button,
:root[data-look="expressive"][data-scheme="dark"] .hrms-topbar .hrms-icon-button,
:root[data-look="expressive"][data-level="professional"] .hrms-topbar .hrms-avatar-button,
:root[data-look="expressive"][data-scheme="dark"] .hrms-topbar .hrms-avatar-button {
    color: inherit;
}

:root[data-look="expressive"][data-level="professional"] .hrms-topbar .hrms-search-trigger,
:root[data-look="expressive"][data-scheme="dark"] .hrms-topbar .hrms-search-trigger {
    border-color: color-mix(in srgb, var(--hrms-look-hero-text) 24%, transparent);
    background: color-mix(in srgb, var(--hrms-look-hero-text) 14%, transparent);
    color: inherit;
}

/* The hero PageHeader sits on the band instead of being its own gradient card. */
:root[data-look="expressive"][data-level="professional"] .hrms-shell[data-hero] .hrms-page-header--hero,
:root[data-look="expressive"][data-scheme="dark"] .hrms-shell[data-hero] .hrms-page-header--hero {
    padding: 8px 0 24px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--hrms-look-hero-text);
}

/* Aurora Command: the floating 72 px rail (tokens) and no band; the greeting moves to the top bar. */
:root[data-look="expressive"][data-level="enterprise"] .hrms-rail {
    inline-size: var(--hrms-shell-rail);
}

@media (max-width: 767px) {
    :root[data-look="expressive"] .hrms-avatar-button__name {
        display: none;
    }

    :root[data-look="expressive"][data-level="professional"] .hrms-shell::before,
    :root[data-look="expressive"][data-scheme="dark"] .hrms-shell::before {
        grid-column: 1;
    }
}

/* ---------- Visual-check fixes (TASK-DSC-020 gallery pass) ---------- */
/* Hue fills sit on the look surface, so translucent dark hues never show the hero band through. */
:root[data-look="expressive"] .hrms-metric[data-hue].hrms-metric--hue-1,
:root[data-look="expressive"] .hrms-card.hrms-card--tinted.hrms-card--hue-1 { background: linear-gradient(var(--hrms-hue-1-bg), var(--hrms-hue-1-bg)), var(--hrms-look-surface); color: var(--hrms-hue-1-fg); }
:root[data-look="expressive"] .hrms-metric[data-hue].hrms-metric--hue-2,
:root[data-look="expressive"] .hrms-card.hrms-card--tinted.hrms-card--hue-2 { background: linear-gradient(var(--hrms-hue-2-bg), var(--hrms-hue-2-bg)), var(--hrms-look-surface); color: var(--hrms-hue-2-fg); }
:root[data-look="expressive"] .hrms-metric[data-hue].hrms-metric--hue-3,
:root[data-look="expressive"] .hrms-card.hrms-card--tinted.hrms-card--hue-3 { background: linear-gradient(var(--hrms-hue-3-bg), var(--hrms-hue-3-bg)), var(--hrms-look-surface); color: var(--hrms-hue-3-fg); }
:root[data-look="expressive"] .hrms-metric[data-hue].hrms-metric--hue-4,
:root[data-look="expressive"] .hrms-card.hrms-card--tinted.hrms-card--hue-4 { background: linear-gradient(var(--hrms-hue-4-bg), var(--hrms-hue-4-bg)), var(--hrms-look-surface); color: var(--hrms-hue-4-fg); }

:root[data-look="expressive"] .hrms-quick-actions__icon {
    border: 1px solid var(--hrms-look-stroke);
}

/* Greeting heroes ("Good morning," + name) use the Clock style for the name, as on page 12; other heroes keep the Title style. */
:root[data-look="expressive"] .hrms-page-header__kicker {
    margin: 0;
    font: var(--hrms-font-headline);
}

:root[data-look="expressive"][data-level="professional"] .hrms-page-header--hero .hrms-page-header__kicker + .hrms-page-header__title-row .hrms-page-header__title,
:root[data-look="expressive"][data-scheme="dark"] .hrms-page-header--hero .hrms-page-header__kicker + .hrms-page-header__title-row .hrms-page-header__title {
    font: var(--hrms-font-clock);
    letter-spacing: var(--hrms-tracking-clock);
}

/* ---------- Dashboard compositions per look (TASK-DSC-033; Figma page 12) ---------- */
/* Daylight Bento: equal columns, the header greeting as a tinted card. */
:root[data-look="expressive"][data-level="classic"] .hrms-dash {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

:root[data-look="expressive"][data-level="classic"] .hrms-dash__kpis .hrms-kpi-row {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Indigo Horizon / Midnight Pro: the KPI row overlaps the hero band; main + rail 7/5 as on the home frame. */
:root[data-look="expressive"][data-level="professional"] .hrms-dash,
:root[data-look="expressive"][data-scheme="dark"] .hrms-dash {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

/* Without a rail (analytics dashboards) the main column takes the full width in every expressive composition (TASK-DSC-092). */
:root[data-look="expressive"] .hrms-dash--no-rail:not(.hrms-dash--has-command) {
    grid-template-columns: minmax(0, 1fr);
}

:root[data-look="expressive"][data-level="professional"] .hrms-kpi-row--overlap .hrms-metric,
:root[data-look="expressive"][data-scheme="dark"] .hrms-kpi-row--overlap .hrms-metric {
    box-shadow: var(--hrms-shadow-card);
}

/* Aurora Command: command bar first; three columns rail (brief) | main (prepared) | KPIs (signals, 2 x n compact tiles). */
:root[data-look="expressive"][data-level="enterprise"]:is(:not([data-scheme="dark"]), [data-style="command"]) .hrms-dash--has-command {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-areas:
        "header header header"
        "command command command"
        "rail main kpis"
        "secondary secondary secondary"
        "footer footer footer";
}

:root[data-look="expressive"][data-level="enterprise"]:is(:not([data-scheme="dark"]), [data-style="command"]) .hrms-dash--has-command.hrms-dash--no-rail {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-areas: "header header" "command command" "main kpis" "secondary secondary" "footer footer";
}

/* With the command bar the greeting lives in the top bar; the header stays for screen readers only. */
:root[data-look="expressive"][data-level="enterprise"]:is(:not([data-scheme="dark"]), [data-style="command"]) .hrms-dash--has-command .hrms-dash__header {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

:root[data-look="expressive"][data-level="enterprise"]:is(:not([data-scheme="dark"]), [data-style="command"]) .hrms-dash--has-command .hrms-dash__kpis .hrms-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

:root[data-look="expressive"] .hrms-command-bar__orb {
    background: radial-gradient(circle at 35% 30%, var(--hrms-look-surface), var(--hrms-look-hero-start) 45%, var(--hrms-look-hero-mid) 75%, var(--hrms-look-hero-end));
    box-shadow: var(--hrms-shadow-card);
}

:root[data-look="expressive"] .hrms-command-bar__field {
    border-color: var(--hrms-look-accent);
    background: var(--hrms-look-surface);
    backdrop-filter: var(--hrms-look-glass);
}

:root[data-look="expressive"] .hrms-command-bar__go {
    background: var(--hrms-look-accent);
    color: var(--hrms-look-text-on-accent);
}

:root[data-look="expressive"] .hrms-command-bar__chip,
:root[data-look="expressive"] .hrms-chip {
    border-color: var(--hrms-look-stroke);
    background: var(--hrms-look-surface);
    color: var(--hrms-look-text-primary);
}

:root[data-look="expressive"] .hrms-chip.is-selected {
    border-color: transparent;
    background: var(--hrms-look-accent);
    color: var(--hrms-look-text-on-accent);
}

/* Chips on the hero band (Horizon/Midnight dashboards: period, sites, departments). */
:root[data-look="expressive"][data-level="professional"] .hrms-page-header--hero .hrms-chip:not(.is-selected),
:root[data-look="expressive"][data-scheme="dark"] .hrms-page-header--hero .hrms-chip:not(.is-selected) {
    border-color: transparent;
    background: color-mix(in srgb, var(--hrms-look-hero-text) 16%, transparent);
    color: var(--hrms-look-hero-text);
}

/* Phones and tablets: one column in every expressive composition. The selectors outweigh the per-level column rules above (classic,
   professional, dark: 0-4-0; Aurora/Command with the command bar: up to 0-6-0) and come after them (TASK-WSL-902). */
@media (max-width: 960px) {
    :root[data-look="expressive"][data-level] .hrms-dash,
    :root[data-look="expressive"][data-level][data-scheme] .hrms-dash.hrms-dash--has-command {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "header" "command" "kpis" "main" "rail" "secondary" "footer";
    }
}

/* ---------- Employee 360 frame per look (TASK-DSC-036) ---------- */
:root[data-look="expressive"] .hrms-profile-hero__avatar {
    border-color: var(--hrms-look-accent);
    background: var(--hrms-look-surface);
    color: var(--hrms-look-accent-text);
}

:root[data-look="expressive"] .hrms-section-nav-v2__item {
    border-radius: var(--hrms-look-radius-control);
}

:root[data-look="expressive"] .hrms-section-nav-v2__item.is-active {
    background: var(--hrms-look-accent-soft);
    color: var(--hrms-look-accent-text);
}

:root[data-look="expressive"] .hrms-activity__dot--accent,
:root[data-look="expressive"] .hrms-activity__dot--info {
    background: var(--hrms-look-accent);
}

/* Indigo Horizon / Midnight Pro: the hero text sits on the band. */
:root[data-look="expressive"][data-level="professional"] .hrms-shell[data-hero] .hrms-profile-hero,
:root[data-look="expressive"][data-scheme="dark"] .hrms-shell[data-hero] .hrms-profile-hero {
    color: var(--hrms-look-hero-text);
}

:root[data-look="expressive"][data-level="professional"] .hrms-shell[data-hero] .hrms-profile-hero :is(.hrms-profile-hero__name, .hrms-profile-hero__subtitle, .hrms-profile-hero__crumbs),
:root[data-look="expressive"][data-scheme="dark"] .hrms-shell[data-hero] .hrms-profile-hero :is(.hrms-profile-hero__name, .hrms-profile-hero__subtitle, .hrms-profile-hero__crumbs) {
    color: inherit;
}

:root[data-look="expressive"][data-level="professional"] .hrms-shell[data-hero] .hrms-profile-hero .hrms-status-badge,
:root[data-look="expressive"][data-scheme="dark"] .hrms-shell[data-hero] .hrms-profile-hero .hrms-status-badge {
    background: color-mix(in srgb, var(--hrms-look-hero-text) 16%, transparent);
    color: var(--hrms-look-hero-text);
}

/* Aurora Command: the hero is a glass card. */
:root[data-look="expressive"][data-level="enterprise"]:is(:not([data-scheme="dark"]), [data-style="command"]) .hrms-profile-hero {
    padding: var(--hrms-card-padding);
    border: 1px solid var(--hrms-look-stroke);
    border-radius: var(--hrms-look-radius-card);
    background: var(--hrms-look-surface);
    box-shadow: var(--hrms-shadow-card);
    backdrop-filter: var(--hrms-look-glass);
}

/* ---------- Lists (TASK-DSC-044): the table card follows the look's surface, radius and glass ---------- */
:root[data-look="expressive"] .table-paper {
    border: 1px solid var(--hrms-look-stroke);
    border-radius: var(--hrms-look-radius-card) !important;
    background: var(--hrms-look-surface) !important;
    box-shadow: var(--hrms-shadow-card) !important;
    backdrop-filter: var(--hrms-look-glass);
}

:root[data-look="expressive"] .table-paper .mud-table,
:root[data-look="expressive"] .table-paper .mud-table-container {
    background: transparent;
}

:root[data-look="expressive"] .table-paper .mud-table-head .mud-table-cell {
    background: var(--hrms-look-surface-2);
}

/* Gallery pass: the kicker on a hero follows the hero text colour. */
:root[data-look="expressive"] .hrms-page-header--hero .hrms-page-header__kicker {
    color: inherit;
}

/* ---------- Page 13A Daylight Bento: one big + four small bento tiles ---------- */
:root[data-look="expressive"][data-level="classic"] .hrms-dash--summary .hrms-kpi-row {
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
}

:root[data-look="expressive"][data-level="classic"] .hrms-dash--summary .hrms-kpi-row > .hrms-metric:first-child {
    grid-row: span 2;
}

:root[data-look="expressive"][data-level="classic"] .hrms-dash--summary .hrms-kpi-row > .hrms-metric:not(:first-child) {
    min-height: 0;
}

:root[data-look="expressive"][data-level="classic"] .hrms-dash--summary .hrms-kpi-row > .hrms-metric:not(:first-child) .hrms-metric__value {
    font: var(--hrms-font-title);
}

@media (max-width: 767px) {
    :root[data-look="expressive"][data-level="classic"] .hrms-dash--summary .hrms-kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :root[data-look="expressive"][data-level="classic"] .hrms-dash--summary .hrms-kpi-row > .hrms-metric:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

/* TabStrip in the expressive look: pill tabs on the surface. */
:root[data-look="expressive"] .hrms-tabstrip {
    padding: 4px;
    border: 1px solid var(--hrms-look-stroke);
    border-radius: var(--hrms-look-radius-control);
    background: var(--hrms-look-surface);
}

:root[data-look="expressive"] .hrms-tabstrip__tab {
    border-block-end: 0;
    border-radius: var(--hrms-look-radius-control);
}

:root[data-look="expressive"] .hrms-tabstrip__tab.is-selected {
    background: var(--hrms-look-accent-soft);
    color: var(--hrms-look-accent-text);
}

/* States in the expressive look (TASK-DSC-035). */
:root[data-look="expressive"] .hrms-state:not(.hrms-state--error):not(.hrms-state--suppressed) .hrms-state__icon {
    background: var(--hrms-look-accent-soft);
    color: var(--hrms-look-accent-text);
}

/* Mode switch on the expressive top bar (TASK-DSC-021): white pill on the hero band (Horizon, Midnight), accent-soft elsewhere. */
:root[data-look="expressive"] .hrms-mode-switch {
    border-color: var(--hrms-look-stroke);
    background: var(--hrms-look-surface);
}

:root[data-look="expressive"] .hrms-mode-switch__option.is-selected {
    background: var(--hrms-look-accent-soft);
    color: var(--hrms-look-accent-text);
}

:root[data-look="expressive"][data-level="professional"] .hrms-topbar .hrms-mode-switch,
:root[data-look="expressive"][data-scheme="dark"] .hrms-topbar .hrms-mode-switch {
    border-color: transparent;
    background: color-mix(in srgb, var(--hrms-look-hero-text) 14%, transparent);
}

:root[data-look="expressive"][data-level="professional"] .hrms-topbar .hrms-mode-switch__option.is-selected,
:root[data-look="expressive"][data-scheme="dark"] .hrms-topbar .hrms-mode-switch__option.is-selected {
    background: var(--hrms-look-surface);
    color: var(--hrms-look-accent-text);
}

/* ---------- High contrast (TASK-DSC-101): any preset with html[data-contrast="high"]. Colours come from the AAA overlay at the
   end of tokens.css; here glass, text shadows and soft edges give way to solid surfaces with a visible outline. ---------- */
/* PTA-F-004: cards drawn with the shared card shadow token are flat in high contrast too (menus and dialogs keep --hrms-shadow-overlay and their border). */
:root:root:root[data-contrast="high"] {
    --hrms-shadow-card: none;
}

:root[data-contrast="high"] *,
:root[data-contrast="high"] *::before,
:root[data-contrast="high"] *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    text-shadow: none !important;
}

:root[data-contrast="high"] .hrms-card,
:root[data-contrast="high"] .hrms-metric,
:root[data-contrast="high"] .hrms-action-card,
:root[data-contrast="high"] .hrms-page-header--hero,
:root[data-contrast="high"] .hrms-command-bar {
    outline: 1px solid var(--hrms-color-border-default);
    outline-offset: -1px;
    box-shadow: none;
}

/* A disabled button keeps readable text in high contrast (WCAG AA 4.5:1): MudBlazor's disabled colours come from the standard theme, so the overlay's own
   tokens replace them, and a dashed outline marks the state without relying on colour (Customise while its page is busy). */
:root[data-contrast="high"] .mud-button-root:is(:disabled, .mud-disabled) {
    background-color: var(--hrms-color-bg-subtle);
    color: var(--hrms-color-text-secondary);
    outline: 2px dashed var(--hrms-color-text-secondary);
    outline-offset: -2px;
}

/* RW-06: a filled primary or secondary button takes its fill and label from the AAA tokens, which follow data-scheme. MudBlazor's own palette
   follows the circuit's dark flag, which can differ from data-scheme for a "system" scheme, and then drew black text on the light-scheme blue (1.65:1). */
:root[data-contrast="high"] .mud-button-filled:is(.mud-button-filled-primary, .mud-button-filled-secondary):not(:disabled, .mud-disabled) {
    background-color: var(--hrms-color-action-primary);
    color: var(--hrms-color-text-inverse);
}

:root[data-contrast="high"] .mud-button-filled:is(.mud-button-filled-primary, .mud-button-filled-secondary):not(:disabled, .mud-disabled):hover {
    background-color: var(--hrms-color-action-primary-hover);
}

:root[data-contrast="high"] .hrms-shell::before {
    background: var(--hrms-color-bg-canvas);
}

/* ---------- Command (TASK-DSC-103, Figma 13B Command Dark 7496:14264): the Aurora composition (Enterprise, floating 72 px rail,
   command bar first) in both schemes with flat Command tokens: no blur, no hero band, no shadows, 8-12 px radii; top-bar search
   380 x 44. The Aurora layout rules above apply to Command Dark too (:is(..., [data-style="command"])). ---------- */
:root[data-look="expressive"][data-style="command"][data-level] {
    --hrms-look-glass: none;
}

:root[data-look="expressive"][data-style="command"] .hrms-card,
:root[data-look="expressive"][data-style="command"] .hrms-metric,
:root[data-look="expressive"][data-style="command"] .hrms-action-card {
    border-radius: var(--hrms-look-radius-card);
    box-shadow: none;
}

:root[data-look="expressive"][data-style="command"] .hrms-topbar .hrms-search-trigger {
    inline-size: 380px;
    max-inline-size: 100%;
    min-block-size: 44px;
    border-radius: var(--hrms-look-radius-control);
}

:root[data-look="expressive"][data-style="command"] .hrms-cc {
    border-radius: var(--hrms-look-radius-card);
}

:root[data-look="expressive"][data-style="command"] .hrms-command-bar__orb {
    /* V5-09: Command & AI is flat (Figma 13B 7588:22017): no orb above the ask bar; it drew as an empty circle. */
    display: none;
}

:root[data-look="expressive"][data-style="command"] .hrms-shell::before,
:root[data-look="expressive"][data-style="command"] .hrms-page-header--hero {
    background: none;
    box-shadow: none;
}

/* ---------- Glass shell geometry (Figma 13B Glass Dark HR dashboard 7496:13795, measured by the UX review 2026-10-13):
   nav items 34 px with radius 10 and 18 px icons, Poppins Medium 13 labels, 10 px uppercase band labels; top bar title 20 and
   subtitle 12; search pill 320 x 44 (radius 22), mode switch 196 x 40, round 40 px icon buttons; page title 26; filter chips 26
   high, radius 12, on the glass surface. Colours stay tokens; on the dark hero the pills sit on 16% of the hero text colour. ---------- */
:root[data-look="expressive"][data-style="glass"] .hrms-shell__nav .hrms-nav-item {
    min-block-size: 34px;
    border-radius: 10px;
    font: 500 13px/18px var(--hrms-font-family);
}

:root[data-look="expressive"][data-style="glass"] .hrms-shell__nav .hrms-nav-item__icon {
    inline-size: 18px;
    block-size: 18px;
}

:root[data-look="expressive"][data-style="glass"] .hrms-band-label {
    font: 500 10px/14px var(--hrms-font-family);
    text-transform: uppercase;
    color: var(--hrms-look-nav-icon);
}

:root[data-look="expressive"][data-style="glass"] .hrms-topbar__page-title {
    font: 600 20px/28px var(--hrms-font-family);
    color: var(--hrms-look-hero-text);
}

:root[data-look="expressive"][data-style="glass"] .hrms-topbar__page-subtitle {
    font: 400 12px/16px var(--hrms-font-family);
    color: var(--hrms-look-hero-text);
}

:root[data-look="expressive"][data-style="glass"] .hrms-topbar .hrms-search-trigger {
    inline-size: 320px;
    max-inline-size: 100%;
    min-block-size: 44px;
    border-radius: 22px;
}

:root[data-look="expressive"][data-style="glass"] .hrms-topbar .hrms-mode-switch {
    min-inline-size: 196px;
    min-block-size: 40px;
    border-radius: 20px;
}

:root[data-look="expressive"][data-style="glass"] .hrms-topbar .hrms-mode-switch__option.is-selected {
    background: var(--hrms-look-surface);
    color: var(--hrms-look-text-primary);
}

:root[data-look="expressive"][data-style="glass"] .hrms-topbar .hrms-icon-button {
    inline-size: 40px;
    block-size: 40px;
    border-radius: 50%;
}

:root[data-look="expressive"][data-style="glass"][data-scheme="dark"] .hrms-topbar .hrms-search-trigger,
:root[data-look="expressive"][data-style="glass"][data-scheme="dark"] .hrms-topbar .hrms-mode-switch,
:root[data-look="expressive"][data-style="glass"][data-scheme="dark"] .hrms-topbar .hrms-icon-button {
    background: color-mix(in srgb, var(--hrms-look-hero-text) 16%, transparent);
}

:root[data-look="expressive"][data-style="glass"] .hrms-page-header__title,
:root[data-look="expressive"][data-style="glass"] .hrms-page-header--hero .hrms-page-header__title {
    font: 600 26px/34px var(--hrms-font-family);
}

:root[data-look="expressive"][data-style="glass"] .hrms-chip {
    min-block-size: 26px;
    border-radius: 12px;
    background: var(--hrms-look-surface);
    backdrop-filter: var(--hrms-look-glass);
}

/* Hero band of the Professional backdrop (13A/13B "TOT Web v2 / Backdrop", Level=Professional: 1440 x 330, linear 110deg
   hero start -> mid -> end at 0/50/100% plus two white sheen ellipses at 7% and 6%, top right) - Indigo Horizon and Glass.
   Glass hero stops are already translucent and dark enough in the dark scheme, so the Midnight Pro scrim does not apply to Glass
   (white hero text stays at least 10:1). The sheen is white: text-inverse is white in the light looks, the hero text in Glass Dark. */
:root[data-look="expressive"][data-level="professional"],
:root[data-look="expressive"][data-style="glass"] {
    --hrms-hero-sheen: var(--hrms-color-text-inverse);
}

:root[data-look="expressive"][data-style="glass"][data-scheme="dark"] {
    --hrms-hero-sheen: var(--hrms-look-hero-text);
}

:root[data-look="expressive"][data-level="professional"]:not([data-scheme="dark"]) .hrms-shell::before,
:root[data-look="expressive"][data-level="professional"]:not([data-scheme="dark"]) .hrms-page-header--hero,
:root[data-look="expressive"][data-style="glass"] .hrms-shell::before,
:root[data-look="expressive"][data-style="glass"] .hrms-page-header--hero {
    background:
        radial-gradient(40% 70% at 88% 8%, color-mix(in srgb, var(--hrms-hero-sheen) 7%, transparent), transparent 70%),
        radial-gradient(28% 55% at 97% 30%, color-mix(in srgb, var(--hrms-hero-sheen) 6%, transparent), transparent 70%),
        linear-gradient(110deg, var(--hrms-look-hero-start), var(--hrms-look-hero-mid) 50%, var(--hrms-look-hero-end));
}

/* TOT brand mark (13A/13B sidebar): emblem and wordmark in look/hero/text. */
:root[data-look="expressive"] .hrms-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--hrms-look-hero-text);
}

:root[data-look="expressive"] .hrms-brand-mark__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

:root[data-look="expressive"] .hrms-brand-mark__wordmark {
    font: 600 16px/20px var(--hrms-font-family);
    letter-spacing: 0.04em;
}

:root[data-look="expressive"] .hrms-brand-mark__byline {
    font: 500 10px/12px var(--hrms-font-family);
}

/* Report builder shell (C21, C22): frosted in Glass, opaque with reduced transparency (the variable is none there). */
:root[data-look="expressive"][data-style="glass"] .hrms-side-drawer,
:root[data-look="expressive"][data-style="glass"] .hrms-context-sheet {
    background: var(--hrms-look-surface);
    backdrop-filter: var(--hrms-look-glass);
}

/* Workspace (HRMS-ADR-0041; Figma 6nWJlphk7yAjddHCIxOnZd page "12 · Workspace look (adapted)" 7679:58): the expressive composition
   of the level with the Workspace tokens (tokens.css). Cairo for Latin and Arabic text (owner 2026-10-21), Alexandria for figures;
   flat opaque surfaces (no glass at any level), ink primary action with a 2 px surface gap before the focus ring. The S1 sidebar
   skin and the horizontal pill nav are phase 2 (TASK-WSL-201..203). */
:root[data-look="expressive"][data-style="workspace"][data-level] {
    --hrms-look-font: "Cairo", system-ui, sans-serif;
    --hrms-look-font-ar: "Cairo", system-ui, sans-serif;
    --hrms-font-numeric: 600 40px/48px "Alexandria", "Cairo", system-ui, sans-serif;
    --hrms-shadow-card: 0 8px 24px var(--hrms-look-shadow);
    --hrms-look-nav-fg: var(--hrms-look-text-primary);
    --hrms-look-glass: none;
}

:root[data-look="expressive"][data-style="workspace"][data-level]:lang(ar) {
    --hrms-font-numeric: 600 40px/60px "Alexandria", "Cairo", system-ui, sans-serif;
}

:root[data-look="expressive"][data-style="workspace"][data-scheme="dark"] {
    --hrms-look-nav-fg: var(--hrms-look-nav-icon);
}

/* Workspace S1 sidebar skin (TASK-WSL-201, HRMS-ADR-0041 decision 4; Figma page 12 shell 7688:1915 / ar 7688:2468): a floating
   card inset 16 px with the card radius and shadow; the ink active pill and labels come from the expressive nav rules above;
   the footer user card closes the sidebar. Navigation content is unchanged (registry + NavStructure). Phones keep the drawer.
   UXP-Q12 (HRMS-ADR-0059, owner "confirmed proceed" 2026-11-03): at least 240 px wide, labels wrap instead of truncating, targets
   at least 44 px, and nothing clips the content: the rounded card, fill and shadow are a decoration layer behind the menu
   (::before), so no ancestor of the menu uses overflow hidden and focus rings are never cut. */
:root[data-look="expressive"][data-style="workspace"] {
    --hrms-workspace-sidebar: 240px;
    --hrms-workspace-inset: 16px;
}

@media (min-width: 768px) {
    :root[data-look="expressive"][data-style="workspace"][data-nav="sidebar"] {
        --hrms-nav-width-expanded: calc(var(--hrms-workspace-sidebar) + var(--hrms-workspace-inset));
    }

    :root[data-look="expressive"][data-style="workspace"][data-nav="sidebar"] .hrms-shell__nav {
        padding: var(--hrms-workspace-inset);
        padding-inline-end: 0;
        background: transparent;
        border-inline-end: 0;
        backdrop-filter: none;
        overflow: visible;
    }

    :root[data-look="expressive"][data-style="workspace"][data-nav="sidebar"] .hrms-sidebar {
        position: relative;
        isolation: isolate;
        min-inline-size: var(--hrms-workspace-sidebar);
    }

    :root[data-look="expressive"][data-style="workspace"][data-nav="sidebar"] .hrms-sidebar::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: var(--hrms-look-nav-bg);
        border-radius: var(--hrms-look-radius-card);
        box-shadow: var(--hrms-shadow-card);
        pointer-events: none;
    }

    :root[data-look="expressive"][data-style="workspace"][data-contrast="high"][data-nav="sidebar"] .hrms-sidebar::before {
        border: 2px solid var(--hrms-color-border-default);
    }

    :root[data-look="expressive"][data-style="workspace"][data-nav="sidebar"] .hrms-sidebar__scroll {
        padding-inline: var(--hrms-workspace-inset);
    }

    :root[data-look="expressive"][data-style="workspace"][data-nav="sidebar"] .hrms-nav-item {
        min-block-size: 44px;
        padding-block: 8px;
        height: auto;
    }

    :root[data-look="expressive"][data-style="workspace"][data-nav="sidebar"] .hrms-nav-item__label {
        flex: 1 1 auto;
        min-inline-size: 0;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    :root[data-look="expressive"][data-style="workspace"][data-nav="sidebar"] .hrms-workspace-switcher {
        margin-inline: var(--hrms-workspace-inset);
    }

    :root[data-look="expressive"][data-style="workspace"][data-nav="sidebar"] .hrms-workspace-switcher__tab {
        min-block-size: 44px;
        min-inline-size: 44px;
    }
}

:root[data-look="expressive"][data-style="workspace"] .hrms-band-label {
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: none;
}

:root[data-look="expressive"][data-style="workspace"] .hrms-sidebar__user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 12px 12px;
    padding: 10px;
    border-radius: var(--hrms-look-radius-tile);
    background: var(--hrms-look-surface-2);
    color: var(--hrms-look-text-primary);
    text-decoration: none;
}

:root[data-look="expressive"][data-style="workspace"] .hrms-sidebar__user:focus-visible {
    outline: none;
    box-shadow: var(--hrms-focus-ring);
}

:root[data-look="expressive"][data-style="workspace"] .hrms-sidebar__user .hrms-avatar {
    flex: none;
    width: 32px;
    height: 32px;
    font-size: 12px;
    background: var(--hrms-look-tile-4-bg);
    color: var(--hrms-look-tile-4-fg);
}

:root[data-look="expressive"][data-style="workspace"] .hrms-sidebar__user-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

:root[data-look="expressive"][data-style="workspace"] .hrms-sidebar__user-name {
    font-weight: 600;
    font-size: 13px;
    overflow-wrap: anywhere;
}

:root[data-look="expressive"][data-style="workspace"] .hrms-sidebar__user-meta {
    font-size: 12px;
    color: var(--hrms-look-text-secondary);
}

/* Workspace top bar (TASK-WSL-202): our content (title, search + Ctrl K, Me/Team/HR switch, inbox and bell counts, culture, account)
   restyled only. The search outline uses the input line colour (>= 3:1); counts are number + icon on the lime tile pair. */
:root[data-look="expressive"][data-style="workspace"] .hrms-shell__top {
    background: var(--hrms-look-canvas);
    border-block-end-color: transparent;
}

:root[data-look="expressive"][data-style="workspace"] .hrms-topbar .hrms-search-trigger {
    flex: 0 1 280px;
    inline-size: auto;
    min-inline-size: 40px;
    max-inline-size: 100%;
    overflow: hidden;
    min-block-size: 40px;
    border: 1px solid var(--hrms-look-text-muted);
    border-radius: var(--hrms-look-radius-control);
    background: var(--hrms-look-surface);
}

:root[data-look="expressive"][data-style="workspace"] .hrms-topbar .hrms-search-trigger__text {
    min-inline-size: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:root[data-look="expressive"][data-style="workspace"] .hrms-topbar .hrms-kbd {
    font-size: 12px;
}

:root[data-look="expressive"][data-style="workspace"] .hrms-topbar .hrms-mode-switch {
    border-color: var(--hrms-look-stroke);
    background: var(--hrms-look-surface);
}

:root[data-look="expressive"][data-style="workspace"] .hrms-topbar .hrms-mode-switch__option.is-selected {
    background: var(--hrms-look-nav-active-bg);
    color: var(--hrms-look-nav-active-fg);
}

:root[data-look="expressive"][data-style="workspace"] .hrms-topbar .hrms-icon-button {
    inline-size: 40px;
    block-size: 40px;
    border: 1px solid var(--hrms-look-stroke);
    border-radius: 50%;
    background: var(--hrms-look-surface);
}

:root[data-look="expressive"][data-style="workspace"] .hrms-topbar .hrms-count-pill {
    background: var(--hrms-look-tile-1-bg);
    color: var(--hrms-look-tile-1-fg);
    font-size: 12px;
}

/* G20-02: in the 40 px round button the counter sits on the button's corner, not over the icon, with a ring in the button colour so
   the pill reads in dark too; "99+" keeps its width. */
:root[data-look="expressive"][data-style="workspace"] .hrms-topbar .hrms-icon-button .hrms-count-pill--overlay {
    inset-block-start: -6px;
    inset-inline-end: -8px;
    padding-inline: 5px;
    box-shadow: 0 0 0 2px var(--hrms-look-surface);
}

/* G20-07: MudBlazor takes the look's control radius as its default, which is the 999 px pill in Workspace; panels, cards, dialogs and
   menus keep the card radius so a large single card never turns into a capsule. Buttons, chips and inputs stay pills. */
:root[data-look="expressive"][data-style="workspace"] :is(.mud-paper, .mud-card, .mud-dialog, .mud-alert, .mud-table) {
    border-radius: var(--hrms-look-radius-card);
}

/* Workspace pill nav (TASK-WSL-203): phones only. Selected page = ink pill with icon + label; the next registry pages are 40 px named
   icon buttons; "More" opens the drawer (it replaces the top-bar menu button in this look). Order follows the document direction. */
:root[data-look="expressive"][data-style="workspace"] .hrms-pillnav {
    display: none;
}

@media (max-width: 767px) {
    :root[data-look="expressive"][data-style="workspace"] .hrms-pillnav {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 var(--hrms-content-gutter) 8px;
        padding: 6px;
        border-radius: var(--hrms-look-radius-control);
        background: var(--hrms-look-nav-bg);
        box-shadow: var(--hrms-shadow-card);
    }

    /* The pill nav's "More" replaces the menu button only where the shell renders the pill nav: the experience menu has none (PAYA-PT, R149). */
    :root[data-look="expressive"][data-style="workspace"] .hrms-shell:has(.hrms-pillnav) .hrms-topbar__menu {
        display: none;
    }

    :root[data-look="expressive"][data-style="workspace"] .hrms-pillnav__item {
        display: inline-flex;
        flex: none;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-inline-size: 40px;
        min-block-size: 40px;
        padding-inline: 10px;
        border: 1px solid var(--hrms-look-stroke);
        border-radius: var(--hrms-look-radius-control);
        color: var(--hrms-look-nav-icon);
        text-decoration: none;
    }

    :root[data-look="expressive"][data-style="workspace"] .hrms-pillnav__item.is-active {
        padding-inline: 14px;
        border-color: transparent;
        background: var(--hrms-look-nav-active-bg);
        color: var(--hrms-look-nav-active-fg);
        font-weight: 600;
    }

    :root[data-look="expressive"][data-style="workspace"] .hrms-pillnav__spacer {
        flex: 1;
    }

    :root[data-look="expressive"][data-style="workspace"] .hrms-pillnav__more {
        display: inline-flex;
        flex: none;
        align-items: center;
        gap: 6px;
        min-block-size: 40px;
        padding-inline: 12px;
        border: 1px solid var(--hrms-look-text-muted);
        border-radius: var(--hrms-look-radius-control);
        background: transparent;
        color: var(--hrms-look-text-primary);
        font: inherit;
        font-weight: 600;
        cursor: pointer;
    }

    :root[data-look="expressive"][data-style="workspace"] .hrms-pillnav__item:focus-visible,
    :root[data-look="expressive"][data-style="workspace"] .hrms-pillnav__more:focus-visible {
        outline: none;
        box-shadow: var(--hrms-focus-ring);
    }

    /* QC TASK-WSL-901 (390 px): the keycap no longer wraps in the narrow search trigger; the current page label is capped so the
       four pills and "More" stay inside the bar. */
    :root[data-look="expressive"][data-style="workspace"] .hrms-topbar .hrms-kbd {
        display: none;
    }

    :root[data-look="expressive"][data-style="workspace"] .hrms-pillnav__label {
        max-inline-size: 7em;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

/* QC TASK-WSL-901 (below 420 px): "More" keeps its name for assistive technology but shows the icon only. */
@media (max-width: 419px) {
    :root[data-look="expressive"][data-style="workspace"] .hrms-pillnav {
        gap: 6px;
    }

    :root[data-look="expressive"][data-style="workspace"] .hrms-pillnav__more-label {
        position: absolute;
        inline-size: 1px;
        block-size: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    :root[data-look="expressive"][data-style="workspace"] .hrms-pillnav__more {
        position: relative;
        padding-inline: 10px;
    }
}

/* ---------- Tablets: the shell top bar fits (Home audit H-07, 2026-10-26) ----------
   At 820 px the Enterprise top bar (rail) was 826-903 px wide: the Me/Team/HR switch, the environment chip, the account name and
   the search keycap did not fit beside the tools, so the page scrolled sideways and, in Arabic, the name was cut at the edge. Up to
   1,100 px the account button shows the avatar only (the name is in the account menu) and the environment chip is left out (it is a
   development aid; the account menu shows the level); below 961 px the search trigger shows the icon only (Ctrl K still works). */
@media (max-width: 1100px) {
    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar .hrms-avatar-button__name,
    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar .hrms-env-chip {
        display: none;
    }
}

@media (max-width: 960px) {
    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar .hrms-search-trigger .hrms-kbd,
    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar .hrms-search-trigger__text {
        display: none;
    }

    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar .hrms-search-trigger {
        flex: none;
        inline-size: 44px;
        min-inline-size: 44px;
        padding: 0;
        justify-content: center;
    }
}

/* ---------- Phones: the shell top bar fits the screen (dashboard-layout audit A-04, 2026-10-26) ----------
   At 390 px the top bar was 425-578 px wide (32 px padding, the search hint, the environment chip, recents, a 64 px account button),
   so the whole page scrolled sideways, and its buttons were 40 px. On phones it keeps menu, search, inbox, bell, the demo persona
   switch, language and account as 44 px targets; the environment chip and recents (both in the menus) and the breadcrumb trail (small links; the page header names the page) are left out, and below 360 px
   the language button too (it is also in the account menu). After every other top-bar rule and as specific as the look rules, so every look and
   style gets it. */
@media (max-width: 767px) {
    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar {
        gap: 4px;
        min-height: 56px;
        padding-inline: 12px;
    }

    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar .hrms-icon-button,
    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar .hrms-avatar-button,
    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar .hrms-search-trigger {
        flex: none;
        inline-size: 44px;
        min-inline-size: 44px;
        block-size: 44px;
        min-block-size: 44px;
        padding: 0;
        justify-content: center;
    }

    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar .hrms-search-trigger__text,
    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar .hrms-search-trigger .hrms-kbd,
    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar .hrms-avatar-button > iconify-icon,
    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar .hrms-env-chip,
    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar .hrms-topbar__recents,
    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar .hrms-breadcrumbs {
        display: none;
    }

    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar__tools {
        flex: none;
        gap: 4px;
        margin-inline-start: auto;
    }

    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar__lead {
        flex: 1 1 0;
        min-inline-size: 0;
        overflow: hidden;
    }
}

@media (max-width: 359px) {
    :root:is([data-look], :not([data-look])) .hrms-shell .hrms-topbar .hrms-topbar__language {
        display: none;
    }
}

/* ---------- UX audit G4 (TASK-UXA-030; UXA-025/026/073, V90-01) ---------- */

/* Outlined and text buttons in a hero header (persona homes: "Make my default", "Customise") sit on the hero band, so their label and
   border take the hero text token the title already uses (MudBlazor's default would be the page text colour on a dark band, 1:1). */
:root[data-look="expressive"] .hrms-page-header--hero .hrms-page-header__actions :is(.mud-button-outlined, .mud-button-text, .mud-icon-button),
:root[data-look="expressive"][data-level="professional"] .hrms-shell[data-hero] .hrms-page-header__actions :is(.mud-button-outlined, .mud-button-text, .mud-icon-button),
:root[data-look="expressive"][data-scheme="dark"] .hrms-shell[data-hero] .hrms-page-header__actions :is(.mud-button-outlined, .mud-button-text, .mud-icon-button) {
    color: var(--hrms-look-hero-text);
}

:root[data-look="expressive"] .hrms-page-header--hero .hrms-page-header__actions .mud-button-outlined,
:root[data-look="expressive"][data-level="professional"] .hrms-shell[data-hero] .hrms-page-header__actions .mud-button-outlined,
:root[data-look="expressive"][data-scheme="dark"] .hrms-shell[data-hero] .hrms-page-header__actions .mud-button-outlined {
    border-color: color-mix(in srgb, var(--hrms-look-hero-text) 60%, transparent);
}

/* Outlined buttons elsewhere: label and border from tokens in every look and scheme (high contrast: the strong border). */
.mud-button-outlined.mud-button-outlined-default {
    color: var(--hrms-color-text-primary);
    border-color: var(--hrms-color-border-strong);
}

/* A visible 2 px focus ring on keyboard focus for MudBlazor buttons, links and chips in every look (NFR-12). */
.mud-button-root:focus-visible,
.mud-icon-button:focus-visible,
.mud-chip:focus-visible,
.mud-link:focus-visible {
    outline: 2px solid var(--hrms-color-border-focus);
    outline-offset: 2px;
}

/* Hit targets of 44 px (V90-01): top-bar controls and mode switch are in shell.css; list rows, quick tiles. */
.hrms-row--link,
.hrms-qa-tile {
    min-block-size: 44px;
}

/* G24-01 (PTA re-walk R165): below 768px the rail becomes the open menu drawer over the page; the floating rail's transparent background must not carry over, or the page shows through the menu. */
@media (max-width: 767px) {
    :root[data-look="expressive"][data-nav="rail"] .hrms-shell__nav.is-open {
        padding: 12px;
        background: var(--hrms-color-bg-surface);
        backdrop-filter: none;
    }
}

/* Workspace look on existing widgets (TASK-WSL-307, HRMS-ADR-0041 decision 6; Figma W09 7684:1042): KPI tiles are flat surface
   cards with the look stroke, every second tile takes the accent panel and every fourth the analytics panel (instead of the bento
   rainbow); trends become filled delta pills; rows of approvals and queues keep their markup and behaviour. Tokens only; high
   contrast keeps the AAA overlay (no Workspace fills there). */
:root[data-look="expressive"][data-style="workspace"]:not([data-contrast="high"]) .hrms-metric,
:root[data-look="expressive"][data-style="workspace"]:not([data-contrast="high"]) .hrms-metric-row > .hrms-metric:nth-child(4n + 1),
:root[data-look="expressive"][data-style="workspace"]:not([data-contrast="high"]) .hrms-metric-row > .hrms-metric:nth-child(4n + 3) {
    border: 1px solid var(--hrms-look-stroke);
    background: var(--hrms-look-surface);
    color: var(--hrms-look-text-primary);
}

:root[data-look="expressive"][data-style="workspace"]:not([data-contrast="high"]) .hrms-metric-row > .hrms-metric:nth-child(4n + 2) {
    border: 1px solid transparent;
    background: var(--hrms-look-tile-1-bg);
    color: var(--hrms-look-tile-1-fg);
}

:root[data-look="expressive"][data-style="workspace"]:not([data-contrast="high"]) .hrms-metric-row > .hrms-metric:nth-child(4n + 4) {
    border: 1px solid transparent;
    background: var(--hrms-look-tile-3-bg);
    color: var(--hrms-look-tile-3-fg);
}

:root[data-look="expressive"][data-style="workspace"] .hrms-metric .hrms-metric__label {
    font: var(--hrms-font-label);
}

:root[data-look="expressive"][data-style="workspace"] .hrms-metric__trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-block: 2px;
    padding-inline: 8px;
    border-radius: 999px;
    font: var(--hrms-font-micro);
}

:root[data-look="expressive"][data-style="workspace"]:not([data-contrast="high"]) .hrms-metric__trend.is-up {
    background: var(--hrms-look-status-ok-bg);
    color: var(--hrms-look-status-ok-fg);
}

:root[data-look="expressive"][data-style="workspace"]:not([data-contrast="high"]) .hrms-metric__trend.is-down {
    background: var(--hrms-look-status-warn-bg);
    color: var(--hrms-look-status-warn-fg);
}

:root[data-look="expressive"][data-style="workspace"] .hrms-status-badge {
    border-radius: 999px;
}

:root[data-look="expressive"][data-style="workspace"] .hrms-row--link {
    border-radius: var(--hrms-look-radius-control);
}

:root[data-look="expressive"][data-style="workspace"]:not([data-contrast="high"]) .hrms-row--link:hover {
    background: var(--hrms-look-surface-2);
}
