:root {
  --navy: #10223f;
  --navy-2: #1a3359;
  --ink: #18263a;
  --muted: #718096;
  --line: #e7ebf1;
  --paper: #f6f8fb;
  --white: #ffffff;
  --mint: #d8f6ec;
  --green: #168c6d;
  --blue: #4263eb;
  --amber: #d58a19;
  --red: #d9534f;
  --shadow: 0 16px 38px rgba(16, 34, 63, .08);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 244px; background: var(--navy); color: #dbe6f7; padding: 28px 18px 20px; display: flex; flex-direction: column; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 34px; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--navy); background: var(--mint); font-weight: 800; font-size: 20px; }
.brand strong { display: block; font-size: 15px; letter-spacing: .02em; color: white; }
.brand span { display: block; margin-top: 4px; color: #91a5c4; font-size: 11px; }
.nav { display: grid; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 12px; border: 0; border-radius: 10px; padding: 12px 14px; color: #9fb1cd; background: transparent; text-align: left; font-size: 14px; transition: .18s ease; }
.nav-item:hover, .nav-item.active { background: var(--navy-2); color: white; }
.nav-item span { width: 17px; color: #91d8c3; font-size: 16px; text-align: center; }
.sidebar-note { margin-top: auto; display: flex; gap: 9px; align-items: center; padding: 13px 10px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 12px; color: #d8e7f6; }
.sidebar-note small { margin-top: 3px; font-size: 10px; color: #7e96b6; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #45d5a9; box-shadow: 0 0 0 4px rgba(69,213,169,.12); }

.main-content { width: calc(100% - 244px); max-width: 1500px; padding: 30px 42px 60px; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 30px; letter-spacing: -.03em; }
h2 { margin-bottom: 0; font-size: 22px; letter-spacing: -.02em; }
h3 { margin-bottom: 8px; font-size: 16px; }
.topbar-actions { display: flex; gap: 10px; }
.user-chip { display: flex; align-items: center; padding: 0 10px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.primary-btn, .ghost-btn, .danger-btn, .small-btn { border-radius: 9px; padding: 10px 15px; border: 1px solid transparent; font-size: 13px; font-weight: 700; }
.primary-btn { background: var(--navy); color: white; box-shadow: 0 8px 18px rgba(16,34,63,.14); }
.primary-btn:hover { background: #1c3b69; }
.ghost-btn, .small-btn { background: white; color: var(--navy); border-color: var(--line); }
.ghost-btn:hover, .small-btn:hover { border-color: #bfc9d8; }
.danger-btn { background: #fff0ef; color: var(--red); border-color: #ffd6d2; }
.small-btn { padding: 7px 10px; font-size: 12px; }
.icon-btn { border: 0; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; }

.view { display: none; }
.active-view { display: block; }
.hero { border-radius: 18px; background: linear-gradient(116deg, #132b50, #264d7f); padding: 28px 30px; color: white; display: flex; justify-content: space-between; align-items: center; gap: 20px; box-shadow: var(--shadow); }
.hero h2 { font-size: 27px; max-width: 620px; line-height: 1.25; }
.hero p { margin: 10px 0 0; color: #c5d5e9; font-size: 13px; line-height: 1.7; max-width: 650px; }
.hero .primary-btn { background: var(--mint); color: var(--navy); }
.hero-orbit { min-width: 130px; height: 130px; border-radius: 50%; border: 1px solid rgba(216,246,236,.22); display: grid; place-items: center; position: relative; }
.hero-orbit::after { content: ""; width: 70px; height: 70px; border-radius: 50%; background: rgba(216,246,236,.12); border: 1px solid rgba(216,246,236,.32); }
.hero-orbit span { position: absolute; z-index: 1; color: var(--mint); font-size: 27px; font-weight: 800; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.stat-card, .panel, .list-card { background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 12px rgba(16,34,63,.025); }
.stat-card { padding: 17px 18px; }
.stat-card .label { color: var(--muted); font-size: 12px; }
.stat-card .value { display: block; margin-top: 11px; font-size: 27px; font-weight: 800; letter-spacing: -.04em; }
.stat-card .hint { margin-top: 4px; color: var(--green); font-size: 11px; }
.grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.panel { padding: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 16px; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.section-title { margin: 30px 0 15px; display: flex; justify-content: space-between; align-items: center; }
.section-title h2 { font-size: 19px; }
.section-title p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.list { display: grid; gap: 10px; }
.list-card { padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.list-card:hover { border-color: #c6d1e2; }
.list-main strong { display: block; font-size: 14px; }
.list-main small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.list-end { display: flex; align-items: center; gap: 12px; }
.badge { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 6px; background: #eef3ff; color: var(--blue); font-size: 10px; font-weight: 800; white-space: nowrap; }
.badge.green { background: #e8faf4; color: var(--green); }
.badge.amber { background: #fff6e8; color: var(--amber); }
.badge.gray { background: #f0f2f5; color: #6d7786; }
.empty { padding: 42px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.empty strong { display: block; color: var(--ink); margin-bottom: 6px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 16px; }
.search { width: 260px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: white; outline: none; font-size: 13px; }
.search:focus, textarea:focus, input:focus, select:focus { border-color: #7c95d7; box-shadow: 0 0 0 3px rgba(66,99,235,.1); }
.split-view { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; }
.side-list { display: grid; gap: 9px; }
.select-card { width: 100%; padding: 14px; border: 1px solid var(--line); background: white; border-radius: 12px; text-align: left; }
.select-card.active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(66,99,235,.08); }
.select-card strong { display: block; font-size: 13px; }
.select-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12px; font-weight: 700; color: #526176; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: #fbfcfe; color: var(--ink); border-radius: 8px; padding: 10px 11px; outline: none; font-size: 13px; }
textarea { min-height: 108px; resize: vertical; line-height: 1.6; }
.form-help { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(11,24,43,.54); display: grid; place-items: center; padding: 20px; }
.hidden { display: none !important; }
.modal { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: white; border-radius: 17px; padding: 24px; box-shadow: 0 22px 70px rgba(0,0,0,.22); }
.modal-head { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.toast { position: fixed; z-index: 30; right: 25px; bottom: 25px; background: var(--navy); color: white; border-radius: 9px; padding: 12px 16px; font-size: 13px; box-shadow: var(--shadow); }
.auth-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 25% 20%, #264d7f 0, #10223f 45%, #09162a 100%); }
.auth-card { width: min(420px, 100%); padding: 34px; border-radius: 18px; background: white; box-shadow: 0 28px 90px rgba(0,0,0,.34); }
.auth-card .brand-mark { margin-bottom: 24px; }
.auth-card h1 { font-size: 25px; }
.auth-copy { margin: 9px 0 24px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.auth-card form { display: grid; gap: 15px; }
.auth-submit { width: 100%; margin-top: 4px; padding: 12px; }
.auth-error { margin: -4px 0 0; padding: 9px 11px; color: var(--red); background: #fff1f0; border-radius: 7px; font-size: 11px; }

.interview-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.interview-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 19px; }
.question-card { padding: 15px 0; border-top: 1px solid var(--line); }
.question-card:first-child { border-top: 0; padding-top: 0; }
.question-number { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--navy); color: white; font-size: 11px; font-weight: 800; margin-right: 8px; }
.question-title { font-size: 14px; font-weight: 750; line-height: 1.6; }
.question-meta { margin: 8px 0 0 32px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.question-meta strong { color: #50657d; }
.recording-box { background: #f8fafc; border: 1px dashed #cbd6e5; border-radius: 12px; padding: 17px; margin-top: 14px; }
.consent-check { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #465a73; font-size: 11px; font-weight: 700; }
.consent-check input { width: auto; }
.recording-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.recording-status.live { color: var(--red); }
.recording-dot { width: 9px; height: 9px; border-radius: 50%; background: #b6c0cc; }
.recording-status.live .recording-dot { background: var(--red); box-shadow: 0 0 0 5px rgba(217,83,79,.12); }
.recording-actions { display: flex; gap: 9px; margin-top: 13px; }
.transcript { min-height: 112px; margin-top: 13px; background: white; }
.score-table { display: grid; gap: 9px; }
.score-row { display: grid; grid-template-columns: 1fr 130px 38px; align-items: center; gap: 12px; font-size: 12px; }
.score-row input[type="range"] { padding: 0; accent-color: var(--blue); }
.score-value { color: var(--blue); font-weight: 800; text-align: right; }
.report-box { margin-top: 18px; padding: 14px; border-radius: 10px; background: #f5f8ff; color: #3e506a; font-size: 12px; line-height: 1.7; }
.report-box strong { color: var(--navy); }
.evaluation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.evaluation-grid .report-box { margin-top: 12px; }
.evaluation-grid ul { margin: 7px 0 0; padding-left: 18px; }
.notice { padding: 11px 13px; border-radius: 9px; background: #fff7e8; color: #875f22; font-size: 11px; line-height: 1.6; }
.candidate-head { display: flex; gap: 12px; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #e9efff; color: var(--blue); display: grid; place-items: center; font-weight: 800; }
.candidate-head strong { display: block; font-size: 14px; }
.candidate-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.meter { height: 7px; border-radius: 10px; background: #e9edf3; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5c78e8, #61c6a9); }

@media (max-width: 1050px) {
  .sidebar { width: 200px; }
  .main-content { width: calc(100% - 200px); padding: 25px; }
  .split-view, .interview-grid, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; padding: 15px; }
  .brand { padding-bottom: 16px; }
  .nav { grid-template-columns: repeat(5, 1fr); }
  .nav-item { justify-content: center; padding: 9px 5px; font-size: 11px; gap: 5px; }
  .nav-item span { display: none; }
  .sidebar-note { display: none; }
  .main-content { width: 100%; padding: 20px 15px 40px; }
  .topbar { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .topbar-actions { width: 100%; }
  .topbar-actions button { flex: 1; }
  h1 { font-size: 26px; }
  .hero { padding: 22px; }
  .hero-orbit { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .list-card { align-items: flex-start; flex-direction: column; }
  .list-end { width: 100%; justify-content: space-between; }
}
