/* ==========================================================================
   Design tokens: bold & modern. White canvas, indigo brand, slate ink.
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --ink-4: #94a3b8;

  --brand: #4f46e5;
  --brand-hover: #4338ca;
  --brand-ink: #3730a3;
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;

  --ok: #059669;   --ok-50: #ecfdf5;   --ok-100: #d1fae5;
  --warn: #b45309; --warn-50: #fffbeb; --warn-100: #fef3c7;
  --bad: #dc2626;  --bad-50: #fef2f2;  --bad-100: #fee2e2;
  --info: #0284c7; --info-50: #f0f9ff;

  --font: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 6px 16px -6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.04), 0 18px 40px -12px rgba(79, 70, 229, 0.22);
  --ring: 0 0 0 4px rgba(79, 70, 229, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 var(--s-3); color: var(--ink); }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); }
h2 { font-size: 1.35rem; letter-spacing: -0.02em; }
h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 var(--s-3); }
a { color: var(--brand); text-decoration: none; font-weight: 600; }
a:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: 0.85em; background: var(--bg-muted); padding: 2px 6px; border-radius: 6px; color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-100); }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon-sm { width: 15px; height: 15px; vertical-align: -2px; }
.icon-lg { width: 24px; height: 24px; }
.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin-bottom: var(--s-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inline { display: inline; }
.stack > * + * { margin-top: var(--s-4); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand-tag { font-weight: 600; font-size: 0.78rem; letter-spacing: 0; color: var(--ink-3); background: var(--bg-muted); padding: 2px 8px; border-radius: 99px; }

/* Avatar (company initial) */
.avatar { --av: var(--brand); display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--av); }
.avatar-lg { width: 64px; height: 64px; border-radius: 16px; font-size: 1.6rem; }
.avatar-sm { width: 32px; height: 32px; border-radius: 9px; font-size: 0.85rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow-sm);
  font: 600 0.92rem/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.btn:hover { background: var(--bg-soft); border-color: var(--ink-4); color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(79, 70, 229, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn-soft { background: var(--brand-50); border-color: transparent; color: var(--brand-ink); box-shadow: none; }
.btn-soft:hover { background: var(--brand-100); border-color: transparent; color: var(--brand-ink); }
.btn-quiet { border-color: transparent; background: transparent; box-shadow: none; color: var(--ink-2); }
.btn-quiet:hover { background: var(--bg-muted); border-color: transparent; }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 0.85rem; border-radius: 8px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--brand); cursor: pointer; }
.link-button:hover { text-decoration: underline; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
.field > span, .field > label { font-weight: 600; font-size: 0.875rem; color: var(--ink-2); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink);
  font: 400 0.95rem/1.4 var(--font); box-shadow: var(--shadow-sm); transition: border-color 0.15s, box-shadow 0.15s;
}
select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' 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 12px center; background-size: 16px; }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-4); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: var(--ring); }
input[type=file] { width: 100%; padding: 10px; border: 1.5px dashed var(--line-strong); border-radius: 10px; background: var(--bg-soft); font: 500 0.875rem var(--font); color: var(--ink-3); cursor: pointer; }
input[type=file]:hover { border-color: var(--brand); background: var(--brand-50); }
input[type=file]::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font: 600 0.85rem var(--font); cursor: pointer; }
[aria-invalid=true] { border-color: var(--bad) !important; }
[aria-invalid=true]:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14) !important; }
.hint { color: var(--ink-3); font-size: 0.82rem; }
.field-error { display: flex; gap: 6px; align-items: center; color: var(--bad); font-size: 0.82rem; font-weight: 600; margin: 0; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 4px; }
.input-suffix { display: flex; align-items: center; gap: var(--s-2); }
.input-suffix input { max-width: 110px; }
.grid-2 { display: grid; gap: 0 var(--s-3); grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; gap: 0 var(--s-4); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.align-end { align-items: end; }
.align-end > div { margin-bottom: var(--s-4); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.input-code { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.05rem !important; font-weight: 600; }

/* Notices */
.notice { display: block; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink-2); font-size: 0.92rem; margin-bottom: var(--s-4); }
.notice p:last-child { margin: 0; }
.notice-success { background: var(--ok-50); border-color: var(--ok-100); color: #065f46; }
.notice-error { background: var(--bad-50); border-color: var(--bad-100); color: #991b1b; }
.notice-closed { background: var(--warn-50); border-color: var(--warn-100); color: #92400e; }

/* Pills, tags, badges */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; line-height: 1.4; white-space: nowrap; background: var(--bg-muted); color: var(--ink-2); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.pill-live { background: var(--ok-50); color: var(--ok); }
.pill-draft { background: var(--bg-muted); color: var(--ink-3); }
.pill-paused { background: var(--warn-50); color: var(--warn); }
.pill-closed { background: var(--bg-muted); color: var(--ink-4); }
.pill-overdue { background: var(--bad-50); color: var(--bad); margin-left: 6px; }
.pill-new { background: var(--brand-50); color: var(--brand); }
.pill-status-submitted, .pill-status-viewed { background: var(--bg-muted); color: var(--ink-2); }
.pill-status-shortlisted, .pill-status-interview { background: var(--brand-50); color: var(--brand); }
.pill-status-offered, .pill-status-hired { background: var(--ok-50); color: var(--ok); }
.pill-status-rejected { background: var(--bg-muted); color: var(--ink-4); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 8px; background: var(--bg-muted); color: var(--ink-2); font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.tag .icon { width: 15px; height: 15px; color: var(--ink-3); }
.tag-brand { background: var(--brand-50); color: var(--brand-ink); }
.tag-brand .icon { color: var(--brand); }
.tag-ok { background: var(--ok-50); color: #065f46; }
.tag-ok .icon { color: var(--ok); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-size: 0.8rem; font-weight: 700; }
.verified .icon { width: 16px; height: 16px; fill: var(--brand-100); }

/* Centered card pages (login, errors) */
.center-card { min-height: 100vh; display: grid; place-items: center; padding: var(--s-5) var(--s-4); background: var(--bg-soft); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow); width: 100%; }
.card.narrow { max-width: 420px; }
.card .brand { margin-bottom: var(--s-5); }
.card h1 { font-size: 1.6rem; }

/* ==========================================================================
   Dashboard (HR + admin): sidebar shell, calm and compact
   ========================================================================== */
.surface-hr, .surface-admin { background: var(--bg-soft); font-size: 15px; }
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-5) var(--s-4); background: var(--bg); border-right: 1px solid var(--line); }
.sidebar .brand { padding: 0 var(--s-2); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-4); padding: 0 12px; margin: var(--s-2) 0 4px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 0.92rem; }
.side-nav a .icon { color: var(--ink-4); }
.side-nav a:hover { background: var(--bg-muted); color: var(--ink); text-decoration: none; }
.side-nav a.is-active { background: var(--brand-50); color: var(--brand-ink); }
.side-nav a.is-active .icon { color: var(--brand); }
.side-cta { margin-top: var(--s-2); }
.side-user { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-soft); }
.side-user-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.side-user-who strong { display: block; font-size: 0.88rem; line-height: 1.3; }
.side-user-who .who-email { display: block; font-size: 0.78rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-actions { display: flex; gap: 4px; }
.side-user-actions a, .side-user-actions button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px; border-radius: 8px; border: 0; background: none; font: 600 0.8rem var(--font); color: var(--ink-3); cursor: pointer; }
.side-user-actions a:hover, .side-user-actions button:hover { background: var(--bg-muted); color: var(--ink); text-decoration: none; }
.side-user-actions form { flex: 1; display: flex; }
.app-main { padding: var(--s-6) var(--s-6) var(--s-8); max-width: 1180px; width: 100%; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
.page-head h1 { margin-bottom: 4px; font-size: 1.7rem; }
.page-head p { margin: 0; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--ink-3); margin: 0 0 6px; }
.crumbs a { color: var(--ink-3); font-weight: 500; }
.crumbs a:hover { color: var(--brand); }

.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--bg-muted); border-radius: 12px; margin-bottom: var(--s-4); }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 9px; color: var(--ink-3); font-weight: 600; font-size: 0.88rem; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.is-active { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs .count { font-size: 0.75rem; font-weight: 700; padding: 0 7px; border-radius: 99px; background: var(--bg-muted); color: var(--ink-3); }
.tabs a.is-active .count { background: var(--brand-50); color: var(--brand); }

.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); margin-bottom: var(--s-6); overflow: visible; }
.table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 700; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.table th:first-child { border-top-left-radius: var(--r-lg); }
.table th:last-child { border-top-right-radius: var(--r-lg); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fcfdff; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.table tr.is-muted td { color: var(--ink-4); }
.row-title { font-weight: 700; color: var(--ink); }
.row-title:hover { color: var(--brand); }
.row-sub { font-size: 0.82rem; color: var(--ink-3); margin-top: 2px; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions > * { margin-left: 4px; }
.tree-cell { padding-left: calc(16px + var(--depth) * 24px) !important; position: relative; font-weight: 600; }
.tree-cell::before { content: ''; position: absolute; left: calc(16px + var(--depth) * 24px - 14px); top: 50%; width: 8px; border-top: 1.5px solid var(--line-strong); }
.danger { color: var(--bad) !important; }

.menu { position: relative; display: inline-block; text-align: left; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; z-index: 20; min-width: 180px; margin-top: 6px; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); white-space: normal; }
.menu-wide { min-width: 300px; padding: var(--s-4); }
.menu-list > a, .menu-list > form > button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none; font: 600 0.88rem var(--font); text-align: left; color: var(--ink-2); border-radius: 8px; cursor: pointer; }
.menu-list > a:hover, .menu-list > form > button:hover { background: var(--bg-muted); text-decoration: none; color: var(--ink); }
.menu-list form + form { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }

.form-section { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5) var(--s-5) var(--s-2); margin-bottom: var(--s-4); box-shadow: var(--shadow-sm); }
.form-section h2 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: var(--s-4); }
.form-section h2 .step-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-50); color: var(--brand); font-size: 0.8rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); position: sticky; bottom: 0; padding: var(--s-4) 0; background: linear-gradient(to top, var(--bg-soft) 70%, transparent); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-2); padding: var(--s-7) var(--s-4); border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--bg); color: var(--ink-3); }
.empty-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-50); color: var(--brand); margin-bottom: var(--s-2); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s-4); margin: 0 0 var(--s-6); }
.stats > div { display: flex; flex-direction: column; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-sm); }
.stats dt { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 0.85rem; font-weight: 600; }
.stats dt .icon { color: var(--brand); }
.stats dd { margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }

.usage { display: flex; align-items: center; gap: var(--s-3); font-size: 0.88rem; color: var(--ink-3); }
.meter { width: 140px; height: 8px; border-radius: 99px; background: var(--bg-muted); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: var(--brand); }

/* Rich text editor */
.rte { border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); box-shadow: var(--shadow-sm); overflow: hidden; }
.rte:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.rte-toolbar { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.rte-toolbar button { min-width: 34px; height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: none; font: 700 0.82rem var(--font); color: var(--ink-2); cursor: pointer; }
.rte-toolbar button:hover { background: var(--bg); box-shadow: var(--shadow-sm); }
.rte-area { min-height: 240px; padding: 14px; outline: none; }
.rte-area p, .rte-area ul, .rte-area ol { margin: 0 0 var(--s-2); }

/* ==========================================================================
   Public site
   ========================================================================== */
.site-bar-wrap { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.site-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); max-width: 1200px; margin: 0 auto; padding: 14px var(--s-5); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 9px; color: var(--ink-2); font-size: 0.92rem; }
.site-nav a:hover { background: var(--bg-muted); color: var(--ink); text-decoration: none; }
.site-nav .btn { margin-left: 8px; }
.site-main { max-width: 1200px; margin: 0 auto; padding: var(--s-5) var(--s-5) var(--s-8); }
.site-main > .notice { margin-top: var(--s-2); }

/* Hero */
.hero-wrap { background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--brand-100), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.hero { max-width: 880px; margin: 0 auto; padding: var(--s-8) var(--s-5) var(--s-7); text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 99px; background: var(--bg); border: 1px solid var(--brand-200); color: var(--brand-ink); font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow-sm); margin-bottom: var(--s-5); }
.hero-badge b { background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 99px; font-size: 0.72rem; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.05; margin-bottom: var(--s-4); }
.hero h1 em { font-style: normal; color: var(--brand); }
.lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-3); max-width: 620px; margin: 0 auto var(--s-6); }
.lede-sm { font-size: 1.05rem; color: var(--ink-3); max-width: 640px; }
.search-bar { display: flex; align-items: center; gap: 6px; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); max-width: 760px; margin: 0 auto; }
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 14px; min-width: 0; }
.search-field + .search-field { border-left: 1px solid var(--line); }
.search-field .icon { color: var(--ink-4); }
.search-bar input { border: 0 !important; box-shadow: none !important; padding: 0 !important; min-height: 48px; font-size: 1rem !important; background: transparent; }
.search-field-wide { flex: 1.6; }
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); color: var(--ink-3); font-size: 0.9rem; font-weight: 500; }
.hero-points span { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--ok); }

.section { margin-top: var(--s-7); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); margin-bottom: var(--s-4); }
.section-head h2 { margin: 0; font-size: 1.5rem; }
.section-head a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: var(--s-3); }
.cat-card { min-width: 0; }
.cat-more { margin-top: var(--s-3); }
.cat-more > summary { list-style: none; display: flex; width: max-content; margin: 0 auto; }
.cat-more > summary::-webkit-details-marker { display: none; }
.cat-more[open] > summary { display: none; }
.cat-card { --c: var(--brand); --c-bg: var(--brand-50); display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.cat-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; color: var(--ink); }
.cat-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--c-bg); color: var(--c); }
.cat-icon .icon { width: 24px; height: 24px; }
.cat-card strong { display: block; font-size: 0.98rem; font-weight: 700; line-height: 1.3; }
.cat-text { flex: 1; min-width: 0; }
.cat-card .cat-meta { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--ink-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-count { flex: none; align-self: flex-start; padding: 2px 9px; border-radius: 99px; background: var(--c-bg); color: var(--c); font-size: 0.75rem; font-weight: 800; }
.cat-c0 { --c: #4f46e5; --c-bg: #eef2ff; }
.cat-c1 { --c: #0284c7; --c-bg: #e0f2fe; }
.cat-c2 { --c: #059669; --c-bg: #d1fae5; }
.cat-c3 { --c: #d97706; --c-bg: #fef3c7; }
.cat-c4 { --c: #db2777; --c-bg: #fce7f3; }
.cat-c5 { --c: #7c3aed; --c-bg: #ede9fe; }

/* Job cards */
.job-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.job-list-2 { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.job-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color 0.15s, box-shadow 0.15s; }
.job-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-lg); }
.job-card-top { display: flex; gap: 14px; align-items: flex-start; }
.job-card-title { flex: 1; min-width: 0; }
.job-card h3 { margin: 0 0 2px; font-size: 1.05rem; }
.job-card h3 a { color: var(--ink); }
.job-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-lg); }
.job-card h3 a:hover { color: var(--brand); text-decoration: none; }
.job-card .company { font-size: 0.88rem; color: var(--ink-3); font-weight: 500; margin: 0; }
.job-card-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-3); }
.job-card-foot .apply-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; }

.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-4); }
.how-card { padding: var(--s-5); border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.how-card .cat-icon { margin-bottom: var(--s-4); }
.how-card h3 { margin-bottom: 6px; }
.how-card p { color: var(--ink-3); margin: 0; font-size: 0.95rem; }
.cta-band { margin-top: var(--s-7); padding: var(--s-6); border-radius: var(--r-xl); background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #cbd5e1; margin: 0; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn:hover { background: var(--brand-50); }

/* Listing */
.listing-head { padding: var(--s-3) 0 var(--s-4); }
.listing-head h1 { margin-bottom: 4px; }
.intro { max-width: 760px; margin-top: var(--s-3); color: var(--ink-2); }
.listing-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--s-6); align-items: start; }

/* Search toolbar: one search bar, a row of compact dropdown filters, removable chips. */
.crumbs-page { margin: var(--s-2) 0 var(--s-3); }
.crumbs-page span[aria-hidden] { color: var(--ink-4); }
.search-tools { margin-bottom: var(--s-5); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.search-bar-compact { max-width: none; margin: 0 0 var(--s-3); padding: 6px; border-radius: 14px; box-shadow: var(--shadow-sm); }
.search-bar-compact input { min-height: 42px !important; font-size: 0.95rem !important; }
.search-bar-compact .btn { min-height: 42px; padding: 0 22px; }
.filter-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-select select {
  width: auto; min-height: 36px; padding: 6px 34px 6px 14px; border-radius: 99px;
  border: 1px solid var(--line-strong); background-color: var(--bg); box-shadow: none;
  font: 600 0.86rem var(--font); color: var(--ink-2); cursor: pointer; background-position: right 10px center; background-size: 14px;
}
.pill-select select:hover { border-color: var(--ink-4); background-color: var(--bg-soft); }
.pill-select.is-set select { border-color: var(--brand); background-color: var(--brand-50); color: var(--brand-ink); }
.pill-toggle { position: relative; display: inline-flex; cursor: pointer; }
.pill-toggle input { position: absolute; opacity: 0; }
.pill-toggle span { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--bg); font: 600 0.86rem var(--font); color: var(--ink-2); }
.pill-toggle span { position: relative; }
.pill-toggle span::before { content: ''; width: 28px; height: 16px; border-radius: 99px; background: var(--line-strong); transition: background 0.15s; }
.pill-toggle span::after { content: ''; position: absolute; left: 16px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25); transition: left 0.15s; }
.pill-toggle:hover span { border-color: var(--ink-4); }
.pill-toggle input:focus-visible + span { box-shadow: var(--ring); }
.pill-toggle.is-set span { border-color: var(--brand); background: var(--brand-50); color: var(--brand-ink); }
.pill-toggle.is-set span::before { background: var(--brand); }
.pill-toggle.is-set span::after { left: 28px; }
.sort-select { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--ink-3); font-weight: 500; }
.sort-select select { width: auto; min-height: 36px; padding: 6px 32px 6px 10px; border: 0; box-shadow: none; background-color: transparent; font: 700 0.86rem var(--font); color: var(--ink); cursor: pointer; background-position: right 6px center; background-size: 14px; }
.sort-select select:hover { background-color: var(--bg-muted); }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: var(--s-3); }
.active-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 0.82rem; font-weight: 600; }
.active-chip span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: rgba(255, 255, 255, 0.18); font-size: 0.9rem; line-height: 1; }
.active-chip:hover { background: var(--ink-2); color: #fff; text-decoration: none; }
.clear-all { font-size: 0.85rem; margin-left: 4px; }


/* Mobile filter sheet pieces are hidden on larger screens. */
.mobile-filter-bar, .sheet-head, .sheet-foot, .sheet-backdrop, .cat-current { display: none; }
.pill-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 800; }

/* Category sidebar */
.cat-nav { position: sticky; top: 84px; }
.cat-nav-box > summary { display: flex; justify-content: space-between; align-items: center; list-style: none; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: var(--s-2); padding: 0 10px; cursor: default; }
.cat-nav-box > summary::-webkit-details-marker { display: none; }
.cat-nav-box > summary .icon { display: none; }
.cat-nav-list { list-style: none; padding: 0; margin: 0; }
.cat-nav-sub { margin: 2px 0 4px 12px; padding-left: 10px; border-left: 1.5px solid var(--line); }
.cat-nav-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
.cat-nav-link:hover { background: var(--bg-muted); color: var(--ink); text-decoration: none; }
.cat-nav-link.is-open { color: var(--ink); }
.cat-nav-link.is-current { background: var(--brand-50); color: var(--brand-ink); }
.cat-nav-link.is-empty { color: var(--ink-3); font-weight: 500; }
.cat-nav-count { flex: none; min-width: 24px; padding: 1px 7px; border-radius: 99px; background: var(--bg-muted); color: var(--ink-3); font-size: 0.72rem; font-weight: 700; text-align: center; }
.cat-nav-link.is-current .cat-nav-count { background: var(--brand); color: #fff; }
.cat-nav-link.is-empty .cat-nav-count { background: transparent; color: var(--ink-4); }
.cat-nav-all { margin-bottom: 4px; }
.results-meta { margin: 0 0 var(--s-3); color: var(--ink-3); font-size: 0.9rem; }
.results-meta strong { color: var(--ink); }
.pager { display: flex; align-items: center; justify-content: center; gap: var(--s-4); margin: var(--s-5) 0; }
.faq { margin-top: var(--s-7); }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: var(--s-2); }
.faq details[open] { border-color: var(--brand-200); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: var(--s-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: var(--s-3) 0 0; color: var(--ink-3); }

/* Job page */
.job-hero { display: flex; gap: var(--s-4); align-items: flex-start; margin-bottom: var(--s-5); }
.job-hero h1 { margin-bottom: 6px; }
.job-company { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ink-3); font-size: 0.98rem; font-weight: 500; margin: 0; }
.job-company a { color: var(--ink); font-weight: 700; }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s-6); align-items: start; }
.key-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s-3); margin: 0 0 var(--s-3); }
.key-facts > div { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); }
.key-facts .kf-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--bg); color: var(--brand); border: 1px solid var(--line); }
.key-facts dt { font-size: 0.75rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.key-facts dd { margin: 0; font-weight: 700; font-size: 0.95rem; line-height: 1.35; }
.key-facts .key-promise { background: var(--brand-50); border-color: var(--brand-100); }
.key-facts .key-promise .kf-icon { background: var(--brand); color: #fff; border-color: var(--brand); }
.key-facts .key-promise dd { color: var(--brand-ink); }
.key-facts-row { max-width: 900px; margin-bottom: var(--s-6); }
.posted-line { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--ink-3); margin-bottom: var(--s-5); }
.posted-line span { display: inline-flex; align-items: center; gap: 6px; }
.content-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5) var(--s-5) var(--s-3); margin-bottom: var(--s-4); }
.prose { color: var(--ink-2); line-height: 1.7; }
.prose h3, .prose h4 { color: var(--ink); margin-top: var(--s-4); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--brand); }
.company-mini { display: flex; gap: 14px; align-items: center; margin-bottom: var(--s-3); }
.company-mini strong { display: block; font-size: 1.05rem; }
.reply-record { display: flex; align-items: center; gap: var(--s-3); padding: 14px; background: var(--ok-50); border-radius: var(--r); color: #065f46; font-size: 0.9rem; }
.reply-record strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ok); }
.apply-card { position: sticky; top: 84px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-5); box-shadow: var(--shadow-lg); }
.apply-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.apply-card .field { margin-bottom: 14px; }
.apply-perks { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s-3) 0 var(--s-4); }
.mobile-apply { display: none; }
.similar { margin-top: var(--s-7); }

/* Confirmation */
.applied { max-width: 620px; margin: var(--s-6) auto 0; text-align: center; }
.success-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok-100); color: var(--ok); margin-bottom: var(--s-4); box-shadow: 0 0 0 8px var(--ok-50); }
.success-icon .icon { width: 32px; height: 32px; stroke-width: 2.5; }
.applied h1 { margin-bottom: var(--s-2); }
.applied .lede-sm { margin: 0 auto var(--s-5); }
.code-card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-6) var(--s-5) var(--s-5); margin: var(--s-4) 0; box-shadow: var(--shadow-lg); overflow: hidden; }
.code-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: var(--brand); }
.code-card-quiet { box-shadow: none; background: var(--bg-soft); }
.code-card-quiet::before { display: none; }
.code-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 700; margin: 0; }
.code-big { font-family: var(--mono); font-size: clamp(2.1rem, 9vw, 3.4rem); font-weight: 700; letter-spacing: 0.04em; color: var(--brand); margin: var(--s-2) 0 var(--s-4); user-select: all; line-height: 1.1; }
.code-mid { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.04em; margin: 6px 0 var(--s-2); user-select: all; }
.code-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.next-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-5); }

/* Track / OTP / My applications */
.narrow-page { max-width: 520px; margin: var(--s-6) auto 0; }
.narrow-page.wide { max-width: 800px; }
.narrow-page > h1 { font-size: 2rem; }
.page-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-50); color: var(--brand); margin-bottom: var(--s-4); }
.page-icon .icon { width: 26px; height: 26px; }
.card-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-5); margin: var(--s-5) 0; box-shadow: var(--shadow); }
.device-list { margin: var(--s-5) 0; }
.device-list h2 { font-size: 1rem; }
.device-list ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.device-list form { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.device-list form > span { display: flex; flex-direction: column; min-width: 0; }

.track-head { display: flex; gap: var(--s-4); align-items: center; margin-bottom: var(--s-5); }
.track-head h1 { margin: 0 0 2px; font-size: 1.6rem; }
.track-head p { margin: 0; }
.promise { display: flex; gap: var(--s-3); align-items: flex-start; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-ink); padding: 14px 16px; border-radius: var(--r); margin: 0 0 var(--s-5); font-size: 0.93rem; }
.promise .icon { margin-top: 2px; color: var(--brand); }
.promise-kept { background: var(--ok-50); border-color: var(--ok-100); color: #065f46; }
.promise-kept .icon { color: var(--ok); }
.promise-late { background: var(--bad-50); border-color: var(--bad-100); color: #991b1b; }
.promise-late .icon { color: var(--bad); }

/* Courier-style progress (UX-05) */
.timeline-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-5); box-shadow: var(--shadow); margin-bottom: var(--s-5); }
.timeline { list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 0 0 26px 52px; min-height: 52px; }
.step::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line-strong) 0 5px, transparent 5px 10px); }
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step-done::before { background: var(--brand); }
.step-dot { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line-strong); color: var(--ink-4); }
.step-dot .icon { width: 18px; height: 18px; stroke-width: 2.5; }
.step-done .step-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.step-current .step-dot { border-color: var(--brand); color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.1); }
.step-current .step-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: pulse 1.6s ease-in-out infinite; }
.step-final .step-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.step-rejected.step-final .step-dot { background: var(--ink-3); border-color: var(--ink-3); }
.step-body { padding-top: 6px; }
.step-label { font-weight: 700; margin: 0; }
.step-upcoming .step-label { color: var(--ink-4); font-weight: 600; }
.step-current .step-label { color: var(--brand); }
.step-date { font-size: 0.82rem; color: var(--ink-3); margin: 2px 0 0; }
.step-msg { margin: var(--s-2) 0 0; padding: 10px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-2); font-size: 0.92rem; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.6); opacity: 0.5; } }

.app-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.app-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: 18px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
.app-row:hover { border-color: var(--brand-200); box-shadow: var(--shadow-lg); text-decoration: none; color: var(--ink); }
.app-left { display: flex; gap: 14px; align-items: center; min-width: 0; }
.app-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-info strong { font-size: 1rem; }
.app-info .muted { font-weight: 500; }
.app-status { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; flex: none; }
.late { color: var(--bad); font-weight: 700; }
.id-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: var(--brand-50); color: var(--brand-ink); font-family: var(--mono); font-weight: 700; font-size: 0.9rem; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-soft); }
.site-foot-inner { max-width: 1200px; margin: 0 auto; padding: var(--s-6) var(--s-5); display: flex; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; color: var(--ink-3); font-size: 0.9rem; }
.site-foot-inner nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.site-foot-inner nav a { color: var(--ink-2); font-weight: 500; }



/* ---------- Sign-in pages and candidate account ---------- */
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.label-row a { font-size: 0.82rem; }
.card-foot { margin: var(--s-4) 0 0; text-align: center; }
.notice-info { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-ink); }
.head-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.head-actions form { display: inline; }
.applied-title { font-size: 1.25rem; margin: 8px 0 6px; }
.applied .code-card { text-align: center; }
.applied .code-card .btn-block { margin-top: var(--s-4); }
input[readonly] { background: var(--bg-muted); color: var(--ink-2); }

/* ---------- Header menu, footer, table wrappers (all sizes) ---------- */
.menu-toggle { display: none; position: relative; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); cursor: pointer; place-items: center; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .menu-icon-close { display: none; }
.menu-toggle[aria-expanded=true] .menu-icon-open { display: none; }
.menu-toggle[aria-expanded=true] .menu-icon-close { display: grid; }
.menu-toggle > span { display: grid; place-items: center; }
.menu-dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); border: 2px solid var(--bg); }
.nav-icon { display: none; }
.site-nav a.is-active:not(.btn) { color: var(--brand); }

.site-foot-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); }
.foot-brand p { margin: var(--s-3) 0 0; max-width: 320px; color: var(--ink-3); font-size: 0.9rem; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h2 { margin: 0 0 4px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.foot-col a { color: var(--ink-2); font-weight: 500; font-size: 0.92rem; }
.foot-bottom { max-width: 1200px; margin: 0 auto; padding: var(--s-4) var(--s-5); display: flex; justify-content: space-between; gap: var(--s-3); border-top: 1px solid var(--line); color: var(--ink-4); font-size: 0.82rem; }

.side-top { display: flex; align-items: center; justify-content: space-between; }
.side-body { display: flex; flex-direction: column; gap: var(--s-5); flex: 1; min-height: 0; }
.table-wrap { margin-bottom: var(--s-6); }
.table-wrap > .table { margin-bottom: 0; }

/* ---------- HR applications inbox and detail ---------- */
.nav-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 700; text-align: center; }
.tabs .count-bad { background: var(--bad-50); color: var(--bad); }
.inbox-search { display: flex; gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }
.inbox-search .search-field { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-sm); }
.inbox-search .search-field:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.inbox-search .search-field input { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.inbox-search .search-field .icon { color: var(--ink-4); }
.inbox-search { align-items: center; }
.inbox-search .pill-select select { min-height: 44px; }
.bulk-bar { position: sticky; top: 12px; z-index: 15; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding: 10px 12px 10px 18px; margin-bottom: var(--s-3); background: var(--ink); color: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.bulk-bar select, .bulk-bar input { width: auto; min-height: 36px; padding: 6px 12px; font-size: 0.88rem; }
.bulk-bar select { padding-right: 34px; }
.bulk-bar input { flex: 1; min-width: 200px; }
.bulk-bar[hidden] { display: none; }
.col-check { width: 44px; }
.col-check input { width: 17px; height: 17px; accent-color: var(--brand); }
.inbox tr.is-unread td { background: #fafbff; }
.inbox tr.is-unread .row-title { color: var(--ink); }
.inbox tr.is-unread .row-title::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--brand); vertical-align: middle; }
.cand { display: flex; align-items: center; gap: 12px; }
.row-sub-link { color: var(--ink-2); font-weight: 600; font-size: 0.88rem; }
.due { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 0.78rem; font-weight: 600; color: var(--ink-3); }
.due-warn { color: var(--warn); }
.due-bad { color: var(--bad); }

.cand-head { display: flex; align-items: center; gap: var(--s-4); margin: var(--s-2) 0 var(--s-5); flex-wrap: wrap; }
.cand-head h1 { margin: 0 0 4px; }
.cand-head p { margin: 0; }
.pill-lg { padding: 6px 14px; font-size: 0.85rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-5); align-items: start; }
.detail-grid .key-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--s-4); }
.detail-grid .key-facts > div { background: var(--bg); }
.detail-grid .key-facts dd { overflow-wrap: anywhere; }
.resume-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }
.resume-frame { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-muted); margin-bottom: var(--s-3); }
.status-card { position: sticky; top: 16px; }
.status-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: var(--s-4); }
.status-option { position: relative; cursor: pointer; }
.status-option input { position: absolute; opacity: 0; }
.status-option span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px; border: 1.5px solid var(--line-strong); border-radius: 10px; font-weight: 700; font-size: 0.88rem; color: var(--ink-2); background: var(--bg); transition: all 0.12s; }
.status-option:hover span { border-color: var(--brand-200); background: var(--brand-50); }
.status-option input:focus-visible + span { box-shadow: var(--ring); }
.status-option input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.status-option-rejected input:checked + span { border-color: var(--ink-3); background: var(--ink-3); }
.status-option-hired input:checked + span, .status-option-offered input:checked + span { border-color: var(--ok); background: var(--ok); }
.history { list-style: none; padding: 0; margin: 0 0 var(--s-3); display: grid; gap: var(--s-3); }
.history li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: 0; padding-bottom: 0; }
.history-msg { flex-basis: 100%; margin: 0; padding: 8px 12px; background: var(--bg-soft); border-radius: 8px; font-size: 0.88rem; color: var(--ink-2); }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plain-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); }
.count-link { color: var(--ink); }
.count-link:hover { color: var(--brand); }

/* ---------- HR applications inbox and detail ---------- */
.nav-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 700; text-align: center; }
.tabs .count-bad { background: var(--bad-50); color: var(--bad); }
.inbox-search { display: flex; gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }
.inbox-search .search-field { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-sm); }
.inbox-search .search-field:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.inbox-search .search-field input { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.inbox-search .search-field .icon { color: var(--ink-4); }
.inbox-search { align-items: center; }
.inbox-search .pill-select select { min-height: 44px; }
.bulk-bar { position: sticky; top: 12px; z-index: 15; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding: 10px 12px 10px 18px; margin-bottom: var(--s-3); background: var(--ink); color: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.bulk-bar select, .bulk-bar input { width: auto; min-height: 36px; padding: 6px 12px; font-size: 0.88rem; }
.bulk-bar select { padding-right: 34px; }
.bulk-bar input { flex: 1; min-width: 200px; }
.bulk-bar[hidden] { display: none; }
.col-check { width: 44px; }
.col-check input { width: 17px; height: 17px; accent-color: var(--brand); }
.inbox tr.is-unread td { background: #fafbff; }
.inbox tr.is-unread .row-title { color: var(--ink); }
.inbox tr.is-unread .row-title::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--brand); vertical-align: middle; }
.cand { display: flex; align-items: center; gap: 12px; }
.row-sub-link { color: var(--ink-2); font-weight: 600; font-size: 0.88rem; }
.due { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 0.78rem; font-weight: 600; color: var(--ink-3); }
.due-warn { color: var(--warn); }
.due-bad { color: var(--bad); }

.cand-head { display: flex; align-items: center; gap: var(--s-4); margin: var(--s-2) 0 var(--s-5); flex-wrap: wrap; }
.cand-head h1 { margin: 0 0 4px; }
.cand-head p { margin: 0; }
.pill-lg { padding: 6px 14px; font-size: 0.85rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-5); align-items: start; }
.detail-grid .key-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--s-4); }
.detail-grid .key-facts > div { background: var(--bg); }
.detail-grid .key-facts dd { overflow-wrap: anywhere; }
.resume-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }
.resume-frame { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-muted); margin-bottom: var(--s-3); }
.status-card { position: sticky; top: 16px; }
.status-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: var(--s-4); }
.status-option { position: relative; cursor: pointer; }
.status-option input { position: absolute; opacity: 0; }
.status-option span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px; border: 1.5px solid var(--line-strong); border-radius: 10px; font-weight: 700; font-size: 0.88rem; color: var(--ink-2); background: var(--bg); transition: all 0.12s; }
.status-option:hover span { border-color: var(--brand-200); background: var(--brand-50); }
.status-option input:focus-visible + span { box-shadow: var(--ring); }
.status-option input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.status-option-rejected input:checked + span { border-color: var(--ink-3); background: var(--ink-3); }
.status-option-hired input:checked + span, .status-option-offered input:checked + span { border-color: var(--ok); background: var(--ok); }
.history { list-style: none; padding: 0; margin: 0 0 var(--s-3); display: grid; gap: var(--s-3); }
.history li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.history li:last-child { border-bottom: 0; padding-bottom: 0; }
.history-msg { flex-basis: 100%; margin: 0; padding: 8px 12px; background: var(--bg-soft); border-radius: 8px; font-size: 0.88rem; color: var(--ink-2); }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plain-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); }
.count-link { color: var(--ink); }
.count-link:hover { color: var(--brand); }


/* ---------- Billing, payments, roles ---------- */
.nav-credit { margin-left: auto; padding: 1px 8px; border-radius: 99px; background: var(--ok-50); color: var(--ok); font-size: 0.72rem; font-weight: 800; }
.nav-credit.is-low { background: var(--bad-50); color: var(--bad); }
.credit-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.credit-banner .btn { margin-left: auto; }
.billing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-5); align-items: start; }
.credit-card { position: relative; overflow: hidden; padding: var(--s-5); margin-bottom: var(--s-4); border-radius: var(--r-xl); background: var(--brand); color: #fff; box-shadow: var(--shadow-lg); }
.credit-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.credit-card.is-low { background: #b45309; }
.credit-card.is-out { background: var(--bad); }
.credit-label { margin: 0; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.credit-amount { margin: 6px 0 4px; font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.credit-sub { margin: 0; opacity: 0.9; }
.credit-warn { display: flex; align-items: center; gap: 6px; margin: var(--s-3) 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.16); font-size: 0.88rem; font-weight: 600; }
.stats-2 { grid-template-columns: 1fr 1fr; margin-bottom: var(--s-4); }
.ledger { list-style: none; padding: 0; margin: 0; }
.ledger li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: 12px 0; border-bottom: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 0; }
.ledger-main { display: flex; flex-direction: column; min-width: 0; }
.ledger-main > span:first-child { font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger-amt { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ledger-amt.is-credit { color: var(--ok); }
.recharge-card { position: sticky; top: 16px; }
.steps { margin: 0 0 var(--s-4); padding-left: 1.2em; color: var(--ink-2); font-size: 0.92rem; }
.steps li { margin-bottom: 6px; }
.steps li::marker { color: var(--brand); font-weight: 800; }
.qr-box { text-align: center; padding: var(--s-4); margin-bottom: var(--s-4); border: 1.5px dashed var(--brand-200); border-radius: var(--r-lg); background: var(--brand-50); }
.qr-box img { display: block; margin: 0 auto var(--s-3); padding: 10px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.qr-upi { margin: 0 0 4px; font-weight: 700; }
.count-badge { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; margin-left: 6px; border-radius: 99px; background: var(--brand-50); color: var(--brand); font-size: 0.85rem; vertical-align: middle; }
.pay-list { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.pay-card { padding: var(--s-5); background: var(--bg); border: 1px solid var(--brand-200); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); }
.pay-head h3 { margin: 0 0 2px; }
.pay-amount { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--brand); white-space: nowrap; }
.pay-facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin: var(--s-3) 0 var(--s-4); }
.pay-facts dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.pay-facts dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.pay-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.pay-form { display: flex; gap: 10px; align-items: flex-end; }
.pay-form .field { flex: 1; margin: 0; }
.section-block { margin-top: var(--s-6); }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: var(--s-3); }
.role-card { display: flex; flex-direction: column; padding: var(--s-4) var(--s-5); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.role-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.role-card-head h3 { margin: 0; }
.perm-list { list-style: none; padding: 0; margin: var(--s-2) 0; display: grid; gap: 4px; font-size: 0.85rem; }
.perm-list li { display: flex; align-items: center; gap: 6px; }
.perm-list li.has { color: var(--ink-2); }
.perm-list li.has .icon { color: var(--ok); }
.perm-list li.not { color: var(--ink-4); }
.role-card-foot { margin: auto 0 var(--s-2); }
.role-edit > summary { list-style: none; display: inline-flex; }
.role-edit > summary::-webkit-details-marker { display: none; }
.role-edit[open] { margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.role-edit[open] > summary { margin-bottom: var(--s-3); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 8px; margin: 0 0 var(--s-3); padding: 0; border: 0; }
.perm-grid legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 0.875rem; color: var(--ink-2); }
.perm { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--bg); }
.perm:hover { border-color: var(--brand-200); }
.perm input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.perm span { display: flex; flex-direction: column; font-size: 0.88rem; }
.perm small { color: var(--ink-3); font-size: 0.78rem; }
.perm:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.form-inline-actions { display: flex; gap: 8px; margin-bottom: var(--s-3); }
.inline-role { display: inline-block; }
.inline-role select { min-height: 34px; }
.role-name { font-weight: 600; }
@media (max-width: 1100px) { .billing-grid { grid-template-columns: minmax(0, 1fr); } .recharge-card { position: static; } }
@media (max-width: 640px) {
  .pay-actions { grid-template-columns: 1fr; }
  .pay-form { flex-direction: column; align-items: stretch; }
  .pay-head { flex-direction: column; }
  .credit-banner .btn { margin-left: 0; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Small laptops and tablets */
@media (max-width: 1100px) {
  .col-opt { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .status-card { position: static; }
  .job-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-5); }
  .app-main { padding: var(--s-5) var(--s-5) var(--s-7); }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }
  .table-scroll > .table { min-width: 680px; }
}

/* Tablets */
@media (max-width: 960px) {
  .listing-grid, .job-layout { grid-template-columns: 1fr; }
  .apply-card, .cat-nav { position: static; }
  .mobile-apply { display: flex; width: 100%; margin-bottom: var(--s-4); }
  .cat-nav-box { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
  .cat-nav-box > summary { margin: 0; padding: 4px 6px; cursor: pointer; }
  .cat-nav-box > summary .icon { display: block; }
  .cat-nav-box[open] > summary { margin-bottom: var(--s-2); }

  /* Public header: menu button with a dropdown panel. */
  .site-bar { position: relative; }
  html.js .menu-toggle { display: grid; }
  html.js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: var(--s-3) var(--s-4) var(--s-4); background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px -16px rgba(15, 23, 42, 0.25);
  }
  html.js .site-nav.is-open { display: flex; }
  html.js .site-nav a:not(.btn) { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; font-size: 1rem; }
  html.js .site-nav .nav-icon { display: block; color: var(--ink-4); }
  html.js .site-nav .nav-cta { margin: var(--s-2) 0 0; min-height: 46px; font-size: 0.95rem; }
  html:not(.js) .site-bar { flex-wrap: wrap; }
  html:not(.js) .site-nav { flex-wrap: wrap; }

  /* Dashboard: sidebar becomes a top bar with a drawer. */
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 40; height: auto; padding: 12px var(--s-4); gap: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  html.js .sidebar .menu-toggle { display: grid; }
  html.js .side-body { display: none; padding-top: var(--s-4); gap: var(--s-4); }
  html.js .side-body.is-open { display: flex; max-height: calc(100vh - 70px); overflow-y: auto; }
  .side-nav a { padding: 12px; font-size: 1rem; }
  .side-cta { min-height: 46px; }
  .side-user { margin-top: 0; }
  .app-main { padding: var(--s-5) var(--s-4) var(--s-7); }

  .site-foot-inner { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* Phones */
@media (max-width: 640px) {
  body { font-size: 15px; }
  h1 { font-size: 1.6rem; }
  .site-bar { padding: 10px var(--s-4); }
  .brand { font-size: 1.1rem; }
  .brand img { width: 28px; height: 28px; }
  .site-main { padding: var(--s-4) var(--s-4) var(--s-7); }
  .section { margin-top: var(--s-6); }
  .section-head h2 { font-size: 1.25rem; }

  .hero { padding: var(--s-6) var(--s-4) var(--s-6); }
  .hero-badge { font-size: 0.75rem; padding: 4px 10px 4px 5px; margin-bottom: var(--s-4); }
  .hero-badge b { font-size: 0.65rem; }
  .hero h1 { font-size: 2.3rem; }
  .lede { font-size: 1rem; margin-bottom: var(--s-5); }
  .search-bar { flex-direction: column; align-items: stretch; border-radius: 16px; }
  .search-field + .search-field { border-left: 0; border-top: 1px solid var(--line); }
  .search-bar .btn { width: 100%; }
  .hero-points { gap: 6px 14px; font-size: 0.82rem; }
  .cat-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cat-card { padding: 14px; }
  .cat-icon { width: 42px; height: 42px; border-radius: 12px; }
  .job-list-2 { grid-template-columns: 1fr; }
  .job-card { padding: 16px; gap: 12px; }
  .how-grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .how-card { padding: var(--s-4); }
  .cta-band { padding: var(--s-5); border-radius: var(--r-lg); }
  .cta-band .btn { width: 100%; }

  /* Job and company pages: compact two-column facts. */
  .job-hero { gap: 12px; margin-bottom: var(--s-4); }
  .job-hero .avatar-lg { width: 52px; height: 52px; font-size: 1.3rem; border-radius: 14px; }
  .job-hero h1 { font-size: 1.45rem; }
  .job-company { font-size: 0.9rem; }
  .key-facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .key-facts > div { padding: 10px; gap: 10px; }
  .key-facts .kf-icon { width: 30px; height: 30px; border-radius: 8px; }
  .key-facts .kf-icon .icon { width: 16px; height: 16px; }
  .key-facts dt { font-size: 0.68rem; }
  .key-facts dd { font-size: 0.88rem; }
  .key-facts .kf-wide, .key-facts .kf-wide-sm { grid-column: 1 / -1; }
  .content-card { padding: var(--s-4) var(--s-4) var(--s-2); }
  .apply-card { padding: var(--s-4); border-radius: var(--r-lg); }
  .reply-record { flex-direction: column; align-items: flex-start; gap: 4px; }

  /* Confirmation, tracking, candidate pages */
  .narrow-page { margin-top: var(--s-4); }
  .narrow-page > h1 { font-size: 1.6rem; }
  .card-form, .code-card, .timeline-card { padding: var(--s-4); border-radius: var(--r-lg); }
  .code-actions .btn { flex: 1; }
  .next-links .btn { flex: 1; }
  .track-head .avatar-lg { width: 52px; height: 52px; font-size: 1.3rem; }
  .track-head h1 { font-size: 1.35rem; }
  .app-row { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  .app-status { align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; }

  /* Footer */
  .site-foot-inner { padding: var(--s-5) var(--s-4); gap: var(--s-5); }
  .foot-bottom { padding: var(--s-3) var(--s-4); }

  /* Dashboard pages */
  .page-head { flex-direction: column; align-items: stretch; gap: var(--s-3); margin-bottom: var(--s-4); }
  .page-head h1 { font-size: 1.5rem; }
  .page-head > .btn, .page-head > div:not(.head-actions) > .btn { width: 100%; }
  .usage { flex-direction: column; align-items: flex-start; gap: 6px; }
  .meter { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .stats > div { padding: var(--s-4); }
  .stats dd { font-size: 1.6rem; }
  .form-section { padding: var(--s-4) var(--s-4) var(--s-1); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 calc(-1 * var(--s-4)); padding: var(--s-3) var(--s-4); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -12px rgba(15, 23, 42, 0.2); }
  .form-actions .btn { width: 100%; min-height: 46px; font-size: 0.92rem; }
  .form-actions .btn-primary { grid-column: 1 / -1; }
  .cand-head { gap: 12px; }
  .cand-head .avatar-lg { width: 52px; height: 52px; font-size: 1.3rem; }
  .cand-head h1 { font-size: 1.4rem; }
  .cand-head > .pill { order: 3; }
  .job-company .sep { display: none; }
  .job-company { gap: 4px 10px; }
  .resume-frame { height: 480px; }
  .resume-head .btn { flex: 1; }
  .resume-head > div { width: 100%; }

  /* Tables become labelled cards. */
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; }
  .table-cards { border: 0; background: transparent; box-shadow: none; }
  .table-cards thead { display: none; }
  .table-cards tbody { display: grid; gap: 10px; }
  .table-cards tr { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
  .table-cards tr.is-unread { background: #fafbff; border-color: var(--brand-100); }
  .table-cards td, .table-cards tbody tr:hover td, .inbox tr.is-unread td { padding: 0; border: 0; background: transparent; text-align: left !important; }
  .table-cards td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); }
  .table-cards .cell-main, .table-cards .cell-wide, .table-cards .row-actions, .table-cards td[colspan] { grid-column: 1 / -1; }
  .table-cards .row-actions { display: flex; gap: 6px; padding-top: 10px !important; border-top: 1px solid var(--line) !important; }
  .table-cards .row-actions > * { margin: 0; }
  .table-cards .row-actions .menu { margin-left: auto; }
  .table-cards .menu-list { right: 0; left: auto; }
  .table-cards .col-check { position: absolute; top: 14px; right: 14px; width: auto; }
  .table-cards .cell-main { padding-right: 32px; }
  .table-cards .col-opt { display: block; }
  .table-scroll { overflow: visible; }
  .table-scroll > .table { min-width: 0; }
  .tree-table th:nth-child(3), .tree-table td:nth-child(3) { display: none; }
  .tree-table th, .tree-table td { padding: 10px; }
  .tree-table .tree-cell { padding-left: calc(10px + var(--depth) * 14px) !important; }
  .tree-table .tree-cell::before { left: calc(10px + var(--depth) * 14px - 10px); width: 6px; }
  .tree-table .menu-wide { min-width: 0; width: calc(100vw - 48px); max-width: 320px; }
  .bulk-bar { top: 70px; }
  .bulk-bar select, .bulk-bar input { flex: 1 1 100%; }
  .bulk-bar .btn { flex: 1 1 100%; }
  .status-options { grid-template-columns: 1fr 1fr; }

  .center-card { padding: var(--s-4); align-items: start; padding-top: var(--s-7); }
  .card { padding: var(--s-5) var(--s-4); }
}



/* Hero: category in the search bar, and quick category chips */
.search-bar-hero { max-width: 920px; }
.search-field-cat { flex: 1.1; }
.search-field-cat select { border: 0 !important; box-shadow: none !important; padding: 0 28px 0 0 !important; min-height: 48px; font-size: 1rem; background-color: transparent; background-position: right 0 center; color: var(--ink); cursor: pointer; }
.search-field-cat select:focus { box-shadow: none !important; }
.search-field:focus-within { border-radius: 10px; box-shadow: inset 0 0 0 2px var(--brand-100); }
.hero-cats { max-width: 860px; margin: var(--s-4) auto 0; }
.hero-cats-label { flex: none; align-self: center; margin-right: 2px; font-size: 0.85rem; font-weight: 600; color: var(--ink-3); }
.hero-cats-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-cat { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); font-size: 0.85rem; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-sm); transition: border-color 0.15s, color 0.15s, background 0.15s; }
.hero-cat .icon { color: var(--brand); }
.hero-cat:hover { border-color: var(--brand); background: var(--brand-50); color: var(--brand-ink); text-decoration: none; }
.hero-cat-count { padding: 0 7px; border-radius: 99px; background: var(--brand-50); color: var(--brand); font-size: 0.72rem; font-weight: 800; }
.hero-cat-all { border-style: dashed; color: var(--brand); }
.hero-cats + .hero-points { margin-top: var(--s-4); }
@media (max-width: 960px) {
  .search-bar-hero { flex-wrap: wrap; }
  .search-bar-hero .search-field-wide { flex-basis: 100%; border-bottom: 1px solid var(--line); }
  .search-bar-hero .search-field-wide + .search-field { border-left: 0; }
}
@media (max-width: 640px) {
  .search-bar-hero { flex-direction: column; flex-wrap: nowrap; }
  .search-bar-hero .search-field-wide { border-bottom: 0; }
  .hero-cats { margin-left: calc(-1 * var(--s-4)); margin-right: calc(-1 * var(--s-4)); }
  .hero-cats-row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 2px var(--s-4) 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  .hero-cats-row::-webkit-scrollbar { display: none; }
}


/* Compact hero: search and categories on the first screen */
.hero { padding: 36px var(--s-5) 26px; max-width: 960px; }
.hero-badge { margin-bottom: 14px; padding: 4px 12px 4px 6px; font-size: 0.8rem; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 10px; }
.hero .lede { font-size: 1.05rem; margin: 0 auto 22px; max-width: 640px; }
.hero-cats { margin-top: 14px; }
.hero-search-icon { display: none; }
.hero-wrap + .site-main .section:first-of-type { margin-top: 28px; }
.hero-wrap + .site-main > .notice + .section, .hero-wrap + .site-main > .section:first-child { margin-top: 28px; }
@media (max-width: 640px) {
  .hero { padding: 18px var(--s-4) 16px; }
  .hero-badge { display: none; }
  .hero h1 { font-size: 1.65rem; margin-bottom: 6px; }
  .hero h1 em { display: block; }
  .hero .lede { font-size: 0.92rem; margin-bottom: 14px; }
  /* Two rows: [job title | search button] then [category | city] */
  .search-bar-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) 46px; gap: 0; padding: 4px; border-radius: 14px; }
  .search-bar-hero .search-field-cat > .icon { display: none; }
  .search-bar-hero .search-field { padding: 0 10px; min-width: 0; }
  .search-bar-hero .search-field input, .search-bar-hero .search-field select { min-height: 44px !important; font-size: 0.95rem !important; }
  .search-bar-hero .search-field-wide { grid-column: 1 / 3; grid-row: 1; border: 0; }
  .search-bar-hero .search-field-cat { grid-column: 1; grid-row: 2; border-top: 1px solid var(--line) !important; border-left: 0 !important; border-right: 1px solid var(--line); }
  .search-bar-hero .search-field-cat + .search-field { grid-column: 2 / 4; grid-row: 2; border-top: 1px solid var(--line) !important; border-left: 0 !important; }
  .search-bar-hero .hero-search-btn { grid-column: 3; grid-row: 1; width: 42px !important; min-height: 42px; height: 42px; padding: 0; align-self: center; justify-self: end; border-radius: 10px; }
  .hero-search-icon { display: block; width: 20px; height: 20px; }
  .hero-search-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .search-field-cat select { padding-right: 20px !important; background-size: 14px; }
  .hero-cats { margin-top: 12px; }
  .hero-wrap + .site-main .section:first-of-type { margin-top: 20px; }
}

/* ---------- Mobile: filters in a bottom sheet ---------- */
@media (max-width: 640px) {
  .search-tools { padding-bottom: var(--s-3); margin-bottom: var(--s-4); }
  .search-bar-compact { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 6px; margin-bottom: var(--s-3); }
  .search-bar-compact .search-field-wide { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .search-bar-compact .search-field + .search-field { border-top: 0; }
  .search-bar-compact .btn { width: auto; min-height: 40px; padding: 0 18px; }
  .mobile-filter-bar { display: flex; gap: 8px; align-items: center; }
  .mobile-filter-btn { min-height: 38px; border-radius: 99px; padding: 0 14px; }
  .mobile-filter-bar .pill-select { margin-left: auto; }
  .mobile-filter-bar .pill-select select { min-height: 38px; }

  /* No JS: show the filters inline, stacked neatly. */
  html:not(.js) .mobile-filter-bar { display: none; }
  html:not(.js) .filter-pills { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  html:not(.js) .pill-select select { width: 100%; }

  html.js .filter-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 88vh; overflow-y: auto;
    padding: 0 var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom)); background: var(--bg);
    border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
    transform: translateY(105%); visibility: hidden; transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  html.js .filter-sheet.is-open { transform: none; visibility: visible; transition: transform 0.25s ease; }
  html.js .sheet-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(15, 23, 42, 0.45); }
  html.js .sheet-backdrop.is-open { display: block; }
  html.js .sheet-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: var(--s-4) 0 var(--s-3); background: var(--bg); }
  html.js .sheet-head::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 99px; background: var(--line-strong); }
  html.js .sheet-head strong { font-size: 1.1rem; font-weight: 800; }
  .sheet-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--bg-muted); color: var(--ink-2); font-size: 1.3rem; line-height: 1; cursor: pointer; }
  html.js .filter-sheet .filter-row { display: block; }
  html.js .filter-sheet .filter-pills { display: flex; flex-direction: column; gap: var(--s-4); }
  html.js .filter-sheet .pill-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 700; color: var(--ink-2); }
  html.js .filter-sheet .pill-select select { width: 100%; min-height: 48px; border-radius: 12px; padding: 10px 40px 10px 14px; font-size: 0.95rem; font-weight: 500; background-position: right 14px center; }
  html.js .filter-sheet .pill-toggle span { width: 100%; min-height: 48px; border-radius: 12px; font-size: 0.95rem; justify-content: space-between; flex-direction: row-reverse; padding: 0 14px; }
  html.js .filter-sheet .pill-toggle span::after { left: auto; right: 28px; }
  html.js .filter-sheet .pill-toggle.is-set span::after { right: 16px; }
  html.js .filter-sheet .sort-select { display: none; }
  html.js .sheet-foot { position: sticky; bottom: calc(-1 * var(--s-4)); display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-2); margin-top: var(--s-5); padding: var(--s-3) 0 var(--s-4); background: var(--bg); border-top: 1px solid var(--line); }
  html.js .sheet-foot .btn { min-height: 48px; }
  body.sheet-open { overflow: hidden; }

  .active-filters { flex-wrap: nowrap; overflow-x: auto; margin: var(--s-3) calc(-1 * var(--s-4)) 0; padding: 0 var(--s-4) 2px; scrollbar-width: none; }
  .active-filters::-webkit-scrollbar { display: none; }
  .active-chip, .clear-all { flex: none; }

  /* Category picker collapses to one row showing the current category. */
  .cat-nav-box { padding: 0; }
  .cat-nav-box > summary { padding: 12px 14px; text-transform: none; letter-spacing: 0; font-size: 0.92rem; color: var(--ink); }
  .cat-nav-box > summary > span { display: flex; flex-direction: column; }
  .cat-nav-box > summary > span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
  .cat-current { display: block; margin-top: 2px; font-size: 0.95rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--ink); }
  .cat-nav-box[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 0; }
  .cat-nav-box[open] { padding-bottom: 8px; }
  .cat-nav-box[open] > .cat-nav-link, .cat-nav-box[open] > .cat-nav-list { margin: 4px 8px 0; }

  .inbox-search { display: grid; grid-template-columns: 1fr 1fr; }
  .inbox-search .search-field { grid-column: 1 / -1; min-width: 0; }
  .inbox-search .pill-select select { width: 100%; }
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.rate-good { color: var(--ok); font-weight: 800; }
.rate-mid { color: var(--warn); font-weight: 800; }
.rate-bad { color: var(--bad); font-weight: 800; }
.input-code::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
