/* jajob.dk — токени й компонент-класи. Джерело правди: design/DESIGN.md (D1, 21.10.2026).
   Напрям «Verdigris»: папір + чорнило + один приглушений акцент (мідна зелень копенгагенських дахів).
   Правила: 2 радіуси (6 контроли / 10 панелі), тіні лише на тому, що плаває (меню, діалог, поповер),
   картки = бордер без тіні, колір на діях і даних, а не на хромі. */

/* ---- Шрифт: Geologica (OFL, Monokrom), self-host woff2, latin + latin-ext + cyrillic ---- */
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/fonts/geologica-latin-wght.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/fonts/geologica-latin-ext-wght.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/static/fonts/geologica-cyrillic-wght.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light;
  /* Земля, папір, чорнило */
  --bg: #f8f7f4; /* папір: тло сторінки */
  --bg-subtle: #f1efea; /* другий нейтральний шар: сайдбар, hover, підкладки */
  --surface: #ffffff; /* панелі, поля, меню */
  --border: #e3e0d9; /* лінії й рамки панелей */
  --border-strong: #cfcbc2; /* роздільники з наголосом, рамки вторинних кнопок */
  --control-border: #9a958a; /* рамки полів вводу: 3:1 на білому (WCAG 1.4.11) */
  --fg: #1d1c19; /* чорнило: 15.9:1 на папері */
  --fg-muted: #5f5c55; /* вторинний текст: 6.2:1 на папері, 5.8:1 на --bg-subtle */
  /* Один акцент */
  --brand: #2f6b5a; /* verdigris: 6.2:1 на білому; головна дія, посилання, вибір */
  --brand-hover: #275a4c;
  --brand-fg: #ffffff;
  --brand-soft: #e7efeb; /* тінт для вибраного стану */
  /* Семантичні статуси (текст + тло); кожен ≥ 5:1 на своєму тлі */
  --success: #3b6e22;
  --success-soft: #e9f1e2;
  --warning: #8a5a00;
  --warning-soft: #f7eedb;
  --danger: #a8321f;
  --danger-soft: #f8e7e3;
  --info: var(--fg);
  --info-soft: var(--bg-subtle);

  /* Шрифт і шкала (фіксована, ratio ≈ 1.2; rem — для кабінетів не робимо fluid) */
  --font-sans:
    "Geologica", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --text-xs: 0.75rem; /* 12 підписи, лічильники */
  --text-sm: 0.875rem; /* 14 мета, таблиці, кнопки */
  --text-base: 1rem; /* 16 текст */
  --text-lg: 1.125rem; /* 18 лід, заголовок панелі */
  --text-xl: 1.25rem; /* 20 H3 */
  --text-2xl: 1.5rem; /* 24 H2 */
  --text-3xl: 1.875rem; /* 30 H1 кабінету */
  --text-4xl: 2.25rem; /* 36 H1 публічної сторінки */
  --leading-tight: 1.2;
  --leading: 1.55;
  --tracking-tight: -0.02em;
  --tracking-display: -0.03em;

  /* Форма: лише два радіуси */
  --radius-sm: 6px; /* сумісність: = --radius */
  --radius: 6px; /* кнопки, поля, бейджі, чипи */
  --radius-lg: 10px; /* панелі, картки, діалоги, меню */
  --radius-xl: 10px; /* сумісність: = --radius-lg */

  /* Тіні — лише для того, що плаває над сторінкою */
  --shadow-sm: none; /* сумісність: картки в спокої тіні не мають */
  --shadow:
    0 1px 2px rgb(29 28 25 / 0.06), 0 8px 24px rgb(29 28 25 / 0.1); /* меню, поповер, FAB */
  --shadow-lg:
    0 2px 6px rgb(29 28 25 / 0.08), 0 24px 48px rgb(29 28 25 / 0.16); /* діалог, панель асистента */

  /* Контейнери: три ширини замість дев'яти */
  --w-form: 26rem; /* логін, реєстрація, короткі форми */
  --w-read: 42rem; /* стаття, help, профіль: ~70 знаків у рядку */
  --w-page: 70rem; /* каркас: шапка, каталог, кабінети */
  --gutter: 16px;

  /* Відступи (4px-крок): 4 8 12 16 24 32 48 64 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* експоненційний ease-out */
  --dur: 0.15s;
  --header-h: 56px;
}
@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}
@media (min-width: 1024px) {
  :root {
    --gutter: 32px;
  }
}

/* ---- Темна тема: system-default + явний перемикач [data-theme] ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #161614;
    --bg-subtle: #262521;
    --surface: #1e1d1a;
    --border: #2f2d29;
    --border-strong: #3d3b36;
    --control-border: #77736a;
    --fg: #ecebe6;
    --fg-muted: #a3a097;
    --brand: #7cbfa8;
    --brand-hover: #95cdb9;
    --brand-fg: #0f1a16;
    --brand-soft: #1f2e29;
    --success: #9bcf7e;
    --success-soft: #22301b;
    --warning: #e0b25c;
    --warning-soft: #33291a;
    --danger: #ef8f7c;
    --danger-soft: #3a211c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.45);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.45), 0 24px 48px rgb(0 0 0 / 0.55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161614;
  --bg-subtle: #262521;
  --surface: #1e1d1a;
  --border: #2f2d29;
  --border-strong: #3d3b36;
  --control-border: #77736a;
  --fg: #ecebe6;
  --fg-muted: #a3a097;
  --brand: #7cbfa8;
  --brand-hover: #95cdb9;
  --brand-fg: #0f1a16;
  --brand-soft: #1f2e29;
  --success: #9bcf7e;
  --success-soft: #22301b;
  --warning: #e0b25c;
  --warning-soft: #33291a;
  --danger: #ef8f7c;
  --danger-soft: #3a211c;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.45);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.45), 0 24px 48px rgb(0 0 0 / 0.55);
}

/* ---- База ---- */
html {
  font-family: var(--font-sans);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-size: var(--text-base);
  line-height: var(--leading);
  font-variant-numeric: tabular-nums; /* зарплати, дати, лічильники — у стовпчик */
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  text-wrap: balance;
}
h1 {
  letter-spacing: var(--tracking-display);
}
p {
  text-wrap: pretty;
}
::selection {
  background: color-mix(in srgb, var(--brand) 22%, transparent);
  color: var(--fg);
}
input,
textarea {
  caret-color: var(--brand);
}
html {
  scrollbar-color: var(--border-strong) transparent;
}
input[type="checkbox"],
input[type="radio"],
input[type="range"],
progress {
  accent-color: var(--brand);
}
/* Голий клас `border` (Tailwind preflight → #e5e7eb) не знав про тему: колір рамки — токен. */
*,
::before,
::after {
  border-color: var(--border);
}
a {
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
:not(pre) > code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--bg-subtle);
}
hr {
  border-color: var(--border);
}

/* ---- Іконки (inline SVG-спрайт _icons.html, Lucide ISC) ---- */
.icon {
  width: 1.125em;
  height: 1.125em;
  flex: none;
  display: inline-block;
  vertical-align: -0.2em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg {
  width: 24px;
  height: 24px;
}

/* ---- Контейнери ---- */
.container-page,
.container-read,
.container-form {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-page {
  max-width: calc(var(--w-page) + 2 * var(--gutter));
}
.container-read {
  max-width: calc(var(--w-read) + 2 * var(--gutter));
}
.container-form {
  max-width: calc(var(--w-form) + 2 * var(--gutter));
}

/* ---- Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 550;
  font-size: var(--text-sm);
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform 0.1s var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn .icon {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-fg);
}
.btn-primary:hover {
  background: var(--brand-hover);
}
/* Вторинна: папір + рамка. Клас лишився «ghost» заради сумісності шаблонів. */
.btn-ghost,
.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover,
.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--control-border);
}
.btn-quiet {
  color: var(--fg);
}
.btn-quiet:hover {
  background: var(--bg-subtle);
}
.btn-danger {
  color: var(--danger);
}
.btn-danger:hover {
  background: var(--danger-soft);
}
.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  gap: 6px;
}
.btn-sm .icon {
  width: 16px;
  height: 16px;
}
.btn-icon {
  width: 40px;
  padding: 0;
}
.btn-icon.btn-sm {
  width: 32px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}
.btn.htmx-request {
  opacity: 0.7;
  cursor: progress;
}

/* ---- Card / panel: бордер без тіні. Не кожен контент — картка (див. DESIGN.md). ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
@media (max-width: 639px) {
  .card {
    padding: 16px;
  }
}
.card-hover {
  transition: border-color var(--dur) var(--ease);
}
.card-hover:hover {
  border-color: var(--border-strong);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ---- Form controls ---- */
.input {
  width: 100%;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--control-border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  min-height: 40px;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.input::placeholder {
  color: var(--fg-muted);
  opacity: 1;
}
.input:hover {
  border-color: var(--fg-muted);
}
.input:focus,
.input:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.input[aria-invalid="true"],
.input.is-invalid {
  border-color: var(--danger);
}
.input:disabled {
  background: var(--bg-subtle);
  color: var(--fg-muted);
}
textarea.input {
  min-height: 96px;
  resize: vertical;
}
.label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 550;
  margin-bottom: 6px;
}
.field-hint {
  color: var(--fg-muted);
  font-size: 13px;
  margin-top: 4px;
}
.field-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 4px;
}

/* Selects: одна стрілка на весь продукт (і .input, і .chip-select, і .select-facet) */
select.input,
select.select-facet,
.chip-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f5c55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  text-overflow: ellipsis;
}
select.input,
select.select-facet {
  padding-right: 34px;
  /* Вертикальний padding 0 + фіксована висота: компактні select із inline height:30-32px
     (pipeline, команда, збережені пошуки) не обрізають текст (launch-QA 18.10.2026). */
  height: 40px;
  padding-top: 0;
  padding-bottom: 0;
}
.select-facet {
  height: 40px;
  font-size: var(--text-sm);
}

/* ---- Badge / status: спокійні, прямокутні; колір лише коли він щось означає ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius);
  font-size: var(--text-xs);
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
  background: var(--bg-subtle);
  color: var(--fg-muted);
}
.badge .icon {
  width: 13px;
  height: 13px;
}
.badge-success {
  background: var(--success-soft);
  color: var(--success);
}
.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge-match {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.badge-founding {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.badge-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg-muted);
}

/* ---- Promo (founding employer) — спокійна плашка, без тінту-підсвітки ---- */
.promo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface);
}
/* Текст займає рядок, поки є ≥260px; інакше дія (кнопка/форма) переноситься під нього. */
.promo-banner > :first-child {
  flex: 1 1 260px;
  min-width: 0;
}
.promo-banner .input {
  min-width: 9rem;
}
.promo-note {
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: var(--text-xs);
  font-weight: 550;
  line-height: 1.4;
  color: var(--brand);
  background: var(--brand-soft);
}
/* Колись був ALL-CAPS eyebrow; тепер звичайний підпис (eyebrow — заборонений прийом). */
.promo-kicker {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand);
}
.promo-meter {
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-subtle);
}
.promo-meter > span {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: inherit;
}

/* ---- Chips (фільтри й теги) ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border-strong);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
.chip .icon {
  width: 15px;
  height: 15px;
}
.chip:hover {
  background: var(--bg-subtle);
}
.chip-active,
.chip[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  font-weight: 600;
}
.chip-count {
  font-size: var(--text-xs);
  color: var(--fg-muted);
}

/* ---- Tabs (розділи сторінки) ---- */
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  margin-bottom: -1px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab:hover {
  color: var(--fg);
}
.tab[aria-current],
.tab[aria-selected="true"],
.tab-active {
  color: var(--fg);
  border-bottom-color: var(--fg);
  font-weight: 600;
}
.tab .chip-count,
.tab-count {
  color: var(--fg-muted);
  font-weight: 500;
}

/* ---- Table (кабінети): без зебри, числа праворуч ---- */
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.table th {
  text-align: left;
  font-weight: 550;
  color: var(--fg-muted);
  white-space: nowrap;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-strong);
}
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover {
  background: var(--bg-subtle);
}
.table .num {
  text-align: right;
}
.table th:first-child,
.table td:first-child {
  padding-left: 0;
}
.panel .table th:first-child,
.panel .table td:first-child {
  padding-left: 16px;
}

/* ---- Empty state: пояснює, що робити далі ---- */
.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--fg-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.empty-state > .icon {
  width: 28px;
  height: 28px;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.empty-state h2,
.empty-state h3,
.empty-state .empty-title {
  color: var(--fg);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

/* ---- Sidebar nav (кабінети): сірий активний пункт, без акценту ---- */
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  color: var(--fg-muted);
  text-decoration: none;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.nav-item:hover {
  background: var(--bg-subtle);
  color: var(--fg);
}
.nav-item-active,
.nav-item[aria-current="page"] {
  background: var(--bg-subtle);
  color: var(--fg);
  font-weight: 600;
}

/* ---- Шапка (каркас base.html) ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
  line-height: 0;
  flex: none;
}
.wordmark svg {
  height: 22px;
  width: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav-link:hover {
  color: var(--fg);
  background: var(--bg-subtle);
}
.site-nav-link[aria-current] {
  color: var(--fg);
  font-weight: 600;
}
.site-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 0;
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  text-decoration: none;
}
.icon-btn:hover {
  color: var(--fg);
  background: var(--bg-subtle);
}
.icon-btn .icon {
  width: 20px;
  height: 20px;
}
.lang-inline {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: var(--text-xs);
}
.lang-inline a {
  padding: 4px 6px;
  border-radius: var(--radius);
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 500;
}
.lang-inline a:hover {
  color: var(--fg);
  background: var(--bg-subtle);
}
.lang-inline a[aria-current] {
  color: var(--fg);
  font-weight: 650;
}
/* Кнопка асистента в шапці (усі ширини): іконка; підпис «Ask AI» видно від 1024px,
   вужче він лишається доступною назвою (візуально прихований). */
.ai-head-btn {
  width: auto;
  min-width: 40px;
  gap: 6px;
}
.ai-head-btn[aria-expanded="true"] {
  color: var(--fg);
  background: var(--bg-subtle);
}
.ai-head-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (min-width: 1024px) {
  .ai-head-btn {
    padding: 0 10px;
  }
  .ai-head-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    font-size: var(--text-sm);
    font-weight: 500;
  }
}
.only-mobile {
  display: none !important;
}
@media (max-width: 767px) {
  .only-desktop {
    display: none !important;
  }
  .only-mobile {
    display: inline-flex !important;
  }
  .site-header-inner {
    gap: 12px;
  }
}

/* Мобільне меню: native popover (без JS-фреймворку), справа на всю висоту */
.menu-sheet {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(20rem, 86vw);
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu-sheet::backdrop {
  background: rgb(22 22 20 / 0.32);
}
.menu-sheet-head {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 20px;
  border-bottom: 1px solid var(--border);
}
.menu-sheet nav {
  display: flex;
  flex-direction: column;
  padding: 8px;
}
.menu-sheet nav a,
.menu-sheet nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--text-base);
  color: var(--fg);
  text-decoration: none;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.menu-sheet nav a:hover,
.menu-sheet nav button:hover {
  background: var(--bg-subtle);
}
.menu-sheet nav a[aria-current] {
  font-weight: 600;
  background: var(--bg-subtle);
}
.menu-sheet nav .icon {
  color: var(--fg-muted);
  width: 20px;
  height: 20px;
}
.menu-sheet-sep {
  height: 1px;
  background: var(--border);
  margin: 8px 12px;
}
.menu-sheet-foot {
  padding: 12px 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.menu-sheet-foot .lang-inline {
  font-size: var(--text-sm);
}
@media (prefers-reduced-motion: no-preference) {
  .menu-sheet:popover-open {
    animation: sheet-in 0.22s var(--ease);
  }
  @keyframes sheet-in {
    from {
      transform: translateX(16px);
      opacity: 0;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
}

/* Тема-перемикач: три SVG, видно той, що відповідає режиму */
.theme-toggle {
  background: none;
  border: 0;
  cursor: pointer;
}
.theme-toggle .icon {
  display: none;
}
.theme-toggle[data-mode="system"] .i-system,
.theme-toggle:not([data-mode]) .i-system,
.theme-toggle[data-mode="light"] .i-light,
.theme-toggle[data-mode="dark"] .i-dark {
  display: inline-block;
}

/* Перемикач мов: компактне меню (старий партіал; лишаємо для сумісності) */
.lang-menu {
  display: none;
  position: relative;
}
.lang-menu > summary {
  list-style: none;
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--fg);
  padding: 4px 6px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.lang-menu > summary::-webkit-details-marker {
  display: none;
}
.lang-menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  padding: 4px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.lang-menu-pop a {
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  color: var(--fg);
}
.lang-menu-pop a:hover {
  background: var(--bg-subtle);
}
.lang-menu-pop a[aria-current] {
  font-weight: 600;
}

/* ---- Футер ---- */
.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg-muted);
  font-size: var(--text-sm);
}
.site-footer-inner {
  padding-top: 32px;
  padding-bottom: 40px;
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .site-footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}
.site-footer a {
  color: var(--fg-muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--fg);
  text-decoration: underline;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer .wordmark svg {
  height: 18px;
}
@media (min-width: 768px) {
  .site-footer nav {
    justify-content: flex-end;
    max-width: 30rem;
  }
}

/* ---- Mobile bottom-nav (шукач) ---- */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: space-around;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 56px;
  padding: 6px 0 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
}
.bottom-tab .icon {
  width: 22px;
  height: 22px;
}
.bottom-tab-active {
  color: var(--fg);
  font-weight: 650;
}
.bottom-tab-active .icon {
  color: var(--brand);
  stroke-width: 2;
}
.bottom-tab:active {
  background: var(--bg-subtle);
}

/* Контент не ховається за нижньою навігацією шукача (панель дій вакансії — у блоці D2) */
@media (max-width: 639px) {
  body:has(.bottom-nav) main {
    padding-bottom: 84px;
  }
}
@media (min-width: 640px) {
  .bottom-nav {
    display: none;
  }
}

/* ---- Notices ---- */
.notice,
.notice-ok,
.notice-warn,
.notice-error {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  line-height: 1.45;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--fg);
}
.notice-ok {
  background: var(--success-soft);
  border-color: color-mix(in srgb, var(--success) 30%, var(--border));
}
.notice-warn {
  background: var(--warning-soft);
  border-color: color-mix(in srgb, var(--warning) 30%, var(--border));
}
.notice-error {
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 30%, var(--border));
}

/* ---- Focus-visible (a11y) ---- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---- Motion: scroll-reveal вимкнено (fade-up на кожній секції — AI-ознака). Клас лишився. ---- */
.reveal,
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---- Skeleton shimmer ---- */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-subtle) 25%,
    var(--border) 37%,
    var(--bg-subtle) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* ---- Hero: без градієнтного світіння (клас лишився для сумісності landing.html) ---- */
.hero-glow {
  background: none;
}

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

/* ---- Проза (статті, help, legal) ---- */
.prose {
  color: var(--fg);
}
.prose a {
  color: var(--brand);
  text-decoration: underline;
}

/* Юридичні сторінки: markdown-таблиці прокручуються всередині, сторінка — ні (375px). */
.legal table {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.legal th,
.legal td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.625rem;
  text-align: left;
  vertical-align: top;
  min-width: 8rem;
}
.legal th {
  background: var(--bg-subtle);
  font-weight: 600;
}

/* DPA: версія для підпису — друк/PDF без навігації сайту. */
.legal table.dpa-sign td {
  height: 2.5rem;
}
@media print {
  header,
  footer,
  .bottom-nav,
  .no-print,
  [role="note"],
  .ai-dock {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  main {
    padding: 0 !important;
  }
  article {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: none !important;
  }
  .legal table {
    display: table;
    overflow: visible;
  }
}

/* ---- Автентифікація й антибот (M60) ---- */
/* Honeypot: поза екраном, не display:none (частина ботів пропускає приховані поля). */
.jj-hp {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.otp-input {
  font-size: 24px;
  letter-spacing: 0.35em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}
.qr-box {
  align-self: flex-start;
  display: inline-block;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  line-height: 0;
}
.qr-box svg {
  width: 200px;
  height: 200px;
}
.secret-key {
  font-family: var(--font-mono);
  font-size: 14px;
  word-break: break-all;
  padding: 6px 8px;
  border-radius: var(--radius);
  background: var(--bg-subtle);
}
.backup-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  font-family: var(--font-mono);
  font-size: 15px;
}
form.ab-waiting button[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

/* ==== D2 (21.10.2026): публічний портал — каталог, вакансія, головна, роботодавці, проза ==== */

/* ---- Заголовки сторінок ---- */
.page-title {
  font-size: var(--text-3xl);
  font-weight: 650;
}
.page-lead {
  margin-top: 8px;
  max-width: var(--w-read);
  color: var(--fg-muted);
}
.section-title {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}
.text-link {
  color: var(--brand);
  font-weight: 550;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}

/* ---- Рядки вакансій (Ashby-патерн): у .job-list — рядок з лінією; окремо — картка ---- */
.job-list {
  border-top: 1px solid var(--border);
}
.job-list:has(> .empty-state),
.job-list:has(> .job-list-empty) {
  border-top: 0;
}
.job-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.job-card + .job-card {
  margin-top: 12px;
}
.job-list > .job-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  margin: 0;
  padding: 16px 0;
}
.job-link {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-right: 44px; /* місце під «серце» */
  color: inherit;
  text-decoration: none;
}
.job-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: var(--radius);
}
.job-main {
  min-width: 0;
  flex: 1;
}
.job-logo {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--fg-muted);
}
.job-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: #fff; /* лого компаній намальовані під біле тло */
}
.job-title {
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.job-link:hover .job-title {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.job-company {
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--fg-muted);
  overflow-wrap: anywhere;
}
.job-company-name {
  color: var(--fg);
}
.job-company-name + .job-place::before {
  content: ", ";
}
.job-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fg-muted);
}
.job-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.job-date.is-new {
  color: var(--fg);
  font-weight: 550;
}
.search-also {
  margin-top: 8px;
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
.search-also a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.ua-flag {
  display: inline-block;
  vertical-align: -0.1em;
  margin-left: 2px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
  flex: none;
}
.job-founding {
  color: var(--fg-muted);
}
/* Опубліковано на jajob (не чужий фід): подача тут — тихий акцентний текст, не бейдж. */
.job-native {
  color: var(--brand);
  font-weight: 550;
}
/* Факти для рішення (данська не потрібна, remote/hybrid) — текстом чорнилом, не бейджем:
   на порталі для англомовних вони стоять на більшості рядків, рамка там — шпалери. */
.job-fact {
  color: var(--fg);
  font-weight: 500;
}
.job-source {
  color: var(--fg-muted);
}
/* Зарплата — це дані, не «успіх»: чорнило, табличні цифри. */
.job-salary {
  font-weight: 600;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.deadline-urgent {
  color: var(--danger);
  font-weight: 550;
}
.deadline-soon {
  color: var(--warning);
  font-weight: 550;
}
.job-list-empty {
  padding: 16px 0;
}
/* Сторінка компанії: її назва й лого в кожному рядку — повтор, ховаємо */
.job-list-company .job-logo,
.job-list-company .job-company-name {
  display: none;
}
.job-list-company .job-link {
  gap: 0;
}
.job-list-company .job-company-name + .job-place::before {
  content: none;
}
.job-list > .empty-state {
  margin-top: 4px;
}
#jobs-more {
  padding-top: 24px;
  text-align: center;
}
@media (max-width: 639px) {
  .job-link {
    gap: 12px;
  }
  .job-logo {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .job-list > .job-card {
    padding: 14px 0;
  }
}

.heart-btn {
  position: absolute;
  top: 8px;
  right: 0;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  background: transparent;
  cursor: pointer;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    transform 0.12s var(--ease);
}
.job-card:not(.job-list > .job-card) .heart-btn {
  top: 10px;
  right: 10px;
}
.heart-btn:hover {
  background: var(--bg-subtle);
  color: var(--fg);
}
.heart-btn[aria-pressed="true"] {
  color: var(--danger);
}
.heart-btn svg {
  width: 20px;
  height: 20px;
}
@media (prefers-reduced-motion: no-preference) {
  .heart-btn:active {
    transform: scale(0.92);
  }
}
.apply-bar .heart-btn,
.job-head-save .heart-btn,
.job-actions .heart-btn {
  position: static;
}

/* ---- Пошук і фільтри каталогу ---- */
.catalog-form {
  margin-top: 20px;
}
.search-row {
  display: grid;
  gap: 8px;
}
@media (min-width: 768px) {
  .search-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  }
}
.search-field {
  position: relative;
}
.search-field > .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-muted);
  pointer-events: none;
}
.search-field .input {
  padding-left: 40px;
}
.where-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem;
  gap: 8px;
}
.where-box {
  position: relative;
}
.where-box .input {
  padding-right: 44px;
}
.geo-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
}
.geo-btn:hover {
  color: var(--fg);
  background: var(--bg-subtle);
}
.chip-select {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 32px 0 12px;
  border-radius: var(--radius);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  max-width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  background-position: right 8px center;
}
.chip-select:hover {
  border-color: var(--control-border);
}
.chip-select.is-set {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  color: var(--brand);
  background-color: var(--brand-soft);
}
.chip-toggle {
  position: relative;
  flex: 0 0 auto;
  cursor: pointer;
  user-select: none;
  height: 36px;
}
.chip-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip-toggle:has(input:checked) {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  color: var(--brand);
  background: var(--brand-soft);
}
.chip-toggle:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
/* Старий ряд (мапа): горизонтальний скрол із м'яким краєм */
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}
.filter-row::-webkit-scrollbar {
  display: none;
}
.filter-row .chip-select {
  max-width: 15rem;
}

.filter-open {
  margin-top: 8px;
}
.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-fg);
  font-size: var(--text-xs);
  font-weight: 600;
}
/* Десктоп: лист фільтрів — звичайний блок, фільтри переносяться рядами (не обрізаються). */
@media (min-width: 768px) {
  .filter-sheet[popover],
  .filter-sheet[popover]:not(:popover-open) {
    display: block;
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    overflow: visible;
  }
  .filter-sheet-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}
/* Мобільний: нижній лист (native popover: Esc і клік поза закривають без JS). */
@media (max-width: 767px) {
  .filter-sheet[popover] {
    position: fixed;
    inset: auto 0 0 0;
    margin: 0;
    width: 100%;
    max-width: none;
    max-height: 85dvh;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--surface);
    color: var(--fg);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .filter-sheet[popover]:popover-open {
    display: flex;
    flex-direction: column;
  }
  .filter-sheet::backdrop {
    background: rgb(22 22 20 / 0.32);
  }
  .filter-sheet-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 16px;
    border-bottom: 1px solid var(--border);
  }
  .filter-sheet-body {
    display: grid;
    gap: 10px;
    padding: 16px;
  }
  .filter-sheet-body .chip-select {
    width: 100%;
    height: 44px;
    font-size: var(--text-sm);
  }
  .filter-sheet-body .chip-toggle {
    height: 44px;
    font-size: var(--text-sm);
    justify-content: flex-start;
  }
  .filter-sheet-foot {
    display: block !important;
    position: sticky;
    bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--border);
  }
  @media (prefers-reduced-motion: no-preference) {
    .filter-sheet:popover-open {
      animation: sheet-up 0.22s var(--ease);
    }
    @keyframes sheet-up {
      from {
        transform: translateY(16px);
        opacity: 0;
      }
      to {
        transform: none;
        opacity: 1;
      }
    }
  }
}

/* Добірки — посилання (окремі сторінки), не фільтри */
.coll-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: var(--text-sm);
}
.coll-links a {
  color: var(--fg-muted);
  text-decoration: none;
  white-space: nowrap;
}
.coll-links a:hover {
  color: var(--fg);
  text-decoration: underline;
}
.coll-links a[aria-current] {
  color: var(--fg);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
@media (max-width: 639px) {
  .coll-links a {
    padding: 10px 0;
  }
  .coll-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 4px;
    mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  }
  .coll-links::-webkit-scrollbar {
    display: none;
  }
}

.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.results-count {
  font-size: var(--text-sm);
  font-weight: 550;
  color: var(--fg);
}
.results-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.results-actions .chip-select {
  height: 32px;
}

/* Навігаційні списки (галузі, міста): рядки з лінією, лічильник праворуч */
.browse {
  display: grid;
  gap: 32px;
}
@media (min-width: 1024px) {
  .browse {
    grid-template-columns: 2fr 1fr;
    gap: 48px;
  }
}
.link-list {
  border-top: 1px solid var(--border);
}
.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--fg);
  text-decoration: none;
}
.link-list a:hover {
  color: var(--brand);
}
.link-list a:hover > span:first-child {
  text-decoration: underline;
}
.link-count {
  flex-shrink: 0;
  color: var(--fg-muted);
  font-size: var(--text-xs);
}
@media (min-width: 640px) {
  .link-list-cols {
    columns: 2;
    column-gap: 32px;
    border-top: 0;
  }
  .link-list-cols li {
    break-inside: avoid;
  }
  .link-list-cols a {
    border-top: 1px solid var(--border);
    border-bottom: 0;
    margin-bottom: -1px;
  }
  .link-list-cols li:last-child a {
    border-bottom: 1px solid var(--border);
  }
}
.browse > div:last-child .link-list-cols {
  columns: 2;
}

/* Старі класи (сумісність): browse-grid */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0 24px;
}
.browse-grid a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--fg);
  text-decoration: none;
}

/* ---- Сторінка вакансії: документ + бокова панель дій (≥1024), липка панель на мобільному ---- */
.job-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "aside" "body";
  gap: 24px;
}
.job-page-head {
  grid-area: head;
  min-width: 0;
}
.job-aside {
  grid-area: aside;
  min-width: 0;
}
.job-body {
  grid-area: body;
  min-width: 0;
}
@media (min-width: 1024px) {
  .job-page {
    grid-template-columns: minmax(0, 1fr) 20rem;
    grid-template-areas: "head aside" "body aside";
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    row-gap: 32px;
  }
  .job-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
  }
}
@media (max-width: 1023px) {
  .only-lg {
    display: none !important;
  }
}
@media (min-width: 1024px) {
  .not-lg {
    display: none !important;
  }
}
.job-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--fg-muted);
  text-decoration: none;
}
.job-back:hover {
  color: var(--fg);
}
.job-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.job-head .job-logo {
  flex-basis: 52px;
  width: 52px;
  height: 52px;
  font-size: 20px;
}
.job-h1 {
  font-size: var(--text-3xl);
  font-weight: 650;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.job-sub {
  margin-top: 6px;
  color: var(--fg-muted);
}
.job-sub a {
  color: var(--fg);
  font-weight: 550;
  text-decoration: none;
}
.job-sub a:hover {
  text-decoration: underline;
}
@media (max-width: 639px) {
  .job-head .job-logo {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }
  .job-h1 {
    font-size: var(--text-2xl);
  }
}
.job-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
/* Факти: список «підпис — значення» з лініями (не «картка в картці») */
.job-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.job-facts dt {
  font-size: var(--text-xs);
  color: var(--fg-muted);
}
.job-facts dd {
  margin-top: 2px;
  font-size: var(--text-sm);
  font-weight: 550;
  color: var(--fg);
  overflow-wrap: anywhere;
}
.job-facts dd a {
  color: inherit;
}
/* Мобільний/планшет: факти сіткою 2 колонки (компактно над текстом); ≥1024 у боковій панелі —
   рядки «підпис ліворуч, значення праворуч». */
@media (max-width: 1023px) {
  .job-aside .job-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .job-aside .job-actions + div,
  .job-aside .job-actions {
    margin-bottom: 4px;
  }
  .job-aside .job-facts {
    margin-top: 20px;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--border);
  }
  .job-aside .job-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .job-aside .job-facts dd {
    margin: 0;
    text-align: right;
  }
}
.job-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.job-actions .btn {
  flex: 1;
}
.job-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.job-section h2 {
  font-size: var(--text-lg);
  font-weight: 600;
}
.job-note {
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
.trust-list {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  font-size: var(--text-sm);
}
.trust-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.trust-list .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transform: translateY(2px);
  color: var(--fg-muted);
}
.trust-good {
  color: var(--success);
}
.trust-warn {
  color: var(--warning);
}
.trust-bad {
  color: var(--danger);
}

/* Текст оголошення: колонка ~68 знаків, рівні відступи, без «дірок» від порожніх абзаців
   імпортованого HTML; заголовки джерела (часто КАПСОМ) приведені до одного рівня. */
.job-desc {
  max-width: 38rem;
  font-size: var(--text-base);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.job-desc > :first-child {
  margin-top: 0;
}
.job-desc p,
.job-desc ul,
.job-desc ol,
.job-desc blockquote,
.job-desc pre,
.job-desc table {
  margin-top: 0.85em;
}
.job-desc p:empty,
.job-desc p:has(> br:only-child),
.job-desc br + br {
  display: none;
}
.job-desc h1,
.job-desc h2,
.job-desc h3,
.job-desc h4,
.job-desc h5,
.job-desc h6 {
  margin-top: 1.6em;
  font-size: var(--text-base);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
}
.job-desc ul {
  list-style: disc;
  padding-left: 1.25rem;
}
.job-desc ol {
  list-style: decimal;
  padding-left: 1.25rem;
}
.job-desc li + li {
  margin-top: 0.3em;
}
.job-desc li::marker {
  color: var(--fg-muted);
}
.job-desc a {
  color: var(--brand);
  text-decoration: underline;
}
.job-desc strong,
.job-desc b {
  font-weight: 600;
}
.job-desc img {
  max-width: 100%;
  height: auto;
}
.job-desc table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.job-desc th,
.job-desc td {
  border: 1px solid var(--border);
  padding: 6px 8px;
  text-align: left;
}
.job-desc-plain {
  white-space: pre-line;
}
.job-source-note {
  margin-top: 32px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  font-size: var(--text-sm);
  max-width: 38rem;
}

/* ---- Sticky mobile apply-bar ---- */
.apply-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 39;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  display: flex;
  gap: 8px;
  align-items: center;
}
.apply-bar .btn {
  flex: 1;
  min-width: 0;
}
.apply-bar .btn > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1023px) {
  /* Відступ на body, а не на main: інакше панель накриває нижні посилання футера */
  body:has(.apply-bar) {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 639px) {
  /* Шукач: над нижньою навігацією (вона видима лише <640) */
  body:has(.bottom-nav):has(.apply-bar) .apply-bar {
    bottom: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: 10px;
  }
  body:has(.bottom-nav):has(.apply-bar) {
    padding-bottom: 120px;
  }
}
@media (min-width: 1024px) {
  .apply-bar {
    display: none;
  }
}

/* ---- Головна ---- */
.home-hero {
  padding: 24px 0 8px;
}
@media (min-width: 768px) {
  .home-hero {
    padding: 48px 0 16px;
  }
}
.home-h1 {
  font-size: var(--text-3xl);
  font-weight: 650;
  line-height: 1.1;
  max-width: 20ch;
}
@media (min-width: 640px) {
  .home-h1 {
    font-size: var(--text-4xl);
  }
}
.home-sub {
  margin-top: 12px;
  max-width: 40rem;
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--fg-muted);
}
.home-sub strong {
  color: var(--fg);
  font-weight: 600;
}
.home-search {
  margin-top: 28px;
  display: grid;
  gap: 8px;
  max-width: 56rem;
}
@media (min-width: 768px) {
  .home-search {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
    gap: 0;
    border: 1px solid var(--control-border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: 6px;
  }
  .home-search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
  }
  .home-search .input {
    border: 0;
    box-shadow: none;
    background: transparent;
    height: 44px;
  }
  .home-search .input:focus-visible {
    box-shadow: none;
  }
  .home-search .home-where {
    border-left: 1px solid var(--border);
  }
  .home-search .btn {
    height: 44px;
    padding-inline: 24px;
  }
}
.home-search .input {
  height: 48px;
  font-size: var(--text-base);
}
.home-search .btn {
  height: 48px;
}
.home-search .search-field > .icon {
  left: 14px;
}
.home-search .search-field .input {
  padding-left: 42px;
}
.home-free {
  margin-top: 12px;
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
.home-quick {
  margin-top: 20px;
}
.home-grid {
  margin-top: 48px;
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 64px;
    margin-top: 56px;
  }
}
.home-side {
  display: grid;
  gap: 40px;
  align-content: start;
}
@media (min-width: 640px) and (max-width: 1023px) {
  .home-side {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
.home-emp {
  margin-top: 64px;
  display: grid;
  gap: 16px 48px;
  padding: 28px 0;
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .home-emp {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}
.home-emp h2 {
  font-size: var(--text-2xl);
  font-weight: 650;
}
.home-emp p {
  margin-top: 6px;
  max-width: 40rem;
  color: var(--fg-muted);
}
.home-emp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.founding-line {
  margin-top: 12px;
  font-size: var(--text-sm);
  color: var(--fg);
}
.founding-line strong {
  font-weight: 600;
}
.faq {
  margin-top: 64px;
  max-width: var(--w-read);
}
.faq dl {
  margin-top: 12px;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  flex-shrink: 0;
  color: var(--fg-muted);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary .icon {
  transform: rotate(45deg);
}
.faq details p {
  padding-bottom: 16px;
  color: var(--fg-muted);
  max-width: 64ch;
}

/* ---- Для роботодавців: тарифи колонками з лініями, без «Popular» ---- */
.plans {
  margin-top: 20px;
  display: grid;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
  }
  .plan + .plan {
    border-left: 1px solid var(--border);
  }
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .plan {
    padding: 24px;
    border-bottom: 0;
  }
}
.plan h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}
.plan-price {
  margin-top: 8px;
  font-size: var(--text-2xl);
  font-weight: 650;
  letter-spacing: var(--tracking-tight);
}
.plan-unit {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--fg-muted);
  letter-spacing: 0;
}
.plan ul {
  margin: 16px 0 20px;
  display: grid;
  gap: 8px;
  font-size: var(--text-sm);
}
.plan li {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.plan li .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transform: translateY(2px);
  color: var(--brand);
}
.plan .btn {
  margin-top: auto;
}
.steps {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  padding-left: 1.4rem;
  list-style: decimal;
}
.steps li::marker {
  color: var(--fg-muted);
  font-weight: 600;
}

/* ---- Компанія ---- */
.company-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.company-head[style*="--company-color"] {
  border-top: 3px solid var(--company-color);
  padding-top: 24px;
}
.company-id {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}
.company-id .job-logo {
  flex-basis: 64px;
  width: 64px;
  height: 64px;
  font-size: 26px;
}
.company-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
.company-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.company-meta .icon {
  width: 15px;
  height: 15px;
}
.company-about {
  margin-top: 24px;
  max-width: 68ch;
  white-space: pre-line;
  line-height: 1.65;
}

/* ---- Проза: статті, help, legal (Read) ---- */
.read-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--fg-muted);
  text-decoration: none;
}
.read-back:hover {
  color: var(--fg);
}
.read-back .icon {
  width: 16px;
  height: 16px;
}
.prose-read {
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 38rem;
  overflow-wrap: anywhere;
}
.prose-read h1 {
  font-size: var(--text-3xl);
  font-weight: 650;
  line-height: 1.15;
  margin-bottom: 24px;
}
.prose-read h2 {
  margin-top: 2em;
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
}
.prose-read h3 {
  margin-top: 1.6em;
  font-size: var(--text-lg);
  font-weight: 600;
}
.prose-read p,
.prose-read ul,
.prose-read ol,
.prose-read table,
.prose-read blockquote {
  margin-top: 1em;
}
.prose-read h2 + p,
.prose-read h3 + p {
  margin-top: 0.5em;
}
.prose-read ul {
  list-style: disc;
  padding-left: 1.4rem;
}
.prose-read ol {
  list-style: decimal;
  padding-left: 1.4rem;
}
.prose-read li + li {
  margin-top: 0.35em;
}
.prose-read li::marker {
  color: var(--fg-muted);
}
.prose-read a {
  color: var(--brand);
  text-decoration: underline;
}
.prose-read strong {
  font-weight: 600;
}
.prose-read blockquote {
  padding-left: 16px;
  border-left: 1px solid var(--border-strong);
  color: var(--fg-muted);
}
.prose-read table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.prose-read th,
.prose-read td {
  border-bottom: 1px solid var(--border);
  padding: 8px 12px 8px 0;
  text-align: left;
  vertical-align: top;
}
.prose-read th {
  color: var(--fg-muted);
  font-weight: 550;
}
@media (max-width: 639px) {
  .prose-read h1 {
    font-size: var(--text-2xl);
  }
}
/* Списки статей і тем help: рядки з лінією, заголовок + уривок */
.entry-list {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  max-width: var(--w-read);
}
.entry-list a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}
.entry-list h2 {
  font-size: var(--text-lg);
  font-weight: 600;
}
.entry-list a:hover h2 {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.entry-list p {
  margin-top: 4px;
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: 1.55;
}
.read-note {
  margin-top: 40px;
  font-size: var(--text-sm);
  color: var(--fg-muted);
  max-width: var(--w-read);
}

/* ---- Форми входу/реєстрації: на папері, без картки ---- */
.auth {
  max-width: var(--w-form);
  margin: 8px auto 0;
}
@media (min-width: 768px) {
  .auth {
    margin-top: 32px;
  }
}
.auth h1 {
  font-size: var(--text-2xl);
  font-weight: 650;
}
.auth-lead {
  margin-top: 6px;
  color: var(--fg-muted);
  font-size: var(--text-sm);
}
.auth-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
.auth-foot a,
.auth a.link {
  color: var(--brand);
  font-weight: 550;
}
.role-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.role-pick label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 550;
  cursor: pointer;
}
.role-pick label:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}
.role-pick label:has(input:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---- Docs: ендпоінти таблицею ---- */
.endpoint-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.endpoint-table td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.endpoint-table td:first-child {
  white-space: nowrap;
}
.endpoint-table code {
  font-size: 0.85rem;
}
@media (max-width: 639px) {
  .endpoint-table,
  .endpoint-table tbody,
  .endpoint-table tr,
  .endpoint-table td {
    display: block;
  }
  .endpoint-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .endpoint-table td {
    padding: 0;
    border: 0;
    white-space: normal;
  }
  .endpoint-table td + td {
    margin-top: 4px;
    color: var(--fg-muted);
  }
}

/* ---- 404 ---- */
.error-page {
  max-width: var(--w-read);
  padding: 24px 0 16px;
}
@media (min-width: 768px) {
  .error-page {
    padding-top: 48px;
  }
}
.error-code {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg-muted);
}
.error-search {
  margin-top: 24px;
  display: flex;
  gap: 8px;
}
.error-search .search-field {
  flex: 1;
}

/* ---- Skip-link (a11y): видно лише з клавіатури ---- */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 60;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--fg);
  color: var(--bg);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 8px;
}
button.site-nav-link {
  background: none;
  border: 0;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
}

/* Колонка читання (статті, help, docs, legal): ліворуч, на одній лінії з шапкою */
.read-col {
  max-width: var(--w-read);
}
/* Шапка 768–1023: у da/uk ≥5 пунктів + вхід + CTA + асистент + мови не влазять (seeker uk 768: +24px).
   Тут лишається «Вакансії», решта розділів — у меню-листі (кнопка меню видима до 1024). DESIGN.md §3 «Каркас». */
.icon-btn.menu-btn {
  display: none;
}
@media (max-width: 1023px) {
  .site-nav .nav-wide {
    display: none;
  }
  .icon-btn.menu-btn {
    display: inline-flex;
  }
}
/* 1024–1279: повна навігація + підпис «Ask AI»; шапка шукача в uk мала лише 9px запасу → щільніше на 24px */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-header-inner {
    gap: 16px;
  }
  .site-nav .site-nav-link {
    padding: 0 8px;
  }
}

/* ==== Кабінет шукача (D3): оболонка, навігація, списки замість карток ==== */
.cab {
  display: block;
}
.cab-main {
  min-width: 0;
}
.cab-side {
  display: none;
}
@media (min-width: 1024px) {
  .cab {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
  .cab-side {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
  .cab-tabs {
    display: none;
  }
}
.cab-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cab-nav .nav-item .icon {
  width: 18px;
  height: 18px;
}
.cab-nav-sep {
  height: 1px;
  margin: 8px 10px;
  background: var(--border);
}
.cab-count {
  font-size: var(--text-xs);
  color: var(--fg-muted);
  font-weight: 550;
}
.cab-tabs {
  margin: -8px calc(-1 * var(--gutter)) 24px;
  padding: 0 var(--gutter);
  gap: 20px;
}
/* Заголовок сторінки кабінету + рядок цифр (KPI = число + підпис у рядку) */
.cab-head {
  margin-bottom: 32px;
}
.cab-title {
  font-size: var(--text-2xl);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
@media (min-width: 1024px) {
  .cab-title {
    font-size: var(--text-3xl);
  }
}
.cab-sub {
  margin-top: 6px;
  color: var(--fg-muted);
  font-size: var(--text-sm);
  max-width: var(--w-read);
}
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 8px;
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
.stat-row b {
  color: var(--fg);
  font-weight: 650;
}
.cab-section {
  margin-bottom: 40px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.cab-h2 {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.cab-h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg-muted);
  margin: 20px 0 4px;
}
.cab-h2-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.cab-link,
.cab-empty a {
  font-size: var(--text-sm);
  color: var(--brand);
  text-decoration: none;
}
.cab-link:hover,
.cab-empty a:hover {
  text-decoration: underline;
}
.cab-empty {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 1024px) {
  .cab-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }
}

/* «Що далі»: рядки з дією праворуч; на вузькому — дія під текстом */
.todo {
  border-top: 1px solid var(--border);
}
.todo-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.todo-icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--fg-muted);
}
.todo-body {
  min-width: 0;
}
.todo-title {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.todo-text {
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--fg-muted);
  max-width: 34rem;
  overflow-wrap: anywhere;
}
.todo-quote {
  color: var(--fg);
}
.todo-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
/* Підказка активації (app/domain/activation/nudges.py): рядок «іконка + текст + дія», рамка
   без тіні й без кольорової смуги. Плаваюча — одна панель під шапкою (після «зберегти»). */
.nudge {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.nudge[hidden] {
  display: none;
}
.nudge-icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--brand);
}
.nudge-body {
  min-width: 0;
}
.nudge-title {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.nudge-text {
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--fg-muted);
  max-width: 36rem;
  overflow-wrap: anywhere;
}
.nudge-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.nudge-dock {
  position: fixed;
  z-index: 40;
  top: calc(var(--header-h) + 12px);
  right: var(--gutter, 16px);
  left: var(--gutter, 16px);
  pointer-events: none;
}
.nudge-dock:empty {
  display: none;
}
.nudge-dock > .nudge {
  pointer-events: auto;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) {
  .nudge-dock {
    left: auto;
    width: 26rem;
  }
}
/* «Продовжити останній пошук» (каталог, activation/prefs.py) */
.last-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: var(--text-sm);
}
.last-search .icon {
  width: 16px;
  height: 16px;
  color: var(--fg-muted);
}
/* Прогрес (профіль, чернетка): тонка смуга, число поруч текстом, а не «кільце». */
.meter {
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-subtle);
}
.form-progress {
  margin-bottom: 24px;
}
.form-progress:not(:has(p)) {
  display: none;
}
.todo-body .meter,
.form-progress .meter {
  max-width: 20rem;
}
.meter > span {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: inherit;
}
.slot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
@media (min-width: 640px) {
  .todo-row {
    grid-template-columns: 20px minmax(0, 1fr) auto;
  }
  .todo-actions {
    grid-column: 3;
    grid-row: 1;
    margin-top: 0;
    align-self: start;
    justify-content: flex-end;
  }
}

/* Заявки: назва · стан і дата · дії; закриті — тихіше */
.app-list {
  border-top: 1px solid var(--border);
}
.app-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}
.app-main {
  min-width: 0;
  grid-column: 1 / -1;
}
.app-title {
  font-size: var(--text-base);
  font-weight: 550;
  color: var(--fg);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.app-title:hover {
  text-decoration: underline;
}
.app-meta {
  margin-top: 2px;
  font-size: 13px;
  color: var(--fg-muted);
  overflow-wrap: anywhere;
}
.app-state {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  min-width: 0;
}
.app-state .app-meta {
  margin-top: 0;
}
.app-quiet {
  color: var(--warning);
  font-weight: 550;
}
.app-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.app-actions .btn-sm {
  padding-inline: 8px;
  color: var(--fg-muted);
}
.app-actions .btn-sm:hover {
  color: var(--fg);
}
.app-row-closed .app-title {
  color: var(--fg-muted);
  font-weight: 500;
}
.app-thanks {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
@media (min-width: 900px) {
  .app-row {
    grid-template-columns: minmax(0, 1fr) 12rem 12rem;
    align-items: start;
  }
  .app-main {
    grid-column: auto;
  }
  .app-state {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
/* Оцінка процесу 0–10: одна смуга з 11 клітинок, вміщається у 343px */
.nps {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  max-width: 24rem;
  margin-top: 4px;
}
.nps-label {
  font-size: 13px;
  color: var(--fg-muted);
}
.nps-scale {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.nps-scale button {
  height: 32px;
  font: inherit;
  font-size: 13px;
  color: var(--fg);
  background: var(--surface);
  border: 0;
  border-left: 1px solid var(--border);
  cursor: pointer;
}
.nps-scale button:first-child {
  border-left: 0;
}
.nps-scale button:hover {
  background: var(--bg-subtle);
}
.nps-scale button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
.nps-ends {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--fg-muted);
}

/* Нові вакансії, збережене, алерти: прості рядки з лінією */
.feed-list {
  border-top: 1px solid var(--border);
}
.feed-list > li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.feed-title {
  font-weight: 550;
  overflow-wrap: anywhere;
}
.feed-title a,
.feed-links a {
  color: var(--fg);
  text-decoration: none;
}
.feed-title a:hover,
.feed-links a:hover {
  text-decoration: underline;
}
.feed-links {
  margin-top: 4px;
  font-size: var(--text-sm);
}
.feed-links li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.alert-list {
  border-top: 1px solid var(--border);
}
.alert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.alert-q {
  min-width: 0;
  flex: 1 1 12rem;
  font-size: var(--text-sm);
  color: var(--fg);
  text-decoration: none;
}
.alert-q:hover {
  text-decoration: underline;
}
.alert-row.is-muted .alert-q {
  color: var(--fg-muted);
}
.alert-ctrl {
  display: flex;
  align-items: center;
  gap: 2px;
}
.alert-ctrl .btn-quiet {
  color: var(--fg-muted);
}
.alert-ctrl .btn-quiet:hover {
  color: var(--fg);
}
select.input.input-sm,
.input.input-sm {
  min-height: 32px;
  height: 32px;
  width: auto;
  padding: 0 28px 0 8px;
  font-size: 13px;
  background-position: right 8px center;
}
.empty-state-sm {
  padding: 28px 20px;
}
.empty-state-sm > .icon {
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
}

/* Форма профілю: секції з лінією, підписи над полями, липка панель збереження */
.form-section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.form-section.is-first {
  border-top: 0;
  padding-top: 0;
}
.form-section-title {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.form-section-hint {
  padding-top: 4px;
  font-size: var(--text-sm);
  color: var(--fg-muted);
  max-width: 34rem;
}
.form-grid {
  display: grid;
  gap: 16px;
  padding-top: 16px;
}
@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.choice {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: start;
  cursor: pointer;
}
.choice input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.choice-title {
  font-weight: 550;
}
.choice-text {
  grid-column: 2;
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
.lang-rows {
  display: grid;
  gap: 8px;
}
.lang-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr) 40px;
  gap: 8px;
  align-items: center;
}
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill-list .badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.save-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--border);
}
@media (max-width: 639px) {
  body:has(.bottom-nav) .save-bar {
    bottom: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: 12px;
  }
}
@media (min-width: 768px) {
  .save-bar {
    margin: 0;
    padding-inline: 0;
  }
}
.save-status {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.save-status.is-ok {
  color: var(--success);
}
.save-status.is-error {
  color: var(--danger);
}
form.htmx-request .save-bar .btn-primary {
  opacity: 0.7;
}
.preview-grid {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}
@media (min-width: 640px) {
  .preview-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.preview-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  font-size: var(--text-sm);
  background: var(--surface);
  min-width: 0;
}
.preview-card-title {
  font-size: var(--text-xs);
  font-weight: 550;
  color: var(--fg-muted);
}
.vis-row {
  display: grid;
  gap: 4px 16px;
}
@media (min-width: 640px) {
  .vis-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
    align-items: center;
  }
}
.acct-list {
  padding-top: 8px;
}
.acct-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.acct-row:last-child {
  border-bottom: 0;
}
.acct-row > p {
  min-width: 0;
  flex: 1 1 16rem;
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
.acct-row > p b {
  display: block;
  color: var(--fg);
  font-weight: 550;
}

/* Сповіщення: значок Lucide замість емодзі */
.notif-list {
  border-top: 1px solid var(--border);
}
.notif-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.notif-row > .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--fg-muted);
}
.notif-row[data-unread] > .icon {
  color: var(--brand);
}
.notif-row a {
  color: inherit;
}
/* Нижня навігація: контент не ховається під нею з урахуванням safe-area */
@media (max-width: 639px) {
  body:has(.bottom-nav) main {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
}
.field-hint.is-lead {
  margin: -2px 0 8px;
}
.icon-md {
  width: 20px;
  height: 20px;
}
/* ---- D3 після рев'ю: тач-цілі ≥44px на сенсорних екранах, оцінка у два ряди, мови у два ряди ---- */
@media (max-width: 639px) {
  .nps {
    max-width: none;
  }
  .nps-scale {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .nps-scale button {
    height: 44px;
    border-top: 1px solid var(--border);
  }
  .nps-scale button:nth-child(-n + 6) {
    border-top: 0;
  }
  .nps-scale button:nth-child(7) {
    border-left: 0;
  }
  .cab-tabs {
    display: none;
  }
}
@media (pointer: coarse) {
  .cab .btn-sm,
  .cab .input-sm,
  .cab select.input.input-sm {
    min-height: 44px;
    height: auto;
  }
  .cab .btn-icon.btn-sm,
  .cab .lang-row .btn-icon {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 479px) {
  .lang-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-areas:
      "lang rm"
      "level .";
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
  .lang-row select[name="lang_code"] {
    grid-area: lang;
  }
  .lang-row select[name="lang_level"] {
    grid-area: level;
  }
  .lang-row .btn-icon {
    grid-area: rm;
  }
}
/* Деструктивна головна дія (закрити акаунт) — з рамкою, щоб не читалась як посилання */
.btn-danger-outline {
  border: 1px solid color-mix(in srgb, var(--danger) 55%, var(--border));
}
details.inline-details[open] {
  flex-basis: 100%;
}
/* Мобільне «Ще» в нижній навігації: розділи кабінету, яких нема в 4 вкладках */
.bottom-tab {
  background: none;
  border: 0;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.cab-more {
  inset: auto 0 0 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-lg);
}
.cab-more::backdrop {
  background: color-mix(in srgb, var(--fg) 25%, transparent);
}
.cab-more .nav-item {
  min-height: 48px;
  font-size: var(--text-base);
}
/* Пункти списків у тексті вакансії/статті — без «вдови» в останньому рядку (impeccable: straggler) */
.job-desc li,
.prose-read li {
  text-wrap: pretty;
}
/* ==== D4a (21.10.2026): кабінет роботодавця й адмінка — оболонка, таблиці, форми, партіали ==== */
/* Перемикач розділів <1024 (бічна панель — .cab-side ≥1024): кнопка з назвою розділу + лист */
.ops-switch {
  margin: -8px 0 24px;
}
@media (min-width: 1024px) {
  .ops-switch {
    display: none;
  }
}
.ops-switch-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 550;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.ops-switch-btn:hover {
  background: var(--bg-subtle);
}
.ops-switch-btn .icon {
  width: 18px;
  height: 18px;
  color: var(--fg-muted);
}
@media (min-width: 640px) {
  .ops-switch-btn {
    width: auto;
    min-width: 18rem;
  }
  .ops-sheet {
    max-width: 28rem;
    margin-inline: auto;
  }
}
.ops-sheet .cab-nav .nav-item {
  min-height: 48px;
  font-size: var(--text-base);
}

/* Типографіка й дрібниці робочих сторінок */
.ops-h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}
.ops-strong {
  font-weight: 550;
  color: var(--fg);
}
.ops-muted {
  color: var(--fg-muted);
}
.ops-meta {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--fg-muted);
}
.ops-link {
  color: var(--brand);
  text-decoration: none;
}
.ops-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ops-measure {
  max-width: var(--w-read);
}
.ops-quote {
  margin-top: 6px;
  max-width: 40rem;
  font-size: var(--text-sm);
  color: var(--fg);
}
.ops-yes {
  color: var(--brand);
}
.ops-warn-text {
  color: var(--warning);
}
.ops-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ops-stat-tight {
  margin-top: 0;
  align-items: center;
}
.ops-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  max-width: var(--w-read);
}
.ops-notice > .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.ops-notice b {
  font-weight: 600;
}
.ops-panel {
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  max-width: var(--w-read);
}
.ops-empty {
  padding: 32px 24px;
}
.ops-icon-link {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  vertical-align: middle;
}
.ops-icon-link .icon {
  width: 16px;
  height: 16px;
}
.ops-ok-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Таблиці кабінету: рядки з лінією, заголовки рядків чорнилом, числа праворуч */
.ops-table tbody tr:hover {
  background: none;
}
.ops-table th:last-child,
.ops-table td:last-child {
  padding-right: 0;
}
.ops-table tbody th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font-weight: 550;
  vertical-align: top;
  white-space: normal;
}
.ops-table tbody tr:last-child th {
  border-bottom: 0;
}
.ops-table tbody th:first-child {
  padding-left: 0;
}
.ops-table .num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ops-actions {
  text-align: right;
  white-space: nowrap;
}
.ops-actions > form,
.ops-actions > details {
  display: inline-block;
  vertical-align: top;
}
.ops-actions > * + * {
  margin-left: 6px;
}
.ops-actions .ops-meta {
  display: inline-block;
  max-width: 14rem;
  white-space: normal;
  text-align: left;
}
.ops-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 550;
  color: var(--fg);
}
.ops-current .icon {
  width: 16px;
  height: 16px;
  color: var(--brand);
}
/* <640: рядок таблиці → блок «підпис: значення»; перша клітинка — заголовок рядка */
@media (max-width: 639px) {
  .table-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .table-stack,
  .table-stack tbody,
  .table-stack tr {
    display: block;
    width: 100%;
  }
  .table-stack tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .table-stack tr:last-child {
    border-bottom: 0;
  }
  .table-stack td,
  .table-stack tbody th {
    position: relative;
    display: block;
    min-height: 26px;
    padding: 3px 0 3px min(38%, 9.5rem);
    border: 0;
    text-align: left;
    white-space: normal;
  }
  .table.table-stack .num {
    text-align: left;
  }
  .table-stack td[data-label]::before,
  .table-stack tbody th[data-label]::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 4px;
    width: calc(min(38%, 9.5rem) - 12px);
    font-size: 13px;
    line-height: 1.45;
    color: var(--fg-muted);
    /* підпис абсолютний (не штовхає рядок), тож в один рядок: довгий обрізається, а не налазить */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .table-stack tr > :first-child {
    padding: 0 0 6px;
    font-size: var(--text-base);
  }
  .table-stack tr > :first-child::before {
    content: none;
  }
  .table-stack td:not([data-label]):not(:first-child) {
    padding: 10px 0 0;
  }
  .table-stack .ops-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .table-stack .ops-actions > * + * {
    margin-left: 0;
  }
}

/* Факти «підпис — значення» (стан підписки, інтеграція) */
.ops-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 12px 24px;
  margin-top: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ops-facts dt {
  font-size: 12px;
  color: var(--fg-muted);
}
.ops-facts dd {
  margin-top: 2px;
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}
.ops-facts dd b {
  font-weight: 600;
}
.ops-facts-compact {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Форми кабінету роботодавця */
.ops-form {
  max-width: var(--w-form);
}
.ops-form-wide {
  max-width: var(--w-read);
}
.ops-input-auto {
  width: auto;
  min-width: 14rem;
  max-width: 100%;
}
.ops-input-cvr {
  max-width: 12rem;
}
.ops-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 40px;
  padding-top: 10px;
  font-size: var(--text-sm);
  cursor: pointer;
}
.ops-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}
.ops-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ops-push {
  margin-left: auto;
}
.ops-consent {
  margin-top: 8px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.ops-disclosure > summary,
.ops-details > summary {
  cursor: pointer;
  list-style: none;
}
.ops-disclosure > summary::-webkit-details-marker,
.ops-details > summary::-webkit-details-marker {
  display: none;
}
.ops-disclosure > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-size: var(--text-sm);
  font-weight: 550;
  color: var(--brand);
}
.ops-disclosure > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.ops-disclosure[open] > summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.ops-details-body {
  margin-top: 12px;
  max-width: 32rem;
  white-space: normal;
  text-align: left;
}
.ops-actions .ops-details-body {
  min-width: 16rem;
}
.ops-rows > li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.ops-salary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: end;
}
@media (min-width: 640px) {
  .ops-salary {
    grid-template-columns: 1fr 1fr 1fr auto;
  }
}
.ops-item {
  padding: 16px 0 24px;
  border-top: 1px solid var(--border);
}
.ops-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

/* База резюме: пошук і фільтри над списком, кандидати — рядками */
.ops-filters {
  display: grid;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.ops-field-company {
  max-width: 24rem;
}
.ops-search {
  display: flex;
  gap: 8px;
}
.ops-search .input {
  flex: 1;
  min-width: 0;
}
.ops-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: end;
}
.ops-filter-row .ops-check {
  grid-column: 1 / -1;
}
@media (min-width: 1024px) {
  .ops-filter-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  }
  .ops-filter-row .ops-check {
    grid-column: auto;
    align-items: center;
    padding-top: 0;
  }
}
.ops-results-head {
  align-items: baseline;
}
.ai-hint {
  margin: 0 0 12px;
  max-width: var(--w-read);
  font-size: 13px;
  color: var(--fg-muted);
}
.ai-hint-label {
  font-weight: 600;
  color: var(--fg);
}
.cand-list {
  border-top: 1px solid var(--border);
}
.cand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cand-row > .cand {
  flex: 1 1 20rem;
}
.cand-act {
  flex: 0 0 auto;
}
.cand-act:has(details[open]) {
  flex-basis: 100%;
}
.cand-name {
  font-weight: 600;
  line-height: 1.35;
}
.cand-city {
  font-weight: 400;
  color: var(--fg-muted);
}
.cand-headline {
  margin-top: 2px;
  font-size: var(--text-sm);
}
.cand-facts {
  margin-top: 6px;
  font-size: 13px;
  color: var(--fg-muted);
}
.cand-sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 8px;
  vertical-align: -1px;
  background: var(--border-strong);
}
.cand-fact-strong {
  color: var(--fg);
  font-weight: 550;
}
.cand-skills {
  margin-top: 4px;
  font-size: 13px;
}
.cand-summary {
  margin-top: 6px;
  max-width: var(--w-read);
  font-size: 13px;
  color: var(--fg-muted);
}
.cand-contacts {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  font-size: 13px;
}
.cand-contacts > div {
  display: flex;
  gap: 8px;
}
.cand-contacts dt {
  flex-shrink: 0;
  width: 5.5rem;
  color: var(--fg-muted);
}
.cand-contacts dd {
  min-width: 0;
}
.cand-hidden {
  margin-top: 6px;
  font-size: 12px;
  color: var(--fg-muted);
}

/* Партіали пайплайну (співбесіди, пропозиція, оцінки): секція з лінією, не «картка в картці» */
.ops-sub {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
}
.ops-sub-title {
  margin-bottom: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
}
.ops-sub-head {
  justify-content: space-between;
}
.ops-sub-head .ops-sub-title {
  margin-bottom: 0;
}
.ops-sub-row {
  padding: 6px 0;
}
.ops-sub-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.ops-sub-line .ops-meta {
  margin-top: 0;
}
.ops-sub-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.ops-sub-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.ops-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.input.input-sm.ops-grow {
  flex: 1 1 10rem;
  min-width: 0;
  padding-right: 8px;
}
.input.input-sm.ops-full {
  width: 100%;
  padding-right: 8px;
}
.ops-slots {
  display: grid;
  gap: 8px;
}
.ops-slots .input.input-sm {
  width: 100%;
  padding-right: 8px;
}
@media (min-width: 640px) {
  .ops-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ops-sc-list > li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.ops-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  margin-top: 6px;
  font-size: 13px;
}
.ops-ratings > div {
  display: flex;
  gap: 6px;
}
.ops-ratings dt {
  color: var(--fg-muted);
}
.ops-ratings dd {
  font-weight: 550;
}
.ops-sc-crit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 24rem;
}

/* Чат заявки */
.chat {
  max-width: var(--w-read);
}
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-msg {
  display: flex;
}
.chat-msg.is-mine {
  justify-content: flex-end;
}
.chat-bubble {
  max-width: min(36rem, 85%);
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.is-mine .chat-bubble {
  border-color: transparent;
  background: var(--brand-soft);
}
.chat-body {
  font-size: var(--text-sm);
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.chat-meta {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}
.chat-receipt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chat-receipt .icon {
  width: 14px;
  height: 14px;
}
.chat-form {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.chat-form .input {
  flex: 1;
  min-width: 0;
}

/* Коротка сторінка дії з листа (keep) */
.ops-single {
  max-width: var(--w-read);
  padding-top: 16px;
}
.ops-single-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  color: var(--fg-muted);
}
/* Пошук бази резюме <480: кнопка лише з іконкою (назва лишається доступною), поле ширше */
@media (max-width: 479px) {
  .ops-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .ops-search .btn {
    width: 44px;
    padding: 0;
  }
}
/* Підзаголовки робочих сторінок — ≤ ~80 знаків у рядку (impeccable: line-length) */
.cab-ops .cab-sub {
  max-width: 34rem;
}
/* D4a після рев'ю: e-mail рветься лише коли не влазить; заголовок і мета в рядку переносяться;
   шлях назад над заголовком (чат) */
.ops-wrap {
  overflow-wrap: anywhere;
}
@media (min-width: 640px) {
  .ops-table .ops-wrap {
    overflow-wrap: normal;
    word-break: normal;
  }
}
.cab-ops .cab-h2-row {
  flex-wrap: wrap;
}
.ops-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.ops-back .icon {
  width: 16px;
  height: 16px;
}

/* ---------- Анкета вакансії (21.10.2026) ---------- */
.vf-salary {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
@media (min-width: 640px) {
  .vf-salary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 11rem);
  }
}
.vf-salary > :last-child:nth-child(3) {
  grid-column: 1 / -1;
}
@media (min-width: 640px) {
  .vf-salary > :last-child:nth-child(3) {
    grid-column: auto;
  }
}
.vf fieldset {
  min-width: 0;
}
.vf-more > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vf-more > summary::-webkit-details-marker {
  display: none;
}
.vf-more > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s;
}
.vf-more[open] > summary::after {
  transform: rotate(225deg) translateY(-2px);
}
.vf-more:not([open]) > :not(summary) {
  display: none;
}
/* Автопідказка адреси (combobox) */
.addr-field {
  position: relative;
}
.addr[aria-busy="true"] .input {
  background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 12%, transparent), transparent);
  background-size: 200% 100%;
  animation: jj-shimmer 1s linear infinite;
}
.addr-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 18rem;
  overflow-y: auto;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.addr-list li {
  padding: 8px 10px;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  font-size: var(--text-sm);
}
.addr-list li[aria-selected="true"],
.addr-list li:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

/* ---------- «Сайт зреагував» ---------- */
.jj-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--brand);
  opacity: 0;
  pointer-events: none;
}
.jj-progress.is-on {
  opacity: 1;
  width: 80%;
  transition: width 2.5s cubic-bezier(0.1, 0.6, 0.2, 1);
}
.jj-progress.is-done {
  opacity: 0;
  width: 100%;
  transition: width 0.15s, opacity 0.3s 0.1s;
}
.is-loading {
  opacity: 0.55;
  transition: opacity 0.15s;
}
#results.is-loading {
  pointer-events: none;
}
button.is-busy {
  position: relative;
  color: transparent !important;
}
button.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-color: var(--brand-fg, #fff) transparent var(--brand-fg, #fff) transparent;
  border-radius: 50%;
  animation: jj-spin 0.7s linear infinite;
}
@keyframes jj-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes jj-shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jj-progress.is-on {
    transition: none;
    width: 100%;
  }
  button.is-busy::after,
  .addr[aria-busy="true"] .input {
    animation: none;
  }
}

/* ==== D4b-1 (21.10.2026): ядро кабінету роботодавця — огляд, вакансії, команда, ATS-екрани ==== */
.ops-head-row {
  align-items: center;
  flex-wrap: wrap;
}
.ops-break {
  overflow-wrap: anywhere;
}
.ops-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg-muted);
}
/* Назва рядка-посилання таблиці: чорнилом, підкреслення лише на hover (не «синій лінк») */
.ops-row-link {
  color: var(--fg);
  font-weight: 550;
  text-decoration: none;
}
.ops-row-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ops-claim-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.ops-company-head {
  align-items: baseline;
  flex-wrap: wrap;
  padding-bottom: 8px;
}
.ops-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.ops-member-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  max-width: 36rem;
}
.ops-member-form .input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
}
.ops-member-form .ops-input-auto {
  min-width: 9rem;
}
.ops-account-line {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
/* Шапка робочої сторінки з дією праворуч (на вузькому — дія під заголовком) */
.ops-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
}
.ops-page-head > :first-child {
  min-width: 0;
  flex: 1 1 20rem;
}
.ops-crumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  font-size: var(--text-sm);
  color: var(--fg-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.ops-crumb:hover {
  color: var(--fg);
}
.ops-crumb .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.ob-tasks-only [data-ob-checklist] {
  display: none;
}
.todo-row[data-done="1"] .todo-icon {
  color: var(--success);
}
.form-grid .form-grid {
  padding-top: 0;
}
.ops-slug {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.ops-slug .input {
  flex: 1 1 12rem;
  min-width: 0;
}
.ops-slug-host {
  font-size: var(--text-sm);
  color: var(--fg-muted);
  overflow-wrap: anywhere;
}
.input.ops-color {
  width: 6rem;
  height: 40px;
  padding: 4px;
}
.input.ops-input-short {
  max-width: 8rem;
}
/* <640 у таблиці вакансій: цифри рядком у заголовку рядка, стовпчики цифр приховані */
.ops-narrow-only {
  display: none;
}
@media (max-width: 639px) {
  .ops-narrow-only {
    display: block;
  }
  .table-stack .ops-wide-only {
    display: none;
  }
}
/* Лист розділів роботодавця (21 пункт після злиття jah.dk) вищий за екран телефона: гортається */
.ops-sheet {
  max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ops-sheet .cab-nav .nav-item {
  min-height: 44px;
}
/* Воронка на вузькому: заголовки колонок переносяться, таблиця не виходить за ширину */
.ops-table.ops-funnel thead th {
  white-space: normal;
  vertical-align: bottom;
}
@media (max-width: 639px) {
  .ops-funnel th,
  .ops-funnel td {
    padding-left: 8px;
    padding-right: 8px;
  }
  .ops-funnel th:first-child,
  .ops-funnel td:first-child {
    padding-left: 0;
  }
}
/* Довгі назви розділів (da «Virksomhedens kandidater») у бічній навігації переносяться, а не обрізаються */
.cab-ops .cab-side .nav-item > .truncate {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.3;
}
