/* ═══════════════════════════════════════════════════════════
   TREELANCE DASHBOARD — White · Navy · Gold
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Backgrounds */
  --bg:          #eef2f8;
  --surface:     #ffffff;
  --card:        #ffffff;
  --card-hover:  #f7f9fc;

  /* Borders */
  --border:      #d8e2ef;
  --border-sub:  #eaf0f8;

  /* Navy */
  --navy:        #0b2345;
  --navy-mid:    #173a6e;
  --navy-light:  #2860b0;
  --navy-dim:    rgba(11, 35, 69, 0.06);
  --navy-pale:   #e8eef8;

  /* Gold */
  --gold:        #c49a26;
  --gold-light:  #e8b840;
  --gold-bright: #f5c842;
  --gold-dim:    rgba(196, 154, 38, 0.14);
  --gold-pale:   #fdf8ec;

  /* Status */
  --green:       #0d7a58;
  --green-dim:   rgba(13, 122, 88, 0.1);
  --red:         #b92d2d;
  --red-dim:     rgba(185, 45, 45, 0.1);
  --amber:       #c49a26;
  --amber-dim:   rgba(196, 154, 38, 0.12);

  /* Text */
  --text:        #0b2345;
  --text-2:      #3a5680;
  --text-3:      #7a96b8;
  --text-4:      #c0d0e4;

  /* Nav (dark navy sidebar) */
  --nav-bg:      #0b2345;
  --nav-text:    rgba(255,255,255,0.55);
  --nav-active:  #ffffff;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(11,35,69,0.07);
  --shadow:      0 4px 16px rgba(11,35,69,0.09);
  --shadow-lg:   0 8px 32px rgba(11,35,69,0.12);

  /* Sizes */
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   18px;
  --nav-h:       60px;
  --header-h:    58px;

  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:        'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button { cursor: pointer; border: none; background: none; font: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
input, textarea, select {
  font: inherit; color: inherit;
  background: transparent; border: none; outline: none;
}

/* ─── Header ─────────────────────────────────────────────────── */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(11,35,69,0.25);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.15);
}
.brand-icon img { width: 100%; height: 100%; }
.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
}
.brand-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
  margin-left: 2px;
}

/* Status pill */
.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  transition: all 0.3s;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background 0.3s;
}
.status-pill.online .status-dot  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-pill.online              { border-color: rgba(13,122,88,0.5); color: #5de8bb; }
.status-pill.offline .status-dot { background: var(--red); }

/* ─── Bottom Nav (mobile default) ───────────────────────────── */
.tab-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 6px;
  color: var(--nav-text);
  transition: color 0.2s;
  position: relative;
}
.tab-btn:active { opacity: 0.7; }
.tab-btn.active { color: var(--nav-active); }
.tab-btn.active::before {
  content: '';
  position: absolute;
  top: 0; left: 22%; right: 22%;
  height: 2.5px;
  background: var(--gold-bright);
  border-radius: 0 0 3px 3px;
}
.tab-icon  { font-size: 20px; line-height: 1; }
.tab-label { font-size: 10px; font-weight: 700; letter-spacing: 0.2px; }

/* ─── Main Content ───────────────────────────────────────────── */
.app-main {
  padding-top: var(--header-h);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px);
  min-height: 100dvh;
}

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

.scroll-area {
  padding: 22px 16px;
  max-width: 740px;
  margin: 0 auto;
}

/* ─── Section labels ─────────────────────────────────────────── */
.section-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--navy);
  margin-bottom: 6px;
}
.section-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 22px;
}

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow); }
.card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.1px;
}
.card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ─── Stat Grid ──────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.stat-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.stat-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }

.stat-card.gold   .stat-value { color: var(--gold); }
.stat-card.gold   { border-top: 3px solid var(--gold); }
.stat-card.navy   .stat-value { color: var(--navy-light); }
.stat-card.navy   { border-top: 3px solid var(--navy-light); }
.stat-card.green  .stat-value { color: var(--green); }
.stat-card.green  { border-top: 3px solid var(--green); }
.stat-card.amber  .stat-value { color: var(--gold); }
.stat-card.amber  { border-top: 3px solid var(--gold-bright); }
.stat-card.blue   .stat-value { color: var(--navy-light); }
.stat-card.blue   { border-top: 3px solid var(--navy-light); }
/* keep purple alias */
.stat-card.purple .stat-value { color: var(--gold); }
.stat-card.purple { border-top: 3px solid var(--gold); }

/* ─── Hero Banner ────────────────────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -40px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(196,154,38,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -20px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 6px;
}
.hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 500px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(196,154,38,0.18);
  border: 1px solid rgba(196,154,38,0.4);
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

/* ─── Pipeline ───────────────────────────────────────────────── */
.pipeline { display: flex; flex-direction: column; }
.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-left: 2px solid var(--border);
  margin-left: 16px;
  padding-left: 20px;
  position: relative;
}
.pipeline-step::before {
  content: '';
  position: absolute;
  left: -7px; top: 17px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--gold);
}
.pipeline-step:last-child { border-left-color: transparent; }
.pipeline-step-num {
  font-size: 10px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-top: 2px;
  min-width: 18px;
}
.pipeline-step-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 2px;
}
.pipeline-step-desc { font-size: 12px; color: var(--text-2); line-height: 1.55; }

/* ─── Tech Table ─────────────────────────────────────────────── */
.tech-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tech-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-sub);
  vertical-align: middle;
}
.tech-table tr:last-child td { border-bottom: none; }
.tech-table td:first-child { color: var(--text-2); width: 120px; font-size: 12px; }
.tech-table td:nth-child(2) { font-weight: 700; color: var(--navy); }
.tech-badge {
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 7px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.badge-done { background: var(--green-dim); color: var(--green); border: 1px solid rgba(13,122,88,0.2); }
.badge-next { background: var(--gold-dim);  color: var(--gold);  border: 1px solid rgba(196,154,38,0.25); }

/* ─── Config rows ────────────────────────────────────────────── */
.provider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-sub);
  font-size: 13px;
}
.provider-row:last-child { border-bottom: none; }
.provider-label { color: var(--text-2); }
.provider-val {
  font-weight: 700;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--navy);
  background: var(--navy-pale);
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

/* ─── Empty states ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-3); }
.empty-icon  { font-size: 38px; margin-bottom: 10px; opacity: 0.45; }
.empty-msg   { font-size: 14px; }

/* ─── Assessments ────────────────────────────────────────────── */
.assessment-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-sub);
  cursor: pointer;
  transition: opacity 0.15s;
}
.assessment-row:hover  { opacity: 0.75; }
.assessment-row:last-child { border-bottom: none; }
.assessment-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.assessment-meta { font-size: 12px; color: var(--text-3); display: flex; gap: 10px; flex-wrap: wrap; }
.assessment-tag  {
  font-size: 10px; font-weight: 800;
  padding: 2px 7px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.tag-voice { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(196,154,38,0.25); }

/* ─── Transcripts ────────────────────────────────────────────── */
#transcripts-list { display: flex; flex-direction: column; gap: 10px; }

.tx-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.tx-header {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px; background: none; border: none;
  cursor: pointer; text-align: left; transition: background 0.15s;
}
.tx-header:hover { background: var(--bg); }
.tx-header-left { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tx-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.tx-meta { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.tx-turns {
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px;
  background: var(--navy-dim); color: var(--navy-mid);
}
.tx-chevron { font-size: 14px; color: var(--text-3); transition: transform 0.2s; flex-shrink: 0; }

.tx-body { display: none; border-top: 1px solid var(--border-sub); }
.tx-body-open { display: block; }

.tx-summary {
  padding: 12px 16px;
  font-size: 13px; color: var(--text-2);
  background: var(--bg);
  border-bottom: 1px solid var(--border-sub);
  white-space: pre-wrap;
}
.tx-lines { padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.tx-line { display: flex; flex-direction: column; gap: 2px; }
.tx-speaker { font-size: 10px; font-weight: 700; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.5px; }
.tx-agent .tx-speaker { color: var(--green); }
.tx-candidate .tx-speaker { color: var(--navy-mid); }
.tx-text { font-size: 13px; color: var(--navy); line-height: 1.5; }
.tx-empty { font-size: 13px; color: var(--text-4); padding: 8px 0; }

/* ─── Psychology cards ───────────────────────────────────────── */
.psych-grid { display: flex; flex-direction: column; gap: 12px; }
.psych-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.psych-card:hover {
  border-color: var(--gold-light);
  box-shadow: 0 4px 20px rgba(196,154,38,0.12);
}
.psych-icon { font-size: 24px; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.psych-name {
  font-size: 14px; font-weight: 800;
  color: var(--navy); margin-bottom: 4px; letter-spacing: -0.2px;
}
.psych-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.psych-quote {
  margin-top: 9px;
  padding: 8px 12px;
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  color: var(--gold);
  font-style: italic;
  line-height: 1.5;
  font-weight: 600;
}

/* ─── Testing — sub-tabs ─────────────────────────────────────── */
.sub-tabs {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.sub-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  border-radius: 6px;
  transition: all 0.2s;
}
.sub-tab.active {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(11,35,69,0.2);
}

/* ─── Scenario selector ──────────────────────────────────────── */
.scenario-select-wrap { position: relative; margin-bottom: 14px; }
.scenario-select-wrap select {
  width: 100%;
  padding: 12px 14px;
  padding-right: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.scenario-select-wrap select:focus { border-color: var(--navy-mid); box-shadow: 0 0 0 3px var(--navy-dim); }
.scenario-select-wrap::after {
  content: '▾';
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3); pointer-events: none; font-size: 14px;
}

/* ─── Scenario meta ──────────────────────────────────────────── */
.scenario-meta {
  background: var(--navy-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
  display: none;
}
.scenario-meta.visible { display: block; }
.scenario-meta-type { font-size: 13px; color: var(--text-2); line-height: 1.5; margin-bottom: 9px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-tag {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.profile-tag strong { color: var(--navy); font-weight: 700; }

/* ─── Custom fields ──────────────────────────────────────────── */
.custom-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.field-group   { display: flex; flex-direction: column; gap: 5px; }
.field-label   { font-size: 12px; font-weight: 700; color: var(--text-2); }
.field-input {
  padding: 10px 13px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-input:focus { border-color: var(--navy-mid); box-shadow: 0 0 0 3px var(--navy-dim); }
.field-input::placeholder { color: var(--text-4); }
.field-textarea { resize: vertical; min-height: 100px; line-height: 1.6; font-family: var(--mono); font-size: 12px; }
.field-hint { font-size: 11px; color: var(--text-3); }

/* ─── Run button ─────────────────────────────────────────────── */
.run-btn {
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  letter-spacing: -0.1px;
  box-shadow: 0 4px 14px rgba(11,35,69,0.25);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
}
.run-btn:hover:not(:disabled) {
  background: var(--navy-mid);
  box-shadow: 0 6px 20px rgba(11,35,69,0.3);
}
.run-btn:active:not(:disabled) { transform: scale(0.98); }
.run-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ─── Save / delete custom scenario ─────────────────────────── */
.field-required { color: var(--red); font-size: 12px; }

.save-scenario-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-sub);
}
.save-scenario-title-input {
  flex: 1;
  font-size: 13px;
  padding: 9px 12px;
}
.save-scenario-btn {
  flex-shrink: 0;
  padding: 9px 16px;
  background: var(--navy-pale);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.save-scenario-btn:hover:not(:disabled) { background: var(--navy-dim); }
.save-scenario-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.delete-scenario-btn {
  margin-top: 8px;
  padding: 5px 12px;
  background: var(--red-dim);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(185,45,45,0.2);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.delete-scenario-btn:hover { background: rgba(185,45,45,0.18); }

/* ─── Sim output ─────────────────────────────────────────────── */
.sim-output { margin-top: 24px; display: none; }
.sim-output.visible { display: block; }
.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sim-title { font-size: 15px; font-weight: 800; color: var(--navy); }
.sim-status {
  font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 100px;
}
.sim-status.running { background: var(--gold-dim);  color: var(--gold);  border: 1px solid rgba(196,154,38,0.3); }
.sim-status.done    { background: var(--green-dim); color: var(--green); border: 1px solid rgba(13,122,88,0.25); }
.sim-status.error   { background: var(--red-dim);   color: var(--red);   border: 1px solid rgba(185,45,45,0.25); }

/* ─── Transcript ─────────────────────────────────────────────── */
.transcript { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.turn { display: flex; flex-direction: column; gap: 3px; }
.turn-label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.7px; text-transform: uppercase;
  padding-left: 3px;
}
.turn.agent     .turn-label { color: var(--gold); }
.turn.candidate .turn-label { color: var(--text-3); }
.turn-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.65;
  max-width: 95%;
}
.turn.agent .turn-bubble {
  background: var(--navy);
  color: #ffffff;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(11,35,69,0.15);
}
.turn.candidate .turn-bubble {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-2);
  align-self: flex-end;
  max-width: 88%;
  box-shadow: var(--shadow-sm);
}

.end-call-tag {
  font-size: 11px; font-weight: 700;
  text-align: center; padding: 8px;
  border: 1px dashed rgba(13,122,88,0.35);
  border-radius: 7px; color: var(--green);
  background: var(--green-dim);
  margin-top: 2px;
}

/* Thinking dots */
.thinking-indicator { display: flex; align-items: center; gap: 5px; padding: 10px 14px; }
.thinking-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: bounce 1.2s ease-in-out infinite;
}
.thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.thinking-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-4px); }
}

/* ─── Scorecard ──────────────────────────────────────────────── */
.scorecard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.scorecard-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}
.scorecard-body {
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Rating badge */
.rating-badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 20px; font-weight: 900;
  flex-shrink: 0;
}
.rating-A { background: var(--green-dim); color: var(--green); border: 2px solid rgba(13,122,88,0.4); }
.rating-B { background: var(--gold-dim);  color: var(--gold);  border: 2px solid rgba(196,154,38,0.4); }
.rating-C { background: rgba(40,96,176,0.1); color: var(--navy-light); border: 2px solid rgba(40,96,176,0.3); }
.rating-D { background: var(--red-dim);   color: var(--red);   border: 2px solid rgba(185,45,45,0.3); }

/* ─── Spinner ────────────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Desktop layout ─────────────────────────────────────────── */
@media (min-width: 768px) {
  .app-header { padding: 0 32px; }

  .tab-nav {
    position: fixed;
    top: var(--header-h); bottom: auto;
    left: 0;
    width: 210px;
    height: calc(100dvh - var(--header-h));
    border-top: none;
    border-right: 1px solid rgba(255,255,255,0.06);
    flex-direction: column;
    padding: 16px 10px;
    gap: 2px;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(11,35,69,0.15);
  }
  .tab-btn {
    flex-direction: row;
    justify-content: flex-start;
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    gap: 11px;
    width: 100%;
  }
  .tab-btn.active { background: rgba(255,255,255,0.1); }
  .tab-btn.active::before {
    top: 20%; bottom: 20%; left: 0; right: auto;
    width: 3px; height: auto;
    border-radius: 0 3px 3px 0;
  }
  .tab-icon  { font-size: 17px; }
  .tab-label { font-size: 13px; font-weight: 700; }

  .app-main   { padding-left: 210px; padding-bottom: 40px; }
  .scroll-area { padding: 28px 32px; max-width: 820px; }
  .stat-grid  { grid-template-columns: repeat(4, 1fr); }
  .quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }
  .action-btn {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
  }
  .action-icon { font-size: 22px; }
}

@media (min-width: 1024px) {
  .tab-nav   { width: 230px; }
  .app-main  { padding-left: 230px; }
  .psych-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Hero KPIs ──────────────────────────────────────────────── */
.hero-kpis {
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-kpi {
  flex: 1;
  text-align: center;
}
.hero-kpi-val {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
}
.hero-kpi-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.hero-kpi-sep {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* ─── Quick Actions ──────────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 0;
}
.action-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
}
.action-btn:hover {
  border-color: var(--navy-light);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.action-btn:active { transform: scale(0.98); }
.action-btn.action-primary {
  background: var(--navy);
  border-color: var(--navy);
}
.action-btn.action-primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}
.action-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.action-text { display: flex; flex-direction: column; gap: 2px; }
.action-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.1px;
}
.action-btn.action-primary .action-title { color: #ffffff; }
.action-sub { font-size: 11px; color: var(--text-3); line-height: 1.4; }
.action-btn.action-primary .action-sub { color: rgba(255,255,255,0.55); }

/* ─── System Health card ─────────────────────────────────────── */
.health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-sub);
  font-size: 13px;
}
.health-row:last-child { border-bottom: none; }
.health-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.health-dot.ok   { background: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
.health-dot.warn { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim); }
.health-dot.err  { background: var(--red);   box-shadow: 0 0 0 3px var(--red-dim); }
.health-label { color: var(--text-2); font-size: 13px; }
.health-val {
  font-weight: 700;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--navy);
  background: var(--navy-pale);
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* ─── Recent Activity ────────────────────────────────────────── */
.recent-header {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-sub);
  margin-bottom: 2px;
}
.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-sub);
}
.recent-item:last-child { border-bottom: none; }
.recent-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  flex-shrink: 0;
}

/* ─── Identity chips ─────────────────────────────────────────── */
.identity-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--navy-pale);
  border: 1px solid var(--border);
  color: var(--navy-light);
  font-weight: 600;
}

/* ─── Active Call Banner ─────────────────────────────────────── */
.active-call-banner {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 150;
  background: var(--green);
  color: #ffffff;
  padding: 10px 18px;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(13,122,88,0.3);
}
.active-call-banner.visible { display: flex; }
.active-call-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.9;
  animation: pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.active-call-info { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.active-call-label {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.8px; text-transform: uppercase;
  opacity: 0.8; flex-shrink: 0;
}
.active-call-name { font-size: 14px; font-weight: 700; }
.active-call-actions { display: flex; gap: 8px; flex-shrink: 0; }
.active-call-transcript-btn {
  padding: 6px 12px;
  background: rgba(255,255,255,0.2);
  color: #ffffff;
  font-size: 12px; font-weight: 700;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.2s;
}
.active-call-transcript-btn:hover { background: rgba(255,255,255,0.3); }
.active-call-end-btn {
  padding: 6px 14px;
  background: var(--red);
  color: #ffffff;
  font-size: 12px; font-weight: 800;
  border-radius: 6px;
  border: none;
  transition: background 0.2s, opacity 0.2s;
}
.active-call-end-btn:hover:not(:disabled) { background: #9a2222; }
.active-call-end-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Offset main content when banner is visible */
.active-call-banner.visible ~ .app-main,
body:has(.active-call-banner.visible) .app-main { padding-top: calc(var(--header-h) + 42px); }

/* Transcript modal */
.transcript-modal {
  max-width: 540px;
  max-height: 80dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.transcript-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-sub);
  flex-shrink: 0;
}
.transcript-close-btn {
  font-size: 16px;
  color: var(--text-3);
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.transcript-close-btn:hover { color: var(--navy); background: var(--navy-dim); }
.transcript-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.live-turn { display: flex; flex-direction: column; gap: 3px; }

@media (min-width: 768px) {
  .active-call-banner { left: 210px; padding: 10px 32px; }
}
@media (min-width: 1024px) {
  .active-call-banner { left: 230px; }
}

/* ─── Calls Tab ─────────────────────────────────────────────── */
.candidate-detail {
  margin: 14px 0 16px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-sub);
  border-radius: var(--radius-sm);
  min-height: 0;
}
.candidate-detail:empty { display: none; }
.candidate-detail-row { display: flex; flex-direction: column; gap: 3px; }
.candidate-count { font-size: 11px; font-weight: 400; color: var(--text-4); margin-left: 4px; }

/* ─── KPI Section ────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.kpi-value.kpi-up  { color: var(--green); }
.kpi-value.kpi-down { color: var(--red); }
.kpi-sub { font-size: 11px; color: var(--text-3); }

.kpi-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 130px;
  padding-top: 4px;
}
.kpi-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
.kpi-bar-val {
  font-size: 10px;
  color: var(--text-3);
  height: 14px;
  line-height: 14px;
}
.kpi-bar-track {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}
.kpi-bar {
  width: 100%;
  background: var(--navy-light);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: height 0.4s ease;
}
.kpi-bar-label {
  font-size: 9px;
  color: var(--text-4);
  margin-top: 3px;
  white-space: nowrap;
}

.kpi-channel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-sub);
}
.kpi-channel-row:last-child { border-bottom: none; }
.kpi-channel-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  width: 64px;
  flex-shrink: 0;
  text-transform: capitalize;
}
.kpi-channel-bar-track {
  flex: 1;
  height: 6px;
  background: var(--navy-dim);
  border-radius: 3px;
  overflow: hidden;
}
.kpi-channel-bar {
  height: 100%;
  background: var(--navy-light);
  border-radius: 3px;
  min-width: 2px;
}
.kpi-channel-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* ─── Call History ───────────────────────────────────────────── */
.history-toggle-card { padding: 0; overflow: hidden; }

.history-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.history-toggle-btn:hover { background: var(--bg); }
.history-toggle-left { display: flex; align-items: center; gap: 8px; }
.history-toggle-icon { font-size: 15px; }
.history-toggle-label { font-size: 14px; font-weight: 600; color: var(--navy); }
.history-badge {
  font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 20px;
  background: var(--navy-dim); color: var(--navy-mid);
}
.history-chevron { font-size: 14px; color: var(--text-3); transition: transform 0.2s; }

.history-panel { display: none; border-top: 1px solid var(--border-sub); }
.history-panel-open { display: block; }

.history-filters {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-sub);
  flex-wrap: wrap;
}
.history-filter-label { font-size: 12px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.history-filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-pill:hover { background: var(--navy-dim); color: var(--navy); border-color: var(--navy-dim); }
.filter-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.history-list { padding: 4px 16px 14px; }
.history-empty { font-size: 13px; color: var(--text-4); padding: 18px 0 8px; text-align: center; }

.history-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-sub);
}
.history-row:last-child { border-bottom: none; }
.history-row-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.history-row-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.history-row-phone { font-size: 12px; color: var(--text-3); }
.history-row-id { font-size: 10px; font-family: var(--mono); color: var(--text-4); }
.history-row-when { font-size: 12px; color: var(--text-3); white-space: nowrap; text-align: right; padding-top: 2px; }
.history-row-sep { margin: 0 4px; color: var(--text-4); }

.candidate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-sub);
}
.candidate-row:last-child { border-bottom: none; }
.candidate-info { flex: 1; min-width: 0; }
.candidate-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}
.candidate-meta {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 3px;
}
.candidate-id {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--text-4);
}

.call-btn {
  padding: 9px 18px;
  background: var(--green);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  white-space: nowrap;
  transition: background 0.2s, opacity 0.2s;
  flex-shrink: 0;
}
.call-btn:hover:not(:disabled) { background: #0a6347; }
.call-btn:disabled, .call-btn-disabled { opacity: 0.35; cursor: not-allowed; }
.call-btn-sm { padding: 7px 14px; font-size: 12px; }

/* Call confirmation modal */
.call-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,35,69,0.55);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.call-modal-overlay.visible { display: flex; }
.call-modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.18s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
.call-modal-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.call-modal-body {
  background: var(--navy-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.call-modal-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.call-modal-phone {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--text-2);
}
.call-modal-actions {
  display: flex;
  gap: 10px;
}
.call-modal-cancel {
  flex: 1;
  padding: 11px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.call-modal-cancel:hover { border-color: var(--text-3); color: var(--navy); }
.call-modal-proceed {
  flex: 1;
  padding: 11px;
  background: var(--green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  border: none;
  transition: background 0.2s, opacity 0.2s;
}
.call-modal-proceed:hover:not(:disabled) { background: #0a6347; }
.call-modal-proceed:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Prompt Editor ─────────────────────────────────────────── */
.prompt-block-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.prompt-block-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.prompt-block-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.6;
}
.prompt-block-desc code {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--navy-pale);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--navy-light);
  border: 1px solid var(--border);
}
.prompt-custom-badge {
  display: none;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(196,154,38,0.3);
  white-space: nowrap;
  flex-shrink: 0;
}
.prompt-custom-badge.visible { display: inline-flex; }

.prompt-card {
  padding: 0;
  overflow: hidden;
}
.prompt-textarea {
  display: block;
  width: 100%;
  min-height: 420px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text);
  background: var(--card);
  border: none;
  border-bottom: 1px solid var(--border-sub);
  resize: vertical;
  outline: none;
  transition: background 0.2s;
}
.prompt-textarea:focus { background: var(--card-hover); }
.prompt-textarea::placeholder { color: var(--text-4); font-style: italic; }
.prompt-textarea-sm { min-height: 160px; }

.prompt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 8px;
  background: var(--card);
}
.prompt-btn-save {
  padding: 8px 18px;
  background: var(--navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background 0.2s, opacity 0.2s;
}
.prompt-btn-save:hover:not(:disabled) { background: var(--navy-mid); }
.prompt-btn-save:disabled { opacity: 0.4; cursor: not-allowed; }

.prompt-btn-ghost {
  padding: 8px 14px;
  background: transparent;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.prompt-btn-ghost:hover { color: var(--text-2); border-color: var(--text-3); }

/* Toast */
.prompt-toast {
  position: fixed;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
  z-index: 200;
}
.prompt-toast.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.prompt-toast.toast-error { background: var(--red); }

@media (min-width: 768px) {
  .prompt-toast { bottom: 24px; }
}

/* ─── Utilities ──────────────────────────────────────────────── */
.divider     { height: 1px; background: var(--border-sub); margin: 16px 0; }
.spacer-sm   { height: 8px; }
.spacer      { height: 16px; }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-green  { color: var(--green); }
.text-muted  { color: var(--text-3); }
.font-mono   { font-family: var(--mono); }
.fw-700      { font-weight: 700; }
/* legacy aliases from app.js */
.text-purple { color: var(--gold); }
.text-amber  { color: var(--gold); }
