@import url("askbuddy-ds.css?v=20261027-ui");

html {
  font-size: 16px;
}

.ab-app {
  --drawer-w: min(840px, 100vw);
  --header-h: 56px;
  --dashboard-added: #a8a8b5;
  --dashboard-applications: #c9920a;
  --dashboard-meetings: #d84b7e;
  --dashboard-offers: #3d9a6a;
  --dashboard-rejections: #c45c4a;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

.toast-stack {
  position: fixed;
  top: calc(var(--header-h) + 0.75rem);
  right: 1rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.toast-message {
  flex: 1;
  min-width: 0;
}

.toast .toast-dismiss {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0 0.35rem;
}

.toast--success {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: var(--accent-subtle);
}

.toast--error {
  border-color: color-mix(in srgb, var(--danger) 50%, var(--border));
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
}

.toast--duplicate {
  align-items: flex-start;
}

.toast--duplicate .toast-duplicate-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.toast--duplicate .toast-message--lead {
  flex: none;
  width: 100%;
  margin: 0;
  font-size: 0.875rem;
}

.toast--duplicate .toast-duplicate-link {
  text-align: left;
  font-size: 0.95rem;
}

.toast--duplicate .toast-duplicate-more {
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
}

.toast .link-btn {
  font-weight: 600;
}

.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.bulk-bar-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-right: 0.25rem;
}

.bulk-bar select {
  font: inherit;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.th-check,
.td-check {
  width: var(--vac-select-col-w, 40px);
  max-width: var(--vac-select-col-w, 40px);
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  text-align: center;
  vertical-align: middle;
}

.data-table--vac th.th-fixed[data-col="id"],
.data-table--vac td[data-col="id"] {
  width: var(--vac-id-col-w, 52px);
  max-width: var(--vac-id-col-w, 52px);
  white-space: nowrap;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.data-table--vac td[data-col="id"] code {
  font-size: 0.85em;
}

.data-table--vac th.th-fixed .th-inner {
  flex-wrap: nowrap;
}

.data-table--vac th.th-fixed .th-label {
  flex-shrink: 0;
}

.td-check input,
.th-check input {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.archived-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.archived-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.archived-list li:last-child {
  border-bottom: none;
}

.archived-list .archived-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-h);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 0 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 650;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand,
.brand:hover,
.brand:focus-visible {
  color: inherit;
  text-decoration: none;
}
.brand .brand-ask,
.brand:hover .brand-ask,
.brand:focus-visible .brand-ask { color: var(--text, #18181b); }
.brand .brand-buddy,
.brand:hover .brand-buddy,
.brand:focus-visible .brand-buddy { color: var(--pink, #d84b7e); }

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--pink, #d84b7e) 0%, #e8a0b8 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 0.25rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.nav-btn .tracker-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.nav-btn[aria-current="page"] {
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 600;
}
.nav-btn[aria-current="page"] .tracker-icon {
  color: var(--accent);
}
.nav-btn:hover {
  background: var(--surface-muted);
  color: var(--text);
}
.mobile-nav-dialog .nav a.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.theme-toggle:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 1 auto;
  min-width: 0;
  position: relative;
  z-index: 30;
}

.header-stats {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  max-width: min(16rem, 34vw);
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-stats-hint-anchor {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
}

.header-stats-applications {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: help;
  border-bottom: 1px dotted rgba(110, 110, 120, 0.55);
  -webkit-appearance: none;
  appearance: none;
}

.header-stats-hint-popover {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  left: auto;
  z-index: 50;
  width: max-content;
  max-width: min(320px, calc(100vw - 1.5rem));
  margin: 0;
  padding: 0.75rem 0.9rem;
  white-space: normal;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  pointer-events: none;
}

.header-stats-hint-text {
  margin: 0;
}

.header-stats-hint-anchor:hover .header-stats-hint-popover,
.header-stats-hint-anchor.is-hint-open .header-stats-hint-popover {
  display: block;
  pointer-events: auto;
}

.header-user-anchor {
  position: relative;
  flex-shrink: 0;
}

.header-user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 60;
  min-width: 11rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.header-user-anchor.is-menu-open .header-user-menu {
  display: block;
}

.header-user-menu-item {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.header-user-menu-item:hover {
  background: var(--surface-muted);
}

.header-user-menu-item[aria-current="page"] {
  background: var(--accent-subtle);
  color: var(--accent);
}

.header-user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  color: var(--text);
  padding: 0.25rem 0.45rem;
  margin: 0 -0.45rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  max-width: 12rem;
}

.header-user:hover {
  background: var(--surface-muted);
}

.header-user-anchor.is-profile-active .header-user,
.header-user[aria-current="true"] {
  background: var(--accent-subtle);
  color: var(--accent);
}

.header-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-user-text { display:grid; gap:1px; min-width:0; text-align:left; }
.header-user-plan { color:var(--text-muted); font-size:0.7rem; font-weight:500; }

.account-telegram-details { margin:0; font-size:14px; }
.offer-usage-table { table-layout:fixed; width:100%; }
.offer-usage-table th, .offer-usage-table td { overflow-wrap:anywhere; white-space:normal; }
.offer-usage-table th:first-child { width:54%; }
.account-telegram-details > div { display:flex; flex-wrap:wrap; gap:4px 12px; margin:6px 0; }
.account-telegram-details dt { color:var(--text-muted); min-width:100px; }
.account-telegram-details dd { margin:0; overflow-wrap:anywhere; }
@media(max-width:899px) {
  .app-header { justify-content:space-between; gap:8px; padding-inline:16px; }
  .app-header > .nav { display:none; }
  .header-meta { gap:8px; margin-left:auto; }
  .header-user-text, .header-stats { display:none; }
  .header-user { width:40px; height:40px; margin:0; padding:6px; justify-content:center; flex-shrink:0; }
}

.header-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.header-user-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.account-logout-row {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.account-page {
  width: 100%;
  max-width: 760px;
  margin-inline: 0;
}

.account-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.account-layout__profile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.account-layout__profile > .settings-block {
  margin-bottom: 0;
}

.account-layout__profile #account-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.account-layout__profile #account-form > .settings-block {
  margin-bottom: 0;
}

.account-layout__profile #account-form .account-logout-row {
  margin-top: 0;
  padding-top: 1.25rem;
}

.account-layout__plans {
  min-width: 0;
}

@media (max-width: 899px) {
  .account-layout__plans {
    order: -1;
  }
}

@media (min-width: 900px) {
  .account-layout { display:block; }
}

.account-page .settings-block {
  max-width: none;
}

.account-page .offer-plans {
  margin-bottom: 0;
}

.account-page .offer-duration-tabs {
  max-width: none;
}

.account-page .offer-plans-head {
  flex-direction: column;
  align-items: stretch;
}

@media (min-width: 1100px) {
  .account-page .offer-plans-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.main {
  padding: 1rem 1.25rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: clip;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.vacancies-view .panel-head--catalog {
  margin-bottom: 0.5rem;
}

.panel-head h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
}

.panel-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}
.panel-title-row[hidden] { display: none; }

.btn-add {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.add-vacancy-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  max-width: 42rem;
}

.add-vacancy-panel--open {
  flex-direction: column;
  align-items: stretch;
  max-width: 28rem;
  padding: 0.85rem 1rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.add-vacancy-mode {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.btn-segment.is-active {
  background: var(--accent-subtle);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--accent);
  font-weight: 600;
}

.add-vacancy-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.add-vacancy-form--manual {
  flex-direction: column;
  align-items: stretch;
}

.add-vacancy-form--manual .field {
  width: 100%;
  margin: 0;
}

.add-vacancy-hint {
  margin: 0 0 0.25rem;
}

.add-vacancy-paste {
  width: 100%;
  font-size: 0.88rem;
}

.add-vacancy-paste textarea {
  width: 100%;
  margin-top: 0.35rem;
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.add-vacancy-input {
  flex: 1 1 14rem;
  min-width: 12rem;
}

.sync-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.vac-row-spinner {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-left: 0.35rem;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  vertical-align: middle;
  animation: btn-spin 0.7s linear infinite;
}

.data-table tbody tr.needs-sync {
  background: #fffaf3;
}

.data-table tbody tr.is-pending-add {
  cursor: default;
}

.data-table tbody tr.needs-manual {
  background: #f8fafc;
}

.sync-dot-manual {
  background: #6b6560;
}

.source-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: var(--btn-h-sm, 32px);
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.source-badge--inline {
  font-size: 0.68rem;
}

.vacancy-link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

a.source-badge-link {
  text-decoration: none;
  color: var(--text);
  transition:
    background 0.12s,
    border-color 0.12s,
    color 0.12s;
}

a.source-badge-link:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--accent-subtle);
}

a.source-badge-link.is-primary {
  border-color: #e0d5c8;
  font-weight: 650;
}

.source-banner-hint {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.vacancy-links-field {
  margin-top: 0.25rem;
}

.link-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.link-row {
  display: grid;
  grid-template-columns: 1fr minmax(5rem, 7rem) auto;
  gap: 0.4rem;
  align-items: center;
}

.link-row--editable {
  grid-template-columns: auto 1fr minmax(5rem, 7rem) auto;
}

.link-row-order {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.link-row-order .btn-icon-move {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0.12rem 0.28rem;
  border-radius: 3px;
  cursor: pointer;
}

.link-row-order .btn-icon-move:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.link-row-order .btn-icon-move:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-icon-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--drawer-meta-h, var(--btn-h-sm, 32px));
  height: var(--drawer-meta-h, var(--btn-h-sm, 32px));
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
}

.btn-icon-edit:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--accent-subtle);
}

.link-row-url,
.link-row-label {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  font-size: 0.85rem;
}

.btn-add-link {
  font-size: 0.85rem;
}

.panel-head p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.toolbar-popover-anchor {
  position: relative;
}

.columns-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 6;
  min-width: 11rem;
  padding: 0.5rem 0.55rem 0.55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.columns-popover-hint {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.toolbar-view-toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.view-toggle-btn {
  border: none;
  border-radius: 0;
  background: var(--surface);
  color: var(--text-muted);
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1.2;
}

.view-toggle-btn + .view-toggle-btn {
  border-left: 1px solid var(--border);
}

.view-toggle-btn:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.view-toggle-btn.is-active {
  background: var(--accent-subtle);
  color: var(--accent-hover);
  font-weight: 600;
}

.vacancy-dna-busy {
  color: var(--text-muted, #6b6560);
  font-style: italic;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.kanban-wrap {
  overflow: auto;
  padding-bottom: 1.25rem;
  scroll-padding-bottom: 1.25rem;
}

.kanban-board-empty {
  margin: 0 0 0.75rem;
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.kanban-board {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  min-height: 12rem;
  padding-bottom: 0.75rem;
}

.kanban-column {
  flex: 0 0 220px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.kanban-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--kanban-accent, var(--surface-muted));
  color: var(--kanban-accent-fg, var(--text));
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}

.kanban-column-count {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
}

.kanban-column-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.35rem 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.kanban-empty {
  margin: 0.25rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.kanban-card {
  padding: 0.5rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: grab;
  box-shadow: 0 1px 2px rgba(26, 24, 22, 0.04);
  user-select: none;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.is-dragging {
  opacity: 0.45;
}

.kanban-column-body.is-drop-target {
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
  background: var(--accent-subtle);
}

.kanban-card:hover {
  border-color: var(--accent);
}

.kanban-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.kanban-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.kanban-card-company {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.kanban-card-meta {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(26, 24, 22, 0.04);
  max-width: 100%;
  /* без overflow — иначе sticky th цепляется к обёртке (пустая полоса + не липнет к окну) */
  overflow: visible;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table td {
  overflow: hidden;
}

.data-table thead th {
  background: var(--surface-muted);
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  top: var(--header-h);
  z-index: 3;
  overflow: visible;
  vertical-align: middle;
  box-shadow: 0 1px 0 var(--border);
}

.data-table tbody tr {
  cursor: pointer;
}
.data-table tbody tr:hover {
  background: #faf9f7;
}
.data-table tbody tr.is-selected {
  background: var(--accent-subtle);
}

.data-table--dashboard {
  table-layout: auto;
  width: max-content;
  min-width: 100%;
}
.data-table--dashboard thead th {
  position: static;
  top: auto;
  box-shadow: none;
  border-bottom: 1px solid var(--border);
}
.data-table--dashboard tbody tr {
  cursor: default;
}
.data-table--dashboard tbody tr:hover {
  background: transparent;
}
.data-table--dashboard .dashboard-metric-col {
  position: sticky;
  left: 0;
  z-index: 2;
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface);
  box-shadow: 1px 0 0 var(--border);
}
.data-table--dashboard thead .dashboard-metric-col {
  background: var(--surface-muted);
}
.data-table--dashboard .dashboard-date-col {
  text-align: center;
  min-width: 4.5rem;
}
.dashboard-num {
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  min-width: 2.5rem;
}
.dashboard-num.is-nonzero {
  color: var(--text);
  font-weight: 600;
}
.dashboard-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 1rem;
}

.dashboard-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1rem;
  align-items: start;
}

.dashboard-split-chart .dashboard-progress {
  margin: 0;
}

@media (max-width: 960px) {
  .dashboard-split {
    grid-template-columns: 1fr;
  }
}

.daily-start {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(12, 12, 14, 0.04);
}

.daily-start--panel {
  margin-bottom: 0;
  padding: 0.85rem 0.95rem;
}

.daily-start--empty {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  padding: 1.15rem 1.35rem;
  margin: 0 0 1rem;
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
}

.daily-start-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  max-width: 40rem;
}

.daily-start-note {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.daily-start--empty .daily-start-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.2;
}

.daily-start--empty .daily-start-sub {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.25;
  color: var(--text);
}

.daily-start--empty .btn {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .daily-start--empty {
    flex-direction: column;
    align-items: stretch;
  }

  .daily-start--empty .btn {
    align-self: flex-start;
  }
}

.daily-start-head {
  margin-bottom: 0.55rem;
}

.daily-start-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.daily-start-sub {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.daily-start-done {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.92rem;
}

.daily-start-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.daily-start-list--compact {
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.daily-start-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: var(--bg);
}

.daily-start-card--compact {
  display: block;
  padding: 0.4rem 0.5rem;
}

.daily-start-card-row {
  display: grid;
  grid-template-columns: minmax(0, 4.5rem) minmax(0, 1fr) auto;
  gap: 0.35rem 0.45rem;
  align-items: center;
}

.daily-start-chip {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-start-card-title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.daily-start-card-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.daily-start-card-meta--compact {
  margin: 0.15rem 0 0 calc(4.5rem + 0.45rem);
  font-size: 0.72rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-start-snooze {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.2rem;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
}

.daily-start-snooze:hover {
  color: var(--text);
}

.daily-start-hint {
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.daily-start-hint summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.daily-start-hint-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.daily-start-hint-list li {
  margin-bottom: 0.25rem;
}

.dashboard-progress {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem 1rem;
  margin: 0 0 1rem;
  box-shadow: 0 1px 2px rgba(12, 12, 14, 0.04);
}

.dashboard-progress-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.dashboard-progress-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.75rem;
  margin-bottom: 0.65rem;
}

.dashboard-progress-stat {
  display: grid;
  grid-template-columns: 12px max-content;
  grid-template-rows: auto auto;
  column-gap: 0.45rem;
  row-gap: 0.05rem;
  align-items: center;
}

.dashboard-progress-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-self: center;
}
.dashboard-progress-swatch--added {
  background: var(--dashboard-added);
}
.dashboard-progress-swatch--applications {
  background: var(--dashboard-applications);
}
.dashboard-progress-swatch--meetings {
  background: var(--dashboard-meetings);
}
.dashboard-progress-swatch--offers {
  background: var(--dashboard-offers);
}
.dashboard-progress-swatch--rejections {
  background: var(--dashboard-rejections);
}

.dashboard-progress-stat-label {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.dashboard-progress-stat-value {
  grid-column: 2;
  grid-row: 2;
  font-size: 1.35rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--text);
}

.dashboard-progress-chart {
  position: relative;
  margin: 0;
}

.dashboard-chart-svg {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.dashboard-chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dashboard-chart-line--added {
  stroke: var(--dashboard-added);
}
.dashboard-chart-line--applications {
  stroke: var(--dashboard-applications);
}
.dashboard-chart-line--meetings {
  stroke: var(--dashboard-meetings);
}
.dashboard-chart-line--offers {
  stroke: var(--dashboard-offers);
}
.dashboard-chart-line--rejections {
  stroke: var(--dashboard-rejections);
}

.dashboard-chart-dot {
  stroke: var(--surface);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.12s ease;
}
.dashboard-chart-dot.is-hot {
  transform: scale(1.55);
}
.dashboard-chart-dot--added {
  fill: var(--dashboard-added);
}
.dashboard-chart-dot--applications {
  fill: var(--dashboard-applications);
}
.dashboard-chart-dot--meetings {
  fill: var(--dashboard-meetings);
}
.dashboard-chart-dot--offers {
  fill: var(--dashboard-offers);
}
.dashboard-chart-dot--rejections {
  fill: var(--dashboard-rejections);
}

.dashboard-chart-today {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.dashboard-chart-axis {
  font-family: var(--font);
  font-size: 8px;
  fill: var(--text-muted);
}

.dashboard-chart-hit {
  fill: transparent;
  cursor: crosshair;
}

.dashboard-chart-tip {
  position: absolute;
  z-index: 4;
  min-width: 13.5rem;
  padding: 0.55rem 0.7rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(12, 12, 14, 0.12);
  pointer-events: none;
  font-size: 0.82rem;
  line-height: 1.3;
}

.dashboard-chart-tip[hidden] {
  display: none;
}

.dashboard-chart-tip strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
}

.dashboard-chart-tip-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.22rem;
}

.dashboard-chart-tip-row .dashboard-progress-swatch {
  grid-row: auto;
  grid-column: auto;
}

.dashboard-chart-tip-row b {
  font-variant-numeric: tabular-nums;
}

.dashboard-chart-tip-row small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.dashboard-progress-empty {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.th-with-filter,
.th-resizable {
  position: relative;
}

.col-resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  z-index: 4;
  touch-action: none;
}
.col-resize-handle::after {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 20%;
  right: 3px;
  width: 2px;
  border-radius: 1px;
  background: var(--border-strong);
  opacity: 0.5;
}
.col-resize-handle:hover::after,
body.col-resizing .col-resize-handle::after {
  opacity: 1;
  background: var(--accent);
}

body.col-resizing {
  cursor: col-resize;
  user-select: none;
}

body.col-resizing .data-table {
  cursor: col-resize;
}

.th-inner {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: calc(100% - 10px);
  padding-right: 6px;
}

.th-label {
  font-weight: 600;
  margin-right: 0.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 0 1 auto;
}

.th-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}
.th-icon-btn:hover {
  background: var(--surface-muted);
  border-color: var(--border);
}
.th-icon-btn .sort-icon {
  line-height: 1;
}
.th-icon-btn[aria-sort="ascending"] .sort-icon,
.th-icon-btn[aria-sort="descending"] .sort-icon {
  color: var(--accent);
  font-weight: 700;
}

.filter-toggle.is-active {
  color: var(--accent);
  background: var(--accent-subtle);
  border-color: var(--accent-muted);
}
.filter-toggle.is-open {
  border-color: var(--accent);
}

.filter-popover {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 5;
  margin-top: 0.25rem;
  min-width: 11rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.filter-popover-input {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  font-size: 0.85rem;
}

.filter-popover--status {
  min-width: 10.5rem;
  max-width: 14rem;
  padding: 0.45rem 0.5rem 0.5rem;
}

.filter-status-actions {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.filter-status-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 14rem;
  overflow-y: auto;
}

.filter-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  padding: 0.2rem 0.15rem;
  border-radius: 4px;
  margin-bottom: 0;
}
.filter-check:hover {
  background: var(--surface-muted);
}
.field .filter-check {
  margin-bottom: 0.25rem;
}
.filter-check input[type="checkbox"],
.filter-check input[type="radio"] {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  margin: 0.12rem 0 0;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent);
}
.filter-check span {
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.cell-muted {
  color: var(--text-muted);
}
.cell-clip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cell-clip-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: var(--btn-h-sm, 32px);
  padding: 0 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface-muted);
}
.link {
  color: var(--accent);
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 22, 0.35);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--drawer-w);
  height: 100%;
  max-height: 100dvh;
  background: var(--surface);
  z-index: 50;
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer.is-open {
  transform: translateX(0);
}

.drawer.drawer--filters {
  width: min(420px, 100vw);
}

.drawer.drawer--nested {
  z-index: 55;
  box-shadow: -4px 0 24px rgba(26, 24, 22, 0.12);
}

.drawer.drawer--nested.is-open {
  transform: translateX(0);
}

#drawer-content,
#drawer-nested-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  max-width: 100%;
}

#drawer-nested-content {
  height: 100%;
}

.drawer-body,
.drawer-header,
.drawer-tabs,
.drawer-section-nav,
.drawer-footer {
  max-width: 100%;
  box-sizing: border-box;
}

.drawer-body textarea,
.drawer-body input,
.drawer-body select,
.drawer-body pre {
  max-width: 100%;
  box-sizing: border-box;
}

.drawer-header {
  flex-shrink: 0;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.drawer-header--card {
  padding: 1.15rem 1.2rem 1rem;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--accent-subtle) 55%, var(--surface)) 0%,
    var(--surface) 55%
  );
}
.drawer-header-main {
  flex: 1;
  min-width: 0;
}
.drawer-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.drawer-header-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}
.drawer-header--card h2 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.drawer-title-edit {
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.drawer-company {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.drawer-header-meta {
  --drawer-meta-h: var(--btn-h-sm, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  font-size: 0.82rem;
}
.drawer-header-link {
  font-weight: 500;
}
.drawer-relevance-wrap {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}
.drawer-relevance-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.25;
  white-space: nowrap;
}
.btn-icon-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--drawer-meta-h, var(--btn-h-sm, 32px));
  height: var(--drawer-meta-h, var(--btn-h-sm, 32px));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
}
.btn-icon-refresh:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--accent-subtle);
}
.btn-icon-refresh:disabled {
  opacity: 0.65;
  cursor: wait;
}
.btn-icon-refresh .btn-spinner {
  width: 1rem;
  height: 1rem;
}
.drawer-header-sources {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.drawer-source-btn {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: var(--drawer-meta-h, var(--btn-h-sm, 32px));
  height: var(--drawer-meta-h, var(--btn-h-sm, 32px));
  padding: 0 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
  transition:
    background 0.12s,
    border-color 0.12s,
    color 0.12s;
}
.drawer-source-btn:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--accent-subtle);
}
.drawer-desc-intro {
  margin-bottom: 1rem;
}
.drawer-desc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.drawer-desc-chip {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: var(--btn-h-sm, 32px);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  padding: 0 0.65rem;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.drawer-desc-chip.is-active,
.drawer-desc-chip[aria-pressed="true"] {
  background: var(--accent-subtle);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  color: var(--accent-hover);
}
.drawer-desc-chip:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.drawer-status-pill {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: var(--drawer-meta-h, var(--btn-h-sm, 32px));
  height: var(--drawer-meta-h, var(--btn-h-sm, 32px));
  padding: 0 0.4rem 0 0.55rem;
  gap: 2px;
  border-radius: var(--radius-sm);
  border: none;
  background: color-mix(in srgb, var(--status-bg, var(--accent-subtle)) 42%, #fff);
  max-width: 100%;
}
.drawer-status-pill::after {
  content: "";
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  opacity: 0.72;
  background: var(--status-fg, var(--text-muted));
  mask: url("/board-icons/chevron-down.svg") center / contain no-repeat;
  -webkit-mask: url("/board-icons/chevron-down.svg") center / contain no-repeat;
  pointer-events: none;
}
.drawer-status-pill-select {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--status-fg, var(--accent-hover));
  cursor: pointer;
  padding: 0;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 11rem;
  height: 100%;
  line-height: 1.2;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.drawer-status-pill-select:focus,
.drawer-status-pill-select:focus-visible {
  outline: none;
  box-shadow: none;
}
.drawer-status-pill:focus-within {
  box-shadow: none;
}
.drawer-priority-pill .drawer-status-pill-select {
  max-width: 9rem;
}

/* Дата / канал / «С кем» в отклике и встрече — как чип статуса в шапке */
.drawer-compact-row {
  --drawer-compact-h: var(--btn-h-sm, 32px);
}
.drawer-compact-row .field {
  margin-bottom: 0.75rem;
}
.drawer-body .drawer-compact-row .field > label:not(.filter-check):not(.choice-label):not(.checkbox-label) {
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.drawer-compact-row .field input:not([type="checkbox"]):not([type="radio"]),
.drawer-compact-row .field select {
  width: 100%;
  box-sizing: border-box;
  min-height: var(--drawer-compact-h);
  height: var(--drawer-compact-h);
  padding: 0 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  background: var(--surface);
  color: var(--text);
}
.drawer-compact-row .field select {
  padding-right: 1.75rem;
  cursor: pointer;
}
.drawer-compact-row .field input[type="date"] {
  padding-right: 0.45rem;
}
.drawer-compact-row .field input:not([type="checkbox"]):not([type="radio"]):hover,
.drawer-compact-row .field select:hover {
  border-color: var(--border-strong);
}
.drawer-compact-row .field input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.drawer-compact-row .field select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.drawer-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
}
.drawer-header .sub {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.drawer-header-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
}

.drawer-header-status-wrap {
  display: inline-flex;
  align-items: center;
}

.drawer-status-select {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  max-width: 11rem;
  padding: 0.1rem 0.35rem;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  margin-left: auto;
}

.drawer-fullscreen-toggle {
  white-space: nowrap;
}

.drawer.drawer--vacancy-fullscreen {
  width: 100vw;
  max-width: 100vw;
}

.drawer-close {
  margin-left: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.drawer-close:hover {
  background: color-mix(in srgb, var(--border) 55%, var(--surface-muted));
}

.drawer-header:not(:has(.drawer-header-actions)) .drawer-close {
  margin-left: auto;
}

.drawer-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-shrink: 0;
}
.drawer-tabs-group {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}
.drawer-tabs-spacer {
  flex: 1 1 auto;
  min-width: 0.5rem;
}
.tab-btn-add {
  font-size: 1rem;
  font-weight: 600;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  color: var(--text-muted);
}
.tab-btn-add:hover {
  color: var(--accent);
}

.drawer-rejection-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem 0.35rem 0;
  flex-shrink: 1;
  min-width: 0;
  max-width: min(22rem, 45vw);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.drawer-rejection-input {
  font: inherit;
  font-size: 0.85rem;
  flex: 1;
  min-width: 8rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.drawer-rejection-log {
  padding: 0.35rem 0.5rem 0.35rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: min(24rem, 50vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}
.tab-btn {
  border: none;
  background: none;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-btn[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.drawer-section-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  min-width: 0;
}
.drawer-section-nav-primary {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.drawer-section-nav-secondary {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.drawer-nav-btn--icon {
  justify-content: center;
  width: var(--btn-h-sm, 32px);
  padding: 0;
}
.drawer-nav-btn--icon .tracker-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.drawer-nav-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  flex: 0 0 14px;
  background: currentColor;
  mask: var(--drawer-nav-icon) center / contain no-repeat;
  -webkit-mask: var(--drawer-nav-icon) center / contain no-repeat;
}
.drawer-nav-btn--add-meeting .drawer-nav-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  color: var(--accent);
}
.drawer-nav-done {
  display: inline-flex;
  color: var(--accent);
  line-height: 0;
}
.drawer-nav-done .drawer-nav-icon {
  width: 14px;
  height: 14px;
}
.drawer-nav-meeting-group {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
}
.drawer-meeting-tab-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}
.drawer-meeting-tab-actions .btn-icon-edit {
  width: 26px;
  height: 26px;
}
.drawer-meeting-tab-delete .drawer-nav-icon--danger {
  color: var(--text-muted);
}
.drawer-meeting-tab-delete:hover .drawer-nav-icon--danger {
  color: var(--danger);
}
.drawer-history-panel .tracker-history {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}
.drawer-nav-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-sizing: border-box;
  min-height: var(--btn-h-sm, 32px);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
.drawer-nav-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--text);
}
.drawer-nav-btn[aria-selected="true"] {
  background: var(--accent-subtle);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
  color: var(--accent-hover);
  font-weight: 600;
}
.drawer-nav-btn--rejection[aria-selected="true"] {
  background: #fdecea;
  border-color: #f5c4c0;
  color: var(--danger);
}

.drawer-track-panel {
  max-width: 28rem;
}
.drawer-track-lead {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.drawer-track-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.drawer-track-list li {
  position: relative;
  padding-left: 1.65rem;
  line-height: 1.35;
}
.drawer-track-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  box-sizing: border-box;
  pointer-events: none;
}
.drawer-track-list li.is-done {
  color: var(--text);
}
.drawer-track-list li.is-done::before {
  background: var(--accent);
  border-color: var(--accent);
}
.drawer-track-list li.is-done::after {
  content: "";
  position: absolute;
  left: 0.33rem;
  top: 0.63rem;
  width: 0.28rem;
  height: 0.5rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.drawer-track-list li.is-next::before {
  border-color: var(--accent);
}
.drawer-track-step {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.drawer-track-list li.is-next .drawer-track-step-label {
  font-weight: 600;
  color: var(--text);
}
.drawer-track-list li:not(.is-done):not(.is-next) .drawer-track-step-label {
  color: var(--text-muted);
}
.drawer-track-step-hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}
.drawer-track-step:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.drawer-track-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.meetings-list {
  display: grid;
  gap: 1.25rem;
}
/* Заголовки секций в дровере — как на вкладке «Резюме» */
.drawer-section-title,
.drawer-resume-col-title,
.application-block-title,
.meeting-panel-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text);
  line-height: 1.3;
}

.meeting-panel-title {
  margin-bottom: 0.65rem;
}

.meeting-panel-title-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  width: max-content;
  max-width: 100%;
  margin-bottom: 0.65rem;
}

.meeting-panel-title-row .meeting-panel-title {
  margin-bottom: 0;
  flex: 0 0 auto;
  width: auto;
  max-width: min(100%, 28rem);
}

.meeting-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.meeting-panel-delete:hover .drawer-nav-icon--danger {
  color: var(--danger);
}

.meeting-panel-notes-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.meeting-notes-col {
  min-width: 0;
}

.meeting-notes-col--live {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.meeting-notes-col--prep {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.meeting-notes-prep-field {
  margin-bottom: 0;
}

.meeting-notes-live-field {
  margin-bottom: 0;
}

.meeting-panel-outcome {
  margin-top: 0;
}

.drawer-body:has(.meeting-panel) {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.drawer--vacancy-fullscreen .drawer-body:has(.meeting-panel) {
  overflow: hidden;
}

.drawer--vacancy-fullscreen .meeting-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.drawer--vacancy-fullscreen .meeting-panel-notes-layout {
  grid-template-columns: 1fr 1fr;
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}

.drawer--vacancy-fullscreen .meeting-notes-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.drawer--vacancy-fullscreen .meeting-notes-col > .field,
.drawer--vacancy-fullscreen .meeting-notes-live-field,
.drawer--vacancy-fullscreen .meeting-notes-prep-field {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 0;
}

.drawer--vacancy-fullscreen .meeting-panel-fields,
.drawer--vacancy-fullscreen .meeting-panel-outcome {
  flex: 0 0 auto;
}

.drawer--vacancy-fullscreen .meeting-notes-area {
  flex: 1 1 auto;
  min-height: 8rem;
  resize: none;
}

.drawer--vacancy-fullscreen .meeting-notes-col--live {
  min-height: 0;
}

.drawer-vacancy-split {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.drawer-body:has(.drawer-vacancy-layout) {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.drawer--vacancy-fullscreen .drawer-body:has(.drawer-vacancy-layout) {
  overflow: hidden;
}

.drawer--vacancy-fullscreen .drawer-vacancy-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.drawer--vacancy-fullscreen .drawer-vacancy-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1 1 auto;
  min-height: 0;
  gap: 1rem;
  align-items: stretch;
}

.drawer--vacancy-fullscreen .drawer-vacancy-split-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.drawer--vacancy-fullscreen .drawer-vacancy-split-col--description {
  overflow: auto;
}

.drawer--vacancy-fullscreen .drawer-vacancy-description-field {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 0;
}

.drawer--vacancy-fullscreen .drawer-vacancy-description-field textarea,
.drawer--vacancy-fullscreen .drawer-vacancy-description-field .description-readonly {
  flex: 1 1 auto;
  min-height: 8rem;
  overflow: auto;
  resize: none;
}

.drawer--vacancy-fullscreen .drawer-vacancy-split-col--dna .vacancy-dna-block {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 0;
}

.drawer--vacancy-fullscreen .vacancy-dna-result,
.drawer--vacancy-fullscreen .vacancy-dna-busy,
.drawer--vacancy-fullscreen .vacancy-dna-placeholder {
  flex: 1 1 auto;
  min-height: 8rem;
  overflow: auto;
  margin: 0;
}

.drawer--vacancy-fullscreen .drawer-vacancy-details {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .drawer--vacancy-fullscreen .drawer-vacancy-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .drawer--vacancy-fullscreen .meeting-panel-notes-layout {
    grid-template-columns: 1fr;
  }
}

.application-block-head .application-block-title {
  margin-bottom: 0;
}

.drawer-body .field > label:not(.filter-check):not(.choice-label):not(.checkbox-label) {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.drawer-body .field-label-row > label {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--text);
  margin: 0;
}

.drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.1rem 1.5rem;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.drawer-footer {
  flex-shrink: 0;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: var(--surface);
}

.drawer-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.drawer-footer-left {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.drawer-footer-next {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
  flex-shrink: 0;
}

.drawer-footer-next--empty {
  min-height: 0;
}

.drawer-footer-next-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.drawer-body:has(.drawer-resume-panel) {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 1rem;
}

.drawer--vacancy-fullscreen .drawer-body:has(.drawer-resume-panel) {
  overflow: hidden;
}

.drawer-resume-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0;
  min-height: 0;
}

.drawer--vacancy-fullscreen .drawer-resume-panel {
  max-height: 100%;
  overflow: hidden;
}

.drawer-resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.drawer-resume-col--original,
.drawer-resume-col--adapted {
  min-height: min(52vh, 28rem);
}

.drawer--vacancy-fullscreen .drawer-resume-grid {
  grid-template-columns: 1fr 1fr 1fr;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
}

.drawer--vacancy-fullscreen .drawer-resume-col--original,
.drawer--vacancy-fullscreen .drawer-resume-col--adapted {
  min-height: 0;
}

.drawer-resume-col--rationale {
  grid-column: 1 / -1;
}

.drawer--vacancy-fullscreen .drawer-resume-col--rationale {
  grid-column: auto;
  min-height: 0;
}

@media (max-width: 720px) {
  .drawer-resume-grid {
    grid-template-columns: 1fr;
  }
  .drawer-resume-col--rationale {
    grid-column: 1 / -1;
  }
  .drawer--vacancy-fullscreen .drawer-resume-grid {
    grid-template-columns: 1fr;
  }
  .drawer--vacancy-fullscreen .drawer-resume-col--rationale {
    grid-column: 1 / -1;
  }
}

.drawer-resume-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.drawer-resume-col > .drawer-resume-col-title {
  flex-shrink: 0;
}

.drawer-resume-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.drawer-resume-col--adapted {
  min-height: 0;
}

.drawer-resume-readonly {
  flex: 1 1 auto;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted, color-mix(in srgb, var(--border) 25%, var(--surface)));
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow: auto;
  min-height: 0;
}

.drawer-resume-adapted {
  flex: 1 1 auto;
  min-height: 10rem;
  width: 100%;
  box-sizing: border-box;
  resize: none;
  overflow: auto;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
}

.drawer-resume-empty {
  flex: 1 1 auto;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  min-height: 0;
  overflow: auto;
}

.drawer-resume-col--adapted .drawer-resume-adapted {
  flex: 1 1 auto;
}

.drawer-resume-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.drawer-resume-rationale {
  flex: 1 1 auto;
  min-height: 8rem;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  overflow: auto;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
}

.drawer--vacancy-fullscreen .drawer-resume-rationale {
  resize: none;
  min-height: 0;
}

.btn-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-filter-icon {
  font-size: 0.9em;
  opacity: 0.85;
}

.filters-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1;
  background: var(--accent);
  color: #fff;
}

.filters-count:empty {
  display: none;
}

.filter-drawer-field {
  margin-bottom: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.filter-drawer-field:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-drawer-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.filter-drawer-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-drawer-input {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--surface);
}

.meeting-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.description-readonly {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  box-sizing: border-box;
}

.applications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.application-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  background: var(--surface-muted);
}

.application-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.btn-add-application {
  width: 100%;
  margin-top: 0.5rem;
  border-style: dashed;
  background: var(--surface);
}

.btn-icon-remove {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}
.btn-icon-remove:hover {
  background: #fdecea;
  color: var(--danger);
}

.btn-icon-remove:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.field-label-row > label {
  margin: 0;
}

.cover-letter-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.btn-icon-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border, #ddd);
  border-radius: 6px;
  background: var(--surface, #fff);
  color: var(--text-muted);
  cursor: pointer;
}

.btn-icon-copy:hover {
  color: var(--accent, #c45c26);
  border-color: var(--accent, #c45c26);
}

.btn-icon-copy[hidden] {
  display: none;
}

.cond-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.drawer-vacancy-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.drawer-vacancy-core,
.drawer-vacancy-details {
  min-width: 0;
}

.drawer-vacancy-description-field {
  min-width: 0;
}

.drawer-vacancy-description-field .description-readonly,
.drawer-vacancy-description-field textarea {
  max-width: 100%;
  box-sizing: border-box;
}

.drawer-vacancy-details .cond-list {
  margin-bottom: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.drawer-vacancy-details--form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.settings-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .settings-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.settings-col .settings-block--in-col {
  max-width: none;
}

.settings-block {
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.settings-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.settings-block--wide {
  max-width: 720px;
}

.tg-reply-options {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border, #e5e5e5);
}

.tg-preset-desc {
  margin: 0.25rem 0 0 1.5rem;
}

.tg-reply-toggle {
  font-weight: 500;
}

.settings-col-right .settings-block--in-col,
.settings-col-right form.settings-block {
  max-width: none;
}

.automation-prompt-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.automation-prompt-section:first-of-type {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: 0;
}

.automation-prompt-section h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.buddy-usage-chart-summary {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  color: var(--text-muted, #666);
}

.buddy-usage-chart-wrap {
  margin-top: 0.25rem;
}

.buddy-usage-chart-svg {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}

.buddy-usage-chart-baseline {
  stroke: var(--border, #e5e5e5);
  stroke-width: 1;
}

.buddy-usage-chart-axis {
  fill: var(--text-muted, #888);
  font-size: 9px;
}

.buddy-usage-chart-hit {
  fill: transparent;
  pointer-events: none;
}

.buddy-usage-chart-seg--coverLetter {
  fill: #d84b7e;
}

.buddy-usage-chart-seg--resumeImprove {
  fill: #5b7cff;
}

.buddy-usage-chart-seg--other {
  fill: #a8a8b3;
}

.buddy-usage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--text-muted, #666);
}

.buddy-usage-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.buddy-usage-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.buddy-usage-legend-swatch--coverLetter {
  background: #d84b7e;
}

.buddy-usage-legend-swatch--resumeImprove {
  background: #5b7cff;
}

.buddy-usage-legend-swatch--other {
  background: #a8a8b3;
}

.ai-config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-muted);
  margin-left: 0.35rem;
}

.pill-ok {
  background: #e6f4ef;
  color: #1a6b5c;
}


.offer-plans-mount {
  margin-bottom: 0;
}

.offer-plans {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.offer-plans h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.offer-funnel-hint {
  margin: 0 0 1rem;
}

.offer-plans-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 720px) {
  .offer-plans-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.offer-duration-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  max-width: 28rem;
}

.offer-duration-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  min-height: 4rem;
  padding: 0.5rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted, #fafafa);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.offer-duration-tab__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.offer-duration-tab__save {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: #fdf0e8;
  color: var(--accent, #c45c26);
}

.offer-duration-tab.is-active {
  border-color: var(--accent, #c45c26);
  box-shadow: 0 0 0 1px var(--accent, #c45c26);
}

.offer-duration-tab__label {
  font-weight: 600;
  font-size: 0.88rem;
}

.offer-duration-tab__badge {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.offer-plan-card__pitch {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.offer-usage-panel {
  margin-bottom: 1.25rem;
}

.offer-usage-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.offer-usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.offer-usage-table th,
.offer-usage-table td {
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.offer-plan-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 960px) {
  .offer-plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.offer-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted, #fafafa);
}

.offer-plan-card--featured {
  border-color: var(--accent, #c45c26);
}

.offer-plan-card--current {
  border:2px solid var(--accent);
  background:var(--accent-subtle);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent);
}
.offer-plan-card__current-label { align-self:flex-start; margin-bottom:0.75rem; border-radius:999px; padding:0.3rem 0.6rem; color:var(--accent-hover); background:var(--surface); font-size:0.75rem; font-weight:700; }
.billing-page { min-width:0; }
.billing-page .offer-plans-head { flex-wrap:wrap; }

.offer-plan-card__ribbon {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent, #c45c26);
}

.offer-plan-card__title {
  margin: 0;
  font-size: 1.05rem;
}

.offer-plan-card__subtitle {
  margin: 0.2rem 0 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.offer-plan-card__price {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.offer-plan-card__period {
  margin: 0.15rem 0 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.offer-plan-card__limits {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.78rem;
  flex: 1;
}

.offer-plan-card__limits li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}

.offer-plan-card__limits li span {
  color: var(--text-muted);
}

.offer-marketing-link {
  margin: 1rem 0 0;
  font-size: 0.88rem;
}

.offer-legal-hint {
  margin: 1rem 0 0;
}

.offer-test-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: #fff8e6;
  border: 1px solid #e6c200;
  font-size: 0.82rem;
  color: #5c4a00;
}

.status-color-grid {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.88rem;
}

.status-color-head,
.status-color-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr 3rem 3rem;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.45rem 0.65rem;
}

.status-color-head {
  background: var(--surface-muted);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-color-row {
  border-top: 1px solid var(--border);
}

.status-color-row:nth-child(even) {
  background: #faf9f7;
}

.status-color-name {
  font-weight: 500;
}

.status-color-pick {
  display: flex;
  justify-content: center;
}

.status-color-pick input[type="color"] {
  width: 2.25rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  background: var(--surface);
}

.profile-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.profile-about-section.settings-block {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.profile-about-section {
  margin-bottom: 1.25rem;
}

.profile-about-section-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.profile-about-col-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.profile-about-col-desc {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted, #666);
}

.profile-about-col-desc--balance {
  visibility: hidden;
  min-height: calc(2 * 1.45 * 0.8125rem);
  margin-bottom: 0;
  pointer-events: none;
  user-select: none;
}

.profile-about-split {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto auto auto;
  gap: 0.5rem 0;
  margin-top: 0;
  align-items: stretch;
}

@media (min-width: 900px) {
  .profile-about-split {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto minmax(20rem, 1fr) auto;
    column-gap: 1.25rem;
    row-gap: 0.5rem;
  }

  .profile-about-split-head--source {
    grid-column: 1;
    grid-row: 1;
  }

  .profile-about-split-head--target {
    grid-column: 2;
    grid-row: 1;
  }

  .profile-about-split-field--source {
    grid-column: 1;
    grid-row: 2;
  }

  .profile-about-split-field--target {
    grid-column: 2;
    grid-row: 2;
  }

  .profile-about-split-foot--source {
    grid-column: 1;
    grid-row: 3;
  }

  .profile-about-split-foot--target {
    grid-column: 2;
    grid-row: 3;
  }
}

.profile-about-split-head {
  min-width: 0;
}

.profile-about-target-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.profile-about-target-row .profile-about-col-title {
  flex: 1 1 auto;
  min-width: 0;
}

.profile-about-action {
  flex: 0 0 auto;
  white-space: nowrap;
}

.profile-about-split-field {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  min-width: 0;
}

.profile-about-split-field textarea {
  flex: 1 1 auto;
  width: 100%;
  min-height: 20rem;
  height: 100%;
  margin: 0;
  box-sizing: border-box;
  resize: vertical;
}

.profile-about-split-foot {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
}

.profile-about-split-foot--target {
  min-height: 0;
}

.profile-about-processed-field {
  margin: 0;
}

.profile-about-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-about-col .field {
  margin-top: 0;
}

.profile-split-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0;
}

.profile-split-head .profile-about-col-title {
  flex: 1 1 auto;
  min-width: 0;
}

.profile-about-section > h2:not(.profile-about-section-title) {
  margin: 0 0 0.75rem;
}

.profile-cases-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-cases-prompt-preset {
  margin: 0;
}

.profile-cases-prompt-label {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
}

.profile-cases-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-cases-save {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.profile-cases-processed-inline {
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.profile-cases-processed-inline h2 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.profile-cases-processed-inline textarea {
  flex: 1;
  min-height: 12rem;
}

.profile-resume-rationale {
  margin-top: 0.75rem;
}

.profile-rationale-textarea {
  font-size: 0.92rem;
  background: color-mix(in srgb, var(--surface) 88%, var(--text-muted) 12%);
}

.profile-field-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .nav-btn {
    padding: 0.4rem 0.5rem;
    font-size: 0.82rem;
  }
  .header-stats {
    display: none;
  }
  .header-user {
    max-width: 9rem;
  }
}

.app-loading-panel,
.table-loading-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 42vh;
  gap: 1rem;
  color: var(--text-muted);
}

.table-loading-panel {
  min-height: 16rem;
  margin-top: 0.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.app-loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--border, #e8e4df);
  border-top-color: var(--accent, #b45309);
  border-radius: 50%;
  animation: app-loading-spin 0.7s linear infinite;
}

@keyframes app-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.login-panel {
  max-width: 28rem;
  margin: 4rem auto;
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.login-tagline {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.login-cta-label {
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.login-setup-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.login-setup-hint code {
  font-size: 0.82em;
}

.login-tg-link {
  display: inline-flex;
  margin: 0.5rem 0 1rem;
  text-decoration: none;
  color: #fff;
}

.login-tg {
  display: flex;
  justify-content: center;
  min-height: 3.25rem;
  margin-bottom: 0.5rem;
}

.login-dev {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.login-dev summary {
  cursor: pointer;
  user-select: none;
}

.login-dev .btn {
  margin-top: 0.75rem;
}

.auth-identity-row {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  text-align: left;
}

.auth-identity-row strong {
  font-size: 0.9rem;
}

.link-email-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 22rem;
  margin-top: 0.35rem;
}

.link-email-form .checkbox-label,
.choice-label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}
.choice-label input[type="checkbox"],
.choice-label input[type="radio"],
.link-email-form .checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  margin: 0.12rem 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.merge-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.merge-modal {
  background: var(--surface, #fff);
  border-radius: var(--radius, 12px);
  padding: 1.25rem 1.5rem;
  max-width: 24rem;
  box-shadow: var(--shadow, 0 8px 30px rgba(0, 0, 0, 0.12));
}

.merge-modal h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.merge-modal-stats {
  margin: 0.75rem 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.merge-modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.tg-slot {
  display: flex;
  justify-content: flex-start;
  min-height: 40px;
}

.application-scope { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
