/* JobHunt — the next chapter.
   The landing page's forest, mint, Archivo and Newsreader identity, translated
   into a practical workspace. Semantic status colors remain distinct. */

@import url("fonts.eb4b0e792e0a.css");

:root {
  color-scheme: light;
  --paper: #f7faf5;
  --paper-deep: #edf3e8;
  --card: #ffffff;
  --card-alt: #f4f8ef;
  --rail-bg: #fcfdfb;
  --overlay: rgba(21, 63, 54, 0.48);
  --ink: #243e35;
  --ink-2: #4f6658;
  --ink-3: #627369;
  --rule: #dfe7de;
  --rule-strong: #b4c4b3;
  --accent: #287253;
  --accent-wash: #edf6ee;
  --heading: #153f36;
  --heading-accent: var(--accent);
  --feature-bg: var(--accent-wash);
  --focus-ring: var(--accent-wash);
  --button: #153f36;
  --button-hover: #287253;
  --on-button: #ffffff;
  /* Compatibility for extensions that use the original accent tokens. */
  --indigo: var(--accent);
  --indigo-wash: var(--accent-wash);
  --moss: #426b3b;
  --moss-wash: #eaf4e3;
  --amber: #856017;
  --amber-wash: #f8efd9;
  --rust: #a04535;
  --rust-wash: #faeae4;
  --violet: #71538c;
  --violet-wash: #f1eaf7;
  --blue: #3f698c;
  --blue-wash: #eaf1f8;
  --slate: #5a6c60;
  --slate-wash: #edf1e9;
  --font-ui: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-prose: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 9px;
  --radius-lg: 14px;
  --rail-w: 248px;
  --shadow-sm: 0 2px 5px rgba(21, 63, 54, 0.035);
  --shadow: 0 3px 14px -5px rgba(21, 63, 54, 0.12);
  --shadow-lg: 0 24px 70px -24px rgba(21, 63, 54, 0.3);
  --ease: cubic-bezier(0.2, 0.6, 0.25, 1);
}

/* Neutral surfaces and text; green is reserved for accents and actions. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #141518;
    --paper-deep: #1a1b20;
    --card: #1e2025;
    --card-alt: #25272d;
    --rail-bg: #191a1f;
    --overlay: rgba(8, 9, 12, 0.76);
    --ink: #f0f1f3;
    --ink-2: #d4d7dc;
    --ink-3: #bfc3cb;
    --rule: #3a3d45;
    --rule-strong: #7b818e;
    --accent: #9bd4b2;
    --accent-wash: #29332e;
    --heading: #f7f8fa;
    --heading-accent: #dfe2e7;
    --feature-bg: #24262c;
    --focus-ring: var(--accent);
    --plot-highlight-opacity: 1;
    --button: #b8dec6;
    --button-hover: #cbe9d5;
    --on-button: #17231c;
    --moss: #9bd4b2;
    --moss-wash: #28362f;
    --amber: #f0ca86;
    --amber-wash: #393124;
    --rust: #ffb4a2;
    --rust-wash: #3e2c29;
    --violet: #d4b9f5;
    --violet-wash: #332d3e;
    --blue: #abceff;
    --blue-wash: #273343;
    --slate: #c7cbd1;
    --slate-wash: #2e3138;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.16);
    --shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 70px -24px rgba(0, 0, 0, 0.65);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141518;
  --paper-deep: #1a1b20;
  --card: #1e2025;
  --card-alt: #25272d;
  --rail-bg: #191a1f;
  --overlay: rgba(8, 9, 12, 0.76);
  --ink: #f0f1f3;
  --ink-2: #d4d7dc;
  --ink-3: #bfc3cb;
  --rule: #3a3d45;
  --rule-strong: #7b818e;
  --accent: #9bd4b2;
  --accent-wash: #29332e;
  --heading: #f7f8fa;
  --heading-accent: #dfe2e7;
  --feature-bg: #24262c;
  --focus-ring: var(--accent);
  --plot-highlight-opacity: 1;
  --button: #b8dec6;
  --button-hover: #cbe9d5;
  --on-button: #17231c;
  --moss: #9bd4b2;
  --moss-wash: #28362f;
  --amber: #f0ca86;
  --amber-wash: #393124;
  --rust: #ffb4a2;
  --rust-wash: #3e2c29;
  --violet: #d4b9f5;
  --violet-wash: #332d3e;
  --blue: #abceff;
  --blue-wash: #273343;
  --slate: #c7cbd1;
  --slate-wash: #2e3138;
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.16);
  --shadow: 0 4px 16px -6px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 70px -24px rgba(0, 0, 0, 0.65);
}

/* tone families — set two variables, every component reads them */
.t-slate  { --tone: var(--slate);  --tone-wash: var(--slate-wash); }
.t-amber  { --tone: var(--amber);  --tone-wash: var(--amber-wash); }
.t-blue   { --tone: var(--blue);   --tone-wash: var(--blue-wash); }
.t-violet { --tone: var(--violet); --tone-wash: var(--violet-wash); }
.t-green  { --tone: var(--moss);   --tone-wash: var(--moss-wash); }
.t-red    { --tone: var(--rust);   --tone-wash: var(--rust-wash); }
.t-indigo { --tone: var(--accent); --tone-wash: var(--accent-wash); }

/* ---------------------------------------------------------------- base -- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 550; letter-spacing: -0.025em; color: var(--heading); }
p { margin: 0 0 0.75em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }

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

hr { border: 0; border-top: 1px solid var(--rule); margin: 1.5rem 0; }

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

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
/* The attribute must win over any author `display` (chips, menus hidden by script). */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  transform: translateY(-180%); padding: 0.7rem 1rem;
  background: var(--button); color: var(--on-button); border-radius: var(--radius);
}
.skip-link:focus { transform: translateY(0); }
html { scroll-padding-top: 96px; }

/* Compact section labels share the landing page’s UI typography. */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --------------------------------------------------------------- shell -- */

.shell { display: flex; min-height: 100vh; }

.rail {
  position: sticky;
  top: 0;
  align-self: flex-start;
  flex: 0 0 var(--rail-w);
  width: var(--rail-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2rem 1rem 1rem;
  overflow-y: auto;
  background: var(--rail-bg);
  border-right: 1px solid var(--rule);
}

.brand { display: flex; flex-direction: column; gap: 0.35rem; padding: 0 0.5rem; }
.brand__mark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 1.5rem; font-weight: 650; letter-spacing: -0.045em;
  color: var(--heading); text-decoration: none;
}
.brand__mark:hover { color: var(--accent); }
.brand__mark img { flex: none; }
.brand__dot { color: var(--accent); }
.brand__sub { font-size: 10px; color: var(--ink-3); letter-spacing: 0.035em; margin-top: 0.55rem; overflow-wrap: anywhere; }
.rail__label { padding: 1.65rem 0.6rem 0.4rem; }

.rail__nav { display: flex; flex-direction: column; gap: 0.3rem; }
.rail__link {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  min-height: 44px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 0.8125rem; font-weight: 450;
  text-decoration: none;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.rail__link:hover { background: var(--card-alt); color: var(--ink); }
.rail__link.is-active { background: var(--accent-wash); color: var(--accent); font-weight: 600; }
.rail__link svg { width: 16px; height: 16px; flex: none; opacity: 0.85; }
.rail__count {
  margin-left: auto;
  font-family: var(--font-ui); font-size: 11px; font-variant-numeric: tabular-nums;
  min-width: 22px; text-align: center; padding: 1px 5px; border-radius: 5px;
  background: var(--paper-deep); color: var(--ink-3);
}
.rail__link.is-active .rail__count { color: var(--accent); }

.rail__foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.5rem; padding: 0 0.25rem; }
.rail__note {
  display: flex; flex-direction: column; gap: 0.45rem;
  margin: 1.5rem 0 1rem; padding: 1.1rem 0.75rem;
  background: var(--feature-bg); border-radius: 12px; text-decoration: none;
}
.rail__note > svg { width: 23px; height: 23px; transform: rotate(-35deg); }
.rail__note > span { font-family: var(--font-prose); font-style: italic; font-size: 1.3rem; line-height: 1.2; }
.rail__note > small { max-width: 24ch; font-size: 11px; line-height: 1.6; color: var(--ink-3); }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 2.25rem;
  min-height: 76px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.topbar__date { font-family: var(--font-ui); font-size: 11px; color: var(--ink-3); letter-spacing: 0.055em; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }

.content { padding: 2.4rem 2.25rem; max-width: 1440px; width: 100%; }
.content--wide { max-width: none; }

.page-head { margin-bottom: 2rem; }
.page-head > .eyebrow, .page-head__row > div > .eyebrow { display: inline-block; margin-bottom: 0.55rem; color: var(--accent); }
.page-head__row { display: flex; align-items: flex-end; gap: 1.25rem; flex-wrap: wrap; }
.page-title {
  font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.65rem);
  font-weight: 550; letter-spacing: -0.045em; line-height: 1.16;
  overflow-wrap: anywhere;
}
.page-lede {
  margin-top: 0.5rem; max-width: 62ch;
  font-family: var(--font-prose); font-size: 1.2rem; line-height: 1.55; color: var(--ink-2);
}
.page-head__actions { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }
.page-title em { font-family: var(--font-prose); font-weight: 400; color: var(--heading-accent); font-size: 1.1em; }
.page-head--welcome {
  position: relative; padding: 1.8rem 2rem; border: 1px solid var(--rule);
  background: var(--feature-bg); border-radius: 16px;
}
.page-head--welcome .page-lede { margin-top: 0.9rem; font-family: var(--font-ui); font-size: 0.9rem; font-weight: 500; }
.page-context { max-width: 76ch; margin-top: 0.4rem; color: var(--ink-3); font-size: 0.8rem; line-height: 1.7; }

/* --------------------------------------------------------------- panel -- */

.panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Panels sit in columns of very different widths — a two-up form inside the
     300px sidebar and inside the 900px main column are not the same problem. */
  container-type: inline-size;
  box-shadow: var(--shadow-sm);
}
.panel--sunken { background: var(--card-alt); }
.panel__head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.15rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
  background: var(--card);
}
.panel__title { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em; }
.panel__head .eyebrow { flex: none; }
.panel__actions { margin-left: auto; display: flex; gap: 0.4rem; align-items: center; }
.panel__body { padding: 1.2rem; }
.panel__body--flush { padding: 0; }
.panel__foot { padding: 0.65rem 1rem; border-top: 1px solid var(--rule); background: var(--card-alt); }

.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.cols { display: grid; gap: 1.25rem; }
.cols > *, .stack > * { min-width: 0; }
@media (min-width: 760px) {
  .cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols--scout { grid-template-columns: 2fr 2fr 1fr; }
}
.activity-row { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; padding: 0.8rem 0; }
.activity-row + .activity-row { border-top: 1px solid var(--rule); }
@media (min-width: 1080px) {
  .cols--2 { grid-template-columns: 1fr 1fr; }
  .cols--main { grid-template-columns: minmax(0, 1.7fr) minmax(min(100%, 280px), 1fr); }
  .cols--detail { grid-template-columns: minmax(0, 1fr) minmax(288px, 324px); align-items: start; }
}

/* Compatibility scores: a calm track with an explicit numeric value. */
.gauge { display: inline-flex; align-items: center; gap: 0.55rem; }
.gauge__scale {
  position: relative; width: var(--gauge-w, 108px); height: 5px;
  background: var(--paper-deep); border-radius: 999px; overflow: hidden;
}
.gauge__fill {
  position: absolute; inset: 0 auto 0 0;
  width: calc(var(--v, 0) * 1%);
  background: var(--tone, var(--slate)); border-radius: inherit;
}
.gauge__needle { display: none; }
.gauge__value {
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 550;
  font-variant-numeric: tabular-nums;
  color: var(--tone, var(--ink-2));
  min-width: 2.6ch; text-align: right;
}
.gauge__value sup { font-size: 0.7em; font-weight: 400; opacity: 0.7; margin-left: 1px; }
.gauge--sm { --gauge-w: 52px; }
.gauge--sm .gauge__scale { height: 4px; }
.gauge--sm .gauge__value { font-size: 11.5px; }
.gauge--lg { --gauge-w: 100%; width: 100%; gap: 0.9rem; }
.gauge--lg .gauge__scale { height: 8px; }
.gauge--lg .gauge__value { font-size: 1.7rem; letter-spacing: -0.03em; }
.gauge--empty .gauge__value { color: var(--ink-3); font-weight: 400; }

.gauge-legend {
  display: flex; justify-content: space-between;
  margin-top: 0.3rem;
  font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.08em;
}

/* ---------------------------------------------------------------- pills -- */

.pill {
  display: inline-flex; align-items: center; gap: 0.32rem;
  padding: 0.24rem 0.55rem;
  border-radius: 6px;
  background: var(--tone-wash, var(--slate-wash));
  color: var(--tone, var(--slate));
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 500; letter-spacing: 0;
  white-space: nowrap;
}
.pill--dot::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex: none;
}
.pill--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--rule-strong); color: var(--ink-3); }

.meta {
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
  font-family: var(--font-ui); font-size: 11.5px; color: var(--ink-3);
}
.meta__sep { opacity: 0.45; }

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.65rem 1rem;
  min-height: 42px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 500;
  line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background 0.12s var(--ease), border-color 0.12s var(--ease),
              transform 0.12s var(--ease), color 0.12s var(--ease);
}
.btn:hover { background: var(--card-alt); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.btn--primary {
  background: var(--button);
  border-color: var(--button);
  color: var(--on-button);
}
.btn--primary:hover { background: var(--button-hover); border-color: var(--button-hover); }

.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--card-alt); border-color: var(--rule); color: var(--ink); }

.btn--danger { color: var(--rust); border-color: color-mix(in srgb, var(--rust) 35%, transparent); }
.btn--danger:hover { background: var(--rust-wash); border-color: var(--rust); }

.btn--sm { padding: 0.5rem 0.75rem; min-height: 36px; font-size: 0.75rem; }
.btn--block { width: 100%; }
.btn svg { width: 14px; height: 14px; flex: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; flex: none;
  border: 1px solid transparent; border-radius: var(--radius);
  background: transparent; color: var(--ink-3); cursor: pointer;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.icon-btn:hover { background: var(--card-alt); color: var(--ink); border-color: var(--rule); }
.icon-btn svg { width: 15px; height: 15px; }

/* Theme toggle: show the icon for the theme the click will switch *to*.
   Driven from CSS rather than JS because `hidden` is an HTMLElement property —
   on an <svg> both the attribute and element.hidden are silently inert. The
   three states mirror the colour tokens: light, system-dark, explicit-dark. */
[data-theme-icon="sun"] { display: none; }
[data-theme-icon="moon"] { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-theme-icon="sun"] { display: block; }
  :root:not([data-theme="light"]) [data-theme-icon="moon"] { display: none; }
}
:root[data-theme="dark"] [data-theme-icon="sun"] { display: block; }
:root[data-theme="dark"] [data-theme-icon="moon"] { display: none; }

.btn-row { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }

/* --------------------------------------------------------------- forms -- */

.input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  min-height: 44px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-ui); font-size: 0.875rem; line-height: 1.4;
  transition: border-color 0.12s var(--ease), box-shadow 0.12s var(--ease);
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.input::placeholder { color: var(--ink-3); }
textarea.input { resize: vertical; min-height: 4.5rem; }
textarea.input.mono, .input.mono { font-family: var(--font-mono); font-size: 0.8rem; }
select.input { appearance: none; padding-right: 1.75rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% + 1px), calc(100% - 9px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.9rem; }
.field__label {
  font-size: 0.75rem; font-weight: 600; color: var(--ink-2);
  letter-spacing: 0.01em;
}
.field__help { font-size: 0.75rem; color: var(--ink-3); line-height: 1.55; }
.field__error { font-size: 0.75rem; color: var(--rust); font-weight: 500; }
.field--inline { flex-direction: row; align-items: center; gap: 0.5rem; }

.form-grid { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
.form-grid .field--full { grid-column: 1 / -1; }
@container (min-width: 460px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}
@container (min-width: 680px) {
  .form-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.checkline { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--ink-2); }
.checkline input { accent-color: var(--accent); width: 15px; height: 15px; }

/* Field widgets shared by the questionnaire and the settings page (static/js/fields.js). */

/* A section of a long form: a heading and its fields, nothing drawn around. */
.form-section { margin: 0 0 1.4rem; padding: 0; border: 0; min-width: 0; }
.form-section:last-of-type { margin-bottom: 0; }
.form-section > legend, .form-section__title { float: left; width: 100%; margin: 0 0 0.85rem; padding: 0; }
.form-section > legend + *, .form-section__title + * { clear: both; }
/* A group of toggle chips standing for one question. */
.choice-group { margin: 0 0 0.9rem; padding: 0; border: 0; min-width: 0; }
.choice-group > legend { float: left; width: 100%; padding: 0; margin: 0 0 0.45rem; }
.choice-group > legend + * { clear: both; }
.choice-group .field__help { display: block; margin-top: 0.45rem; }
.chip svg { width: 11px; height: 11px; flex: none; }
.chip.chip--toggle { font-size: 0.8rem; padding: 0.3rem 0.7rem; min-height: 36px; }  /* .chip is declared later */
/* `input:checked` so a checked chip keeps its accent under `.chip:hover`, declared later. */
.chip:has(input:checked) { background: var(--tone-wash, var(--accent-wash)); border-color: var(--tone, var(--accent)); color: var(--tone, var(--accent)); }
.chip:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip-row:empty { display: none; }

.chips-search { position: relative; }
.chips-search__menu {
  position: absolute; z-index: 10; top: calc(100% + 4px); left: 0; right: 0;
  margin: 0; padding: 0.3rem; list-style: none;
  max-height: 16rem; overflow-y: auto;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.chips-search__item {
  padding: 0.55rem 0.7rem; border-radius: 6px; cursor: pointer;
  font-size: 0.875rem; line-height: 1.35; color: var(--ink);
}
.chips-search__item small { margin-left: 0.4rem; font-size: 0.75rem; color: var(--ink-3); }
.chips-search__item:hover, .chips-search__item[aria-selected="true"] { background: var(--card-alt); }
.chips-search__item[aria-selected="true"] { box-shadow: inset 2px 0 0 var(--accent); }

.chip__remove {
  display: inline-grid; place-items: center; flex: none;
  width: 20px; height: 20px; margin: 0 -0.25rem 0 0.05rem; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.chip__remove svg { width: 11px; height: 11px; }
.chip__remove:hover { background: var(--accent); color: var(--on-button); }

.chips-recommended { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.25rem; }
.chips-recommended .chip-row { margin-top: 0; }

.segmented { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--paper-deep); }
.segmented label {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0.45rem 1.1rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: background 0.12s var(--ease), color 0.12s var(--ease);
}
.segmented label:hover { color: var(--ink); }
.segmented label:has(:checked) { background: var(--button); color: var(--on-button); }
.segmented label:has(:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

.salary__amount { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.25rem; }
.salary__amount .input {
  max-width: 13rem; min-height: 56px;
  font-family: var(--font-mono); font-size: 1.5rem; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.salary__amount .input::-webkit-outer-spin-button,
.salary__amount .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.salary__amount--compact { margin-top: 0; }
.salary__amount--compact .input { max-width: 10rem; min-height: 44px; font-size: 1rem; }
.salary__unit { font-size: 0.9rem; color: var(--ink-3); white-space: nowrap; }


.input--search {
  padding-left: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a696e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.55rem center;
  background-size: 15px;
}

/* --------------------------------------------------------------- stats -- */

.stat-grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}
.stat {
  padding: 1.25rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.stat__value {
  font-family: var(--font-ui); font-size: 2rem; font-weight: 500;
  letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--tone, var(--ink));
}
.stat__value small { font-size: 0.5em; font-weight: 400; color: var(--ink-3); margin-left: 0.15em; }
.stat__label { font-size: 0.75rem; color: var(--ink-2); font-weight: 500; }
.stat__note { font-family: var(--font-ui); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }

/* funnel — a horizontal set of proportional rules */
.funnel { display: flex; flex-direction: column; gap: 0.6rem; }
.funnel__step { display: grid; grid-template-columns: 8.5rem 1fr 2.5rem; align-items: center; gap: 0.75rem; }
.funnel__label { font-size: 0.78rem; color: var(--ink-2); }
.funnel__track { height: 7px; background: var(--paper-deep); border-radius: 999px; overflow: hidden; }
.funnel__bar { display: block; height: 100%; background: var(--tone, var(--slate)); opacity: 0.8; }
.funnel__value { font-family: var(--font-mono); font-size: 0.8rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* --------------------------------------------------------------- cards -- */

.app-card {
  display: block;
  position: relative;
  padding: 1rem 0.95rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color 0.12s var(--ease), box-shadow 0.12s var(--ease), transform 0.12s var(--ease);
}
.app-card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--tone, var(--accent)) 45%, var(--rule)); }
.app-card__company {
  font-size: 0.875rem; font-weight: 600; letter-spacing: -0.012em;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
.app-card__company > a { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.company-mark {
  display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px;
  border-radius: 9px; background: var(--tone-wash, var(--accent-wash));
  color: var(--tone, var(--accent)); font-size: 11px; font-weight: 550;
}
.app-card__title {
  margin-top: 0.65rem;
  font-family: var(--font-ui); font-size: 0.8125rem; line-height: 1.55; color: var(--ink-2);
  overflow-wrap: anywhere;
}
.app-card__foot { margin-top: 0.9rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.app-card__foot .gauge { margin-right: auto; }
.app-card__actions { display: flex; gap: 0.15rem; opacity: 1; transition: opacity 0.12s var(--ease); }
.app-card:hover .app-card__actions,
.app-card:focus-within .app-card__actions { opacity: 1; }

.flag {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-family: var(--font-ui); font-size: 11px; font-weight: 550;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--tone, var(--ink-3));
}
.flag::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* ---------------------------------------------------------------- board -- */

.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(258px, 1fr);
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
}
.board__col {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--card-alt);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  transition: background 0.12s var(--ease), border-color 0.12s var(--ease);
}
.board__col.is-over { background: var(--accent-wash); border-color: var(--accent); }
.board__head {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 1rem 0.9rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.board__head::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone, var(--slate));
}
.board__label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.005em; }
.board__count {
  margin-left: auto; font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.board__items { display: flex; flex-direction: column; gap: 0.7rem; padding: 0.75rem; min-height: 90px; }
.board__empty {
  padding: 1rem 0.5rem; text-align: center;
  font-family: var(--font-ui); font-size: 12px; color: var(--ink-3);
  letter-spacing: 0;
}
.app-card[draggable="true"] { cursor: grab; }
.app-card.is-dragging { opacity: 0.4; cursor: grabbing; }

/* --------------------------------------------------------------- table -- */

.table-wrap { overflow-x: auto; }
.table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 0.85rem; }
.table th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
  background: var(--card-alt);
}
.table td { padding: 0.9rem 0.9rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table tbody tr { transition: background 0.1s var(--ease); }
.table tbody tr:hover { background: var(--card-alt); }
.table tbody tr:last-child td { border-bottom: 0; }
.table__primary { font-weight: 600; letter-spacing: -0.01em; }
.table__primary a { color: inherit; text-decoration: none; }
.table__primary a:hover { color: var(--accent); }
.table__sub { font-family: var(--font-ui); font-size: 0.78rem; color: var(--ink-2); line-height: 1.3; }
.table td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.78rem; color: var(--ink-2); white-space: nowrap; }
.table .status-select { min-width: 9.5rem; font-size: 0.75rem; padding: 0.22rem 1.6rem 0.22rem 0.4rem; }

.filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--rule); background: var(--card-alt);
}
.filters__search { flex: 1 1 240px; min-width: 200px; }
.filters .input { width: auto; }
.filters select.input { font-size: 0.78rem; padding-top: 0.34rem; padding-bottom: 0.34rem; }

.chip-row { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--rule-strong); border-radius: 999px;
  background: transparent; color: var(--ink-2);
  font-family: var(--font-ui); font-size: 11px; letter-spacing: 0;
  min-height: 32px; cursor: pointer; text-decoration: none;
  transition: all 0.12s var(--ease);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.is-on { background: var(--tone-wash, var(--accent-wash)); border-color: var(--tone, var(--accent)); color: var(--tone, var(--accent)); }

/* --------------------------------------------------------------- prose -- */

.prose {
  font-family: var(--font-prose);
  font-size: 1rem; line-height: 1.62; color: var(--ink);
}
.prose p { margin: 0 0 0.7em; }
.prose ul { margin: 0 0 0.7em; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 1.05rem; margin-bottom: 0.4em; }
.prose li::before {
  content: ""; position: absolute; left: 0; top: 0.68em;
  width: 5px; height: 1px; background: var(--rule-strong);
}
.prose h3, .prose h4, .prose h5 {
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600;
  margin: 1.2em 0 0.4em; letter-spacing: 0.01em;
}
.prose strong { font-weight: 600; }
.prose code {
  font-family: var(--font-mono); font-size: 0.85em;
  background: var(--card-alt); padding: 0.08em 0.3em; border-radius: 2px;
}
.prose a { color: var(--accent); }
.prose--tight { font-size: 0.94rem; line-height: 1.55; }

/* the honest ledger: what plays for you / against you */
.ledger { display: grid; gap: 0; }
.ledger__side { padding: 1rem 1.15rem; }
.ledger__side + .ledger__side { border-top: 1px solid var(--rule); }
@container (min-width: 540px) {
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger__side + .ledger__side { border-top: 0; border-left: 1px solid var(--rule); }
}
.ledger__head {
  display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.7rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--rule);
}
.ledger__head::before {
  content: ""; width: 3px; height: 12px; background: var(--tone); border-radius: 2px;
}
.ledger__side .prose li::before { background: var(--tone); opacity: 0.6; }

.raw-posting {
  font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
  color: var(--ink-2);
  max-height: 26rem; overflow-y: auto;
  padding: 0.9rem 1rem;
  background: var(--paper-deep);
  border-radius: var(--radius);
}

details.collapse > summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; color: var(--ink-2);
  padding: 0.4rem 0;
}
details.collapse > summary::-webkit-details-marker { display: none; }
details.collapse > summary::before {
  content: "▸"; font-size: 0.7rem; color: var(--ink-3);
  transition: transform 0.12s var(--ease);
}
details.collapse[open] > summary::before { transform: rotate(90deg); }

/* ------------------------------------------------------------ timeline -- */

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 1px; background: var(--rule);
}
.timeline__item { position: relative; padding: 0 0 1rem 1.5rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: 1px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--tone, var(--rule-strong));
}
.timeline__date {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3);
  letter-spacing: 0.05em;
}
.timeline__title { font-size: 0.85rem; font-weight: 500; margin-top: 0.05rem; }
.timeline__detail { font-family: var(--font-prose); font-size: 0.9rem; color: var(--ink-2); margin-top: 0.2rem; }
.timeline__item .icon-btn { position: absolute; right: 0; top: 2px; opacity: 0; }
.timeline__item:hover .icon-btn, .timeline__item:focus-within .icon-btn { opacity: 1; }

/* ------------------------------------------------------------- listrow -- */

.listrow {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none; color: inherit;
  transition: background 0.1s var(--ease);
}
.listrow:last-child { border-bottom: 0; }
.listrow:hover { background: var(--card-alt); }
.listrow__body { flex: 1 1 auto; min-width: 0; }
.listrow__title { font-size: 0.86rem; font-weight: 600; letter-spacing: -0.01em; }
.listrow__title a { color: inherit; text-decoration: none; }
.listrow__title a:hover { color: var(--accent); }
.listrow__sub { font-family: var(--font-ui); font-size: 0.8rem; color: var(--ink-2); line-height: 1.35; margin-top: 0.05rem; }
.listrow__side { flex: none; display: flex; align-items: center; gap: 0.6rem; }

.doc-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper);
}
.doc-item + .doc-item { margin-top: 0.4rem; }
.doc-ext {
  flex: none; width: 34px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--rule-strong); border-radius: 2px;
  background: var(--card);
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--ink-3);
  position: relative;
}
.doc-ext::after {
  content: ""; position: absolute; top: 0; right: 0;
  border-width: 0 7px 7px 0; border-style: solid;
  border-color: transparent var(--paper) transparent transparent;
}
.doc-item__body { flex: 1 1 auto; min-width: 0; }
.doc-item__label {
  font-size: 0.82rem; font-weight: 500; overflow-wrap: anywhere;
}
.doc-item__label a { color: inherit; text-decoration: none; }
.doc-item__label a:hover { color: var(--accent); text-decoration: underline; }

/* --------------------------------------------------------------- empty -- */

.empty {
  padding: 2rem 1.25rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.empty__title { font-size: 0.9rem; font-weight: 600; }
.empty__text {
  font-family: var(--font-prose); font-size: 1.12rem; font-style: italic; color: var(--ink-2);
  max-width: 40ch; line-height: 1.5;
}
.empty--sm { padding: 1.1rem 1rem; }

/* --------------------------------------------------------------- scatter -- *
   Compatibility against travel distance: the exact trade-off the dossier
   says to optimise. The shaded quadrant is "close and a good match". */

.scatter { position: relative; width: 100%; }
.scatter__plot {
  position: relative;
  aspect-ratio: 16 / 10;
  border-left: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to top, var(--rule) 1px, transparent 1px);
  background-size: 25% 25%;
  background-position: left bottom;
}
/* close by and a strong match — the top-left corner of the plot */
.scatter__sweet {
  position: absolute; left: 0; top: 0; width: 50%; height: 30%;
  background: var(--moss-wash); opacity: var(--plot-highlight-opacity, 0.5);
  border-right: 1px dashed var(--moss); border-bottom: 1px dashed var(--moss);
}
.scatter__sweet span {
  position: absolute; left: 0.55rem; bottom: 0.4rem;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--moss);
}
.scatter__pt {
  position: absolute;
  width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--tone, var(--slate));
  border: 2px solid var(--card);
  cursor: pointer;
  transition: transform 0.12s var(--ease);
}
.scatter__pt:hover, .scatter__pt:focus-visible { transform: scale(1.5); z-index: 3; }
.scatter__pt::after {
  content: attr(data-label);
  position: absolute; left: 50%; bottom: calc(100% + 7px);
  transform: translateX(-50%);
  padding: 0.3rem 0.5rem;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 10px; white-space: nowrap;
  border-radius: 2px; opacity: 0; pointer-events: none;
  transition: opacity 0.12s var(--ease);
}
.scatter__pt:hover::after, .scatter__pt:focus-visible::after { opacity: 1; }
.axis-y, .axis-x {
  font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-3);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.axis-x { display: flex; justify-content: space-between; margin-top: 0.35rem; padding-left: 1px; }
.scatter__wrap { display: grid; grid-template-columns: auto 1fr; gap: 0 0.5rem; align-items: stretch; }
.axis-y {
  /* The 180° turn makes the label read bottom-to-top, as a y-axis should — but
     it also flips the running order, so the items are laid out in reverse to
     land 100 % at the top and 0 at the bottom, matching the plotted points. */
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; flex-direction: row-reverse;
  justify-content: space-between; align-items: center;
  /* Reserves the height of the x-axis row below the plot. Declared on the top
     because the 180° turn puts it at the bottom on screen. */
  padding: 1.35rem 0 0;
}

/* bar list used for sector / language / gap breakdowns */
.barlist { display: flex; flex-direction: column; gap: 0.55rem; }
.barlist__row { display: grid; grid-template-columns: 9.5rem 1fr 2.2rem; align-items: center; gap: 0.7rem; }
.barlist__label { font-size: 0.8rem; color: var(--ink-2); }
.barlist__track { height: 6px; background: var(--paper-deep); border-radius: 999px; overflow: hidden; }
.barlist__bar { display: block; height: 100%; background: var(--tone, var(--accent)); opacity: 0.8; }
.barlist__value { font-family: var(--font-mono); font-size: 0.78rem; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* gap cards */
.gap-grid { display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gap {
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 0.95rem 1rem;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  border-top: 2px solid var(--tone, var(--rule-strong));
}
.gap__head { display: flex; align-items: baseline; gap: 0.6rem; }
.gap__name { font-size: 0.92rem; font-weight: 600; letter-spacing: -0.015em; }
.gap__demand { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.gap__text { font-family: var(--font-prose); font-size: 0.92rem; line-height: 1.5; color: var(--ink-2); }
.gap__plan {
  font-family: var(--font-prose); font-size: 0.9rem; line-height: 1.45;
  padding: 0.5rem 0.65rem; background: var(--card-alt); border-radius: var(--radius);
  border-left: 2px solid var(--tone, var(--rule-strong));
}
.gap__foot { margin-top: auto; padding-top: 0.35rem; display: flex; gap: 0.3rem; }

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

dialog.modal {
  width: min(640px, calc(100vw - 2rem));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: auto;
}
dialog.modal::backdrop { background: var(--overlay); backdrop-filter: blur(2px); }
.modal__head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; background: var(--card); z-index: 2;
}
.modal__title { font-size: 0.95rem; font-weight: 600; }
.modal__body { padding: 1.1rem; container-type: inline-size; }
.modal__foot {
  display: flex; justify-content: flex-end; gap: 0.5rem;
  padding: 0.85rem 1.1rem; border-top: 1px solid var(--rule); background: var(--card-alt);
  position: sticky; bottom: 0;
}

/* -------------------------------------------------------------- toasts -- */

.toasts {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  z-index: 100; display: flex; flex-direction: column; gap: 0.5rem; align-items: center;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.22s var(--ease);
}
.toast::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tone, var(--moss)); }
.toast.is-leaving { animation: toast-out 0.2s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* -------------------------------------------------------------- htmx -- */

.htmx-indicator { opacity: 0; transition: opacity 0.15s var(--ease); }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.htmx-swapping { opacity: 0.5; transition: opacity 0.1s var(--ease); }
.htmx-settling { animation: settle 0.22s var(--ease); }
@keyframes settle { from { opacity: 0.4; } }

.spinner {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--rule-strong); border-top-color: var(--accent);
  animation: spin 0.65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ messages -- */

.flash {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.9rem; margin-bottom: 1rem;
  border: 1px solid var(--tone, var(--rule-strong));
  border-left-width: 3px;
  background: var(--tone-wash, var(--card));
  border-radius: var(--radius);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------- account -- */

.avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
}

.user-chip { display: flex; align-items: center; gap: 0.15rem; }
.user-chip__link {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.5rem; border-radius: var(--radius);
  color: inherit; text-decoration: none;
  transition: background 0.12s var(--ease);
}
.user-chip__link:hover, .user-chip__link.is-active { background: var(--card-alt); }
.user-chip__body { display: flex; flex-direction: column; min-width: 0; }
.user-chip__name { font-size: 0.82rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip__sub { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip form { flex: none; }

/* Public account pages carry the landing page’s editorial introduction. */
.auth {
  min-height: 100vh; max-width: 1200px; margin: auto;
  display: flex; flex-direction: column; justify-content: center;
  gap: 2.5rem; padding: 2rem 2.5rem;
}
.auth__top { display: flex; align-items: center; justify-content: space-between; }
.auth__layout { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 5rem; align-items: center; }
.auth__intro { padding: 2rem 0; min-width: 0; }
.auth__intro > .eyebrow { color: var(--accent); }
.auth__intro h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.15; letter-spacing: -0.045em; margin: 1rem 0 1.3rem; }
.auth__intro h2 em { font-family: var(--font-prose); color: var(--heading-accent); font-weight: 400; font-size: 1.12em; }
.auth__intro > p { font-size: 14px; color: var(--ink-3); max-width: 34ch; }
.auth__journey { margin-top: 2rem; padding: 1.5rem; background: var(--feature-bg); border: 1px solid var(--rule); border-radius: 16px; }
.auth__journey > div { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 0; font-size: 12px; }
.auth__journey small { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.auth__journey svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.auth__journey > div > svg { margin-left: auto; }
.auth__step-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; background: var(--card); border-radius: 9px; }
.auth__card {
  width: 100%; padding: 2rem;
  background: var(--card); border: 1px solid var(--rule); border-radius: 16px;
  box-shadow: var(--shadow); container-type: inline-size;
}
.auth__title { margin-top: 0.6rem; font-size: 2rem; font-weight: 550; letter-spacing: -0.04em; line-height: 1.15; }
.auth__lede { margin: 0.9rem 0 1.6rem; font-size: 0.875rem; line-height: 1.7; color: var(--ink-3); }
.auth__foot { font-size: 0.8125rem; color: var(--ink-3); text-align: center; min-height: 1.2em; }

.chooser { display: flex; flex-direction: column; gap: 0.5rem; }
.chooser__item {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); text-align: left; cursor: pointer;
  font-family: var(--font-ui);
  transition: border-color 0.12s var(--ease), background 0.12s var(--ease);
}
.chooser__item:hover { border-color: var(--accent); background: var(--card-alt); }
.chooser__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1 1 auto; }
.chooser__name { font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; }
.chooser__arrow { width: 16px; height: 16px; flex: none; color: var(--ink-3); }

/* ------------------------------------------------------------ responsive */

.rail__toggle { display: none; }

@media (min-width: 961px) and (max-height: 850px) {
  .rail__note { display: none; }
}

@media (max-width: 960px) {
  .shell { flex-direction: column; }
  .rail {
    position: static; width: 100%; height: auto; flex: none;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.7rem;
    padding: 1rem 1rem 0.7rem;
    border-right: 0; border-bottom: 1px solid var(--rule);
    overflow: visible;
  }
  .brand { flex: none; padding: 0; }
  .brand__sub, .rail__label, .rail__note { display: none; }
  .rail__nav { grid-column: 1 / -1; grid-row: 2; min-width: 0; flex-direction: row; gap: 0.35rem; overflow-x: auto; padding: 3px; scrollbar-width: thin; }
  .rail__link { white-space: nowrap; flex-shrink: 0; }
  .rail__foot { grid-column: 2; grid-row: 1; margin: 0; padding: 0; flex-direction: row; align-items: center; gap: 0.2rem; }
  .rail__foot > .btn, .rail__foot > .rail__link > span { display: none; }
  .rail__foot > .rail__link { justify-content: center; padding: 0; width: 40px; }
  .user-chip__body { display: none; }
  .topbar { padding: 0.7rem 1rem; }
  .content { padding: 1.5rem 1rem 3rem; }
  .funnel__step { grid-template-columns: 7rem 1fr 2.2rem; }
  .barlist__row { grid-template-columns: 7.5rem 1fr 2rem; }
  .auth { gap: 2rem; }
  .auth__layout { gap: 2rem; grid-template-columns: 1fr minmax(0, 400px); }
  .auth__journey { padding: 1rem; }
  .auth__journey > div { font-size: 11px; gap: 0.6rem; }
}

@media (max-width: 760px) {
  .auth { padding: 1.5rem; max-width: 500px; }
  .auth__layout { grid-template-columns: 1fr; gap: 1rem; }
  .auth__intro { padding: 0.5rem 0; text-align: center; }
  .auth__intro h2 { font-size: 2rem; }
  .auth__intro > p, .auth__journey { display: none; }
}

@media (max-width: 620px) {
  .rail__link { padding: 0.55rem 0.7rem; font-size: 12px; }
  .brand__mark { font-size: 1.3rem; }
  .brand__mark img { width: 30px; height: 30px; }
  .topbar { min-height: 65px; gap: 0.5rem; }
  .topbar__date { font-size: 9px; letter-spacing: 0.015em; max-width: 140px; }
  .topbar .btn--sm { font-size: 11px; padding-inline: 0.65rem; }
  .topbar__actions { gap: 0.3rem; }
  .page-head--welcome { padding: 1.3rem; }
  .page-title { font-size: 1.9rem; }
  .page-lede { font-size: 1.08rem; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
  .stat { padding: 1rem; }
  .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stat__value { font-size: 1.8rem; }
  .stat__note { font-size: 10px; }
  .panel__head { padding: 0.85rem 1rem; gap: 0.5rem; }
  .panel__actions { flex-wrap: wrap; }
  .panel__body { padding: 1rem; }
  .panel__body--flush { padding: 0; }
  .panel__foot { overflow-wrap: anywhere; }
  .listrow { flex-wrap: wrap; padding: 0.9rem 1rem; }
  .listrow__body { flex-basis: 65%; }
  .listrow__side { max-width: 100%; flex-wrap: wrap; }
  .board { grid-auto-columns: minmax(250px, 86%); }
  .input { font-size: 16px; }
  .btn, .icon-btn { min-height: 44px; }
  .icon-btn { width: 44px; }
  .chip { min-height: 36px; }
  .segmented { display: flex; }
  .segmented label { flex: 1 1 0; padding-inline: 0.5rem; }
  .salary__amount .input { max-width: none; }
  .filters .input { max-width: 100%; }
  .filters__search { min-width: 0; }
  .page-head__actions { width: 100%; margin-left: 0; }
  .auth { padding: 1.25rem 1rem; gap: 1.5rem; }
  .auth__card { padding: 1.5rem; }
  .auth__title { font-size: 1.8rem; }
  .doc-item { flex-wrap: wrap; }
  .toasts { width: calc(100% - 2rem); }
  .toast { max-width: 100%; overflow-wrap: anywhere; }
}

@media print {
  .rail, .topbar, .page-head__actions, .toasts, .btn, .icon-btn { display: none !important; }
  body { background: #fff; }
  .panel { break-inside: avoid; border-color: #ccc; }
}

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