/* NRI-JobFinder — design system
   Ink-on-paper neutrals with a single emerald accent. Light and dark are both
   first-class: every colour is a light-dark() pair driven by `color-scheme`. */

/* ───────────── Tokens ───────────── */
:root {
  color-scheme: light dark;

  --bg:          light-dark(oklch(98.3% 0.004 95),  oklch(15.5% 0.008 255));
  --surface:     light-dark(oklch(100% 0 0),        oklch(19.5% 0.010 255));
  --surface-2:   light-dark(oklch(96.4% 0.005 95),  oklch(23.5% 0.012 255));
  --surface-3:   light-dark(oklch(93.5% 0.006 95),  oklch(27.5% 0.014 255));
  --line:        light-dark(oklch(91.5% 0.006 95),  oklch(28.5% 0.012 255));
  --line-strong: light-dark(oklch(84% 0.008 95),    oklch(38% 0.014 255));

  --ink:         light-dark(oklch(20% 0.018 262),   oklch(96.5% 0.004 95));
  --ink-2:       light-dark(oklch(36% 0.016 262),   oklch(84% 0.006 95));
  --muted:       light-dark(oklch(51% 0.013 262),   oklch(67% 0.010 255));
  --on-ink:      light-dark(oklch(98.3% 0.004 95),  oklch(17% 0.010 255));

  --accent:        light-dark(oklch(50% 0.130 160),  oklch(79% 0.160 160));
  --accent-strong: light-dark(oklch(43% 0.115 160),  oklch(86% 0.150 160));
  --accent-soft:   light-dark(oklch(95.5% 0.035 160), oklch(26% 0.050 160));
  --accent-line:   light-dark(oklch(86% 0.070 160),  oklch(38% 0.080 160));

  --warn:        light-dark(oklch(52% 0.120 70),    oklch(82% 0.130 80));
  --warn-soft:   light-dark(oklch(95.5% 0.045 85),  oklch(28% 0.050 75));
  --danger:      light-dark(oklch(53% 0.200 27),    oklch(72% 0.170 25));
  --danger-soft: light-dark(oklch(95.5% 0.030 25),  oklch(27% 0.060 25));
  --info:        light-dark(oklch(50% 0.150 255),   oklch(78% 0.110 250));
  --info-soft:   light-dark(oklch(95.5% 0.025 250), oklch(27% 0.050 255));

  --shadow-sm: 0 1px 2px light-dark(oklch(20% 0.02 262 / 0.06), oklch(0% 0 0 / 0.4));
  --shadow-md: 0 8px 24px -10px light-dark(oklch(20% 0.02 262 / 0.16), oklch(0% 0 0 / 0.6));
  --shadow-lg: 0 28px 60px -24px light-dark(oklch(20% 0.02 262 / 0.28), oklch(0% 0 0 / 0.75));

  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --header-h: 60px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1; }

h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
h1, h2, h3 { font-weight: 620; letter-spacing: -0.022em; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
h2 { font-size: 1.125rem; }
h3 { font-size: 1.0625rem; }
p { text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--font-mono); font-size: 0.875em; background: var(--surface-3); padding: 0.1em 0.35em; border-radius: 5px; }
small { font-size: 0.8125rem; color: var(--muted); font-weight: 400; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: var(--accent-soft); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--on-ink);
  padding: 0.6rem 1rem; border-radius: var(--r-md); text-decoration: none;
  transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 0.75rem; }

.icon {
  width: 1.125em; height: 1.125em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.muted { color: var(--muted); }
.spacer { flex: 1; }
.shell { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.stack { display: grid; gap: 1.1rem; align-content: start; }
.row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.row-end { display: flex; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }

.kicker {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
}

/* Wordmark: "NRI" in the sans, "JobFinder" in the italic serif. */
.wordmark { font-weight: 650; letter-spacing: -0.03em; white-space: nowrap; }
.wordmark em, .hero-title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
}
.wordmark em { font-size: 1.16em; }
.wordmark-dash { color: var(--accent); margin-inline: 0.02em; }

/* ───────────── Buttons ───────────── */
.btn {
  --btn-h: 2.625rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: var(--btn-h); padding: 0 1.05rem;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-size: 0.9375rem; font-weight: 560; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer; user-select: none;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.1s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-sm { --btn-h: 2.125rem; padding: 0 0.75rem; font-size: 0.875rem; border-radius: var(--r-sm); }
.btn-block { width: 100%; }

.btn-primary { background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { background: color-mix(in oklch, var(--ink) 86%, var(--accent)); }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); }

.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }

.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in oklch, var(--danger) 30%, transparent); }
.btn-danger:hover:not(:disabled) { background: color-mix(in oklch, var(--danger-soft) 80%, var(--danger)); }

.btn[aria-busy="true"] { position: relative; color: transparent !important; pointer-events: none; opacity: 1; }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  border: 2px solid var(--muted); border-top-color: transparent;
  animation: spin 0.7s linear infinite;
}
.btn-primary[aria-busy="true"]::after { border-color: var(--on-ink); border-top-color: transparent; }

.icon-btn {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none;
  border: 1px solid transparent; border-radius: var(--r-md);
  background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.icon-btn[aria-pressed="true"] .icon { fill: currentColor; }

.link {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--accent); font-weight: 540; text-decoration: underline;
  text-decoration-color: transparent; text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.link:hover { text-decoration-color: currentColor; }
.link:disabled { color: var(--muted); cursor: default; text-decoration: none; }

/* ───────────── Form controls ───────────── */
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field > span {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 540; color: var(--ink-2);
}
.field output { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent); }
.input-pair { display: grid; grid-template-columns: minmax(0, 1fr) 5.75rem; gap: 0.4rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="url"],
input[type="number"], input[type="search"], select, textarea {
  width: 100%; min-height: 2.625rem; padding: 0.55rem 0.8rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
textarea { resize: vertical; line-height: 1.5; }
select {
  appearance: none; padding-right: 2.2rem; 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='%23808590' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center; background-size: 1rem;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.75; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 22%, transparent);
}
input[type="search"]::-webkit-search-cancel-button { display: none; }
input[type="range"] { width: 100%; accent-color: var(--accent); min-height: auto; padding: 0; }
input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); cursor: pointer; flex: none; }

/* icon + borderless input, used in the search bars */
.field-inline {
  display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0;
  padding: 0 0.9rem; color: var(--muted);
}
.field-inline input {
  border: 0; background: transparent; padding: 0; min-height: 2.75rem; box-shadow: none !important;
}
.field-inline:focus-within { color: var(--accent); }
.field-inline-sm {
  flex: 0 1 280px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); padding: 0 0.65rem;
}
.field-inline-sm input { min-height: 2.125rem; font-size: 0.875rem; }

.check { display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 0.2rem; }
.check span { display: grid; gap: 0.1rem; font-size: 0.9375rem; }

/* radio pills */
.pill-group, .segmented { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pill-group label, .segmented label { position: relative; cursor: pointer; }
.pill-group input, .segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill-group span, .segmented span {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 2.125rem; padding: 0 0.8rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 0.875rem; font-weight: 520; color: var(--ink-2);
  transition: all 0.15s var(--ease);
}
.pill-group label:hover span, .segmented label:hover span { border-color: var(--muted); }
.pill-group input:checked + span, .segmented input:checked + span {
  background: var(--ink); border-color: var(--ink); color: var(--on-ink);
}
.pill-group input:focus-visible + span, .segmented input:focus-visible + span {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.segmented {
  flex-wrap: nowrap; gap: 0; padding: 0.25rem; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line);
}
.segmented label { flex: 1 1 auto; }
.segmented span { width: 100%; justify-content: center; border: 0; background: transparent; border-radius: 7px; white-space: nowrap; padding-inline: 0.6rem; }
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.form-error {
  padding: 0.65rem 0.8rem; border-radius: var(--r-md); font-size: 0.875rem;
  background: var(--danger-soft); color: var(--danger);
  border: 1px solid color-mix(in oklch, var(--danger) 25%, transparent);
}
.hint { font-size: 0.8125rem; color: var(--muted); }

/* ───────────── Surfaces ───────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.35rem; box-shadow: var(--shadow-sm);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }

.tile {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line); font-size: 1.05rem;
}
.tile-lg { width: 3rem; height: 3rem; font-size: 1.25rem; border-radius: var(--r-lg); }

.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  height: 1.5rem; padding: 0 0.55rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 560; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.badge .icon { width: 0.8rem; height: 0.8rem; }
.badge-accent { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent-line); }
.badge-warn   { background: var(--warn-soft);   color: var(--warn);   border-color: color-mix(in oklch, var(--warn) 30%, transparent); }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in oklch, var(--danger) 30%, transparent); }
.badge-info   { background: var(--info-soft);   color: var(--info);   border-color: color-mix(in oklch, var(--info) 30%, transparent); }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-flex; align-items: center; height: 1.6rem; padding: 0 0.6rem;
  border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-2);
}

.count {
  display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.35rem;
  border-radius: 999px; background: color-mix(in oklch, currentColor 14%, transparent);
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500;
}

.avatar {
  display: inline-grid; place-items: center; width: 2.125rem; height: 2.125rem; flex: none;
  border-radius: 50%; background: var(--ink); color: var(--on-ink);
  font-size: 0.8125rem; font-weight: 620; letter-spacing: 0.01em; text-transform: uppercase;
}
.avatar-xl { width: 4rem; height: 4rem; font-size: 1.35rem; }

.tabs {
  display: inline-flex; gap: 0.2rem; padding: 0.25rem; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line); max-width: 100%; overflow-x: auto;
}
.tabs [role="tab"] {
  display: inline-flex; align-items: center; gap: 0.45rem; height: 2.125rem; padding: 0 0.85rem;
  border: 0; border-radius: 7px; background: transparent; color: var(--muted);
  font-size: 0.875rem; font-weight: 550; cursor: pointer; white-space: nowrap;
  transition: all 0.15s var(--ease);
}
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.empty-state {
  display: grid; justify-items: center; gap: 0.6rem; text-align: center;
  padding: 3rem 1.5rem; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
}
.empty-state .tile { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.empty-state h3 { color: var(--ink); }
.empty-state p { max-width: 42ch; }

.skeleton {
  border-radius: var(--r-lg); min-height: 8.5rem; border: 1px solid var(--line);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes spin { to { rotate: 360deg; } }
@keyframes shimmer { to { background-position: -300% 0; } }

/* ───────────── Header ───────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-size: 1.0625rem; }
.brand-mark {
  display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem;
  border-radius: 9px; background: var(--ink); color: oklch(80% 0.16 160); font-size: 1.05rem;
}

.site-nav { display: flex; align-items: center; gap: 0.15rem; flex: 1; }
.site-nav a {
  padding: 0.4rem 0.75rem; border-radius: var(--r-sm); text-decoration: none;
  font-size: 0.9375rem; font-weight: 520; color: var(--muted);
  transition: color 0.15s, background-color 0.15s;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun { display: none; }
:root[data-theme="dark"] .theme-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: none; }
  :root:not([data-theme="light"]) .theme-moon { display: block; }
}

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; border-radius: 50%; display: block; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 0.6rem); z-index: 60; width: 16rem;
  padding: 0.4rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  animation: pop 0.16s var(--ease);
}
.menu-head { display: grid; padding: 0.6rem 0.7rem 0.7rem; border-bottom: 1px solid var(--line); margin-bottom: 0.3rem; }
.menu-head span { font-size: 0.8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.menu-panel a, .menu-panel button {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.55rem 0.7rem;
  border: 0; border-radius: var(--r-sm); background: transparent; text-align: left;
  font-size: 0.9375rem; color: var(--ink-2); text-decoration: none; cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); color: var(--ink); }
.only-mobile { display: none !important; }

@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }

.setup-banner { background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid color-mix(in oklch, var(--warn) 25%, transparent); }
.setup-banner .shell { display: flex; gap: 0.7rem; align-items: flex-start; padding-block: 0.75rem; font-size: 0.9rem; }
.setup-banner .icon { margin-top: 0.2rem; }
.setup-banner p { color: var(--ink-2); }
.setup-banner strong { color: var(--ink); }

/* ───────────── Home ───────────── */
.hero { position: relative; overflow: clip; border-bottom: 1px solid var(--line); }
.hero::before {
  /* faint drafting grid that fades out towards the edges */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 20%, transparent 78%);
  opacity: 0.75;
}
.hero-glow {
  position: absolute; z-index: 0; left: 50%; top: -18rem; width: 52rem; height: 34rem; translate: -50% 0;
  background: radial-gradient(closest-side, color-mix(in oklch, var(--accent) 26%, transparent), transparent);
  filter: blur(20px); pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1; display: grid; justify-items: center; text-align: center;
  gap: 1.4rem; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.8rem 0.35rem 0.65rem;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); font-size: 0.8125rem; font-weight: 520; color: var(--ink-2);
}
.eyebrow .icon { color: var(--accent); }
.hero-title {
  font-size: clamp(3rem, 1.2rem + 9.5vw, 7.25rem); font-weight: 680;
  letter-spacing: -0.055em; line-height: 0.95;
}
.hero-title em { font-size: 1.1em; letter-spacing: -0.03em; padding-right: 0.06em; }
.lede { max-width: 58ch; font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem); color: var(--ink-2); }

.hero-search, .searchbar {
  display: flex; align-items: center; gap: 0.25rem; width: min(760px, 100%);
  padding: 0.4rem; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-xl); box-shadow: var(--shadow-md);
}
.hero-search .field-inline + .field-inline, .searchbar .field-inline + .field-inline { border-left: 1px solid var(--line); }
.hero-search .btn, .searchbar .btn { border-radius: var(--r-lg); height: 2.75rem; }
.hero-search:focus-within, .searchbar:focus-within {
  border-color: var(--accent); box-shadow: var(--shadow-md), 0 0 0 4px color-mix(in oklch, var(--accent) 16%, transparent);
}

.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2.5rem; margin-top: 0.75rem; }
.stats div { display: grid; gap: 0.1rem; }
.stats dt { order: 2; font-size: 0.8125rem; color: var(--muted); }
.stats dd { font-size: 1.6rem; font-weight: 640; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section:last-child { padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.section-head { display: grid; gap: 0.5rem; margin-bottom: 1.6rem; }
.section-head h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -0.03em; max-width: 22ch; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.step { position: relative; display: grid; gap: 0.7rem; align-content: start; padding: 1.5rem; }
.step-num { position: absolute; right: 1.25rem; top: 1.15rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.step p, .bento p { color: var(--muted); font-size: 0.9375rem; }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.bento .card { display: grid; gap: 0.7rem; align-content: start; padding: 1.5rem; transition: border-color 0.2s, box-shadow 0.2s, translate 0.2s var(--ease); }
.bento .card:hover, .step:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.bento-wide { grid-column: span 2; }
.cta-card {
  grid-template-columns: 1fr auto; align-items: center; align-content: center;
  background: var(--ink); color: var(--on-ink); border-color: var(--ink);
}
.cta-card p { color: color-mix(in oklch, var(--on-ink) 70%, transparent); }
.cta-card .btn-primary { background: var(--on-ink); color: var(--ink); }
.cta-card .btn-primary:hover { background: color-mix(in oklch, var(--on-ink) 88%, var(--accent)); }

/* ───────────── Auth ───────────── */
.auth-wrap { display: grid; place-items: start center; padding-block: clamp(2rem, 7vw, 5rem); }
.auth-card { width: min(440px, 100%); padding: clamp(1.4rem, 4vw, 2.1rem); box-shadow: var(--shadow-md); display: grid; gap: 1rem; }
.auth-pane { display: none; gap: 1rem; }
.auth-card[data-mode="signin"]  [data-pane="signin"],
.auth-card[data-mode="signup"]  [data-pane="signup"],
.auth-card[data-mode="verify"]  [data-pane="verify"],
.auth-card[data-mode="confirm"] [data-pane="confirm"],
.auth-card[data-mode="forgot"]  [data-pane="forgot"],
.auth-card[data-mode="reset"]   [data-pane="reset"] { display: grid; animation: fade-up 0.25s var(--ease); }
.auth-head { display: grid; gap: 0.5rem; margin-bottom: 0.25rem; }
.auth-head h1 { font-size: 1.6rem; }
.auth-head p { color: var(--muted); font-size: 0.9375rem; }
.auth-head strong { color: var(--ink); overflow-wrap: anywhere; }
.org-fields { display: grid; gap: 1rem; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; font-size: 0.875rem; color: var(--muted); }
.code-input {
  text-align: center; font-family: var(--font-mono); font-size: 1.6rem !important; letter-spacing: 0.45em;
  padding-left: calc(0.8rem + 0.45em) !important; min-height: 3.5rem !important;
}

@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } }

/* ───────────── My CV ───────────── */
.cv-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.25rem; align-items: start; }
.dropzone {
  display: grid; justify-items: center; gap: 0.45rem; text-align: center; cursor: pointer;
  padding: 1.6rem 1rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg);
  background: var(--surface-2); transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.dropzone:hover, .dropzone.is-over, .dropzone:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.dropzone strong { overflow-wrap: anywhere; }
.form-error { color: var(--danger); font-size: 0.875rem; }
.form-error[hidden] { display: none; }
.cv-file { display: flex; align-items: center; gap: 0.8rem; }
.cv-file > div { display: grid; gap: 0.1rem; min-width: 0; }
.cv-file strong { overflow-wrap: anywhere; }
.cv-file .muted { font-size: 0.875rem; }
.cv-block { display: grid; gap: 0.45rem; }
.cv-block h3 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cv-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; counter-reset: cv-step; }
.cv-steps li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); column-gap: 0.75rem; counter-increment: cv-step; }
.cv-steps li::before {
  content: counter(cv-step); grid-row: span 2; display: grid; place-items: center; width: 1.75rem; height: 1.75rem;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); border: 1px solid var(--accent-line);
  font-family: var(--font-mono); font-size: 0.8125rem;
}
.cv-steps span { color: var(--muted); font-size: 0.9rem; }
.cv-banner {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; margin-bottom: 0.9rem;
  text-decoration: none; color: inherit; border-color: var(--accent-line); background: var(--accent-soft);
}
.cv-banner[hidden] { display: none; }
.cv-banner > span:nth-child(2) { display: grid; gap: 0.1rem; flex: 1; min-width: 0; font-size: 0.9rem; }
.cv-banner .tile { background: var(--surface); }
.only-mobile[hidden] { display: none !important; }
.chip-check { display: inline-flex; align-items: center; gap: 0.4rem; height: 1.9rem; padding: 0 0.65rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 0.8125rem; cursor: pointer; user-select: none; }
.chip-check input { accent-color: var(--accent); margin: 0; }
.chip-check:has(input:checked) { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-strong); }
.chip-check b { font-family: var(--font-mono); font-weight: 500; color: var(--muted); }
@media (max-width: 980px) { .cv-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { .cv-banner { flex-wrap: wrap; } }

/* ───────────── Reporting expired jobs, time allowance ───────────── */
.sheet-report { color: var(--muted); }
.sheet-report:hover:not(:disabled) { color: var(--danger); background: var(--danger-soft); }
.allowance-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 0; }
.allowance-stats div { padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.allowance-stats dt { font-size: 0.75rem; color: var(--muted); }
.allowance-stats dd { margin: 0.1rem 0 0; font-family: var(--font-mono); font-size: 1rem; color: var(--ink); }
.allowance-list { list-style: none; margin: 0; padding: 0; }
.allowance-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.allowance-row:first-child { border-top: 0; }
.allowance-row .info { display: grid; gap: 0.1rem; min-width: 0; flex: 1; }
.allowance-row .info strong { font-weight: 580; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.allowance-row .info span { font-size: 0.8125rem; color: var(--muted); }
.allowance-change { font-family: var(--font-mono); font-weight: 500; font-size: 0.875rem; min-width: 4.5rem; text-align: right; white-space: nowrap; color: var(--muted); }
.allowance-change[data-sign="plus"] { color: var(--accent-strong); }
.allowance-change[data-sign="minus"] { color: var(--danger); }
.pass-allowance { padding: 0.65rem 0.8rem; border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-strong); font-size: 0.875rem; }
.pass-allowance[hidden] { display: none; }
.section-lede { max-width: 62ch; }
.report-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.report-steps .card { display: grid; gap: 0.6rem; align-content: start; padding: 1.4rem; }
.report-steps p { color: var(--muted); font-size: 0.9375rem; }
.report-steps strong, .report-rules strong { color: var(--ink); }
.report-rules { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--r-lg);
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--ink-2); font-size: 0.9375rem; }
.report-rules .icon { flex: none; margin-top: 0.2rem; color: var(--accent); }
@media (max-width: 980px) { .report-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .report-steps { grid-template-columns: minmax(0, 1fr); }
  .allowance-row { flex-wrap: wrap; }
  .allowance-row .info { flex-basis: 100%; }
}

/* ───────────── One-day pass ───────────── */
.pass-card { width: min(480px, 100%); padding: clamp(1.4rem, 4vw, 2.1rem); box-shadow: var(--shadow-md); display: grid; gap: 1.15rem; }
.pass-head { justify-items: start; }
.pass-head .tile { margin-bottom: 0.35rem; }
.pass-card[data-state="active"] .pass-head .tile,
.pass-card[data-state="admin"] .pass-head .tile { background: var(--accent); color: var(--on-ink); border-color: var(--accent); }
.pass-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.pass-perks li { display: flex; align-items: center; gap: 0.65rem; color: var(--ink-2); font-size: 0.9375rem; }
.pass-perks .icon { flex: none; color: var(--accent); }
.pass-buy { display: grid; gap: 0.75rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.pass-button { display: grid; justify-items: center; min-height: 0; }
.pass-button:empty { display: none; }
.pass-button stripe-buy-button { display: block; width: 100%; max-width: 100%; }
.pass-spinner { display: flex; align-items: center; gap: 0.65rem; color: var(--ink-2); font-size: 0.9375rem; }
.pass-spinner[hidden] { display: none; }
.pass-foot { font-size: 0.8125rem; color: var(--muted); }
.spinner {
  width: 1.1rem; height: 1.1rem; flex: none; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

.pass-chip {
  display: inline-flex; align-items: center; gap: 0.4rem; height: 2.125rem; padding: 0 0.75rem;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font-size: 0.8125rem; font-weight: 560; white-space: nowrap; text-decoration: none;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.pass-chip:hover { background: var(--surface-2); }
.pass-chip .icon { width: 0.95rem; height: 0.95rem; color: var(--accent); }
.pass-chip.is-active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-strong); font-family: var(--font-mono); font-weight: 500; }
.pass-chip[hidden] { display: none; }
/* Phones: the chip shares the header with the logo, theme switch and avatar. */
@media (max-width: 680px) {
  .header-actions { gap: 0.35rem; }
  .pass-chip { padding: 0 0.6rem; }
  .pass-chip .icon { display: none; }
}
@media (max-width: 350px) {
  .pass-chip { width: 2.125rem; padding: 0; justify-content: center; }
  .pass-chip .icon { display: block; }
  .pass-chip span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ───────────── Page scaffolding ───────────── */
.page { display: grid; gap: 1.25rem; padding-block: clamp(1.5rem, 4vw, 2.75rem) clamp(3rem, 6vw, 5rem); }
.page-narrow { max-width: 1040px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-head > div:first-child { display: grid; gap: 0.3rem; }

/* ───────────── Jobs ───────────── */
.searchbar { width: 100%; padding: 0.4rem; border-radius: var(--r-xl); }

.jobs-layout { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 1rem); padding: 1.1rem; }
.filters-details > summary {
  display: flex; align-items: center; gap: 0.5rem; list-style: none; cursor: default;
  font-weight: 600; font-size: 0.9375rem; pointer-events: none;
}
.filters-details > summary::-webkit-details-marker { display: none; }
.filters-details .chev { margin-left: auto; display: none; transition: rotate 0.2s var(--ease); }
.filters-details[open] .chev { rotate: 180deg; }
.filters form { display: grid; gap: 1.1rem; margin-top: 1.1rem; }
.filter-group { display: grid; gap: 0.5rem; }
.filter-group legend { padding: 0; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 540; color: var(--ink-2); }

.results { display: grid; gap: 0.9rem; min-width: 0; }
.results-head { display: flex; align-items: center; justify-content: space-between; min-height: 1.5rem; font-size: 0.9375rem; }
.results-foot { display: grid; justify-items: center; padding-top: 0.5rem; }
.job-list { display: grid; gap: 0.75rem; }

.job-card {
  position: relative; display: grid; gap: 0.75rem; padding: 1.15rem 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); cursor: pointer; text-align: left;
  transition: border-color 0.18s, box-shadow 0.18s, translate 0.18s var(--ease);
  container-type: inline-size;
}
.job-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); translate: 0 -1px; }
.job-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-lg); }
.job-top { display: flex; align-items: flex-start; gap: 0.9rem; }
.job-logo {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none;
  border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line);
  font-weight: 650; font-size: 1.0625rem; color: var(--ink-2); text-transform: uppercase;
}
.job-heading { display: grid; gap: 0.15rem; min-width: 0; flex: 1; }
.job-title {
  appearance: none; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit;
  font-size: 1.0625rem; font-weight: 620; letter-spacing: -0.015em; line-height: 1.3;
}
.job-card:hover .job-title { color: var(--accent-strong); }
.job-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; font-size: 0.9rem; color: var(--muted); }
.job-sub span { display: inline-flex; align-items: center; gap: 0.3rem; }
.job-sub strong { color: var(--ink-2); font-weight: 540; }
.job-salary { font-weight: 620; font-size: 0.9375rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.job-desc {
  color: var(--ink-2); font-size: 0.9375rem;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.job-foot { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.job-foot .meta { margin-left: auto; font-size: 0.8125rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.35rem; }
@container (max-width: 480px) {
  .job-top { flex-wrap: wrap; }
  .job-top .job-salary { order: 3; width: 100%; padding-left: 3.65rem; }
}

/* ───────────── Sheet (job detail) & modals ───────────── */
dialog { color: var(--ink); }
dialog::backdrop {
  background: oklch(15% 0.02 262 / 0.45);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  transition: opacity 0.25s, overlay 0.25s allow-discrete, display 0.25s allow-discrete;
  opacity: 0;
}
dialog[open]::backdrop { opacity: 1; }
@starting-style { dialog[open]::backdrop { opacity: 0; } }

.sheet {
  margin: 0 0 0 auto; padding: 0; border: 0; width: min(580px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  translate: 100% 0;
  transition: translate 0.3s var(--ease), overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}
.sheet[open] { translate: 0 0; }
@starting-style { .sheet[open] { translate: 100% 0; } }
.sheet-inner { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; height: 100%; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.5rem 1.1rem; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 1.4rem; letter-spacing: -0.025em; }
.sheet-body { overflow-y: auto; padding: 1.4rem 1.5rem; display: grid; gap: 1.5rem; align-content: start; }
.sheet-foot { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 1rem 1.5rem; border-top: 1px solid var(--line); background: var(--surface); }
.sheet-foot > * { flex: 1 1 auto; }
.sheet-foot [data-apply] { flex-basis: 100%; } /* the apply link gets its own row; Save / Mark applied share the next */

.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.detail-grid div { display: grid; gap: 0.15rem; padding: 0.75rem 0.85rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.detail-grid dt { font-size: 0.75rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.35rem; }
.detail-grid dd { font-weight: 560; font-size: 0.9375rem; overflow-wrap: anywhere; }
.detail-section { display: grid; gap: 0.6rem; }
.detail-section h3 { font-size: 0.8125rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 500; }
.prose { color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.source-note { font-size: 0.8125rem; color: var(--muted); display: flex; gap: 0.5rem; align-items: flex-start; }

.modal {
  padding: 0; border: 1px solid var(--line); border-radius: var(--r-xl);
  width: min(760px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  background: var(--surface); box-shadow: var(--shadow-lg);
  opacity: 0; scale: 0.97;
  transition: opacity 0.2s var(--ease), scale 0.2s var(--ease), overlay 0.2s allow-discrete, display 0.2s allow-discrete;
}
.modal[open] { opacity: 1; scale: 1; }
@starting-style { .modal[open] { opacity: 0; scale: 0.97; } }
.modal-sm { width: min(440px, calc(100vw - 2rem)); }
.modal-inner { display: grid; grid-template-rows: auto 1fr auto; max-height: calc(100dvh - 2rem); }
.modal-sm .modal-inner { grid-template-rows: 1fr auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.2rem; }
.modal-body { padding: 1.4rem; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 0.5rem; padding: 1rem 1.4rem; border-top: 1px solid var(--line); }

/* ───────────── Profile ───────────── */
.profile-head { display: flex; align-items: center; gap: 1.1rem; }
.profile-head > div { display: grid; gap: 0.25rem; min-width: 0; }
.profile-head p { overflow-wrap: anywhere; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.25rem; align-items: start; }

.mini-list, .row-list { display: grid; }
.mini-row, .row-item {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0.25rem;
  border-top: 1px solid var(--line);
}
.mini-row:first-child, .row-item:first-child { border-top: 0; }
.mini-row .info, .row-item .info { display: grid; gap: 0.1rem; min-width: 0; flex: 1; }
.mini-row .info strong, .row-item .info strong { font-weight: 580; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row .info span, .row-item .info span { font-size: 0.875rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.info { appearance: none; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
button.info:hover strong { color: var(--accent); }

/* ───────────── Admin ───────────── */
.admin-panel { display: grid; gap: 1.25rem; }
.pull-layout { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: 1.25rem; align-items: start; }

.status-dot { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8125rem; font-weight: 540; color: var(--muted); }
.status-dot::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--line-strong); }
.status-dot[data-state="running"] { color: var(--accent); }
.status-dot[data-state="running"]::before { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.status-dot[data-state="done"]::before { background: var(--accent); }
.status-dot[data-state="error"] { color: var(--danger); }
.status-dot[data-state="error"]::before { background: var(--danger); }
@keyframes pulse { 50% { opacity: 0.35; scale: 0.8; } }

.activity { display: grid; gap: 0; max-height: 22rem; overflow-y: auto; font-size: 0.9rem; }
.activity li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.5rem 0; color: var(--ink-2); animation: fade-up 0.25s var(--ease); }
.activity li .icon { margin-top: 0.2rem; color: var(--muted); }
.activity li[data-kind="search"] .icon { color: var(--accent); }
.activity li[data-kind="done"] { color: var(--ink); font-weight: 560; }
.activity li[data-kind="done"] .icon { color: var(--accent); }
.activity li[data-kind="error"] { color: var(--danger); }
.activity li[data-kind="error"] .icon { color: var(--danger); }
.activity li q { quotes: "“" "”"; font-family: var(--font-mono); font-size: 0.85em; color: var(--ink); }
.activity li small { display: block; }
.activity .activity-empty { color: var(--muted); animation: none; }

.toolbar { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.bulkbar {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; padding: 0.55rem 0.75rem;
  border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid var(--accent-line);
  font-size: 0.875rem; font-weight: 560; color: var(--accent-strong);
}

.table-wrap { position: relative; overflow-x: auto; margin-inline: -0.25rem; } /* positioned, so hidden labels inside scroll with the table instead of widening the page */
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th {
  text-align: left; padding: 0.55rem 0.75rem; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line);
}
.table td { padding: 0.75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in oklch, var(--surface-2) 60%, transparent); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .col-check { width: 2.25rem; }
.table .col-actions { width: 1%; white-space: nowrap; text-align: right; }
.table .cell-main { display: grid; gap: 0.1rem; min-width: 12rem; max-width: 28rem; }
.table .cell-main strong { font-weight: 580; }
.table .cell-main span { color: var(--muted); font-size: 0.8125rem; overflow-wrap: anywhere; }
.table .actions { display: inline-flex; gap: 0.15rem; }
.table .table-empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.nowrap { white-space: nowrap; }

/* ───────────── Footer & toasts ───────────── */
.site-footer { border-top: 1px solid var(--line); padding-block: 1.5rem; font-size: 0.875rem; }
.site-footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.toasts {
  position: fixed; z-index: 300; left: 50%; bottom: 1.25rem; translate: -50% 0;
  display: grid; gap: 0.5rem; justify-items: center; width: min(460px, calc(100vw - 2rem)); pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 0.6rem; max-width: 100%; padding: 0.7rem 0.95rem;
  border-radius: var(--r-md); background: var(--ink); color: var(--on-ink);
  box-shadow: var(--shadow-lg); font-size: 0.9rem; pointer-events: auto;
  animation: toast-in 0.25s var(--ease);
}
.toast .icon { margin-top: 0.15rem; }
.toast-success .icon { color: oklch(80% 0.16 160); }
.toast-error .icon { color: oklch(75% 0.16 25); }
.toast.leaving { opacity: 0; translate: 0 6px; transition: opacity 0.2s, translate 0.2s; }
@keyframes toast-in { from { opacity: 0; translate: 0 10px; } }

/* route changes cross-fade where the browser supports View Transitions */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; }

/* ───────────── Responsive ───────────── */
@media (max-width: 980px) {
  .jobs-layout, .pull-layout, .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; }
  .filters-details > summary { pointer-events: auto; cursor: pointer; }
  .filters-details .chev { display: block; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .shell { width: min(1180px, 100% - 2rem); }
  .site-nav { display: none; }
  .only-mobile { display: flex !important; }
  .hero-search, .searchbar { flex-direction: column; align-items: stretch; border-radius: var(--r-lg); }
  .hero-search .field-inline + .field-inline, .searchbar .field-inline + .field-inline { border-left: 0; border-top: 1px solid var(--line); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-wide { grid-column: auto; }
  .cta-card { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; text-align: center; }
  .page-head { align-items: flex-start; }
  .toolbar .spacer { display: none; }
  .field-inline-sm { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
