@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  /* Sidebar (REVIVER purple) */
  --sidebar-bg: linear-gradient(180deg, #7552cc 0%, #6344b5 48%, #5c3fad 100%);
  --sidebar-hover: rgba(255, 255, 255, 0.14);
  --sidebar-active: rgba(255, 235, 59, 0.22);
  --sidebar-shadow: 4px 0 24px rgba(92, 63, 173, 0.28);
  /* REVIVER accents (content / buttons) */
  --purple: #7552cc;
  --purple-dark: #5c3fad;
  --purple-light: #f0ebfa;
  --pink: #ff006e;
  --reviver-yellow: #ffeb3b;
  --primary: var(--purple);
  --primary-dark: var(--purple-dark);
  --success: #1aa260;
  --danger: #e0364c;
  --warning: #f2a818;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .04);
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --topbar-height: 64px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: #7552cc; text-decoration: none; }
a:hover { color: #ff006e; text-decoration: underline; }

.sidebar a,
.sidebar a:hover {
  text-decoration: none;
}

/* App shell — Accelerator-style sidebar + topbar */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  transition: width 0.2s ease;
  overflow: hidden;
  box-shadow: var(--sidebar-shadow);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 14px 14px;
  min-height: 64px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.sidebar-brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.sidebar-brand-logo {
  display: block;
  width: 100%;
  max-width: 196px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}

.sidebar-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, transform 0.2s;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

.app-shell.sidebar-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 10px 16px;
}

.nav-section-label {
  padding: 16px 12px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 0 999px 999px 0;
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: #fff;
  text-decoration: none;
}

.nav-item.active {
  background: var(--sidebar-active);
  color: var(--reviver-yellow);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--reviver-yellow);
}

.nav-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
}

.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  margin: 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
  position: relative;
}

.sidebar-user-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.sidebar-user-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.sidebar-user-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role,
.sidebar-user-entity {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-logout {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.sidebar-user:hover .sidebar-user-logout {
  opacity: 1;
}

.sidebar-user-logout:hover {
  color: #fff;
  text-decoration: underline;
}

/* Collapsed sidebar — icons only */
.app-shell.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed);
}

.app-shell.sidebar-collapsed .sidebar-brand {
  flex: 0 0 auto;
  justify-content: center;
}

.app-shell.sidebar-collapsed .sidebar-brand-logo {
  width: 100%;
  max-width: 44px;
  max-height: 36px;
  object-position: center;
}

.app-shell.sidebar-collapsed .nav-label,
.app-shell.sidebar-collapsed .nav-section-label,
.app-shell.sidebar-collapsed .sidebar-user-meta,
.app-shell.sidebar-collapsed .sidebar-user-logout {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-head {
  flex-direction: column;
  padding: 16px 8px 8px;
}

.app-shell.sidebar-collapsed .nav-item {
  justify-content: center;
  margin-right: 0;
  border-radius: 10px;
  padding: 12px;
}

.app-shell.sidebar-collapsed .sidebar-user {
  justify-content: center;
  padding: 12px 8px;
}

.app-shell.sidebar-collapsed .sidebar-user-avatar {
  width: 36px;
  height: 36px;
}

.main-area {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.2s ease;
}

.app-shell.sidebar-collapsed .main-area {
  margin-left: var(--sidebar-collapsed);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.topbar-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-icon-btn:hover {
  background: var(--bg);
  color: var(--text);
}

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-content {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 28px 48px;
  box-sizing: border-box;
}

.container { max-width: 1200px; margin: 28px auto; padding: 0 24px; }

.badge-mc {
  display: inline-block;
  background: var(--reviver-yellow);
  color: var(--purple-dark);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  margin-left: 6px;
}

@media (max-width: 900px) {
  .sidebar {
    width: var(--sidebar-collapsed);
  }
  .nav-label,
  .nav-section-label,
  .sidebar-user-meta,
  .sidebar-user-logout {
    opacity: 0;
    width: 0;
    overflow: hidden;
  }

  .sidebar-brand {
    flex: 0 0 auto;
    justify-content: center;
  }

  .sidebar-brand-logo {
    width: 100%;
    max-width: 44px;
    max-height: 36px;
    object-position: center;
  }
  .nav-item {
    justify-content: center;
    border-radius: 10px;
    margin-right: 0;
  }
  .main-area {
    margin-left: var(--sidebar-collapsed);
  }
  .main-content {
    padding: 16px;
  }
  .topbar {
    padding: 0 16px;
  }
}

.leads-table-card {
  overflow: hidden;
}

.leads-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--purple-light);
}

.leads-filters .field {
  margin-bottom: 0;
}

.leads-filter-field {
  flex: 1 1 140px;
  min-width: 120px;
}

.leads-filter-field label,
.leads-filter-spacer {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  line-height: 1.2;
}

.leads-filter-spacer {
  visibility: hidden;
  user-select: none;
}

.leads-filter-actions {
  flex: 0 0 auto;
}

.leads-filter-actions-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leads-filter-actions-btns .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  box-sizing: border-box;
  white-space: nowrap;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-head h1 {
  font-size: 18px;
  margin: 0;
  margin-right: auto;
  color: var(--text);
  font-weight: 600;
}

.has-sidebar .page-head:has(h1:only-child) {
  display: none;
}

/* Lead profile */
.lead-profile-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.lead-profile-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lead-assign-inline select {
  min-width: 200px;
  width: auto;
}

.lead-expa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin: 0;
}

.lead-expa-grid > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  align-items: start;
}

.lead-expa-span-2 {
  grid-column: 1 / -1;
}

.lead-expa-grid dt {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.lead-expa-grid dd {
  margin: 0;
  font-size: 14px;
}

.lead-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.lead-section-head h2 {
  margin: 0;
}

.lead-save-status {
  font-size: 13px;
  font-weight: 500;
}

.lead-save-status.saving {
  color: var(--purple);
}

.lead-save-status.saved {
  color: var(--success);
}

.lead-save-status.error {
  color: var(--danger);
}

.lead-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  cursor: pointer;
}

.lead-checkbox-label input {
  width: auto;
}

.lead-interview-result {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Lead profile — vertical tabs */
.lead-profile-tabs-layout {
  display: flex;
  align-items: stretch;
  min-height: 420px;
  margin-bottom: 20px;
}

.lead-profile-tab-nav {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 220px;
  border-right: 1px solid var(--border);
  background: var(--purple-light);
  padding: 12px 8px;
  gap: 4px;
}

.lead-tab-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-dark);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.lead-tab-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--purple);
}

.lead-tab-btn.active {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 1px 4px rgba(117, 82, 204, 0.12);
}

.lead-profile-tab-panels {
  flex: 1;
  min-width: 0;
  padding: 20px 24px;
}

.lead-tab-panel {
  display: none;
}

.lead-tab-panel.active {
  display: block;
}

.lead-tab-panel-title {
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--purple-dark);
}

.lead-profile-tab-panels .lead-section-head {
  margin-bottom: 16px;
}

.lead-profile-tab-panels .lead-section-head .lead-tab-panel-title {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .lead-profile-tabs-layout {
    flex-direction: column;
    min-height: 0;
  }

  .lead-profile-tab-nav {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 10px;
  }

  .lead-tab-btn {
    width: auto;
    flex: 1 1 auto;
    min-width: 120px;
    text-align: center;
    font-size: 13px;
    padding: 10px 12px;
  }
}

.lead-activity-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--purple-light);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.lead-activity-toggle .lead-tab-btn {
  width: auto;
  min-width: 100px;
  padding: 8px 16px;
  font-size: 13px;
  text-align: center;
}

.lead-activity-panel {
  display: none;
}

.lead-activity-panel.active {
  display: block;
}

.lead-followup-blocked {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(220, 53, 69, 0.06);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.lead-activity-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.lead-activity-item:last-of-type {
  border-bottom: none;
}

.gd-ratings-scroll {
  overflow-x: auto;
  max-width: 100%;
}

.gd-ratings-table {
  min-width: 900px;
  font-size: 13px;
}

.gd-ratings-table th,
.gd-ratings-table td {
  vertical-align: middle;
}

.gd-sticky-col {
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 2;
  min-width: 140px;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.04);
}

.gd-score-col {
  min-width: 72px;
  text-align: center;
}

.gd-score-select {
  width: 52px;
  min-width: 52px;
  padding: 6px 4px;
  font-size: 13px;
}

.gd-th-short {
  display: block;
  font-size: 10px;
  line-height: 1.25;
  max-width: 88px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.gd-actions-col {
  min-width: 200px;
}

.interview-competency-table {
  width: 100%;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-collapse: collapse;
  overflow: hidden;
}

.interview-competency-table th,
.interview-competency-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.interview-competency-table th.num,
.interview-competency-table td.num {
  width: 100px;
  text-align: right;
  white-space: nowrap;
}

.interview-competency-table tbody tr:last-child td {
  border-bottom: none;
}

.interview-competency-table tr.muted-row td {
  color: var(--muted);
}

.interview-competency-table tr.competency-sub td {
  background: var(--purple-light);
  font-size: 13px;
}

.interview-competency-table .competency-sub-label {
  padding-left: 28px;
}

.interview-competency-table tr.competency-sub--recommended td {
  background: rgba(26, 162, 96, 0.08);
}

.interview-competency-table .competency-block {
  font-weight: 600;
  color: var(--purple-dark);
}

.pill.small {
  font-size: 10px;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.interview-block-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.interview-block-summary-card {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

.interview-block-summary-card.muted-card {
  opacity: 0.75;
}

.interview-block-summary-order {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.interview-block-summary-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-dark);
  margin: 4px 0;
  line-height: 1.3;
  min-height: 2.6em;
}

.interview-block-summary-score {
  font-size: 18px;
  color: var(--purple);
}

.recommended-allocation-banner {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(26, 162, 96, 0.12) 0%, rgba(117, 82, 204, 0.1) 100%);
  border: 1px solid rgba(26, 162, 96, 0.35);
}

.recommended-allocation-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--success);
}

.recommended-allocation-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--purple-dark);
  margin: 4px 0;
}

.interview-score-block--department {
  border-color: rgba(117, 82, 204, 0.35);
}

.interview-score-subblock--recommended {
  background: rgba(26, 162, 96, 0.08);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid rgba(26, 162, 96, 0.25);
}

.interview-scores-breakdown {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.interview-score-block {
  padding: 16px;
  background: var(--purple-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.interview-score-block-head,
.interview-score-subblock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.interview-score-block h3 {
  margin: 0;
  font-size: 16px;
  color: var(--purple-dark);
}

.interview-score-subblock {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.interview-score-subblock h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
}

.interview-score-table {
  width: 100%;
  font-size: 13px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.interview-score-table th,
.interview-score-table td {
  padding: 8px 12px;
}

.committee-readonly {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-dark);
  background: var(--purple-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  white-space: nowrap;
}

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

@media (max-width: 768px) {
  .lead-expa-grid {
    grid-template-columns: 1fr;
  }
  .lead-expa-grid > div {
    grid-template-columns: 1fr;
  }
  .lead-expa-span-2 {
    grid-column: auto;
  }
  .lead-assign-inline select {
    min-width: 160px;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.card h2 { font-size: 16px; margin: 0 0 14px; color: var(--purple-dark); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:hover { background: var(--purple-light); }

.btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background: #7552cc;
  color: #fff;
}

.btn:hover {
  background: #ff006e;
  text-decoration: none;
  color: #fff;
}

.btn.secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--purple-dark);
}

.btn.secondary:hover {
  background: var(--purple-light);
  border-color: var(--purple);
  color: var(--purple);
}

.btn.success { background: var(--success); }
.btn.success:hover { background: #158a52; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #c42d41; }
.btn.small { padding: 5px 10px; font-size: 13px; }

input, select, textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(117, 82, 204, .15);
}

label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.field { margin-bottom: 14px; }
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.gray { background: var(--purple-light); color: var(--purple-dark); }
.pill.green { background: rgba(26, 162, 96, .13); color: var(--success); }
.pill.red { background: rgba(224, 54, 76, .13); color: var(--danger); }
.pill.amber { background: rgba(255, 235, 59, .35); color: #7a6200; }

.messages { list-style: none; padding: 0; margin: 0 0 18px; }
.messages li { padding: 11px 16px; border-radius: 8px; margin-bottom: 8px; font-size: 14px; }
.messages li.success { background: rgba(26, 162, 96, .12); color: var(--success); }
.messages li.error { background: rgba(224, 54, 76, .12); color: var(--danger); }
.messages li.info { background: rgba(117, 82, 204, .12); color: var(--purple-dark); }
.messages li.warning { background: rgba(255, 235, 59, .35); color: #7a6200; }

.muted { color: var(--muted); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }

/* Login — purple/pink gradient, yellow REVIVER */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--purple) 0%, #8b5fd4 40%, var(--pink) 100%);
}

.login-stack {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.login-brand-logo {
  display: block;
  width: min(320px, 90vw);
  height: auto;
  max-height: 80px;
  margin: 0 auto 12px;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

.login-card {
  width: 100%;
  border: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
  background: rgba(255, 255, 255, .98);
}

.login-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 14px;
}

.login-footer {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.login-footer a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-footer a:hover {
  color: #ffe566;
}

/* Interview */
.block { margin-bottom: 8px; }
.block-title { font-size: 18px; font-weight: 800; color: var(--purple); margin: 28px 0 6px; }
.subblock-title { font-size: 15px; font-weight: 700; color: var(--purple-dark); margin: 18px 0 4px; }
.guidance { color: var(--muted); font-size: 13px; font-style: italic; margin-bottom: 12px; }
.q { padding: 14px 0; border-bottom: 1px solid var(--border); }
.q-prompt { font-weight: 600; margin-bottom: 8px; }
.q-script {
  background: var(--purple-light);
  border-left: 3px solid var(--purple);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}
.q-notes { font-size: 12px; color: var(--muted); margin-top: 6px; }
.score-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.score-row label { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; margin: 0; }
.rubric { font-size: 12px; color: var(--muted); margin-top: 6px; }
.sticky-actions {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px;
  margin: 0 -20px -20px;
  border-radius: 0 0 var(--radius) var(--radius);
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Table links stay purple */
.main-content table a,
.main-content .page-head a {
  color: #7552cc;
  font-weight: 600;
}
