.app-frame {
  display: block;
  min-height: 100vh;
}

.app-sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  border-right: 1px solid var(--color-border-light);
  background: var(--color-surface);
  flex-direction: column;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  height: var(--topbar-height);
  padding: 0 18px;
  gap: 10px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--color-primary);
  font-size: 15px;
  font-weight: 700;
  place-items: center;
}

.sidebar-nav {
  display: grid;
  padding: 12px 10px;
  gap: 4px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  gap: 11px;
  border-radius: var(--radius-md);
  color: var(--color-muted);
  text-decoration: none;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.sidebar-nav-item svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.sidebar-nav-item:hover {
  color: var(--color-ink);
  background: var(--color-surface-soft);
}

.sidebar-nav-item.is-active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-weight: 500;
}

.sidebar-footer {
  margin-top: auto;
  padding: 18px 22px;
  color: var(--color-subtle);
  font-size: 12px;
}

.app-workspace {
  width: 100%;
  min-width: 0;
  margin-left: 0;
}

.app-topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-height);
  padding: 0 24px;
  border-bottom: 1px solid var(--color-border-light);
  background: rgba(255, 255, 255, 0.96);
}

.topbar-left {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 100%;
  gap: 18px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 160px;
  gap: 9px;
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 600;
}

.top-nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4px;
}

.top-nav-item {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  color: var(--color-muted);
  text-decoration: none;
  place-items: center;
}

.top-nav-item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.top-nav-item:hover,
.top-nav-item:focus-visible {
  color: var(--color-ink);
  background: var(--color-surface-soft);
  outline: 0;
}

.top-nav-item.is-active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.top-nav-item.is-active::before {
  position: absolute;
  right: 8px;
  bottom: -9px;
  left: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  content: "";
}

.top-nav-item::after {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 50%;
  visibility: hidden;
  padding: 6px 9px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: #fff;
  background: #373c43;
  box-shadow: 0 4px 12px rgba(31, 35, 41, 0.14);
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  white-space: nowrap;
}

.top-nav-item:hover::after,
.top-nav-item:focus-visible::after {
  visibility: visible;
  opacity: 1;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: #6e7dab;
  font-size: 12px;
  place-items: center;
}

.user-name {
  margin-right: 6px;
  color: var(--color-muted);
  font-size: 13px;
}

.page-container {
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(var(--topbar-height) + 20px) 32px 40px;
}

.app-content {
  min-height: 520px;
}

.page-stack {
  display: grid;
  gap: 16px;
}

.content-card,
.placeholder-page {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.placeholder-page {
  min-height: 520px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border-light);
}

.section-header h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}

.section-header p {
  margin: 5px 0 0;
  color: var(--color-muted);
  font-size: 13px;
}

.section-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  border-top: 1px solid var(--color-border-light);
}

.section-footer p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.upload-card {
  overflow: hidden;
}

.resume-dropzone {
  display: grid;
  min-height: 300px;
  margin: 24px;
  padding: 40px;
  border: 1px dashed #b8c6e6;
  border-radius: var(--radius-lg);
  color: var(--color-muted);
  background: #fafcff;
  text-align: center;
  place-items: center;
}

.resume-dropzone.is-dragging {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.dropzone-content {
  display: grid;
  width: min(100%, 640px);
  justify-items: center;
}

.dropzone-content > strong {
  margin-top: 14px;
  color: var(--color-ink);
  font-size: 17px;
}

.dropzone-content > p {
  margin: 6px 0 20px;
}

.upload-file-icon {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-size: 20px;
  font-weight: 600;
  place-items: center;
}

.upload-rules {
  display: flex;
  padding: 0 24px 20px;
  gap: 24px;
  color: var(--color-muted);
  font-size: 13px;
}

.upload-rules span {
  position: relative;
}

.upload-rules span + span::before {
  position: absolute;
  top: 50%;
  left: -13px;
  width: 1px;
  height: 12px;
  background: var(--color-border);
  content: "";
  transform: translateY(-50%);
}

.selected-file {
  gap: 24px;
}

.selected-file-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.selected-file-main strong {
  display: block;
  overflow: hidden;
  max-width: 520px;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file-main p {
  margin: 3px 0 0;
  color: var(--color-muted);
  font-size: 12px;
}

.file-type-badge {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-size: 11px;
  font-weight: 700;
  place-items: center;
}

.dropzone-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.upload-inline-state .loading-spinner,
.upload-inline-state .state-icon {
  margin-bottom: 4px;
}

.resume-processing-steps {
  display: grid;
  width: min(100%, 620px);
  margin: 4px 0 0;
  padding: 0;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.resume-processing-steps li {
  padding: 8px 10px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  color: var(--color-subtle);
  background: var(--color-surface);
  font-size: 12px;
}

.resume-processing-steps li.is-complete {
  color: #16794f;
  border-color: #b9e8d4;
  background: #f0fbf6;
}

.resume-processing-steps li.is-active {
  color: var(--color-primary);
  border-color: #a9c2ff;
  background: var(--color-primary-soft);
  font-weight: 600;
}

.resume-success-icon {
  color: #16794f;
  background: #e7f8f0;
}

@media (max-width: 760px) {
  .resume-processing-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dropzone-error {
  margin: 18px 0 0;
  text-align: center;
}

.data-panel {
  overflow: hidden;
}

.list-header {
  align-items: center;
}

.list-header strong {
  color: var(--color-ink);
}

.data-panel .table-container {
  margin: 20px 24px 24px;
}

.drafts-table {
  min-width: 0;
  table-layout: fixed;
}

.drafts-table-wrap {
  overflow-x: hidden;
}

.drafts-table th,
.drafts-table td {
  padding: 13px 10px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.drafts-table th:first-child,
.drafts-table td:first-child {
  padding-left: 20px;
}

.drafts-table th:last-child,
.drafts-table td:last-child {
  padding-right: 20px;
}

.drafts-table th:nth-child(1) {
  width: 10%;
}

.drafts-table th:nth-child(2) {
  width: 18%;
}

.drafts-table th:nth-child(3) {
  width: 8%;
}

.drafts-table th:nth-child(4) {
  width: 15%;
}

.drafts-table th:nth-child(5) {
  width: 22%;
}

.drafts-table th:nth-child(6) {
  width: 15%;
}

.drafts-table th:nth-child(7) {
  width: 12%;
}

.draft-filename {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-actions-cell {
  white-space: nowrap;
}

.draft-actions {
  justify-content: flex-end;
  gap: 10px;
}

.draft-duplicate-trigger {
  line-height: 1.45;
  text-align: left;
  white-space: normal;
}

.drafts-table .draft-duplicate-row:hover {
  background: transparent;
}

.drafts-table .draft-duplicate-row td {
  padding: 0 20px 18px;
  background: var(--color-surface-soft);
  white-space: normal;
}

.resume-entry-table-wrap {
  overflow-x: hidden;
}

.resume-entry-table {
  min-width: 0;
  table-layout: fixed;
}

.resume-entry-table th,
.resume-entry-table td {
  padding: 13px 9px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.resume-entry-table th:first-child,
.resume-entry-table td:first-child {
  width: 11%;
  padding-left: 20px;
}

.resume-entry-table th:nth-child(2) {
  width: 14%;
}

.resume-entry-table th:nth-child(3) {
  width: 14%;
}

.resume-entry-table th:nth-child(4) {
  width: 20%;
}

.resume-entry-table th:nth-child(5) {
  width: 11%;
}

.resume-entry-table th:nth-child(6) {
  width: 17%;
}

.resume-entry-table th:last-child,
.resume-entry-table td:last-child {
  width: 13%;
  padding-right: 20px;
}

.resume-entry-table tbody tr[data-draft-id] {
  cursor: pointer;
}

.resume-entry-table tbody tr[data-draft-id].is-selected {
  background: #f2f6ff;
  box-shadow: inset 3px 0 0 var(--color-primary);
}

.resume-entry-table .draft-duplicate-row:hover {
  background: transparent;
}

.resume-entry-table .draft-duplicate-row td {
  padding: 0 20px 18px;
  background: var(--color-surface-soft);
}

.draft-duplicate-panel {
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 6px 18px rgba(31, 35, 41, 0.05);
}

.draft-duplicate-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 16px;
}

.draft-duplicate-header strong {
  color: var(--color-ink);
  font-size: 14px;
}

.draft-duplicate-header span {
  color: var(--color-muted);
  font-size: 12px;
}

.draft-duplicate-list {
  display: grid;
  gap: 10px;
}

.draft-duplicate-card {
  display: grid;
  align-items: center;
  grid-template-columns: 0.8fr 1.5fr 1.2fr auto;
  padding: 12px 14px;
  gap: 16px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
}

.draft-duplicate-card > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.draft-duplicate-card span {
  color: var(--color-muted);
  font-size: 12px;
}

.draft-duplicate-card strong {
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.draft-duplicate-card > a {
  justify-self: end;
  white-space: nowrap;
}

.review-notice,
.review-mode-notice {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  gap: 12px;
  border: 1px solid #d9e4ff;
  border-radius: var(--radius-lg);
  color: #3159b7;
  background: #f3f6ff;
}

.review-notice span {
  color: var(--color-muted);
  font-size: 13px;
}

.resume-entry-upload .resume-dropzone {
  min-height: 190px;
  margin-bottom: 18px;
  padding: 24px;
}

.resume-entry-upload .dropzone-content > strong {
  margin-top: 10px;
}

.resume-entry-upload .dropzone-content > p {
  margin-bottom: 14px;
}

.resume-entry-modal-overlay {
  position: fixed;
  z-index: 1150;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding: 16px 24px;
  background: rgba(31, 35, 41, 0.46);
}

.resume-entry-modal {
  display: flex;
  overflow: hidden;
  width: min(1480px, 100%);
  height: calc(100vh - 32px);
  margin: 0 auto;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 18px 56px rgba(31, 35, 41, 0.2);
  outline: 0;
  flex-direction: column;
}

.resume-entry-modal-header {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 22px 0 24px;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-surface);
  flex: 0 0 auto;
  justify-content: space-between;
}

.resume-entry-modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.resume-entry-modal-header p {
  margin: 3px 0 0;
  color: var(--color-muted);
  font-size: 12px;
}

.resume-entry-modal-body {
  overflow-y: auto;
  padding: 18px;
  background: #f5f6f8;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.resume-entry-modal-body .resume-entry-page {
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .resume-entry-modal-overlay {
    padding: 8px;
  }

  .resume-entry-modal {
    height: calc(100vh - 16px);
  }

  .resume-entry-modal-body {
    padding: 10px;
  }
}

.review-mode-notice {
  color: var(--color-warning);
  border-color: #f5d7a1;
  background: var(--color-warning-soft);
}

.form-section {
  overflow: hidden;
}

.form-grid,
.experience-grid {
  display: grid;
  gap: 18px;
}

.form-grid {
  padding: 24px;
}

.form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.form-field--full {
  grid-column: 1 / -1;
}

.experience-list {
  display: grid;
  padding: 20px 24px 24px;
  gap: 12px;
}

.experience-card {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fbfcfd;
}

.experience-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.experience-card-header h3 {
  margin: 0;
  font-size: 15px;
}

.experience-actions {
  display: flex;
  gap: 2px;
}

.experience-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inline-empty-state,
.job-empty-hint {
  margin: 0;
  padding: 30px 18px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-muted);
  background: var(--color-surface-soft);
  text-align: center;
}

.job-picker {
  max-width: 620px;
  padding: 24px 24px 18px;
}

.job-picker > .form-label {
  display: block;
  margin-bottom: 7px;
}

.job-multiselect {
  position: relative;
}

.job-option-list {
  overflow-y: auto;
  max-height: min(320px, 50vh);
  margin-top: 6px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 8px 24px rgba(31, 35, 41, 0.1);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.job-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--color-ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  justify-content: space-between;
}

.job-option:hover,
.job-option.is-selected {
  background: var(--color-primary-soft);
}

.job-option > span:first-child {
  display: grid;
  gap: 3px;
}

.job-option strong {
  font-size: 14px;
  font-weight: 500;
}

.job-option small {
  color: var(--color-muted);
  font-size: 12px;
}

.job-option-check {
  color: var(--color-primary);
  font-size: 12px;
}

.job-option-empty {
  margin: 0;
  padding: 16px 12px;
  color: var(--color-muted);
  text-align: center;
}

.job-empty-hint {
  margin: 0 24px 24px;
}

.selected-job-list {
  display: grid;
  padding: 0 24px 24px;
  gap: 10px;
}

.selected-job-card {
  display: grid;
  align-items: end;
  padding: 16px;
  gap: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fbfcfd;
  grid-template-columns: minmax(220px, 1fr) 200px 180px auto;
}

.selected-job-info {
  display: grid;
  align-self: center;
  gap: 4px;
}

.selected-job-info span {
  color: var(--color-muted);
  font-size: 13px;
}

.selected-job-remove {
  margin-bottom: 2px;
}

.review-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.review-action-bar > div {
  display: flex;
  gap: 8px;
}

.filter-panel .section-header {
  padding: 14px 20px 10px;
}

.filter-panel .section-header p {
  margin-top: 3px;
}

.talent-filter-primary-row {
  display: grid;
  align-items: end;
  padding: 12px 20px 14px;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.talent-filter-grid {
  display: grid;
  max-width: 760px;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.active-filter-summary {
  display: flex;
  flex-wrap: wrap;
  padding: 0 20px 14px;
  gap: 6px;
}

.active-filter-summary[hidden] {
  display: none;
}

.active-filter-tag {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advanced-filter-grid {
  display: grid;
  margin: 0 20px 16px;
  padding: 14px;
  gap: 12px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.talent-table {
  min-width: 1040px;
}

.talent-pagination {
  margin-top: 14px;
  padding: 0 20px 18px;
}

.pagination-status {
  min-width: 84px;
  color: var(--color-muted);
  font-size: 13px;
  text-align: center;
}

.talent-table td {
  vertical-align: top;
}

.jobs-page {
  display: grid;
  gap: 16px;
}

.jobs-page {
  width: calc(100% - 32px);
  margin-inline: auto;
}

.jobs-filter-grid {
  display: grid;
  padding: 14px 20px 18px;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.jobs-filter-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.jobs-table {
  min-width: 0;
  table-layout: fixed;
}

.jobs-page .data-panel .table-container {
  overflow-x: hidden;
  margin: 16px 18px 20px;
}

.jobs-table th,
.jobs-table td {
  padding: 12px 9px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.jobs-table th:first-child,
.jobs-table td:first-child {
  padding-left: 20px;
}

.jobs-table th:last-child,
.jobs-table td:last-child {
  padding-right: 15px;
}

.jobs-table th:nth-child(1) {
  width: 16%;
}

.jobs-table th:nth-child(2) {
  width: 10%;
}

.jobs-table th:nth-child(3) {
  width: 13%;
}

.jobs-table th:nth-child(4) {
  width: 9%;
}

.jobs-table th:nth-child(5) {
  width: 11%;
}

.jobs-table th:nth-child(6) {
  width: 8%;
}

.jobs-table th:nth-child(7) {
  width: 12%;
}

.jobs-table th:nth-child(8) {
  width: 21%;
}

.jobs-table th:nth-child(4),
.jobs-table td:nth-child(4),
.jobs-table th:nth-child(5),
.jobs-table td:nth-child(5),
.jobs-table th:nth-child(6),
.jobs-table td:nth-child(6),
.jobs-table th:nth-child(7),
.jobs-table td:nth-child(7) {
  white-space: nowrap;
}

.jobs-table .jobs-actions-cell {
  display: table-cell;
  padding-left: 4px;
}

.jobs-action-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.jobs-action-group .text-button {
  min-height: 28px;
  padding-inline: 5px;
  font-size: 12px;
}

.job-title-text {
  color: var(--color-ink);
  font-weight: 600;
}

.jobs-table .job-inline-detail-row:hover {
  background: transparent;
}

.jobs-table .job-inline-detail-row td {
  padding: 0 20px 18px;
  background: var(--color-surface-soft);
  white-space: normal;
}

.job-inline-detail-panel {
  padding: 18px 20px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 6px 18px rgba(31, 35, 41, 0.05);
}

.job-inline-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.job-inline-detail-header h3 {
  margin: 0;
  color: var(--color-ink);
  font-size: 15px;
}

.job-inline-meta-grid,
.job-inline-readonly-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 24px;
}

.job-inline-meta-item,
.job-inline-readonly-item {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.job-inline-meta-item span,
.job-inline-readonly-item span {
  color: var(--color-muted);
  font-size: 12px;
}

.job-inline-meta-item strong,
.job-inline-readonly-item strong {
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.job-inline-meta-item--full {
  grid-column: 1 / -1;
  padding-top: 2px;
}

.job-inline-meta-item--full strong {
  font-weight: 400;
  white-space: pre-wrap;
}

.job-inline-edit-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.job-inline-jd-field {
  grid-column: 1 / -1;
}

.job-inline-readonly-grid {
  padding: 16px 0;
  margin-top: 16px;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.job-inline-edit-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
  gap: 8px;
}

.my-work-page {
  width: calc(100% - 32px);
  margin-inline: auto;
}

.my-work-filter-grid {
  display: grid;
  padding: 14px 20px 18px;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(120px, 0.6fr);
}

.my-work-filter-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.my-work-table-wrap {
  overflow-x: hidden;
  margin: 16px 18px 20px;
}

.my-candidates-table,
.my-interviews-table {
  min-width: 0;
  table-layout: fixed;
}

.my-candidates-table th,
.my-candidates-table td,
.my-interviews-table th,
.my-interviews-table td {
  padding: 13px 12px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.my-candidates-table th:first-child,
.my-candidates-table td:first-child,
.my-interviews-table th:first-child,
.my-interviews-table td:first-child {
  padding-left: 20px;
}

.my-candidates-table th:last-child,
.my-candidates-table td:last-child,
.my-interviews-table th:last-child,
.my-interviews-table td:last-child {
  padding-right: 20px;
}

.my-candidates-table th:nth-child(1) {
  width: 18%;
}

.my-candidates-table th:nth-child(2) {
  width: 24%;
}

.my-candidates-table th:nth-child(3) {
  width: 22%;
}

.my-candidates-table th:nth-child(4) {
  width: 16%;
}

.my-candidates-table th:nth-child(5) {
  width: 20%;
}

.my-interviews-table th:nth-child(1) {
  width: 17%;
}

.my-interviews-table th:nth-child(2) {
  width: 12%;
}

.my-interviews-table th:nth-child(3) {
  width: 19%;
}

.my-interviews-table th:nth-child(4),
.my-interviews-table th:nth-child(5) {
  width: 10%;
}

.my-interviews-table th:nth-child(6) {
  width: 20%;
}

.my-interviews-table th:nth-child(7) {
  width: 12%;
}

.my-interviews-header {
  align-items: center;
}

.my-work-count {
  display: flex;
  align-items: baseline;
  padding: 8px 14px;
  gap: 5px;
  border: 1px solid #d9e4ff;
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.my-work-count strong {
  font-size: 24px;
}

.my-work-count span {
  color: var(--color-muted);
  font-size: 13px;
}

.jobs-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  white-space: nowrap;
}

.candidate-name-link {
  display: inline-flex;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: 4px;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.candidate-name-link:hover {
  background: var(--color-primary-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.candidate-name-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(51, 112, 255, 0.18);
  outline: 0;
}

.table-secondary-text {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
}

.candidate-job-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.candidate-job-tag {
  white-space: nowrap;
}

.job-tag-toggle {
  padding: 2px 4px;
  font-size: 12px;
}

.muted-text {
  color: var(--color-muted);
}

.compact-empty-state {
  min-height: 260px;
}

.detail-page-actions {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.candidate-detail-page {
  height: calc(100vh - 200px);
  min-height: 520px;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
}

.candidate-detail-layout {
  display: grid;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
}

.candidate-detail-main {
  display: grid;
  overflow-y: auto;
  min-width: 0;
  min-height: 0;
  padding-right: 4px;
  gap: 16px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.candidate-detail-sidebar {
  overflow-y: auto;
  min-width: 0;
  min-height: 0;
  padding-right: 4px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.candidate-jobs-section {
  min-height: 100%;
}

.candidate-profile-card {
  padding: 24px;
}

.candidate-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}

.candidate-profile-header h2 {
  margin: 0;
  font-size: 24px;
}

.candidate-profile-header p {
  margin: 6px 0 0;
  color: var(--color-muted);
}

.candidate-meta-grid {
  display: grid;
  gap: 20px 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.candidate-detail-main .candidate-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.candidate-meta-item {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.candidate-meta-item > span {
  color: var(--color-muted);
  font-size: 12px;
}

.candidate-meta-item > strong {
  overflow-wrap: anywhere;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 500;
}

.detail-record-list {
  display: grid;
  padding: 20px 24px 24px;
  gap: 10px;
}

.detail-record {
  display: grid;
  padding: 16px;
  gap: 7px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
}

.detail-record > span {
  color: var(--color-muted);
  font-size: 13px;
}

.detail-record > p {
  margin: 3px 0 0;
  color: var(--color-muted);
  line-height: 1.75;
}

.detail-notes {
  padding: 20px 24px 24px;
  color: var(--color-muted);
  line-height: 1.75;
}

.hr-note-editor {
  display: grid;
  margin-bottom: 16px;
  padding: 16px;
  gap: 12px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  background: var(--color-primary-soft);
}

.hr-note-editor-footer,
.hr-note-editor-actions,
.hr-note-private-option,
.hr-note-record > header,
.hr-note-meta,
.hr-note-controls {
  display: flex;
  align-items: center;
}

.hr-note-editor-footer,
.hr-note-record > header {
  justify-content: space-between;
}

.hr-note-editor-actions,
.hr-note-meta,
.hr-note-controls {
  gap: 8px;
}

.hr-note-private-option {
  gap: 7px;
  color: var(--color-ink);
  font-size: 13px;
}

.hr-note-private-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--color-primary);
}

.hr-note-list {
  display: grid;
  gap: 12px;
}

.hr-note-record {
  padding: 16px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
}

.hr-note-meta {
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 12px;
}

.hr-note-meta strong {
  color: var(--color-ink);
  font-size: 14px;
}

.hr-note-controls .text-button {
  min-height: 28px;
  padding-inline: 6px;
}

.hr-note-content {
  margin: 12px 0 0;
  color: var(--color-ink);
  line-height: 1.75;
  white-space: pre-wrap;
}

.hr-note-updated {
  margin: 8px 0 0;
  color: var(--color-subtle);
  font-size: 12px;
}

.detail-job-picker {
  max-width: 620px;
  padding: 22px 24px 18px;
}

.detail-job-picker > .form-label {
  display: block;
  margin-bottom: 7px;
}

.candidate-job-detail-list {
  display: grid;
  padding: 0 24px 24px;
  gap: 14px;
}

.candidate-job-detail-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fbfcfd;
}

.candidate-job-detail-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  gap: 18px;
  border-bottom: 1px solid var(--color-border-light);
}

.candidate-job-detail-card h3 {
  margin: 0;
  font-size: 16px;
}

.candidate-job-detail-card header p {
  margin: 5px 0 0;
  color: var(--color-muted);
  font-size: 12px;
}

.candidate-job-actions {
  display: flex;
  gap: 8px;
}

.candidate-job-fields {
  display: grid;
  align-items: start;
  padding: 18px;
  gap: 16px;
  grid-template-columns: 200px 200px minmax(260px, 1fr);
}

.candidate-job-interviews {
  display: grid;
  padding: 0 18px 18px;
  gap: 10px;
}

.interview-record {
  padding: 16px;
  border: 1px solid #d9e4ff;
  border-radius: var(--radius-lg);
  background: #f7f9ff;
}

.interview-record > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.interview-meta {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.interview-record > p {
  margin: 14px 0 0;
  color: var(--color-muted);
  line-height: 1.7;
}

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

.candidate-detail-sidebar .section-header {
  padding: 18px;
}

.candidate-detail-sidebar .detail-job-picker {
  max-width: none;
  padding: 18px;
}

.candidate-detail-sidebar .candidate-job-detail-list {
  padding: 0 18px 18px;
}

.candidate-detail-sidebar .candidate-job-detail-card > header {
  align-items: flex-start;
  flex-direction: column;
}

.candidate-detail-sidebar .candidate-job-actions {
  width: 100%;
}

.candidate-detail-sidebar .candidate-job-actions button {
  flex: 1;
}

.candidate-detail-sidebar .candidate-job-fields {
  grid-template-columns: minmax(0, 1fr);
}

.candidate-detail-sidebar .interview-meta {
  grid-template-columns: minmax(0, 1fr);
}

.current-job-workspace {
  min-height: 100%;
}

.current-job-header {
  display: grid;
  align-items: center;
  padding: 18px;
  gap: 16px;
  border-bottom: 1px solid var(--color-border-light);
  grid-template-columns: minmax(0, 1fr) 156px;
}

.current-job-identity {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.current-job-title-link {
  overflow: hidden;
  color: var(--color-ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-job-title-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.current-job-identity span {
  overflow: hidden;
  color: var(--color-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-job-switcher {
  min-width: 0;
}

.current-job-actions {
  display: grid;
  padding: 16px 18px;
  gap: 8px;
  border-bottom: 1px solid var(--color-border-light);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.current-job-actions button {
  min-width: 0;
  padding-right: 8px;
  padding-left: 8px;
  white-space: nowrap;
}

.current-job-fields {
  display: grid;
  padding: 18px;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.current-job-notes {
  padding: 0 18px 18px;
}

.current-job-interviews {
  padding: 18px;
  border-top: 1px solid var(--color-border-light);
}

.current-job-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.current-job-section-title h3 {
  margin: 0;
  font-size: 15px;
}

.current-job-section-title span {
  color: var(--color-muted);
  font-size: 12px;
}

.current-job-interview-list {
  display: grid;
  gap: 10px;
}

.current-job-empty {
  display: grid;
  min-height: 360px;
  padding: 28px;
  text-align: center;
  place-content: center;
  justify-items: center;
}

.current-job-empty h3 {
  margin: 0;
}

.current-job-empty p {
  margin: 8px 0 20px;
  color: var(--color-muted);
}

.join-jobs-form > p {
  margin: 0 0 16px;
  color: var(--color-muted);
}

.join-job-choice-list {
  display: grid;
  overflow-y: auto;
  max-height: 360px;
  gap: 8px;
}

.join-job-choice {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.55fr);
  padding: 12px;
  gap: 10px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
}

.join-job-choice label {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 10px;
  cursor: pointer;
}

.join-job-choice:has(input:checked) {
  border-color: #a9c2ff;
  background: var(--color-primary-soft);
}

.join-job-choice input {
  margin-top: 4px;
}

.join-job-choice label > span {
  display: grid;
  gap: 3px;
}

.join-job-choice small {
  color: var(--color-muted);
}

.candidate-detail-page {
  height: auto;
  min-height: 0;
  overflow: visible;
  grid-template-rows: none;
}

.candidate-detail-layout {
  align-items: start;
  min-height: auto;
}

.candidate-detail-main,
.candidate-detail-sidebar {
  overflow: visible;
  min-height: auto;
  padding-right: 0;
  overscroll-behavior: auto;
  scrollbar-gutter: auto;
}

.candidate-jobs-section,
.current-job-workspace {
  min-height: 0;
}

.candidate-detail-main .candidate-meta-grid,
.candidate-basic-edit-grid {
  display: grid;
  gap: 20px 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-action-button {
  padding: 2px 0;
}

.module-action-button--primary {
  color: var(--color-primary);
}

.candidate-basic-edit-grid {
  padding-top: 4px;
}

.experience-edit-card {
  padding: 16px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
}

.experience-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

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

.experience-edit-grid .form-field:has(textarea) {
  grid-column: 1 / -1;
}

.interview-panel-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--color-border-light);
}

.application-picker {
  position: relative;
}

.application-toggle {
  padding: 2px 0;
  color: var(--color-muted);
}

.application-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-float);
}

.application-switch {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--color-ink);
  background: transparent;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-switch:hover,
.application-switch.is-active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.job-panel-title {
  overflow: hidden;
  max-width: calc(100% - 112px);
  padding: 2px 0;
  border: 0;
  color: var(--color-ink);
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-panel-title:not(:disabled):hover {
  color: var(--color-primary);
}

.job-panel-title:disabled {
  cursor: default;
}

.interview-panel-actions {
  display: grid;
  padding: 16px 18px;
  gap: 10px;
  border-bottom: 1px solid var(--color-border-light);
  grid-template-columns: 0.9fr 0.9fr 1.3fr;
}

.interview-panel-actions > button,
.interview-panel-actions > select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
}

.recruitment-status-control {
  padding-right: 24px;
  padding-left: 10px;
  color: var(--color-ink);
  font-size: 13px;
}

.interview-panel-list {
  padding: 18px;
}

.inline-job-detail {
  padding: 18px;
}

.inline-job-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--color-muted);
  font-size: 14px;
}

.inline-job-detail-fields {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inline-job-detail-note {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.7;
}

.entry-page {
  display: grid;
  min-width: 0;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(51, 112, 255, 0.08), transparent 320px),
    var(--color-bg);
  place-items: center;
}

.entry-panel {
  width: min(680px, 100%);
  padding: 64px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 10px 30px rgba(31, 35, 41, 0.08);
}

.entry-panel h1 {
  margin: 0 0 28px;
  font-size: 42px;
  line-height: 1.2;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
}

.login-page {
  display: grid;
  min-width: 1024px;
  padding: 48px;
  background:
    radial-gradient(circle at 12% 18%, rgba(51, 112, 255, 0.08), transparent 28%),
    var(--color-bg);
  place-items: center;
}

.login-shell {
  display: grid;
  width: min(1040px, 100%);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  box-shadow: 0 12px 36px rgba(31, 35, 41, 0.09);
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
}

.login-intro {
  display: flex;
  padding: 36px 44px;
  color: #fff;
  background:
    linear-gradient(rgba(25, 78, 196, 0.96), rgba(36, 91, 219, 0.96)),
    var(--color-primary);
  flex-direction: column;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.login-brand .brand-mark {
  color: var(--color-primary);
  background: #fff;
}

.login-intro-content {
  margin: auto 0;
}

.login-kicker {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.login-intro-content h1 {
  margin: 0 0 22px;
  font-size: 34px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.login-intro-content > p:last-child {
  max-width: 410px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.9;
}

.login-intro-footer {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.login-form-panel {
  display: grid;
  padding: 56px;
  place-items: center;
}

.login-form-wrap {
  width: 100%;
  max-width: 350px;
}

.login-form-header {
  margin-bottom: 28px;
}

.login-form-header h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.35;
}

.login-form-header p,
.login-help {
  margin: 0;
  color: var(--color-muted);
}

.login-demo-note {
  margin-bottom: 24px;
  padding: 10px 12px;
  border: 1px solid #d9e4ff;
  border-radius: var(--radius-md);
  color: #3159b7;
  background: #f3f6ff;
  font-size: 13px;
}

.login-form {
  display: grid;
  gap: 20px;
}

.login-control {
  min-height: 42px;
}

.login-error {
  margin: -8px 0 0;
  color: var(--color-danger);
  font-size: 13px;
}

.login-submit {
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
}

.login-help {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 1280px) {
  :root {
    --sidebar-width: 208px;
  }

  .page-container {
    padding-right: 24px;
    padding-left: 24px;
  }

  .login-page {
    padding: 32px;
  }

  .login-shell {
    min-height: 580px;
  }

  .talent-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .advanced-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .candidate-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .candidate-detail-main .candidate-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .candidate-job-fields {
    grid-template-columns: 180px 180px minmax(240px, 1fr);
  }

  .candidate-detail-sidebar .candidate-job-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
