.profile-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding: 0 0 8px;
}

.profile-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.profile-tabs a:hover {
  background: #edf4ff;
  color: var(--accent);
}

.profile-tabs a.active {
  border-color: #bfd2ff;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

.review-table {
  min-width: 980px;
  table-layout: fixed;
  font-size: 13px;
}

.review-table th,
.review-table td {
  line-height: 1.35;
  overflow-wrap: break-word;
  padding: 9px 10px;
  word-break: normal;
}

.review-table thead th {
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.review-table tbody tr:nth-child(even) {
  background: transparent;
}

.review-table tbody tr.review-record-row:hover {
  background: #f7fbff;
}

.review-table .review-cell {
  min-width: 0;
}

.review-table .review-col-primary { width: 24%; }
.review-table .review-col-text { width: 26%; }
.review-table .review-col-text-wide { width: 46%; }
.review-table .review-col-meta { width: 13%; }
.review-table .review-col-status { width: 98px; }
.review-table .review-col-small,
.review-table .review-col-date { width: 72px; }
.review-table .review-col-icon { width: 68px; }
.review-table .review-col-link { width: 82px; }
.review-table .review-col-review { width: 116px; }
.review-table .review-col-action { width: 112px; }

.review-table .review-col-meta,
.review-table .review-col-status,
.review-table .review-col-small,
.review-table .review-col-date,
.review-table .review-col-icon,
.review-table .review-col-link,
.review-table .review-col-review,
.review-table .review-col-action {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-table .review-col-icon {
  overflow: visible;
  text-overflow: clip;
  text-align: center;
}

.review-table .pill {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: 16px;
  line-height: 1;
}

.review-table .review-col-action {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.review-country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  font-size: 18px;
  line-height: 1;
}

.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  padding: 4px 9px;
  text-decoration: none;
}

.source-link:hover {
  border-color: #bfd2ff;
  background: #edf4ff;
}

.vacancy-review-table .review-col-primary { width: 42%; }
.vacancy-review-table .review-col-meta {
  overflow-wrap: anywhere;
  white-space: normal;
  width: 30%;
}
.vacancy-review-table .review-col-link { width: 86px; }

.vacancy-status-pill {
  display: inline-flex;
  max-width: 100%;
}

.review-detail-row[hidden] {
  display: none;
}

.review-detail-row,
.review-detail-row:hover {
  background: var(--surface-soft);
}

.review-detail-row td {
  padding: 0 10px 12px;
}

.details-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 96px;
  min-height: 32px;
  border: 1px solid #1d4ed8;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 11px;
  white-space: nowrap;
}

.details-toggle:hover,
.details-toggle[aria-expanded="true"] {
  background: #1d4ed8;
}

.details-toggle-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 13px;
  line-height: 1;
}

.row-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 12px;
}

.row-details-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 12px 0 0;
}

.detail-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-grid dd {
  margin: 3px 0 0;
  line-height: 1.45;
}

.vacancy-detail-grid > div {
  min-width: 0;
}

.vacancy-detail-grid dd {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.add-skill-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  margin: 0 0 14px;
  padding: 12px;
}

.detail-edit-form {
  margin-top: 12px;
}

.detail-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.add-skill-grid {
  grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(120px, 1fr));
}

.detail-edit-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.detail-edit-field.field-wide {
  grid-column: span 2;
}

.add-skill-grid .field-wide {
  grid-column: auto;
}

.detail-edit-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-edit-field input,
.detail-edit-field select,
.detail-edit-field textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-weight: 500;
  padding: 7px 9px;
}

.detail-edit-field textarea {
  line-height: 1.45;
  resize: vertical;
}

.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.edit-save-button,
.edit-delete-button {
  min-height: 36px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
  padding: 7px 12px;
}

.edit-save-button {
  border: 1px solid #1d4ed8;
  background: var(--accent);
  color: #ffffff;
}

.edit-save-button:hover {
  background: #1d4ed8;
}

.edit-delete-button {
  border: 1px solid rgba(211, 59, 59, 0.38);
  background: #ffffff;
  color: var(--bad);
}

@media (max-width: 1080px) {
  .detail-grid,
  .detail-edit-grid,
  .add-skill-grid {
    grid-template-columns: 1fr;
  }

  .detail-edit-field.field-wide {
    grid-column: auto;
  }
}
