:root {
  --bg: #ffffff;
  --surface: #fdf8f3;
  --surface2: #f5ede0;
  --border: #e8d5be;
  --text: #2d1e0f;
  --muted: #8c7b6b;
  --accent: #e8600a;
  --accent-hover: #cc5208;
  --green: #4a7c59;
  --red: #c0392b;
  --yellow: #c9a020;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(45,30,15,0.12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

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

/* Nav */
nav {
  background: var(--text);
  border-bottom: 1px solid var(--text);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
}
nav .logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
nav .logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
nav a { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
nav a:hover { color: #ffffff; text-decoration: none; }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-user-name {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}
.nav-signout {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 3px 10px;
  transition: color 0.15s, border-color 0.15s;
}
.nav-signout:hover { color: #fff !important; border-color: rgba(255,255,255,0.5); text-decoration: none !important; }

/* Login page — two-column split */
.lp-split {
  display: flex;
  min-height: calc(100vh - 56px);
}
.lp-left {
  flex: 1;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lp-right {
  width: 440px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  gap: 16px;
}
.lp-brand {
  font-size: 3.6rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 28px;
}
.lp-trust-badge {
  display: inline-block;
  background: rgba(232,96,10,0.08);
  border: 1px solid rgba(232,96,10,0.25);
  color: var(--accent);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.lp-headline {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.lp-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}
.lp-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lp-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.lp-feature-icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 40px;
  height: 40px;
  background: rgba(232,96,10,0.08);
  border: 1px solid rgba(232,96,10,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.lp-feature h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.lp-feature p { font-size: 0.84rem; color: var(--muted); line-height: 1.6; }

.lp-accuracy-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 18px;
  background: rgba(232,96,10,0.06);
  border: 1px solid rgba(232,96,10,0.2);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 480px;
}
.lp-accuracy-badge svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}
.lp-accuracy-badge strong { color: var(--accent); }

/* Login page — sign-in card */
.lp-signin-label {
  font-size: 0.88rem;
  color: var(--muted);
}
.lp-privacy {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* Login page — card */
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 380px;
}

@media (max-width: 768px) {
  .lp-split { flex-direction: column; min-height: auto; }
  .lp-left { padding: 40px 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .lp-right { width: 100%; padding: 40px 24px; }
  .lp-brand { font-size: 2.8rem; }
  .lp-headline { font-size: 1.8rem; }
}
.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s, box-shadow 0.15s;
  border: 1px solid var(--border);
}
.btn-oauth:hover { opacity: 0.9; box-shadow: 0 2px 10px rgba(0,0,0,0.12); text-decoration: none; }
.btn-google { background: #ffffff; color: #3c4043; border-color: #dadce0; }
.login-error {
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--red);
  text-align: center;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-field { display: flex; flex-direction: column; }
.auth-input {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 0.93rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.auth-input:focus { border-color: var(--accent); }
.auth-input::placeholder { color: var(--muted); }

/* Containers */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ── Setup / home page ───────────────────────────────────── */
.setup-page {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 32px;
}

.setup-header {
  text-align: center;
}
.setup-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.setup-header p {
  color: var(--muted);
  font-size: 1rem;
}

.setup-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field-optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

.config-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.config-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,96,10,0.1);
}

/* Interview type selector */
.type-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
  text-align: center;
}
.type-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232,96,10,0.04);
}
.type-btn.selected {
  border-color: var(--accent);
  background: rgba(232,96,10,0.08);
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,96,10,0.1);
}
.type-btn-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: inherit;
}
.type-btn-sub {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}
.type-btn.selected .type-btn-sub { color: rgba(232,96,10,0.7); }

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 0.95rem;
}

.setup-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: -8px;
}

/* Question picker */
.question-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 2px;
}

.question-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.question-card:hover {
  border-color: var(--accent);
  background: rgba(232,96,10,0.04);
}
.question-card.selected {
  border-color: var(--accent);
  background: rgba(232,96,10,0.08);
  box-shadow: 0 0 0 3px rgba(232,96,10,0.1);
}
.question-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.question-card.selected .question-card-title { color: var(--accent); }
.question-card-desc {
  font-size: 0.73rem;
  color: var(--muted);
  line-height: 1.35;
}
.question-card-random .question-card-title { color: var(--muted); }
.question-card-random.selected .question-card-title { color: var(--accent); }
.question-loading {
  font-size: 0.83rem;
  color: var(--muted);
  padding: 8px 0;
}

@media (max-width: 480px) {
  .setup-card { padding: 24px 20px; }
  .type-group { grid-template-columns: 1fr; }
  .setup-header h1 { font-size: 1.6rem; }
  .question-grid { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover:not(:disabled) { opacity: 0.85; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover:not(:disabled) { color: var(--text); border-color: var(--muted); }

/* ── Mute button ─────────────────────────────────────────── */
.mute-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mute-btn:hover {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--muted);
}
.mute-btn.muted {
  background: var(--surface2);
  color: var(--red);
  border-color: var(--red);
}
.mute-btn.muted:hover {
  background: rgba(192,57,43,0.08);
}
.mute-btn.speaking {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(232,96,10,0.08);
}
.mute-btn.speaking svg path:nth-child(2) {
  animation: sound-wave 1.3s ease-in-out infinite;
  animation-delay: 0s;
}
.mute-btn.speaking svg path:nth-child(3) {
  animation: sound-wave 1.3s ease-in-out infinite;
  animation-delay: 0.25s;
}
@keyframes sound-wave {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 1; }
}

/* Interview layout */
.interview-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px);
}

.interview-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.interview-header .meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.badge {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.badge-secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

/* Interview body: contains chat panel + optional whiteboard */
.interview-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Chat panel */
.chat-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.with-whiteboard .chat-panel {
  flex: 0 0 40%;
  min-width: 280px;
  max-width: 480px;
  border-right: 1px solid var(--border);
}

/* Chat area */
.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
}

/* Whiteboard panel (Excalidraw) */
.whiteboard-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--border);
}
.whiteboard-panel.hidden { display: none; }

/* Loading overlay shown while Excalidraw scripts download */
.wb-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--surface);
  z-index: 10;
}
.wb-loading-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1s ease-in-out infinite;
}
.wb-loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.wb-loading-dots span:nth-child(3) { animation-delay: 0.3s; }

/* Excalidraw mount point — must fill the panel */
#excalidraw-container {
  position: absolute;
  inset: 0;
}

.message {
  display: flex;
  gap: 12px;
  max-width: 760px;
}
.message.interviewer { align-self: flex-start; }
.message.candidate { align-self: flex-end; flex-direction: row-reverse; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.interviewer .avatar { background: rgba(232,96,10,0.12); border: 1px solid var(--accent); color: var(--accent); }
.candidate .avatar   { background: rgba(74,124,89,0.12);  border: 1px solid var(--green);  color: var(--green); }

.bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.93rem;
  white-space: pre-wrap;
  color: var(--text);
}
.candidate .bubble {
  background: var(--surface2);
}

/* Input bar */
.input-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ── Mic / record button ─────────────────────────────────── */
.mic-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--surface2);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  outline: none;
  overflow: visible;
  transition:
    width 0.3s cubic-bezier(.4,0,.2,1),
    border-radius 0.3s cubic-bezier(.4,0,.2,1),
    background 0.25s,
    color 0.25s,
    padding 0.3s cubic-bezier(.4,0,.2,1);
}

/* Ripple rings — only on hover, only when idle */
.mic-btn:not(.recording)::before,
.mic-btn:not(.recording)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}
.mic-btn:not(.recording):hover::before {
  animation: mic-ring 1.4s ease-out infinite;
}
.mic-btn:not(.recording):hover::after {
  animation: mic-ring 1.4s ease-out 0.55s infinite;
}
@keyframes mic-ring {
  0%   { transform: scale(1);    opacity: 0.55; }
  100% { transform: scale(1.85); opacity: 0; }
}

.mic-btn:not(.recording):hover {
  background: rgba(232,96,10,0.1);
  color: var(--accent);
}

/* Idle inner view */
.mic-icon-view {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Recording inner view */
.mic-rec-view {
  display: none;
  align-items: center;
  gap: 5px;
}

/* ── Recording active ───────────────────────────────────── */
.mic-btn.recording {
  width: 120px;
  border-radius: 24px;
  background: var(--accent);
  color: white;
  padding: 0 14px;
  gap: 8px;
}
.mic-btn.recording .mic-icon-view { display: none; }
.mic-btn.recording .mic-rec-view  { display: flex; }

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
  flex-shrink: 0;
  animation: rec-pulse 1.1s ease-in-out infinite;
}
.rec-dot:nth-child(1) { animation-delay: 0s; }
.rec-dot:nth-child(2) { animation-delay: 0.2s; }
.rec-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes rec-pulse {
  0%, 100% { transform: scale(0.55); opacity: 0.3; }
  50%       { transform: scale(1.3);  opacity: 1; }
}

.rec-cancel {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: white;
  white-space: nowrap;
}

.mic-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.text-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.93rem;
  padding: 10px 14px;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  font-family: inherit;
  line-height: 1.5;
}
.text-input:focus { outline: none; border-color: var(--accent); }
.text-input::placeholder { color: var(--muted); }

.voice-status {
  font-size: 0.8rem;
  color: var(--muted);
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Speaking indicator */
.speaking-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--accent);
  padding: 4px 0;
}
.speaking-dots span {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1s ease-in-out infinite;
}
.speaking-dots span:nth-child(2) { animation-delay: 0.15s; }
.speaking-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* Thinking bubble */
.thinking .bubble { color: var(--muted); font-style: italic; }

/* Feedback modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45,30,15,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal-overlay.hidden { display: none; }

.modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--shadow);
}
.modal h2 { font-size: 1.4rem; margin-bottom: 8px; color: var(--text); }
.modal .subtitle { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

.rating-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.rating-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.rating-label { color: var(--muted); font-size: 0.9rem; }

.feedback-section { margin-bottom: 20px; }
.feedback-section h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.feedback-section p { font-size: 0.93rem; line-height: 1.7; color: var(--text); }
.feedback-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feedback-section ul li {
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--surface);
  border-left: 3px solid var(--border);
  color: var(--text);
}
.feedback-section.strengths ul li { border-left-color: var(--green); }
.feedback-section.improvements ul li { border-left-color: var(--yellow); }
.feedback-section.gaps ul li { border-left-color: var(--red); }

.subscores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.subscore-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
}
.subscore-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}
.subscore-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* History page */
.page-header {
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.page-header h1 { font-size: 1.6rem; color: var(--text); }

.session-list { display: flex; flex-direction: column; gap: 12px; }

.session-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.session-card:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(232,96,10,0.1); text-decoration: none; color: inherit; }

.session-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.session-card-top .left { display: flex; align-items: center; gap: 10px; }
.session-card h3 { font-size: 1rem; font-weight: 600; color: var(--text); }
.session-card .summary { font-size: 0.88rem; color: var(--muted); }

.rating-pill {
  background: rgba(232,96,10,0.12);
  color: var(--accent);
  border-radius: 20px;
  padding: 2px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.status-pill {
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.78rem;
  font-weight: 500;
}
.status-active { background: rgba(74,124,89,0.12); color: var(--green); }
.status-completed { background: var(--surface2); color: var(--muted); }

.session-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}
.empty-state h2 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }

.loading { text-align: center; padding: 60px; color: var(--muted); }

/* Transcript in history detail */
.transcript { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.t-entry { font-size: 0.88rem; }
.t-role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.t-role.interviewer { color: var(--accent); }
.t-role.candidate { color: var(--green); }
.t-content {
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.6;
}

/* Detail page */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; font-size: 0.9rem; }

@media (max-width: 560px) {
  .lp-brand { font-size: 2.4rem; }
  .lp-headline { font-size: 1.6rem; }
  .lp-features { grid-template-columns: 1fr; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Company autocomplete */
.autocomplete-wrapper {
  position: relative;
  width: 100%;
}
.autocomplete-wrapper .config-input {
  width: 100%;
}
.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
}
.autocomplete-list.hidden { display: none; }
.autocomplete-list li {
  padding: 9px 12px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.1s;
}
.autocomplete-list li:hover,
.autocomplete-list li.active {
  background: rgba(232,96,10,0.08);
  color: var(--accent);
}
