/* tokens.css */
/* =====================================================================
   Design tokens: the single source of truth for colour, type, space,
   radius and motion. Values are the owner-approved Event Job Site design
   (5 Nov 2026, docs/design): ink navy #13233A, marigold #F2A71B, warm
   off-white #FAF7F1, white cards, thin warm borders, Plus Jakarta Sans
   only (Bold 700 page headlines, SemiBold 600 headings/titles/figures/
   buttons, Regular 400 everything else, never 800).
   Never hard-code a colour, size or space anywhere else (app.css uses
   only these). Light is the default; Dark applies by choice
   (data-theme="dark") or by the device when the choice is System (no
   data-theme attribute). Marigold always carries navy text, never white.
   ===================================================================== */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-Variable.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --text-xs: 0.75rem;   --lh-xs: 1.1rem;
  --text-sm: 0.875rem;  --lh-sm: 1.5rem;     /* meta: 14px on ~1.7 */
  --text-md: 1rem;      --lh-md: 1.6rem;
  --text-lg: 1.125rem;  --lh-lg: 1.6rem;     /* panel headings */
  --text-xl: 1.375rem;  --lh-xl: 1.8rem;     /* pay figure in the apply panel */
  --text-2xl: 1.875rem; --lh-2xl: 2.25rem;   /* page / hero headline (30px desktop) */
  --text-2xl-phone: 1.5rem; --lh-2xl-phone: 1.9rem;
  --text-stat: 2.5rem;
  --weight-regular: 400; --weight-medium: 500; --weight-semibold: 600; --weight-bold: 700;

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem;  --space-6: 2rem;   --space-7: 3rem;    --space-8: 4rem;
  --card-pad: 1.25rem;  /* 20px */
  --card-gap: 0.875rem; /* 14px */
  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-full: 999px;
  --content-max: 75rem;
  --sidebar-w: 17rem;
  --tap: 44px;
  --duration-fast: 120ms; --duration-base: 200ms;

  --color-canvas: #FAF7F1;
  --color-surface: #ffffff;
  --color-surface-2: #F3EEE4;          /* table heads, chips, quiet fills */
  --color-line: #E6E0D4;
  --color-line-strong: #CFC7B8;
  --color-text: #13233A;
  --color-text-muted: #5B6575;
  --color-accent: #0E6E73;             /* links */
  --color-accent-text: #13233A;        /* text on the marigold primary */
  --color-primary: #F2A71B;
  --color-primary-hover: #E09812;
  --color-secondary: #13233A;          /* navy buttons */
  --color-secondary-text: #FAF7F1;
  --color-focus: #13233A;
  --color-success: #1F7A4D;
  --color-warning: #A55A00;
  --color-danger: #B42318;
  --color-scrim: rgb(19 35 58 / 0.45);
  --shadow-panel: 0 10px 30px rgb(19 35 58 / 0.12);
  --shadow-sticky: 0 6px 20px rgb(19 35 58 / 0.08);

  /* hero band and sidebar (navy in both themes) */
  --color-band: #13233A;
  --color-band-text: #FAF7F1;
  --color-band-muted: #C9D0DA;
  --color-side: #13233A;
  --color-side-text: #FAF7F1;
  --color-side-muted: #B9C2CF;
  --color-side-active: #22395A;
  --color-side-line: rgb(250 247 241 / 0.16);

  /* status pills: the text label is always there; colour is the second signal */
  --pill-good-bg: #C4EBCF;  --pill-good-text: #0F4D2C;
  --pill-wait-bg: #C2E8E8;  --pill-wait-text: #08474A;
  --pill-warn-bg: #FADBA8;  --pill-warn-text: #633600;
  --pill-bad-bg: #FBE1DE;   --pill-bad-text: #8F1C13;
  --pill-quiet-bg: #EEEAE3; --pill-quiet-text: #4A5463;
  --pill-brand-bg: #F2A71B; --pill-brand-text: #13233A;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --color-canvas: #0E1A2B;
  --color-surface: #15253B;
  --color-surface-2: #1C304B;
  --color-line: #2A3E5B;
  --color-line-strong: #3D5476;
  --color-text: #FAF7F1;
  --color-text-muted: #B8C0CC;
  --color-accent: #7DD3D6;
  --color-accent-text: #13233A;
  --color-primary: #F2A71B;
  --color-primary-hover: #F6B73F;
  --color-secondary: #3E6AA8;
  --color-secondary-text: #FAF7F1;
  --color-focus: #FAF7F1;
  --color-success: #6FD39C;
  --color-warning: #F2C46B;
  --color-danger: #FF8A7E;
  --color-scrim: rgb(0 0 0 / 0.6);
  --shadow-panel: 0 10px 30px rgb(0 0 0 / 0.45);
  --shadow-sticky: 0 6px 20px rgb(0 0 0 / 0.35);
  --color-band: #0A1422;
  --color-band-muted: #B8C0CC;
  --color-side: #0A1422;
  --color-side-active: #1C304B;
  --pill-good-bg: rgb(111 211 156 / 0.16);  --pill-good-text: #8EE2B4;
  --pill-wait-bg: rgb(125 211 214 / 0.16);  --pill-wait-text: #9BE0E2;
  --pill-warn-bg: rgb(242 196 107 / 0.16);  --pill-warn-text: #F5CD82;
  --pill-bad-bg: rgb(255 138 126 / 0.16);   --pill-bad-text: #FFA59B;
  --pill-quiet-bg: rgb(250 247 241 / 0.08); --pill-quiet-text: #C9D0DA;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --color-canvas: #0E1A2B;
    --color-surface: #15253B;
    --color-surface-2: #1C304B;
    --color-line: #2A3E5B;
    --color-line-strong: #3D5476;
    --color-text: #FAF7F1;
    --color-text-muted: #B8C0CC;
    --color-accent: #7DD3D6;
    --color-accent-text: #13233A;
    --color-primary: #F2A71B;
    --color-primary-hover: #F6B73F;
    --color-secondary: #3E6AA8;
    --color-secondary-text: #FAF7F1;
    --color-focus: #FAF7F1;
    --color-success: #6FD39C;
    --color-warning: #F2C46B;
    --color-danger: #FF8A7E;
    --color-scrim: rgb(0 0 0 / 0.6);
    --shadow-panel: 0 10px 30px rgb(0 0 0 / 0.45);
    --shadow-sticky: 0 6px 20px rgb(0 0 0 / 0.35);
    --color-band: #0A1422;
    --color-band-muted: #B8C0CC;
    --color-side: #0A1422;
    --color-side-active: #1C304B;
    --pill-good-bg: rgb(111 211 156 / 0.16);  --pill-good-text: #8EE2B4;
    --pill-wait-bg: rgb(125 211 214 / 0.16);  --pill-wait-text: #9BE0E2;
    --pill-warn-bg: rgb(242 196 107 / 0.16);  --pill-warn-text: #F5CD82;
    --pill-bad-bg: rgb(255 138 126 / 0.16);   --pill-bad-text: #FFA59B;
    --pill-quiet-bg: rgb(250 247 241 / 0.08); --pill-quiet-text: #C9D0DA;
  }
}

/* app.css */
/* Event Job Site styles (owner-approved design, 5 Nov 2026). Every value comes from tokens.css.
   Type rule: Plus Jakarta Sans only. Page headline Bold 700 with balanced wrapping; every other heading, job titles,
   pay figures, counts and buttons SemiBold 600; labels, meta and body Regular 400 (nav Medium 500). Never 800. */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font-sans); font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--color-canvas); color: var(--color-text); font-size: var(--text-md); line-height: var(--lh-md); font-weight: var(--weight-regular); word-spacing: 0.04em; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--color-accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: var(--space-2); left: var(--space-2); z-index: 100; background: var(--color-surface); padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); box-shadow: var(--shadow-panel); }
h1, h2, h3, h4 { margin: 0; color: var(--color-text); letter-spacing: -0.005em; }
h1 { font-size: var(--text-2xl); line-height: var(--lh-2xl); font-weight: var(--weight-bold); text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--weight-semibold); }
h3 { font-size: var(--text-md); line-height: var(--lh-md); font-weight: var(--weight-semibold); }
p { margin: 0; }
strong, b { font-weight: var(--weight-semibold); }
code, pre { font-family: var(--font-mono); font-size: var(--text-sm); }
pre { white-space: pre-wrap; word-break: break-word; background: var(--color-surface-2); padding: var(--space-3); border-radius: var(--radius-md); overflow: auto; max-height: 24rem; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabular, .num, .job-pay, .apply-pay, .stat, .count { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.block { display: block; }
.spacer { flex: 1; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-5); }
.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.stack-lg { display: flex; flex-direction: column; gap: var(--card-gap); }
.row { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.row-end { justify-content: flex-end; }
.row-center { justify-content: center; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.tight { gap: var(--space-2); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--card-gap); }
.narrow { max-width: 48rem; }
.meta { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--lh-sm); }
.lead { font-size: var(--text-lg); line-height: var(--lh-lg); }
.prose { line-height: 1.7; }
.prose > * + * { margin-top: var(--space-3); }
.prose ul { margin: 0; padding-left: 1.25rem; }
.prose li + li { margin-top: var(--space-1); }
.prose li::marker { color: var(--color-text-muted); }
tr.is-full td { color: var(--color-text-muted); }
input[type=date][data-empty]:not(:focus)::-webkit-datetime-edit { color: var(--color-text-muted); }
.card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--card-pad); }
.card-flush { padding: 0; overflow: hidden; }
.card > h2 + *, .panel > h2 + * { margin-top: var(--space-3); }
.card-title { font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--weight-semibold); }
.section-title { font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--weight-semibold); margin: 0 0 var(--space-3); }
.mini-title { font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--weight-semibold); margin-top: var(--space-4); margin-bottom: var(--space-1); }
.count { font-weight: var(--weight-regular); color: var(--color-text-muted); margin-left: var(--space-1); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 40px; font: inherit; font-size: var(--text-sm); font-weight: var(--weight-semibold); line-height: 1.2; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--color-line-strong); background: var(--color-surface); color: var(--color-text); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background var(--duration-fast), border-color var(--duration-fast); }
.btn:hover { border-color: var(--color-text); text-decoration: none; }
.btn-primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-accent-text); }
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn-secondary { background: var(--color-secondary); border-color: var(--color-secondary); color: var(--color-secondary-text); }
.btn-secondary:hover { opacity: 0.92; border-color: var(--color-secondary); }
.btn-outline { background: transparent; border: 2px solid var(--color-text); color: var(--color-text); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--color-text); }
.btn-ghost:hover { background: var(--color-surface-2); border-color: transparent; }
.btn-danger { color: var(--color-danger); border-color: var(--color-danger); background: transparent; }
.btn-danger:hover { border-color: var(--color-danger); background: var(--pill-bad-bg); }
.btn-sm { min-height: 34px; padding: var(--space-1) var(--space-3); }
.btn-lg { min-height: 48px; font-size: var(--text-md); padding: var(--space-3) var(--space-5); }
.btn-xl { min-height: 56px; font-size: var(--text-lg); }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 40px; }
.btn:disabled { opacity: 0.6; cursor: default; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--color-accent); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.inline-form { display: inline; margin: 0; }
form { margin: 0; }

/* ---------- pills, chips, badges, avatars ---------- */
.pill { display: inline-flex; align-items: center; gap: var(--space-1); padding: 0.125rem var(--space-3); border-radius: var(--radius-sm); font-size: var(--text-xs); line-height: var(--lh-sm); font-weight: var(--weight-semibold); white-space: nowrap; background: var(--pill-quiet-bg); color: var(--pill-quiet-text); }
.pill-good { background: var(--pill-good-bg); color: var(--pill-good-text); }
.pill-wait { background: var(--pill-wait-bg); color: var(--pill-wait-text); }
.pill-warn { background: var(--pill-warn-bg); color: var(--pill-warn-text); }
.pill-bad { background: var(--pill-bad-bg); color: var(--pill-bad-text); }
.pill-quiet { background: var(--pill-quiet-bg); color: var(--pill-quiet-text); }
.pill-brand { background: var(--pill-brand-bg); color: var(--pill-brand-text); }
.pill-side { background: var(--color-side-active); color: var(--color-side-text); }
.chip { display: inline-block; padding: 0.125rem var(--space-3); border-radius: var(--radius-full); background: var(--color-surface-2); color: var(--color-text); font-size: var(--text-xs); line-height: var(--lh-sm); white-space: nowrap; }
.badges { display: flex; gap: var(--space-2); margin-bottom: var(--space-2); }
.badge { display: inline-block; padding: 0 var(--space-2); border-radius: var(--radius-sm); font-size: var(--text-xs); line-height: 1.4rem; font-weight: var(--weight-semibold); }
.badge-featured { background: var(--color-primary); color: var(--color-accent-text); }
.badge-urgent { border: 1px solid var(--color-danger); color: var(--color-danger); }
.verified { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--color-success); font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.verified .i { width: 1.1em; height: 1.1em; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--color-secondary); color: var(--color-secondary-text); font-size: var(--text-sm); font-weight: var(--weight-semibold); text-decoration: none; }
.avatar:hover { text-decoration: none; }
.avatar-sm { width: 32px; height: 32px; font-size: var(--text-xs); }
.person { display: inline-flex; align-items: center; gap: var(--space-3); }
.org-tile { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 64px; height: 64px; border-radius: var(--radius-md); background: var(--color-secondary); color: var(--color-secondary-text); font-size: var(--text-lg); font-weight: var(--weight-semibold); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.field > span { font-size: var(--text-sm); font-weight: var(--weight-medium); }
.field small { font-size: var(--text-xs); }
.field-inline { max-width: 14rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  font: inherit; font-size: var(--text-md); color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-line-strong); border-radius: var(--radius-md); padding: 0.55rem var(--space-3); width: 100%; min-height: 44px;
}
textarea { resize: vertical; line-height: var(--lh-md); }
input::placeholder, textarea::placeholder { color: var(--color-text-muted); opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-text); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--color-secondary); margin: 0; flex: none; }
fieldset { border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4) var(--space-4); margin: 0; min-width: 0; }
legend { font-size: var(--text-sm); font-weight: var(--weight-semibold); padding: 0 var(--space-1); }
.check { display: flex; gap: var(--space-3); align-items: flex-start; line-height: var(--lh-md); }
.check input { margin-top: 2px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--space-2) var(--space-4); }
.choice-grid legend { margin-bottom: var(--space-2); }
.choice { display: flex; gap: var(--space-3); align-items: center; min-height: 32px; }
.seg { display: flex; gap: var(--space-2); flex-wrap: wrap; border: 0; padding: 0; }
.seg legend { margin-bottom: var(--space-2); padding: 0; }
.seg label { display: inline-flex; align-items: center; gap: var(--space-2); border: 1px solid var(--color-line-strong); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); min-height: 44px; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--color-text); background: var(--color-surface-2); font-weight: var(--weight-semibold); }
.form-page { max-width: 48rem; display: flex; flex-direction: column; gap: var(--card-gap); }
.form-card { display: flex; flex-direction: column; gap: var(--space-4); }
.form-card > h2 + * { margin-top: 0; }
.form-actions { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.add-row { display: grid; grid-template-columns: 2fr 1.5fr 1.35fr auto; gap: var(--space-3); align-items: end; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-line); }
.shift-set { display: flex; flex-direction: column; gap: var(--space-3); }
.error { color: var(--color-danger); }
.alert { border: 1px solid var(--color-line); border-left: 4px solid var(--color-accent); background: var(--color-surface); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); margin-bottom: var(--card-gap); }
.alert strong { display: block; }
.alert-error { border-left-color: var(--color-danger); }
.alert-error strong { color: var(--color-danger); }
.alert-info { border-left-color: var(--color-accent); }
.alert-ok { border-left-color: var(--color-success); }
.alert-warn { border-left-color: var(--color-warning); }
.auth .alert, .form-page .alert { margin-bottom: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-line); border-radius: var(--radius-md); }
.card-flush .table-wrap { border: 0; border-radius: 0; }
table, .table { width: 100%; border-collapse: collapse; background: var(--color-surface); font-size: var(--text-sm); }
th, td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th { background: var(--color-surface-2); font-size: var(--text-sm); color: var(--color-text); font-weight: var(--weight-semibold); white-space: nowrap; }
th.num, td.num { text-align: right; white-space: nowrap; }
td.actions { text-align: right; white-space: nowrap; }
td.actions > * { display: inline-flex; vertical-align: middle; }
td.actions > * + * { margin-left: var(--space-3); }
.col-check { width: 3rem; padding-right: 0; }
.col-check input { display: block; }
.line-list + .add-row { border-top: 0; padding-top: 0; }
.table-roomy td { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.strong-link { font-weight: var(--weight-semibold); color: var(--color-text); text-decoration: none; }
.strong-link:hover { text-decoration: underline; }

/* ---------- menus, feedback, toasts ---------- */
.theme-menu { position: relative; }
.theme-menu summary { list-style: none; cursor: pointer; }
.theme-menu summary::-webkit-details-marker { display: none; }
.menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 60; display: grid; min-width: 9rem; background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-line); border-radius: var(--radius-md); box-shadow: var(--shadow-panel); padding: var(--space-1); }
.menu-up .menu { top: auto; bottom: calc(100% + 4px); left: 0; right: auto; }
.menu-item { font: inherit; font-size: var(--text-sm); text-align: left; background: none; border: 0; color: inherit; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); cursor: pointer; min-height: 40px; }
.menu-item:hover { background: var(--color-surface-2); }
.menu-item[aria-pressed="true"] { background: var(--color-surface-2); font-weight: var(--weight-semibold); }
.help-tab { position: fixed; right: 0; top: 50%; transform: translateY(-50%) rotate(-90deg); transform-origin: bottom right; font: inherit; font-size: var(--text-xs); font-weight: var(--weight-semibold); padding: var(--space-1) var(--space-3); background: var(--color-secondary); color: var(--color-secondary-text); border: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; cursor: pointer; z-index: 30; }
.scrim { position: fixed; inset: 0; background: var(--color-scrim); z-index: 70; display: flex; justify-content: flex-end; }
.scrim[hidden] { display: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.scrim .panel { background: var(--color-surface); width: min(28rem, 100%); height: 100%; overflow: auto; padding: var(--space-5); box-shadow: var(--shadow-panel); }
.shot img { max-width: 100%; max-height: 9rem; object-fit: cover; object-position: top; border: 1px solid var(--color-line); border-radius: var(--radius-md); }
.scrim .panel form > .row-end { position: sticky; bottom: calc(-1 * var(--space-5)); background: var(--color-surface); padding: var(--space-3) 0 var(--space-5); margin-bottom: calc(-1 * var(--space-5)); border-top: 1px solid var(--color-line); }
.panel-head .btn-icon { width: 44px; min-height: 44px; font-size: var(--text-xl); }
.toast-wrap { position: fixed; bottom: calc(var(--space-5) + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: grid; gap: var(--space-2); z-index: 80; width: max-content; max-width: calc(100vw - 2rem); }
.toast { background: var(--color-secondary); color: var(--color-secondary-text); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); box-shadow: var(--shadow-panel); font-size: var(--text-sm); }

/* ---------- logo (real artwork; colour on light, reversed on dark) ---------- */
.logo { height: 40px; width: auto; }
.logo-on-dark { display: none; }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .logo-on-light { display: none; } :root:not([data-theme]) .logo-on-dark { display: block; } }

/* ---------- public shell ---------- */
.site-head { background: var(--color-surface); border-bottom: 1px solid var(--color-line); position: relative; z-index: 20; }
.head-row { display: flex; align-items: center; gap: var(--space-4); min-height: 72px; }
.brand { display: inline-flex; flex: none; }
.brand .logo, .app-top-brand .logo { margin-left: -7px; } /* the artwork has its clear space built in */
.side-brand .logo { margin-left: -6px; }
.main-nav { display: flex; gap: var(--space-5); margin-left: var(--space-5); align-self: stretch; }
.nav-link { display: inline-flex; align-items: center; color: var(--color-text); text-decoration: none; font-weight: var(--weight-medium); font-size: var(--text-sm); min-height: 44px; position: relative; }
.nav-link:hover { text-decoration: underline; }
.main-nav .nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--color-primary); }
.shell-public { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; padding-bottom: var(--space-8); }
.site-main > .wrap:first-child:not(.results-layout) { padding-top: var(--space-5); }
.site-foot { border-top: 1px solid var(--color-line); background: var(--color-surface); }
.foot-row { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; padding-top: var(--space-5); padding-bottom: var(--space-5); color: var(--color-text-muted); font-size: var(--text-sm); }
.foot-row nav { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.foot-row a { color: var(--color-text-muted); }

/* hero + search */
.hero { background: var(--color-band); color: var(--color-band-text); padding: var(--space-7) 0 var(--space-6); }
.hero h1 { color: var(--color-band-text); text-align: center; }
.hero-sub { color: var(--color-band-muted); text-align: center; margin: var(--space-2) auto 0; max-width: 40rem; text-wrap: balance; }
.search { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: stretch; background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-lg); padding: var(--space-2); margin: var(--space-5) auto 0; max-width: 64rem; box-shadow: var(--shadow-sticky); }
.search-field { display: flex; flex-direction: column; justify-content: center; padding: var(--space-1) var(--space-4); border-right: 1px solid var(--color-line); min-width: 0; }
.search-field:nth-child(3) { border-right: 0; }
.search-field > span { font-size: var(--text-xs); line-height: var(--lh-xs); color: var(--color-text-muted); }
.search-field input, .search-field select { border: 0 !important; padding: 0 !important; min-height: 32px !important; background: transparent !important; font-size: var(--text-md); color: var(--color-text); border-radius: var(--radius-sm) !important; }
.search .btn { margin-left: var(--space-2); }
.popular { max-width: 64rem; margin: var(--space-4) auto 0; color: var(--color-band-muted); font-size: var(--text-sm); line-height: 1.8; }
.popular span { color: var(--color-band-text); }
.popular > span:first-child { font-weight: var(--weight-semibold); }
.popular a { color: var(--color-band-text); text-decoration-color: rgb(250 247 241 / 0.45); }
.popular a:hover { text-decoration-color: currentColor; }
.popular a:focus-visible, .hero :focus-visible { outline-color: var(--color-band-text); }

/* results */
.results-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18.5rem; gap: var(--space-6); align-items: start; padding-top: var(--space-6); }
.results-aside { padding-top: calc(var(--lh-xl) + var(--space-4)); }
.results-layout.no-aside { grid-template-columns: minmax(0, 1fr); max-width: 56rem; }
.results-bar { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); }
.results-count { font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: var(--weight-semibold); }
.results-for { display: block; font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--weight-regular); color: var(--color-text-muted); }
.results-tools { display: flex; gap: var(--space-4); align-items: center; font-size: var(--text-sm); }
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--card-gap); }
.job-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--card-pad); transition: border-color var(--duration-fast), box-shadow var(--duration-fast); }
.job-card:hover { border-color: var(--color-line-strong); box-shadow: var(--shadow-sticky); }
.job-card:focus-within { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.job-card :focus-visible { outline: none; }
.job-title { font-size: var(--text-md); line-height: var(--lh-md); font-weight: var(--weight-semibold); }
.job-title a { color: var(--color-text); text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.job-co { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-size: var(--text-sm); line-height: 1.7; }
.job-meta { list-style: none; margin: var(--space-1) 0 0; padding: 0; color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.7; }
.job-meta li { display: flex; align-items: center; gap: var(--space-2); }
.job-meta .i { color: var(--color-text); opacity: 0.8; }
.job-meta-lg { font-size: var(--text-md); color: var(--color-text); }
.job-side { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: var(--space-2); min-width: 9rem; }
.job-card:has(.badges) .job-side { padding-top: calc(1.4rem + var(--space-2)); }
.job-pay { font-size: var(--text-md); line-height: var(--lh-md); font-weight: var(--weight-semibold); white-space: nowrap; }
.job-pay-none { font-weight: var(--weight-regular); color: var(--color-text-muted); font-size: var(--text-sm); }
.job-ext { font-size: var(--text-sm); color: var(--color-accent); font-weight: var(--weight-semibold); white-space: nowrap; }
.cta-card h2 { font-size: var(--text-lg); }
.cta-card p { margin: var(--space-2) 0 var(--space-4); color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.7; }

/* job page */
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--text-sm); margin-bottom: var(--space-4); color: var(--color-text-muted); }
.job-head h1 { max-width: 48rem; }
.job-head-co { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-2); font-size: var(--text-md); }
.job-head-co > span:first-child { font-weight: var(--weight-semibold); }
.job-head-co > .verified { padding-left: var(--space-4); border-left: 1px solid var(--color-line-strong); }
.summary { list-style: none; padding: 0; margin: var(--space-5) 0 var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-3) 0; }
.summary li { display: flex; gap: var(--space-2); align-items: flex-start; padding: 0 var(--space-5); border-left: 1px solid var(--color-line-strong); max-width: 22rem; line-height: 1.5; }
.summary li:first-child { padding-left: 0; border-left: 0; }
.summary .i { margin-top: 0.15em; }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: var(--space-6); align-items: start; margin-top: var(--space-5); }
.job-body { display: flex; flex-direction: column; gap: var(--card-gap); min-width: 0; }
.job-body .card > .meta { margin-top: var(--space-3); }
.job-body label { cursor: pointer; }
.employer-about { display: flex; gap: var(--space-5); align-items: flex-start; }
.employer-about > div { padding-left: var(--space-5); border-left: 1px solid var(--color-line); align-self: stretch; }
.employer-about p + p { margin-top: var(--space-2); }
.apply-panel { position: sticky; top: var(--space-5); }
.apply-card { display: flex; flex-direction: column; gap: var(--space-4); box-shadow: var(--shadow-sticky); }
.apply-pay { font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: var(--weight-semibold); }
.apply-pay-none { font-size: var(--text-md); color: var(--color-text-muted); font-weight: var(--weight-regular); }
.apply-pay-none a { color: var(--color-text); font-weight: var(--weight-semibold); }
.apply-by { margin-top: calc(-1 * var(--space-3)); }
.applied { display: flex; flex-direction: column; gap: var(--space-3); }
.applied .pill { margin-left: var(--space-1); vertical-align: middle; }
.apply-bar { display: none; }

/* ---------- app shell (signed in) ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--color-side) var(--sidebar-w), transparent var(--sidebar-w)); }
.side { background: var(--color-side); color: var(--color-side-text); display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5) var(--space-4); position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-brand { display: inline-flex; padding: 0 var(--space-2); }
.side-brand .logo { height: 38px; }
.side-org { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); border: 1px solid var(--color-side-line); border-radius: var(--radius-md); padding: var(--space-3); }
.side-org-name { font-weight: var(--weight-semibold); font-size: var(--text-sm); line-height: 1.4; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-md); color: var(--color-side-text); text-decoration: none; font-size: var(--text-sm); font-weight: var(--weight-medium); position: relative; }
.side-link:hover { background: var(--color-side-active); text-decoration: none; }
.side-link[aria-current="page"] { background: var(--color-side-active); font-weight: var(--weight-semibold); }
.side-link[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--color-primary); }
.side :focus-visible { outline-color: var(--color-side-text); }
.side-rule { height: 1px; background: var(--color-side-line); margin: 0 var(--space-2); }
.side-foot { margin-top: auto; border-top: 1px solid var(--color-side-line); padding-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.side-user { display: flex; align-items: center; gap: var(--space-3); color: var(--color-side-text); text-decoration: none; padding: 0 var(--space-2); }
.side-user .avatar { background: var(--color-side-text); color: var(--color-side); }
.side-user-name { font-size: var(--text-sm); font-weight: var(--weight-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-tools { display: flex; align-items: center; gap: var(--space-2); }
.side-tools .btn-ghost { color: var(--color-side-text); font-weight: var(--weight-medium); }
.side-tools .btn-ghost:hover { background: var(--color-side-active); }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { display: none; }
.logo-symbol { width: 36px; height: 36px; margin-left: -6px; }
.app-top-title { font-weight: var(--weight-semibold); font-size: var(--text-md); margin-left: var(--space-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-content { width: 100%; max-width: 64rem; padding: var(--space-6) var(--space-7) var(--space-8) var(--space-6); }
.app-content.is-wide { max-width: 80rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-5); flex-wrap: wrap; }
.page-head-text { min-width: 0; flex: 1 1 20rem; }
.page-sub { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-2); color: var(--color-text-muted); font-size: var(--text-sm); }
.page-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.app-content > .crumbs { margin-bottom: var(--space-2); }
.tabbar { display: none; }

/* dashboard */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: var(--card-gap); margin-bottom: var(--card-gap); align-items: stretch; }
.panel { display: flex; flex-direction: column; }
.app-content > .panel + .panel, .app-content > .panel-plain, .app-content > .panel-plain + .panel { margin-top: var(--card-gap); }
.panel-head-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.panel-head-row + * { margin-top: var(--space-4); }
.panel-sub { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; font-size: var(--text-sm); margin-bottom: var(--space-3); line-height: 1.7; }
.panel-sub a { color: var(--color-text); font-weight: var(--weight-semibold); }
.today-shift + .today-shift { margin-top: var(--space-5); }
.panel-foot { margin-top: auto; padding-top: var(--space-4); font-size: var(--text-sm); }
.panel-foot-tight { margin-top: 0; }
.stat { font-size: 3rem; line-height: 1.1; font-weight: var(--weight-semibold); margin: var(--space-3) 0 var(--space-3); }
.line-list { list-style: none; margin: 0; padding: 0; }
.line-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: 3rem; padding: var(--space-2) 0; border-top: 1px solid var(--color-line); font-size: var(--text-sm); line-height: 1.5; }
.line-list li:last-child { border-bottom: 1px solid var(--color-line); }
.line-list li > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.line-list a { color: var(--color-text); }
.panel .empty { padding: var(--space-5) var(--space-3); }

/* employer job page */
.shift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: var(--card-gap); }
.shift-card .qr-link { margin-top: auto; }
[aria-invalid="true"] { border-color: var(--color-danger) !important; box-shadow: 0 0 0 1px var(--color-danger); }
.field-error { color: var(--color-danger); font-size: var(--text-sm); }
.shift-card { display: flex; flex-direction: column; gap: var(--space-3); }
.shift-card-head { display: flex; justify-content: space-between; gap: var(--space-3); align-items: baseline; }
.shift-card .line-list { margin-top: var(--space-1); }
.assign-row { display: flex; gap: var(--space-2); align-items: center; }
.assign-row .field { flex: 1; min-width: 0; }
.assign-row select { font-size: var(--text-sm); min-height: 40px; }
td.actions-left { text-align: left; }
.form-wide { max-width: 60rem; }
.shift-row-1 { display: grid; grid-template-columns: 1.4fr 1.4fr 1.1fr 0.6fr; gap: var(--space-3); }
.shift-row-2 { display: grid; grid-template-columns: 2fr 1fr 0.8fr 0.9fr; gap: var(--space-3); }
.qr-link summary { cursor: pointer; font-size: var(--text-sm); color: var(--color-accent); min-height: 32px; display: flex; align-items: center; }
.qr-link p { margin: var(--space-1) 0 var(--space-2); }
.copy { display: block; word-break: break-all; background: var(--color-surface-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-size: var(--text-xs); user-select: all; }
.add-shift { margin-top: var(--card-gap); }
.add-shift summary { list-style: none; width: max-content; }
.add-shift summary::-webkit-details-marker { display: none; }
.add-shift[open] summary { margin-bottom: var(--space-4); }
.danger-zone .row { margin-top: var(--space-4); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: var(--card-gap); align-items: start; }
.side-panel { position: sticky; top: var(--space-5); gap: var(--space-3); }
.side-panel h2 + * { margin-top: 0; }
.note { margin: 0; padding: var(--space-3) var(--space-4); border-left: 3px solid var(--color-primary); background: var(--color-surface-2); border-radius: 0 var(--radius-md) var(--radius-md) 0; white-space: pre-line; }
.thread { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.msg { max-width: 85%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--color-surface-2); }
.msg p { margin-top: var(--space-1); white-space: pre-line; }
.msg-out { align-self: flex-end; background: var(--pill-wait-bg); }
.totals { display: flex; gap: var(--space-6); margin: var(--space-4) 0 0; }
.totals div { display: flex; flex-direction: column; }
.totals dt { font-size: var(--text-sm); color: var(--color-text-muted); }
.totals dd { margin: 0; font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }

/* worker: shifts, applications */
.shifts-page { display: flex; flex-direction: column; gap: var(--space-6); max-width: 40rem; }
.today-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding-left: calc(var(--card-pad) + 4px); }
.today-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--color-secondary); }
.today-card > h1 + *, .today-card > h2 + * { margin-top: 0; }
.today-card .job-meta { margin-top: var(--space-1); }
.today-card > form, .today-card > .btn { align-self: stretch; margin-top: var(--space-3); }
.today-title { font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: var(--weight-semibold); margin-top: var(--space-2); }
.today-co { color: var(--color-text-muted); }
.today-none::before { background: var(--color-line-strong); }
.today-none .btn { align-self: flex-start; }
.qr-hint { display: flex; gap: var(--space-3); align-items: flex-start; align-self: stretch; margin-top: var(--space-1); padding: var(--space-3) var(--space-4); border: 1px solid var(--color-line-strong); border-radius: var(--radius-md); font-size: var(--text-sm); line-height: 1.6; }
.qr-hint .i { width: 1.6em; height: 1.6em; }
.clocked { display: flex; gap: var(--space-2); align-items: center; }
.row-card { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--card-pad); }
.row-card-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.5; }
.row-card-text strong { font-weight: var(--weight-semibold); }
.date-block { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 3.25rem; padding-right: var(--space-4); border-right: 1px solid var(--color-line); line-height: 1.2; box-sizing: content-box; }
.date-block b { font-size: var(--text-xl); font-weight: var(--weight-semibold); }
.date-block span { font-size: var(--text-xs); letter-spacing: 0.06em; }
.app-card { display: flex; justify-content: space-between; gap: var(--space-4); align-items: flex-start; flex-wrap: wrap; }
.app-card-text { min-width: 0; flex: 1 1 16rem; }
.app-card-text .card-title { font-size: var(--text-md); }
.app-card-text .card-title a { color: var(--color-text); }
.app-card-side { display: flex; gap: var(--space-2); align-items: center; }
.app-thread { flex-basis: 100%; border-top: 1px solid var(--color-line); padding-top: var(--space-3); }
.app-thread summary { cursor: pointer; font-size: var(--text-sm); color: var(--color-accent); min-height: 32px; display: flex; align-items: center; }
.app-thread .thread { margin-top: var(--space-3); }
.qr-page { max-width: 30rem; margin: 0 auto; }

/* auth pages */
.auth { max-width: calc(28rem + 2 * var(--space-4)); margin: 0 auto; padding: var(--space-6) var(--space-4) 0; display: flex; flex-direction: column; gap: var(--card-gap); }
.auth-head p { margin-top: var(--space-2); color: var(--color-text-muted); }
.auth .card { display: flex; flex-direction: column; gap: var(--space-4); }
.auth .card h2 + * { margin-top: 0; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); background: var(--color-surface-2); padding: 4px; border-radius: var(--radius-md); }
.role-switch a { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: var(--radius-sm); color: var(--color-text); text-decoration: none; font-size: var(--text-sm); font-weight: var(--weight-medium); }
.role-switch a[aria-current="page"] { background: var(--color-surface); font-weight: var(--weight-semibold); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }

/* admin + settings + feedback */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--card-gap); margin-bottom: var(--card-gap); }
.stat-card { display: flex; flex-direction: column; gap: var(--space-1); text-decoration: none; color: var(--color-text); }
.stat-card:hover { border-color: var(--color-line-strong); text-decoration: none; }
.stat-card .stat { margin: auto 0 0; font-size: var(--text-2xl); line-height: var(--lh-2xl); } /* numbers line up when a label wraps */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.filters a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-full); border: 1px solid var(--color-line-strong); color: var(--color-text); text-decoration: none; font-size: var(--text-sm); }
.filters a[aria-current="page"] { background: var(--color-secondary); border-color: var(--color-secondary); color: var(--color-secondary-text); font-weight: var(--weight-semibold); }
.err-msg { font-weight: var(--weight-semibold); word-break: break-word; }
.settings-group { display: flex; flex-direction: column; gap: var(--space-4); }
.settings-group > h2 { margin-bottom: calc(-1 * var(--space-1)); }
.settings-group + .settings-group { margin-top: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--color-line); }
.settings-group .check { font-size: var(--text-sm); font-weight: var(--weight-medium); }
.fb-item { display: flex; flex-direction: column; gap: var(--space-2); }
.fb-top { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.clip { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* empty states + error pages */
.empty { text-align: center; padding: var(--space-7) var(--space-4); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.empty p { color: var(--color-text-muted); max-width: 32rem; }
.empty-title { font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--weight-semibold); }
h1.empty-title { font-size: var(--text-2xl); line-height: var(--lh-2xl); font-weight: var(--weight-bold); }
.empty .btn, .empty .row { margin-top: var(--space-2); }
.empty-page { padding-top: var(--space-8); }
.empty-code { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-text-muted); letter-spacing: 0.08em; }
.bare-head { background: var(--color-surface); border-bottom: 1px solid var(--color-line); }
.bare-head .wrap { display: flex; align-items: center; min-height: 72px; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .results-layout { grid-template-columns: minmax(0, 1fr); }
  .results-aside { order: -1; padding-top: 0; }
  .cta-card { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); align-items: center; }
  .cta-card p { margin: 0; flex: 1 1 20rem; }
  .cta-card h2 { flex-basis: 100%; }
  .cta-card .btn-block { width: auto; }
  .job-layout { grid-template-columns: minmax(0, 1fr) 19rem; }
  .dash-grid, .two-col { grid-template-columns: minmax(0, 1fr); }
  .side-panel { position: static; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .hide-phone { display: none !important; }
  h1, h1.empty-title { font-size: var(--text-2xl-phone); line-height: var(--lh-2xl-phone); }
  .wrap { padding: 0 var(--space-4); }
  .logo { height: 32px; }
  .brand .logo, .app-top-brand .logo { margin-left: -5px; }
  .head-row { min-height: 60px; gap: var(--space-2); }
  .head-row .btn-icon { width: 44px; min-height: 44px; }
  .head-row .nav-link { padding: 0 var(--space-2); }
  .grid-2, .grid-3, .grid-4, .shift-row-1 { grid-template-columns: minmax(0, 1fr); }
  .shift-row-2 { grid-template-columns: 1fr 1fr; }
  .shift-row-2 > :first-child { grid-column: 1 / -1; }
  .yr { display: none; }
  .job-body th, .job-body td { padding-left: var(--space-3); padding-right: var(--space-3); }
  .job-body .col-check { width: 2.25rem; padding-right: 0; }
  .job-body td label { display: block; padding: var(--space-2) 0; margin: calc(-1 * var(--space-2)) 0; }
  .job-layout { gap: var(--card-gap); }
  .apply-bar .meta { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
  .span-2 { grid-column: auto; }
  .grid-2.tight { grid-template-columns: 1fr 1fr; }
  .add-row { grid-template-columns: minmax(0, 1fr); }
  .btn { min-height: 44px; }
  .btn-sm { min-height: 44px; }
  .field-inline { max-width: none; }

  .hero { padding: var(--space-5) 0 var(--space-5); }
  .hero h1, .hero-sub { text-align: left; }
  .hero-sub { margin-left: 0; font-size: var(--text-sm); }
  .search { grid-template-columns: minmax(0, 1fr); padding: var(--space-2) var(--space-3); margin-top: var(--space-4); }
  .search-field { border-right: 0; border-bottom: 1px solid var(--color-line); padding: var(--space-2) var(--space-1); }
  .search-field:nth-child(3) { border-bottom: 0; }
  .search .btn { margin: var(--space-2) 0 var(--space-1); width: 100%; }
  .results-layout { padding-top: var(--space-5); gap: var(--space-5); }
  .results-aside { order: 2; }
  .results-count { font-size: var(--text-lg); }
  .job-card { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding: var(--space-4); }
  .job-card:has(.badges) .job-side { padding-top: var(--space-2); }
  .job-side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; min-width: 0; gap: var(--space-2) var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--color-line); }

  .summary { flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
  .summary li { border-left: 0; padding: 0; max-width: none; }
  .job-layout { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-4); }
  .apply-panel { position: static; order: 2; }
  .apply-card { box-shadow: none; }
  .employer-about { flex-direction: column; gap: var(--space-3); }
  .org-tile { width: 48px; height: 48px; font-size: var(--text-md); }
  .apply-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom)); background: var(--color-surface); border-top: 1px solid var(--color-line); box-shadow: var(--shadow-sticky); }
  .apply-bar > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
  .apply-bar strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .apply-bar .btn { min-height: 48px; padding: 0 var(--space-4); flex-shrink: 0; }
  .job-page { padding-bottom: 5.5rem; }
  body[data-role] .apply-bar { bottom: calc(64px + env(safe-area-inset-bottom)); }

  .app { display: block; background: none; }
  .side { display: none; }
  .app-top { display: flex; align-items: center; gap: var(--space-2); min-height: 60px; padding: 0 var(--space-4); background: var(--color-surface); border-bottom: 1px solid var(--color-line); position: sticky; top: 0; z-index: 20; }
  .app-top .btn-icon { width: 44px; min-height: 44px; }
  .head-row .avatar, .app-top .avatar { width: 44px; height: 44px; }
  .app-content, .app-content.is-wide { padding: var(--space-5) var(--space-4) calc(var(--space-8) + 64px); }
  .site-main { padding-bottom: calc(var(--space-7) + 64px); }
  .shell-public:not([data-role]) .site-main { padding-bottom: var(--space-7); }
  .page-head { margin-bottom: var(--space-4); }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--color-surface); border-top: 1px solid var(--color-line); padding-bottom: env(safe-area-inset-bottom); }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; color: var(--color-text); text-decoration: none; font-size: var(--text-xs); font-weight: var(--weight-regular); position: relative; }
  .tab .i { width: 24px; height: 24px; }
  .tab[aria-current="page"] { font-weight: var(--weight-semibold); }
  .tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: var(--color-primary); }
  .help-tab { top: auto; bottom: calc(160px + env(safe-area-inset-bottom)); transform: rotate(-90deg); transform-origin: bottom right; font-size: 0.6875rem; line-height: 1.3; padding: 2px var(--space-3); }
  .hours-row { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .row-card-text .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .employer-about > div { padding-left: 0; border-left: 0; }
  .shell-public:not([data-role]) .foot-row { flex-direction: column; align-items: flex-start; }
  body[data-role] .site-foot { padding-bottom: 64px; }

  .scrim { align-items: flex-end; }
  .scrim .panel { height: auto; max-height: 90vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

  /* tables become stacked rows on a phone */
  .stack-table thead { display: none; }
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table td { display: block; width: 100%; }
  .stack-table tr { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-line); }
  .stack-table tbody tr:last-child { border-bottom: 0; }
  .stack-table td { border: 0; padding: 2px 0; text-align: left !important; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); white-space: normal; }
  .stack-table td[data-label]::before { content: attr(data-label); color: var(--color-text-muted); font-weight: var(--weight-regular); white-space: nowrap; }
  .stack-table td[data-label] > span { text-align: right; min-width: 0; overflow-wrap: anywhere; }
  .line-list li { flex-wrap: wrap; }
  .stack-table td.actions { justify-content: flex-start; padding-top: var(--space-2); flex-wrap: wrap; }
  .stack-table td.actions > * + * { margin-left: 0; }
  .stack-table td.lead-cell { font-weight: var(--weight-semibold); }

  .shift-grid { grid-template-columns: minmax(0, 1fr); }
  .assign-row { flex-direction: column; align-items: stretch; }
  .msg { max-width: 100%; }
  .today-title { font-size: var(--text-lg); }
  .row-card { padding: var(--space-3) var(--space-4); }
  .app-card-side { width: 100%; justify-content: space-between; }
  .auth { padding-top: var(--space-4); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* account details */
.details { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--space-4) var(--space-5); margin: var(--space-4) 0 0; }
.details div { display: flex; flex-direction: column; min-width: 0; }
.details dt { font-size: var(--text-sm); color: var(--color-text-muted); }
.details dd { margin: 0; font-weight: var(--weight-semibold); overflow-wrap: break-word; }
.card > .meta + form, .card > .meta + .row { margin-top: var(--space-4); }
.card .row[role="group"] { margin-top: var(--space-3); }
.card .row[role="group"] .btn[aria-pressed="true"] { border-color: var(--color-text); background: var(--color-surface-2); }

/* custom select chevron, so selects match inputs (and the search bar aligns) */
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6575' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1rem; padding-right: 2.25rem !important; }
.search-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6575' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 0 center !important; background-size: 1rem !important; padding-right: 1.5rem !important; }
:root[data-theme="dark"] select { color-scheme: dark; }
.count-cell { display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--space-2); }
.count-cell > span:last-child { min-width: 2ch; text-align: right; }
td.actions a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-2); }
@media (max-width: 760px) { td.actions a { min-height: 44px; } }
.add-row .btn { min-height: 44px; }
:root[data-theme="dark"] select, :root[data-theme="dark"] .search-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9D0DA' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) select, :root:not([data-theme]) .search-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9D0DA' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; } }

/* ---------- SEO landing pages, browse hub, legal pages, cookie notice (feat/seo) ---------- */
.landing { padding-bottom: var(--space-7); }
.landing-head { max-width: 52rem; margin-bottom: var(--space-5); }
.landing-head h1 { margin-bottom: var(--space-3); }
.landing-answer { margin: 0 0 var(--space-2); text-wrap: pretty; }
.landing-stats { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--card-gap); }
.landing-stats .card { display: flex; flex-direction: column; gap: var(--space-1); }
.stat-label { color: var(--color-text-muted); font-size: var(--text-sm); }
.landing-stats .stat { margin: 0; font-size: var(--text-xl); line-height: var(--lh-xl); }
.landing-stats .stat-none { font-size: var(--text-md); line-height: var(--lh-md); color: var(--color-text-muted); font-weight: var(--weight-regular); }
.landing-layout { padding-top: var(--space-5); }
.landing-aside { display: grid; gap: var(--card-gap); padding-top: 0; }
.tally { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.tally li { display: flex; justify-content: space-between; gap: var(--space-3); }
.tally .num { color: var(--color-text-muted); white-space: nowrap; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.pager > :last-child { justify-self: end; }
.landing-faq, .landing-related, .browse-block { margin-top: var(--space-7); }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); }
.faq h3 { margin-bottom: var(--space-2); }
.faq:last-child:nth-child(odd) { grid-column: 1 / -1; }
.landing-aside .inline-form, .landing-aside .card > .btn { margin-top: var(--space-4); }
.faq p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--lh-sm); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--space-5); }
.related-grid .mini-title { margin-top: 0; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); font-size: var(--text-sm); }
.link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: var(--space-2) var(--space-5); font-size: var(--text-sm); }
.browse-country { margin-bottom: var(--space-5); }
.link-grid .count, .link-list .count { white-space: nowrap; }
.browse-country .mini-title { font-size: var(--text-md); }
.legal { max-width: 48rem; padding-bottom: var(--space-7); }
.cookie-type { display: none; }
.legal-toc { margin-bottom: var(--space-6); }
.legal-toc ol { margin: var(--space-3) 0 0; padding-left: var(--space-5); columns: 2; column-gap: var(--space-6); font-size: var(--text-sm); }
.legal-sec { margin-top: var(--space-6); scroll-margin-top: var(--space-5); }
.legal-sec h2 { margin-bottom: var(--space-3); }
.legal-sec ul, .legal-sec ol { padding-left: var(--space-5); }
.legal-sec li + li { margin-top: var(--space-2); }
.legal-sec p + p, .legal-sec ul + p, .legal-sec p + ul, .legal-sec .table-wrap + p { margin-top: var(--space-3); }
.legal-sec strong { font-weight: var(--weight-semibold); }
.legal-related { margin-top: var(--space-7); }
.consent-card { margin-top: var(--space-4); }
.consent-card form { margin-top: var(--space-3); }
.consent { position: fixed; z-index: 40; left: var(--space-4); bottom: calc(var(--space-4) + env(safe-area-inset-bottom)); max-width: 26rem; display: flex; flex-direction: column; gap: var(--space-3); background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-panel); padding: var(--space-4); font-size: var(--text-sm); line-height: var(--lh-sm); }
.consent p { margin: 0; }
.consent-actions { display: flex; justify-content: flex-end; gap: var(--space-2); }
@media (max-width: 760px) { .landing-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .faq-list { grid-template-columns: minmax(0, 1fr); }
  .legal-toc ol { columns: 1; }
  .consent { left: var(--space-3); right: var(--space-3); bottom: calc(var(--space-3) + env(safe-area-inset-bottom)); max-width: none; }
  body[data-role] .consent { bottom: calc(64px + var(--space-3) + env(safe-area-inset-bottom)); }
  .cookie-type { display: inline-flex; margin-left: var(--space-2); }
  .cookie-type-col { display: none !important; }
  .cookie-table td.cookie-what { display: block; padding: var(--space-1) 0; }
  .landing-stats .stat-pay { font-size: var(--text-lg); line-height: var(--lh-lg); }
  .crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
}

/* lead-in line before a bulleted list in a job description */
.prose .list-lead, .list-lead { margin-bottom: var(--space-1); font-weight: 600; }

/* ---------- Contact page and Admin > Contact messages (feat/contact) ---------- */
.contact-layout { grid-template-columns: minmax(0, 1fr) 20rem; }
.contact-form { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-form .alert { margin-bottom: 0; }
.contact-form .alert p { margin-top: var(--space-1); }
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-who .field-error { flex-basis: 100%; }
.contact-hp, .hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-aside { display: grid; gap: var(--card-gap); }
.contact-aside .card-title { font-size: var(--text-md); line-height: var(--lh-md); margin-bottom: var(--space-2); }
.contact-aside .link-list { margin-top: var(--space-3); }
.contact-sent { display: flex; flex-direction: column; gap: var(--space-3); border-left: 4px solid var(--color-success); }
.contact-sent h2 { margin: 0; }
.contact-sent p { margin: 0; max-width: 60ch; }
.contact-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--card-gap); }
.contact-msg { display: flex; flex-direction: column; gap: var(--space-3); }
.contact-msg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); flex-wrap: wrap; }
.contact-msg-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 72ch; }

@media (max-width: 760px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-who label { flex: 1 1 100%; }
  .contact-form .form-actions .btn { width: 100%; }
  .contact-msg-head { flex-direction: column; gap: var(--space-1); }
  .contact-msg-actions > .btn { flex: 1 1 100%; }
  .contact-msg-actions > form { flex: 1 1 0; }
  .contact-msg-actions > form .btn { width: 100%; }
  .contact-msg-actions .contact-msg-del { margin-left: 0; }
  .contact-sent-actions .btn { flex: 1 1 100%; }
}
.contact-err-list { margin: var(--space-2) 0 0; padding-left: var(--space-5); display: grid; gap: var(--space-1); }
.contact-err-list a { color: inherit; }
.contact-form .field-error { line-height: var(--lh-sm); }
.contact-who.has-error legend { color: var(--color-danger); font-weight: var(--weight-semibold); }
.contact-sent-title { display: flex; align-items: center; gap: var(--space-3); }
.contact-sent-icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--radius-full); background: var(--pill-good-bg); color: var(--pill-good-text); flex: none; }
.contact-msg-who { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.contact-msg-when { display: flex; align-items: center; gap: var(--space-2); font-variant-numeric: tabular-nums; }
.contact-msg-actions .contact-msg-del { margin-left: auto; }
.contact-msg-actions form { display: inline-flex; }
.contact-msg-text { font-size: var(--text-base); }
.contact-who.has-error label { border-color: var(--color-danger); }

/* ---------- company logos and profiles (EVS-70) ---------- */
.co-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-md); overflow: hidden; color: var(--color-secondary-text); font-weight: var(--weight-semibold); }
.co-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.co-logo-dark { background: var(--logo-bg, #111827); border-color: transparent; }
.co-logo-none { background: var(--color-secondary); border-color: transparent; }
.co-logo.co-logo-fill { padding: 0; background: transparent; }
.co-logo-fill img { object-fit: cover; }
.co-logo-sm { width: 72px; height: 52px; padding: 6px 8px; font-size: var(--text-md); }
.co-logo-md { width: 96px; height: 64px; padding: 6px 8px; font-size: var(--text-lg); }
.co-logo-lg { width: 112px; height: 76px; padding: 10px 12px; font-size: var(--text-lg); }
.co-logo-xl { width: 200px; height: 128px; padding: 14px 18px; font-size: var(--text-2xl, 1.75rem); border-radius: var(--radius-lg); }
.job-card.has-logo { grid-template-columns: auto minmax(0, 1fr) auto; }
.job-logo { padding-top: 2px; }
.job-head-co a { color: inherit; font-weight: var(--weight-semibold); }
.job-head-co .job-head-logo { display: inline-flex; }
.job-head-co .co-logo-md { width: 72px; height: 48px; padding: 4px 6px; }
.employer-about > .co-logo { align-self: flex-start; }
.prose .prose-h { font-size: var(--text-md); font-weight: var(--weight-semibold); margin: var(--space-5) 0 var(--space-2); }
.prose .prose-h:first-child { margin-top: 0; }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip-row a.chip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; max-width: none; overflow: visible; padding: 0 var(--space-2) 0 var(--space-3); background: var(--color-surface); border: 1px solid var(--color-line-strong); color: var(--color-text); text-decoration: none; font-size: var(--text-sm); line-height: 1.2; }
.chip-row a.chip:hover { border-color: var(--color-primary); }
.chip-row a.chip.is-on { background: var(--color-secondary); color: var(--color-secondary-text); border-color: var(--color-secondary); }
.chip-n { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; height: 1.375rem; padding: 0 0.4rem; border-radius: var(--radius-full); background: var(--color-surface-2); color: var(--color-text-muted); font-size: var(--text-xs); font-weight: var(--weight-semibold); line-height: 1; }
.chip.is-on .chip-n { background: rgba(255, 255, 255, 0.18); color: inherit; }

.companies-page .page-intro { max-width: 52rem; margin-bottom: var(--space-5); }
.companies-page .page-intro .lead { margin-top: var(--space-2); color: var(--color-text-muted); }
.companies-page > .chip-row { margin-bottom: var(--space-5); }
.company-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: var(--card-gap); }
.company-card { position: relative; display: flex; gap: var(--space-4); align-items: flex-start; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--card-pad); transition: border-color var(--duration-fast), box-shadow var(--duration-fast); }
.company-card:hover { border-color: var(--color-line-strong); box-shadow: var(--shadow-sticky); }
.company-card:focus-within { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.company-card :focus-visible { outline: none; }
.company-card-text { min-width: 0; display: grid; gap: 2px; }
.company-card-text .meta { line-height: 1.45; }
.company-card-place { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-card-name { font-size: var(--text-md); line-height: var(--lh-md, 1.4); }
.company-card-name a { color: var(--color-text); text-decoration: none; }
.company-card-jobs { font-size: var(--text-sm); }
.company-card-jobs.is-quiet { color: var(--color-text-muted); }

.company-head { display: flex; gap: var(--space-6); align-items: center; padding: var(--space-5) 0 var(--space-2); }
.company-head-text { display: grid; gap: var(--space-2); min-width: 0; }
.company-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.company-head-meta { color: var(--color-text-muted); font-size: var(--text-md); }
.company-head-meta .nowrap { white-space: nowrap; }
.company-head-actions { margin-top: var(--space-2); gap: var(--space-3); }
.company-layout { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: var(--space-6); align-items: start; margin-top: var(--space-5); }
.company-main { display: grid; gap: var(--card-gap); min-width: 0; }
.company-main h2 { margin-bottom: var(--space-3); }
.company-side { position: sticky; top: calc(var(--header-h, 64px) + var(--space-4)); }
.facts { display: grid; gap: var(--space-3); margin: var(--space-3) 0 0; }
.facts > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-line); }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--color-text-muted); font-size: var(--text-sm); }
.facts dd { margin: 0; font-weight: var(--weight-medium); overflow-wrap: anywhere; }
.facts dd a { display: inline-flex; align-items: center; gap: 0.3em; min-height: 32px; }
.company-side .claim-line { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-line); font-size: var(--text-sm); }
.venue-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--space-2) var(--space-4); }
.venue-list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.venue-list .i { flex: none; margin-top: 0.2em; color: var(--color-primary); }
.company-jobs-filters { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.company-jobs .job-list { margin-top: var(--space-2); }
.company-jobs .job-logo, .company-jobs .job-co { display: none; }
.company-jobs .job-card.has-logo { grid-template-columns: minmax(0, 1fr) auto; }
.company-jobs .row-center { margin-top: var(--space-4); }

@media (max-width: 1100px) {
  .company-layout { grid-template-columns: minmax(0, 1fr) 19rem; }
}
@media (max-width: 760px) {
  .co-logo-sm { width: 60px; height: 44px; padding: 4px 5px; }
  .co-logo-lg { width: 88px; height: 60px; padding: 6px 8px; }
  .co-logo-xl { width: 120px; height: 80px; padding: 8px 10px; }
  .job-card.has-logo { grid-template-columns: auto minmax(0, 1fr); }
  .job-card.has-logo .job-side { grid-column: 1 / -1; }
  .company-head { flex-direction: column; gap: var(--space-3); align-items: flex-start; padding-top: var(--space-2); }
  .company-head-text { width: 100%; }
  .company-head-meta .sep { display: none; }
  .company-head-meta .nowrap { display: block; white-space: normal; }
  .company-head-actions { flex-direction: column; align-items: stretch; }
  .company-head-actions .btn { width: 100%; }
  .chip-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--space-4)); padding: 2px var(--space-4) var(--space-2); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip-row a.chip { flex: none; }
  .company-jobs .chip-row { margin: 0 calc(-1 * var(--card-pad)); padding-left: var(--card-pad); padding-right: var(--card-pad); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .company-side { order: 2; }
  .company-jobs .job-card.has-logo { grid-template-columns: minmax(0, 1fr); }
  body:has(.apply-bar) .job-page { padding-bottom: var(--space-6); }
  .job-page .crumbs > :last-child, .job-page .crumbs > :nth-last-child(2) { display: none; }
  .company-layout { grid-template-columns: minmax(0, 1fr); gap: var(--card-gap); }
  .company-side { position: static; }
  .company-grid { grid-template-columns: minmax(0, 1fr); }
  .employer-about { flex-direction: column; gap: var(--space-3); }
  .employer-about > div { padding-left: 0; border-left: 0; }
}

/* commerce.css */
/* Commerce screens (feat/commerce): Pricing, Upgrade, Billing, Premium upsells, Find workers, Team, photo and certificates.
   Same tokens as app.css; nothing here overrides a shared rule. */

/* ---------- prices ---------- */
.price-line { display: flex; align-items: baseline; gap: var(--space-2); margin: var(--space-3) 0 0; }
.price { font-size: 2.5rem; line-height: 1.1; font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.price-sm { font-size: var(--text-xl); line-height: var(--lh-xl); }
.price-per { color: var(--color-text-muted); font-size: var(--text-md); }
.price-then { color: var(--color-text-muted); font-size: var(--text-sm); margin: var(--space-1) 0 0; }

/* ---------- Pricing page ---------- */
.hero-pricing h1 { max-width: 46rem; margin: 0 auto; text-wrap: balance; }
.pricing { padding-top: var(--space-6); padding-bottom: var(--space-7); display: flex; flex-direction: column; gap: var(--space-7); }
.plans { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--card-gap); align-items: start; }
.plan { display: flex; flex-direction: column; gap: var(--space-3); }
.plan h2 { font-size: var(--text-xl); line-height: var(--lh-xl); }
.plan > .btn, .plan-cta { margin-top: var(--space-2); }
.plan-cta { display: flex; flex-direction: column; gap: var(--space-2); }
.plan-cta .meta { margin: 0; }
.plan-plus { margin: var(--space-3) 0 0; font-weight: var(--weight-semibold); }
.plan .ticks { border-top: 1px solid var(--color-line); padding-top: var(--space-4); }
.plan-plus + .ticks { border-top: 0; padding-top: 0; }
.pricing p, .pricing li, .pricing h2 { text-wrap: pretty; }
.plan-premium { border: 2px solid var(--color-secondary); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.ticks { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.ticks li { display: flex; gap: var(--space-3); align-items: flex-start; line-height: 1.5; }
.ticks .i { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; color: var(--color-success); stroke-width: 2.4; }
.pricing-section > .section-title { font-size: var(--text-xl); line-height: var(--lh-xl); margin-bottom: var(--space-4); }
.benefit-grid { gap: var(--card-gap); }
.benefit-grid h3, .pricing .grid-2 h3 { font-size: var(--text-md); font-weight: var(--weight-semibold); margin: 0 0 var(--space-2); }
.pricing .grid-2 { gap: var(--card-gap); }
.faq details { border-top: 1px solid var(--color-line); padding: var(--space-4) 0; }
.faq details:last-child { border-bottom: 1px solid var(--color-line); }
.faq summary { cursor: pointer; font-weight: var(--weight-semibold); }
.faq details p { margin: var(--space-2) 0 0; color: var(--color-text-muted); max-width: 46rem; line-height: 1.7; }

/* ---------- upsell (a Premium tool on a free account) ---------- */
.upsell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4) var(--space-6); align-items: center; border-left: 4px solid var(--color-primary); }
.upsell h2 { font-size: var(--text-lg); line-height: var(--lh-lg); margin: var(--space-2) 0 var(--space-1); }
.upsell-text > .pill:first-child { margin-bottom: var(--space-1); }
.upsell p { color: var(--color-text-muted); margin: 0; max-width: 40rem; }
.upsell-cta { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.upsell-cta .price-line { margin: 0; }
.upsell-cta .price-then { margin: 0; }

/* ---------- Upgrade / extras summary ---------- */
.summary-card .pill { align-self: flex-start; }
.sum { margin: var(--space-2) 0; display: flex; flex-direction: column; }
.sum div { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0; border-top: 1px solid var(--color-line); font-size: var(--text-sm); }
.sum dt { color: var(--color-text-muted); }
.sum dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: var(--weight-semibold); white-space: nowrap; }
.sum .sum-total { border-top: 2px solid var(--color-text); font-size: var(--text-md); }
.sum .sum-total dt { color: var(--color-text); font-weight: var(--weight-semibold); }
.upgrade .form-card select { max-width: 100%; }
.upgrade { grid-template-columns: minmax(0, 1fr) 22rem; }
.upgrade > .summary-card { order: 2; }
@media (max-width: 1100px) { .upgrade { grid-template-columns: minmax(0, 1fr); } .upgrade > .summary-card { order: 0; } }
.plan-card .row { margin-top: var(--space-4); }
.plan-card .alert { margin: var(--space-4) 0 0; }
td.actions a + a { margin-left: var(--space-3); }
@media (max-width: 760px) { .invoice-table td[data-label] { align-items: flex-start; } }

/* ---------- Find workers ---------- */
.filters-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }
.field-btn { justify-content: flex-end; }
.filters-card { margin-bottom: var(--space-5); }
.worker-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.worker-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; }
.worker-card-text p { margin: var(--space-1) 0 0; }
.worker-card .card-title a { color: var(--color-text); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.team-list .person-text { display: flex; flex-direction: column; min-width: 0; }
.team-list .person-text .meta { overflow-wrap: anywhere; }
.team-list .row { flex-wrap: nowrap; }

/* ---------- photo and certificates ---------- */
.avatar-lg { width: 96px; height: 96px; font-size: var(--text-xl); }
.profile-photo { width: 96px; height: 96px; border-radius: var(--radius-full); object-fit: cover; flex: none; border: 1px solid var(--color-line); }
.profile-top { display: flex; gap: var(--space-4); align-items: center; margin-bottom: var(--space-3); }
.profile-top .lead { margin: 0 0 var(--space-2); }
.profile-top .btn .i { width: 1.1em; height: 1.1em; }
.file-rows { display: flex; flex-direction: column; margin-top: var(--space-3); }
.file-row { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4) 0; border-top: 1px solid var(--color-line); }
.file-row:last-child { padding-bottom: 0; }
.file-row-text { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.file-row-text .row { margin-top: var(--space-2); }
.file-icon { width: 96px; height: 96px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-lg); background: var(--color-surface-2); color: var(--color-text-muted); }
.file-icon .i { width: 40px; height: 40px; }
.upload-btn { position: relative; overflow: hidden; }
.upload-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.upload-btn:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.alert-form { margin-top: var(--space-4); }
.limit-note .row { margin-top: var(--space-3); }
.static-value { font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
#photoT, #alertT, .qual-row { scroll-margin-top: 80px; }
.file-actions { flex-wrap: wrap; gap: var(--space-2); }
.file-actions form { margin: 0; }
.file-msg { margin: var(--space-2) 0 0; }
/* qualifications: the worker's rows (certificate + actions) and the employer's list */
.qual-rows { margin-top: var(--space-3); }
.qual-rows li.qual-row { display: block; padding: var(--space-3) 0; }
.qual-text { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.qual-text .file-actions { margin-top: var(--space-1); }
.qual-text .file-actions .qual-delete { margin-left: auto; }
.mini-title + .add-row { border-top: 0; padding-top: 0; margin-top: calc(var(--space-2) - var(--space-4)); }
.form-card > .mini-title { margin-bottom: 0; }
@media (max-width: 640px) { .qual-text .file-actions .qual-delete { margin-left: 0; flex-basis: 100%; margin-top: var(--space-1); } }
.qual-delete .btn { color: var(--color-danger); }
.cert-line a { overflow-wrap: anywhere; }
.qual-name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.cert-line { display: flex; align-items: flex-start; gap: var(--space-1); overflow-wrap: anywhere; }
.cert-line .i, .cert-fact .i { width: 1.1em; height: 1.1em; flex: none; margin-top: 0.15em; }
.cert-fact { display: inline-flex; align-items: center; gap: var(--space-1); margin: var(--space-1) 0 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.qual-list .qual-text { display: flex; flex-direction: column; min-width: 0; }
.line-list.qual-list a.btn { color: var(--color-text) !important; font-weight: var(--weight-semibold); flex: none; }
.line-list.qual-list a.btn .i { width: 1.1em; height: 1.1em; }
.filters-grid-workers { grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto; }
.field-check .check { min-height: 2.75rem; align-items: center; white-space: nowrap; font-size: var(--text-sm); }
.field-check .check input { margin-top: 0; width: 1.125rem; height: 1.125rem; }

@media (max-width: 1100px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-premium { order: -1; }
  .upsell { grid-template-columns: minmax(0, 1fr); }
  .filters-grid, .filters-grid-workers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .price { font-size: 2.125rem; }
  .pricing { gap: var(--space-6); padding-top: var(--space-5); }
  .filters-grid, .filters-grid-workers { grid-template-columns: minmax(0, 1fr); }
  .field-check .check { min-height: 0; }
  .worker-card { grid-template-columns: auto minmax(0, 1fr); }
  .worker-card > .btn { grid-column: 1 / -1; }
  .file-row { align-items: flex-start; }
  .profile-photo, .avatar-lg, .file-icon { width: 72px; height: 72px; }
}
.line-list.qual-list .cert-none, .line-list.qual-list .cert-fact { flex: none; margin: 0; }

/* Find workers: near one of your jobs (geo) */
.filters-near { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); margin-top: var(--space-4); align-items: end; }
@media (max-width: 760px) { .filters-near { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); } }

/* Priority on the Pricing page (EVS-79): price and button beside what it does, like the plan cards */
.priority-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6); align-items: start; }
.priority-card-main { display: flex; flex-direction: column; gap: var(--space-3); }
.priority-card-main h3 { font-size: var(--text-xl); line-height: var(--lh-xl); margin: 0; }
.priority-card-main .price-line { margin: 0; }
.priority-card .priority-ticks { margin: 0; border-left: 1px solid var(--color-line); padding-left: var(--space-6); }
/* the job page: applicants a free account can't see yet */
.locked-applicants { margin-top: var(--space-4); }
.locked-applicants p { margin: var(--space-1) 0 0; }
.locked-applicants .row { margin-top: var(--space-3); }
@media (max-width: 900px) {
  .priority-card { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .priority-card .priority-ticks { border-left: 0; padding-left: 0; border-top: 1px solid var(--color-line); padding-top: var(--space-4); }
}
.priority-ticks li span { text-wrap: pretty; }
.priority-row { align-items: center; }

/* polish.css */
/* Polish round (design review, 5 Nov 2026): loaded after app.css. Values come from tokens.css only.
   Type rule kept: page/hero headline Bold 700; other headings, job titles, pay, counts, buttons SemiBold 600;
   labels/body Regular 400. */

/* ---------- type: Plus Jakarta Sans sets its spaces tight at small sizes ---------- */
:root { --content-max: 80rem; --gutter: 1.5rem; --list-gap: 1.25rem; }
body { word-spacing: 0.06em; }
.meta, .job-meta, .job-co, .chip, .pill, .badge, .btn, .field > span, small, th, td, .crumbs, .popular, .summary { word-spacing: 0.08em; }
h2, h3, h4, .job-title, .results-count, .empty-title, .stat { letter-spacing: 0; }
.hero h1, .page-head h1, .job-head h1 { letter-spacing: -0.01em; }

/* ---------- one button system: primary marigold, secondary navy outline, tertiary text ---------- */
.btn, .btn-secondary, .btn-outline { background: transparent; border: 1.5px solid var(--color-text); color: var(--color-text); }
.btn:hover, .btn-secondary:hover, .btn-outline:hover { background: var(--color-surface-2); border-color: var(--color-text); opacity: 1; }
.btn-primary, .btn-primary:hover { border-color: var(--color-primary); color: var(--color-accent-text); }
.btn-primary { background: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn-ghost, .btn-ghost:hover { border-color: transparent; }
.btn-ghost { background: transparent; color: var(--color-text); }
.btn-ghost:hover { background: var(--color-surface-2); }
.btn-danger { border-color: var(--color-danger); color: var(--color-danger); }
.btn-sm { min-height: 36px; border-width: 1.5px; }
.btn-icon { width: 44px; min-height: 44px; }
.btn:disabled, .btn[disabled] { opacity: 1; cursor: not-allowed; background: var(--color-surface-2); border-color: var(--color-line-strong); color: var(--color-text-muted); }
.btn-primary:disabled { background: var(--color-surface-2); border-color: var(--color-line-strong); color: var(--color-text-muted); }
/* one link style: accent colour, thin underline */
a:not(.btn):not(.filters a):not(.nav-link):not(.side-link):not(.tab):not(.brand):not(.stretch):not(.avatar):not(.popular-chip):not(.strong-link):not(.side-brand):not(.app-top-brand):not(.side-user):not(.stat-card):not(.save-btn):not(.job-pay-locked):not(.apply-pay-locked):not(.apply-bar-locked) { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.panel-sub a, .line-list a { color: var(--color-accent) !important; font-weight: var(--weight-regular); }
.link-btn { color: var(--color-accent); text-decoration-thickness: 1px; }

/* ---------- counts: one small pill everywhere ---------- */
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6rem; height: 1.4rem; padding: 0 0.45rem; margin-left: var(--space-2); border-radius: var(--radius-full); background: var(--color-surface-2); color: var(--color-text); font-size: var(--text-xs); line-height: 1; font-weight: var(--weight-semibold); vertical-align: 0.15em; white-space: nowrap; }
.panel-sub .count, .line-list .count { margin-left: 0; }
.filters-btn .count { background: var(--color-text); color: var(--color-surface); margin-left: 0; }

/* ---------- badges: one system (same shape, different colour) ---------- */
.badge { display: inline-flex; align-items: center; height: 1.375rem; padding: 0 var(--space-2); border: 0; border-radius: var(--radius-sm); font-size: var(--text-xs); line-height: 1; font-weight: var(--weight-semibold); vertical-align: middle; white-space: nowrap; }
.badge-featured { background: var(--pill-brand-bg); color: var(--pill-brand-text); }
.badge-urgent { background: var(--pill-bad-bg); color: var(--pill-bad-text); border: 0; }
.job-title .badge { margin-left: var(--space-2); position: relative; top: -1px; }
.job-head-co .badge { margin: 0; }

/* ---------- header ---------- */
.logo { height: 46px; }
.head-row { min-height: 76px; }
.main-nav { align-self: stretch; align-items: center; }
.main-nav .nav-link { min-height: 44px; }
.main-nav .nav-link[aria-current="page"]::after { bottom: 10px; left: var(--space-1); right: var(--space-1); height: 3px; border-radius: var(--radius-full); }
.main-nav .nav-link { position: relative; }
/* header labels are single words to the reader: never broken over two lines; on tablets the gaps shrink so
   the whole row still fits (761px up; a phone has its own top bar) */
.site-head .nav-link, .site-head .head-row > a, .site-head .head-row > .btn { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 960px) {
  .site-head .head-row { gap: var(--space-3); }
  .site-head .main-nav { gap: var(--space-4); margin-left: var(--space-2); }
}
@media (min-width: 761px) and (max-width: 840px) {
  .site-head .head-row { gap: var(--space-2); }
  .site-head .main-nav { gap: var(--space-3); margin-left: var(--space-1); }
}
.theme-menu summary.btn-icon { width: 44px; min-height: 44px; }

/* ---------- hero search: one grid with the header and body ---------- */
.hero { padding: var(--space-7) 0 var(--space-6); }
.hero .wrap > h1 { text-align: center; }
.search { max-width: none; margin: var(--space-6) 0 0; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.search-field { position: relative; }
.search-field > span { font-weight: var(--weight-medium); color: var(--color-text-muted); }
/* every empty default reads the same: muted (Any role, Anywhere, Any date) */
.search-field select:has(option[value=""]:checked) { color: var(--color-text-muted); }
.search-field select option { color: var(--color-text); }
/* the date field matches the Role select: same field, a quiet calendar icon where the chevron is, "Any date" when empty */
.search-date input[type=date] { appearance: none; -webkit-appearance: none; position: relative; padding-right: 1.5rem !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6575' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 0 center !important; background-size: 1rem !important; }
.search-date input[type=date]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; cursor: pointer; }
.search-date input[type=date]::-webkit-inner-spin-button { display: none; }
.search-date:has(input[data-empty]:not(:focus)) input::-webkit-datetime-edit { color: transparent; }
.search-date:has(input[data-empty]:not(:focus))::after { content: attr(data-any); position: absolute; left: var(--space-4); bottom: calc(var(--space-1) + 4px); color: var(--color-text-muted); pointer-events: none; font-size: var(--text-md); line-height: 24px; }
.search .btn-primary { margin-left: var(--space-2); min-width: 9.5rem; }
/* Popular: pills on the same left edge as the search bar */
.popular { max-width: none; margin: var(--space-5) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); line-height: 1.2; }
.popular-label { color: var(--color-band-text); font-weight: var(--weight-semibold); margin-right: var(--space-1); }
.popular-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 var(--space-3); border-radius: var(--radius-full); border: 1px solid rgb(250 247 241 / 0.32); color: var(--color-band-text); text-decoration: none; font-size: var(--text-sm); transition: background var(--duration-fast), border-color var(--duration-fast); }
.popular-chip:hover { background: rgb(250 247 241 / 0.1); border-color: rgb(250 247 241 / 0.6); text-decoration: none; }
.popular-chip[aria-current] { background: var(--color-band-text); color: var(--color-band); border-color: var(--color-band-text); font-weight: var(--weight-semibold); }

/* ---------- results: filters | results | employer card ---------- */
.results-layout { grid-template-columns: 15rem minmax(0, 1fr) 17rem; gap: var(--gutter); padding-top: var(--space-6); }
.results-layout.no-aside { grid-template-columns: 15rem minmax(0, 1fr); max-width: var(--content-max); }
.results-aside { padding-top: 0; position: sticky; top: var(--space-5); }
.filters-col { position: sticky; top: var(--space-5); max-height: calc(100vh - 2 * var(--space-5)); overflow-y: auto; scrollbar-width: thin; }
.filters-form { display: flex; flex-direction: column; gap: var(--space-4); }
.filter-group { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-1); }
.filter-group legend { float: left; width: 100%; padding: 0; margin-bottom: var(--space-2); font-size: var(--text-md); font-weight: var(--weight-semibold); }
.filter-group .choice { min-height: 36px; font-size: var(--text-sm); cursor: pointer; gap: var(--space-3); align-items: flex-start; padding: 6px 0; line-height: 1.45; }
.filter-group .choice input { margin-top: 1px; }
.pay-label { font-size: var(--text-sm); margin-bottom: var(--space-1); }
.filter-group .choice > span:nth-child(2) { flex: 1; }
.choice-n { color: var(--color-text-muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; min-width: 1.5rem; text-align: right; }
.pick-dates { display: none; grid-template-columns: 1fr; gap: var(--space-2); margin-top: var(--space-2); }
.filter-group:has(input[value="dates"]:checked) .pick-dates { display: grid; }
.pick-dates input, .pay-filter input, .pay-filter select { min-height: 40px; font-size: var(--text-sm); }
.pay-filter { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; gap: var(--space-2); }
.filter-group .meta { font-size: var(--text-xs); line-height: var(--lh-xs); margin-top: var(--space-2); }
.filters-actions { display: flex; flex-direction: column; gap: var(--space-2); }
.sheet-head, .sheet-scrim { display: none; }
.filters-btn { display: none; }
.js .filters-actions [data-filters-apply] { display: none; }   /* choices apply as you make them */
.results-bar { align-items: center; margin-bottom: var(--space-3); }
.results-tools { gap: var(--space-3); }
.sort { display: inline-flex; align-items: center; gap: var(--space-2); }
.sort > span { color: var(--color-text-muted); }
.sort select { min-height: 40px; width: auto; font-size: var(--text-sm); font-weight: var(--weight-semibold); padding-left: var(--space3, 0.75rem); background-color: var(--color-surface); }
.tools-rule { width: 1px; height: 1.5rem; background: var(--color-line-strong); }
.results-clear { font-size: var(--text-sm); margin: 0 0 var(--space-3); }
.results-note { margin: 0 0 var(--space-3); }

/* ---------- result cards: one anatomy ---------- */
.job-list { gap: var(--list-gap); }
.job-card { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-5); padding: var(--space-5); align-items: stretch; min-height: 9.25rem; }
.job-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.job-title { font-size: var(--text-lg); line-height: var(--lh-lg); }
.job-co { margin-top: 2px; }
.job-meta { margin-top: var(--space-2); }
.job-side { justify-content: flex-start; min-width: 10rem; gap: var(--space-2); }
.job-side-top { display: flex; align-items: center; gap: var(--space-2); }
.job-pay { font-size: var(--text-lg); line-height: var(--lh-lg); }
.job-ext { margin-top: auto; display: inline-flex; align-items: center; gap: 0.35rem; color: var(--color-accent); font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.job-ext .i { width: 1em; height: 1em; }
.job-card.is-imported .job-meta li:nth-child(2) { color: var(--color-text-muted); }
.chip { background: var(--color-surface-2); max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }
/* the save heart: above the card's stretched link so it gets its own clicks */
.save-form { display: inline-flex; margin: 0; position: relative; z-index: 2; }
.save-btn { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: -8px -8px -8px 0; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--color-text); cursor: pointer; text-decoration: none; }
.save-btn .i { width: 22px; height: 22px; stroke-width: 1.8; }
.save-btn:hover { background: var(--color-surface-2); }
.save-btn[aria-pressed="true"] { color: var(--color-danger); }
.save-btn[aria-pressed="true"] .i { fill: currentColor; }
.save-btn-lg { width: 100%; height: auto; margin: 0; border-radius: var(--radius-md); border: 1.5px solid var(--color-text); min-height: 48px; font-size: var(--text-md); gap: var(--space-2); }
.save-btn-lg .i { width: 20px; height: 20px; }
.save-btn-lg[aria-pressed="true"] { color: var(--color-text); }
.save-btn-lg[aria-pressed="true"] .i { color: var(--color-danger); }
.cta-card { position: static; }
.cta-card .btn-block { margin-top: 0; }

/* ---------- job page ---------- */
.job-page .crumbs { margin-bottom: var(--space-4); }
.job-head-co { gap: var(--space-3); }
.summary { gap: var(--space-3) 0; margin: var(--space-5) 0 0; }
.summary li { padding: 0 var(--space-5); }
.summary-quiet { color: var(--color-text-muted); }
.job-layout { gap: var(--gutter); margin-top: var(--space-6); grid-template-columns: minmax(0, 1fr) 22rem; }
.job-body { gap: var(--gutter); }
.job-body .card, .apply-card { padding: var(--space-5) var(--space-6); }
.job-body .card > h2 + * { margin-top: var(--space-4); }
.job-body .prose { max-width: 70ch; }
.apply-panel { position: sticky; top: var(--space-5); align-self: start; }
.apply-card { gap: var(--space-3); }
.apply-pay { font-size: var(--text-xl); }
.apply-by { margin-top: calc(-1 * var(--space-2)); margin-bottom: var(--space-2); }
.apply-more { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-3); margin-top: var(--space-1); border-top: 1px solid var(--color-line); }
.apply-more form { display: block; }
.apply-more .save-form { display: flex; }
.apply-more .btn { width: 100%; min-height: 44px; }
/* tables inside a card: no box inside the box */
.card .table-wrap { border: 0; border-radius: 0; overflow-x: auto; }
.shifts-table, .flat-table { table-layout: fixed; }
.shifts-table th, .flat-table th { background: transparent; color: var(--color-text-muted); font-weight: var(--weight-semibold); font-size: var(--text-xs); text-transform: none; border-bottom: 1px solid var(--color-line-strong); padding-top: var(--space-2); padding-bottom: var(--space-2); }
.shifts-table th:first-child, .shifts-table td:first-child, .flat-table th:first-child, .flat-table td:first-child { padding-left: 0; }
.shifts-table th:last-child, .shifts-table td:last-child, .flat-table th:last-child, .flat-table td:last-child { padding-right: 0; }
.shifts-table td { padding-top: var(--space-3); padding-bottom: var(--space-3); font-size: var(--text-md); }
.shifts-table col.col-check { width: 2.5rem; }
.shifts-table col.col-date { width: auto; }
.shifts-table col.col-time { width: 34%; }
.shifts-table col.col-places { width: 22%; }
.shifts-table col.col-rate { width: 22%; }
.shifts-table td.col-check, .shifts-table th.col-check { width: 2.5rem; padding-right: 0; }
/* a full shift stays readable and says so in words, not only in colour */
tr.is-full td { color: var(--color-text); }
tr.is-full td:not(.num) { color: var(--color-text-muted); }
.pill-full { background: var(--pill-quiet-bg); color: var(--color-text); border: 1px solid var(--color-line-strong); }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); max-width: 70ch; }
.tick-list li { display: flex; gap: var(--space-3); align-items: flex-start; line-height: 1.6; }
.tick-list .i { color: var(--color-success); margin-top: 0.2em; }
.claim-line { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--color-line); font-size: var(--text-sm); }

/* ---------- footer ---------- */
.site-foot { margin-top: var(--space-6); padding: var(--space-8) 0 var(--space-6); background: var(--color-surface); border-top: 1px solid var(--color-line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.foot-brand .meta { margin-top: var(--space-3); max-width: 22rem; }
.foot-brand .logo { height: 40px; }
.foot-title { font-size: var(--text-sm); line-height: var(--lh-sm); font-weight: var(--weight-semibold); margin-bottom: var(--space-3); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-foot .foot-col a, .site-foot .foot-legal a { color: var(--color-text-muted); text-decoration: none; font-size: var(--text-sm); }
.site-foot .foot-col a:hover, .site-foot .foot-legal a:hover { color: var(--color-text); text-decoration: underline; }
.foot-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--color-line); color: var(--color-text-muted); font-size: var(--text-sm); }
.foot-legal-links { display: flex; gap: var(--space-5); flex-wrap: wrap; }

/* ---------- employer app ---------- */
.side { padding: var(--space-5) var(--space-4); height: 100vh; height: 100dvh; }
.side-brand .logo { height: 42px; }
.side-rule, .side-foot { margin-left: 0; margin-right: 0; }
.side-rule { margin: var(--space-1) 0; }
.side-foot { margin-top: auto; padding-top: var(--space-4); }
.side-link { padding: 0 var(--space-3) 0 var(--space-4); overflow: hidden; }
.side-link[aria-current="page"]::before { left: 6px; top: 12px; bottom: 12px; width: 3px; border-radius: var(--radius-full); }
.side-user { padding: 0 var(--space-2); }
.side-tools { padding: 0; gap: var(--space-1); }
.side-tools .btn-ghost, .side-tools summary.btn-ghost { color: var(--color-side-text); min-height: 44px; }
.side-tools .btn-ghost:hover { background: var(--color-side-active); }
.app-content, .app-content.is-wide { padding: var(--space-6); }
.app-content.is-wide { max-width: calc(80rem + 2 * var(--space-6)); }
.app-content { max-width: calc(64rem + 2 * var(--space-6)); }
.dash-grid { align-items: start; gap: var(--gutter); margin-bottom: var(--gutter); }
.app-content > .panel + .panel, .app-content > .panel-plain, .app-content > .panel-plain + .panel { margin-top: var(--gutter); }
.panel { padding: var(--space-5) var(--space-5); }
.panel h2 .count, .section-title .count { vertical-align: 0.12em; }
.panel-sub { align-items: center; }
.today-shift + .today-shift { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--color-line); }
.today-table col:nth-child(1) { width: 34%; }
.today-table td { padding-top: var(--space-2); padding-bottom: var(--space-2); height: 52px; }
.today-table th.actions, .today-table td.actions { text-align: right; width: 12.5rem; }
.today-table td.actions { white-space: nowrap; }
.today-table td.actions > * + * { margin-left: var(--space-2); }
.status-cell { display: inline-flex; align-items: center; gap: var(--space-3); }
.status-cell .tabular { font-variant-numeric: tabular-nums; }
tr.is-late td { background: color-mix(in srgb, var(--pill-bad-bg) 35%, transparent); }
tr.is-late td:first-child { box-shadow: inset 3px 0 0 var(--color-danger); padding-left: var(--space-3) !important; }
.sent-note { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--color-success); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.sent-note .i { width: 1em; height: 1em; }
.sent-note-quiet { display: block; font-size: var(--text-xs); }
.apps-panel .stat { margin: var(--space-2) 0 var(--space-3); }
.apps-panel .line-list li { min-height: 2.75rem; }
.apps-panel .panel-btn { align-self: flex-start; margin-top: var(--space-4); }
.panel .panel-head-row .row { gap: var(--space-2); }
.sheet-table col.col-num { width: 5.5rem; }
.sheet-table col.col-hours { width: 6.5rem; }
.sheet-table col.col-act { width: 11rem; }
.sheet-table td, .sheet-table th { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.sheet-table td.num, .sheet-table th.num, .today-table .tabular { font-variant-numeric: tabular-nums; text-align: right; }
.sheet-table td.actions { text-align: right; }
.sheet-table td.actions > * + * { margin-left: var(--space-2); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.section-head .section-title { margin: 0; }
.inline-setting { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
.inline-setting select { width: auto; min-height: 36px; font-size: var(--text-sm); }
.field-wide select { max-width: 22rem; }
.company-form .grid-2 { margin-top: var(--space-3); }

/* ---------- worker: today card ---------- */
.today-pills { display: flex; gap: var(--space-2); }
.today-card .btn-xl { min-height: 52px; font-size: var(--text-lg); }
.today-card.is-late::before { background: var(--color-danger); }
.late-note, .early-note { display: flex; gap: var(--space-2); align-items: flex-start; align-self: stretch; margin-top: var(--space-2); font-size: var(--text-sm); line-height: 1.55; }
.late-note { padding: var(--space-3) var(--space-3); border-radius: var(--radius-md); background: var(--pill-bad-bg); color: var(--pill-bad-text); }
.late-note .i, .early-note .i { margin-top: 0.15em; flex: none; }
.early-note { color: var(--color-text-muted); margin-top: var(--space-1); }
.qr-hint { border: 0; padding: 0; margin-top: var(--space-1); color: var(--color-text-muted); font-size: var(--text-sm); gap: var(--space-2); align-items: center; }
.qr-hint .i { width: 1.25em; height: 1.25em; }
.date-block .dow { font-size: var(--text-xs); letter-spacing: 0; color: var(--color-text-muted); }
.date-block span { letter-spacing: 0; }
.saved-page { display: flex; flex-direction: column; gap: var(--space-6); max-width: 56rem; }

/* claim pages */
.claim-summary p + p { margin-top: var(--space-1); }

/* feedback: the edge tab on desktop; on a phone it lives in the top bar instead (never over content) */
.help-tab { min-height: 44px; padding: 0 var(--space-4); font-size: var(--text-sm); display: inline-flex; align-items: center; }
.show-phone { display: none !important; }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .results-layout { grid-template-columns: 14rem minmax(0, 1fr); }
  .results-aside { grid-column: 2; order: 0; position: static; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (min-width: 761px) and (max-width: 1100px) { .job-layout { grid-template-columns: minmax(0, 1fr) 19rem; } }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .show-phone { display: inline-flex !important; }
  .help-tab { display: none !important; }
  :root { --gutter: 1rem; --list-gap: 0.875rem; }
  .logo { height: 36px; }
  .head-row { min-height: 64px; }
  .hero .wrap > h1 { text-align: left; }
  .search { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-4); }
  .search .btn-primary { margin: var(--space-2) 0 var(--space-1); width: 100%; }
  .search-date:has(input[data-empty]:not(:focus))::after { left: var(--space-1); bottom: calc(var(--space-2) + 4px); }
  .popular { gap: var(--space-2); }
  .popular-chip { min-height: 36px; }

  .results-layout, .results-layout.no-aside { grid-template-columns: minmax(0, 1fr); padding-top: var(--space-4); }
  .results-aside { grid-column: auto; order: 3; }
  .results-bar { flex-direction: column; align-items: stretch; }
  .results-tools { justify-content: space-between; flex-wrap: wrap; }
  .tools-rule { display: none; }
  .results-tools > form, .results-tools > a { flex-basis: 100%; }
  .filters-btn { display: inline-flex; min-height: 44px; }
  .sort select { min-height: 44px; }
  /* filters become a bottom sheet */
  .filters-col { position: static; max-height: none; overflow: visible; order: 0; }
  .filter-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; max-height: 85vh; max-height: 85dvh; overflow-y: auto; background: var(--color-canvas); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-panel); padding: 0 var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform var(--duration-base); visibility: hidden; }
  .sheet-open .filter-sheet { transform: none; visibility: visible; }
  .sheet-scrim { display: block; position: fixed; inset: 0; z-index: 74; background: var(--color-scrim); opacity: 0; pointer-events: none; transition: opacity var(--duration-base); }
  .sheet-open .sheet-scrim { opacity: 1; pointer-events: auto; }
  .sheet-open { overflow: hidden; }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; background: var(--color-canvas); padding: var(--space-3) 0; margin-bottom: var(--space-1); border-bottom: 1px solid var(--color-line); }
  .sheet-head h2 { font-size: var(--text-lg); }
  .sheet-head .btn-icon { font-size: var(--text-xl); }
  .filters-actions { position: sticky; bottom: calc(-1 * (var(--space-4) + env(safe-area-inset-bottom))); background: var(--color-canvas); padding: var(--space-3) 0 var(--space-4); }
  .js .filters-actions [data-filters-apply] { display: inline-flex; }
  .filter-group .choice { min-height: 44px; }
  .pick-dates { grid-template-columns: 1fr 1fr; }
  .pick-dates input, .pay-filter input, .pay-filter select { min-height: 44px; font-size: var(--text-md); }

  .job-card { grid-template-columns: minmax(0, 1fr); padding: var(--space-4); min-height: 0; gap: var(--space-3); }
  .job-side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; min-width: 0; gap: var(--space-2) var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--color-line); }
  .job-side-top { order: 0; }
  .job-ext { margin-top: 0; flex-basis: 100%; }
  .save-btn { width: 44px; height: 44px; margin: -10px -10px -10px 0; }
  .job-title { font-size: var(--text-md); }
  .job-title .badge { margin-left: var(--space-1); }

  .job-body .card, .apply-card { padding: var(--space-4); }
  .summary li { padding: 0; }
  .shifts-table col.col-time { width: 36%; }
  .shifts-table col.col-places { width: 26%; }
  .shifts-table td { font-size: var(--text-sm); }

  .site-foot { padding: var(--space-6) 0 var(--space-5); }
  /* phone app (edge to edge) and iPhone home indicator: the last line clears the system navigation bar */
  body:not([data-role]) .site-foot { padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom)); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .foot-legal { margin-top: var(--space-5); flex-direction: column; }

  /* signed-in phone: readable logo + screen title, solid bottom nav that never covers content */
  .app-top { min-height: 60px; gap: var(--space-1); padding: 0 var(--space-3) 0 var(--space-4); }
  .logo-symbol { width: 34px; height: 34px; margin-left: -2px; }
  .app-top-title { font-size: var(--text-lg); margin-left: var(--space-2); }
  .app-top .avatar { margin-left: var(--space-1); }
  .title-in-top .page-head-text > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .title-in-top .page-head-text:not(:has(.page-sub)) { display: contents; }
  .tabbar { background: var(--color-surface); border-top: 1px solid var(--color-line-strong); box-shadow: 0 -4px 16px rgb(19 35 58 / 0.06); padding-bottom: env(safe-area-inset-bottom); }
  .tab { min-height: 60px; padding-top: 6px; color: var(--color-text-muted); }
  .tab[aria-current="page"] { color: var(--color-text); }
  .tab[aria-current="page"]::before { top: 4px; width: 40px; height: 32px; border-radius: var(--radius-full); background: var(--pill-brand-bg); opacity: 0.28; z-index: 0; }
  .tab > * { position: relative; z-index: 1; }
  .tab[aria-current="page"] .i { stroke-width: 2.1; }
  .app-content, .app-content.is-wide { padding: var(--space-4) var(--space-4) calc(60px + var(--space-7) + env(safe-area-inset-bottom)); }
  body[data-role] .site-main { padding-bottom: calc(60px + var(--space-7) + env(safe-area-inset-bottom)); }
  body[data-role] .site-foot { padding-bottom: calc(60px + var(--space-5) + env(safe-area-inset-bottom)); }
  body[data-role] .apply-bar { bottom: calc(60px + env(safe-area-inset-bottom)); }
  /* the sticky Apply bar never covers the footer's last line (EVS-70) */
  body:not([data-role]):has(.apply-bar) .site-foot { padding-bottom: calc(88px + var(--space-5) + env(safe-area-inset-bottom)); }
  body[data-role]:has(.apply-bar) .site-foot { padding-bottom: calc(60px + 88px + var(--space-5) + env(safe-area-inset-bottom)); }
  .today-card .btn-xl { min-height: 52px; }
  .today-table td.actions { width: auto; }
  .stack-table tr.is-late td:first-child { box-shadow: none; padding-left: 0 !important; }
  .stack-table tr.is-late { box-shadow: inset 3px 0 0 var(--color-danger); background: color-mix(in srgb, var(--pill-bad-bg) 35%, transparent); }
  .stack-table tr.is-late td { background: transparent; }
  .flat-table.stack-table tr { padding-left: 0; padding-right: 0; }
  .flat-table.stack-table tr.is-late { padding-left: var(--space-3); padding-right: var(--space-3); }
  .stack-table td.actions { justify-content: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- QA round 2 ---------- */
.summary li { white-space: nowrap; max-width: none; }
.summary li:last-child { padding-right: 0; }
.apply-more { padding-top: var(--space-4); margin-top: var(--space-2); gap: var(--space-3); }
.apply-more .btn, .apply-more .save-btn-lg { font-size: var(--text-md); min-height: 48px; }
.pill-full { background: transparent; border: 0; padding: 0; color: var(--color-text); font-size: var(--text-md); font-weight: var(--weight-semibold); height: auto; }
.pill-full::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.4rem; border-radius: var(--radius-full); background: var(--color-text-muted); vertical-align: 0.1em; }
.shifts-table col.col-date { width: 40%; }
.shifts-table col.col-time { width: 30%; }
.shifts-table col.col-places { width: auto; }
.shifts-table th { font-size: var(--text-sm); }
.shifts-table td.tabular, .tabular { font-variant-numeric: tabular-nums; }
.employer-about { align-items: center; }
.employer-about > div { padding-left: 0; border-left: 0; }
.foot-grid { align-items: start; }
.foot-brand .brand { display: inline-flex; margin-top: -6px; }
@media (max-width: 760px) {
  .summary li { white-space: normal; }
  .shifts-table col.col-date { width: auto; }
  .shifts-table col.col-time { width: 34%; }
  .shifts-table col.col-places { width: 28%; }
  .pill-full { font-size: var(--text-sm); }
}

.search-date:not([data-any="Any dates"]):has(input[data-empty]:not(:focus))::after { color: var(--color-text); }
@media (min-width: 1181px) { .results-layout { grid-template-columns: 16rem minmax(0, 1fr) 17rem; } .results-layout.no-aside { grid-template-columns: 16rem minmax(0, 1fr); } }
.filter-group .meta { font-size: 0.8125rem; line-height: 1.45; }
.filters-clear { align-self: flex-start; font-size: var(--text-sm); }
.js .filters-actions:not(:has(.filters-clear)) { display: none; }
p, .cta-card p { text-wrap: pretty; }
@media (min-width: 761px) { .js .filters-actions .filters-clear { display: none; } .js .filters-actions { display: none; } }
@media (max-width: 760px) { .filters-actions { flex-direction: row-reverse; align-items: center; gap: var(--space-4); } .filters-actions .btn-block { flex: 1; } .filters-clear { align-self: center; } }

/* ---------- QA round 3 ---------- */
tr.is-late td { background: transparent; }
tr.is-late td:first-child { box-shadow: none; padding-left: 0 !important; }
.sheet-table col.col-name { width: 11rem; }
.sheet-table .shift-cell > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-top .btn-icon .i, .app-top summary .i, .head-row .btn-icon .i { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .logo-symbol { width: 46px; height: 46px; margin: 0 -6px 0 -10px; }
  .app-top-title { margin-left: var(--space-1); }
  .stack-table tr.is-late, .stack-table tr.is-late td { background: transparent; box-shadow: none; }
  .flat-table.stack-table tr.is-late { padding-left: 0; padding-right: 0; }
  .stack-table td.actions:empty { display: none; }
  .today-table tr { padding-top: var(--space-2); padding-bottom: var(--space-2); }
  .today-table td.lead-cell { padding-bottom: 0; }
  /* timesheets on a phone: name and shift, then In / Out / Break / Hours in one row, then the actions */
  .sheet-table tr { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-2); row-gap: 2px; }
  .sheet-table td.lead-cell, .sheet-table td.shift-cell, .sheet-table td.actions { grid-column: 1 / -1; }
  .sheet-table td.shift-cell::before { display: none; }
  .sheet-table td.shift-cell > span { text-align: left !important; color: var(--color-text-muted); font-size: var(--text-sm); }
  .sheet-table td.num { flex-direction: column; align-items: flex-start; gap: 0; padding-top: var(--space-2); font-variant-numeric: tabular-nums; }
  .sheet-table td.num::before { font-size: var(--text-xs); }
  .sheet-table td.actions { padding-top: var(--space-3); gap: var(--space-2); }
  .sheet-table td.actions .btn { min-height: 44px; }
  .sheet-table td.actions .btn:first-child, .sheet-table td.actions form:first-child { flex: 1; }
  .sheet-table td.actions form:first-child .btn { width: 100%; }
  .panel-head-row .row .btn-ghost { padding-left: 0; }
}
@media (max-width: 760px) {
  .app-top-brand, .logo-symbol { flex: none; }
  /* today's shifts on a phone: name and status on one line, the reminder under them */
  .today-table tr { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-3); }
  .today-table td { padding: 0 !important; height: auto; }
  .today-table td[data-label]::before { display: none; }
  .today-table td.actions { grid-column: 1 / -1; padding-top: var(--space-2) !important; }
  .today-table .status-cell { gap: var(--space-2); }
  .today-table tr.is-late .status-cell .meta { display: none; }
  .sheet-table tr { row-gap: 0; }
  .sheet-table td.actions .btn-ghost { flex: none; }
}
@media (max-width: 760px) { .app-top-brand { display: inline-flex; min-width: 36px; } .logo-symbol { max-width: none; } }

/* ---------- QA round 4 ---------- */
@media (max-width: 760px) {
  .job-layout { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-4); }
  .apply-panel { position: static; order: 2; }
  .employer-about { align-items: flex-start; }
  .job-side-top { flex-basis: 100%; justify-content: space-between; }
  .filters-actions { border-top: 1px solid var(--color-line); box-shadow: 0 -8px 16px rgb(19 35 58 / 0.06); margin: 0 calc(-1 * var(--space-4)); padding-left: var(--space-4); padding-right: var(--space-4); }
}
.saved-page { max-width: none; }
.stat-row { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.auth { gap: var(--space-4); }
.auth .field small.meta { font-size: var(--text-sm); line-height: var(--lh-sm); }
.claim-page textarea { min-height: 5.5rem; }

/* ---------- QA round 5 ---------- */
:root[data-theme="dark"] .search-date input[type=date] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9D0DA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .search-date input[type=date] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9D0DA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") !important; } }
.filter-group input[type=checkbox], .filter-group input[type=radio], .shifts-table input[type=checkbox] { accent-color: var(--color-primary); }
.pill-full { display: inline-flex; align-items: center; height: 1.5rem; padding: 0 var(--space-2); border-radius: var(--radius-sm); background: var(--pill-quiet-bg); border: 1px solid var(--color-line-strong); color: var(--color-text); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.pill-full::before { content: none; }
.apply-more { gap: var(--space-3); }
@media (max-width: 760px) { .pill-full { font-size: var(--text-xs); height: 1.375rem; } }
.clock-window { padding-top: var(--space-4); border-top: 1px solid var(--color-line); }
.clock-window select { max-width: 22rem; }
.search-date input[type=date] { background-size: 1.125rem !important; }

/* ---------- production QA (5 Nov 2026) ---------- */
/* the fixed Feedback tab (44px, right edge) must not sit on top of cards: keep a clear lane for it on desktop */
@media (min-width: 761px) { body[data-role] .app-content, body[data-role] .app-content.is-wide { padding-right: calc(var(--space-6) + 44px); } }
/* status filters (Admin > Errors) are left out of the global link colour above, which made the selected one teal on
   navy (2.6:1) */
/* a scroll box must contain its absolutely positioned children (the sr-only header text): without this the
   hidden "Pause or resume" label sat 900px to the right and a phone zoomed the whole page out to fit it */
.table-wrap { position: relative; }
.imports-table td.num, .imports-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.imports-table td:first-child { min-width: 16rem; }
.imports-table .meta { overflow-wrap: anywhere; }

/* Jobs near you (geo): the line saying whose area the list is for, distances on cards, the "Further away" list */
.near-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-3); font-size: var(--text-sm); line-height: var(--lh-sm); }
.near-bar > .i { flex: none; color: var(--color-text); opacity: 0.8; }
.near-bar a { font-weight: var(--weight-semibold); }
.near-links { display: inline-flex; align-items: center; gap: var(--space-3); white-space: nowrap; }
.near-bar .tools-rule { display: inline-block; width: 1px; height: 1em; background: var(--color-line-strong); }
.job-dist { color: var(--color-text-muted); white-space: nowrap; }
.further { margin-top: var(--space-6); }
.further > .meta { margin: calc(-1 * var(--space-2)) 0 var(--space-3); }
.country-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.country-links li { font-size: var(--text-sm); }
.near-none { display: grid; gap: var(--space-3); }
.near-none p { margin: 0; }

/* Landing pages (/jobs/<place>, /jobs/role/<role>) have no filter column: results + aside only. Without this they took
   the job list's three-column grid and squeezed the jobs into the 16rem filter track (seen in visual QA, 7 Nov 2026). */
.results-layout.landing-layout { grid-template-columns: minmax(0, 1fr) 17rem; }
.landing-layout .results-aside { grid-column: auto; }
@media (max-width: 1180px) { .results-layout.landing-layout { grid-template-columns: minmax(0, 1fr) 15rem; } }
@media (max-width: 760px) { .results-layout.landing-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- phone app (assets/native.js; only loaded inside the installed app) ---------- */
.native-scan[hidden] { display: none; }
.native-scan { margin-top: var(--space-2); gap: var(--space-2); }
.native-scan .i { width: 1.25em; height: 1.25em; }
.native-scanner { position: fixed; inset: 0; z-index: 1000; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: calc(env(safe-area-inset-top) + var(--space-4)) var(--space-4) calc(env(safe-area-inset-bottom) + var(--space-6)); }
.native-scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.native-scanner-frame { position: absolute; left: 50%; top: 42%; width: min(70vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 3px solid #F2A71B; border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(19, 35, 58, .55); }
.native-scanner-text { position: relative; color: #FAF7F1; text-align: center; font-weight: 600; margin: 0 0 var(--space-4); max-width: 28rem; }
.native-scanner-close { position: relative; min-width: 10rem; background: #FAF7F1; color: #13233A; border-color: #FAF7F1; }
.native-scanner-text { text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.native-toast { position: fixed; left: var(--space-4); right: var(--space-4); bottom: calc(env(safe-area-inset-bottom) + 88px); z-index: 1001;
  background: #13233A; color: #FAF7F1; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
form[data-native-camera="copy"] { display: inline-block; }
/* Phone app (Android draws the page edge to edge, under the status bar): the top bars keep clear of it.
   env(safe-area-inset-top) is 0 in a browser tab, so the website is unchanged. */
.site-head, .app-top { padding-top: env(safe-area-inset-top); }
/* ...and nothing scrolls under the status bar: a strip the colour of the top bar sits behind it */
body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: var(--color-surface); z-index: 90; pointer-events: none; }
/* the job page's Apply bar sits on the tab bar, which already keeps clear of the gesture bar */
body[data-role] .apply-bar { padding-bottom: var(--space-3); }

/* aiseo.css */
/* AI-search readiness (feat/aiseo): the "How did you find us?" card and the data guides. Uses the design tokens only. */
.fu { margin-bottom: var(--card-gap); display: flex; flex-direction: column; gap: var(--space-3); border-left: 4px solid var(--color-accent); }
.fu { gap: var(--space-2); }
.fu-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.fu-title { font-size: var(--text-base); margin: 0; }
.fu-lead { margin: 0; }
.fu-x { flex: none; font-weight: 500; color: var(--color-text-muted, inherit); }
.fu-after { display: flex; flex-direction: column; gap: var(--space-2); }
.fu-after[hidden] { display: none; }
.fu textarea { resize: vertical; }
.fu-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.fu-chip { border: 1px solid var(--color-line); background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-full); padding: var(--space-1) var(--space-3); font: inherit; font-size: var(--text-sm); cursor: pointer; min-height: 36px; letter-spacing: normal; word-spacing: 0.08em; }
.fu-chip:hover { border-color: var(--color-accent); }
.fu-chip[aria-checked="true"] { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-accent-text); }
.fu-chips-small .fu-chip { min-height: 36px; padding: var(--space-1) var(--space-3); }
.fu-more { display: flex; flex-direction: column; gap: var(--space-2); }
.fu-more[hidden] { display: none; }
.fu-label { margin: 0; font-weight: 600; font-size: var(--text-sm); }
.fu-actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.fu-status { margin: 0; }
.fu .field { margin: 0; }

.guide .guide-dates { margin-top: var(--space-2); }
.guide-sec { margin: var(--space-6) 0; }
.guide-sec > p, .guide-prose p, .guide-prose li { max-width: 72ch; }
.guide-table td strong { font-variant-numeric: tabular-nums; }
.guide-table td { font-variant-numeric: tabular-nums; }
.guide-list { padding-left: 1.25rem; display: flex; flex-direction: column; gap: var(--space-2); max-width: 72ch; }
.guide-list .src, .guide-step .src { font-size: var(--text-sm); white-space: normal; }
.guide-method { margin: var(--space-6) 0; }
.guide-method p { max-width: 72ch; }
.guide-steps { list-style: none; padding: 0; margin: var(--space-5) 0; display: flex; flex-direction: column; gap: var(--card-gap); }
.guide-step h2 { font-size: var(--text-lg); display: flex; align-items: center; gap: var(--space-2); margin-top: 0; }
.step-n { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-accent-text); font-size: var(--text-sm); flex: none; }
.guide-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--card-gap); margin: var(--space-5) 0; }
.guide-cards h2 { font-size: var(--text-lg); margin-top: 0; }
.guide-cta { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: baseline; margin: var(--space-5) 0; }

.guide-table { table-layout: fixed; width: 100%; }
.guide-sec .table-wrap { max-width: 920px; }
.guide-table .gc-label { width: 40%; } .guide-table .gc-num { width: 18%; } .guide-table .gc-range { width: 28%; } .guide-table .gc-n { width: 14%; }
.guide-table .num { text-align: right; }
.guide-sec > p { margin: 0 0 var(--space-3); }
.guide-sec .table-wrap { margin-bottom: var(--space-4); }
.guide-sec .mini-title { margin: var(--space-5) 0 var(--space-2); font-size: var(--text-lg); }
.guide-sec + .guide-sec { border-top: 1px solid var(--color-line); padding-top: var(--space-6); }
.nowrap-link { white-space: nowrap; }
@media (max-width: 640px) {
  .guide-table { table-layout: auto; }
  .guide-table .num { text-align: left; }
}
.fu-chip[aria-checked="true"]::before { content: "\2713\00a0"; }
.fu-chip { border-color: var(--color-text-muted); }
.guide-cta-row { margin-top: var(--space-5); }
.src { font-size: var(--text-sm); color: var(--color-text-muted); }
.src a { color: inherit; }
.guide-method p + p { margin-top: var(--space-3); }

/* team.css */
/* Your people and the schedule (team lane). Cell colours follow the status pills: text is always there too. */
.tag-row { display: inline-flex; flex-wrap: wrap; gap: var(--space-1); margin-top: 2px; }
.chip-tag { background: var(--pill-warn-bg); color: var(--pill-warn-text); font-weight: var(--weight-semibold); max-width: 14rem; }
.person-pills { margin-top: var(--space-1); gap: var(--space-1); }
.people-table tr.is-inactive .strong-link, .sched tr.is-inactive .sched-name a { color: var(--color-text-muted); }
.rate-set { border: 0; padding: 0; margin: 0; }
.rate-set legend { font-size: var(--text-sm); font-weight: var(--weight-medium); margin-bottom: var(--space-1); padding: 0; }
.bullets { margin: var(--space-2) 0 0; padding-left: 1.25rem; }
.bullets li + li { margin-top: var(--space-1); }

.sched-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); margin-bottom: var(--card-gap); }
.sched-filter .field { min-width: 10rem; }
.sched-filter .field:first-child { flex: 1 1 18rem; }
.sched-form { margin-bottom: var(--card-gap); }
.sched-wrap { display: flex; flex-direction: column; }
.sched-scroll { max-height: calc(100vh - 12rem); min-height: 16rem; overflow: auto; background: var(--color-surface); }
.sched { border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); min-width: 100%; }
.sched th, .sched td { border-bottom: 1px solid var(--color-line); border-right: 1px solid var(--color-line); padding: 0; background: var(--color-surface); }
.sched thead { position: sticky; top: 0; z-index: 3; }
.sched thead th { background: var(--color-surface-2); font-weight: var(--weight-semibold); text-align: center; padding: var(--space-1) var(--space-2); white-space: nowrap; }
.sched .sched-event { text-align: left; vertical-align: bottom; border-bottom: 1px solid var(--color-line-strong); white-space: normal; line-height: 1.3; padding-top: var(--space-2); }
.sched .sched-event a { color: var(--color-text); }
.sched .sched-event > * { position: sticky; left: calc(14rem + var(--space-2)); display: inline-block; max-width: 22rem; }
.sched .sched-corner { position: sticky; left: 0; z-index: 4; text-align: left; width: 14rem; min-width: 14rem; max-width: 14rem; }
.sched-name { position: sticky; left: 0; z-index: 1; text-align: left; font-weight: var(--weight-semibold); padding: var(--space-2) var(--space-3) !important; width: 14rem; min-width: 14rem; max-width: 14rem; white-space: normal; box-shadow: 1px 0 0 var(--color-line-strong); }
.sched-name a { color: var(--color-text); }
.sched-name .meta { font-weight: var(--weight-regular); font-size: var(--text-xs); }
.sched-daybtn { font: inherit; font-weight: var(--weight-semibold); background: none; border: 0; padding: var(--space-1); color: var(--color-text); cursor: pointer; border-radius: var(--radius-sm); white-space: nowrap; text-decoration: underline dotted; text-underline-offset: 3px; }
.sched-daybtn:hover { background: var(--color-surface); }
.sched td.cell { min-width: 6.25rem; }
.sched td.cell label { display: flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; padding: 0 var(--space-2); cursor: pointer; font-size: var(--text-xs); font-weight: var(--weight-semibold); }
.sched td.cell input { width: 1rem; height: 1rem; flex: none; }
.sched td.cell sup { font-size: 0.7em; }
.s-confirmed, .sched td.s-confirmed { background: var(--pill-good-bg); color: var(--pill-good-text); }
.s-available, .sched td.s-available { background: var(--pill-wait-bg); color: var(--pill-wait-text); }
.s-asked, .sched td.s-asked { background: var(--pill-warn-bg); color: var(--pill-warn-text); }
.s-unavailable, .sched td.s-unavailable { background: var(--pill-bad-bg); color: var(--pill-bad-text); }
.s-declined, .sched td.s-declined { background: var(--pill-quiet-bg); color: var(--pill-quiet-text); }
.sched td.cell:has(input:checked) { outline: 3px solid var(--color-text); outline-offset: -3px; }
.sched .sched-tot { padding: var(--space-2) var(--space-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sched tfoot th, .sched tfoot td { position: sticky; bottom: 0; background: var(--color-surface-2); padding: var(--space-2) var(--space-3); font-weight: var(--weight-semibold); z-index: 2; }
.sched tfoot th { left: 0; z-index: 3; text-align: left; }
.sched tfoot td:not(.sched-tot) { text-align: center; }
.sched tfoot td.is-short { color: var(--color-warning); }
.sched tfoot td.is-over { color: var(--color-danger); }
.sched tr.sched-sep th { position: sticky; left: 0; text-align: left; background: var(--color-surface-2); padding: var(--space-2) var(--space-3); font-weight: var(--weight-semibold); color: var(--color-text-muted); }
.sched-key { margin: var(--space-2) 0 0; }
/* desktop: the actions sit above the grid; phone: they follow the day list and stay in reach (sticky) */
.sched-bar { order: -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--color-surface); border: 1px solid var(--color-line-strong); border-radius: var(--radius-md); }
.cell-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: var(--space-3); margin: var(--space-3) 0; }
.cell-counts div { display: flex; flex-direction: column-reverse; gap: 2px; padding: var(--space-2) var(--space-3); background: var(--color-surface-2); border-radius: var(--radius-md); }
.cell-counts dt { font-size: var(--text-sm); color: var(--color-text-muted); }
.cell-counts dd { margin: 0; font-size: var(--text-xl); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.sched-count { font-weight: var(--weight-semibold); margin-right: auto; font-size: var(--text-sm); }
.sched-days-list { display: none; }
.add-days > summary { list-style: none; }
.add-days[open] > summary { margin-bottom: var(--space-4); }
.cal-buttons { margin-top: var(--space-3); }
.cal-buttons .btn .i { width: 18px; height: 18px; }
.cal-more { margin-top: var(--space-3); }
.cal-more summary { cursor: pointer; font-size: var(--text-sm); font-weight: var(--weight-medium); }
.cal-more .copy { display: block; margin: var(--space-2) 0; overflow-wrap: anywhere; font-size: var(--text-xs); }
.cal-more form { margin-top: var(--space-2); }

.offers { border-left: 4px solid var(--color-accent); margin-bottom: var(--card-gap); }
.offer-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; }
.offer-row { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--color-line); }
.offer-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.5; }
.offer-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.shift-ics { font-size: var(--text-sm); font-weight: var(--weight-medium); align-self: flex-start; min-height: 32px; display: inline-flex; align-items: center; }
.shifts-page .list > .row-card { min-width: 0; }

@media (max-width: 760px) {
  .sched-scroll, .sched-key { display: none; }
  .sched-days-list { display: grid; gap: var(--space-3); }
  .pday { padding: 0; }
  .pday > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); cursor: pointer; list-style: none; min-height: 3.5rem; }
  .pday > summary::-webkit-details-marker { display: none; }
  .pday-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
  .pday-list { list-style: none; margin: 0; padding: 0 var(--space-4) var(--space-2); }
  .pday-row { display: flex; align-items: center; gap: var(--space-3); min-height: 3rem; padding: var(--space-2) 0; border-top: 1px solid var(--color-line); cursor: pointer; }
  .pday-row input { width: 1.25rem; height: 1.25rem; flex: none; }
  .pday-name { flex: 1; min-width: 0; font-weight: var(--weight-medium); }
  .pday-row:has(input:checked) { background: var(--color-surface-2); margin: 0 calc(-1 * var(--space-4)); padding-left: var(--space-4); padding-right: var(--space-4); }
  .pday-row.is-inactive .pday-name { color: var(--color-text-muted); }
  .sched-bar { order: 0; position: sticky; z-index: 5; margin: var(--space-3) 0 0; box-shadow: var(--shadow-sticky); bottom: calc(60px + env(safe-area-inset-bottom)); border-radius: var(--radius-md) var(--radius-md) 0 0; margin-left: calc(-1 * var(--space-2)); margin-right: calc(-1 * var(--space-2)); padding: var(--space-2) var(--space-3); }
  .sched-bar .btn { flex: 1 1 auto; min-height: 44px; padding: 0 var(--space-3); }
  .sched-count { flex-basis: 100%; }
  .sched-filter .field { min-width: 0; flex: 1 1 100%; }
  .offer-row { flex-wrap: wrap; }
  .offer-actions { flex-basis: 100%; }
  .offer-actions .btn { flex: 1; }
}

/* chat.css */
/* Messages, notifications and team (feat/chat). Tokens only (tokens.css). Desktop: conversations | thread | about;
   phone: the list or the thread, full width, with the thread header and the reply box kept in view. */
.chat-layout { display: grid; grid-template-columns: 19rem minmax(0, 1fr) 14rem; gap: var(--card-gap); align-items: start; }
.chat-layout-list { grid-template-columns: 19rem minmax(0, 1fr); align-items: stretch; }
.chat-layout-list > .inbox-pane, .chat-layout-list > .thread-pane { height: calc(100vh - 11rem); max-height: none; }
/* the thread page has no page title: the conversation uses the whole height */
.chat-layout:not(.chat-layout-list) > .inbox-pane, .chat-layout:not(.chat-layout-list) > .thread-pane { height: calc(100vh - 4rem); max-height: none; }
/* whole rows and chips are links: no link underline or link colour inside them */
a.inbox-row, a.inbox-row *, a.chip, a.notify-row, a.notify-row *, a.menu-item, a.msg-att-file { text-decoration: none !important; }
a.inbox-row, a.inbox-row .inbox-name, a.chip, a.notify-row, a.notify-row strong, a.menu-item, a.msg-att-file { color: var(--color-text) !important; }
a.chip.is-on { color: var(--color-surface) !important; }
a.inbox-row .inbox-job, a.inbox-row .inbox-last, a.inbox-row .inbox-time, a.notify-row .meta { color: var(--color-text-muted) !important; }
a.inbox-row.is-unread .inbox-last { color: var(--color-text) !important; }
.inbox-side { display: grid; justify-items: end; gap: var(--space-1); }
.mini-avatar { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: var(--radius-full); background: var(--color-surface-2); border: 1px solid var(--color-line-strong); color: var(--color-text); font-size: 0.65rem; font-weight: var(--weight-semibold); }
.mini-avatar.is-me { background: var(--pill-brand-bg); color: var(--pill-brand-text); border-color: transparent; }
.inbox-pane, .thread-pane, .thread-side { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-lg); }
.inbox-pane { display: flex; flex-direction: column; max-height: calc(100vh - 11rem); min-height: 24rem; overflow: hidden; }
.inbox-filters { padding: var(--space-3); border-bottom: 1px solid var(--color-line); display: grid; gap: var(--space-2); }
.inbox-filters select { width: 100%; }
.inbox-filters .chips { flex-wrap: nowrap; }
.inbox-filters .chip { text-decoration: none; padding: var(--space-1) var(--space-3); min-height: 32px; display: inline-flex; align-items: center; max-width: none; }
.chip.is-on { background: var(--color-text); color: var(--color-surface); font-weight: var(--weight-semibold); }
.inbox-list { list-style: none; margin: 0; padding: 0 0 var(--space-2); overflow-y: auto; }
.inbox-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: start; min-height: 4.75rem; padding: var(--space-3) var(--space-4); color: var(--color-text); text-decoration: none; border-bottom: 1px solid var(--color-line); }
.inbox-row:hover { background: var(--color-surface-2); text-decoration: none; }
.inbox-row[aria-current="page"] { background: var(--color-surface-2); box-shadow: inset 4px 0 0 var(--color-primary); }
.inbox-text { display: grid; gap: 1px; min-width: 0; }
.inbox-top { display: flex; justify-content: space-between; gap: var(--space-2); }
.inbox-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--weight-semibold); }
.inbox-time { font-size: var(--text-xs); color: var(--color-text-muted); white-space: nowrap; }
.inbox-job, .inbox-last { font-size: var(--text-sm); color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-row.is-unread .inbox-last { color: var(--color-text); font-weight: var(--weight-semibold); }
.inbox-assigned { color: var(--color-text); }
.inbox-empty { padding: var(--space-4); }
.badge-count, .nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.35rem; border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-accent-text); font-size: var(--text-xs); font-weight: var(--weight-semibold); line-height: 1; }
.badge-count { margin-top: 0; }
.nav-badge[hidden] { display: none; }
.side-link .nav-badge { margin-left: auto; }
.tab .nav-badge { position: absolute; top: 4px; left: calc(50% + 6px); z-index: 2; }
.top-bell { position: relative; }
.top-bell[aria-current="page"] { background: var(--color-surface-2); }
.top-bell .nav-badge { position: absolute; top: 4px; right: 2px; min-width: 1.1rem; height: 1.1rem; font-size: 0.65rem; }

.thread-pane { display: flex; flex-direction: column; height: calc(100vh - 11rem); min-height: 28rem; overflow: hidden; }
.thread-pane-empty { justify-content: center; }
.thread-head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-line); background: var(--color-surface); }
.thread-title { min-width: 0; flex: 1; }
.thread-title .meta > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.thread-title h1 { font-size: var(--text-lg); line-height: var(--lh-lg); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-title .meta { display: flex; gap: var(--space-2); align-items: center; flex-wrap: nowrap; margin: 0; }
.assign-form { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
.assign-form label { color: var(--color-text-muted); white-space: nowrap; font-size: var(--text-xs); }
.assign-form { flex: none; }
.assign-form select { max-width: 13rem; }
.assign-form select { max-width: 11rem; min-height: 36px; font-size: var(--text-sm); }
.thread-scroll { flex: 1; overflow-y: auto; padding: var(--space-5) var(--space-4) var(--space-4); background: var(--color-canvas); }
.thread-more { text-align: center; font-size: var(--text-sm); margin: 0 0 var(--space-3); }
.thread-none { text-align: center; }
.chat-thread { gap: var(--space-3); margin: 0; }
.chat-thread .msg { max-width: min(36rem, 82%); padding: var(--space-2) var(--space-3); border: 1px solid var(--color-line); background: var(--color-surface); border-radius: var(--radius-lg); border-bottom-left-radius: var(--radius-sm); }
.chat-thread .msg-out { background: color-mix(in srgb, var(--color-primary) 16%, var(--color-surface)); border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-surface)); border-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-sm); }
.msg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-2); font-size: var(--text-xs); color: var(--color-text-muted); }
.msg-head strong { color: var(--color-text); font-weight: var(--weight-semibold); }
.chat-thread .msg-out .msg-head, .chat-thread .msg-out .msg-del { display: none; margin: 0; }
.msg-out:hover .msg-del, .msg-out:focus-within .msg-del { display: block; text-align: right; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: var(--text-xs); color: var(--color-text-muted); text-decoration: underline; cursor: pointer; }
.msg-seen { color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.msg-time { margin-left: auto; white-space: nowrap; }
.msg-tag { flex-basis: 100%; order: 3; font-weight: var(--weight-semibold); color: var(--color-text); }
.hidden-contact { display: inline; padding: 1px var(--space-2); vertical-align: baseline; border-radius: var(--radius-full); background: var(--color-surface-2); border: 1px dashed var(--color-line-strong); color: var(--color-text); font-size: var(--text-xs); font-style: italic; line-height: 1.3; white-space: nowrap; }
.chat-thread .day-sep { align-self: center; list-style: none; font-size: var(--text-xs); color: var(--color-text-muted); font-weight: var(--weight-semibold); padding: var(--space-1) var(--space-3); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-full); }
.chat-thread .msg-body { margin: var(--space-1) 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.msg-att { display: block; margin-top: var(--space-2); }
.msg-att-img img { display: block; max-width: 100%; max-height: 16rem; border-radius: var(--radius-md); border: 1px solid var(--color-line); }
.msg-att-file { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border: 1px solid var(--color-line-strong); border-radius: var(--radius-md); background: var(--color-surface); font-size: var(--text-sm); }
.msg-att-file .i { width: 18px; height: 18px; }
.msg-del { display: none; margin: 0; }
.msg-out:hover .msg-del, .msg-out:focus-within .msg-del { display: block; text-align: right; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: var(--text-xs); color: var(--color-text-muted); text-decoration: underline; cursor: pointer; }
.msg-seen { display: block; text-align: right; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.mask-note { display: flex; gap: var(--space-2); align-items: flex-start; margin: var(--space-2) 0 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--color-surface); border: 1px dashed var(--color-line-strong); font-size: var(--text-xs); line-height: var(--lh-xs); color: var(--color-text); }
.mask-note .i { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--color-text-muted); }
.mask-note[hidden] { display: none; }
.composer .mask-note, form[data-mask-check] .mask-note { background: var(--pill-wait-bg); color: var(--pill-wait-text); border: 0; font-size: var(--text-sm); line-height: var(--lh-sm); order: -1; }
.composer .mask-note .i, form[data-mask-check] .mask-note .i { color: currentColor; margin-top: 4px; }
.msg-shift { margin-top: var(--space-2); padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-line); }
.msg-shift-title { display: flex; gap: var(--space-2); align-items: center; margin: 0; }
.msg-shift-title .i { width: 18px; height: 18px; }
.msg-shift .meta { margin: var(--space-1) 0 0; }
.msg-shift-ask { margin: var(--space-2) 0 0; font-size: var(--text-sm); }
.msg-shift-actions { margin-top: var(--space-2); gap: var(--space-2); }
.side-shifts .pill { justify-self: start; margin-top: 2px; }
.msg-shift-state { margin: var(--space-2) 0 0; }
.msg-shift-state:empty { display: none; }
.thread-alert { margin: 0; border-radius: 0; border-left-width: 4px; border-right: 0; }

.composer { border-top: 1px solid var(--color-line); padding: var(--space-3) var(--space-4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); background: var(--color-surface); position: relative; }
.composer textarea { width: 100%; box-sizing: border-box; resize: none; min-height: 3.25rem; max-height: 12rem; }
.composer-row { display: flex; align-items: center; gap: var(--space-2); }
.composer .spacer { flex: 1; }
.attach-btn { position: relative; overflow: hidden; cursor: pointer; }
.attach-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.attach-btn .i { width: 18px; height: 18px; }
.attach-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 12rem; }
.quick-replies { position: relative; justify-self: start; }
.quick-replies .menu { left: 0; right: auto; top: auto; bottom: calc(100% + 4px); min-width: 16rem; max-height: 18rem; overflow-y: auto; }
.quick-replies .menu-item { white-space: normal; text-decoration: none; color: var(--color-text); }

.thread-side { padding: var(--space-4); }
.thread-side-sum { display: none; }
.thread-side-body { display: grid; gap: var(--space-3); }
.thread-side .mini-title { margin: 0; }
.side-shifts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.side-shifts li { display: grid; gap: 2px; padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-line); }
.side-shifts li:last-child { border-bottom: 0; }
.side-safe { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0; }
.side-safe .i { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--color-success); }

/* team page */
.team-list li { gap: var(--space-3); }
.person-text { display: grid; min-width: 0; }
.person-text .meta { overflow: hidden; text-overflow: ellipsis; }
.team-actions { gap: var(--space-2); flex-wrap: nowrap; align-items: center; }
.team-actions .inline-setting { display: flex; gap: var(--space-2); align-items: center; }
.team-actions select, .team-actions .btn-sm { min-height: 36px; }
.team-list + .role-key { border-top: 0; padding-top: var(--space-1); margin-top: var(--space-3); }
.more-menu { position: relative; }
.more-menu summary { list-style: none; }
.more-menu summary::-webkit-details-marker { display: none; }
.more-menu .menu { min-width: 12rem; }
.more-menu form { margin: 0; display: grid; }
.menu-danger { color: var(--color-danger); }
.role-key { display: grid; gap: var(--space-2); margin: var(--space-4) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--color-line); font-size: var(--text-sm); }
.role-key div { display: grid; grid-template-columns: 6rem 1fr; gap: var(--space-3); }
.role-key dt { font-weight: var(--weight-semibold); }
.role-key dd { margin: 0; color: var(--color-text-muted); }
.invite-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; }
.activity-list li { font-size: var(--text-sm); }
.seg-wrap { flex-wrap: wrap; }
.broadcast-list li { display: block; }
.broadcast-list li > span { white-space: pre-line; }
.qr-list li > span { min-width: 0; }
.qr-list .meta.block { white-space: pre-line; }

/* notifications */
.notify-chips { margin-bottom: var(--space-3); }
.notify-chips .chip { text-decoration: none; padding: var(--space-1) var(--space-3); min-height: 32px; display: inline-flex; align-items: center; }
.notify-list { display: grid; gap: var(--space-2); }
.notify-row { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--color-text); text-decoration: none; padding: var(--space-3) var(--space-4); }
.notify-row:hover { text-decoration: none; border-color: var(--color-line-strong); }
.notify-row.is-unread { box-shadow: inset 4px 0 0 var(--color-primary); }
.notify-row.is-unread strong { font-weight: var(--weight-bold); }
.notify-text { display: grid; gap: 2px; min-width: 0; }
.notify-body { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: pre-line; }
.notify-icon .i { width: 22px; height: 22px; color: var(--color-text-muted); }

@media (max-width: 1180px) {
  .chat-layout { grid-template-columns: 18rem minmax(0, 1fr); }
  .chat-layout .thread-side { grid-column: 2; }
}
@media (max-width: 760px) {
  .chat-layout, .chat-layout-list { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .chat-layout:not(.chat-layout-list) .inbox-pane { display: none; }
  .chat-layout:not(.chat-layout-list) > .thread-pane { height: auto; }
  .chat-layout .thread-side { grid-column: auto; order: -1; }
  .inbox-filters .chip, .notify-chips .chip { min-height: 40px; padding: 0 var(--space-3); font-size: var(--text-sm); }
  .inbox-pane { max-height: none; min-height: 0; border-radius: var(--radius-lg); overflow: visible; }
  .inbox-list { overflow: visible; }
  .thread-pane { height: auto; min-height: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) 0; }
  .thread-head { position: sticky; top: 60px; z-index: 15; padding: var(--space-2) var(--space-3); flex-wrap: wrap; }
  .thread-back { width: 40px; min-height: 40px; font-size: var(--text-2xl); line-height: 1; margin-left: calc(-1 * var(--space-2)); }
  .thread-head .avatar { display: none; }
  .assign-form { width: 100%; }
  .assign-form select { max-width: none; flex: 1; }
  .thread-scroll { overflow: visible; padding: var(--space-3); }
  .chat-thread .msg { max-width: 88%; }
  .composer { position: sticky; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 15; padding: var(--space-2) var(--space-3); box-shadow: 0 -4px 16px rgb(19 35 58 / 0.06); }
  .composer textarea { min-height: 2.75rem; }
  .thread-side { margin: calc(-1 * var(--space-2)) 0 var(--space-1); padding: 0; }
  .thread-side-sum { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); min-height: 48px; cursor: pointer; font-weight: var(--weight-semibold); list-style: none; }
  .thread-side-sum::-webkit-details-marker { display: none; }
  .thread-side-sum .i { width: 18px; height: 18px; }
  .thread-side-sum::after { content: "+"; margin-left: auto; font-size: var(--text-lg); color: var(--color-text-muted); }
  .thread-side[open] .thread-side-sum::after { content: "\2212"; }
  .thread-side-body { padding: 0 var(--space-4) var(--space-4); }
  .thread-side-body > .mini-title { display: none; }
  body:has([data-thread]) .app-top-title { visibility: hidden; }
  body:has([data-thread]) .app-content { padding-bottom: calc(60px + var(--space-2) + env(safe-area-inset-bottom)); }
  .chat-layout-list > .inbox-pane { height: auto; }
  .invite-row { grid-template-columns: minmax(0, 1fr); }
  .team-list li { flex-wrap: wrap; }
  .seg-wrap label { flex: 1 1 100%; }
  .team-actions { width: 100%; }
  .team-actions .inline-setting { flex: 1; }
  .team-actions .inline-setting select { flex: 1; }
  .team-actions select, .team-actions .btn-sm { min-height: 44px; }
  .role-key div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* offer.css */
/* Offers (feat/offer): the outreach landing page (/offer/<code>), the offer box on sign-up, and the employer's
   offer note. Same tokens as app.css; nothing here overrides a shared rule. */
.hero-offer h1 { max-width: 44rem; margin: 0 auto; text-wrap: balance; }
.offer-kicker { text-align: center; margin: 0 0 var(--space-2); color: var(--color-band-muted); font-weight: var(--weight-semibold); font-size: var(--text-sm); letter-spacing: 0.02em; }
.offer-wrap { padding-top: var(--space-6); padding-bottom: var(--space-7); }
.offer-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--card-gap); align-items: start; }
.offer-points h2, .offer-cta h2 { font-size: var(--text-lg); line-height: var(--lh-lg); margin: 0 0 var(--space-2); text-wrap: balance; }
.offer-points .ticks { margin-top: var(--space-4); }
.offer-points li span, .offer-cta p { text-wrap: pretty; }
.offer-small { margin: var(--space-5) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--color-line); }
.offer-cta { gap: var(--space-3); border: 2px solid var(--color-secondary); }
.offer-cta .meta { margin: 0; }
.offer-cta .alert { margin: 0; }
.offer-box strong { display: block; }
.offer-box p { margin: var(--space-1) 0 0; }
.offer-banner strong { display: block; }
.offer-banner p { margin: var(--space-1) 0 0; max-width: 52rem; }
.offer-banner .row { margin-top: var(--space-3); }
.offer-link { font-weight: var(--weight-semibold); word-break: break-all; margin: 0 0 var(--space-2); }
@media (max-width: 760px) {
  .offer-kicker { text-align: left; }
  .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .offer-cta { order: -1; }
  .offer-wrap { padding-top: var(--space-4); }
}
.offer-cta p.meta { color: var(--color-text); font-size: var(--text-md); }

/* the offer's main action, in the hero as well as the side card */
.offer-hero-cta { margin: var(--space-5) 0 0; }
.offer-cta { scroll-margin-top: var(--space-6); }

/* pay-gate.css */
/* Pay for signed-in people only (EVS-82): what signed-out visitors see where a job's pay would be. One look
   everywhere: a lock and "Sign in to see pay", in the link colour, never a blurred or greyed-out fake figure. */
.job-pay-locked, .apply-pay-locked, .apply-bar-locked, .summary-locked a, .pay-filter-locked a { position: relative; z-index: 2; }
a.job-pay-locked, span.job-pay-workers { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); line-height: 1.4; font-weight: var(--weight-semibold); white-space: nowrap; color: var(--color-accent); text-decoration: none; border: 1px solid var(--color-line-strong); border-radius: var(--radius-full); padding: 0.3rem 0.75rem; min-height: 32px; background: var(--color-surface); }
a.job-pay-locked:hover { border-color: var(--color-accent); background: var(--color-surface-2); }
a.job-pay-locked:focus-visible, a.apply-pay-locked:focus-visible, a.apply-bar-locked:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
span.job-pay-workers { color: var(--color-text-muted); font-weight: var(--weight-regular); }
a.job-pay-locked .i, span.job-pay-workers .i { width: 16px; height: 16px; flex-shrink: 0; }

.pay-gate { display: flex; flex-direction: column; gap: var(--space-2); }
.pay-gate .meta { margin: 0; }
a.apply-pay-locked, p.apply-pay-workers { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--weight-semibold); color: var(--color-accent); text-decoration: none; }
a.apply-pay-locked:hover span { text-decoration: underline; text-underline-offset: 0.18em; }
p.apply-pay-workers { margin: 0; font-size: var(--text-lg); line-height: var(--lh-lg); color: var(--color-text); font-weight: var(--weight-semibold); }
p.apply-pay-workers .i { color: var(--color-text-muted); }
a.apply-pay-locked .i, p.apply-pay-workers .i { width: 22px; height: 22px; flex-shrink: 0; }

.summary-locked a { font-weight: var(--weight-semibold); }
a.apply-bar-locked, span.apply-bar-locked { display: inline-flex; align-items: center; gap: var(--space-1); white-space: nowrap; font-size: var(--text-sm); line-height: 1.4; color: var(--color-accent); font-weight: var(--weight-semibold); text-decoration: none; }
a.apply-bar-locked:hover { text-decoration: underline; text-underline-offset: 0.18em; }
span.apply-bar-locked { color: var(--color-text-muted); font-weight: var(--weight-regular); }
a.apply-bar-locked .i, span.apply-bar-locked .i { width: 14px; height: 14px; flex-shrink: 0; }

.pay-filter-locked { display: flex; gap: var(--space-2); align-items: flex-start; margin: 0; font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); }
.pay-filter-locked .i { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.1em; color: var(--color-text); }
.pay-filter-locked a { font-weight: var(--weight-semibold); }

.prose span.pay-hidden-inline { color: var(--color-text-muted); font-style: italic; }
.prose a.pay-hidden-inline { font-weight: var(--weight-semibold); white-space: nowrap; }

@media (max-width: 640px) {
  a.job-pay-locked { min-height: 36px; }
}
