@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* HR-кабинет «Вы Дома» — стили */

:root {
  --brand: #1F4A8F;
  --brand-dark: #1e3f6e;
  --brand-light: #e8eef8;
  --accent: #4a7fcb;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --green: #2d9c45;
  --green-light: #e6f5ea;
  --yellow: #e0a000;
  --yellow-light: #fef8e6;
  --red: #c0392b;
  --red-light: #fdecea;
  --blue-light: #eaf0fb;
  --radius: 10px;
  --radius-sm: 6px;
  --gold: #B8922A;
  --shadow: 0 2px 12px rgba(31,74,143,0.10);
  --shadow-md: 0 6px 24px rgba(31,74,143,0.14);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
  min-height: 100vh;
}

/* Typography */
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

/* Nav */
.nav {
  background: var(--brand);
  color: var(--white);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: background 0.15s;
}

.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  text-decoration: none;
}

.nav-user {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-left: auto;
}

.nav-logout {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: var(--radius-sm) !important;
}

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 1.5rem 1rem; }

.page-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.page-header h1 { flex: 1; min-width: 0; }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.card-header {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}
.btn-primary:hover { background: var(--brand-dark); color: var(--white); text-decoration: none; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
}
.btn-outline:hover { background: var(--gray-100); text-decoration: none; }

.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Decision colors */
.decision-hire   { background: var(--green-light); color: var(--green); }
.decision-think  { background: var(--yellow-light); color: var(--yellow); }
.decision-no     { background: var(--red-light); color: var(--red); }
.decision-pending { background: var(--gray-100); color: var(--gray-600); }

/* Status badges */
.status-new           { background: var(--gray-100); color: var(--gray-600); }
.status-prescreening  { background: #e8f4fb; color: #1a6fa8; }
.status-interview     { background: #e8eef8; color: var(--brand); }
.status-test          { background: #f5e8fb; color: #7b2d8b; }
.status-offer         { background: var(--yellow-light); color: var(--yellow); }
.status-hired         { background: var(--green-light); color: var(--green); }
.status-rejected      { background: var(--red-light); color: var(--red); }
.status-left          { background: var(--gray-100); color: var(--gray-500); }

/* Score cells */
.score-cell {
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
}
.score-high  { color: var(--green); }
.score-mid   { color: var(--yellow); }
.score-low   { color: var(--red); }
.score-none  { color: var(--gray-400); }

/* Filters bar */
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  align-items: center;
}

.filters input, .filters select {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
}

.filters input:focus, .filters select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.875rem;
}

thead th {
  background: var(--gray-50);
  padding: 0.75rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-600);
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}

tbody tr { transition: background 0.1s; }
tbody tr:hover { background: var(--gray-50); }

tbody td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }

.td-name { font-weight: 600; }
.td-name a { color: var(--gray-900); }
.td-name a:hover { color: var(--brand); text-decoration: none; }

/* Competency grid */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.comp-item {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.comp-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-bottom: 0.3rem;
}

.comp-score {
  font-size: 1.5rem;
  font-weight: 700;
}

.comp-weight {
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-top: 0.1rem;
}

/* Score block */
.score-block {
  background: var(--brand-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1rem;
}

.score-total {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.score-decision {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  display: inline-block;
}

/* Detail grid */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.5rem 1rem;
}

.detail-item { padding: 0.4rem 0; }
.detail-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.detail-value {
  font-size: 0.9rem;
  color: var(--gray-900);
  margin-top: 0.15rem;
}

/* Form elements in card */
.form-group { margin-bottom: 0.75rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.3rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.form-group textarea { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

/* JSON display */
.json-block {
  background: var(--gray-900);
  color: #e8e8e8;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  overflow-x: auto;
  white-space: pre-wrap;
  max-height: 300px;
  overflow-y: auto;
}

/* Text block */
.text-block {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  max-height: 250px;
  overflow-y: auto;
  border-left: 3px solid var(--gray-300);
}

/* Interview page */
.interview-header {
  position: sticky;
  top: 56px;
  z-index: 90;
  background: var(--white);
  border-bottom: 2px solid var(--brand);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.interview-header-name {
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
}

.timer {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand);
  min-width: 60px;
  text-align: center;
}

.recording-dot {
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.question-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--brand);
}

.question-block.case-block {
  border-left-color: var(--yellow);
  background: #fffdf5;
}

.question-code {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 0.3rem;
}

.case-block .question-code { color: var(--yellow); }

.question-competency {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.question-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.listen-for {
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.listen-for-label {
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.2rem;
}

.case-block .listen-for { background: #fef9e6; }
.case-block .listen-for-label { color: var(--yellow); }

.question-note {
  width: 100%;
  min-height: 88px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  resize: vertical;
  background: var(--gray-50);
}
.question-note:focus {
  outline: 2px solid var(--brand);
  background: var(--white);
}

.case-questions {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}
.case-questions li {
  font-size: 0.9rem;
  color: var(--gray-800);
  margin-bottom: 0.3rem;
}

.interview-finish {
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  z-index: 80;
}

/* Login page */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
}

.login-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
}

.login-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand);
}

.login-logo-sub {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.error-msg {
  background: var(--red-light);
  color: var(--red);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 3px solid var(--brand);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.2rem;
}

/* Section titles on candidate page */
.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* Two-col layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-user { display: none; }
  .nav-logo { font-size: 1rem; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  table { font-size: 0.8rem; }
  thead th, tbody td { padding: 0.5rem 0.5rem; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .interview-header { top: 0; }
  .comp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Focus visible — accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* HTMX loading */
.htmx-request .htmx-indicator { display: inline; }
.htmx-indicator { display: none; }

/* ------------------------------------------------------------------ */
/* Accordion: details / summary                                         */
/* ------------------------------------------------------------------ */

.accordion {
  margin-bottom: 0.6rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  background: var(--gray-100);
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-800);
  transition: background 0.15s;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::before {
  content: '▶';
  font-size: 0.65rem;
  color: var(--gray-500);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.accordion[open] > summary {
  background: var(--brand-light);
  color: var(--brand);
  border-bottom: 1px solid var(--gray-200);
}

.accordion[open] > summary::before {
  transform: rotate(90deg);
  color: var(--brand);
}

.accordion summary:hover { background: var(--gray-200); }
.accordion[open] > summary:hover { background: var(--brand-light); }

.accordion-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: auto;
}
.accordion-status.filled  { background: var(--green); }
.accordion-status.empty   { background: var(--gray-300); }

.accordion-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.accordion-body {
  background: var(--white);
  padding: 1.1rem 1.25rem;
}

/* Candidate header card */
.candidate-header-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.candidate-header-card h1 { font-size: 1.4rem; }

.candidate-header-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.candidate-header-contact {
  font-size: 0.85rem;
  color: var(--gray-600);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.candidate-header-score {
  text-align: center;
  min-width: 110px;
}

.candidate-header-score .score-big {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
}

/* Guide / reference pages */
.guide-page { max-width: 900px; margin: 0 auto; }

.guide-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.guide-section h2 {
  color: var(--brand);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.guide-section h3 {
  color: var(--gray-700);
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
}

.guide-section p, .guide-section li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-800);
}

.guide-section ul, .guide-section ol {
  padding-left: 1.4rem;
  margin: 0.5rem 0;
}

.guide-section li { margin-bottom: 0.3rem; }

.guide-section table {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.guide-section thead th {
  background: var(--brand-light);
  color: var(--brand);
}

.guide-section .script-block {
  background: var(--gray-50);
  border-left: 3px solid var(--brand);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.87rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--gray-800);
  margin: 0.5rem 0;
  white-space: pre-wrap;
}

/* Competency cards */
.comp-ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.comp-ref-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.comp-ref-header {
  background: var(--brand);
  color: var(--white);
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comp-ref-header .weight {
  font-size: 0.75rem;
  opacity: 0.8;
}

.comp-ref-anchors {
  padding: 0.75rem;
}

.comp-ref-anchor {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.8rem;
  line-height: 1.4;
}

.comp-ref-anchor:last-child { border-bottom: none; }

.anchor-level {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--white);
}

.level-1 { background: var(--red); }
.level-2 { background: #e07020; }
.level-3 { background: var(--yellow); }
.level-4 { background: #60a830; }
.level-5 { background: var(--green); }

/* Flags page */
.flags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 680px) { .flags-grid { grid-template-columns: 1fr; } }

.flags-col { border-radius: var(--radius); overflow: hidden; }

.flags-col-header {
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}

.flags-col-header.red-header   { background: var(--red); }
.flags-col-header.green-header { background: var(--green); }

.flags-section {
  background: var(--white);
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-top: none;
}

.flags-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

.flag-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  line-height: 1.4;
  border-bottom: 1px solid var(--gray-100);
}

.flag-item:last-child { border-bottom: none; }

.flag-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.35rem;
}

.flag-dot.red   { background: var(--red); }
.flag-dot.green { background: var(--green); }

/* Scorecard page */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.outcome-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.outcome-code {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
  margin-bottom: 0.3rem;
}

.outcome-target {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
}

.outcome-detail {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.15rem;
}

.ref-questions-list {
  list-style: none;
  padding: 0;
}

.ref-q-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.87rem;
  line-height: 1.5;
}

.ref-q-item:last-child { border-bottom: none; }

.ref-q-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Candidate accordion sections specific */
.ai-scores-table th { font-size: 0.75rem; }
.ai-scores-table td { vertical-align: top; font-size: 0.82rem; }
.quote-row td { font-style: italic; color: var(--gray-600); background: var(--gray-50); font-size: 0.8rem; }

/* Mobile nav scroll */
@media (max-width: 900px) {
  .nav-links { overflow-x: auto; }
  .nav-links a { white-space: nowrap; padding: 0.4rem 0.6rem; font-size: 0.82rem; }
}

/* Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-muted { color: var(--gray-500); font-size: 0.85rem; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }

/* ------------------------------------------------------------------ */
/* Неоморфизм — кликабельные элементы                                  */
/* ------------------------------------------------------------------ */

:root {
  --neo-bg: #f0f0f3;
  --neo-shadow-dark: #d1d1d4;
  --neo-shadow-light: #ffffff;

  /* v7.5 design system */
  --bg-dark: #0A0A0A;
  --bg-light: #F0EFF4;
  --v75-white: #FAFAFA;
  --v75-gray: #8A8898;
  --v75-gold: #C8A86E;
  --v75-gold-dark: #A68B4B;
  --v75-gold-light: #D4B978;
  --border-v2: rgba(10,10,10,0.1);
}

.neo-btn,
.neo-link,
.neo-stat {
  background: var(--neo-bg);
  border-radius: 12px;
  box-shadow: 6px 6px 12px var(--neo-shadow-dark), -6px -6px 12px var(--neo-shadow-light);
  transition: box-shadow 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.neo-btn:hover,
.neo-link:hover,
.neo-stat:hover {
  box-shadow: 4px 4px 8px var(--neo-shadow-dark), -4px -4px 8px var(--neo-shadow-light);
  text-decoration: none;
}

.neo-btn:active,
.neo-link:active {
  box-shadow: inset 4px 4px 8px var(--neo-shadow-dark), inset -4px -4px 8px var(--neo-shadow-light);
  transform: scale(0.98);
}

/* Активная статплашка — вдавленная */
.neo-stat.active {
  box-shadow: inset 4px 4px 8px var(--neo-shadow-dark), inset -4px -4px 8px var(--neo-shadow-light);
}

/* Неоморфные ФИО в таблице */
.td-name-neo a {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  box-shadow: 3px 3px 7px var(--neo-shadow-dark), -3px -3px 7px var(--neo-shadow-light);
  background: var(--neo-bg);
  color: var(--gray-900);
  font-weight: 600;
  transition: box-shadow 0.2s;
}

.td-name-neo a:hover {
  box-shadow: 2px 2px 5px var(--neo-shadow-dark), -2px -2px 5px var(--neo-shadow-light);
  color: var(--brand);
  text-decoration: none;
}

/* Неоморфные статплашки дашборда */
.stat-card.neo-stat {
  padding: 0.9rem 1rem;
}

/* ------------------------------------------------------------------ */
/* Фильтр-плашки дашборда                                              */
/* ------------------------------------------------------------------ */

.stat-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-filter-card {
  background: var(--neo-bg);
  border-radius: 12px;
  box-shadow: 6px 6px 12px var(--neo-shadow-dark), -6px -6px 12px var(--neo-shadow-light);
  padding: 0.9rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
  user-select: none;
  border: 2px solid transparent;
  border-top: 3px solid var(--brand);
}

.stat-filter-card:hover {
  box-shadow: 4px 4px 8px var(--neo-shadow-dark), -4px -4px 8px var(--neo-shadow-light);
  transform: translateY(-2px);
}

.stat-filter-card.active {
  box-shadow: inset 4px 4px 8px var(--neo-shadow-dark), inset -4px -4px 8px var(--neo-shadow-light);
  border-color: var(--brand);
}

.stat-filter-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand);
}

.stat-filter-card .stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.2rem;
}

/* ------------------------------------------------------------------ */
/* v7.5 Typography utilities                                            */
/* ------------------------------------------------------------------ */

.t-condensed {
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 700;
  font-stretch: 50%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.t-wide {
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 900;
  font-stretch: 130%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.t-mono { font-family: 'Space Mono', monospace; }
.t-gold { color: var(--v75-gold); }

/* ------------------------------------------------------------------ */
/* Signal badges                                                        */
/* ------------------------------------------------------------------ */

.signal-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 3px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.signal-high   { background: var(--v75-gold); color: var(--bg-dark); }
.signal-medium { background: var(--v75-gray); color: white; }
.signal-low    { background: #C0392B; color: white; }

/* ------------------------------------------------------------------ */
/* Axis score bars (S1–S7)                                             */
/* ------------------------------------------------------------------ */

.axis-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.axis-bar-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--gray-600);
  width: 30px;
  flex-shrink: 0;
}

.axis-bar-name {
  font-size: 0.8rem;
  color: var(--gray-700);
  width: 180px;
  flex-shrink: 0;
}

.axis-bar-track {
  flex: 1;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
}

.axis-bar-fill {
  height: 100%;
  background: var(--v75-gold);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.axis-bar-fill.axis-0 { background: var(--gray-300); width: 0%; }
.axis-bar-fill.axis-1 { background: #C0392B; width: 25%; }
.axis-bar-fill.axis-2 { background: #E07020; width: 50%; }
.axis-bar-fill.axis-3 { background: var(--v75-gold); width: 75%; }
.axis-bar-fill.axis-4 { background: var(--green); width: 100%; }

.axis-bar-val {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--gray-600);
  width: 20px;
  text-align: right;
  flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/* Pipeline timeline (candidate stages)                                 */
/* ------------------------------------------------------------------ */

.pipeline-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 90px;
  position: relative;
}

.pipeline-step::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}

.pipeline-step:last-child::after { display: none; }

.pipeline-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  position: relative;
  z-index: 1;
  color: var(--gray-500);
}

.pipeline-step.done .pipeline-step-dot {
  border-color: var(--v75-gold);
  background: var(--v75-gold);
  color: var(--bg-dark);
}

.pipeline-step.current .pipeline-step-dot {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand);
}

.pipeline-step-label {
  font-size: 0.68rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 0.35rem;
  line-height: 1.3;
}

.pipeline-step.done .pipeline-step-label { color: var(--gray-700); }
.pipeline-step.current .pipeline-step-label { color: var(--brand); font-weight: 600; }

.pipeline-step-date {
  font-size: 0.6rem;
  color: var(--gray-400);
  font-family: 'Space Mono', monospace;
  text-align: center;
}

/* ------------------------------------------------------------------ */
/* v7.5 section headers                                                 */
/* ------------------------------------------------------------------ */

.v75-section-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-v2);
}

.v75-section-head h1 {
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 900;
  font-stretch: 130%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: 1.6rem;
  color: var(--gray-900);
}

.v75-section-head .v75-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--v75-gray);
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------ */
/* Dashboard stats v2                                                   */
/* ------------------------------------------------------------------ */

.stats-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-v2 {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  border-top: 2px solid var(--border-v2);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.stat-v2:hover {
  border-color: var(--v75-gold);
  box-shadow: var(--shadow-md);
}

.stat-v2.active {
  border-color: var(--v75-gold);
  box-shadow: inset 0 0 0 1px var(--v75-gold);
}

.stat-v2 .stat-num {
  font-family: 'Space Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gray-900);
}

.stat-v2 .stat-num.gold { color: var(--v75-gold); }
.stat-v2 .stat-num.green { color: var(--green); }
.stat-v2 .stat-num.red { color: var(--red); }

.stat-v2 .stat-lbl {
  font-size: 0.72rem;
  color: var(--v75-gray);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 700;
  font-stretch: 50%;
}

/* ------------------------------------------------------------------ */
/* Table v2 — signal column                                             */
/* ------------------------------------------------------------------ */

.col-signal { white-space: nowrap; }
.col-score  { font-family: 'Space Mono', monospace; font-size: 0.8rem; white-space: nowrap; }

.legacy-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  background: var(--gray-200);
  color: var(--gray-600);
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ------------------------------------------------------------------ */
/* Axis card (competencies page)                                        */
/* ------------------------------------------------------------------ */

.axis-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1rem;
}

.axis-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: var(--bg-dark);
  color: var(--v75-white);
}

.axis-card-code {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--v75-gold);
}

.axis-card-title {
  font-family: 'Roboto Flex', sans-serif;
  font-weight: 700;
  font-stretch: 50%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--v75-white);
}

.axis-card-weight {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--v75-gold);
  opacity: 0.85;
}

.axis-card-desc {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}

.axis-levels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

@media (max-width: 600px) { .axis-levels { grid-template-columns: 1fr; } }

.axis-level {
  padding: 0.6rem 0.75rem;
  border-right: 1px solid var(--gray-100);
  font-size: 0.78rem;
  line-height: 1.4;
}

.axis-level:last-child { border-right: none; }

.axis-level-num {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.axis-level-0 .axis-level-num { color: var(--gray-400); }
.axis-level-1 .axis-level-num { color: #C0392B; }
.axis-level-2 .axis-level-num { color: #E07020; }
.axis-level-3 .axis-level-num { color: var(--v75-gold); }
.axis-level-4 .axis-level-num { color: var(--green); }

/* ------------------------------------------------------------------ */
/* Decision matrix (scorecard)                                          */
/* ------------------------------------------------------------------ */

.decision-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.decision-matrix th {
  background: var(--bg-dark);
  color: var(--v75-gold);
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.decision-matrix td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.decision-matrix .dm-action-hire   { color: var(--green); font-weight: 700; }
.decision-matrix .dm-action-think  { color: var(--yellow); font-weight: 700; }
.decision-matrix .dm-action-no     { color: var(--red); font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Guide interview blocks                                               */
/* ------------------------------------------------------------------ */

.interview-block {
  margin-bottom: 0.5rem;
}

.interview-block summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.interview-block summary::-webkit-details-marker { display: none; }

.interview-block[open] summary {
  background: var(--bg-dark);
  color: var(--v75-white);
  border-color: var(--bg-dark);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.interview-block-body {
  border: 1px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 1rem 1.25rem;
  background: var(--white);
}

.ib-code {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--v75-gold);
  background: var(--bg-dark);
  padding: 2px 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

.interview-block[open] .ib-code { color: var(--v75-gold); }

.ib-time {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--v75-gray);
  margin-left: auto;
}

.ib-question {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.ib-probe {
  font-size: 0.8rem;
  color: var(--gray-600);
  padding-left: 1rem;
  border-left: 2px solid var(--gray-200);
  margin-bottom: 0.2rem;
}

.ib-signal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.ib-signal-green {
  background: var(--green-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: var(--green);
}

.ib-signal-red {
  background: var(--red-light);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: var(--red);
}

.ib-signal-label {
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

/* ------------------------------------------------------------------ */
/* Candidate card v2 — block headers                                    */
/* ------------------------------------------------------------------ */

.cblock {
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cblock > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gray-800);
  transition: background 0.15s;
}

.cblock > summary::-webkit-details-marker { display: none; }

.cblock > summary::before {
  content: '▶';
  font-size: 0.6rem;
  color: var(--gray-400);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.cblock[open] > summary::before {
  transform: rotate(90deg);
  color: var(--v75-gold);
}

.cblock[open] > summary {
  border-bottom-color: var(--gray-200);
}

.cblock > summary:hover { background: var(--gray-50); }

.cblock-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  background: var(--bg-dark);
  color: var(--v75-gold);
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

.cblock-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: auto;
}
.cblock-status.filled { background: var(--v75-gold); }
.cblock-status.empty  { background: var(--gray-300); }

.cblock-body {
  background: var(--white);
  padding: 1rem 1.25rem;
}

/* audio player minimal */
.audio-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

.audio-player audio {
  flex: 1;
  height: 32px;
}

/* meta grid in candidate card */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem 1.25rem;
}

.meta-item {}
.meta-key {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--v75-gray);
  font-family: 'Space Mono', monospace;
}
.meta-val {
  font-size: 0.88rem;
  color: var(--gray-900);
  margin-top: 0.1rem;
}
