/* Отклики на вакансии — стили */
:root {
  --bg: #f4f5f9;
  --card: #ffffff;
  --ink: #1d2233;
  --muted: #6b7186;
  --line: #e3e6ef;
  --accent: #4f6df5;
  --accent-ink: #ffffff;
  --danger: #e5484d;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(20, 25, 50, .07), 0 8px 24px rgba(20, 25, 50, .06);

  --st-new: #8b93ab;
  --st-applied: #4f6df5;
  --st-not-read: #8e63cf;
  --st-invite: #f5a623;
  --st-interview: #f5762a;
  --st-waiting: #2fb4d7;
  --st-offer: #2eb872;
  --st-reject-fast: #e5484d;
  --st-reject-int: #a63d57;
  --st-archive: #b6bccd;

  --topbar-bg: rgba(255, 255, 255, .92);
  --thead-bg: #fafbfe;
  --row-hover: #f7f9ff;
  --row-open: #f7f9ff;
  --pill-base: #ffffff;
  --star-tint: #fffdf4;
  --star-tint-strong: #fff6dd;
  --pill-tint: 9%;
  --danger-bg: #fdecec;
  --danger-border: #f5c6c8;
  --backdrop: rgba(18, 22, 40, .45);
  --toast-bg: #232a44;
  --star-idle: #c9cede;
  color-scheme: light;
}

/* ─── Тёмная тема ─── */
[data-theme="dark"] {
  --bg: #12151f;
  --card: #1a1f2e;
  --ink: #e7eaf3;
  --muted: #98a0b3;
  --line: #2b3145;
  --accent: #6d87ff;
  --accent-ink: #ffffff;
  --danger: #ff7076;
  --shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 8px 24px rgba(0, 0, 0, .35);

  --st-new: #9aa3bd;
  --st-applied: #7b93ff;
  --st-not-read: #b393ec;
  --st-invite: #ffc258;
  --st-interview: #ff9a5c;
  --st-waiting: #56d0f0;
  --st-offer: #52d98d;
  --st-reject-fast: #ff7b7f;
  --st-reject-int: #d06a83;
  --st-archive: #737a96;

  --topbar-bg: rgba(20, 24, 37, .92);
  --thead-bg: #171b29;
  --row-hover: #202638;
  --row-open: #202638;
  --pill-base: #1a1f2e;
  --star-tint: rgba(245, 179, 1, .07);
  --star-tint-strong: rgba(245, 179, 1, .15);
  --pill-tint: 18%;
  --danger-bg: rgba(229, 72, 77, .16);
  --danger-border: rgba(229, 72, 77, .45);
  --backdrop: rgba(5, 7, 14, .6);
  --toast-bg: #2c3350;
  --star-idle: #4a5168;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}

/* ─── Шапка ─── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 20px 10px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
h1 { font-size: 20px; margin: 0; letter-spacing: .2px; }
.toolbar { margin-left: auto; display: flex; gap: 10px; align-items: center; flex: 1; justify-content: flex-end; min-width: 280px; }

input, textarea, select {
  font: inherit; color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 109, 245, .15);
}
textarea { resize: vertical; width: 100%; }
#search { width: 320px; max-width: 100%; }

.btn {
  font: inherit; font-weight: 600;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .05s, filter .15s, background .15s;
}
.btn:hover { filter: brightness(.97); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-ai {
  background: linear-gradient(135deg, #7a5cf5, #4f6df5);
  border-color: transparent; color: #fff; white-space: nowrap;
}
.btn-danger { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
.btn-compact { padding: 9px 11px; font-size: 14px; }
[data-theme="dark"] .btn:hover { filter: brightness(1.18); }

/* ─── Чипы статусов: жёстко две строки ─── */
.chips {
  max-width: 1280px; margin: 0 auto;
  padding: 0 20px 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.chips-line {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card);
  padding: 4px 11px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--st-new)); }
.chip .n { background: var(--bg); border-radius: 999px; padding: 1px 7px; font-size: 11.5px; }
.chip.active { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 2px rgba(79, 109, 245, .14); }

/* ─── Таблица ─── */
main { max-width: 1280px; margin: 0 auto; padding: 18px 20px 60px; }
.table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 14px;
}
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); font-weight: 700;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: var(--thead-bg);
  white-space: nowrap;
}
th[data-sort] { cursor: pointer; user-select: none; transition: color .12s; }
th[data-sort]:hover { color: var(--ink); }
.sort-ind { color: var(--accent); font-size: 9px; }
td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr.main-row { cursor: pointer; transition: background .12s; }
tbody tr.main-row:hover { background: var(--row-hover); }
tbody tr.open { background: var(--row-open); }
.col-status { width: 176px; }
.col-company { width: 15%; }
.col-hr { width: 15%; }
.col-date { width: 64px; white-space: nowrap; }
.col-actions { width: 64px; white-space: nowrap; }

/* избранное */
.icon-btn.js-star { font-size: 16px; color: var(--star-idle); }
.icon-btn.js-star.starred { color: #f5b301; }
.icon-btn.js-star:hover { color: #f5b301; }
tbody tr.main-row.starred-row > td { background: var(--star-tint); }
tbody tr.main-row.starred-row:hover > td { background: var(--star-tint-strong); }
tbody tr.main-row.starred-row.open > td { background: var(--star-tint-strong); }

/* компания — одна строка с многоточием; зарплата — второй строкой */
.company {
  font-weight: 700;
  max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.position {
  font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.muted { color: var(--muted); font-size: 13px; }
.salary-line { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.hr-clamp {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 13.5px;
}
/* длинные контакты (@юзернеймы, e-mail) — одна строка с многоточием, не рвём посреди слова */
.hr-clamp a {
  display: inline-block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  vertical-align: bottom;
}
.desc-clamp {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; color: var(--muted); font-size: 13px;
}
.link { color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* статус — цветная пилюля-селект с точкой */
.st-wrap { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; }
.st-wrap .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
select.status-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  border: 1px solid var(--line);
  background-color: var(--pill-base);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7186' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  border-radius: 999px;
  padding: 5px 26px 5px 12px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  cursor: pointer; max-width: 152px;
}
@supports (background: color-mix(in srgb, red 10%, white)) {
  select.status-select { background-color: color-mix(in srgb, var(--c) var(--pill-tint, 9%), var(--pill-base)); }
}
select.status-select option { color: var(--ink); background: var(--card); }

.icon-btn {
  border: none; background: transparent; cursor: pointer;
  color: var(--muted); font-size: 15px; border-radius: 8px; padding: 4px 7px;
}
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.theme-toggle { font-size: 18px; padding: 6px 9px; }

/* Раскрытая строка: две колонки — слева тексты, справа факты и активность */
tr.detail-row td {
  background: var(--row-open);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 14px;
  align-items: start;
}
.dcol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.detail .block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0;
}
.detail .block h4 {
  margin: 0 0 8px; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .5px; color: var(--muted);
}
.detail .block p { margin: 0; white-space: pre-wrap; font-size: 14px; line-height: 1.55; }
.detail-actions { display: flex; gap: 10px; margin-top: 12px; }

/* строки «ключ — значение» в карточке «Коротко» */
.kv { display: flex; gap: 10px; padding: 4px 0; align-items: baseline; }
.kv + .kv { border-top: 1px dashed var(--line); }
.kv .k {
  flex: none; width: 92px;
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px;
}
.kv .v { min-width: 0; word-break: break-word; font-size: 13.5px; }
.kv-link {
  display: inline-block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  vertical-align: bottom;
}

/* ─── Обратная связь (лента событий) ─── */
.fb-count { color: var(--muted); font-size: 12px; margin-left: 6px; white-space: nowrap; }
.fb-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.fb-item {
  display: flex; align-items: baseline; gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}
.fb-item:last-child { border-bottom: none; }
.fb-badge {
  flex: none;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px; font-weight: 700;
  color: var(--ink);
  background-color: var(--pill-base);
  border: 1px solid var(--line);
}
@supports (background: color-mix(in srgb, red 10%, white)) {
  .fb-badge { background-color: color-mix(in srgb, var(--c) 16%, var(--pill-base)); }
}
.fb-date { flex: none; font-size: 12px; color: var(--muted); }
.fb-text { flex: 1; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.fb-item .icon-btn { flex: none; font-size: 12px; }
.fb-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fb-add select, .fb-add input, .fb-add .btn { font-size: 13px; padding: 7px 10px; }
.fb-add select { flex: none; width: auto; }
.fb-add .fb-text, .fb-add .iv-note { flex: 1 1 150px; min-width: 130px; }
.fb-add input[type="datetime-local"] { flex: 1 1 160px; width: auto; }
.fb-add .btn { flex: none; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon { font-size: 42px; margin-bottom: 8px; }

/* ─── Календарь интервью ─── */
.card-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  padding: 14px 18px 18px;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h3 { margin: 0; font-size: 16px; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-label { font-weight: 700; min-width: 150px; text-align: center; }
.cal-body { display: grid; grid-template-columns: 320px 1fr; gap: 20px; }
@media (max-width: 860px) { .cal-body { grid-template-columns: 1fr; } }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-wd {
  text-align: center; font-size: 11px; font-weight: 700;
  color: var(--muted); padding: 4px 0; text-transform: uppercase;
}
.cal-cell {
  position: relative;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 13px;
  text-align: left;
}
.cal-cell.cal-off { color: var(--muted); opacity: .45; }
.cal-cell.cal-has { cursor: pointer; background: var(--row-hover); border-color: var(--line); }
.cal-cell.cal-has:hover { background: var(--row-open); }
.cal-cell.cal-today { border-color: var(--accent); }
.cal-cell.cal-sel { background: var(--accent); color: #fff; }
.cal-cell.cal-sel .cal-dot { background: #fff !important; }
.cal-dots { position: absolute; left: 6px; right: 4px; bottom: 4px; display: flex; gap: 3px; }
.cal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }

.cal-side { min-width: 0; }
.cal-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.cal-list-head h4 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.cal-list-controls { display: flex; align-items: center; gap: 10px; }
.cal-list-controls .btn { font-size: 13px; padding: 6px 12px; }
.cal-past-toggle { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.cal-past-toggle input { width: auto; }
.cal-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.cal-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background .12s;
}
.cal-item:hover { background: var(--row-hover); }
.cal-item.cal-past { opacity: .55; }
.cal-item-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.cal-item-btns { margin-left: auto; display: flex; gap: 2px; }
.cal-when { font-weight: 700; font-size: 13.5px; }
.cal-rel { font-size: 12px; color: var(--muted); }
.cal-item-app { font-size: 13.5px; }

/* форма редактирования/добавления в календаре */
.cal-item.cal-edit-form {
  display: flex; flex-direction: column; gap: 8px;
  cursor: default;
  border-color: var(--accent);
  background: var(--row-hover);
}
.cal-edit-form .cal-app { width: 100%; font-size: 13px; padding: 7px 10px; }
.cal-form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cal-form-row .cal-when { flex: 1 1 160px; }
.cal-form-row .cal-stage { flex: none; width: auto; font-size: 13px; padding: 7px 10px; }
.cal-edit-form .cal-note { width: 100%; font-size: 13px; padding: 7px 10px; }
.cal-form-actions { display: flex; gap: 8px; }
.cal-form-actions .btn { font-size: 13px; padding: 7px 14px; }

/* ─── Календарь: тёмная тема ─── */
[data-theme="dark"] .cal-cell.cal-has { background: rgba(255, 255, 255, .04); }

/* ─── Вход через Telegram ─── */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 34px 36px;
  text-align: center;
  max-width: 380px;
}
.login-card h1 { margin: 0 0 8px; font-size: 22px; }
.login-card p { margin: 0 0 18px; color: var(--muted); }
.whoami { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* ─── Модалка ─── */
/* ВАЖНО: показываем только с классом .open — атрибут hidden перебивается
   author-CSS'ом (display:flex бьёт UA-правило [hidden]), из-за этого модалка
   раньше была открыта всегда и накрывала собой весь интерфейс. */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: var(--backdrop);
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 20, 45, .3);
  width: 100%; max-width: 640px;
  animation: pop .16s ease-out;
}
@keyframes pop { from { transform: scale(.97); opacity: .6; } to { transform: scale(1); opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 13px; }
.modal-body label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13.5px; }
.modal-body input, .modal-body select { width: 100%; font-weight: 400; }
.modal-body select { color: var(--ink); background-color: var(--card); }
/* Чтобы выбранный текст в <select> был виден (Chromium на Linux иначе рендерит белым) */
.modal-body select option { color: var(--ink); background-color: var(--card); }
.modal-body textarea { font-weight: 400; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.grid3 { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 13px; }
.ai-row { display: flex; gap: 10px; }
.ai-row input { flex: 1; }
.hint { margin: -6px 0 0; font-size: 12.5px; color: var(--muted); }
.hint.ok { color: var(--st-offer); }
.hint.err { color: var(--danger); }

/* подсказка о возможном дубле */
.dup-warning {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  display: flex; flex-direction: column; gap: 6px;
}
.dup-item {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 4px 6px; margin: 0 -6px;
  border-radius: 8px;
  cursor: pointer;
}
.dup-item:hover { background: var(--row-hover); }
.dup-item .fb-badge { display: inline-flex; align-items: center; }
.dup-item .fb-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 5px; }
.dup-main { color: var(--ink); }
.modal-foot {
  display: flex; gap: 10px; align-items: center;
  padding: 14px 20px; border-top: 1px solid var(--line);
}
.spacer { flex: 1; }
.bulk-progress { font-size: 13px; font-weight: 600; color: var(--accent); word-break: break-all; }

.save-error {
  color: var(--danger);
  font-size: 13px; font-weight: 600;
  max-width: 380px;
  text-align: left;
}

/* ─── Тост ─── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: var(--toast-bg); color: #fff;
  padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 30px rgba(15, 20, 45, .35);
  z-index: 80;
  animation: pop .15s ease-out;
}
.toast.err { background: var(--danger); }

/* ─── Адаптив ─── */
/* ─── Статистика и воронка ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px; margin-bottom: 16px;
}
.stat-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.stat-num { font-size: 21px; font-weight: 800; line-height: 1.2; }
.stat-lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; margin-top: 2px; }
.funnel { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.funnel-row { display: grid; grid-template-columns: 155px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; }
.funnel-track {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; height: 14px; overflow: hidden;
}
.funnel-fill { height: 100%; border-radius: 999px; min-width: 3px; }
.funnel-n { font-weight: 700; text-align: right; }
.stats-notes { font-size: 13.5px; line-height: 1.8; }
.grade-chips { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 860px) {
  /* таблица → карточки */
  th { display: none; }
  table, tbody, tr, td { display: block; }
  tr.main-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "st pos act" "co co co" "hr hr hr";
    column-gap: 10px; row-gap: 7px;
    padding: 11px 8px;
    border-bottom: 1px solid var(--line);
  }
  tr.main-row > td { border-bottom: none; padding: 0; }
  .col-status { grid-area: st; width: auto; }
  .col-position { grid-area: pos; width: auto; }
  .col-company { grid-area: co; width: auto; }
  .col-hr { grid-area: hr; width: auto; }
  .col-actions { grid-area: act; width: auto; }
  .col-status, .col-position, .col-company, .col-hr, .col-actions { display: block; }
  tr.detail-row td { display: block; padding: 10px 6px; }
  .company { max-width: none; }
  .position { -webkit-line-clamp: 3; }
  .toolbar { min-width: 100%; flex-wrap: wrap; }
  .funnel-row { grid-template-columns: 110px 1fr 30px; font-size: 12px; }

  .detail { grid-template-columns: 1fr; }
  .detail-actions { flex-wrap: wrap; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .col-desc, .col-date { display: none; }
  #search { width: 100%; }
}

/* бейдж грейда */
.grade-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--line);
  background-color: var(--pill-base);
}
@supports (background: color-mix(in srgb, red 10%, white)) {
  .grade-badge { background-color: color-mix(in srgb, var(--accent) 12%, var(--pill-base)); }
}
