:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #182235;
  --muted: #68758a;
  --line: #dce4ef;
  --soft-line: #edf1f7;
  --blue: #2878e3;
  --blue-soft: #eaf2ff;
  --green: #20a46b;
  --green-soft: #e8f7f0;
  --amber: #b7791f;
  --amber-soft: #fff5df;
  --red: #d64545;
  --red-soft: #fff0f0;
  --teal: #0f8c8c;
  --shadow: 0 10px 24px rgba(24, 34, 53, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar.compact {
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #ffffff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-link {
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-size: 14px;
}

.nav-link.is-active {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #b8d1fb;
  font-weight: 700;
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 56px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 24px;
  align-items: start;
}

.mark-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.dashboard-shell {
  display: grid;
  gap: 20px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.filter-tab.is-active {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #b8d1fb;
}

.stack {
  display: grid;
  gap: 20px;
}

.sticky-column {
  position: sticky;
  top: 92px;
}

.panel {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

button.metric {
  color: inherit;
  text-align: left;
  cursor: pointer;
}

button.metric:hover,
.metric.is-active {
  border-color: #b8d1fb;
  background: var(--blue-soft);
}

.metric.is-active strong,
.metric.is-active span {
  color: var(--blue);
}

.panel-heading,
.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
  line-height: 1.25;
}

h2 {
  font-size: 16px;
  line-height: 1.35;
}

.eyebrow,
.subtle {
  color: var(--muted);
  font-size: 13px;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--blue);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: var(--muted);
  background: #f3f6fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}

.status-pill.success {
  color: var(--green);
  background: var(--green-soft);
  border-color: #b9e5d0;
}

.status-pill.warning {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: #f2d69a;
}

.status-pill.danger {
  color: var(--red);
  background: var(--red-soft);
  border-color: #fac2c2;
}

.upload-zone {
  display: grid;
  place-items: center;
  min-height: 172px;
  padding: 22px;
  text-align: center;
  background: #f8fbff;
  border: 1px dashed #b8d1fb;
  border-radius: 8px;
  cursor: pointer;
}

.upload-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.upload-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.upload-zone span:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.button-row.compact-buttons {
  margin-top: 0;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.btn.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.btn.full {
  width: 100%;
}

.btn.primary {
  color: #ffffff;
  background: var(--blue);
}

.btn.secondary {
  color: var(--text);
  background: #ffffff;
  border-color: var(--line);
}

.btn:disabled {
  color: #93a0b3;
  background: #edf1f7;
  border-color: #edf1f7;
  cursor: not-allowed;
}

.text-btn {
  padding: 4px 0;
  color: var(--blue);
  background: none;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

.empty-state {
  display: grid;
  min-height: 96px;
  align-items: center;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 16px;
}

.candidate-profile {
  display: grid;
  gap: 16px;
}

.profile-summary {
  display: grid;
  gap: 8px;
}

.profile-summary h3 {
  margin: 0;
  font-size: 20px;
}

.tag-row,
.evidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.evidence-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.evidence-tag {
  color: var(--teal);
  background: #e8f7f7;
}

.profile-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-section {
  border-top: 1px solid var(--soft-line);
  padding-top: 12px;
}

.profile-section strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.profile-section ul,
.highlight-list {
  margin: 0;
  padding-left: 18px;
}

.profile-section li,
.highlight-list li {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.5;
}

.private-note-entry {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.private-note-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.private-note-icon::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  width: 12px;
  height: 16px;
  border: 2px solid var(--muted);
  border-radius: 2px;
  box-sizing: border-box;
}

.private-note-icon::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 13px;
  width: 8px;
  height: 2px;
  background: var(--muted);
  box-shadow: 0 4px 0 var(--muted);
}

.private-note-icon:hover {
  border-color: #9cc0f6;
  box-shadow: 0 0 0 3px rgba(40, 120, 227, 0.12);
}

.private-note-badge {
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 999px;
  font-size: 11px;
  line-height: 18px;
  font-weight: 800;
}

.private-note-modal {
  width: min(980px, calc(100vw - 32px));
}

.private-note-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.private-note-history-panel,
.private-note-compose-panel {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 10px 12px;
}

.private-note-history-panel {
  max-height: min(64vh, 620px);
  overflow: auto;
}

.private-note-history-panel h3,
.private-note-compose-panel h3 {
  margin: 0 0 10px;
}

.private-note-modal-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--soft-line);
}

.private-note-author {
  color: var(--text);
  font-weight: 600;
}

.private-note-history-list {
  display: grid;
  gap: 10px;
}

.private-note-text {
  margin-top: 8px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

.private-note-input {
  min-height: 120px;
  padding: 10px 12px;
  margin-top: 8px;
  resize: vertical;
}

.private-note-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.private-note-compose-panel .private-note-actions {
  margin-top: 12px;
}

.screening-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

@media (max-width: 880px) {
  .private-note-modal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .private-note-history-panel {
    max-height: min(48vh, 420px);
  }
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-input,
.feedback-input {
  width: 100%;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.search-input {
  min-height: 42px;
  padding: 0 12px;
}

.search-input:focus,
.feedback-input:focus {
  border-color: #9cc0f6;
  box-shadow: 0 0 0 3px rgba(40, 120, 227, 0.12);
}

.manual-results,
.recommendation-list,
.group-profile-list,
.source-groups {
  display: grid;
  gap: 12px;
}

.manual-results {
  margin-top: 12px;
}

.manual-result,
.recommendation-card,
.group-profile {
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.manual-result,
.group-profile {
  display: grid;
  gap: 8px;
}

.manual-result-top,
.recommendation-top,
.group-profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.manual-result h3,
.recommendation-card h3,
.group-profile h3 {
  margin: 0;
  font-size: 15px;
}

.manual-result p,
.recommendation-card p,
.group-profile p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.mini-btn {
  min-height: 30px;
  padding: 0 10px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #bdd4fb;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.mini-btn.is-selected {
  color: var(--green);
  background: var(--green-soft);
  border-color: #b9e5d0;
}

.pitch-box {
  color: #31405a;
  line-height: 1.65;
  white-space: pre-wrap;
}

.recommendation-list.empty-state {
  display: grid;
}

.recommendation-card {
  display: grid;
  gap: 12px;
}

.recommendation-card.is-selected {
  border-color: #9cc0f6;
  box-shadow: 0 0 0 3px rgba(40, 120, 227, 0.08);
}

.check-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.check-title input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.score {
  flex: 0 0 auto;
  min-width: 54px;
  padding: 5px 8px;
  text-align: center;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

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

.reason-block {
  min-height: 88px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.reason-block strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}

.reason-block p {
  font-size: 12px;
}

.confirm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--soft-line);
}

.confirm-bar p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.resume-viewer {
  min-height: calc(100vh - 120px);
}

.resume-paper {
  min-height: 720px;
  margin: 0;
  padding: 36px;
  overflow: auto;
  color: #1f2d44;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 0 0 12px #f8fafc;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
}

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

.info-item {
  min-height: 62px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.info-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.info-item strong {
  font-size: 14px;
}

.source-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.source-card + .source-card {
  margin-top: 10px;
}

.mark-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.mark-btn {
  min-height: 64px;
  border-radius: 8px;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.mark-btn.pass {
  color: var(--green);
  border: 2px solid #72c89f;
}

.mark-btn.pending {
  color: var(--amber);
  border: 2px solid #e2b85b;
}

.mark-btn.reject {
  color: var(--red);
  border: 2px solid #ef8a8a;
}

.mark-btn.is-active {
  color: #ffffff;
}

.mark-btn.pass.is-active {
  background: var(--green);
}

.mark-btn.pending.is-active {
  background: var(--amber);
}

.mark-btn.reject.is-active {
  background: var(--red);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.feedback-input {
  display: block;
  min-height: 104px;
  margin-bottom: 12px;
  padding: 12px;
  resize: vertical;
}

.job-heading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.job-count-link {
  cursor: pointer;
}

.job-count-link:hover {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #b8d1fb;
}

.job-filter-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.published-job-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.published-job-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.published-job-head,
.published-job-actions,
.published-job-meta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.published-job-head {
  justify-content: space-between;
}

.published-job-head h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.published-job-actions {
  flex: 0 0 auto;
  align-items: center;
}

.published-job-meta {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.published-job-meta span {
  padding: 5px 8px;
  background: #f8fafc;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
}

.published-job-jd {
  display: -webkit-box;
  overflow: hidden;
  color: #31405a;
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.job-edit-modal {
  width: min(760px, 100%);
}

.job-edit-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.job-edit-form .feedback-input {
  min-height: 240px;
}

.job-modal-backdrop[hidden] {
  display: none;
}

.job-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: block;
  padding: 0;
  overflow: auto;
  background: #ffffff;
}

.job-publish-page {
  position: relative;
  width: min(1280px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 32px 56px;
  color: #1f2430;
  background: #ffffff;
}

.job-publish-close-row {
  position: absolute;
  top: 40px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.job-history-btn {
  min-height: 40px;
  padding: 0 16px;
  color: #02a9aa;
  background: #e8f9f8;
  border: 0;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
}

.job-close-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #8b96a8;
  background: #ffffff;
  border: 1px solid #dfe5ee;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.job-publish-form {
  display: grid;
  gap: 32px;
}

.job-step-section {
  display: grid;
  gap: 20px;
  max-width: 980px;
}

.job-step-title {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.job-step-number {
  color: #009f9f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 50px;
  font-style: italic;
  line-height: 0.95;
  text-align: right;
}

.job-step-title h2 {
  margin: 0 0 8px;
  color: #1d222d;
  font-size: 22px;
  line-height: 1.1;
}

.job-step-title p {
  color: #8d98aa;
  font-size: 14px;
  line-height: 1.35;
}

.job-field-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-left: 66px;
}

.job-field-row > label,
.job-field-row > span,
.job-field-row.company-row > label,
.keyword-row > label {
  color: #8b96a8;
  font-size: 15px;
  line-height: 1.2;
  text-align: right;
}

.job-static-text {
  color: #3d465b;
  font-size: 15px;
}

.job-segment-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.job-segment {
  min-height: 42px;
  color: #1f2430;
  background: #ffffff;
  border: 1px solid #d9e0ea;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
}

.job-segment.is-active {
  color: #009f9f;
  background: #e9faf8;
  border-color: #e9faf8;
}

.job-input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: #374157;
  background: #ffffff;
  border: 1px solid #dbe2ec;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
}

.job-input::placeholder,
.job-description-box textarea::placeholder {
  color: #c4cad5;
}

.job-textarea-row {
  align-items: start;
}

.job-description-box {
  position: relative;
  min-height: 260px;
  padding: 16px;
  border: 1px solid #dbe2ec;
  border-radius: 6px;
}

.job-title-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #8b96a8;
  font-size: 14px;
}

.job-title-chips b {
  padding: 6px 12px;
  color: #465166;
  background: #eef1f5;
  border-radius: 999px;
  font-size: 13px;
}

.job-description-box textarea {
  width: 100%;
  min-height: 160px;
  margin-top: 14px;
  color: #374157;
  background: transparent;
  border: 0;
  outline: none;
  resize: vertical;
  font-size: 15px;
  line-height: 1.75;
}

.job-textarea-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #374157;
  font-size: 14px;
}

.job-textarea-footer em {
  color: #ff0000;
  font-style: normal;
}

.job-ai-btn {
  min-height: 34px;
  padding: 0 12px;
  color: #009f9f;
  background: linear-gradient(90deg, #d8faf4, #dfe5ff);
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.compact-step {
  margin-top: 14px;
}

.job-requirement-grid {
  display: grid;
  gap: 14px;
  margin-left: 66px;
}

.compact-field {
  grid-template-columns: 150px minmax(220px, 300px);
  margin-left: 0;
}

.job-salary-tip {
  margin: -8px 0 0 234px;
  color: #009f9f;
  font-size: 13px;
}

.location-row {
  grid-template-columns: 150px minmax(0, 1fr);
  margin-left: 66px;
}

.job-location-control {
  display: grid;
  gap: 10px;
}

.job-address-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.job-address-add-row[hidden] {
  display: none;
}

.teal-focus {
  border-color: #00bdb4;
}

.job-location-tip {
  margin: -8px 0 0 234px;
  color: #8b96a8;
  font-size: 13px;
}

.job-submit-bar {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  max-width: 980px;
  margin-left: 66px;
  padding: 8px 0 0;
  background: #ffffff;
}

.job-cancel-btn,
.job-submit-btn {
  min-width: 120px;
  min-height: 40px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.job-cancel-btn {
  color: #465166;
  background: #ffffff;
  border: 1px solid #dbe2ec;
}

.job-submit-btn {
  color: #ffffff;
  background: #009f9f;
  border: 1px solid #009f9f;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.job-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 14px;
}

.form-field {
  display: block;
  min-width: 0;
}

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

.job-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.job-card.is-selected {
  border-color: #9cc0f6;
  box-shadow: 0 0 0 3px rgba(40, 120, 227, 0.08);
}

.job-card-main,
.job-card-title-row,
.job-card-actions {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.job-card-main {
  justify-content: space-between;
}

.job-card-title-row {
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 4px;
}

.job-card-actions {
  flex: 0 0 auto;
  align-items: center;
}

.job-card-jd {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.danger-text {
  color: var(--red);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.my-metric-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metric {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.metric strong {
  font-size: 28px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: #ffffff;
}

.status-table th,
.status-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--soft-line);
  vertical-align: top;
  font-size: 13px;
}

.status-table th {
  color: var(--muted);
  background: #f8fafc;
  font-weight: 800;
}

.status-table tr:last-child td {
  border-bottom: 0;
}

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

.dashboard-empty {
  margin-top: 12px;
}

.filter-tabs {
  margin-bottom: 14px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 48px));
  padding: 12px 14px;
  color: #ffffff;
  background: #182235;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .two-column,
  .mark-layout {
    grid-template-columns: 1fr;
  }

  .sticky-column {
    position: static;
  }

  .metric-strip,
  .my-metric-strip,
  .job-filter-strip,
  .job-form-grid,
  .reason-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topnav,
  .button-row.compact-buttons {
    justify-content: flex-start;
  }

  .page-shell {
    width: min(100% - 20px, 1280px);
    margin-top: 14px;
  }

  .panel {
    padding: 16px;
  }

  .profile-sections,
  .info-grid,
  .metric-strip,
  .my-metric-strip,
  .job-filter-strip,
  .job-form-grid,
  .reason-grid,
  .mark-actions {
    grid-template-columns: 1fr;
  }

  .published-job-head,
  .published-job-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .job-card-main,
  .job-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .job-card-actions .btn {
    width: 100%;
  }

  .confirm-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .confirm-bar .btn {
    width: 100%;
  }

  .resume-paper {
    min-height: 520px;
    padding: 24px;
    font-size: 14px;
  }
}

.owner-choice-list {
  display: grid;
  gap: 10px;
}

.owner-choice-row {
  display: block;
}

.owner-choice-row.is-editing {
  display: block;
}

.owner-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  font-weight: 700;
  cursor: pointer;
}

.recommend-owner-option {
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  font-weight: 700;
}

.recommend-owner-check {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #ffffff;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
}

.recommend-owner-option.is-selected .recommend-owner-check {
  background: var(--blue);
  border-color: var(--blue);
}

.selected-owner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.selected-owner-chips[hidden] {
  display: none;
}

.selected-owner-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid #b8d1fb;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#recommendSelectedJobText {
  margin-top: 8px;
}

.owner-delete-btn {
  min-height: 34px;
  padding: 0 10px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid #fac2c2;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.owner-save-btn,
.owner-cancel-btn {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.owner-cancel-btn {
  color: var(--ink);
  background: #ffffff;
}

.owner-save-btn {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.owner-edit-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.owner-edit-input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.owner-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 640px) {
  .owner-edit-panel {
    grid-template-columns: 1fr;
  }
}

.owner-choice.is-selected {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #b8d1fb;
}

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

.matched-job-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.matched-job-card.is-best {
  border-color: #b9e5d0;
  background: var(--green-soft);
}

.matched-job-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(47, 111, 237, 0.12);
}

.matched-job-card:hover {
  border-color: #9dbdf6;
}

.matched-job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.matched-job-head strong {
  font-size: 14px;
}

.matched-job-reason {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.manual-job-search {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.manual-job-results {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.manual-job-option {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.manual-job-option:hover {
  border-color: #9dbdf6;
}

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

.jd-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.field-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.talent-table th,
.talent-table td {
  min-width: 110px;
}

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

.talent-table th:first-child,
.talent-table td:first-child {
  min-width: 150px;
}

.talent-work-list,
.talent-screening-cell {
  display: grid;
  gap: 6px;
}

.talent-work-list span,
.talent-screening-cell small {
  display: block;
  color: var(--text);
  line-height: 1.4;
}

.talent-work-list small,
.talent-screening-cell small {
  color: var(--muted);
  font-size: 12px;
}

.talent-name-link {
  color: var(--blue);
  font-weight: 800;
}

.talent-name-link:hover {
  text-decoration: underline;
}

.talent-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.talent-detail-layout[hidden] {
  display: none;
}

.talent-detail-backbar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  margin-bottom: -8px;
}

.talent-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
  align-items: start;
}

.talent-filter-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  background: #fbfdff;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.talent-filter-card.text-filter {
  grid-row: 1;
}

.talent-filter-card.compact-filter {
  grid-row: 2;
  min-height: 0;
}

.work-years-filter {
  grid-column: span 2;
}

.talent-token-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.talent-token-row .btn {
  min-width: 68px;
}

.talent-chip-row,
.talent-option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.talent-chip,
.talent-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.talent-chip {
  gap: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #b8d1fb;
}

.talent-chip b {
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}

.talent-option.is-active {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #b8d1fb;
}

.process-stage-flow {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  overflow: visible;
  overflow-y: visible;
  padding: 4px 0 6px;
}

.process-stage-node {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 26px;
  padding: 0 4px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.process-stage-node:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -6px;
  width: 6px;
  height: 1px;
  background: var(--line);
}

.process-stage-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #c8d2df;
}

.process-stage-node.is-done {
  color: var(--green);
  background: var(--green-soft);
  border-color: #b9e5d0;
}

.process-stage-node.is-done .process-stage-dot {
  background: var(--green);
}

.process-stage-node.is-locked {
  color: #8a96a8;
  background: #f2f5f9;
  border-color: var(--soft-line);
  text-decoration: line-through;
}

.process-stage-node.is-locked .process-stage-dot {
  background: #aab5c4;
}

.process-stage-node.is-current {
  z-index: 1;
  min-height: 32px;
  padding: 0 6px;
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 10px 22px rgba(40, 120, 227, 0.24);
  transform: scale(1.06);
}

.process-stage-node.is-current .process-stage-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
}

.process-stage-node.is-failed {
  z-index: 1;
  min-height: 32px;
  padding: 0 6px;
  color: #ffffff;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 10px 22px rgba(214, 69, 69, 0.24);
  transform: scale(1.06);
}

.process-stage-node.is-failed .process-stage-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  color: var(--red);
  background: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.process-stage-node:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.talent-filter-reset {
  grid-row: 2;
  justify-self: start;
  align-self: end;
  width: auto;
  min-width: 96px;
}

.resume-text-box {
  min-height: 560px;
  overflow: hidden;
  padding: 0;
  color: var(--text);
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resume-text-box.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 20px;
}

.resume-preview-frame {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: #ffffff;
}

.resume-preview-image {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
}

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

#screeningHistory {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.history-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.history-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feedback-edit-card {
  gap: 10px;
}

.history-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.history-mini-section {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--soft-line);
}

.history-mini-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 34, 53, 0.42);
}

.modal-panel {
  width: min(1120px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(24, 34, 53, 0.22);
}

.candidate-name-modal {
  width: min(460px, 100%);
}

.candidate-name-preview {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.candidate-name-preview span {
  color: var(--muted);
  font-size: 13px;
}

.candidate-name-preview strong {
  font-size: 20px;
  line-height: 1.35;
}

.candidate-name-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.schedule-interviewer-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  max-height: 168px;
  overflow: auto;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.schedule-interviewer-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.schedule-interviewer-option input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.schedule-time-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
}

.schedule-room-heading {
  margin-top: 2px;
}

.schedule-room-list {
  display: grid;
  gap: 8px;
  max-height: 250px;
  overflow: auto;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.schedule-room-option {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.schedule-room-option > span {
  display: grid;
  gap: 3px;
}

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

.schedule-room-option em {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.schedule-room-option.is-selected {
  background: var(--blue-soft);
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.schedule-room-option.is-busy {
  color: var(--muted);
  background: #fff7f7;
  border-color: #f7caca;
  cursor: not-allowed;
}

.schedule-room-option.is-busy em,
.schedule-room-option .room-conflict-time,
.schedule-room-error {
  color: var(--red);
}

.schedule-busy-heading {
  margin-top: 2px;
}

.schedule-busy-legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.schedule-busy-legend i {
  width: 18px;
  height: 10px;
  border-radius: 3px;
}

.schedule-busy-legend .tentative,
.schedule-time-block.tentative {
  background: repeating-linear-gradient(135deg, #f7f9ff 0 7px, #e8efff 7px 10px);
  border: 1.5px dashed #4f7df3;
}

.schedule-busy-legend .confirmed,
.schedule-time-block.confirmed {
  background: #dce8ff;
  border: 1px solid #c7d8ff;
  border-left: 5px solid #4f7df3;
}

.schedule-busy-timeline {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.schedule-timeline-header,
.schedule-timeline-row {
  display: grid;
  grid-template-columns: 112px minmax(720px, 1fr);
  min-width: 850px;
}

.schedule-timeline-header {
  min-height: 38px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.schedule-timeline-header > span,
.schedule-timeline-row > strong {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid var(--line);
}

.schedule-timeline-header > div,
.schedule-timeline-track {
  position: relative;
  background-image: linear-gradient(to right, var(--soft-line) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}

.schedule-timeline-header i {
  position: absolute;
  top: 10px;
  translate: -50% 0;
  font-style: normal;
  white-space: nowrap;
}

.schedule-timeline-row {
  min-height: 54px;
  border-bottom: 1px solid var(--soft-line);
}

.schedule-timeline-row:last-child {
  border-bottom: 0;
}

.schedule-timeline-row > strong {
  font-size: 13px;
}

.schedule-time-block {
  position: absolute;
  top: 8px;
  bottom: 8px;
  z-index: 1;
  min-width: 5px;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(31, 75, 173, 0.08);
}

.schedule-time-block.tentative {
  z-index: 2;
  opacity: 1;
}

.talent-compare-body {
  display: grid;
  gap: 14px;
}

.talent-compare-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  font-size: 13px;
}

.talent-compare-summary strong {
  color: var(--text);
}

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

.talent-compare-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.talent-compare-card.is-current {
  border-color: #b8d1fb;
  background: var(--blue-soft);
}

.talent-compare-head,
.talent-compare-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.talent-compare-head span,
.talent-compare-meta span {
  color: var(--muted);
  font-size: 12px;
}

.talent-compare-meta {
  justify-content: flex-start;
}

.talent-compare-meta span {
  padding: 4px 8px;
  background: #f3f6fb;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
}

.talent-compare-card pre {
  max-height: 320px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #31405a;
  background: #fbfdff;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.talent-owner-select {
  position: relative;
  display: grid;
  gap: 8px;
}

.talent-job-block {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--soft-line);
}

.talent-job-block[hidden] {
  display: none;
}

.talent-owner-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.talent-owner-option {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  padding: 0 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
}

.talent-owner-option:hover,
.talent-owner-option.is-selected {
  color: var(--blue);
  background: var(--blue-soft);
}

.talent-job-option {
  display: grid;
  align-items: start;
  gap: 3px;
}

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

.talent-owner-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}

.schedule-form {
  display: grid;
  gap: 10px;
}

.schedule-form .feedback-input {
  min-height: 92px;
  margin-bottom: 0;
}

.schedule-interview-btn {
  justify-self: start;
  margin-top: 2px;
}

.schedule-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (max-width: 900px) {
  .talent-detail-layout {
    grid-template-columns: 1fr;
  }

  .talent-filter-grid {
    grid-template-columns: 1fr;
  }

  .talent-filter-card.text-filter,
  .talent-filter-card.compact-filter,
  .talent-filter-reset,
  .work-years-filter {
    grid-row: auto;
    grid-column: auto;
  }

  .talent-compare-pair {
    grid-template-columns: 1fr;
  }
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.login-panel {
  width: min(420px, 100%);
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-brand {
  margin-bottom: 28px;
}

.login-heading {
  margin-bottom: 18px;
}

.login-heading h1 {
  margin: 4px 0 0;
  font-size: 28px;
}

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

.login-form .btn {
  width: 100%;
  margin-top: 8px;
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  font-size: 14px;
}

.user-modal {
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.user-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
  margin-top: 18px;
}

.user-form .field-label {
  align-self: end;
}

.user-form .search-input {
  grid-row: 2;
}

.user-form-actions {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.user-table-wrap {
  margin-top: 18px;
}

.user-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.nav-button {
  font: inherit;
  cursor: pointer;
}

.user-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.user-overview-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.admin-advanced-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
  align-items: end;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px;
  background: #f8faff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.admin-advanced-filters label {
  display: grid;
  gap: 6px;
}

.admin-advanced-filters label > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-filter-clear {
  min-height: 42px;
}

@media (max-width: 1100px) {
  .admin-advanced-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.user-recommend-table th,
.user-recommend-table td {
  vertical-align: top;
}

.user-interview-boards {
  display: grid;
  gap: 22px;
}

.user-scope-switch {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
}

.user-status-switch {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.user-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.user-status-tab strong {
  display: inline-grid;
  min-width: 24px;
  min-height: 24px;
  padding: 2px 6px;
  place-items: center;
  background: #f3f6fb;
  border-radius: 999px;
  font-size: 12px;
}

.user-status-tab:hover,
.user-status-tab.is-active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.user-status-tab.is-active strong,
.user-status-tab:hover strong {
  color: var(--blue);
  background: #fff;
}

.user-interview-board {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}

.user-interview-board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.user-interview-board-heading h3,
.user-interview-board-heading p {
  margin: 0;
}

.user-interview-board-heading p {
  margin-top: 4px;
}

.user-board-empty {
  padding: 24px 18px;
  color: var(--muted);
}

.feedback-form {
  display: grid;
  gap: 10px;
}

.feedback-form .feedback-input {
  min-height: 130px;
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .login-shell {
    padding: 16px;
  }

  .login-panel {
    padding: 22px;
  }

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

  .user-overview-grid {
    grid-template-columns: 1fr;
  }

  .user-form .search-input {
    grid-row: auto;
  }
}
