/* ===================================================================
   HireXA Dashboard - light glassmorphism redesign (Figma "option 15")
   bg #ECEBF0 · glass rgba(255,255,255,.2) + inset 0 0 22.6px #FFF · Inter
   =================================================================== */

/* Cross-browser auto-fit zoom ladder (driven by user_dropdown.js) */
html { zoom: var(--app-zoom, 1); }

* { box-sizing: border-box; }

/* Scroll without the gutter. The native bar cut into the glass panels on the
   right edge of every page in this shell, so it is hidden here once rather than
   per page - scrolling itself is untouched. */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* The base colour goes on `html`, and `body` is left transparent, so the fixed
   gradient layer below (a negative-z child of body) is not painted over.
   dashboard.css sets `html, body { background: var(--hxa-bg) }`; because html
   then has a background of its own, body's would stop propagating to the canvas
   and would paint as an ordinary block background - which in CSS paint order
   lands ON TOP of negative z-index descendants. Both declarations here have to
   stay, and this sheet has to keep loading after dashboard.css. */
html { background: #ECEBF0; }
body {
    margin: 0;
    font-family: 'Inter', 'Poppins', sans-serif;
    color: #0F172A;
    background: transparent;
    -webkit-font-smoothing: antialiased;
}

/* Glassy prism background: diagonal light-beams over soft green/blue glows.
   Recreates the Figma "option 15" background image with pure CSS so it stays
   crisp and needs no raster asset.

   This used to live on `body` with `background-attachment: fixed`. It is a
   fixed, viewport-sized layer instead, which paints identically - a fixed
   layer is viewport-anchored by definition, which is all the attachment was
   buying - but takes Chromium's ordinary layer path rather than its
   fixed-background one. That path, under the fractional `html { zoom }` this
   shell applies on sub-1600px viewports, re-rastered on every hover repaint
   and left thin horizontal seams across the viewport. */
/* The stack lives in a variable so a second element could paint the IDENTICAL
   background. Only body::before uses it today: the sticky bar tried to, via
   `background-attachment: fixed`, and could not be made to line up - that
   attachment resolves against the UNZOOMED viewport while this fixed layer is
   anchored to the zoomed one, so under `html { zoom }` the bar sampled the
   gradient from a different origin and painted a green rectangle out of the
   top-left radial. Kept as a variable regardless; it is the right shape for the
   value and costs nothing. */
:root {
    --hxa-page-bg:
        linear-gradient(122deg,
            rgba(255, 255, 255, 0) 8%,
            rgba(255, 255, 255, 0.85) 19%,
            rgba(255, 255, 255, 0) 29%,
            rgba(255, 255, 255, 0) 38%,
            rgba(255, 255, 255, 0.60) 45%,
            rgba(255, 255, 255, 0) 54%,
            rgba(255, 255, 255, 0) 64%,
            rgba(255, 255, 255, 0.48) 72%,
            rgba(255, 255, 255, 0) 80%),
        radial-gradient(1500px 1150px at -6% -8%, rgba(85, 190, 158, 0.60), transparent 56%),
        radial-gradient(1150px 950px at 20% 34%, rgba(116, 212, 176, 0.30), transparent 58%),
        radial-gradient(1650px 1350px at 112% 34%, rgba(0, 138, 255, 0.44), transparent 60%),
        radial-gradient(1050px 950px at 92% 78%, rgba(90, 170, 255, 0.30), transparent 60%),
        radial-gradient(820px 660px at 86% 2%, rgba(176, 219, 255, 0.52), transparent 55%),
        linear-gradient(158deg, rgba(198, 234, 255, 0.30), rgba(236, 235, 240, 0) 52%),
        #ECEBF0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    /* -1, not 0: this layer is opaque and replaces what used to be the canvas
       background, so it has to paint behind page content the way the canvas
       did. The sheen below keeps z-index 0 - it is translucent and was already
       painting over content there. */
    z-index: -1;
    pointer-events: none;
    background: var(--hxa-page-bg);
}

/* Liquid-glass sheen: sharp specular light streaks + a faint frosted grain,
   laid over the colour background but under the app content. This is the
   "looking through glass" touch the flat gradient alone was missing.

   Paints directly over ::before, so it needs no blend mode to sit on the
   colour: same z-index, later in tree order. It carried `mix-blend-mode:
   screen` before, which forced the compositor to re-read and re-blend the
   whole viewport behind it on every repaint - the second half of the seam
   problem described above. The grain is drawn white rather than grey so it
   still lightens, which is all `screen` was doing for it here. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat;
    background-size: 100% 100%, 100% 100%, 100% 100%, 150px 150px;
    background-image:
        linear-gradient(57deg, transparent 33%, rgba(255, 255, 255, 0.62) 42%, rgba(255, 255, 255, 0) 49%),
        linear-gradient(57deg, transparent 66%, rgba(255, 255, 255, 0.30) 73%, rgba(255, 255, 255, 0) 79%),
        linear-gradient(-46deg, transparent 60%, rgba(206, 236, 255, 0.34) 70%, rgba(255, 255, 255, 0) 79%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.33 0.33 0.33 0 0'/></filter><rect width='150' height='150' filter='url(%23n)' opacity='0.3'/></svg>");
}

/* ---------------- Page-foot Back bar ----------------
   A glass strip below a page's content holding the Back control, matching the
   action bar on Quick Interview (.qic-actions). Lives here rather than in a
   per-page sheet because several pages use it and every page in this shell
   already loads dashboard_home.css - one definition, no drift.

   Behaviour comes from nav_back.js via data-hx-back: it returns to the real
   previous page and only falls back to the href when there is nowhere safe to
   go back to. Pages ship the bar with .hidden and reveal it once their load
   settles, so it never floats under a loading spinner. */
.hx-actions {
    box-sizing: border-box;
    display: flex; align-items: center; justify-content: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 16px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hx-actions.hidden { display: none !important; }
.hx-btn-back {
    box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px;
    background: linear-gradient(179.25deg, rgba(0, 126, 232, 0) 39.2%, rgba(0, 126, 232, 0.2) 151.07%), rgba(255, 255, 255, 0.7);
    border: 1px solid #CBD5E1;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 15px;
    font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px; line-height: 1;
    color: #334155; text-decoration: none;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.hx-btn-back svg { width: 16px; height: 16px; flex: none; }
.hx-btn-back:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px -10px rgba(0, 90, 180, 0.3), inset 0 0 22.6px #FFFFFF;
}
.hx-btn-back:active { transform: scale(0.98); }

/* ---------------- Shell ---------------- */
.dsb-shell {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 24px;
    padding: 24px;
    min-height: var(--app-vh, 100vh);
}

/* ---------------- App-shell inner scroll (opt-in: .dsb-shell.is-fixed) -------
   The rail, the topnav and the page's foot bar hold still and only the middle
   scrolls. Without this the whole document scrolls and content slides under the
   sticky glass topnav, which at 0.82 alpha lets the text underneath read
   through. Pages that really are one long document just leave the class off.
   Height comes from --app-vh, never raw 100vh: under the global zoom-to-fit
   `zoom` is not applied to vh units, so 100vh here ends short and leaves a gap
   below the fold (see user_dropdown.js). */
.dsb-shell.is-fixed {
    height: var(--app-vh, 100vh);
    overflow: hidden;
}

/* ---------------- The inner scrollbar's lane -------------------------------
   The bar on the inner scroller is visible (see below for why), so it needs a
   lane of its own or it paints on top of the panel it belongs to. Whether the
   engine hands that lane over is not something CSS can ask:

   - Chrome, Edge, Firefox and Windows generally draw a CLASSIC bar, which takes
     its width out of the layout. The lane is already there.
   - Safari, and macOS in general unless the reader has forced bars on, draws an
     OVERLAY bar: it reserves nothing and floats over the content. That was the
     bug - on the Jobs and Role pages, whose columns deliberately run edge to
     edge, the bar came down on the row itself.

   `scrollbar-gutter: stable` below asks the first group to keep the lane even
   when the list is short, so the column never jumps sideways. It is NOT the
   test for the second group: Safari 18.2+ reports support for the property and
   still draws overlay bars, so an @supports query says "reserved" on exactly
   the browsers where it isn't. Only a measurement can tell, so user_dropdown.js
   probes a scroller once and publishes the answer in these two variables:

     --hx-sb-lane  the lane's real width, whoever ends up paying for it
     --hx-sb-pad   the part this stylesheet has to pay in padding - the full
                   lane against an overlay bar, zero against a classic one

   The values below are the no-JS / pre-paint fallback. They pay for the lane in
   padding, which is a hair narrower than needed where the engine also reserves
   one, and overlaps on nothing. */
:root { --hx-sb-lane: 10px; --hx-sb-pad: 10px; }
/* A flex child's default min-height:auto refuses to shrink below its content,
   which would push the overflow up to the shell instead of the scroller. */
.dsb-shell.is-fixed > .dsb-body { min-height: 0; }
.dsb-shell.is-fixed > .dsb-body > main {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    /* Don't hand the scroll on to the document once this area bottoms out. */
    overscroll-behavior: contain;
    /* A window scrollbar can be hidden because the wheel and the page's whole
       height still say "there is more". An inner region has neither, so this one
       stays visible - just thin and on the panel's own greys. */
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
    /* ...and being visible, it gets a lane instead of sitting on the content.
       The lane is then bled back out into the shell's own 24px gutter, so the
       column keeps the exact width it lines up with the breadcrumb bar on
       rather than being narrowed by the bar on some engines and not others.

       This one declaration has to serve every page in the shell, whose <main>s
       carry different side insets, so the inset comes in as a variable instead
       of being restated here. It defaults to 0 - which is what the report,
       notifications, Jobs and Role columns want - and .dsb-main sets its own
       24px below. A page overrides it by setting the variable, NOT by setting
       padding-right: this selector is the more specific one and would win. */
    scrollbar-gutter: stable;
    padding-right: calc(var(--hx-main-pad-right, 0px) + var(--hx-sb-pad, 10px));
    margin-right: calc(-1 * var(--hx-sb-lane, 10px));
}
.dsb-shell.is-fixed > .dsb-body > main::-webkit-scrollbar { width: 10px; }
.dsb-shell.is-fixed > .dsb-body > main::-webkit-scrollbar-track { background: transparent; }
.dsb-shell.is-fixed > .dsb-body > main::-webkit-scrollbar-thumb {
    background: #CBD5E1; border-radius: 999px;
    border: 3px solid transparent; background-clip: padding-box;
}
/* The foot bar is a sibling of the scroller, not its last row, so it stays put
   while the content moves behind it. .dsb-body already supplies the 24px gap. */
.dsb-shell.is-fixed > .dsb-body > .dsb-foot { flex: none; margin-top: 24px; }

/* ---------------- Sticky filter bar inside the scroller ------------------
   A page's title card and its filter row live INSIDE <main>, as the scroller's
   first rows, so they scroll away with the list and hand their height back to
   it. The filter row then pins at the scrollport's top edge - which, because
   <main> starts one 24px column gap below .dsb-topnav, parks it exactly under
   the breadcrumb bar rather than behind its glass.

   The pinning is declared per page (.jbx-toolbar, .rdx-toolbar, .ntx-tabsbar),
   which is all there is to it now. There WAS a shared .hxa-stickybar class here
   whose ::before faded a frosted panel in behind the bar once it stuck, so the
   rows passing underneath were occluded rather than reading through the glass.
   The panel was removed on request: the bar is transparent, so the list does
   show through it while scrolling. Restoring occlusion means bringing a panel
   back - there is no third option, a transparent element cannot hide what
   passes behind it. */

/* ---------------- Rows fade out at the filter bar (opt-in) ----------------
   `.hxa-fade` goes on the LIST; `.hxa-fadeline` on the bar that marks where it
   should stop being visible. Rows dissolve as they reach that bar's bottom edge
   instead of sliding on up behind a transparent tab row.

   The mask has to be on the list, not on the scroller. The filter bar pins
   INSIDE the scroller, in the same band the fade would occupy, so masking
   <main> would dissolve the tabs along with the rows - which is why the earlier
   attempt at this could only work by moving the bar out of the scroller, and
   that cost the list the hero's height permanently.

   --hx-fade-y is the distance from the list's own top edge down to the bar's
   bottom edge, so the cut follows the bar wherever it is. It is NEGATIVE while
   the bar is still in the flow, which puts the whole ramp above the list and
   leaves the first row perfectly sharp at rest; it grows positive as the list
   travels up past the pinned bar. list_fade.js keeps it measured. */
.hxa-fade {
    --hx-fade-y: -100px;
    -webkit-mask-image: linear-gradient(to bottom,
        transparent var(--hx-fade-y), #000 calc(var(--hx-fade-y) + 20px));
    mask-image: linear-gradient(to bottom,
        transparent var(--hx-fade-y), #000 calc(var(--hx-fade-y) + 20px));
}

/* ---------------- Sidebar (glass rail) ---------------- */
.dsb-sidebar {
    flex: none;
    width: 88px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 26px 18px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 16px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: sticky;
    top: 24px;
    height: calc(var(--app-vh, 100vh) - 48px);
    z-index: 20;
}
.dsb-side-top { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.dsb-side-nav { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dsb-side-bottom { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.dsb-brand { position: relative; display: inline-flex; flex: none; text-decoration: none; }
/* Brand mark: render the HireXA icon asset instead of the inline SVG.
   Uses a small 128px optimised copy (~15 KB, not the 1 MB source) so it paints
   within a frame - no empty-box flash. The inline <svg> stays but is hidden. */
.dsb-brand-logo {
    display: block; width: 52px; height: 52px;
    background: url("/static/assets/hirexa-mark.png") center / cover no-repeat;
    border-radius: 16px;
    box-shadow: 0 6px 16px -6px rgba(0, 138, 255, 0.5);
}
.dsb-brand-logo svg { display: none; }

.dsb-nav {
    position: relative;
    width: 52px; height: 52px;
    border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #334155;
    text-decoration: none;
    flex: none;
    transition: background 0.15s, color 0.15s;
}
.dsb-nav svg { width: 23px; height: 23px; }
.dsb-nav:hover { background: rgba(255, 255, 255, 0.45); }
.dsb-nav.is-active { background: rgba(176, 219, 255, 0.6); color: #007EE8; }
.dsb-nav-ind {
    position: absolute;
    left: -18px; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 32px;
    background: #007EE8;
    border-radius: 0 100px 100px 0;
}

.dsb-side-avatar {
    position: relative;
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 600; font-size: 16px; line-height: 1;
    background: linear-gradient(180deg, #0B90F3 0%, #007EE8 100%);
    border: 1px solid #8AC9FF;
    box-shadow: inset 0 0 7.7px rgba(255, 255, 255, 0.65), inset 0 0 6.2px rgba(255, 255, 255, 0.65);
}

/* Hiring-request notification dot - BLUE per Figma (toggled by the shared
   notification system adding .hxa-has-dot to #dsb-hiring-req when there are
   unread request notifications) */
.dsb-nav-dot {
    position: absolute;
    top: 9px; right: 9px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #2563EB;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
    display: none;
}
.dsb-nav.hxa-has-dot .dsb-nav-dot { display: block; }

/* Hover tooltips: instant, to the right of the rail, so no icon is ambiguous */
.dsb-brand[data-tip]::after,
.dsb-nav[data-tip]::after,
.dsb-nav-bell[data-tip]::after,
.dsb-side-avatar[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    padding: 6px 10px;
    background: #0F172A;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px; font-weight: 500; line-height: 1;
    white-space: nowrap;
    border-radius: 8px;
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.14s ease, transform 0.14s ease;
    z-index: 60;
}
.dsb-brand[data-tip]:hover::after,
.dsb-nav[data-tip]:hover::after,
.dsb-nav-bell[data-tip]:hover::after,
.dsb-side-avatar[data-tip]:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ---------------- Body column ---------------- */
/* Top edge flush with the rail.
   `gap` was spacing the column, and a gap applies between EVERY pair of flex
   items - so anything that lands ahead of the topnav (a zero-height node, an
   injected wrapper) contributes a full 24px above the header and drops it below
   the rail's panel edge, while the rail, a child of the shell rather than of
   this column, stays at the shell's 24px padding. Spacing each item off its
   PREDECESSOR instead can never put space above the first one, so the header
   starts at the shell's padding whatever precedes it. Identical spacing when
   the topnav really is first. */
.dsb-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.dsb-body > * + * { margin-top: 24px; }
/* The rail is the header's reference line: same shell padding, no offset of its
   own, so the two panels always begin together. `order` is what actually
   guarantees it: killing the margin only helps while the header is the column's
   first child, and a page (or an injected wrapper) that puts anything ahead of
   it pushes the header down by that box's height and the two panels stop
   starting on the same line. Ordering it first makes the header the column's top
   box whatever the DOM does, so its top edge is the shell's padding edge - the
   same line the rail starts on. */
.dsb-body > .dsb-topnav { order: -1; margin-top: 0; }
/* ...and the sticky inset has to go with it. `top: 24px` is measured from the
   SCROLLPORT, which in a fixed shell is .dsb-shell - whose scrollport already
   starts at its own 24px padding edge. The inset therefore double-counts that
   padding and parks the header at 48px while the rail stays at 24px. The rail
   never showed the fault because its height exactly fills its containing block,
   so sticky has nowhere to slide it. Here `main` is the scroller and the header
   sits outside it, so the header never scrolls and the inset buys nothing:
   zero it and the header sits at its flow position - the rail's line. Scrolling
   pages (no .is-fixed) keep the 24px float against the viewport. */
.dsb-shell.is-fixed > .dsb-body > .dsb-topnav { top: 0; }

/* ---------------- Top nav ---------------- */
.dsb-topnav {
    flex: none;
    box-sizing: border-box;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 26px;
    /* Sticky bar: at 0.2 alpha the cards scrolling underneath read straight
       through it and the breadcrumb sat on top of another card's text. Enough
       opacity + blur to stay glass while actually occluding what passes below. */
    background: rgba(247, 250, 253, 0.82);
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 16px;
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    position: sticky;
    top: 24px;
    z-index: 15;
}
.dsb-crumbs { display: flex; align-items: center; gap: 8px; }
/* Crumbs that are links carry the browser's default underline, which drew a
   rule under every trail segment. They read as a path, not as body-copy links -
   the hover colour is enough of an affordance. */
.dsb-crumb { font-size: 15.5px; line-height: 24px; color: #64748B; text-decoration: none; }
a.dsb-crumb:hover { color: #334155; }
.dsb-crumb-sep { color: #64748B; }
.dsb-crumb-current { font-weight: 600; color: #0F172A; }

.dsb-topnav-right { display: flex; align-items: center; gap: 14px; }

.dsb-search {
    box-sizing: border-box;
    display: flex; align-items: center; gap: 10px;
    width: 380px; max-width: 42vw; height: 46px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 12px;
    cursor: text;
}
.dsb-search-ic { width: 18px; height: 18px; flex: none; }
.dsb-search-input {
    flex: 1 1 auto; min-width: 0;
    border: 0; background: transparent; outline: none;
    font-family: 'Inter', sans-serif; font-size: 14px; color: #334155;
}
.dsb-search-input::placeholder { color: #64748B; }
.dsb-search-kbd {
    flex: none;
    padding: 0 8px; height: 22px; line-height: 22px;
    background: #E8EAED; border-radius: 4px;
    font-size: 13px; color: #64748B;
}

/* Shared user-dropdown widget → circular avatar in the LEFT sidebar rail.
   The bell mounts next to it; both sit in the sidebar's bottom group. */
.dsb-side-bottom .hxa-header-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0; }
.dsb-avatar { position: relative; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; overflow: visible; }
.dsb-avatar .hxa-userdd-trigger {
    padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
    gap: 0 !important; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
}
.dsb-avatar .hxa-userdd-name, .dsb-avatar .hxa-userdd-chev { display: none !important; }
/* Small caret badge so it reads as a menu (the profile dropdown lives here) */
.dsb-avatar::after {
    content: "";
    position: absolute; right: -3px; bottom: -2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / 10px no-repeat;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
    pointer-events: none;
    transition: transform 0.16s ease;
}
.dsb-avatar.open::after { transform: rotate(180deg); }
.dsb-avatar .hxa-userdd-avatar {
    width: 52px !important; height: 52px !important; border-radius: 50% !important;
    pointer-events: none;                /* let the click reach the trigger */
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #0B90F3 0%, #007EE8 100%) !important;
    border: 1px solid #8AC9FF !important;
    box-shadow: inset 0 0 7.7px rgba(255, 255, 255, 0.65), inset 0 0 6.2px rgba(255, 255, 255, 0.65) !important;
}
.dsb-avatar .hxa-userdd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dsb-avatar .hxa-userdd-avatar svg { width: 28px; height: 28px; }
.dsb-avatar .hxa-userdd-avatar svg path { fill: #FFFFFF !important; }

/* Notification bell - its own mid-rail slot, styled like the other nav icons */
.dsb-nav-bell {
    position: relative;
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    flex: none;
}
.dsb-sidebar .hxa-bell { display: inline-flex; position: static; }
.dsb-sidebar .hxa-bell-btn {
    width: 52px !important; height: 52px !important; background: transparent !important;
    border: 0 !important; border-radius: 13px !important; color: #334155 !important; box-shadow: none !important;
    transition: background 0.15s !important;
}
.dsb-sidebar .hxa-bell-btn:hover { background: rgba(255, 255, 255, 0.45) !important; }
.dsb-sidebar .hxa-bell.open .hxa-bell-btn { background: rgba(176, 219, 255, 0.6) !important; color: #007EE8 !important; }
.dsb-sidebar .hxa-bell-btn svg { width: 22px !important; height: 22px !important; }
/* Panel pops out to the RIGHT of the rail, vertically centred on the bell. */
.dsb-sidebar .hxa-bell-panel {
    left: calc(100% + 14px) !important; right: auto !important;
    top: 50% !important; bottom: auto !important;
    transform: translateY(-50%) !important;
    z-index: 2300 !important;
}
.dsb-sidebar .hxa-bell-badge { top: 6px !important; right: 6px !important; }

/* --- Profile dropdown menu (Figma "ProfileDropdown"), pops UP + to the RIGHT --- */
.dsb-avatar .hxa-userdd-menu {
    position: absolute !important;
    top: auto !important;
    bottom: calc(100% + 10px) !important;
    left: 8px !important;
    right: auto !important;
    width: 260px;
    box-sizing: border-box;
    padding: 8px;
    background: #FAFAFA;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    gap: 2px;
}
.dsb-avatar .hxa-userdd-email {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 20px;
    color: #0F172A;
    text-transform: none;
    padding: 8px 12px;
    margin: 0 0 2px;
}
.dsb-avatar .hxa-userdd-divider {
    height: 1px;
    background: #E2E8F0;
    width: 100%;
    margin: 6px 0;
}
.dsb-avatar .hxa-userdd-item {
    height: auto;
    margin: 0;
    padding: 8px 12px;
    gap: 12px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    color: #64748B;
}
.dsb-avatar .hxa-userdd-item span { flex: 1 1 auto; }
.dsb-avatar .hxa-userdd-item:hover { color: #0F172A; background: #EEF2F7; }
.dsb-avatar .hxa-userdd-item:hover .hxa-userdd-ic { stroke: #0F172A; }
.dsb-avatar .hxa-userdd-ic { width: 16px; height: 16px; stroke: #64748B; }
/* Active row = "Profile & workspace" (blue) */
.dsb-avatar .hxa-userdd-item[data-userdd-profile] { background: #E6F3FF; color: #007EE8; }
.dsb-avatar .hxa-userdd-item[data-userdd-profile]:hover { background: #DCEEFF; color: #007EE8; }
.dsb-avatar .hxa-userdd-item[data-userdd-profile] .hxa-userdd-ic,
.dsb-avatar .hxa-userdd-item[data-userdd-profile]:hover .hxa-userdd-ic { stroke: #007EE8; }
/* "Complete setup" progress pill */
.dsb-avatar .hxa-userdd-item.complete { color: #64748B; }
.dsb-avatar .hxa-userdd-item.complete .hxa-userdd-ic { stroke: #64748B; }
.dsb-avatar .hxa-userdd-badge {
    flex: none;
    padding: 2px 10px;
    background: rgba(176, 219, 255, 0.3);
    border-radius: 16px;
    font-weight: 600;
    font-size: 12px;
    line-height: 20px;
    color: #007EE8;
}
/* Logout row */
.dsb-avatar .hxa-userdd-item.logout { color: #64748B; }
.dsb-avatar .hxa-userdd-item.logout:hover { color: #DC3545; background: rgba(220, 53, 69, 0.06); }
.dsb-avatar .hxa-userdd-item.logout:hover .hxa-userdd-ic { stroke: #DC3545; }
/* Disabled rows (Help & support / Plan & billing) read like the Figma: same
   slate tone as the active items, just no hover affordance. */
.dsb-avatar .hxa-userdd-item.disabled,
.dsb-avatar .hxa-userdd-item.disabled:hover { color: #64748B; background: transparent; cursor: default; }
.dsb-avatar .hxa-userdd-item.disabled .hxa-userdd-ic,
.dsb-avatar .hxa-userdd-item.disabled:hover .hxa-userdd-ic { stroke: #64748B; }
/* Hiring requests lives in the sidebar, so drop its duplicate from the profile
   menu. Settings is the opposite: the rail no longer carries a gear, and the
   profile menu is its ONLY entry point, so it must never be hidden here. */
.dsb-avatar [data-userdd-requests] { display: none !important; }

/* ---------------- Main / centered content ---------------- */
.dsb-main {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    padding: 24px 24px 40px;
    /* The same 24px, restated for the inner-scroll layout: inside .is-fixed the
       right edge belongs to the scrollbar-lane rule above, which adds the lane
       to this rather than reading the shorthand. Pages that zero or change the
       side inset (.jbx-main, .rdx-main) override the variable, not the padding.
       Inert on pages that are not on the inner-scroll layout. */
    --hx-main-pad-right: 24px;
}
.dsb-center {
    width: 100%;
    max-width: 1160px;
    display: flex;
    flex-direction: column;
    gap: 44px;
}

/* Hero */
.dsb-hero { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding-top: 20px; }
.dsb-tag {
    display: inline-flex; align-items: center;
    padding: 4px 13px;
    background: rgba(176, 219, 255, 0.3);
    border-radius: 16px;
    font-weight: 600; font-size: 13px; line-height: 20px;
    color: #007EE8;
}
.dsb-title-stack { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dsb-title { margin: 0; font-weight: 800; font-size: 40px; line-height: 1.18; color: #0F172A; letter-spacing: -0.01em; }
.dsb-subtitle { margin: 0; font-weight: 400; font-size: 18px; color: #64748B; }

/* Stats row */
.dsb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dsb-stat {
    box-sizing: border-box;
    display: flex; flex-direction: column; gap: 10px;
    padding: 22px 26px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 18px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.dsb-stat:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 22.6px #FFFFFF, 0 12px 26px -14px rgba(0, 90, 180, 0.4);
}
.dsb-stat-label { font-weight: 600; font-size: 13px; line-height: 20px; letter-spacing: 0.1em; text-transform: uppercase; color: #64748B; }
.dsb-stat-value { font-weight: 700; font-size: 42px; line-height: 50px; color: #0F172A; font-variant-numeric: tabular-nums; }
.dsb-stat-sub { font-weight: 400; font-size: 13.5px; line-height: 20px; color: #334155; }

/* Suggested actions */
.dsb-suggested { display: flex; flex-direction: column; gap: 18px; }
.dsb-section-head { display: flex; align-items: center; justify-content: space-between; }
.dsb-section-title { margin: 0; font-weight: 600; font-size: 18px; line-height: 26px; color: #0F172A; }

.dsb-action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dsb-action {
    box-sizing: border-box;
    display: flex; flex-direction: column; gap: 18px;
    padding: 24px 28px;
    min-height: 150px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 18px;
    text-decoration: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.dsb-action:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 0 22.6px #FFFFFF, 0 14px 30px -14px rgba(0, 90, 180, 0.45);
}
.dsb-action:hover .dsb-action-arrow { transform: translateX(4px); }
.dsb-action-top { display: flex; align-items: center; justify-content: space-between; }
.dsb-action-icon {
    width: 42px; height: 42px;
    border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    flex: none;
}
.dsb-action-icon svg { width: 22px; height: 22px; }
.dsb-action-icon.ic-blue { background: #B0DBFF; }
.dsb-action-icon.ic-purple { background: #DAD3FF; }
.dsb-action-icon.ic-green { background: #CAEBE1; }
.dsb-action-icon.ic-amber { background: #FEF3C7; }
.dsb-action-arrow { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.16s ease; }
.dsb-action-arrow svg { width: 24px; height: 24px; }
.dsb-action-text { display: flex; flex-direction: column; gap: 6px; }
.dsb-action-title { margin: 0; font-weight: 600; font-size: 20px; line-height: 28px; color: #0F172A; }
.dsb-action-sub { margin: 0; font-weight: 400; font-size: 14px; line-height: 21px; color: #334155; }

/* ---------------- Entrance animations ---------------- */
@keyframes dsbRise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}
@keyframes dsbFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.dsb-hero, .dsb-stat, .dsb-section-head, .dsb-action {
    animation: dsbRise 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.dsb-hero { animation-delay: 0.02s; }
.dsb-stats .dsb-stat:nth-child(1) { animation-delay: 0.10s; }
.dsb-stats .dsb-stat:nth-child(2) { animation-delay: 0.16s; }
.dsb-stats .dsb-stat:nth-child(3) { animation-delay: 0.22s; }
.dsb-stats .dsb-stat:nth-child(4) { animation-delay: 0.28s; }
.dsb-section-head { animation-delay: 0.30s; }
.dsb-action-grid .dsb-action:nth-child(1) { animation-delay: 0.34s; }
.dsb-action-grid .dsb-action:nth-child(2) { animation-delay: 0.40s; }
.dsb-action-grid .dsb-action:nth-child(3) { animation-delay: 0.46s; }
.dsb-action-grid .dsb-action:nth-child(4) { animation-delay: 0.52s; }
/* Sidebar + top nav ease in */
.dsb-sidebar { animation: dsbFade 0.5s ease both; }
.dsb-topnav { animation: dsbRise 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both; animation-delay: 0.04s; }

/* The stat number fades as the count-up runs (JS adds .is-counting). */
.dsb-stat-value { transition: color 0.3s ease; }
.dsb-stat-value.is-counting { color: #007EE8; }

@media (prefers-reduced-motion: reduce) {
    .dsb-hero, .dsb-stat, .dsb-section-head, .dsb-action,
    .dsb-sidebar, .dsb-topnav { animation: none !important; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
    .dsb-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .dsb-shell { padding: 14px; gap: 14px; }
    .dsb-action-grid { grid-template-columns: 1fr; }
    .dsb-search { width: 200px; }
    .dsb-crumbs { display: none; }
    .dsb-title { font-size: 26px; }
}
@media (max-width: 560px) {
    .dsb-stats { grid-template-columns: 1fr; }
    .dsb-avatar .hxa-userdd-name { display: none; }
}

/* ===================================================================
   Banner alert (Figma "Alert")
   A confirmation the recruiter should actually read, as opposed to the
   dark pill toasts used for transient chatter. Lives here with the rest
   of the shared chrome so any page can raise one through HXAlert
   (static/js/hxa_alert.js) without restating the design.
   =================================================================== */
.hxa-alert {
    box-sizing: border-box;
    /* Fixed, not absolute: the spec's `absolute` pins the banner to
       whatever the page happens to scroll to. Fixed keeps it 24px below the
       viewport top, which is what the design means by top: 24px. */
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    /* Above the sticky topnav (15) and the app's own toasts (1400). */
    z-index: 1500;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    width: 640px;
    /* The design is a fixed 640px; below that the banner tracks the viewport
       instead of forcing the page to scroll sideways. */
    max-width: calc(100vw - 32px);
    padding: 20px 24px;
    background: #DCFCE7;
    /* The spec's 1px stroke is drawn INSIDE the 88px frame, alongside 20px
       padding and 48px of text. A real border would add its 2px on top of
       that and make the banner 90px; an inset shadow paints the identical
       line without joining the layout, so the height lands on 88. */
    box-shadow: inset 0 0 0 1px #16A34A;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    /* No fixed 88px height: 20 + 48 + 20 lands on 88 on its own for a
       one-line body, and a wrapped line grows the banner instead of
       spilling out of it. */
}
.hxa-alert[hidden] { display: none; }

.hxa-alert-icon { flex: none; width: 24px; height: 24px; display: block; }

/* Spec nests the close control INSIDE the text block, so the gap beside it
   is 8px while the icon's is 12px. Kept as-is rather than flattened. */
.hxa-alert-head {
    display: flex; flex-direction: row; align-items: flex-start;
    gap: 8px; flex: 1 1 auto; min-width: 0;
}
.hxa-alert-content {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 4px; flex: 1 1 auto; min-width: 0;
}
.hxa-alert-title {
    font-weight: 600; font-size: 14px; line-height: 22px; color: #0F172A;
}
.hxa-alert-msg {
    font-weight: 400; font-size: 14px; line-height: 22px; color: #0F172A;
    /* A long candidate name must not blow the banner open. */
    overflow-wrap: anywhere;
}
.hxa-alert-close {
    flex: none; width: 24px; height: 24px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; border-radius: 50%;
    color: #64748B; cursor: pointer;
    transition: color 0.14s ease, background 0.14s ease;
}
.hxa-alert-close:hover { color: #0F172A; background: rgba(15, 23, 42, 0.06); }
.hxa-alert-close:focus-visible { outline: 2px solid #16A34A; outline-offset: 2px; }
.hxa-alert-close svg { width: 24px; height: 24px; display: block; }

@keyframes hxaAlertDrop {
    from { opacity: 0; transform: translate(-50%, -12px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
.hxa-alert { animation: hxaAlertDrop 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@media (prefers-reduced-motion: reduce) {
    .hxa-alert { animation: none; }
}

/* ===================================================================
   Upload Resumes modal (Figma "Dashboard option 9 / 11")
   Opened from the "Upload resumes" action card and the sidebar icon -
   the recruiter never leaves the dashboard to add resumes.
   =================================================================== */
.dur-scrim {
    position: fixed;
    inset: 0;
    z-index: 2400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    font-family: 'Inter', sans-serif;
}
.dur-scrim[hidden] { display: none; }
.dur-scrim * { font-family: 'Inter', sans-serif; }

.dur-card {
    box-sizing: border-box;
    width: 760px;
    max-width: 100%;
    /* Fixed height on purpose: the modal never grows with the candidate list.
       The list scrolls inside itself instead (see .dur-pool-list). */
    height: min(747px, calc(100vh - 40px));
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    background: #F3F4F6;
    border: 1px solid #CBD5E1;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 24px;
}

/* Scrollable content; the footer stays pinned. */
/* With room to spare the body does not scroll - the header and dropzone stay
   put and only the candidate list moves, so the modal keeps one scrollbar in
   one place. When there is NOT room - a 13" laptop at 150% display scaling, a
   browser at 125% zoom, a short window - the card is bound to the viewport and
   the stack above the list is taller than the card. This used to be
   `overflow: hidden`, which clipped the list to a sliver (or nothing) with no
   way to reach it: "not able to scroll" on exactly those machines. The body
   now scrolls as the fallback, so every row is reachable on every screen; the
   short-viewport rules further down shrink the stack so that fallback is
   rarely needed. */
.dur-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* The card owns the 32px padding now, so the body just stacks. */
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}
.dur-body::-webkit-scrollbar { width: 10px; }
.dur-body::-webkit-scrollbar-track { background: transparent; }
.dur-body::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 999px;
    border: 3px solid #F3F4F6;
    background-clip: padding-box;
}
/* Flex children default to shrinking; nothing in this stack may, or the
   dropzone and the headings collapse before the body gets to scroll. */
.dur-body > * { flex-shrink: 0; }
.dur-body > .dur-pool { flex-shrink: 1; }

.dur-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 16px;
}
.dur-titles { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dur-titles h2 { margin: 0; font-weight: 600; font-size: 24px; line-height: 32px; color: #0F172A; }
.dur-titles p { margin: 0; font-weight: 400; font-size: 12px; line-height: 20px; color: #64748B; }
.dur-close {
    flex: none;
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    color: #334155;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
}
.dur-close svg { width: 24px; height: 24px; }
.dur-close:hover { background: #F1F5F9; color: #0F172A; }

/* ---- Empty state: dashed dropzone ---- */
/* The dropzone keeps its own height. It must NOT flex-grow: when the workspace
   list sits below it, a growing dropzone overflowed its container and painted
   straight through the candidate rows. */
.dur-empty { display: flex; flex-direction: column; gap: 16px; flex: none; }
.dur-empty[hidden] { display: none; }
.dur-drop {
    box-sizing: border-box;
    flex: none;
    width: 100%;
    min-height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #F3F4F6;
    border: 1px dashed #8B95A5;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.dur-drop:hover, .dur-drop.is-over { border-color: #007EE8; background: rgba(176, 219, 255, 0.14); }
.dur-drop-icon {
    flex: none;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(176, 219, 255, 0.4);
    border-radius: 12px;
    color: #007EE8;
}
.dur-drop-icon svg { width: 20px; height: 20px; }
.dur-drop-texts { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dur-drop-title { font-weight: 600; font-size: 14px; line-height: 22px; color: #334155; text-align: center; }
.dur-drop-sub { font-weight: 400; font-size: 12px; line-height: 20px; color: #64748B; text-align: center; }
.dur-note { margin: 0; font-weight: 400; font-size: 12px; line-height: 15px; color: #64748B; text-align: center; }

/* ---- Filled state: selected file list ---- */
.dur-filled { display: flex; flex-direction: column; gap: 16px; }
.dur-filled[hidden] { display: none; }
.dur-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 32px; }
.dur-status-count { font-weight: 500; font-size: 16px; line-height: 24px; color: #0F172A; }
.dur-status-actions { display: flex; align-items: center; gap: 8px; }
.dur-link-danger {
    height: 32px;
    padding: 0 15px;
    background: transparent;
    border: 0;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    color: #DC2626;
    cursor: pointer;
    transition: background 0.15s;
}
.dur-link-danger:hover { background: #FEF2F2; }
.dur-add {
    box-sizing: border-box;
    height: 32px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-weight: 600;
    font-size: 12px;
    line-height: 20px;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.15s;
}
.dur-add svg { width: 16px; height: 16px; }
.dur-add:hover { border-color: #54B1FF; }

.dur-list { display: flex; flex-direction: column; gap: 12px; }
.dur-row {
    box-sizing: border-box;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 78px;
    padding: 16px;
    background: #FAFAFA;
    border: 1px solid #8B95A5;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 16px;
}
.dur-row-main { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.dur-row-icon { flex: none; position: relative; width: 24px; height: 24px; margin-top: 3px; color: #FF1818; }
.dur-row-icon svg { width: 24px; height: 24px; }
.dur-row-ext {
    position: absolute;
    left: 50%; bottom: 1px;
    transform: translateX(-50%);
    padding: 0 2px;
    background: #FF1818;
    border-radius: 2px;
    font-weight: 700;
    font-size: 6px;
    line-height: 9px;
    color: #FFFFFF;
    letter-spacing: 0.02em;
}
.dur-row-texts { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.dur-row-name {
    font-weight: 600; font-size: 14px; line-height: 22px; color: #334155;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dur-row-meta { font-weight: 400; font-size: 12px; line-height: 20px; color: #64748B; }
.dur-row-x {
    flex: none;
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    border: 0; padding: 0;
    border-radius: 50%;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.dur-row-x svg { width: 24px; height: 24px; }
.dur-row-x:hover { background: #F1F5F9; color: #DC2626; }

/* In-flight row: blue wash + spinning refresh, per the Figma "processing" row */
.dur-row.is-busy {
    background: linear-gradient(91.27deg, rgba(0, 126, 232, 0.06) 0.02%, rgba(0, 126, 232, 0) 68.75%), #FAFAFA;
    border: 1px solid #54B1FF;
    box-shadow: none;
    border-radius: 10px;
}
.dur-row-spin { flex: none; width: 24px; height: 24px; color: #225AD6; animation: dur-spin 0.9s linear infinite; }
.dur-row-spin svg { width: 24px; height: 24px; }
@keyframes dur-spin { to { transform: rotate(360deg); } }

/* Accepted row: the green success card from the Figma - a mint fill inside a
   green-300 hairline at 12px, no inset glow (the wash is what reads, and the
   glow washes it out). Both states earn it: a file that passed validation is
   accepted, and one the server has taken is uploaded. What separates them is
   the control on the right - a remove button while it can still be pulled
   back, the tick once it cannot.
   The fill was #EEF9F5, three points of lightness off white: on screen it read
   as a plain white card, which is what QA raised against the Figma - a success
   state nobody can see is not a success state. Same hue and saturation, taken
   down to 93% lightness so the wash actually shows.
   Scoped to .dur-list, the files being uploaded right now: the pool below is
   every resume the workspace has ever added, all of them parsed, and greening
   all of them would say nothing. */
.dur-list .dur-row.is-ready,
.dur-list .dur-row.is-done {
    gap: 12px;
    background: #E0F5EC;
    border: 1px solid #8DD3BE;
    box-shadow: none;
    border-radius: 12px;
}
/* The state also has to be readable in the line of text, the way the failed row
   already is - a wash alone leaves "uploaded" and "could not be parsed" telling
   the recruiter apart by a hairline. Same hue family as the border, dark enough
   to clear 4.5:1 on the wash behind it (5.6:1) at this 12px size. */
.dur-list .dur-row.is-ready .dur-row-meta,
.dur-list .dur-row.is-done .dur-row-meta { color: #256B52; }
/* Filled disc with a white check, not a bare green tick. */
.dur-row-tick {
    flex: none;
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #16A34A;
    border-radius: 50%;
    color: #FFFFFF;
}
.dur-row-tick svg { width: 14px; height: 14px; }

/* Rejected row, the counterpart to the green card above. It used to be a border
   colour and nothing else, so beside a white-looking "success" card the two
   states were near enough identical - the actual complaint QA filed. Same
   treatment at the same strength, in red. Scoped to .dur-list for the same
   reason the green is: the pool below is not a queue of uploads. */
.dur-list .dur-row.is-error {
    background: #FDECEB;
    border: 1px solid #F0B3B0;
    box-shadow: none;
    border-radius: 12px;
}
.dur-row.is-error { border-color: #F0B3B0; }
/* One step deeper than the #DC2626 it used to be: on the pink wash that value
   fell to 4.2:1, under the 4.5:1 this 12px line needs. This reads 5.7:1. */
.dur-row.is-error .dur-row-meta { color: #B91C1C; }

/* ---- Footer ---- */
.dur-foot {
    box-sizing: border-box;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    /* Sits inside the card's own padding now: a hairline rule above the
       buttons rather than a separate white bar. */
    padding: 16px 0 0;
    background: transparent;
    border-top: 1px solid #E2E8F0;
    border-radius: 0;
}
.dur-btn-ghost {
    box-sizing: border-box;
    height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(179.25deg, rgba(0, 126, 232, 0) 39.2%, rgba(0, 126, 232, 0.2) 151.07%), rgba(255, 255, 255, 0.7);
    border: 1px solid #CBD5E1;
    box-shadow: inset 0 0 22.6px #FFFFFF;
    border-radius: 15px;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.15s;
}
.dur-btn-ghost svg { width: 16px; height: 16px; }
.dur-btn-ghost:hover { border-color: #8AC9FF; }
.dur-btn-primary {
    box-sizing: border-box;
    height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(0deg, #0B90F3, #0B90F3), linear-gradient(180deg, rgba(0, 126, 232, 0) 8.33%, rgba(0, 126, 232, 0.7) 152.38%), rgba(255, 255, 255, 0.62);
    border: 1px solid #8AC9FF;
    box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.1), inset 0 0 7.7px #FFFFFF, inset 0 0 6.2px #FFFFFF;
    border-radius: 15px;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    color: #FFFFFF;
    cursor: pointer;
    transition: filter 0.15s, transform 0.15s;
}
.dur-btn-primary svg { width: 16px; height: 16px; }
.dur-btn-primary:hover:not(:disabled) { filter: brightness(1.05); }
.dur-btn-primary:active:not(:disabled) { transform: scale(0.985); }
/* Figma's disabled Upload: flat blue-200 with a muted label */
.dur-btn-primary:disabled {
    background: #8AC9FF;
    color: #E8EAED;
    cursor: not-allowed;
    filter: none;
}
.dur-btn-primary:disabled svg { stroke: #E8EAED; }

@media (max-width: 820px) {
    .dur-card { max-height: calc(100vh - 40px); gap: 16px; padding: 20px; }
    .dur-foot { padding: 14px 0 0; }
    .dur-status { flex-wrap: wrap; }
}

/* Short viewports. The Figma frame is 747px tall and assumes a 1080p desktop;
   a 768px laptop at 125% zoom has 614px to give, and 150% display scaling on
   a 13" screen leaves about 600. Below 760px of height the stack above the
   candidate list is compacted - the dropzone goes to one line, the gaps and
   padding tighten - so the list keeps its two rows and stays the one thing
   that scrolls. If the viewport is shorter still, the body scrolls (above). */
@media (max-height: 760px) {
    .dur-card { gap: 16px; padding: 24px; }
    .dur-body { gap: 16px; }
    .dur-head { padding-bottom: 8px; }
    .dur-titles h2 { font-size: 20px; line-height: 28px; }
    .dur-drop {
        min-height: 0;
        flex-direction: row;
        justify-content: flex-start;
        gap: 14px;
        padding: 12px 16px;
    }
    .dur-drop-texts { align-items: flex-start; }
    .dur-drop-title, .dur-drop-sub { text-align: left; }
    .dur-pool { gap: 8px; padding-top: 12px; }
    .dur-foot { padding: 12px 0 0; }
}

/* ---- Workspace candidate list (org-wide, same list for every member) ----
   A titled section of its own, split from the upload area above by a rule, so
   "drop files here" and "who is already here" never read as one control. */
.dur-pool {
    flex: 1 1 auto;
    /* `0`, not `auto`: a flex item's automatic minimum is its content height,
       and the list's content is every row, so with `auto` the section would
       never shrink and the list would never scroll. With 0 the section
       shrinks until the list hits its two-row minimum; past that the list
       spills out of the section into the body, which scrolls (see .dur-body).
       Nothing is clipped at any stage. */
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #E2E8F0;
}
.dur-pool[hidden] { display: none; }
/* Read-only (hiring manager): nothing above it, so no divider. */
.dur-scrim.is-readonly .dur-pool { padding-top: 0; border-top: 0; }

.dur-pool-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dur-pool-heading { display: flex; align-items: center; gap: 8px; }
.dur-pool-title { margin: 0; font-weight: 600; font-size: 16px; line-height: 24px; color: #0F172A; }
/* Part of the heading text - "Previously Added Resumes (3)" - not a pill beside
   it. The count is rendered with its own brackets by durRenderPool. */
.dur-pool-count {
    font-weight: 600;
    color: inherit;
}
.dur-pool-note { margin: -4px 0 0; font-weight: 400; font-size: 12px; line-height: 18px; color: #64748B; }

.dur-pool-search { position: relative; display: flex; align-items: center; }
.dur-pool-search svg { position: absolute; left: 12px; width: 15px; height: 15px; color: #64748B; pointer-events: none; }
.dur-pool-search input {
    box-sizing: border-box;
    width: 230px;
    height: 34px;
    padding: 0 12px 0 34px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-weight: 400;
    font-size: 13px;
    color: #0F172A;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.dur-pool-search input::placeholder { color: #94A3B8; }
.dur-pool-search input:focus { border-color: #54B1FF; box-shadow: 0 0 0 3px rgba(0, 126, 232, 0.1); }
.dur-pool-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Rows are a plain list: hairline separated, no card-in-card nesting.
   This is the ONLY scrolling area in the modal. `scrollbar-gutter: stable`
   reserves the track so rows don't shift when the bar appears, and the thumb is
   inset with a transparent border so it sits off the row edge. */
.dur-pool-list {
    flex: 1 1 auto;
    /* Two full rows (78px each plus their borders) at the least. Below that a
       list is not recognisable as one, and 96px showed a single row with the
       next one cut in half. When the viewport cannot afford even this, the body
       above scrolls instead of this shrinking to nothing. */
    min-height: 160px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    display: flex;
    flex-direction: column;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}
.dur-pool-list::-webkit-scrollbar { width: 10px; }
.dur-pool-list::-webkit-scrollbar-track { background: transparent; }
.dur-pool-list::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 999px;
    border: 3px solid #FFFFFF;      /* inset, so it doesn't touch the rows */
    background-clip: padding-box;
}
.dur-pool-list::-webkit-scrollbar-thumb:hover { background: #94A3B8; background-clip: padding-box; }
.dur-pool-texts { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dur-pool-empty { flex: none; padding: 24px 12px; text-align: center; font-size: 13px; color: #64748B; background: #FFFFFF; }
.dur-pool-more { flex: none; padding: 10px 12px; font-size: 12px; color: #64748B; text-align: center; background: #F8FAFC; }

/* Hiring managers see the pool read-only: no dropzone, no staged files, no
   upload/add/remove controls. Their entry point is the same rail icon. */
.dur-scrim.is-readonly .dur-empty,
.dur-scrim.is-readonly .dur-filled,
.dur-scrim.is-readonly #dur-upload { display: none !important; }
.dur-scrim.is-readonly .dur-foot { justify-content: flex-end; }

@media (max-width: 620px) {
    .dur-pool-search input { width: 100%; }
    .dur-pool-search { width: 100%; }
}

/* Staged files: bounded so a big selection never pushes the candidate list
   out of the modal. Same inset scrollbar treatment. */
.dur-filled { flex: none; }
.dur-list {
    max-height: 208px;
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}
.dur-list::-webkit-scrollbar { width: 10px; }
.dur-list::-webkit-scrollbar-track { background: transparent; }
.dur-list::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 999px;
    border: 3px solid #FFFFFF;
    background-clip: padding-box;
}

/* Removing a previously added resume. The row itself is a .dur-row now (same
   markup as the files being uploaded above), so the button is .dur-row-x and
   only the trash tint is set here.
   The read-only rule is scoped by the data attribute, NOT by .dur-row-x: a
   hiring manager must lose the pool's delete buttons without also losing the
   remove button on files they are selecting. Dropping this rule would have
   silently handed hiring managers a delete they never had. */
.dur-row-x[data-dur-pool-del] svg { width: 17px; height: 17px; }
.dur-scrim.is-readonly .dur-row-x[data-dur-pool-del] { display: none; }

.dur-pool-note.is-error { color: #DC2626; font-weight: 500; }
