/* ============================================================================
   worklists.css — Working lists overhaul.

   INSTALL: save as `static/css/worklists.css`, load after `recruiting.css`.
   Every class is `wl2-*`, so today's `.wl-*` rules in app.css keep working and
   the port can go one template at a time. Colour, type and spacing are the
   repo's own `--ub-*` / `--hs-*` tokens declared on `.home-shell`; nothing here
   invents a colour. `.wl2-*` must therefore live inside `.home-shell`.

   The table language is `recruiting.css`'s (`rec-panel`, `rec-table`, `rec-who`,
   `rec-pill`, `rec-select`, `rec-textbtn`, `rec-state`). Only what an editable,
   configurable table needs that Recruiting had no use for is declared here.
   ========================================================================== */

.wl2 {
  /* The one semantic ramp on these screens. Gold is attention (a note that has
     gone stale, an unsaved cell); purple marks an approved absence and another
     list; danger is reserved for destroying a field. */
  --wl2-dirty: color-mix(in srgb, var(--hs-gold) 14%, #fff);
  --wl2-dirty-line: var(--hs-gold);
  --wl2-stale-ink: #7a5c12;
  --wl2-purple: #f2effa;
  --wl2-purple-line: #cfc5e6;
  min-width: 0;
}

/* -- Section bar tabs ------------------------------------------------------ */

/* The recruiting section bar was written for `<a href>`. These tabs are buttons
   (switching a list is in-page state), so the UA's own button chrome — border,
   grey field, radius, 13px system font — came through and boxed every tab.
   Reset to the anchor's rendering; the underline stays the only active signal. */
.wl2 .rec-sectionbar__tab {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-align: left;
}
.wl2 .rec-sectionbar__tab--on { border-bottom-color: var(--hs-gold); }
.wl2 .rec-sectionbar__tab--on .rec-sectionbar__ink { background: var(--hs-gold); }
.wl2 .rec-sectionbar__tab--on:has(> .rec-sectionbar__ink) { border-bottom-color: transparent; }
.wl2 .rec-sectionbar__action { border-radius: var(--ub-radius-sm); }

/* -- Page head meta line --------------------------------------------------- */

/* -- Page head ------------------------------------------------------------
   One line. The breadcrumb and the active tab both already say "Working lists",
   so the eyebrow is a third copy of the same word and goes. The list's counts
   sit beside its name rather than under it, and Talent Search — a setting
   nobody changes from here — lives in List settings where it is edited.
   ------------------------------------------------------------------------- */

.wl2 .rec-page__head { align-items: center; }
.wl2-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  min-width: 0;
}
.wl2 .wl2-head .rec-page__title { margin: 0; }
.wl2-head .wl2-meta { margin: 0; }

.wl2-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--hs-ink-soft);
}
.wl2-meta__sep { width: 1px; height: 0.85rem; background: var(--hs-line-strong); flex: none; }
.wl2 .rec-page__head { flex-wrap: wrap; }
.wl2 .rec-page__actions { flex-wrap: wrap; }
.wl2-meta strong { color: var(--hs-ink); font-weight: 600; }

/* -- View bar: focus filters, then view controls --------------------------- */

/* The view bar is one row: focus filters, then the three view controls. They
   only stack when the panel genuinely cannot hold them. */
.wl2-viewbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.85rem;
  background: var(--hs-surface);
  border-bottom: 1px solid var(--hs-line);
}
/* The view's status, its buttons and Display wrap as one group, so a narrow
   panel never leaves "Save for everyone" on a different row from its status. */
.wl2-viewbar__end {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  margin-left: auto;
}
.wl2-display-wrap { flex: none; }
.wl2-display { display: inline-flex; align-items: center; gap: 0.4rem; }
.wl2-display__icon { width: 1rem; height: 1rem; }
.wl2-display__chev { width: 0.8rem; height: 0.8rem; opacity: 0.7; }
.wl2-display[aria-expanded="true"] { border-color: var(--ub-primary); box-shadow: var(--ub-ring); }

/* The Display menu is a top-layer popover. worklists-view.js sets its top and left from the
   button and its max-height to the viewport minus its top and 16px; Group, Sort and Rows
   stay put, the footer stays pinned, and only the column list scrolls. */
.wl2-pop {
  position: fixed;
  inset: auto;
  margin: 0;
  width: 300px;
  padding: 0.8rem 0.8rem 0;
  overflow: hidden;
  border: 1px solid var(--hs-line-strong);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  box-shadow: var(--ub-shadow-lift);
  text-align: left;
}
.wl2-pop:popover-open { display: flex; flex-direction: column; }
.wl2-pop > * { flex: none; }
.wl2-pop__row { display: grid; grid-template-columns: 3.6rem 1fr; align-items: center; gap: 0.5rem; margin-bottom: 0.55rem; }
.wl2-pop__k {
  font-family: var(--ub-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hs-ink-faint);
}
.wl2-pop select.rec-select { width: 100%; }
.wl2-seg { display: inline-flex; justify-self: start; border: 1px solid var(--hs-line-strong); border-radius: 8px; overflow: hidden; }
.wl2-seg button {
  padding: 0.28rem 0.4rem;
  border: 0;
  border-left: 1px solid var(--hs-line);
  background: #fff;
  font: inherit;
  font-size: 0.76rem;
  color: var(--hs-ink-soft);
  cursor: pointer;
}
.wl2-seg button:first-child { border-left: 0; }
.wl2-seg button[aria-pressed="true"] { background: var(--hs-active); color: var(--hs-ink); font-weight: 600; }
.wl2-pop > .wl2-pop__cols {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0.7rem -0.8rem 0;
  padding: 0.6rem 0.8rem 0.3rem;
  border-top: 1px solid var(--hs-line);
}
.wl2-pop__colk { flex: none; display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.3rem; }
.wl2-pop__hint { font-size: 0.72rem; color: var(--hs-ink-faint); }
.wl2-pop__cols > .wl2-cols { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.wl2-pop .wl2-colrow { padding-top: 0.22rem; padding-bottom: 0.22rem; }
.wl2-pop .wl2-colrow__src { font-size: 0.6rem; }
.wl2-pop__foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem -0.8rem 0;
  padding: 0.6rem 0.8rem;
  border-top: 1px solid var(--hs-line);
  background: #fbfaf8;
}
.wl2-viewbar__k {
  font-family: var(--ub-font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hs-ink-faint);
  white-space: nowrap;
}

/* A focus filter. The count is part of the control, not a decoration: a filter
   that would show nothing says so before it is pressed. */
.wl2-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 1.85rem;
  padding: 0 0.55rem;
  border: 1px solid var(--hs-line-strong);
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hs-ink-soft);
  cursor: pointer;
  white-space: nowrap;
}
.wl2-chip:hover { border-color: var(--hs-gold); color: var(--hs-ink); }
.wl2-chip--on {
  background: var(--hs-active);
  border-color: var(--hs-gold-border);
  color: var(--wl2-stale-ink);
}
.wl2-chip__n {
  font-family: var(--ub-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--hs-ink-faint);
}
.wl2-chip--on .wl2-chip__n { color: var(--wl2-stale-ink); }
.wl2-chip--empty { color: var(--hs-ink-faint); }
.wl2-chip:disabled,
.wl2-chip:disabled:hover {
  border-color: var(--hs-line);
  color: var(--hs-ink-faint);
  cursor: default;
}

/* -- Table ----------------------------------------------------------------- */

/* The table responds to the width of the panel it sits in, not the viewport:
   with a 250px sidebar the two differ by enough to matter, and the sideways
   overflow this prevents was hiding the note column behind the pinned action
   cell. `container-type: inline-size` makes the panel the query container. */
.wl2 .rec-panel { container-type: inline-size; }
/* `overflow: hidden` on .rec-panel would make it the head's scroll container; clip does not. */
.wl2 .rec-panel { overflow: clip; }

.wl2-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.wl2-table thead th {
  position: sticky;
  top: 103px; /* below the sticky .hs-topbar (56px) and .rec-sectionbar (46px tabs + 1px rule) */
  z-index: 3;
  background: #fbfaf8;
  border-bottom: 1px solid var(--hs-line-strong);
  padding: 0.45rem 0.6rem;
  text-align: left;
  white-space: nowrap;
  font-family: var(--ub-font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hs-ink-faint);
  vertical-align: bottom;
  /* One line. The table has room to the right, and a heading that wraps to two
     lines pushes the whole header band down for nothing. */
  white-space: nowrap;
  line-height: 1.3;
}
.wl2-table tbody td {
  padding: 0.3rem 0.6rem;
  border-bottom: 1px solid #f2efe9;
  vertical-align: top;
}
.wl2-table tbody tr:hover { background: #fcfbf9; }
.wl2-table tbody tr:last-child td { border-bottom: 0; }

/* The note column is what this table is for, so it takes the slack. Every other
   column is content-width. */
.wl2-c--note { width: 36%; min-width: 13rem; }
.wl2-c--who { min-width: 12rem; }
.wl2-c--fact { min-width: 7rem; }
.wl2-c--date { width: 1%; white-space: nowrap; }

/* The row's own control (its actions menu) is the last cell, and the note
   column's floor runs this table past the page well before a phone. Pinned so
   the menu stays reachable without a sideways scroll nothing announces. */
.wl2-c--act {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -10px 0 10px -10px rgba(24, 18, 43, 0.22);
}
.wl2-table thead th.wl2-c--act { background: #fbfaf8; z-index: 4; }
.wl2-table tbody tr:hover td.wl2-c--act { background: #fcfbf9; }

.wl2-sortbtn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.wl2-sortbtn:hover { color: var(--hs-ink); }
.wl2-sortbtn--on { color: var(--wl2-stale-ink); }
.wl2-sortbtn svg { width: 0.7rem; height: 0.7rem; flex: none; }
/* A per-list field, so the heading says so. Dotted underline rather than a
   badge on every heading: it is a fact about the column, not a state. */
.wl2-th__own { border-bottom: 1px dotted var(--hs-gold-border); }

/* -- Row height -----------------------------------------------------------
   One table, three heights. Compact spends the row on identity and the note's
   first line and drops everything a manager can get from a column of its own;
   Expanded is for the meeting where the notes are the agenda. The choice lives
   in the view, so it is temporary until somebody saves it as the shared default
   — the same rule as grouping and column order.
   ------------------------------------------------------------------------- */

.wl2-table--compact tbody td { padding-top: 0.14rem; padding-bottom: 0.14rem; }
.wl2-table--compact .wl2-who { padding-top: 0.08rem; align-items: center; }
.wl2-table--compact .wl2-who__sub { display: none; }
.wl2-table--compact .wl2-who__avatar { width: 1.35rem; height: 1.35rem; font-size: 0.58rem; }
.wl2-table--compact .wl2-note__text { -webkit-line-clamp: 1; }
.wl2-table--compact .wl2-note__foot { min-height: 0; }
.wl2-table--compact .wl2-note__foot:empty { display: none; }
.wl2-table--compact .wl2-edit,
.wl2-table--compact .wl2-fact { min-height: 1.45rem; padding-top: 0.14rem; }
.wl2-table--compact .wl2-input { min-height: 1.45rem; padding-top: 0.14rem; }

.wl2-table--expanded tbody td { padding-top: 0.45rem; padding-bottom: 0.45rem; }
.wl2-table--expanded .wl2-note__text {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* -- Compact: one line per contractor ---------------------------------------
   The note reads on one line and the review flag shares it. The foot is drawn
   only when it asks for something — Mark reviewed, or the save's status — and
   then on its own line under the reading; the age line is standard-only.
   ------------------------------------------------------------------------- */

.wl2-v2 .wl2-table--compact .wl2-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.4rem;
  row-gap: 0.1rem;
  min-width: 0;
}
.wl2-v2 .wl2-table--compact .wl2-note__foot {
  grid-column: 1 / -1;
  min-height: 0;
  padding-left: 0.4rem;
  gap: 0.3rem;
}
.wl2-v2 .wl2-table--compact .wl2-note__foot:not(:has(*)) { display: none; }
.wl2-v2 .wl2-table--compact .wl2-note__text { -webkit-line-clamp: 1; }
/* An empty note gets ONE treatment: the cell itself reads as the absence and
   as the control to fill it. No placeholder plus a badge underneath. */
.wl2-v2 .wl2-table--compact .wl2-edit--empty {
  border: 1px dashed var(--hs-line-strong);
  font-family: var(--ub-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wl2-v2 .wl2-table--compact .wl2-edit--empty:hover { border-style: solid; border-color: var(--hs-gold); }

/* ~52px at 100% zoom. The height is bought with padding around a 1.45rem
   control, not by growing the type or letting a second line in. */
.wl2-v2 .wl2-table--compact tbody td { padding-top: 0.62rem; padding-bottom: 0.62rem; }

/* An editable cell renders its value inside a `.wl2-edit` control that carries
   0.4rem of its own left padding, so the heading above it takes the same offset
   and the column reads as one edge. */
.wl2-table thead th.wl2-th--edit { padding-left: 1rem; }

/* -- Group band ------------------------------------------------------------ */

/* Not sticky: the header above it wraps to a second line at some widths, so a
   pinned offset would be wrong at exactly the widths it mattered. Bands are
   short and the column header stays pinned regardless. */
.wl2-band > th {
  padding: 0.7rem 0.6rem 0.45rem;
  text-align: left;
  background: var(--hs-surface);
  border-top: 1px solid var(--hs-line);
  border-bottom: 1px solid var(--hs-line);
  font-family: var(--ub-font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--hs-ink);
  white-space: normal;
}
.wl2-band__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.wl2-band__chev { width: 0.7rem; height: 0.7rem; flex: none; color: var(--hs-ink-faint); }
.wl2-band__chev--closed { transform: rotate(-90deg); }
.wl2-band__n {
  font-family: var(--ub-font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--hs-ink-soft);
}
.wl2 .rec-panel__foot { background: var(--hs-surface); border-top-color: var(--hs-line); }
.wl2-band__flags {
  font-family: var(--ub-font-mono);
  font-size: 0.66rem;
  color: var(--wl2-stale-ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* -- Identity and read-only facts ----------------------------------------- */

/* The identity cell is `rec-who`; what differs here is that a name wraps before it clips. */
.wl2-who__name { max-width: none; overflow: visible; white-space: normal; text-overflow: clip; }
.wl2-who__sub { max-width: none; }

.wl2-fact { display: block; padding-top: 0.3rem; color: var(--hs-ink-soft); }
.wl2-fact--none { color: var(--hs-ink-faint); }

/* -- Editable cell -------------------------------------------------------- */

/* Closed state: a target the whole cell wide, so a manager aiming at a date
   does not have to hit a 60px input. It reads as text until it is hovered. */
.wl2-edit {
  display: block;
  width: 100%;
  min-height: 1.75rem;
  padding: 0.28rem 0.4rem;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: 0.85rem;
  color: var(--hs-ink);
  text-align: left;
  cursor: text;
}
.wl2-edit:hover { border-color: var(--hs-line-strong); background: #fff; }
.wl2-edit--empty { color: var(--hs-ink-faint); }
.wl2-edit--mono { font-family: var(--ub-font-mono); font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wl2-edit--ro { cursor: default; }
.wl2-edit--ro:hover { border-color: transparent; background: none; }

/* Open state. Same box, same metrics, so nothing moves when it is entered. */
.wl2-input {
  display: block;
  width: 100%;
  min-height: 1.75rem;
  padding: 0.28rem 0.4rem;
  border: 1px solid var(--hs-gold);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  color: var(--hs-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hs-gold) 18%, transparent);
}
.wl2-input--mono { font-family: var(--ub-font-mono); font-size: 0.8rem; }
.wl2-input--note { resize: vertical; line-height: 1.45; }
/* A note edits in the reading's own box: no handle, one line tall, grown by the island. */
.wl2-input--grow { resize: none; overflow: hidden; }

/* Not saved (failed or in conflict). The tick is on the cell so it is findable
   by eye down a long table, and it survives sorting, grouping and hiding
   columns because the page lays it back from the values it still holds. */
.wl2-cell--dirty {
  background: var(--wl2-dirty);
  box-shadow: inset 2px 0 0 var(--wl2-dirty-line);
}

/* -- Note cell ------------------------------------------------------------ */

.wl2-note { display: flex; flex-direction: column; gap: 0.18rem; }
.wl2-note__text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  text-wrap: pretty;
}
.wl2-note__foot {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding-left: 0.4rem;
  min-height: 1.1rem;
}
.wl2-note__when {
  font-family: var(--ub-font-mono);
  font-size: 0.66rem;
  color: var(--hs-ink-faint);
  white-space: nowrap;
}
.wl2-note__when--stale { color: var(--wl2-stale-ink); }
.wl2-note__more {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--hs-ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--hs-gold-border);
}
.wl2-note__more:hover { color: var(--hs-ink); }
.wl2-note__status { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.35rem; min-width: 0; max-width: 100%; }
.wl2-note__bad { font-size: 0.7rem; font-weight: 600; color: var(--ub-danger); white-space: nowrap; }
td:not(.wl2-c--note) .wl2-note__bad { white-space: normal; }
.wl2-note__theirs {
  max-width: min(14rem, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.7rem;
  color: var(--hs-ink-soft);
}

/* Row-level markers. Two states, two shapes: "no note at all" is an absence and
   reads as dashed; "this note may no longer be true" is attention and reads off
   the gold. Neither is red — a stale note is not an error. */
.wl2-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.02rem 0.32rem;
  border-radius: 4px;
  font-family: var(--ub-font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wl2-flag--missing {
  border: 1px dashed var(--hs-line-strong);
  color: var(--hs-ink-faint);
}
.wl2-flag--review {
  border: 1px solid var(--hs-gold-border);
  background: var(--hs-active);
  color: var(--wl2-stale-ink);
}
.wl2-flag--absence {
  border: 1px solid var(--wl2-purple-line);
  background: var(--wl2-purple);
  color: #453168;
}
.wl2-flag--notice {
  border: 1px solid var(--hs-line-strong);
  background: #fbfaf8;
  color: var(--hs-ink-soft);
}

/* -- Column chooser row --------------------------------------------------- */

.wl2-cols { display: flex; flex-direction: column; gap: 2px; }
.wl2-colrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #fff;
}
.wl2-colrow:hover { background: #fbfaf8; border-color: var(--hs-line); }
.wl2-colrow__grab {
  display: inline-grid;
  place-items: center;
  width: 1.3rem; height: 1.5rem;
  border: 0; background: none;
  color: var(--hs-line-strong);
  cursor: grab;
  flex: none;
}
.wl2-colrow__grab:hover { color: var(--hs-ink-faint); }
.wl2-colrow__grab svg { width: 0.85rem; height: 0.85rem; }
.wl2-colrow__grab--off { cursor: default; opacity: 0.35; }
.wl2-colrow__id { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.wl2-colrow__name { font-size: 0.85rem; font-weight: 600; }
.wl2-colrow__src {
  font-family: var(--ub-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hs-ink-faint);
}
.wl2-colrow__nudge { display: flex; flex-direction: column; gap: 1px; flex: none; }
.wl2-nudge {
  display: inline-grid;
  place-items: center;
  width: 1.35rem; height: 0.85rem;
  border: 1px solid var(--hs-line);
  border-radius: 4px;
  background: #fff;
  color: var(--hs-ink-soft);
  cursor: pointer;
  padding: 0;
}
.wl2-nudge:hover { border-color: var(--hs-gold); color: var(--hs-ink); }
.wl2-nudge:disabled, .wl2-nudge:disabled:hover { color: #d5d1c8; border-color: var(--hs-line); cursor: default; }
.wl2-nudge svg { width: 0.62rem; height: 0.62rem; }

/* Show/hide. A switch, not a checkbox: hiding a column is presentation and this
   has to read differently from the delete control two rows away. */
.wl2-switch {
  position: relative;
  width: 2.1rem; height: 1.15rem;
  border: 1px solid var(--hs-line-strong);
  border-radius: 999px;
  background: #f1eee8;
  cursor: pointer;
  flex: none;
  padding: 0;
}
.wl2-switch::after {
  content: "";
  position: absolute;
  top: 1px; left: 1px;
  width: 0.95rem; height: 0.95rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 18, 43, 0.25);
  transition: transform 160ms ease;
}
.wl2-switch--on { background: var(--hs-gold); border-color: var(--hs-gold); }
.wl2-switch--on::after { transform: translateX(0.93rem); }
@media (prefers-reduced-motion: reduce) { .wl2-switch::after { transition: none; } }

/* -- Forms inside a sheet ------------------------------------------------- */

.wl2-field { margin-bottom: 0.95rem; }
.wl2-field__label {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hs-ink);
}
.wl2-field__help { margin: 0 0 0.35rem; font-size: 0.78rem; color: var(--hs-ink-soft); }
.wl2-text {
  width: 100%;
  height: 2.2rem;
  padding: 0 0.55rem;
  border: 1px solid var(--hs-line-strong);
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-size: 0.875rem;
  color: var(--hs-ink);
}
.wl2-text:focus-visible { border-color: var(--hs-gold); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--hs-gold) 18%, transparent); }

.wl2-radios { display: flex; flex-direction: column; gap: 0.3rem; }
.wl2-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--hs-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.84rem;
}
.wl2-radio:hover { border-color: var(--hs-line-strong); background: #fbfaf8; }
.wl2-radio--on { border-color: var(--hs-gold); background: var(--hs-active); }
.wl2-radio input { margin-top: 0.2rem; flex: none; }
.wl2-radio__id { display: flex; flex-direction: column; line-height: 1.35; }
.wl2-radio__name { font-weight: 600; }
.wl2-radio__help { font-size: 0.78rem; color: var(--hs-ink-soft); }
.wl2-radio--locked { cursor: default; opacity: 0.72; }

/* -- Leave dialog --------------------------------------------------------- */

.button--danger {
  background: var(--ub-danger);
  border-color: var(--ub-danger);
  color: #fff;
}
.button--danger:hover { background: #a52f26; border-color: #a52f26; }

/* -- Contractor picker --------------------------------------------------- */

.wl2-picker__results {
  border: 1px solid var(--hs-line);
  border-radius: 8px;
  max-height: 17rem;
  overflow-y: auto;
}
.wl2-picks {
  border: 1px solid var(--hs-line);
  border-radius: 8px;
  max-height: 17rem;
  overflow-y: auto;
  padding: 0.35rem 0.6rem;
  margin-bottom: 0.6rem;
}
.wl2-picks__row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0;
  font-weight: 600;
}
.wl2-picks__row--team {
  padding-left: 1.4rem;
  font-weight: 400;
}
.wl2-pick {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-bottom: 1px solid #f2efe9;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.wl2-pick:last-child { border-bottom: 0; }
.wl2-pick:hover { background: var(--hs-hover); }
.wl2-pick__id { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.wl2-pick__name { font-size: 0.85rem; font-weight: 600; }
.wl2-pick__sub { font-size: 0.74rem; color: var(--hs-ink-faint); }
.wl2-pick__on {
  font-family: var(--ub-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hs-ink-faint);
  flex: none;
}
.wl2-pick:disabled { cursor: default; background: #fbfaf8; }
.wl2-pick:disabled .wl2-pick__name { color: var(--hs-ink-faint); }

/* -- Index screen -------------------------------------------------------- */

.wl3-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.wl3-card { gap: 0.7rem; }
.wl3-card__head { display: flex; align-items: flex-start; gap: 0.75rem; }
.wl3-card__name { flex: 1; min-width: 0; white-space: normal; font-size: 1.3rem; letter-spacing: -0.01em; text-wrap: balance; }
.wl3-n { position: relative; z-index: 1; color: var(--ub-primary); font-weight: 600; text-decoration: none; }
.wl3-n:hover, .wl3-n:focus-visible { text-decoration: underline; text-decoration-color: var(--hs-gold); text-underline-offset: 0.15em; }
.wl3-n:focus-visible { outline: 2px solid var(--hs-gold); outline-offset: 2px; border-radius: 3px; }
.wl3-act { margin: 0; padding-bottom: 0.7rem; border-bottom: 1px solid color-mix(in srgb, var(--hs-gold) 45%, transparent); font-size: 0.86rem; color: var(--hs-ink-faint); }
.wl3-act__dot { display: inline-block; width: 0.45rem; height: 0.45rem; margin-right: 0.4rem; border-radius: 50%; background: var(--ub-primary); vertical-align: 0.08em; }
.wl3-row { display: grid; gap: 0.15rem; }
.wl3-k { font-family: var(--ub-font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hs-ink-faint); }
.wl3-v { font-size: 0.92rem; color: var(--hs-ink); }
.wl3-none { color: var(--hs-ink-faint); }
.wl3-muted .wl3-v { color: var(--hs-ink-soft); }
.wl3-foot { margin: auto 0 0; padding-top: 0.6rem; border-top: 1px solid var(--hs-line); font-size: 0.78rem; color: var(--hs-ink-faint); display: flex; gap: 0.35rem; flex-wrap: wrap; }
.wl3-on { color: #256e43; }


/* ==========================================================================
   v2 — truncation instead of omission.

   Scoped to `.wl2-v2` so the first version keeps its own row treatment. The
   rule this implements: nothing is hidden to make a row fit. Every value stays
   on screen, on ONE line, clipped with an ellipsis when the column is narrower
   than the text (the contractor name and Client > Team excepted: they wrap and
   are always whole), and recoverable in full — by tooltip on hover or keyboard
   focus, and by expanding the row on touch or with the keyboard. Truncation is
   presentation only: the complete string is what gets edited, sorted, searched,
   saved and read by Talent Search.
   ========================================================================== */

.wl2-v2 .wl2-trunc {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Only a value long enough to clip is focusable, so the table does not gain a
   tab stop per cell. Whether it is ACTUALLY clipped is measured at hover or
   focus time, and the tooltip is withheld when it is not. */
.wl2-v2 .wl2-trunc[tabindex="0"] { cursor: help; }
.wl2-v2 .wl2-trunc[tabindex="0"]:hover { text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--hs-line-strong); }

.wl2-tip {
  position: fixed;
  z-index: 90;
  max-width: 22rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  background: var(--hs-ink);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.35;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.wl2-tip__k {
  display: block;
  font-family: var(--ub-font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e0d394;
}

/* Identity keeps its weight at every height. In compact the title moves beside
   the name rather than disappearing: the name never shrinks, the title gives up
   its width first. */
.wl2-v2 .wl2-who__name { font-size: 0.9rem; }
.wl2-v2 .wl2-table--compact .wl2-who__id {
  flex-direction: row;
  align-items: baseline;
  gap: 0.4rem;
}
.wl2-v2 .wl2-who__name,
.wl2-v2 .wl2-fact--full { overflow-wrap: anywhere; }
.wl2-v2 .wl2-table--compact .wl2-who__name { flex: 0 1 auto; min-width: 0; }
.wl2-v2 .wl2-table--compact .wl2-who__sub { flex: 1 1 auto; min-width: 0; }
.wl2-v2 .wl2-table--compact .wl2-who__avatar { width: 1.5rem; height: 1.5rem; font-size: 0.6rem; }
.wl2-v2 .wl2-c--who { min-width: 0; width: 16rem; }

/* The name never truncates — it is how a manager finds the row — and neither
   does Client > Team: both wrap to a second line before they clip. In compact the
   title is not repeated beside it: it has its own column. Everything else gives up width first. */
.wl2-v2 .wl2-table--compact .wl2-who__sub { display: none; }

/* Fixed layout is what makes truncation predictable: a column keeps the width
   the design gave it instead of growing to whatever the longest team name
   happens to be, and the note column takes everything left over. */
.wl2-v2 .wl2-table { table-layout: fixed; }
.wl2-v2 .wl2-c--fact { width: 8.5rem; min-width: 0; }
.wl2-v2 .wl2-c--date { width: 6.5rem; min-width: 0; }
.wl2-v2 .wl2-c--full { width: 13rem; }
.wl2-v2 .wl2-c--onlist { width: 6.2rem; }
.wl2-v2 .wl2-c--other { width: 11rem; }
.wl2-onlist { display: flex; flex-direction: column; gap: 0.1rem; }
.wl2-onlist__n { font-family: var(--ub-font-mono); font-size: 0.82rem; color: var(--hs-ink); font-weight: 500; }
.wl2-onlist__since { font-size: 0.72rem; color: var(--hs-ink-faint); }
.wl2-other { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.wl2-other .rec-pill { font-weight: 600; font-size: 0.7rem; text-decoration: none; color: var(--ub-primary); border-color: var(--wl2-purple-line); background: var(--wl2-purple); }
.wl2-other .rec-pill:hover { border-color: var(--ub-primary); }
.wl2-other__none { color: var(--hs-ink-faint); }
.wl2-v2 .wl2-c--act { width: 2.75rem; padding-right: 0.5rem; }
/* The sticky cell is its own stacking context, so the open menu lifts it above the rows below. */
.wl2-table tbody td.wl2-c--act:has(.rec-st-kebab[aria-expanded="true"]) { z-index: 6; }
.wl2-v2 .wl2-c--note { width: auto; min-width: 0; }
.wl2-v2 .wl2-table tbody td { overflow: hidden; }

/* A view with more fixed columns than the panel holds scrolls sideways inside
   it, the contractor column pinned at the left. The wrapper is now the header's
   scroll container and never scrolls vertically, so the header sits at its top
   (the page-level `top` offset would push it down over the first rows). The
   table's floor is its fixed columns plus 16rem of note, so it scrolls only when
   it cannot fit; the server emits each column kind's count. */
.wl2-v2--wide .wl2-tablewrap { overflow-x: auto; scroll-padding-left: 16rem; }
.wl2-v2--wide .wl2-table thead th { top: 0; }
.wl2-v2--wide .wl2-table {
  min-width: calc(32rem + 2.75rem * var(--wl2-n-act, 0) + 8.5rem * var(--wl2-n-fact, 0) + 13rem * var(--wl2-n-full, 0) + 6.5rem * var(--wl2-n-date, 0) + 6.2rem * var(--wl2-n-onlist, 0) + 11rem * var(--wl2-n-other, 0));
}
/* A band spans the whole scrolling table, so its label is pinned like the
   contractor column: the button is as wide as the panel and sticks at the left
   edge, opaque, with the tally and flags still at the visible right edge. */
@container (min-width: 1041px) {
  .wl2-v2--wide .wl2-band > th { padding-left: 0; padding-right: 0; }
  .wl2-v2--wide .wl2-band__btn {
    position: sticky;
    left: 0;
    z-index: 1;
    box-sizing: border-box;
    width: min(100cqw, 100%);
    padding: 0 0.6rem;
    background: var(--hs-surface);
  }
}
.wl2-v2--wide .wl2-table .wl2-c--who { position: sticky; left: 0; z-index: 2; background: #fff; }
.wl2-v2--wide .wl2-table thead th.wl2-c--who { z-index: 5; background: #fbfaf8; }
.wl2-v2--wide .wl2-table tbody tr:hover td.wl2-c--who { background: #fcfbf9; }

/* Band summary sits at the right edge, the way the group's own tally reads best
   against a wide table. */
.wl2-band__row { display: flex; align-items: baseline; gap: 0.5rem; width: 100%; }
.wl2-band__spacer { flex: 1; }

/* v2's columns have fixed widths, so its table needs more room before the note
   column gets squeezed to nothing. Below the floor of the default columns
   (about 900px) the row becomes a block; a view that shows more fixed columns
   (`wl2-v2--wide`, set by the server) keeps the block up to 1040px, so the second
   copy of these rules differs from the first only in its selector and width.
   Unlike the shared rule, truncation and its tooltip STAY ON here: a clipped
   value has to be recoverable at every width, not only on a wide screen. */
@container (max-width: 899px) {
  .wl2-v2 .wl2-table { table-layout: auto; }
  .wl2-v2 .wl2-table thead { display: none; }
  .wl2-v2 .wl2-table, .wl2-v2 .wl2-table tbody { display: block; width: auto; }
  /* A flex row, so the record's own control sits at the end of the meta line
     instead of taking a line of its own: 26px a row, over twenty rows. */
  .wl2-v2 .wl2-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    width: auto;
    border-bottom: 1px solid var(--hs-line);
    padding: 0.28rem 0.2rem 0.34rem;
  }
  .wl2-v2 .wl2-table tbody .wl2-who { padding-top: 0; }
  .wl2-v2 .wl2-table tbody .wl2-note { gap: 0.1rem; }
  .wl2-v2 .wl2-table tbody .wl2-note__foot { min-height: 0; }
  .wl2-v2 .wl2-table tbody td {
    display: inline-flex; align-items: baseline; gap: 0.3rem; width: auto;
    border-bottom: 0; padding: 0.1rem 0.5rem 0.1rem 0; overflow: hidden;
    flex: 0 1 auto; order: 1; min-width: 0;
  }
  .wl2-v2 .wl2-table tbody td::before {
    content: attr(data-label);
    font-family: var(--ub-font-mono); font-size: 0.56rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--hs-ink-faint); white-space: nowrap; flex: none;
  }
  .wl2-v2 .wl2-table tbody td .wl2-fact,
  .wl2-v2 .wl2-table tbody td .wl2-edit,
  .wl2-v2 .wl2-table tbody td .wl2-input { padding-top: 0; padding-bottom: 0; min-height: 0; width: auto; }
  /* The clip has to come from somewhere once the column is gone, so each inline
     value takes a ceiling of its own: long team and DP names still ellipse, and
     still answer the tooltip. */
  .wl2-v2 .wl2-table tbody td .wl2-trunc { max-width: 9.5rem; }
  .wl2-v2 .wl2-table tbody td.wl2-c--who,
  .wl2-v2 .wl2-table tbody td.wl2-c--note { display: block; flex: 1 1 100%; padding: 0 0 0.12rem; }
  .wl2-v2 .wl2-table tbody td.wl2-c--who { order: 0; }
  .wl2-v2 .wl2-table tbody td.wl2-c--note { order: 3; }
  .wl2-v2 .wl2-table tbody td.wl2-c--who .wl2-trunc,
  .wl2-v2 .wl2-table tbody td.wl2-c--note .wl2-trunc { max-width: 100%; }
  .wl2-v2 .wl2-table tbody td.wl2-c--who::before,
  .wl2-v2 .wl2-table tbody td.wl2-c--note::before,
  .wl2-v2 .wl2-table tbody td.wl2-c--act::before { content: none; }
  .wl2-v2 .wl2-table tbody td.wl2-c--note .wl2-edit,
  .wl2-v2 .wl2-table tbody td.wl2-c--note .wl2-input { width: 100%; }
  .wl2-v2 .wl2-table tbody td.wl2-c--act {
    order: 2; margin-left: auto; padding-right: 0;
    position: static; box-shadow: none; text-align: right;
  }
  .wl2-v2 .wl2-table tbody td.wl2-c--empty { display: none; }
  .wl2-v2 .wl2-c--note, .wl2-v2 .wl2-c--who, .wl2-v2 .wl2-c--date, .wl2-v2 .wl2-c--fact { width: auto; }
  .wl2-v2 .wl2-band { display: block; }
  .wl2-v2 .wl2-table tbody tr.wl2-band > th { flex: 1 1 100%; }
  .wl2-v2 .wl2-band > th { display: block; }
  .wl2-v2 .wl2-table--compact .wl2-note__text { -webkit-line-clamp: 1; }
}
@container (max-width: 1040px) {
  .wl2-v2--wide .wl2-table { table-layout: auto; }
  .wl2-v2--wide .wl2-table thead { display: none; }
  .wl2-v2--wide .wl2-table, .wl2-v2--wide .wl2-table tbody { display: block; width: auto; }
  /* A flex row, so the record's own control sits at the end of the meta line
     instead of taking a line of its own: 26px a row, over twenty rows. */
  .wl2-v2--wide .wl2-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    width: auto;
    border-bottom: 1px solid var(--hs-line);
    padding: 0.28rem 0.2rem 0.34rem;
  }
  .wl2-v2--wide .wl2-table tbody .wl2-who { padding-top: 0; }
  .wl2-v2--wide .wl2-table tbody .wl2-note { gap: 0.1rem; }
  .wl2-v2--wide .wl2-table tbody .wl2-note__foot { min-height: 0; }
  .wl2-v2--wide .wl2-table tbody td {
    display: inline-flex; align-items: baseline; gap: 0.3rem; width: auto;
    border-bottom: 0; padding: 0.1rem 0.5rem 0.1rem 0; overflow: hidden;
    flex: 0 1 auto; order: 1; min-width: 0;
  }
  .wl2-v2--wide .wl2-table tbody td::before {
    content: attr(data-label);
    font-family: var(--ub-font-mono); font-size: 0.56rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--hs-ink-faint); white-space: nowrap; flex: none;
  }
  .wl2-v2--wide .wl2-table tbody td .wl2-fact,
  .wl2-v2--wide .wl2-table tbody td .wl2-edit,
  .wl2-v2--wide .wl2-table tbody td .wl2-input { padding-top: 0; padding-bottom: 0; min-height: 0; width: auto; }
  /* The clip has to come from somewhere once the column is gone, so each inline
     value takes a ceiling of its own: long team and DP names still ellipse, and
     still answer the tooltip. */
  .wl2-v2--wide .wl2-table tbody td .wl2-trunc { max-width: 9.5rem; }
  .wl2-v2--wide .wl2-table tbody td.wl2-c--who,
  .wl2-v2--wide .wl2-table tbody td.wl2-c--note { display: block; flex: 1 1 100%; padding: 0 0 0.12rem; }
  .wl2-v2--wide .wl2-table tbody td.wl2-c--who { order: 0; position: static; }
  .wl2-v2--wide .wl2-table tbody td.wl2-c--note { order: 3; }
  .wl2-v2--wide .wl2-table tbody td.wl2-c--who .wl2-trunc,
  .wl2-v2--wide .wl2-table tbody td.wl2-c--note .wl2-trunc { max-width: 100%; }
  .wl2-v2--wide .wl2-table tbody td.wl2-c--who::before,
  .wl2-v2--wide .wl2-table tbody td.wl2-c--note::before,
  .wl2-v2--wide .wl2-table tbody td.wl2-c--act::before { content: none; }
  .wl2-v2--wide .wl2-table tbody td.wl2-c--note .wl2-edit,
  .wl2-v2--wide .wl2-table tbody td.wl2-c--note .wl2-input { width: 100%; }
  .wl2-v2--wide .wl2-table tbody td.wl2-c--act {
    order: 2; margin-left: auto; padding-right: 0;
    position: static; box-shadow: none; text-align: right;
  }
  .wl2-v2--wide .wl2-table tbody td.wl2-c--empty { display: none; }
  .wl2-v2--wide .wl2-c--note, .wl2-v2--wide .wl2-c--who, .wl2-v2--wide .wl2-c--date, .wl2-v2--wide .wl2-c--fact { width: auto; }
  .wl2-v2--wide .wl2-band { display: block; }
  .wl2-v2--wide .wl2-table tbody tr.wl2-band > th { flex: 1 1 100%; }
  .wl2-v2--wide .wl2-band > th { display: block; }
  .wl2-v2--wide .wl2-table--compact .wl2-note__text { -webkit-line-clamp: 1; }
}

/* -- Focus ---------------------------------------------------------------- */

.wl2 :focus-visible {
  outline: 2px solid var(--ub-primary);
  outline-offset: 1px;
  border-radius: 4px;
}

/* ==========================================================================
   Narrow screens. The table becomes one labelled block per contractor rather
   than a sideways scroll nothing announces: every cell keeps its heading as its
   own label, and the view controls stack instead of folding away. The save bar
   stays sticky, which is the whole point of it on a phone.
   ========================================================================== */

@media (max-width: 1100px) {
  .rec-page { padding: 1.1rem 0.9rem 0; }
}

/* Gated on the PANEL's width, not the viewport's. The table's own floor is
   about 900px; below that it would either scroll sideways or hide the note
   column under the pinned action cell, so the labelled-block layout takes over
   instead — on a phone and on a narrow desktop pane alike. */
@container (max-width: 899px) {
  .wl2-c--act { position: static; box-shadow: none; }
  .wl2-table thead { display: none; }
  .wl2-table, .wl2-table tbody, .wl2-table tr, .wl2-table td { display: block; width: auto; }
  .wl2-table tbody tr {
    border-bottom: 1px solid var(--hs-line);
    padding: 0.45rem 0.2rem 0.5rem;
  }
  /* The supporting facts flow as inline label/value pairs instead of taking a
     stacked row each: a contractor that needed seven lines to say five short
     things now reads as a heading, one wrapped meta line, and the note. */
  .wl2-table tbody td {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    border-bottom: 0;
    padding: 0.12rem 0.45rem 0.12rem 0;
    max-width: 100%;
  }
  .wl2-table tbody td::before {
    content: attr(data-label);
    font-family: var(--ub-font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hs-ink-faint);
    white-space: nowrap;
    flex: none;
  }
  .wl2-table tbody td .wl2-fact,
  .wl2-table tbody td .wl2-edit,
  .wl2-table tbody td .wl2-input { padding-top: 0; padding-bottom: 0; min-height: 0; width: auto; }
  .wl2-table tbody td .wl2-edit { min-width: 3rem; }
  /* Identity is the block's heading: full width, no label, and it opens the
     row. The note is the block's body, likewise full width. */
  .wl2-table tbody td.wl2-c--who,
  .wl2-table tbody td.wl2-c--note { display: block; padding: 0.1rem 0 0.25rem; }
  .wl2-table tbody td.wl2-c--who::before,
  .wl2-table tbody td.wl2-c--note::before,
  .wl2-table tbody td.wl2-c--act::before { content: none; }
  .wl2-table tbody td.wl2-c--note .wl2-edit { width: 100%; }
  .wl2-table tbody td.wl2-c--note .wl2-input { width: 100%; }
  .wl2-table tbody td.wl2-c--act { display: block; padding: 0.3rem 0 0; text-align: left; }
  .wl2-table tbody td.wl2-c--empty { display: none; }
  .wl2-c--note, .wl2-c--who, .wl2-c--date, .wl2-c--fact { min-width: 0; width: auto; }
  .wl2-band > th { display: block; }
  .wl2-viewbar { gap: 0.35rem; }
  .wl2-viewbar__end { margin-left: 0; justify-content: flex-start; }
}

/* Share dialog (working lists refresh, card 1.2) */
.wl2 .rec-page__actions { flex: 0 1 auto; }
.wl2-sharebtn { display: inline-flex; align-items: center; gap: 0.55rem; }
.wl2-avs { display: inline-flex; margin-block: -0.2rem; }
.wl2-avs span { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; margin-left: -0.38rem; border-radius: 50%;
  border: 2px solid #fff; background: #f1eff4; color: #57536a; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.02em; }
.wl2-avs span:first-child { margin-left: 0; }
.wl2-avs .wl2-avs__more { background: #f2effa; color: var(--ub-primary); }
dialog.rc-modal.wl2-share { width: min(35rem, calc(100vw - 2rem)); overflow: visible; }
.wl2-share .rc-modal__head { border-radius: 14px 14px 0 0; }
.wl2-share .rc-modal__body { overflow: visible; gap: 0.75rem; }
.wl2-share .rc-modal__foot { border-radius: 0 0 14px 14px; }
.wl2-share__add { display: flex; flex-direction: column; gap: 0.35rem; }
.wl2-share__add .picker__input { background: #fff; }
.wl2-share__add .picker__input[aria-expanded="true"] { border-color: var(--ub-primary); box-shadow: var(--ub-ring); }
.wl2-share__hint { margin: 0; font-size: 0.78rem; color: var(--hs-ink-faint); }
.wl2-share .picker__results { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; }
.wl2-share .picker__option { grid-template-columns: auto minmax(0, 1fr) auto; }
.wl2-share .picker__option .rec-ht-who__avatar { grid-row: 1 / span 2; grid-column: 1; }
.wl2-share .picker__name, .wl2-share .picker__email { grid-column: 2; }
.wl2-share .picker__tag { grid-column: 3; grid-row: 1 / span 2; }
.wl2-share .picker__option--on { background: var(--ub-accent-quiet); }
.wl2-share .picker__option[aria-disabled="true"] { cursor: default; }
.wl2-share .picker__option[aria-disabled="true"]:hover { background: none; }
.wl2-share .picker__option[aria-disabled="true"] .picker__name { color: var(--hs-ink-faint); }
.wl2-share .picker__option[aria-disabled="true"] .rec-ht-who__avatar { opacity: 0.5; }
.wl2-share .picker__option[aria-disabled="true"] .picker__email { white-space: normal; }
.wl2-share__k { margin: 0.35rem 0 -0.2rem; font-family: var(--ub-font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hs-ink-faint); }
.wl2-access { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wl2-access__row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--hs-line); }
.wl2-access__row:last-child { border-bottom: 0; }
.wl2-access__row .rec-ht-who { flex: 1; min-width: 0; align-items: center; }
.wl2-access__id { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.wl2-access__name { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.wl2-access__sub { font-size: 0.78rem; color: var(--hs-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl2-access__meta { color: var(--hs-ink-faint); }
.wl2-you { font-weight: 400; color: var(--hs-ink-faint); }
.wl2-just { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0 0 0 0.45rem; border-radius: 999px;
  background: color-mix(in srgb, var(--ub-ok) 9%, #fff); border: 1px solid color-mix(in srgb, var(--ub-ok) 35%, transparent);
  font-size: 0.7rem; font-weight: 600; color: #256e43; }
.wl2-just .rec-textbtn { padding: 0.05rem 0.45rem; font-size: 0.7rem; border-color: transparent; background: none; }
.wl2-access__ctl { display: flex; align-items: stretch; gap: 0.35rem; flex: none; }
.wl2-share .rec-seg { flex-wrap: nowrap; }
/* The installed active style matches only a[aria-current] under .rec-workspace; these are buttons that carry aria-pressed. */
.wl2-share .rec-seg__opt { padding: 0.3rem 0.65rem; border: 0; background: transparent; font-family: inherit; cursor: pointer; }
.wl2 .rec-seg__opt[aria-pressed="true"] { background: #fff; color: var(--hs-ink); box-shadow: 0 1px 3px rgba(24, 18, 43, 0.13); }
.wl2-share button.picker__option { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; }
.wl2-share button.picker__option:hover, .wl2-share button.picker__option:focus-visible { background: var(--ub-accent-quiet); }
.wl2-access__x { display: inline-grid; place-items: center; aspect-ratio: 1; padding: 0; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--hs-ink-faint); cursor: pointer; }
.wl2-access__x:hover { border-color: var(--hs-line); color: var(--hs-ink); }
.wl2-access__x svg { width: 0.85rem; height: 0.85rem; }
.wl2-access__confirm { display: flex; align-items: center; gap: 0.5rem; margin: -0.1rem 0 0.45rem 2.45rem; padding: 0.45rem 0.6rem;
  border: 1px solid var(--hs-gold-border); border-radius: 8px; background: var(--hs-active); font-size: 0.82rem; color: #7a5c12; }
.wl2-access__confirm span { flex: 1; }
.wl2-access__row--confirm { border-bottom: 0; }
.wl2-ga { display: flex; align-items: center; gap: 0.8rem; padding: 0.15rem 0 0.1rem; }
.wl2-ga__icon { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; flex: none; border-radius: 50%; background: #f2effa; color: var(--ub-primary); }
.wl2-ga__icon svg { width: 1.05rem; height: 1.05rem; }
.wl2-ga__id { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; line-height: 1.35; }
.wl2-ga__id b { font-size: 0.9rem; }
.wl2-ga__id span { font-size: 0.8rem; color: var(--hs-ink-soft); }
.wl2-share__copy { display: inline-flex; align-items: center; gap: 0.4rem; margin-right: auto; }
.wl2-share__copy svg { width: 0.95rem; height: 0.95rem; }
.wl2-share--viewer .wl2-access__row .rec-pill { flex: none; }

/* List settings drawer (working lists refresh, card 1.3) */
.wl2-drawer .rec-drawer__name { font-size: 1.1rem; }
.wl2-drawer .wl2-field { margin-bottom: 1rem; }
.wl2-drawer__saved { margin: 0 0 0.8rem; font-size: 0.84rem; font-weight: 600; color: #256e43; }
.wl2-drawer__archive { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--hs-line); }
.wl2-fields { display: flex; flex-direction: column; border-top: 1px solid var(--hs-line); }
.wl2-fieldrow { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid var(--hs-line); min-height: 2.9rem; }
.wl2-fieldrow .wl2-text { flex: 1; min-width: 0; }
.wl2-fieldrow__name { flex: 1; min-width: 0; font-size: 0.9rem; font-weight: 600; color: var(--hs-ink); }
.wl2-ftag { flex: none; padding: 0.05rem 0.45rem; font-size: 0.68rem; }
.wl2-fields__add { margin-top: 0.6rem; align-self: flex-start; }
.wl2-addfield { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.6rem; padding: 0.7rem; border: 1px solid var(--hs-line-strong); border-radius: 10px; background: #fbfaf8; }
.wl2-addfield__row { display: flex; align-items: center; gap: 0.5rem; }
.wl2-addfield__row .wl2-text { flex: 1; min-width: 0; }
.wl2-addfield .rec-seg { flex-wrap: nowrap; flex: none; }
.wl2-addfield .rec-seg__opt { padding: 0.3rem 0.65rem; border: 0; background: transparent; font-family: inherit; cursor: pointer; }
.wl2-addfield .rec-seg__opt[aria-pressed="true"] { background: #fff; color: var(--hs-ink); box-shadow: 0 1px 3px rgba(24, 18, 43, 0.13); }
.wl2-addfield__acts { display: flex; gap: 0.5rem; }

/* Changed since (working lists refresh, card 2.2): one dot in the chip and on every row it would show. */
.wl2-chip__dot { display: inline-block; width: 0.45rem; height: 0.45rem; flex: none; border-radius: 50%; background: var(--ub-primary); margin-right: 0.35rem; }
.wl2-who__line { display: flex; align-items: center; }
.wl2-table tbody td.wl2-tint { background: color-mix(in srgb, var(--ub-primary) 5%, #fff); }
.wl2-was { display: block; margin-top: 0.15rem; padding-left: 0.45rem; font-family: var(--ub-font-mono); font-size: 0.66rem; color: var(--hs-ink-soft); white-space: nowrap; }
.wl2-joined { font-size: 0.74rem; font-weight: 600; color: var(--ub-primary); }
.wl2-table tbody tr.wl2-leftrow td { background: #fbfaf8; color: var(--hs-ink-faint); }
.wl2-leftrow .wl2-who__name { color: var(--hs-ink-faint); text-decoration: line-through; text-decoration-color: var(--hs-ink-faint); }
.wl2-leftrow .wl2-who__avatar { opacity: 0.55; }
.wl2-leftrow .wl2-fact { color: var(--hs-ink-faint); }
.wl2-leftrow .wl2-c--date .wl2-fact { padding-left: 0.45rem; }
.wl2-leftnote { display: inline-block; padding-left: 0.45rem; font-size: 0.85rem; color: var(--hs-ink-soft); }

/* Add contractor drawer (decision 25). The foot is a row here; rec-drawer__foot stacks by default. */
.wl2-add__foot { flex-direction: row; justify-content: flex-end; }
.wl2-add { animation: none; }
.wl2-add .rec-form__field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.wl2-add__results { max-height: 19rem; }
.wl2-add__pick input { flex: none; }
.wl2-add__count { margin: 0; font-size: 0.8rem; color: var(--hs-ink-soft); }
.wl2-add__count strong { color: var(--ub-primary); font-weight: 700; }

/* Ticks (decision 32): a tray of chips above the search, and the groups under a disclosure. */
.wl3-tray { margin: 0 0 1rem; padding: 0.65rem 0.75rem; border: 1px solid var(--hs-line); border-radius: 10px; background: #fbfaf8; }
.wl3-tray__k { display: flex; align-items: center; justify-content: space-between; margin: 0 0 0.45rem; font-size: 0.8rem; color: var(--hs-ink-soft); }
.wl3-tray__k strong { color: var(--ub-primary); }
.wl3-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.wl3-chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.3rem 0.15rem 0.2rem; border: 1px solid var(--hs-line-strong); border-radius: 999px; background: #fff; font-size: 0.8rem; color: var(--hs-ink); }
.wl3-chip .wl2-who__avatar { width: 1.3rem; height: 1.3rem; font-size: 0.55rem; }
.wl3-chip--group { padding-left: 0.6rem; }
.wl3-chip__x { display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--hs-ink-faint); cursor: pointer; }
.wl3-chip__x svg { width: 0.65rem; height: 0.65rem; }
.wl3-chip__x:hover { background: var(--hs-hover); color: var(--hs-ink); }
.wl3-pick--on { cursor: default; background: #fbfaf8; }
.wl3-pick--on .wl2-pick__name { color: var(--hs-ink-faint); }
.wl3-groups { margin-top: 1rem; }
.wl3-groups summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--hs-ink); margin-bottom: 0.4rem; }

/* While a request the screen started is pending, the table dims as the
   recruiting ledger does: after 80ms, so a quick answer never flashes. */
@keyframes wl2-dim { to { opacity: 0.55; } }
[data-wl2-screen][aria-busy="true"] .wl2-tablewrap { animation: wl2-dim 120ms ease-out 80ms forwards; }
@media (prefers-reduced-motion: reduce) {
  [data-wl2-screen][aria-busy="true"] .wl2-tablewrap { animation-duration: 0s; }
}

/* -- New list dialog (working lists refresh, card 3.4): the job wizard's frame, one page. -- */

.wl3-one { width: min(46rem, calc(100vw - 5rem)); height: auto; max-height: calc(100vh - 4rem); }
.wl3-one__body { padding: 1.3rem 1.6rem 1.4rem; overflow: auto; display: grid; gap: 1.15rem; align-content: start; }
.wl3-one__body .wl2-field { margin: 0; }
.wl3-one .rec-seg { flex-wrap: wrap; }
.wl3-one .rec-seg__opt { padding: 0.35rem 0.8rem; border: 0; background: transparent; font-family: inherit; cursor: pointer; color: var(--hs-ink-soft); }
.wl3-one .rec-seg__opt[aria-pressed="true"] { background: #fff; color: var(--hs-ink); box-shadow: 0 1px 3px rgba(24, 18, 43, 0.13); font-weight: 600; }
.wl3-lock { opacity: 1 !important; cursor: default !important; }
.wl3-lock { border-color: color-mix(in srgb, var(--pp-mid) 45%, transparent) !important; background: color-mix(in srgb, var(--pp-mid) 6%, #fff) !important; color: var(--hs-ink) !important; }
.wl3-kind { font-family: var(--ub-font-mono); font-size: 0.68rem; color: var(--hs-ink-faint); }
.wl3-x { display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; margin-left: 0.1rem; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--hs-ink-faint); cursor: pointer; }
.wl3-x svg { width: 0.7rem; height: 0.7rem; }
.wl3-x:hover { background: var(--hs-hover); color: var(--ub-danger); }
.wl3-one .wl2-addfield { margin-top: 0.5rem; }
.wl3-one .wl2-addfield__row { display: flex; gap: 0.5rem; align-items: center; }
