.admin-shell {
  min-height: 100vh;
  background: #f5f5f7;
}

.candidate-mobile-list,
.candidate-mobile-empty {
  display: none;
}

@media (max-width: 760px) {
  html,
  body {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  .candidate-table-wrap {
    display: none;
  }

  .candidate-mobile-list {
    display: grid;
    gap: 10px;
    min-width: 0;
  }

  .candidate-mobile-empty {
    display: block;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    background: #fbfbfd;
    color: #6e6a7a;
    padding: 18px;
    text-align: center;
  }

  .candidate-mobile-group,
  .candidate-mobile-item,
  .mobile-report-expansion {
    min-width: 0;
    max-width: 100%;
  }

  .candidate-mobile-item {
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    background: #fff;
    padding: 13px;
    box-shadow: 0 1px 2px rgba(29, 29, 31, 0.04);
  }

  .candidate-mobile-item[data-row-report] {
    cursor: pointer;
  }

  .candidate-mobile-item[data-row-report]:focus-visible {
    outline: 3px solid rgba(0, 113, 227, 0.18);
    outline-offset: 2px;
  }

  .candidate-mobile-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    align-items: center;
    gap: 10px;
  }

  .candidate-mobile-identity {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .candidate-mobile-identity strong {
    color: #1d1d1f;
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .candidate-mobile-identity span {
    color: #6e6a7a;
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .candidate-mobile-report {
    display: flex;
    justify-content: flex-end;
  }

  .candidate-mobile-report .report-button {
    width: 108px;
    min-height: 44px !important;
    padding-inline: 10px !important;
  }

  .candidate-mobile-report-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 4px 11px;
    border: 1px solid #e5e5ea;
    border-radius: 999px;
    background: #f5f5f7;
    color: #777283;
    font-size: 12px;
    font-weight: 700;
  }

  .candidate-mobile-phone {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    background: #f7f7f9;
    padding: 9px 11px;
  }

  .candidate-mobile-phone span,
  .candidate-mobile-meta dt {
    color: #777283;
    font-size: 12px;
    font-weight: 650;
  }

  .candidate-mobile-phone a {
    color: #175d9c;
    font-size: 16px;
    font-weight: 750;
    text-decoration: none;
    overflow-wrap: anywhere;
  }

  .candidate-mobile-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin: 8px 0 0;
  }

  .candidate-mobile-meta > div {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
    border-radius: 8px;
    background: #fbfbfd;
    padding: 8px 10px;
  }

  .candidate-mobile-meta dd {
    min-width: 0;
    margin: 0;
    color: #343138;
    font-size: 13px;
    font-weight: 650;
    overflow-wrap: anywhere;
  }

  .candidate-mobile-progress dd {
    display: grid;
    gap: 2px;
  }

  .candidate-mobile-progress small {
    color: #777283;
    font-size: 11px;
    font-weight: 600;
  }

  .candidate-mobile-item .candidate-recruiter-view {
    display: flex;
    max-width: 100%;
  }

  .candidate-mobile-item .recruiter-inline-form {
    grid-template-columns: minmax(0, 1fr) auto auto;
    width: 100%;
    min-width: 0;
  }

  .candidate-mobile-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eeeef2;
  }

  .candidate-mobile-actions button {
    flex: 1 1 0;
    min-height: 40px !important;
  }

  .mobile-report-expansion {
    margin-top: 6px;
    border-top: 1px solid #e5e5ea;
    background: #fafcff;
    scroll-margin-top: 200px;
  }

  .mobile-report-expansion .inline-report-container {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 10px 0 16px;
  }

  .mobile-report-expansion .inline-loading,
  .mobile-report-expansion .inline-error {
    margin: 0;
    padding: 12px 14px;
  }

  .filter-row input,
  .filter-row select {
    flex: 1 1 100%;
    width: 100%;
  }
}


.admin-workspace,
.login-panel {
  width: min(1280px, calc(100vw - 32px));
  margin: 24px auto;
}

.login-panel {
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
  padding: 28px;
}

.login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}

.primary-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #c8dff8;
  border-radius: 999px;
  background: #edf6ff;
  color: #175d9c;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.08);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
  cursor: pointer;
}

.primary-link-button:hover {
  background: #e5f1ff;
  border-color: #b8d4f3;
}

.primary-link-button:active {
  transform: translateY(1px);
}

.primary-link-button.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
  background: #f5f5f7;
  border-color: #e5e5ea;
  color: #86868b;
  box-shadow: none;
  pointer-events: auto;
}

.primary-link-button:disabled {
  cursor: wait;
  opacity: 0.78;
  box-shadow: none;
}

.password-login-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0 8px;
  padding: 14px;
  border: 1px solid #e6def8;
  border-radius: 8px;
  background: #fbfbfd;
}

.password-login-form label {
  display: grid;
  gap: 6px;
  color: #5f596b;
  font-size: 13px;
}

.password-login-form input {
  min-height: 40px;
  border: 1px solid #d2d2d7;
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: #1d1d1f;
  font: inherit;
  outline: none;
}

.password-login-form input:focus {
  border-color: #8ec5ff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.password-change-panel {
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

.password-change-panel.is-required {
  border-color: #bcd7ff;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 16px 34px rgba(28, 96, 180, 0.08);
}

.password-change-panel.is-required [data-action="close-password-change"] {
  display: none;
}

.password-change-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.password-change-head h3 {
  margin: 0;
  color: #1d1d1f;
}

.password-change-head p {
  margin: 6px 0 0;
  color: #6e6a7a;
}

.password-change-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.password-change-form label {
  display: grid;
  gap: 6px;
  color: #5f596b;
  font-size: 13px;
}

.password-change-form input {
  min-height: 40px;
  border: 1px solid #d2d2d7;
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: #1d1d1f;
  font: inherit;
  outline: none;
}

.password-change-form input:focus {
  border-color: #8ec5ff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.inline-password-change {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
  background: #fbfbfd;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-tabs button {
  border: 1px solid #d2d2d7;
  background: #fbfbfd;
  color: #3f4552;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
}

.admin-tabs button.active {
  background: #edf6ff;
  color: #175d9c;
  border-color: #c8dff8;
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.08);
}

.admin-page,
.admin-card {
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
  padding: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.metric {
  min-width: 0;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
  padding: 14px;
  background: #fbfbfd;
}

.metric span {
  color: #6e6a7a;
  font-size: 12px;
}

.metric strong {
  display: block;
  font-size: 26px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.metric strong.is-long {
  max-height: 64px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.45;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-form label {
  display: grid;
  gap: 5px;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.filter-row input,
.filter-row select {
  border: 1px solid #d2d2d7;
  border-radius: 999px;
  padding: 9px 10px;
  font: inherit;
}

.admin-form textarea {
  border-radius: 8px;
}

.admin-form .wide {
  grid-column: 1 / -1;
}

.invite-mode-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.invite-mode-shell > span {
  color: #3f4552;
  font-weight: 700;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #d2d2d7;
  border-radius: 999px;
  background: #f5f5f7;
}

.admin-page .segmented-control button {
  min-height: 34px;
  border-color: transparent;
  background: transparent;
  color: #5f6368;
  box-shadow: none;
}

.admin-page .segmented-control button.active,
.admin-page .segmented-control button[aria-pressed="true"] {
  border-color: #c8dff8;
  background: #edf6ff;
  color: #175d9c;
  box-shadow: 0 3px 10px rgba(0, 113, 227, 0.08);
}

.segmented-control.compact {
  padding: 3px;
}

.admin-page .segmented-control.compact button {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
}

.invite-submit-row {
  align-items: center;
}

.invite-submit-row .inline-warning {
  margin: 0;
  color: #5f6368;
}

.invite-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.invite-table-wrap {
  max-height: calc(100vh - 250px);
  border: 1px solid #e5e5ea;
  border-radius: 8px;
}

.invite-table {
  min-width: 1180px;
}

.invite-table .sticky-invite-id {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 54px;
  min-width: 54px;
  max-width: 54px;
  background: #fff;
  box-shadow: 7px 0 12px rgba(29, 29, 31, 0.05);
}

.invite-table thead .sticky-invite-id {
  z-index: 6;
  background: #f5f7fb;
}

.invite-kind {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border: 1px solid #d2d2d7;
  border-radius: 999px;
  background: #f5f5f7;
  color: #5f6368;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.invite-kind.shared {
  border-color: #bdddcf;
  background: #eef8f3;
  color: #27664a;
}

.invite-kind.single {
  border-color: #e6def8;
  background: #f8f4ff;
  color: #655080;
}

.invite-progress {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.table-wrap {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  border: 1px solid #e5e5ea;
  padding: 8px;
  vertical-align: top;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f5f7fb;
  white-space: nowrap;
}

.admin-table tbody tr:not(.report-expansion):hover td {
  background: #fafcff;
}

.candidate-table tbody tr[data-row-report] {
  cursor: pointer;
}

.candidate-table tbody tr[data-row-report]:focus {
  outline: 3px solid rgba(0, 113, 227, 0.18);
  outline-offset: -3px;
}

.admin-page button:not(.sort-button),
.admin-card button:not(.sort-button) {
  min-height: 34px;
  border: 1px solid #c8dff8;
  border-radius: 999px;
  background: #f7fbff;
  color: #175d9c;
  padding: 6px 12px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.admin-page button:not(.sort-button):hover,
.admin-card button:not(.sort-button):hover {
  background: #edf6ff;
  border-color: #b8d4f3;
}

.admin-page button:disabled,
.admin-card button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: #4f485d;
  padding: 0;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.sort-button span {
  width: 12px;
  color: #0071e3;
}

.candidate-table-wrap {
  max-height: calc(100vh - 230px);
  border: 1px solid #e5e5ea;
  border-radius: 8px;
}

.candidate-table {
  min-width: 1220px;
}

.candidate-table .sticky-name,
.candidate-table .sticky-report {
  position: sticky;
  background: #fff;
}

.candidate-table .sticky-name {
  left: 0;
  z-index: 4;
  width: 112px;
  min-width: 112px;
  max-width: 112px;
}

.candidate-table .sticky-report {
  left: 112px;
  z-index: 4;
  width: 92px;
  min-width: 92px;
  max-width: 92px;
  box-shadow: 8px 0 14px rgba(29, 29, 31, 0.06);
}

.candidate-table thead .sticky-name,
.candidate-table thead .sticky-report {
  z-index: 6;
  background: #f5f7fb;
}

.candidate-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-action-cell {
  text-align: center;
}

.report-button {
  width: 100%;
  min-height: 32px !important;
  padding: 5px 8px !important;
  white-space: nowrap;
  background: #edf6ff !important;
  border-color: #c8dff8 !important;
  color: #175d9c !important;
}

.candidate-recruiter-cell {
  min-width: 160px;
}

.candidate-recruiter-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 190px;
}

.candidate-recruiter-view span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recruiter-edit-button {
  min-height: 24px !important;
  padding: 2px 8px !important;
  font-size: 12px !important;
  background: #f7fbff !important;
}

.recruiter-inline-form {
  display: grid;
  grid-template-columns: minmax(78px, 1fr) auto auto;
  align-items: center;
  gap: 6px;
  min-width: 210px;
}

.recruiter-inline-form input {
  min-width: 0;
  height: 30px;
  border: 1px solid #d7e3f2;
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  background: #fff;
  color: #1d1d1f;
}

.recruiter-inline-form button {
  min-height: 28px !important;
  padding: 3px 9px !important;
  font-size: 12px !important;
}

.candidate-actions-header,
.candidate-actions-cell {
  min-width: 86px;
  text-align: center;
  white-space: nowrap;
}

.candidate-actions-stack {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.compact-update-button {
  min-height: 28px !important;
  padding: 3px 10px !important;
  background: #eef8f1 !important;
  border-color: #c9e8d1 !important;
  color: #24743a !important;
}

.report-delete-button {
  background: #fff1ef !important;
  border-color: #ffd0c9 !important;
  color: #bd3427 !important;
}

.compact-danger-button {
  min-height: 28px !important;
  padding: 3px 10px !important;
  font-size: 13px !important;
}

.compact-time {
  min-width: 128px;
  white-space: nowrap;
}

.candidate-progress-cell {
  min-width: 210px;
  white-space: normal;
  color: #5f5a6b;
  font-weight: 650;
  line-height: 1.42;
}

.candidate-progress-main {
  white-space: nowrap;
}

.candidate-progress-detail {
  margin-top: 3px;
  color: #7d7689;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.version-cell {
  min-width: 132px;
  white-space: normal;
}

.version-stack {
  display: grid;
  gap: 2px;
  color: #57525f;
  font-size: 12px;
  line-height: 1.35;
}

.version-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  border: 1px solid;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

.version-state.is-current {
  border-color: #c9e8d1;
  background: #eef8f1;
  color: #24743a;
}

.version-state.needs-update {
  border-color: #f0d5a8;
  background: #fff8e9;
  color: #8a5a14;
}

.raw-version-cell {
  max-width: 360px;
  overflow-wrap: anywhere;
  color: #6e6a7a;
  font-size: 11px;
}

.table-muted {
  color: #8b8497;
  font-size: 12px;
}

.candidate-table .report-expansion-cell {
  position: static;
  padding: 0;
  background: #fafcff;
  border-top: 0;
}

.inline-report-container {
  width: min(1040px, calc(100vw - 76px));
  margin: 0 auto;
  padding: 20px;
}

.inline-loading,
.inline-error {
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  background: #fff;
  color: #625b70;
  padding: 18px;
}

.inline-loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid #c8dff8;
  border-top-color: #0071e3;
  border-radius: 50%;
  vertical-align: -2px;
  animation: admin-spin 0.8s linear infinite;
}

@keyframes admin-spin {
  to { transform: rotate(360deg); }
}

.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.one-time-box {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 240px;
  gap: 16px;
  align-items: start;
  border: 1px solid #c8dff8;
  background: #f4f8ff;
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
}

.one-time-box textarea {
  width: 100%;
  min-height: 82px;
}

.qr-box svg {
  width: 220px;
  height: 220px;
  background: #fff;
}

.report-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.report-detail > section {
  padding: 16px 0;
  border-top: 1px solid #e5e5ea;
}

.report-detail > h3 {
  margin: 0;
  font-size: 20px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.report-version-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.report-version-panel > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
  background: #fbfbfd;
  padding: 10px 12px;
}

.report-version-panel span,
.version-update-notice span {
  color: #6e6a7a;
  font-size: 12px;
}

.report-version-panel strong {
  color: #1d1d1f;
  font-size: 15px;
}

.version-update-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #f0d5a8;
  border-radius: 8px;
  background: #fff8e9;
  padding: 10px 12px;
}

.version-update-notice > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-invite-card {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fbfbfd 100%);
}

.admin-invite-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-invite-head h3,
.admin-invite-head p {
  margin: 0;
}

.admin-invite-head p {
  margin-top: 6px;
  color: #6e6a7a;
}

.config-status {
  flex: 0 0 auto;
  border: 1px solid #d2d2d7;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f5f5f7;
  color: #5f6368;
  font-size: 12px;
  font-weight: 700;
}

.config-status.ready {
  border-color: #bdddcf;
  background: #eef8f3;
  color: #27664a;
}

.configuration-warning,
.admin-invite-result {
  border: 1px solid #c8dff8;
  border-radius: 8px;
  background: #f4f8ff;
  color: #3f4552;
  padding: 13px 15px;
}

.configuration-warning {
  margin: 0 0 16px;
}

.candidate-welcome-settings {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.candidate-welcome-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.candidate-welcome-settings-head h3,
.candidate-welcome-settings-head p {
  margin: 0;
}

.candidate-welcome-settings-head p {
  margin-top: 6px;
  color: #6e6a7a;
  line-height: 1.6;
}

.candidate-welcome-form {
  margin-bottom: 0;
}

.candidate-welcome-toggle {
  grid-template-columns: 18px 1fr;
  align-items: center;
  min-height: 38px;
  margin: 0;
}

.candidate-welcome-toggle input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.candidate-welcome-form textarea {
  min-height: 148px;
  line-height: 1.7;
  resize: vertical;
}

.candidate-welcome-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #6e6a7a;
  font-size: 12px;
}

.candidate-welcome-preview {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
  background: #fbfbfd;
  padding: 14px;
}

.candidate-welcome-preview img {
  width: 112px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f7;
}

.candidate-welcome-preview div {
  display: grid;
  gap: 8px;
}

.candidate-welcome-preview span {
  width: fit-content;
  border: 1px solid #dbe7f5;
  border-radius: 999px;
  padding: 4px 9px;
  background: #f6f9ff;
  color: #4f627f;
  font-size: 12px;
  font-weight: 700;
}

.candidate-welcome-preview strong {
  color: #1d1d1f;
  font-size: 18px;
}

.candidate-welcome-preview p {
  margin: 0;
  color: #4f4f58;
  line-height: 1.7;
}

.candidate-welcome-preview button {
  width: fit-content;
  margin-top: 2px;
}

.admin-invite-form {
  grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) auto;
  align-items: end;
}

.external-admin-form {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(150px, 0.7fr) auto;
  align-items: end;
}

.admin-invite-form input:disabled,
.admin-invite-form select:disabled {
  background: #f5f5f7;
  color: #86868b;
}

.admin-invite-result {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
  background: #edf6ff;
}

.admin-invite-result p {
  margin: 5px 0 0;
  color: #5f6368;
}

.admin-invite-result input {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid #c8dff8;
  border-radius: 999px;
  background: #fff;
  padding: 0 14px;
  font: inherit;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}

.credential-grid label {
  display: grid;
  gap: 6px;
  color: #625b70;
  font-size: 12px;
  font-weight: 700;
}

.compact-table-wrap {
  max-height: 420px;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 9px;
  background: #f5f5f7;
  color: #5f6368;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-status.active {
  background: #eef8f3;
  color: #27664a;
}

.admin-status.pending {
  background: #fff7e8;
  color: #8a5a00;
}

.admin-status.disabled {
  background: #f4f4f5;
  color: #86868b;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.permission-card {
  border: 1px solid #e1e6ef;
  border-radius: 8px;
  background: #fbfcff;
  padding: 16px;
}

.permission-card h3,
.permission-card p {
  margin: 0;
}

.permission-card p {
  margin-top: 8px;
  color: #5f6368;
  line-height: 1.7;
}

.permission-note {
  margin-top: 16px;
  border: 1px solid #d7e7d9;
  border-radius: 8px;
  background: #f3faf4;
  color: #24593c;
  padding: 14px 16px;
}

.permission-note p {
  margin: 6px 0 0;
  line-height: 1.65;
}

.report-detail > * {
  min-width: 0;
}

.report-detail > p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.role-bars {
  display: grid;
  gap: 10px;
}

.role-bar {
  display: grid;
  grid-template-columns: minmax(132px, 152px) minmax(110px, 1fr) 52px;
  gap: 11px;
  align-items: center;
}

.role-bar b {
  min-width: 0;
  overflow: hidden;
  color: #2f343b;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-bar span.track {
  height: 13px;
  background: #eef1f5;
  border-radius: 99px;
  overflow: hidden;
}

.role-bar span.track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #67be69;
}

.role-bar strong {
  color: #30343a;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.ability-columns,
.ability-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.ability-section {
  min-width: 0;
  padding-bottom: 14px;
  border-top: 4px solid var(--section);
}

.ability-section h5 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  color: var(--section);
  background: var(--section-soft);
  font-size: 14px;
}

.ability-section h5 span {
  font-weight: 500;
}

.ability-section .track {
  background: var(--section-soft);
}

.analysis-table-wrap {
  overflow-x: auto;
}

.analysis-table-wrap .admin-table th {
  background: #f5f7fb;
  color: #1d1d1f;
}

.professional-advice {
  border-top: 1px solid #e5e5ea;
  padding-top: 8px;
}

.professional-advice > h5 {
  margin: 26px 0 8px;
  color: #1d1d1f;
  font-size: 16px;
}

.professional-advice-intro {
  color: #6e6a7a;
  line-height: 1.7;
}

.employment-advice-summary {
  display: grid;
  gap: 9px;
  margin: 0;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
  background: #f7fafc;
  padding: 16px 20px 16px 38px;
  color: #2f343b;
  line-height: 1.7;
}

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

.advice-version-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 9px;
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid #e5e5ea;
  border-radius: 8px;
  background: #fbfbfd;
}

.advice-version-bar label {
  display: grid;
  gap: 4px;
  min-width: min(100%, 320px);
  color: #6e6a7a;
  font-size: 12px;
}

.advice-version-bar select {
  width: 100%;
}

.advice-audit {
  margin-top: 18px;
  padding: 16px;
  border-top: 3px solid #0071e3;
  background: #fbfbfd;
}

.advice-audit details {
  margin-top: 14px;
}

.advice-audit summary {
  cursor: pointer;
  color: #175d9c;
  font-weight: 700;
}

.advice-audit td small {
  overflow-wrap: anywhere;
  color: #6e6a7a;
}

.employment-advice-item {
  padding: 18px 0 22px;
  border-top: 1px solid #e5e5ea;
}

.employment-advice-item-plain {
  margin: 10px 0;
  border: 1px solid #e1e6eb;
  border-radius: 8px;
  background: #fbfcfd;
  padding: 15px 16px;
}

.manager-guide-grid .employment-advice-item {
  margin: 0;
  border: 1px solid #dce8df;
  border-radius: 8px;
  border-color: #dce8df;
  background: #f6faf7;
  padding: 15px 16px;
}

.employment-advice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.employment-advice-head h6 {
  margin: 0;
  color: #1d1d1f;
  font-size: 15px;
}

.employment-advice-head span {
  flex: 0 0 auto;
  border-radius: 6px;
  background: #edf6ff;
  color: #175d9c;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}

.employment-advice-item p {
  margin: 6px 0;
  line-height: 1.7;
}

.employment-advice-lead {
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.employment-advice-field {
  color: #1d1d1f;
  font-size: 13px;
}

.employment-advice-field ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.employment-advice-field li + li {
  margin-top: 5px;
}

.employment-advice-meta {
  margin-left: 18px !important;
  color: #777283;
  font-size: 12px;
  line-height: 1.55;
}

.employment-evidence {
  margin-top: 12px;
  border-left: 2px solid #b8d4f3;
  background: #fbfcff;
  padding: 9px 12px;
  color: #777283;
  font-size: 11px;
  line-height: 1.55;
}

.employment-evidence > b {
  color: #777283;
}

.employment-evidence ul {
  margin: 5px 0 0;
  padding-left: 16px;
}

.employment-boundary {
  border: 1px solid #e5e5ea;
  border-radius: 8px;
  background: #f5f7fb;
  padding: 16px 18px;
  line-height: 1.75;
  font-weight: 600;
}

@media (max-width: 760px) {
  .report-detail > .action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-detail > .action-row button {
    width: 100%;
    min-height: 44px;
  }

  .invite-mode-shell,
  .invite-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .invite-mode-shell .segmented-control,
  .invite-list-toolbar .segmented-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    box-sizing: border-box;
  }

  .invite-list-toolbar .segmented-control {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .invite-mode-shell .segmented-control button,
  .invite-list-toolbar .segmented-control button {
    width: 100%;
    min-width: 0;
  }

  .manager-guide-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar .topbar-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .admin-topbar #admin-name {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-topbar .topbar-actions button {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
  }

  .one-time-box {
    grid-template-columns: 1fr;
  }

  .admin-workspace,
  .login-panel {
    width: min(100% - 20px, 1280px);
    margin: 10px auto;
  }

  .admin-page,
  .admin-card {
    padding: 12px;
  }

  .candidate-table-wrap {
    max-height: calc(100vh - 214px);
  }

  .candidate-table .sticky-name {
    width: 92px;
    min-width: 92px;
    max-width: 92px;
  }

  .candidate-table .sticky-report {
    left: 92px;
    width: 82px;
    min-width: 82px;
    max-width: 82px;
  }

  .inline-report-container {
    width: calc(100vw - 42px);
    margin: 0;
    padding: 72px 8px 14px;
  }

  .report-version-panel {
    grid-template-columns: 1fr;
  }

  .version-update-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .candidate-table .report-expansion-cell {
    position: sticky;
    left: 0;
    z-index: 3;
  }

  .admin-invite-head {
    display: grid;
  }

  .candidate-welcome-settings-head,
  .candidate-welcome-preview {
    grid-template-columns: 1fr;
  }

  .candidate-welcome-settings-head {
    display: grid;
  }

  .candidate-welcome-preview img {
    width: min(160px, 52vw);
  }

  .admin-invite-form {
    grid-template-columns: 1fr;
  }

  .password-login-form {
    grid-template-columns: 1fr;
  }

  .password-change-head,
  .password-change-form {
    grid-template-columns: 1fr;
  }

  .admin-invite-form,
  .external-admin-form,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .password-change-head {
    display: grid;
  }

  .ability-columns,
  .ability-sections {
    grid-template-columns: 1fr;
  }

  .role-bar {
    grid-template-columns: 104px minmax(92px, 1fr) 42px;
    gap: 8px;
  }

  .role-bar b,
  .role-bar strong {
    font-size: 12px;
  }
}
