:root {
  --bg: #f5faf8;
  --surface: #fff;
  --soft: #f0f5f2;
  --soft-2: #e4ece9;
  --line: #bcc9c6;
  --text: #171d1c;
  --muted: #687572;
  --primary: #00766c;
  --primary-dark: #005c55;
  --mint: #aeeed7;
  --mint-soft: #daf7ec;
  --danger: #ba1a1a;
  --danger-soft: #ffdad6;
  --warning: #9a451e;
  --warning-soft: #ffdbce;
  --sidebar: 220px;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { min-height: 100%; overflow-y: auto; }
body { margin: 0; min-width: 0; min-height: 100%; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
#app { min-height: 100vh; min-width: 0; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 20;
  display: flex; flex-direction: column; padding: 22px 14px 16px;
  border-right: 1px solid var(--line); background: #f7fbfa;
}
.brand { padding: 0 6px 22px; }
.brand strong { display: block; overflow: hidden; color: #00685f; font-size: 22px; line-height: 1.2; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.brand span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.primary {
  border: 1px solid var(--primary); border-radius: 5px; color: #fff; background: var(--primary);
  font-weight: 700; letter-spacing: .02em; min-height: 42px; padding: 0 18px; white-space: nowrap;
}
.primary:hover { background: var(--primary-dark); }
.add-candidate { margin-bottom: 22px; font-size: 14px; }
.add-candidate span { font-size: 22px; vertical-align: -1px; }
nav { display: grid; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 13px; width: 100%; min-height: 46px;
  padding: 0 12px; border: 0; border-radius: 5px; color: #1a2927; background: transparent;
  text-align: left; font-size: 14px; letter-spacing: 0; white-space: nowrap;
}
.nav-item span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item:hover { background: var(--soft-2); }
.nav-item.active { color: #185f55; background: var(--mint); }
.nav-icon { width: 24px; text-align: center; font-size: 21px; }
.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.user-card { display: flex; align-items: center; gap: 10px; margin: 10px 10px 8px; }
.user-card b, .user-card small { display: block; }
.user-card b { font-size: 13px; }.user-card small { color: var(--muted); font-size: 10px; }
.avatar {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px;
  border-radius: 50%; color: white; background: #0d9488; font-size: 12px; font-weight: 800;
}
.avatar.dark { background: #183331; }
.app-main { min-width: 0; min-height: 100vh; margin-left: var(--sidebar); }
.topbar {
  position: sticky; top: 0; z-index: 15; height: 68px; display: flex; align-items: center; gap: 10px;
  min-width: 0; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(247,251,250,.96); backdrop-filter: blur(10px);
}
.product-name { overflow: hidden; flex: 0 1 160px; color: #00685f; font-size: 18px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.project-select { flex: 0 1 170px; max-width: 170px; min-width: 140px; }
.operator-name { width: 132px; min-width: 110px; }
.hr-user-select { width: 178px; min-width: 150px; }
.current-user { display: grid; gap: 2px; min-width: 160px; max-width: 230px; line-height: 1.2; }
.current-user b, .current-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.current-user b { font-size: 12px; color: var(--text); }
.current-user small { color: var(--muted); font-size: 10px; }
.search {
  display: flex; align-items: center; gap: 8px; flex: 1 1 300px; min-width: 120px; max-width: 420px; height: 40px;
  padding: 0 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft);
}
.search span { font-size: 28px; color: var(--muted); transform: rotate(-20deg); }
.search input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 15px; }
.clear-search { display: none; width: 24px; height: 24px; border: 0; border-radius: 50%; color: var(--muted); background: #dfe8e5; font-size: 17px; line-height: 1; }
.clear-search.show { display: inline-grid; place-items: center; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.top-actions .secondary { white-space: nowrap; }
.compact { min-height: 36px; padding: 0 13px; white-space: nowrap; }
.more-actions { position: relative; flex: 0 0 auto; }
.more-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  display: none; min-width: 150px; padding: 8px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.14);
}
.more-actions.open .more-menu { display: grid; gap: 8px; }
.more-menu .secondary { width: 100%; justify-content: flex-start; }
.icon-btn { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; font-size: 21px; }
.icon-btn:hover { background: var(--soft-2); }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 22px; }
.content { min-width: 0; padding: 22px 20px 42px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head h1 { margin: 0; color: #063f39; font-size: 24px; }
.page-head p { margin: 5px 0 0; color: var(--muted); }
.button-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.import-head { margin-bottom: 12px; }
.path-text { overflow-wrap: anywhere; word-break: break-word; }
.import-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field, .secondary {
  height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 4px;
  color: var(--text); background: #fff;
}
.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; }
.secondary:hover { border-color: var(--primary); color: var(--primary); }
.card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.card-pad { padding: 20px; }
.card-title { margin: 0 0 18px; font-size: 19px; }
.skeleton-page { display: grid; gap: 18px; }
.skeleton-line {
  overflow: hidden;
  height: 16px;
  max-width: 520px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e5eeeb 0%, #f5faf8 45%, #e5eeeb 90%);
  background-size: 220% 100%;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
}
.skeleton-line.title { width: min(360px, 70vw); height: 30px; }
.skeleton-line.subtitle { width: min(520px, 80vw); }
.skeleton-line.short { width: min(240px, 55vw); }
.skeleton-card, .skeleton-panel, .skeleton-detail {
  min-height: 180px;
  background: linear-gradient(90deg, #edf5f2 0%, #fff 45%, #edf5f2 90%);
  background-size: 220% 100%;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
}
.skeleton-panel { min-height: 320px; }
.skeleton-detail { display: grid; align-content: start; gap: 14px; }
@keyframes skeleton-pulse {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stat-card { min-height: 116px; padding: 18px; }
.stat-card span { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .05em; }
.stat-card strong { display: block; margin: 12px 0; color: var(--primary); font-size: 29px; }
.mini-progress, .progress { overflow: hidden; height: 5px; border-radius: 20px; background: #d6e3df; }
.mini-progress i, .progress i { display: block; height: 100%; background: var(--primary); }
.dashboard-main { grid-template-columns: minmax(320px, .85fr) minmax(420px, 1.15fr); margin-top: 18px; }
.project-file { margin: 24px 0; padding: 18px; border-radius: 8px; background: var(--soft); }
.project-file b { display: block; margin-bottom: 14px; }
.metric-row { grid-template-columns: repeat(3, 1fr); }
.metric { padding: 16px; border-radius: 8px; background: var(--mint-soft); text-align: center; }
.metric strong { display: block; font-size: 24px; }
.quick-actions { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
.quick-action { min-height: 88px; justify-content: flex-start; font-size: 15px; }
.funnel { display: grid; gap: 14px; }
.funnel-row { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; }
.funnel-row > span { color: var(--muted); text-align: right; font-size: 13px; }
.funnel-bar { display: flex; justify-content: space-between; min-width: 100px; padding: 12px 15px; border-radius: 4px; background: #c9ece7; font-weight: 700; }
.alerts { margin-top: 20px; }
.alert-item { padding: 17px; border: 1px solid #dce5e2; border-radius: 8px; }
.alert-item strong, .alert-item span { display: block; }.alert-item span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.section-actions { margin-top: 12px; color: var(--primary); font-size: 13px; font-weight: 700; }
.split-upload { grid-template-columns: 1.35fr .95fr; }
.drop-zone { display: grid; place-items: center; min-height: 260px; border: 2px dashed var(--line); text-align: center; }
.drop-zone.dragging { border-color: var(--primary); background: var(--mint-soft); }
.drop-zone-content { width: min(560px, calc(100% - 32px)); }
.drop-zone .upload-icon { font-size: 46px; color: var(--primary); }
.drop-zone h3 { margin: 10px 0 4px; }.drop-zone p { color: var(--muted); }
.upload-file-summary {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #9fd7c8;
  border-radius: 8px;
  background: #f1fbf8;
  text-align: left;
}
.upload-file-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.upload-file-summary-head strong { color: var(--primary-dark); font-size: 13px; }
.upload-file-summary-head span { color: var(--muted); font-size: 11px; }
.upload-file-list { display: grid; gap: 5px; }
.upload-file-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; font-size: 12px; }
.upload-file-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-item small, .upload-file-more { flex: 0 0 auto; color: var(--muted); }
.mini-remove { flex: 0 0 auto; width: 22px; height: 22px; border: 0; border-radius: 50%; color: var(--danger); background: #ffe8e5; font-weight: 800; }
.analysis-status .progress { height: 13px; margin: 16px 0 28px; }
.status-dot { color: var(--primary); font-weight: 700; }
.summary-numbers { grid-template-columns: repeat(4, 1fr); padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.summary-numbers span, .summary-numbers strong { display: block; }.summary-numbers span { color: var(--muted); }.summary-numbers strong { font-size: 25px; }
.data-card { overflow: hidden; margin-top: 20px; }
.data-card-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: var(--soft); }
.table-wrap { overflow-x: auto; max-width: 100%; }
table { width: 100%; min-width: 980px; border-collapse: collapse; }
th, td { padding: 13px 14px; border-bottom: 1px solid #dce5e2; text-align: left; vertical-align: middle; white-space: nowrap; }
th { color: var(--muted); background: #f7faf9; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
td { font-size: 14px; line-height: 1.5; }
tbody tr:nth-child(even) { background-color: var(--soft); }
.cell-clamp {
  display: -webkit-box; overflow: hidden; max-width: 280px;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-height: 1.5; white-space: normal;
}
.cell-clamp.wide { max-width: 360px; }
.file-name, .candidate-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.file-name b, .file-name span:last-child, .candidate-cell b, .candidate-cell small {
  overflow: hidden; max-width: 220px; text-overflow: ellipsis; white-space: nowrap;
}
.file-icon { color: var(--primary); font-size: 23px; }
.badge { display: inline-block; padding: 5px 10px; border-radius: 999px; color: #176552; background: var(--mint); font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge.gray { color: #33413e; background: #e1e8e6; }
.badge.red { color: #9e1414; background: var(--danger-soft); }
.badge.orange { color: var(--warning); background: var(--warning-soft); }
.text-action { border: 0; color: var(--primary); background: transparent; font-weight: 700; white-space: nowrap; }
.text-action.danger { color: var(--danger); }
.console {
  height: 360px;
  min-height: 210px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border-radius: 8px;
  color: #8caaa4;
  background: #111514;
  font: 12px/1.75 Consolas, monospace;
  white-space: pre-wrap;
  scrollbar-color: #54736d #1b2826;
  scrollbar-width: thin;
}
.console::-webkit-scrollbar { width: 10px; }
.console::-webkit-scrollbar-track { background: #1b2826; }
.console::-webkit-scrollbar-thumb { border: 2px solid #1b2826; border-radius: 999px; background: #54736d; }
.console::-webkit-scrollbar-thumb:hover { background: #71938c; }
.failure { border-color: #f4b5ae; }.failure .data-card-head { color: var(--danger); background: #fff7f6; }
.filter-card { padding: 16px; }
.filter-card .toolbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.score { display: grid; place-items: center; width: 52px; height: 52px; border: 4px solid var(--mint); border-radius: 14px; color: var(--primary-dark); font-weight: 800; }
.score.medium { border-color: #b7c5c2; color: #33423f; }
.pipeline-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 310px); gap: 18px; overflow-x: auto; padding-bottom: 12px; }
.pipeline-groups { display: grid; gap: 20px; }
.pipeline-group { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfa; }
.pipeline-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 17px 20px; border-bottom: 1px solid var(--line); background: #e9f2ef;
}
.pipeline-group-head h2 { margin: 0; color: #064d45; font-size: 19px; }
.pipeline-group-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.group-count { flex: 0 0 auto; padding: 6px 11px; border-radius: 999px; color: #185f55; background: var(--mint); font-size: 12px; font-weight: 800; }
.pipeline-group-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; padding: 14px; }
.pipeline-col { min-height: 230px; padding: 12px; border-radius: 8px; background: #edf3f1; }
.pipeline-col h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; }
.pipeline-empty { color: var(--muted); text-align: center; font-size: 13px; }
.count { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #dfe7e5; font-size: 13px; }
.candidate-card { margin-bottom: 12px; padding: 18px; border-left: 4px solid var(--primary); border-radius: 5px; background: white; box-shadow: 0 2px 8px rgba(0,0,0,.03); }
.candidate-card h4 { margin: 0 0 8px; font-size: 18px; }.candidate-card p { margin: 0; color: #3f4c49; }
.candidate-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.candidate-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
.workspace > * { min-width: 0; }
.candidate-list { position: sticky; top: 88px; display: grid; gap: 10px; max-height: calc(100vh - 116px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.candidate-detail-pane { min-width: 0; max-height: calc(100vh - 112px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.list-card { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.list-card.active { border: 2px solid var(--primary); }
.list-card h3 { overflow: hidden; margin: 0 0 4px; text-overflow: ellipsis; white-space: nowrap; }
.list-card p { overflow: hidden; margin: 0; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.list-card .candidate-meta { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.candidate-hero { display: flex; align-items: center; gap: 18px; padding: 24px; }
.candidate-hero .avatar { width: 72px; height: 72px; font-size: 20px; }
.candidate-hero h2 { margin: 0 0 7px; }.candidate-hero p { margin: 0; color: var(--muted); }
.candidate-hero .hero-actions { margin-left: auto; }
.ai-summary-grid { display: grid; grid-template-columns: .7fr 1.3fr 1fr 1fr; gap: 12px; margin-top: 14px; }
.ai-summary-card { min-height: 150px; padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.ai-summary-card > span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.ai-summary-card p, .ai-summary-card li, .analysis-copy p { line-height: 1.6; }
.ai-summary-card p { margin: 0; }
.ai-summary-card ul { margin: 0; padding-left: 18px; }
.ai-summary-card li + li { margin-top: 5px; }
.ai-summary-card.score-card { display: flex; flex-direction: column; justify-content: center; align-items: center; border-color: #83cdbb; background: #f1fcf8; }
.ai-summary-card.score-card strong { color: var(--primary-dark); font-size: 42px; line-height: 1; }
.ai-summary-card.score-card small { margin-top: 5px; color: var(--muted); }
.ai-summary-card.highlights { border-color: #9fd7c9; background: #f6fcfa; }
.ai-summary-card.risk { border-color: #e4b59f; background: #fff8f4; }
.ai-summary-card.risk > span, .risk-copy b { color: #91401e; }
.empty-summary { color: var(--muted); }
.candidate-action-bar {
  position: sticky; top: 92px; z-index: 12;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 14px; padding: 14px 16px; border: 1px solid #8bbdb4; border-radius: 10px;
  background: rgba(241, 250, 247, .97); box-shadow: 0 7px 20px rgba(23, 72, 65, .1); backdrop-filter: blur(8px);
}
.candidate-detail-pane .candidate-action-bar { top: 0; }
.action-bar-title { min-width: 170px; }
.action-bar-title span, .action-bar-title b, .action-bar-title small { display: block; }
.action-bar-title span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.action-bar-title b { margin-top: 3px; color: var(--primary-dark); }
.action-bar-title small { margin-top: 4px; max-width: 290px; color: var(--muted); line-height: 1.35; }
.action-bar-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.action-groups { align-items: stretch; gap: 12px; }
.action-group { min-width: 150px; padding-left: 12px; border-left: 1px solid #cfe2dd; }
.action-group > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.action-group > div { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-actions { position: static; margin: 0; border-width: 0 0 1px; border-radius: 0; box-shadow: none; }
.danger-outline { border-color: #d37a72; color: #a51c1c; background: #fffafa; }
.danger-outline:hover { border-color: var(--danger); color: var(--danger); }
.process-strip { display: grid; grid-template-columns: repeat(6, 1fr); margin: 18px 0; padding: 18px; text-align: center; }
.process-strip div { position: relative; color: var(--primary); font-size: 11px; font-weight: 700; }
.process-strip i { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 8px; border: 2px solid var(--primary); border-radius: 12px; background: white; font-style: normal; font-size: 20px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tab { flex: 1; padding: 16px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; font-weight: 600; }
.tab.active { border-color: var(--primary); color: var(--primary-dark); }
.journey { padding: 30px; }
.journey-line {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 24px 14px;
  margin: 28px 0 32px;
  overflow: visible;
}
.journey-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 112px;
  padding: 12px 8px;
  border: 1px solid #dce5e2;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}
.journey-step:before { display: none; }
.journey-step i { display: grid; place-items: center; width: 44px; height: 44px; margin: auto; border-radius: 14px; background: #dce5e2; font-style: normal; }
.journey-step.done { border-color: #9fd7c9; background: #f4fbf8; }
.journey-step.active { border-color: var(--primary); background: #eefaf6; box-shadow: 0 0 0 2px rgba(0,118,108,.08); }
.journey-step.done i { color: white; background: var(--primary); }.journey-step.active i { border: 4px solid var(--mint); background: white; }
.journey-step b, .journey-step small { display: block; margin-top: 7px; line-height: 1.35; }.journey-step small { color: var(--muted); }
.phase { grid-template-columns: 1.1fr .9fr; padding: 24px; background: var(--soft); }
.business-actions, .feedback-summary { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.business-actions h3, .feedback-summary h3 { margin: 0 0 10px; }
.business-actions p, .feedback-summary p { margin: 7px 0; color: var(--muted); line-height: 1.6; }
.department-email-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.department-email-form .wide-field { grid-column: 1 / -1; }
.department-email-form textarea { min-height: 90px; }
.feedback-summary.blocked { border-color: #e6aa78; background: #fff8f1; }
.feedback-summary.ready { border-color: #7bc9b5; background: #f2fcf8; }
.modal.wide { width: min(760px, 100%); }
.interview-layout { grid-template-columns: 360px minmax(580px, 1fr); }
.schedule-list { display: grid; gap: 14px; }
.schedule-card { padding: 20px; }.schedule-card.active { border: 2px solid var(--primary); }
.schedule-card h3 { margin: 0 0 5px; }.schedule-card p { margin: 0; color: var(--muted); }
.interview-detail { overflow: hidden; }
.interview-hero { display: flex; align-items: center; gap: 18px; padding: 28px; border-bottom: 1px solid var(--line); }
.interview-hero h2 { margin: 0 0 5px; }.interview-hero p { margin: 0; color: var(--muted); }
.interview-context { display: grid; gap: 10px; padding: 18px 28px; border-bottom: 1px solid var(--line); background: #f7fbfa; }
.interview-context p { margin: 0; color: var(--muted); line-height: 1.55; }
.evaluation { padding: 28px; }
.score-buttons { display: flex; gap: 8px; }.score-buttons button { width: 42px; height: 45px; border: 1px solid var(--line); background: white; }
.score-buttons button.active { border: 2px solid var(--primary); background: var(--mint); }
.choice-buttons { display: flex; gap: 9px; }.choice-buttons button.active { border: 2px solid var(--primary); background: var(--mint); }
textarea { width: 100%; min-height: 120px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.archive { grid-template-columns: 290px 1fr; margin: -28px -24px -48px; min-height: calc(100vh - 80px); }
.folder-panel { padding: 24px 14px; border-right: 1px solid var(--line); background: var(--soft); }
.folder-panel h2 { margin: 0 0 20px; padding: 0 8px; }
.folder { display: flex; justify-content: space-between; padding: 13px; border-radius: 5px; }.folder.active { color: var(--primary-dark); background: white; }
.archive-main { padding: 22px; }
.archive-mobile-select { display: none; width: 100%; margin-bottom: 14px; }
.config-section { margin-bottom: 22px; padding: 20px; }
.config-section h2 { margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 17px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.form-field label { display: block; margin-bottom: 7px; font-size: 11px; letter-spacing: .04em; }
.form-field input, .form-field select { width: 100%; }
.form-error { padding: 10px 12px; border: 1px solid #efaaa3; border-radius: 6px; color: #8f1111; background: #fff1ef; font-size: 14px; line-height: 1.45; }
.config-table { min-width: 0; }
.config-table td { padding: 14px 12px; }
.sticky-save { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); background: rgba(229,237,234,.96); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; transform: translateY(80px); opacity: 0; max-width: min(560px, calc(100vw - 48px)); padding: 13px 18px; border-radius: 6px; color: white; background: #183331; line-height: 1.55; transition: .25s; }
.toast.error { background: var(--danger); }
.toast.success { background: #176552; }
.toast.show { transform: translateY(0); opacity: 1; }
.login-mode .sidebar, .login-mode .topbar, .login-mode #sidebar-overlay { display: none; }
.login-mode .app-main { margin-left: 0; }
.login-mode .content { min-height: 100vh; padding: 0; }
.login-shell {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    linear-gradient(135deg, rgba(0,104,95,.08), rgba(82,94,127,.08)),
    var(--bg);
}
.login-card {
  width: min(440px, 100%); padding: 32px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
.login-brand { color: var(--primary); font-size: 26px; font-weight: 900; }
.login-card h1 { margin: 12px 0 8px; font-size: 24px; }
.login-card p { margin: 0 0 22px; color: var(--muted); line-height: 1.6; }
.login-button { width: 100%; margin-top: 18px; justify-content: center; }
.error-banner { margin-bottom: 18px; padding: 12px 16px; border: 1px solid #efaaa3; border-radius: 6px; color: #8f1111; background: #fff1ef; }
.danger-note { margin: 12px 0 16px; padding: 12px 14px; border: 1px solid #e5a39c; border-radius: 6px; color: #8f1111; background: #fff1ef; line-height: 1.5; }
.danger-button { border-color: var(--danger); background: var(--danger); }
.danger-button:hover { background: #93000a; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(10,30,27,.45); }
.modal {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(520px, 100%); max-height: calc(100vh - 40px);
  padding: 22px 22px 0; border-radius: 12px; background: white;
  box-shadow: 0 20px 50px rgba(0,0,0,.2); overflow-y: auto;
}
.modal h2 { margin-top: 0; }
.modal-actions {
  position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px;
  margin: 20px -22px 0; padding: 14px 22px; border-top: 1px solid var(--line);
  background: #fff;
}
.advanced-filters { margin-top: 12px; }
.advanced-filters summary { cursor: pointer; color: var(--primary-dark); font-weight: 700; }
.talent-filter-grid { grid-template-columns: repeat(4, minmax(160px, 1fr)); margin-top: 14px; }
.talent-detail-grid { display: grid; gap: 16px; }
.talent-detail-section { padding: 16px; }
.talent-detail-section .table-wrap + .table-wrap { margin-top: 12px; }
.talent-drawer-backdrop {
  z-index: 60; display: block; padding: 0; background: rgba(10, 30, 27, .28);
  backdrop-filter: blur(2px);
}
@keyframes talentDrawerIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.talent-drawer {
  position: fixed; top: 0; right: 0; width: min(980px, 60vw); height: 100vh;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  border-left: 1px solid var(--line); background: var(--bg);
  box-shadow: -10px 0 30px rgba(0,0,0,.08); animation: talentDrawerIn .28s cubic-bezier(.4,0,.2,1);
}
.talent-drawer-header {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fff;
}
.drawer-close {
  width: 36px; height: 36px; border: 0; border-radius: 999px; color: var(--muted);
  background: transparent; font-size: 26px; line-height: 1; cursor: pointer;
}
.drawer-close:hover { color: var(--text); background: var(--mint); }
.drawer-avatar {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 999px;
  color: #fff; background: var(--primary); font-weight: 800;
}
.drawer-title-block { min-width: 0; }
.drawer-title-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.drawer-title-line h2 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 24px; }
.drawer-title-block p { margin: 4px 0 0; color: var(--muted); }
.drawer-header-actions { display: flex; justify-content: flex-end; gap: 10px; }
.talent-drawer-body {
  overflow-y: auto; padding: 18px 22px 24px; background: rgba(236, 242, 240, .65);
}
.talent-drawer-body::-webkit-scrollbar { width: 6px; }
.talent-drawer-body::-webkit-scrollbar-track { background: transparent; }
.talent-drawer-body::-webkit-scrollbar-thumb { background: #bdc9c6; border-radius: 999px; }
.talent-drawer-hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.drawer-score-card, .drawer-ai-card, .talent-drawer-section {
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.drawer-score-card {
  position: relative; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px; overflow: hidden;
}
.drawer-score-card::before {
  content: "AI 智能评估"; position: absolute; top: 12px; right: 12px;
  padding: 3px 8px; border-radius: 999px; color: #3432a7; background: #e1e0ff; font-size: 11px; font-weight: 800;
}
.drawer-score-card span, .drawer-ai-card span {
  color: var(--muted); font-size: 12px; font-weight: 800;
}
.drawer-score-card strong { margin-top: 12px; color: var(--primary); font-size: 44px; line-height: 1; }
.drawer-score-card small { margin-top: 8px; color: var(--muted); font-weight: 700; }
.drawer-ai-card { padding: 18px; }
.drawer-ai-card p { margin: 10px 0 0; color: var(--text); line-height: 1.65; }
.talent-drawer .talent-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.talent-drawer-section { padding: 16px; }
.drawer-section-wide { grid-column: 1 / -1; }
.talent-drawer-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.talent-drawer-section-head h3 { margin: 0; font-size: 16px; }
.drawer-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.drawer-field { min-width: 0; padding: 10px 12px; border-radius: 6px; background: var(--mint); }
.drawer-field span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 800; }
.drawer-field b { display: block; overflow-wrap: anywhere; color: var(--text); font-size: 13px; line-height: 1.45; }
.drawer-table .cell-clamp { max-height: none; -webkit-line-clamp: unset; }
.talent-drawer-footer {
  display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px;
  border-top: 1px solid var(--line); background: rgba(255,255,255,.96);
}
.sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 18; background: rgba(10,30,27,.42); }
.sidebar-overlay.show { display: block; }
@media (max-width: 1150px) {
  .stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .talent-filter-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .dashboard-main, .split-upload, .interview-layout { grid-template-columns: 1fr; }
  .workspace { grid-template-columns: 280px minmax(0, 1fr); overflow: visible; }
  .ai-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .candidate-action-bar { align-items: flex-start; flex-direction: column; }
  .action-bar-buttons { justify-content: flex-start; }
  .talent-drawer { width: min(760px, 82vw); }
  .talent-drawer-hero, .talent-drawer .talent-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --sidebar: 250px; }
  .sidebar { transform: translateX(-100%); transition: .25s; box-shadow: 8px 0 24px rgba(0,0,0,.12); }
  .sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .mobile-menu { display: block; }
  .product-name { display: none; }
  .project-select { max-width: 130px; }
  .operator-name { width: 112px; }
  .hr-user-select, .current-user { display: none; }
  .topbar { height: auto; min-height: 68px; flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .search { width: 100%; }
  .top-actions .icon-btn, .top-actions .avatar { display: none; }
  .top-actions .secondary { display: none; }
  .talent-drawer { width: 100vw; }
  .talent-drawer-header { grid-template-columns: auto auto minmax(0, 1fr); }
  .drawer-header-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .drawer-field-grid { grid-template-columns: 1fr; }
  .content { padding: 20px 14px 38px; }
  .grid-2, .grid-3, .grid-4, .stats, .form-grid, .phase { grid-template-columns: 1fr; }
  .department-email-form { grid-template-columns: 1fr; }
  .department-email-form .wide-field { grid-column: auto; }
  .filter-card .toolbar { grid-template-columns: 1fr; }
  .workspace, .archive { grid-template-columns: 1fr; margin: 0; }
  .candidate-list { position: static; max-height: none; overflow-y: visible; padding-right: 0; }
  .candidate-detail-pane { max-height: none; overflow-y: visible; padding-right: 0; }
  .archive .folder-panel { display: none; }
  .archive-mobile-select { display: block; }
  .candidate-hero { align-items: flex-start; flex-wrap: wrap; }
  .candidate-hero .hero-actions { margin-left: 0; }
  .ai-summary-grid { grid-template-columns: 1fr; }
  .candidate-action-bar { top: 76px; }
  .candidate-detail-pane .candidate-action-bar { top: 76px; }
  .pipeline-group-head { align-items: flex-start; }
  .pipeline-group-board { grid-template-columns: 1fr; }
  .process-strip { overflow-x: auto; grid-template-columns: repeat(6, 100px); }
  .sticky-save { flex-wrap: wrap; align-items: stretch; }
  .sticky-save span { flex-basis: 100%; }
  .console { height: 300px; }
}
