:root {
  --navy: #1E3A8A;
  --navy-deep: #142868;
  --sky-tint: #E0F2FE;
  --white: #FFFFFF;
  --emerald-deep: #077A54;
  --emerald: #10B981;

  --slate-900: #1E293B;
  --slate-700: #475569;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;

  --state-calm: var(--emerald);
  --state-watch: #D9A441;
  --state-high: #C4562E;

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(30,58,138,0.06), 0 4px 16px rgba(30,58,138,0.06);
  --shadow-pop: 0 8px 28px rgba(20,40,104,0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--slate-50);
  color: var(--slate-900);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  height: 100%;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--navy-deep); margin: 0 0 0.4em; line-height: 1.2; }
p { line-height: 1.6; margin: 0 0 0.6em; }
button { font-family: var(--font-body); cursor: pointer; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 4px; }

.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--emerald-deep);
  margin: 0 0 8px;
}

.btn {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-primary:disabled { background: var(--slate-300); cursor: not-allowed; }
.btn-secondary { background: var(--emerald-deep); color: var(--white); }
.btn-secondary:hover { background: #076B49; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--slate-300); transition: background 0.15s ease, border-color 0.15s ease; }
.btn-ghost:hover { background: var(--sky-tint); border-color: var(--navy); }
.btn-danger { background: var(--white); color: var(--state-high); border-color: var(--state-high); }
.btn-danger:hover { background: #FDF0EB; }

/* ============================== LOGIN ============================== */
.login-shell {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--sky-tint) 0%, var(--slate-50) 55%);
  padding: 24px;
  opacity: 1;
  transition: opacity 0.4s ease;
  animation: onboardFadeIn 0.5s ease;
}
.login-shell.login-exit { opacity: 0; pointer-events: none; }
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  width: 100%; max-width: 380px;
  padding: 36px 32px;
  text-align: center;
}
.login-logo { width: 64px; height: 64px; margin: 0 auto 16px; display: block; }
.login-card h1 { font-size: 21px; margin-bottom: 4px; }
.login-sub { color: var(--slate-500); font-size: 13.5px; margin-bottom: 24px; }
.login-field { text-align: left; margin-bottom: 18px; }
.login-field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--slate-700); margin-bottom: 6px; }
.login-field input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm); font-size: 14.5px; font-family: var(--font-body);
}
.login-field input:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.login-card .btn { width: 100%; padding: 12px; font-size: 14.5px; }
.login-footnote { font-size: 12px; color: var(--slate-500); margin-top: 18px; }

/* ============================== CRM SHELL ============================== */
.crm-shell { display: none; height: 100vh; flex-direction: column; opacity: 1; transition: opacity 0.4s ease; }
.crm-shell.active { display: flex; animation: crmFadeIn 0.6s ease; }
.crm-shell.crm-exit { opacity: 0; pointer-events: none; }
@keyframes crmFadeIn { from { opacity: 0; } to { opacity: 1; } }

.crm-topbar {
  height: 60px; flex-shrink: 0;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
}
.crm-brand { display: flex; align-items: center; gap: 10px; }
.crm-brand img { width: 28px; height: 28px; }
.crm-brand span { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 16px; }
.crm-brand .tag { color: #93C5FD; font-weight: 500; font-size: 13px; margin-left: 2px; }

.crm-topbar-right { display: flex; align-items: center; gap: 16px; }
.crm-topbar-back {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #C7D4EF;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12.5px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.crm-topbar-back:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.45); color: var(--white); }

.crm-status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #A7F3D0; font-weight: 500; }
.crm-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }
.crm-agent { display: flex; align-items: center; gap: 8px; }
.crm-agent-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sky-tint); color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px;
}
.crm-agent-name { color: var(--white); font-size: 13px; font-weight: 500; }
.crm-agent-role { color: #93C5FD; font-size: 11.5px; }

.crm-body { flex: 1; display: flex; overflow: hidden; }

.crm-sidebar {
  width: 208px; flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--slate-200);
  padding: 18px 12px;
}
.crm-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 9px; border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  font-size: 14px; font-weight: 500; color: var(--slate-700);
  margin-bottom: 4px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.crm-nav-item:hover { background: #EAF1FC; border-left-color: var(--slate-300); color: var(--navy-deep); }
.crm-nav-item.active { background: var(--sky-tint); border-left-color: var(--navy); color: var(--navy-deep); font-weight: 600; }
.crm-nav-icon { width: 18px; height: 18px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }

.crm-main { flex: 1; overflow-y: auto; padding: 28px 32px; position: relative; }
.crm-view { display: none; max-width: 900px; }
.crm-view.active { display: block; }

.crm-view h2 { font-size: 22px; }
.crm-view-sub { color: var(--slate-500); font-size: 14px; margin-bottom: 24px; }

/* dashboard widgets */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; margin-bottom: 24px; }
.dash-card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-md);
  padding: 18px 20px; box-shadow: var(--shadow-card);
}
.dash-card .label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); margin-bottom: 6px; }
.dash-card .value { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--navy-deep); }
.dash-checklist { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-md); padding: 20px 22px; box-shadow: var(--shadow-card); }
.dash-checklist-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--slate-100); }
.dash-checklist-item:last-child { border-bottom: none; }
.dash-check-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--slate-300); flex-shrink: 0; }
.dash-check-dot.done { background: var(--emerald); border-color: var(--emerald); position: relative; }
.dash-check-dot.done::after { content: '\2713'; position: absolute; inset:0; display:flex; align-items:center; justify-content:center; color:white; font-size: 11px; }

/* guide grid (reused inside Conversation Success Guide view) */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.guide-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 18px 20px; }
.guide-card-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--navy-deep); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.guide-card-title .num { font-size: 10.5px; background: var(--sky-tint); color: var(--navy); width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.guide-card p { font-size: 13.3px; color: var(--slate-700); margin: 0 0 8px; }
.guide-example { background: var(--slate-50); border-left: 3px solid var(--emerald); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 7px 11px; font-size: 12.6px; margin-top: 6px; }
.guide-example.bad { border-left-color: var(--state-high); }
.guide-example-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--slate-500); display: block; margin-bottom: 2px; }
.guide-model-steps { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.guide-model-step { display: flex; gap: 8px; align-items: baseline; font-size: 12.6px; }
.guide-model-step b { color: var(--navy); font-family: var(--font-display); min-width: 84px; flex-shrink: 0; }
.guide-ready-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding: 16px 20px; background: var(--sky-tint);
  border-radius: var(--radius-md); border: 1px solid #BEE3FA;
}
.guide-ready-bar p { margin: 0; font-size: 13.5px; color: var(--navy-deep); font-weight: 500; }
.guide-ready-bar .btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.guide-ready-bar .btn:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(20,40,104,0.28);
}
.guide-start-banner {
  margin: 8px 0 18px; padding: 14px 20px; background: var(--sky-tint);
  border-radius: var(--radius-md); border: 1px solid #BEE3FA;
}
.guide-start-banner p { margin: 0; font-size: 13.5px; color: var(--navy-deep); font-weight: 500; }

/* member/customers view */
.member-profile-card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 22px 24px; margin-bottom: 18px;
}
.member-profile-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.member-profile-head-left { display: flex; align-items: center; gap: 14px; }
.member-profile-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.member-profile-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--navy-deep); margin: 0; display: flex; align-items: center; gap: 8px; }
.member-profile-meta { font-size: 13px; color: var(--slate-500); margin: 2px 0 0; }
.difficulty-pill { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 20px; }
.difficulty-pill.easy { background: #EAF3DE; color: var(--emerald-deep); }
.difficulty-pill.medium { background: #FDF3E3; color: #8A5A0F; }
.difficulty-pill.hard { background: #FDF0EB; color: var(--state-high); }
.member-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; border-top: 1px solid var(--slate-100); padding-top: 14px; }
.member-detail-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); margin-bottom: 3px; }
.member-detail-value { font-size: 14px; color: var(--slate-900); font-weight: 500; }
.claim-status-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; background: #FDF0EB; color: var(--state-high); }

/* Compact queue card used on the Dashboard */
.queue-card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 16px 18px;
  display: flex; flex-direction: column; height: 100%;
}
.queue-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.queue-card-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--navy-deep); }
.queue-card-issue { font-size: 12.8px; color: var(--slate-700); margin: 0 0 12px; flex: 1; }
.queue-card .btn { width: 100%; padding: 8px; font-size: 13px; }

/* ============================== INCOMING CALL TOAST ============================== */
.call-toast {
  position: fixed; top: 76px; right: 24px; width: 300px;
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-pop);
  padding: 16px 18px; z-index: 500;
  display: none;
  animation: slideIn 0.35s ease;
}
.call-toast.shown { display: block; }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.call-toast-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--state-high); margin-bottom: 8px; }
.call-toast-label .ring-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--state-high); animation: pulseDot 1s infinite; }
@keyframes pulseDot { 0%,100%{opacity:1} 50%{opacity:.3} }
.call-toast-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.call-toast-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sky-tint); color: var(--navy-deep); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.call-toast-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--navy-deep); margin: 0; }
.call-toast-phone { font-size: 12px; color: var(--slate-500); margin: 0; }
.call-toast .btn { width: 100%; }
.call-toast-sub { text-align: center; font-size: 11.5px; color: var(--slate-500); margin: 8px 0 0; }

/* ============================== DOCKED CALL PANEL ============================== */
.call-dock {
  width: 0; flex-shrink: 0; overflow: hidden;
  border-left: 1px solid var(--slate-200);
  background: var(--white);
  transition: width 0.3s ease;
}
.call-dock.open { width: 430px; }
.call-dock-inner { width: 430px; height: 100%; display: flex; flex-direction: column; }
.call-dock-header {
  padding: 12px 16px; background: var(--navy-deep); color: var(--white);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.call-dock-header-info { display: flex; align-items: center; gap: 8px; }
.call-dock-header-info .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); animation: pulseDot 1.4s infinite; }
.call-dock-header span { font-size: 12.5px; font-weight: 500; }
.call-dock-header button { background: none; border: 1px solid rgba(255,255,255,0.3); color: var(--white); border-radius: var(--radius-sm); font-size: 12px; padding: 5px 10px; }
.call-dock iframe { flex: 1; border: none; width: 100%; }

/* ============================== END-OF-CALL MODAL ============================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,40,104,0.45);
  display: none; align-items: center; justify-content: center; z-index: 900;
}
.modal-overlay.shown { display: flex; }
.modal-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
  padding: 28px 30px; max-width: 380px; text-align: center;
}
.modal-card h3 { font-size: 18px; margin-bottom: 6px; }
.modal-card p { font-size: 13.8px; color: var(--slate-700); margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* ============================== DEBRIEF VIEW ============================== */
.debrief-layout { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.debrief-score-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 22px; text-align: center; }
.debrief-overall-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); margin: 0; }
.debrief-overall-number { font-family: var(--font-display); font-weight: 800; font-size: 42px; color: var(--navy-deep); margin: 4px 0; }
.debrief-pass-state { font-weight: 600; font-size: 13.5px; margin: 0 0 18px; }
.debrief-pass-state.pass { color: var(--emerald-deep); }
.debrief-pass-state.fail { color: var(--state-high); }
.debrief-dims { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.dim-row-label { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 4px; }
.dim-row-label b { font-weight: 500; color: var(--slate-900); }
.dim-track { height: 6px; background: var(--slate-100); border-radius: 3px; overflow: hidden; }
.dim-fill { height: 100%; background: var(--emerald); border-radius: 3px; }
.debrief-transcript-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 20px; }
.debrief-transcript-title { font-family: var(--font-display); font-weight: 600; color: var(--navy-deep); margin: 0 0 12px; font-size: 14.5px; }
.debrief-transcript { display: flex; flex-direction: column; gap: 8px; max-height: 460px; overflow-y: auto; }

.debrief-feedback-card { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 22px; margin-top: 18px; }
.debrief-feedback-summary { font-size: 14px; color: var(--slate-900); margin: 0 0 18px; line-height: 1.6; }
.debrief-feedback-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; }
.debrief-feedback-heading { font-family: var(--font-display); font-weight: 600; font-size: 13px; margin: 0 0 10px; }
.debrief-feedback-heading.good { color: var(--emerald-deep); }
.debrief-feedback-heading.watch { color: var(--state-high); }
.debrief-feedback-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.debrief-feedback-list li { font-size: 13.3px; color: var(--slate-700); padding-left: 18px; position: relative; line-height: 1.5; }
.debrief-feedback-list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; }
#debriefStrengths li::before { background: var(--emerald); }
#debriefImprovements li::before { background: var(--state-high); }
.tx-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--radius-sm); }
.tx-row.tx-member { background: var(--slate-50); }
.tx-row.tx-learner { background: var(--sky-tint); }
.tx-role { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--slate-500); }
.tx-text { font-size: 13px; color: var(--slate-900); }
.tx-note { font-size: 11.5px; color: var(--emerald-deep); font-style: italic; }

/* ==========================================================================
   Onboarding sequence — full-viewport immersive cover page that plays
   first, before login. Each .onboard-screen is a full-bleed slide; only
   one is visible at a time via .active. Light theme, matching the login
   screen's gradient and the rest of the console's color conventions.
   ========================================================================== */
.onboarding-shell {
  display: none;
  position: fixed; inset: 0;
  background: linear-gradient(180deg, var(--sky-tint) 0%, var(--slate-50) 55%);
  overflow: hidden;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.55s ease;
}
.onboarding-shell.active { display: block; animation: onboardShellFadeIn 0.5s ease; }
@keyframes onboardShellFadeIn { from { opacity: 0; } to { opacity: 1; } }
.onboarding-shell.onboard-exit { opacity: 0; pointer-events: none; }

.onboard-screen {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
}
.onboard-screen.active { display: flex; animation: onboardFadeIn 0.5s ease; }

@keyframes onboardFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboard-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  text-align: center;
}
.onboard-content-narrow { max-width: 560px; }
.onboard-content-wide { max-width: 820px; }

.onboard-logo { width: 92px; height: 92px; margin: 0 auto 26px; display: block; }

.onboard-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  color: var(--navy-deep);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.onboard-title-sm { font-size: 29px; margin-bottom: 16px; }
.onboard-subtitle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--emerald-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 28px;
}
.onboard-body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--slate-700);
  margin: 0 0 32px;
}
.onboard-body-center { max-width: 560px; margin-left: auto; margin-right: auto; }
.onboard-footnote { font-size: 15px; color: var(--slate-700); margin-top: 24px; margin-bottom: 8px; }

.onboard-cta {
  background: #09895E;
  padding: 15px 34px;
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow-pop);
}
.onboard-cta:hover {
  background: var(--emerald);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(20,40,104,0.25), 0 0 0 3px rgba(16,185,129,0.3);
}
.onboard-actions { margin-top: 8px; }

.onboard-back-btn {
  position: absolute;
  top: 24px; left: 28px;
  z-index: 4;
  background: var(--white);
  border: 1px solid var(--slate-300);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.onboard-back-btn:hover { background: var(--sky-tint); border-color: var(--navy); }

/* Decorative abstract rings, screen 1 only — pure CSS, no imagery */
.onboard-decor {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.onboard-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(30,58,138,0.09);
}
.onboard-ring.r1 { width: 420px; height: 420px; }
.onboard-ring.r2 { width: 620px; height: 620px; border-color: rgba(30,58,138,0.06); }
.onboard-ring.r3 { width: 840px; height: 840px; border-color: rgba(30,58,138,0.035); }

/* Skill grid, screen 2 */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.skill-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--navy-deep);
}
.skill-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* Interface tour cards, screen 3 */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
  text-align: left;
}
.tour-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.tour-visual {
  background: var(--slate-100);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex; flex-direction: column; gap: 7px;
  height: 112px;
  overflow: hidden;
  justify-content: center;
}
.tour-card-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--navy-deep); margin: 0; }
.tour-card-body { font-size: 14px; color: var(--slate-700); line-height: 1.55; margin: 0; }

.tour-nav-pill {
  font-size: 13px; font-family: var(--font-display); font-weight: 500;
  color: var(--slate-700); padding: 7px 9px; border-radius: 6px;
}
.tour-nav-pill.active { background: var(--sky-tint); color: var(--navy-deep); }

.tour-queue-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border: 1px solid var(--slate-200); border-radius: 6px;
  padding: 8px 10px; font-size: 13px; color: var(--navy-deep);
}
.tour-queue-card b { font-weight: 600; }
.tour-queue-card i { font-style: normal; color: var(--emerald-deep); font-size: 12px; font-weight: 600; }

.tour-call-bar {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--navy-deep);
}
.tour-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: pulseDot 1.4s infinite; }
.tour-esc-track { height: 5px; border-radius: 3px; background: var(--slate-200); overflow: hidden; }
.tour-esc-fill { display: block; height: 100%; width: 55%; background: #D9A441; border-radius: 3px; }

/* Coaching note preview, screen 4 — mirrors the real in-call coach
   bubble styling (see call.css .msg-coach) for genuine consistency */
.coach-preview {
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 4px 0 28px;
  text-align: left;
}
.coach-preview-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sky-tint); color: var(--navy-deep);
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px;
  margin-bottom: 8px;
}
.coach-preview-msg {
  background: var(--slate-100);
  border-radius: 12px; border-bottom-left-radius: 4px;
  padding: 11px 15px;
  font-size: 15.5px; color: var(--slate-900);
  margin: 0 0 10px;
  max-width: 90%;
}
.coach-preview-note {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14.5px; color: #7A5B10;
  background: #FFFBEB;
  border: 1px solid #F3D98B;
  border-radius: var(--radius-sm);
  padding: 10px 13px;
}
.coach-preview-dot { width: 6px; height: 6px; border-radius: 50%; background: #F3D98B; margin-top: 6px; flex-shrink: 0; }

/* Progress dots */
.onboard-progress {
  position: absolute;
  bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 3;
}
.onboard-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--slate-300); transition: background 0.2s ease, transform 0.2s ease; }
.onboard-dot.active { background: var(--emerald); transform: scale(1.3); }
.onboard-dot.done { background: var(--slate-500); }

@media (max-width: 640px) {
  .onboard-title { font-size: 30px; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .onboard-ring.r2, .onboard-ring.r3 { display: none; }
  .tour-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .call-dock.open { width: 320px; }
  .call-dock-inner { width: 320px; }
  .crm-sidebar { width: 168px; }
  .debrief-layout { grid-template-columns: 1fr; }
}
