/* ============================================
   Board Infinity — Career Discovery & Assessment
   Desktop-first responsive design
   ============================================ */

:root {
  --bi-blue: #0066CC;
  --bi-blue-dark: #004D99;
  --bi-blue-light: #E8F2FF;
  --bi-blue-50: #F0F7FF;
  --bi-orange: #FCA106;
  --bi-red: #D13845;
  --bi-green: #16A34A;
  --bi-green-light: #DCFCE7;

  --bg: #F5F7FA;
  --bg-white: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #5A5F7A;
  --text-muted: #9CA3AF;
  --text-light: #D1D5DB;
  --border: #E5E7EB;
  --border-light: #F3F4F6;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);

  --max-width: 960px;
  --content-width: 640px;
  --header-height: 52px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }
a { color: var(--bi-blue); text-decoration: none; }

/* ---- App Shell ---- */
#app {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
}

.screen {
  display: none;
  min-height: 100dvh;
  flex-direction: column;
}
.screen.active {
  display: flex;
}

/* ---- Loading Screen ---- */
#loading-screen {
  align-items: center;
  justify-content: center;
  background: white;
}
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.loading-spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--border);
  border-top-color: var(--bi-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Auth Screen ---- */
#auth-screen {
  background: var(--bg);
  align-items: center;
  justify-content: center;
}
.auth-container {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px 32px;
  margin: 20px;
}
.auth-hero {
  margin-bottom: 28px;
  text-align: center;
}
.auth-hero .logo-mark {
  margin-bottom: 20px;
}
.auth-hero h1 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.auth-hero p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-input {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
  background: white;
}
.form-input:focus {
  border-color: var(--bi-blue);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.08);
}
.form-input::placeholder { color: var(--text-light); }

.otp-inputs {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.otp-input {
  width: 36px;
  height: 42px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}
.otp-input:focus {
  border-color: var(--bi-blue);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.08);
}

.btn-primary {
  padding: 11px 20px;
  background: var(--bi-blue);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s, transform 0.1s;
  width: 100%;
}
.btn-primary:hover { background: var(--bi-blue-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  padding: 10px 16px;
  background: var(--bg);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
}

.btn-outline {
  padding: 10px 16px;
  background: white;
  color: var(--bi-blue);
  border: 1.5px solid var(--bi-blue);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.auth-error {
  color: var(--bi-red);
  font-size: 0.78rem;
  text-align: center;
  min-height: 16px;
}

.auth-footer {
  padding: 20px;
  text-align: center;
  font-size: 0.73rem;
  color: var(--text-muted);
}

/* ---- Profile Setup Screen ---- */
#profile-screen {
  background: var(--bg);
  align-items: center;
  justify-content: center;
}
.profile-container {
  width: 100%;
  max-width: 460px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px 32px;
  margin: 20px;
}
.profile-container h1 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.profile-container .subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ---- Dashboard Screen ---- */
#dashboard-screen {
  background: var(--bg);
}

.dash-header {
  background: white;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.dash-header .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-header .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bi-blue-light);
  color: var(--bi-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.dash-header .user-name {
  font-size: 0.95rem;
  font-weight: 600;
}
.dash-header .user-email {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.dash-header .logout-btn {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius-xs);
}
.dash-header .logout-btn:hover {
  background: var(--bg);
  color: var(--text-secondary);
}

.dash-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.dash-welcome {
  margin-bottom: 20px;
}
.dash-welcome h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}
.dash-welcome p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.overall-progress {
  background: white;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.overall-progress .progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.overall-progress .progress-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.overall-progress .progress-count {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bi-blue);
}
.progress-track {
  height: 7px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--bi-blue);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}
.progress-fill.complete {
  background: var(--bi-green);
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 0 2px;
}

.role-group-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.rg-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}
.rg-card:hover {
  border-color: var(--bi-blue);
  box-shadow: var(--shadow-md);
}
.rg-card.completed {
  border-color: var(--bi-green);
  background: #FAFFF5;
}

.rg-card .rg-emoji {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 10px;
  flex-shrink: 0;
}
.rg-card.completed .rg-emoji {
  background: var(--bi-green-light);
}

.rg-card .rg-info {
  flex: 1;
  min-width: 0;
}
.rg-card .rg-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.rg-card .rg-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.rg-card .rg-status {
  flex-shrink: 0;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.status-badge.not-started {
  background: var(--bg);
  color: var(--text-muted);
}
.status-badge.in-progress {
  background: #FEF3C7;
  color: #B45309;
}
.status-badge.completed {
  background: var(--bi-green-light);
  color: var(--bi-green);
}

.rg-progress-mini {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rg-progress-mini .track {
  flex: 1;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
}
.rg-progress-mini .fill {
  height: 100%;
  background: var(--bi-blue);
  border-radius: 2px;
  transition: width 0.3s;
}
.rg-progress-mini.complete .fill { background: var(--bi-green); }
.rg-progress-mini .text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ---- Role Group Detail Screen ---- */
#rolegroup-screen {
  background: var(--bg);
}

.rg-detail-header {
  background: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 10;
}
.back-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
}
.back-btn:hover { background: var(--bg); }
.back-btn svg { width: 18px; height: 18px; }
.rg-detail-title {
  font-size: 1.05rem;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rg-detail-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  padding-bottom: 80px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

/* Bucket awareness card */
.bucket-awareness {
  background: white;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.bucket-awareness-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bucket-awareness-header .ba-left {
  flex: 1;
  min-width: 0;
}
.bucket-awareness-header .ba-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.bucket-awareness-header .ba-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.bucket-awareness-header .ba-status {
  flex-shrink: 0;
}
.bucket-awareness-header .chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.bucket-awareness.expanded .chevron {
  transform: rotate(180deg);
}

.bucket-awareness-body {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--border-light);
}
.bucket-awareness.expanded .bucket-awareness-body {
  display: block;
}

.ba-section {
  margin-top: 14px;
}
.ba-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bi-blue);
  margin-bottom: 5px;
}
.ba-section-text {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ba-companies {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.ba-company-pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--bg);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.ba-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.ba-stat {
  background: var(--bg);
  padding: 10px 12px;
  border-radius: var(--radius-xs);
}
.ba-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.ba-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.ba-competencies {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.ba-comp-pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--bi-blue-50);
  border-radius: var(--radius-full);
  color: var(--bi-blue);
}

/* Assessment CTA */
.bucket-assessment-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.bucket-assessment-cta .cta-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.btn-assess {
  padding: 12px 18px;
  background: var(--bi-blue);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 600;
  width: 100%;
  text-align: center;
  transition: background 0.2s;
}
.btn-assess:hover { background: var(--bi-blue-dark); }
.btn-assess:disabled {
  background: var(--bi-green);
  opacity: 0.7;
  cursor: not-allowed;
}
.btn-assess.completed {
  background: var(--bi-green);
}

/* ---- Assessment Screen (Single Question View) ---- */
#assessment-screen {
  background: var(--bg);
}

.assess-header {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
}
.assess-title {
  flex: 1;
  min-width: 0;
}
.assess-title .bucket-label {
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--bi-blue);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.assess-title .assess-name {
  font-size: 0.87rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assess-progress {
  padding: 10px 24px;
  background: white;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
}
.assess-progress .track {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.assess-progress .fill {
  height: 100%;
  background: var(--bi-blue);
  border-radius: 2px;
  transition: width 0.3s;
}
.assess-progress .text {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Single question card area */
.assess-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 24px 120px;
  overflow-y: auto;
}

.question-single {
  width: 100%;
  max-width: 600px;
}

.question-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 32px 36px;
  box-shadow: var(--shadow-md);
}
.question-card .q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.question-card .q-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}
.question-card .q-competency {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bi-blue);
  background: var(--bi-blue-50);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.question-card .q-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 24px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.option-btn {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: white;
  text-align: left;
  transition: all 0.15s;
  line-height: 1.45;
}
.option-btn:hover {
  border-color: var(--bi-blue);
  background: var(--bi-blue-50);
}
.option-btn.selected {
  border-color: var(--bi-blue);
  background: var(--bi-blue);
  color: white;
  font-weight: 600;
}

.scale-options {
  display: flex;
  gap: 8px;
}
.scale-btn {
  flex: 1;
  height: 48px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.scale-btn:hover {
  border-color: var(--bi-blue);
  color: var(--bi-blue);
}
.scale-btn.selected {
  border-color: var(--bi-blue);
  background: var(--bi-blue);
  color: white;
}
.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 2px;
}
.scale-labels span {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 40%;
}

/* Navigation footer for assessment */
.assess-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px));
  background: white;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 20;
}
.assess-footer .btn-nav {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
}
.assess-footer .btn-prev {
  background: var(--bg);
  color: var(--text-secondary);
}
.assess-footer .btn-prev:hover { background: var(--border); }
.assess-footer .btn-prev:disabled { opacity: 0.3; cursor: not-allowed; }
.assess-footer .btn-next {
  background: var(--bi-blue);
  color: white;
}
.assess-footer .btn-next:hover { background: var(--bi-blue-dark); }
.assess-footer .btn-submit {
  background: var(--bi-green);
  color: white;
  padding: 9px 24px;
}
.assess-footer .btn-submit:hover { background: #15803D; }
.assess-footer .btn-submit:disabled { opacity: 0.4; cursor: not-allowed; }
.assess-footer .q-counter {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Bottom bar (generic fallback) */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px));
  background: white;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
  z-index: 20;
}
.bottom-bar .btn-primary { flex: 1; }
.bottom-bar .btn-secondary { flex-shrink: 0; }

/* ---- Completion overlay ---- */
.completion-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.completion-card {
  background: white;
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  animation: popIn 0.3s ease-out;
}
@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.completion-card .check-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bi-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.completion-card .check-circle svg {
  width: 28px;
  height: 28px;
  color: var(--bi-green);
}
.completion-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.completion-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ---- Toast notifications ---- */
.toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 440px;
  width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  z-index: 200;
  animation: slideDown 0.3s ease-out;
  text-align: center;
}
.toast.error {
  background: #FEE2E2;
  color: #991B1B;
}
.toast.success {
  background: var(--bi-green-light);
  color: #166534;
}
@keyframes slideDown {
  from { transform: translateX(-50%) translateY(-16px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ---- Utility ---- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }

/* Prevent body scroll when overlay is open */
body.no-scroll { overflow: hidden; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  :root {
    --max-width: 100%;
    --content-width: 100%;
  }
  .role-group-cards {
    grid-template-columns: 1fr;
  }
  .dash-content {
    padding: 16px;
  }
  .rg-detail-content {
    padding: 16px;
  }
  .auth-container {
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
    margin: 0;
    min-height: 100dvh;
    justify-content: center;
    display: flex;
    flex-direction: column;
  }
  .profile-container {
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
    margin: 0;
    min-height: 100dvh;
    justify-content: center;
    display: flex;
    flex-direction: column;
  }
  .assess-content {
    padding: 20px 16px 120px;
  }
  .question-card {
    padding: 20px;
  }
}

@media (min-width: 769px) {
  #app {
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
  }
}

@media (max-width: 480px) {
  .otp-inputs {
    gap: 4px;
  }
  .otp-input {
    width: 32px;
    height: 38px;
    font-size: 0.93rem;
  }
}

/* ============================================
   INSIGHT SCREENS (Competency + Progression)
   ============================================ */

/* --- Completed Actions (post-assessment buttons) --- */
.completed-actions {
  text-align: center;
}
.post-assess-btns {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.btn-insight {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--bi-blue-light);
  color: var(--bi-blue);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.btn-insight:hover {
  background: #D4E8FF;
  transform: translateY(-1px);
}
.btn-insight svg {
  flex-shrink: 0;
}

/* --- Insight Header --- */
.insight-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.insight-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.insight-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* --- Insight Content --- */
.insight-content {
  padding: 20px;
  max-width: var(--content-width);
  margin: 0 auto;
}
.insight-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.insight-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.insight-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* --- Radar Chart Container --- */
.radar-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 0;
}

/* --- Competency Bars --- */
.comp-bar-row {
  margin-bottom: 14px;
}
.comp-bar-row:last-child {
  margin-bottom: 0;
}
.comp-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}
.comp-bar-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}
.comp-bar-score {
  font-size: 0.75rem;
  font-weight: 600;
}
.comp-bar-score.level-high { color: #16A34A; }
.comp-bar-score.level-mid { color: #2E86DE; }
.comp-bar-score.level-low-mid { color: #FCA106; }
.comp-bar-score.level-low { color: #D13845; }
.comp-bar-track {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}
.comp-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.comp-bar-fill.level-high { background: #16A34A; }
.comp-bar-fill.level-mid { background: #2E86DE; }
.comp-bar-fill.level-low-mid { background: #FCA106; }
.comp-bar-fill.level-low { background: #D13845; }

/* --- Career Progression Timeline --- */
.prog-timeline {
  padding: 4px 0;
}
.prog-stage {
  display: flex;
  gap: 16px;
  min-height: 90px;
}
.prog-stage:last-child {
  min-height: auto;
}
.prog-stage-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 44px;
  flex-shrink: 0;
}
.prog-stage-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.prog-stage-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin: 4px 0;
  min-height: 20px;
}
.prog-stage-content {
  flex: 1;
  padding-bottom: 20px;
}
.prog-stage:last-child .prog-stage-content {
  padding-bottom: 0;
}
.prog-stage-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.prog-stage-label {
  font-size: 0.88rem;
  font-weight: 700;
}
.prog-stage-salary {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--border-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.prog-stage-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.prog-role-pill {
  background: var(--bi-blue-50);
  color: var(--bi-blue-dark);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  line-height: 1.4;
}

/* --- Transition Chart --- */
.transition-chart-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.transition-donut-container {
  width: 220px;
  flex-shrink: 0;
}
.transition-legend {
  flex: 1;
  min-width: 0;
}
.transition-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.transition-row:last-child {
  border-bottom: none;
}
.transition-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.transition-domain {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
}
.transition-pct {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* --- Responsive for insight screens --- */
@media (max-width: 768px) {
  .insight-content {
    padding: 16px;
  }
  .insight-card {
    padding: 18px;
  }
  .transition-chart-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .transition-donut-container {
    width: 200px;
  }
  .post-assess-btns {
    flex-direction: column;
  }
  .radar-container {
    max-width: 100%;
  }
}

/* ============================================
   JOURNEY PIPELINE
   ============================================ */
.journey-pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 16px 24px;
  background: white;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
}
.pipeline-stage {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
}
.pipeline-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.73rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: white;
  transition: all 0.3s;
}
.pipeline-stage.active .pipeline-dot {
  border-color: var(--bi-blue);
  background: var(--bi-blue);
  color: white;
  box-shadow: 0 0 0 4px rgba(0,102,204,0.15);
}
.pipeline-stage.done .pipeline-dot {
  border-color: var(--bi-green);
  background: var(--bi-green);
  color: white;
}
.pipeline-stage.locked .pipeline-dot {
  border-color: var(--border);
  background: var(--bg);
  color: var(--text-light);
}
.pipeline-info {
  min-width: 0;
}
.pipeline-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}
.pipeline-stage.locked .pipeline-label {
  color: var(--text-muted);
}
.pipeline-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.pipeline-connector {
  width: 28px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 4px;
  align-self: center;
}
.pipeline-stage.done .pipeline-connector {
  background: var(--bi-green);
}
.pipeline-stage.active .pipeline-connector {
  background: var(--bi-blue);
}

/* ============================================
   PSYCHOMETRIC UPLOAD CARD
   ============================================ */
.psych-upload-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1.5px dashed var(--border);
  transition: border-color 0.2s;
}
.psych-upload-card:hover {
  border-color: var(--bi-blue);
}
.psych-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bi-blue-light);
  border-radius: 10px;
  color: var(--bi-blue);
  flex-shrink: 0;
}
.psych-info {
  flex: 1;
  min-width: 0;
}
.psych-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.psych-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.45;
}
.btn-upload {
  padding: 9px 18px;
  background: var(--bi-blue);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-upload:hover {
  background: var(--bi-blue-dark);
}

/* ============================================
   COMING SOON CARDS
   ============================================ */
.coming-soon-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.coming-soon-card:hover {
  opacity: 0.85;
}
.cs-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.cs-content {
  flex: 1;
  min-width: 0;
}
.cs-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.cs-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.45;
}
.cs-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  background: var(--bg);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============================================
   DASHBOARD FOOTER
   ============================================ */
.dash-footer {
  text-align: center;
  padding: 24px 16px 16px;
  margin-top: 12px;
}
.dash-footer p {
  font-size: 0.73rem;
  color: var(--text-muted);
}

/* ============================================
   TRUST SCORE BADGE (Competency Bars)
   ============================================ */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 8px;
  white-space: nowrap;
}
.trust-badge.level-1 {
  background: #FEF3C7;
  color: #B45309;
}
.trust-badge.level-2 {
  background: #DBEAFE;
  color: #1D4ED8;
}
.trust-badge.level-3 {
  background: #D1FAE5;
  color: #065F46;
}
.trust-badge.level-4 {
  background: #E0E7FF;
  color: #4338CA;
}
.trust-badge svg {
  width: 10px;
  height: 10px;
}

/* --- Pipeline responsive --- */
@media (max-width: 768px) {
  .journey-pipeline {
    padding: 12px 16px;
    gap: 0;
  }
  .pipeline-connector {
    width: 16px;
  }
  .pipeline-desc {
    display: none;
  }
}

/* ============================================ */
/*  InfyCoach — AI Learning Assistant Bot       */
/* ============================================ */

/* --- Floating Action Button --- */
#bot-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#bot-fab.open .bot-fab-btn {
  transform: scale(0.9) rotate(15deg);
}
.bot-fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  position: relative;
  z-index: 2;
}
.bot-fab-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0, 102, 204, 0.5), 0 3px 8px rgba(0, 0, 0, 0.2);
}
.bot-fab-pulse {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 102, 204, 0.25);
  animation: botPulse 2s ease-in-out infinite;
  z-index: 1;
}
@keyframes botPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 0; }
}
.bot-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #D13845;
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* --- Nudge Bubble --- */
.bot-nudge {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  color: #1E293B;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9998;
  max-width: 280px;
  animation: botNudgeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: opacity 0.25s, transform 0.25s;
}
.bot-nudge.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
@keyframes botNudgeIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.bot-nudge-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #94A3B8;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

/* --- Chat Panel --- */
.bot-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 400px;
  max-height: 600px;
  height: calc(100vh - 120px);
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.12), 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9998;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bot-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Panel header */
.bot-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0066CC 0%, #0052A3 100%);
  color: white;
  flex-shrink: 0;
}
.bot-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bot-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bot-header-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bot-header-status {
  font-size: 11px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 4px;
}
.bot-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  display: inline-block;
}
.bot-header-actions {
  display: flex;
  gap: 4px;
}
.bot-header-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.bot-header-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Panel body */
.bot-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #F8FAFC;
  scroll-behavior: smooth;
}
.bot-panel-body::-webkit-scrollbar {
  width: 4px;
}
.bot-panel-body::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 2px;
}

/* Date divider */
.bot-date-divider {
  text-align: center;
  font-size: 11px;
  color: #94A3B8;
  padding: 8px 0;
}
.bot-date-divider span {
  background: #F8FAFC;
  padding: 0 12px;
}

/* --- Messages --- */
.bot-msg {
  display: flex;
  gap: 8px;
  max-width: 92%;
  animation: botMsgIn 0.25s ease;
}
@keyframes botMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.bot-msg-bot {
  align-self: flex-start;
}
.bot-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.bot-msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0066CC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.bot-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #1E293B;
}
.bot-msg-bot .bot-msg-bubble {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-top-left-radius: 4px;
}
.bot-msg-user .bot-msg-bubble {
  background: #0066CC;
  color: white;
  border-top-right-radius: 4px;
}
.bot-msg-component {
  max-width: 100%;
  width: 100%;
}
.bot-msg-component .bot-msg-avatar {
  display: none;
}

/* Typing indicator */
.bot-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}
.bot-dots span {
  width: 7px;
  height: 7px;
  background: #94A3B8;
  border-radius: 50%;
  animation: botDot 1.2s infinite;
}
.bot-dots span:nth-child(2) { animation-delay: 0.2s; }
.bot-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes botDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* --- Quick Actions --- */
.bot-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border-top: 1px solid #F1F5F9;
  flex-shrink: 0;
  min-height: 0;
}
.bot-quick-actions:empty {
  display: none;
}
.bot-quick-btn {
  padding: 7px 14px;
  border: 1px solid #E0E7FF;
  border-radius: 20px;
  background: #F0F4FF;
  font-size: 13px;
  font-weight: 500;
  color: #0066CC;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.bot-quick-btn:hover {
  background: #0066CC;
  color: white;
  border-color: #0066CC;
}

/* --- Input --- */
.bot-panel-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border-top: 1px solid #E5E7EB;
  flex-shrink: 0;
}
#bot-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: #F8FAFC;
}
#bot-input:focus {
  border-color: #0066CC;
  background: white;
}
.bot-send-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #0066CC;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.bot-send-btn:hover {
  background: #0052A3;
  transform: scale(1.05);
}

/* --- Component Cards (shared) --- */
.bot-comp-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bot-comp-title {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  padding-bottom: 6px;
  border-bottom: 1px solid #F1F5F9;
}

/* --- Career Fit Analysis --- */
.bot-fit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}
.bot-fit-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.bot-fit-name {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  min-width: 100px;
  flex-shrink: 0;
}
.bot-fit-bar {
  flex: 1;
  height: 8px;
  background: #F1F5F9;
  border-radius: 4px;
  overflow: hidden;
}
.bot-fit-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.bot-fit-score {
  font-size: 13px;
  font-weight: 700;
  min-width: 36px;
  text-align: right;
}

/* --- Skill Gap Analysis --- */
.bot-skill-row {
  padding: 8px 0;
  border-bottom: 1px solid #F8FAFC;
}
.bot-skill-row:last-child {
  border-bottom: none;
}
.bot-skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.bot-skill-name {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
}
.bot-skill-gap-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.bot-skill-gap-badge.high {
  background: #FEE2E2;
  color: #DC2626;
}
.bot-skill-gap-badge.medium {
  background: #FEF3C7;
  color: #D97706;
}
.bot-skill-gap-badge.low {
  background: #D1FAE5;
  color: #059669;
}
.bot-skill-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bot-skill-bar-track {
  height: 7px;
  background: #F1F5F9;
  border-radius: 4px;
  position: relative;
  overflow: visible;
}
.bot-skill-bar-current {
  height: 100%;
  background: #0066CC;
  border-radius: 4px;
  transition: width 0.5s ease;
}
.bot-skill-bar-target {
  position: absolute;
  top: -2px;
  width: 2px;
  height: 11px;
  background: #D13845;
  border-radius: 1px;
}
.bot-skill-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94A3B8;
}

/* --- Nudge Cards --- */
.bot-nudge-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
}
.bot-nudge-card.action {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFBEB 100%);
  border-color: #FDBA74;
}
.bot-nudge-card.streak {
  background: linear-gradient(135deg, #FEF2F2 0%, #FFF7ED 100%);
  border-color: #FCA5A5;
}
.bot-nudge-card.achievement {
  background: linear-gradient(135deg, #F0F9FF 0%, #EFF6FF 100%);
  border-color: #93C5FD;
}
.bot-nudge-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.bot-nudge-content {
  flex: 1;
}
.bot-nudge-title {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 3px;
}
.bot-nudge-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}
.bot-nudge-cta {
  margin-top: 8px;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: #0066CC;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.bot-nudge-cta:hover {
  background: #0052A3;
}

/* --- Interview Modes --- */
.bot-interview-modes {
  gap: 0;
}
.bot-interview-mode {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid #F1F5F9;
  transition: background 0.15s;
}
.bot-interview-mode:last-child {
  border-bottom: none;
}
.bot-interview-mode:hover {
  background: #F8FAFC;
}
.bot-mode-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.bot-mode-info {
  flex: 1;
}
.bot-mode-name {
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
}
.bot-mode-desc {
  font-size: 12px;
  color: #64748B;
  margin-top: 2px;
}
.bot-mode-time {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 500;
  flex-shrink: 0;
}

/* --- AI Interview Header --- */
.bot-interview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border-radius: 12px;
  color: white;
}
.bot-interview-avatar {
  font-size: 28px;
  flex-shrink: 0;
}
.bot-interview-name {
  font-size: 14px;
  font-weight: 700;
}
.bot-interview-role {
  font-size: 11px;
  opacity: 0.7;
}
.bot-interview-live {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #EF4444;
  animation: botBlink 1.5s infinite;
}
@keyframes botBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- Interview Timer --- */
.bot-timer-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 8px;
  font-size: 12px;
  color: #0369A1;
  font-weight: 500;
}

/* --- Interview Feedback --- */
.bot-feedback-card {
  gap: 10px;
}
.bot-feedback-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.bot-fb-score {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bot-fb-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.bot-fb-dots {
  font-size: 14px;
  color: #0066CC;
  letter-spacing: 2px;
}
.bot-fb-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  padding: 8px 0;
  border-top: 1px solid #F1F5F9;
}
.bot-fb-improved {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  padding: 10px 12px;
}
.bot-fb-improved-label {
  font-size: 11px;
  font-weight: 700;
  color: #15803D;
  margin-bottom: 4px;
}
.bot-fb-improved-text {
  font-size: 13px;
  color: #166534;
  line-height: 1.45;
  font-style: italic;
}

/* --- Interview Summary --- */
.bot-summary-card {
  align-items: center;
  text-align: center;
}
.bot-summary-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.bot-summary-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bot-summary-pct {
  position: absolute;
  font-size: 18px;
  font-weight: 800;
  color: #0066CC;
}
.bot-summary-label {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}
.bot-summary-section {
  width: 100%;
  text-align: left;
}
.bot-summary-heading {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}
.bot-summary-item {
  font-size: 13px;
  padding: 3px 0;
}
.bot-summary-item.good {
  color: #15803D;
}
.bot-summary-item.improve {
  color: #B45309;
}
.bot-summary-next {
  font-size: 12px;
  color: #475569;
  padding: 8px 12px;
  background: #F8FAFC;
  border-radius: 8px;
  width: 100%;
  text-align: center;
}

/* --- Learning Plan --- */
.bot-plan-week {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  background: #FAFAFA;
}
.bot-plan-week.current {
  border-color: #0066CC;
  background: #F0F7FF;
}
.bot-plan-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.bot-plan-range {
  font-size: 12px;
  font-weight: 700;
  color: #0066CC;
}
.bot-plan-focus {
  font-size: 12px;
  font-weight: 500;
  color: #334155;
}
.bot-plan-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: #0066CC;
  color: white;
  margin-left: auto;
}
.bot-plan-courses {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}
.bot-plan-course {
  font-size: 11px;
  padding: 3px 8px;
  background: #E5E7EB;
  border-radius: 6px;
  color: #475569;
}
.bot-plan-week.current .bot-plan-course {
  background: #DBEAFE;
  color: #1E40AF;
}
.bot-plan-progress {
  height: 4px;
  background: #E5E7EB;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.bot-plan-fill {
  height: 100%;
  background: #0066CC;
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* --- Video Lesson --- */
.bot-video-card {
  overflow: hidden;
  padding: 0;
}
.bot-video-thumb {
  height: 140px;
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bot-video-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.bot-video-play:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}
.bot-video-duration {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 8px;
  border-radius: 4px;
}
.bot-video-info {
  padding: 12px 14px;
}
.bot-video-chapter {
  font-size: 11px;
  color: #0066CC;
  font-weight: 600;
  margin-bottom: 3px;
}
.bot-video-title {
  font-size: 14px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 2px;
}
.bot-video-instructor {
  font-size: 12px;
  color: #64748B;
}

/* --- Quiz --- */
.bot-quiz-card {
  gap: 8px;
}
.bot-quiz-question {
  font-size: 14px;
  font-weight: 500;
  color: #1E293B;
  line-height: 1.5;
}
.bot-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bot-quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: white;
  cursor: pointer;
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
  transition: all 0.2s;
  text-align: left;
  font-family: inherit;
  width: 100%;
}
.bot-quiz-option:hover:not(.disabled) {
  border-color: #0066CC;
  background: #F0F7FF;
}
.bot-quiz-option.selected {
  border-color: #0066CC;
  background: #F0F7FF;
}
.bot-quiz-option.correct {
  border-color: #16A34A;
  background: #F0FDF4;
}
.bot-quiz-option.wrong {
  border-color: #DC2626;
  background: #FEF2F2;
}
.bot-quiz-option.disabled {
  cursor: default;
  opacity: 0.7;
}
.bot-quiz-letter {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  flex-shrink: 0;
}
.bot-quiz-option.correct .bot-quiz-letter {
  background: #16A34A;
  color: white;
}
.bot-quiz-option.wrong .bot-quiz-letter {
  background: #DC2626;
  color: white;
}

/* --- Guesstimate & Case Study --- */
.bot-case-card {
  gap: 8px;
}
.bot-case-badge {
  font-size: 11px;
  font-weight: 700;
  color: #0066CC;
  padding: 4px 10px;
  background: #EFF6FF;
  border-radius: 6px;
  align-self: flex-start;
}
.bot-case-question {
  font-size: 14px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.5;
}
.bot-case-timer {
  font-size: 12px;
  color: #D97706;
  font-weight: 600;
}
.bot-case-hints {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #FFFBEB;
  border-radius: 8px;
}
.bot-case-hint-label {
  font-size: 11px;
  font-weight: 700;
  color: #92400E;
}
.bot-case-hint {
  font-size: 12px;
  color: #78716C;
}
.bot-case-client {
  font-size: 15px;
  color: #1E293B;
}
.bot-case-scenario {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
}
.bot-case-data {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: #F8FAFC;
  border-radius: 8px;
}
.bot-case-data-label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}
.bot-case-data-item {
  font-size: 12px;
  color: #475569;
}

/* --- Resume Review --- */
.bot-resume-score {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}
.bot-resume-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bot-resume-pct {
  position: absolute;
  font-size: 14px;
  font-weight: 800;
  color: #334155;
}
.bot-resume-issues {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bot-resume-issue {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}
.bot-issue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}
.bot-resume-issue.high .bot-issue-dot {
  background: #DC2626;
}
.bot-resume-issue.medium .bot-issue-dot {
  background: #F59E0B;
}
.bot-resume-issue.low .bot-issue-dot {
  background: #22C55E;
}
.bot-resume-sample {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.bot-resume-before, .bot-resume-after {
  font-size: 12px;
  line-height: 1.45;
  padding: 8px 10px;
  border-radius: 8px;
}
.bot-resume-before {
  background: #FEF2F2;
  color: #991B1B;
}
.bot-resume-after {
  background: #F0FDF4;
  color: #166534;
}
.bot-resume-label {
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
}

/* --- Job Recommendations --- */
.bot-job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}
.bot-job-row:last-child {
  border-bottom: none;
}
.bot-job-main {
  flex: 1;
}
.bot-job-title {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
}
.bot-job-company {
  font-size: 12px;
  color: #64748B;
}
.bot-job-ctc {
  font-size: 12px;
  color: #16A34A;
  font-weight: 600;
  margin-top: 2px;
}
.bot-job-right {
  text-align: center;
  flex-shrink: 0;
  margin-left: 12px;
}
.bot-job-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: #FEE2E2;
  color: #DC2626;
  margin-bottom: 4px;
  display: inline-block;
}
.bot-job-match {
  font-size: 18px;
  font-weight: 800;
  color: #0066CC;
  line-height: 1;
}
.bot-job-match-label {
  font-size: 10px;
  color: #94A3B8;
}

/* --- Motivation Card --- */
.bot-motivation-card {
  text-align: center;
  padding: 20px 16px;
  background: linear-gradient(135deg, #F0F9FF 0%, #EFF6FF 100%);
  border: 1px solid #BFDBFE;
  border-radius: 14px;
}
.bot-motivation-quote {
  font-size: 16px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 4px;
}
.bot-motivation-author {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 14px;
}
.bot-motivation-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.bot-mstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.bot-mstat-val {
  font-size: 16px;
  font-weight: 700;
  color: #1E293B;
}
.bot-mstat-label {
  font-size: 10px;
  color: #64748B;
  font-weight: 500;
}

/* --- Mobile Responsive --- */
@media (max-width: 480px) {
  .bot-panel {
    width: calc(100vw - 16px);
    right: 8px;
    bottom: 80px;
    max-height: calc(100vh - 100px);
    border-radius: 14px;
  }
  #bot-fab {
    bottom: 16px;
    right: 16px;
  }
  .bot-nudge {
    right: 16px;
    bottom: 82px;
    max-width: calc(100vw - 92px);
  }
}

/* ============================================
   CAREER DISCOVERY TEST STYLES
   All prefixed with .cd- to avoid conflicts
   ============================================ */

/* ---- Dashboard Featured Card ---- */
.cd-dashboard-card {
  position: relative;
  background: linear-gradient(135deg, #0066CC 0%, #004D99 100%);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.25);
}

.cd-dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.35);
}

.cd-dashboard-card.cd-completed {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.25);
}

.cd-dashboard-card.cd-completed:hover {
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
}

.cd-card-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cd-card-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.cd-card-left {
  flex: 1;
  min-width: 0;
}

.cd-card-badge {
  margin-bottom: 8px;
}

.cd-badge-new {
  display: inline-block;
  background: var(--bi-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.cd-badge-done {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.cd-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.cd-card-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

.cd-card-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cd-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.cd-card-cta {
  background: #fff;
  color: var(--bi-blue);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.cd-card-cta:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

.cd-completed .cd-card-cta {
  color: #059669;
}

.cd-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 1;
}

.cd-card-meta span {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ---- Test Container ---- */
.cd-container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 16px;
}

.cd-test-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 40px);
  padding-top: 16px;
}

/* ---- Header ---- */
.cd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}

.cd-header-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ---- Intro Card ---- */
.cd-intro-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  margin-top: 16px;
  border: 1px solid var(--border);
}

.cd-intro-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--bi-blue-light);
  color: var(--bi-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.cd-intro-card h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--bi-blue-dark);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.cd-intro-subtitle {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cd-intro-info {
  text-align: left;
  background: var(--bi-blue-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.cd-intro-info h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bi-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.cd-intro-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cd-intro-info li {
  font-size: 0.88rem;
  color: var(--text-primary);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.cd-intro-info li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bi-blue);
}

.cd-start-btn {
  width: auto;
  display: inline-flex;
}
.cd-resume-prompt {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
  text-align: center;
}
.cd-resume-prompt p {
  font-size: 0.85rem;
  color: #1e40af;
  margin-bottom: 12px;
  font-weight: 500;
}

/* ---- Progress Bar ---- */
.cd-progress-bar {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.cd-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cd-progress-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.cd-progress-pct {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bi-blue);
}

.cd-progress-track {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.cd-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bi-blue), var(--bi-orange));
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Question Card ---- */
.cd-question-card {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-white);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}

.cd-question-content {
  flex: 1;
}

.cd-section-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bi-blue-light);
  color: var(--bi-blue);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.cd-question-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ---- Options ---- */
.cd-options-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cd-option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
}

.cd-option-btn:hover {
  border-color: var(--bi-blue);
  background: var(--bi-blue-light);
}

.cd-option-btn.selected {
  border-color: var(--bi-blue);
  background: var(--bi-blue-light);
  box-shadow: 0 0 0 1px var(--bi-blue);
}

.cd-option-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-light);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cd-option-btn.selected .cd-option-radio {
  border-color: var(--bi-blue);
  background: var(--bi-blue);
}

.cd-option-btn.selected .cd-option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.cd-option-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

.cd-option-btn.selected .cd-option-label {
  color: var(--bi-blue-dark);
  font-weight: 600;
}

/* ---- Navigation ---- */
.cd-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.cd-nav-spacer {
  flex: 1;
}

.cd-btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-white);
  color: var(--text-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cd-btn-back:hover {
  border-color: var(--text-muted);
  background: var(--bg);
}

.cd-btn-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bi-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 28px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

.cd-btn-next:hover {
  background: var(--bi-blue-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.cd-btn-next:active {
  transform: translateY(0);
}

.cd-btn-next:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ---- Completion Screen ---- */
.cd-complete-screen {
  text-align: center;
  padding: 48px 24px;
  margin-top: 32px;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.cd-complete-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #fff;
}

.cd-complete-icon svg {
  width: 40px;
  height: 40px;
}

.cd-complete-screen h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.cd-complete-screen p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

.cd-complete-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.cd-stat {
  text-align: center;
}

.cd-stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--bi-blue);
  display: block;
}

.cd-stat-label {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Animations ---- */
@keyframes cdSlideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes cdSlideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- Mobile Responsive ---- */
@media (max-width: 640px) {
  .cd-dashboard-card {
    padding: 20px;
  }

  .cd-card-content {
    flex-direction: column;
    gap: 16px;
  }

  .cd-card-right {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .cd-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .cd-card-icon svg {
    width: 24px;
    height: 24px;
  }

  .cd-intro-card {
    padding: 28px 20px;
    margin-top: 8px;
  }

  .cd-intro-card h1 {
    font-size: 1.3rem;
  }

  .cd-intro-info {
    padding: 16px 18px;
  }

  .cd-question-card {
    padding: 20px 16px;
  }

  .cd-question-text {
    font-size: 0.93rem;
    margin-bottom: 20px;
  }

  .cd-option-btn {
    padding: 12px 14px;
    gap: 12px;
  }

  .cd-option-label {
    font-size: 0.82rem;
  }

  .cd-complete-screen {
    padding: 32px 20px;
  }

  .cd-complete-stats {
    gap: 20px;
  }

  .cd-nav-buttons {
    margin-top: 16px;
    padding-top: 16px;
  }

  .cd-btn-back {
    padding: 10px 16px;
    font-size: 0.82rem;
  }

  .cd-btn-next {
    padding: 10px 22px;
    font-size: 0.82rem;
  }

  .cd-card-meta {
    flex-wrap: wrap;
  }
}

/* ============================================
   Career Discovery Report Styles
   ============================================ */

/* Loading & Error States */
.report-loading,
.report-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
  color: var(--text-secondary);
  text-align: center;
  padding: 24px;
}
.report-error .btn-primary { margin-top: 16px; }

/* Report Container */
.report-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 0 40px;
}

/* Navigation Bar */
.report-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.report-nav-title {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.btn-export {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bi-blue);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-export:hover { background: var(--bi-blue-dark); }
.btn-export:disabled { opacity: 0.7; cursor: not-allowed; }
.loading-spinner-sm {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Report Sections */
.report-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.report-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.report-section-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}
.report-subsection-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  margin-top: 24px;
}

/* Header Section */
.report-header-section {
  background: linear-gradient(135deg, #0066CC 0%, #004D99 100%);
  color: white;
  border: none;
}
.report-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.report-brand-name {
  font-weight: 700;
  font-size: 1.05rem;
}
.report-brand-sub {
  font-size: 0.78rem;
  opacity: 0.8;
}
.report-student-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.report-student-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.82rem;
  opacity: 0.9;
  margin-bottom: 12px;
}
.report-test-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.78rem;
  opacity: 0.75;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* Hero Cards (Top 3) */
.report-hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}
.report-hero-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  border: 2px solid transparent;
  position: relative;
}
.report-hero-card.rank-1 {
  border-color: var(--bi-blue);
  background: var(--bi-blue-light);
}
.report-hero-card.rank-2 { border-color: var(--bi-orange); background: #FFF8E8; }
.report-hero-card.rank-3 { border-color: var(--bi-green); background: var(--bi-green-light); }
.report-hero-rank {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.report-hero-pct {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--bi-blue);
  margin-bottom: 6px;
}
.rank-2 .report-hero-pct { color: #D48B00; }
.rank-3 .report-hero-pct { color: var(--bi-green); }
.report-hero-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}
.report-hero-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Top 5 Bar Chart */
.report-top5-chart { margin-top: 16px; }
.report-bars { display: flex; flex-direction: column; gap: 10px; }
.report-bar-row {
  display: grid;
  grid-template-columns: 1fr 2fr 50px;
  gap: 10px;
  align-items: center;
}
.report-bar-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: right;
  line-height: 1.3;
}
.report-bar-track {
  height: 22px;
  background: var(--bg);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.report-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}
.report-bar-fill.rank-top { background: linear-gradient(90deg, #0066CC, #3399FF); }
.report-bar-fill.rank-mid { background: linear-gradient(90deg, #FCA106, #FFBC40); }
.report-bar-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Ranked Table */
.report-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -8px;
  padding: 0 8px;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.report-table th {
  background: var(--bg);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
}
.report-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.report-table .rank-cell {
  font-weight: 700;
  color: var(--text-muted);
  width: 50px;
  text-align: center;
}
.report-table .name-cell {
  font-weight: 500;
  color: var(--text-primary);
}
.report-table .score-cell { text-align: center; }
.report-table .row-top { background: rgba(0, 102, 204, 0.04); }
.report-table .row-top .rank-cell { color: var(--bi-blue); }
.report-table .row-mid { background: transparent; }
.report-table .row-low { background: rgba(0,0,0,0.01); }
.report-table .row-low .name-cell { color: var(--text-secondary); }

.fit-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.78rem;
}
.fit-high { background: var(--bi-blue-light); color: var(--bi-blue); }
.fit-mid { background: #FFF4E0; color: #B37800; }
.fit-low { background: var(--bg); color: var(--text-muted); }

.report-table-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.legend-item { display: flex; align-items: center; gap: 4px; }
.legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-top { background: var(--bi-blue); }
.dot-mid { background: var(--bi-orange); }
.dot-low { background: var(--text-muted); }

/* Charts */
.report-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.report-chart-container {
  position: relative;
  width: 100%;
  min-height: 280px;
}
.report-chart-container canvas {
  max-height: 320px;
}

/* Strengths & Development */
.report-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.report-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
}
.strengths-title { color: var(--bi-blue); border-bottom-color: var(--bi-blue); }
.development-title { color: var(--bi-orange); border-bottom-color: var(--bi-orange); }

.report-competency-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: background 0.2s;
}
.report-competency-card.strength { background: rgba(0, 102, 204, 0.03); }
.report-competency-card.strength:hover { background: rgba(0, 102, 204, 0.06); }
.report-competency-card.development { background: rgba(252, 161, 6, 0.03); }
.report-competency-card.development:hover { background: rgba(252, 161, 6, 0.06); }

.report-comp-rank {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 2px;
}
.report-comp-info { flex: 1; }
.report-comp-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.report-comp-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.report-comp-score {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bi-blue);
  white-space: nowrap;
}
.development .report-comp-score { color: var(--bi-orange); }
.report-comp-max {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Deep Dive */
.report-deepdive {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}
.report-deepdive:last-child { margin-bottom: 0; }
.report-deepdive-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.report-deepdive-rank {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--bi-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.report-deepdive-title h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.report-deepdive-fit {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bi-blue);
  background: var(--bi-blue-light);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}
.report-deepdive-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.report-deepdive-body h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  margin-top: 12px;
}
.report-deepdive-body h4:first-child { margin-top: 0; }
.report-roles-list,
.report-focus-list {
  list-style: none;
  padding: 0;
}
.report-roles-list li,
.report-focus-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 4px 0 4px 16px;
  position: relative;
  line-height: 1.45;
}
.report-roles-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bi-blue);
}
.report-focus-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bi-orange);
}

/* Competency Mini Bars (Deep Dive) */
.report-comp-bars { display: flex; flex-direction: column; gap: 8px; }
.report-comp-bar-row {
  display: grid;
  grid-template-columns: 1fr 80px 32px;
  gap: 8px;
  align-items: center;
}
.report-comp-bar-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
}
.report-comp-bar-track {
  height: 8px;
  background: rgba(0,0,0,0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.report-comp-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
.report-comp-bar-fill.good { background: var(--bi-green); }
.report-comp-bar-fill.average { background: var(--bi-orange); }
.report-comp-bar-fill.low { background: var(--bi-red); }
.report-comp-bar-val {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}
.report-no-data {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Coaching Notes */
.report-coaching-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.report-coaching-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border-light);
}
.report-coaching-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.report-coaching-card ul {
  list-style: none;
  padding: 0;
}
.report-coaching-card li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding: 5px 0 5px 14px;
  position: relative;
}
.report-coaching-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bi-blue);
}
.report-coaching-card li strong {
  color: var(--text-primary);
  font-weight: 600;
}
.report-coaching-card li em {
  color: var(--bi-blue);
  font-style: normal;
  font-weight: 500;
}

/* Next Steps */
.report-next-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.report-step-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.report-step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--bi-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.report-step-content h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.report-step-content p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.report-step-content strong {
  color: var(--bi-blue);
  font-weight: 600;
}

/* Resources */
.report-resources {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border-light);
}
.report-resources h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.report-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.report-resource-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--bi-blue-light);
  color: var(--bi-blue);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.2s;
  text-decoration: none;
}
.report-resource-link:hover { background: #D0E6FF; }

/* Footer */
.report-footer {
  padding: 24px 24px 0;
  margin: 16px;
  border-top: 2px solid var(--border);
  text-align: center;
}
.report-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.report-footer-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 500px;
  margin: 0 auto 8px;
}
.report-footer-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* View Report CTA on completion screen */
.cd-report-cta {
  width: 100%;
  background: var(--bi-blue);
  color: white;
  font-weight: 600;
}
.cd-report-cta:hover {
  background: var(--bi-blue-dark);
}

/* View Report button on dashboard CD card */
.cd-report-btn {
  background: var(--bi-blue) !important;
  color: white !important;
  border-radius: var(--radius-sm) !important;
  margin-bottom: 6px;
}
.cd-report-btn:hover {
  background: var(--bi-blue-dark) !important;
}

/* ---- PDF Export specific ---- */
.pdf-export .report-nav { display: none !important; }
.pdf-export .report-section {
  box-shadow: none;
  border: 1px solid #E5E7EB;
  break-inside: avoid;
}
.pdf-export .report-hero-cards { break-inside: avoid; }
.pdf-export .report-deepdive { break-inside: avoid; }
.pdf-export .report-coaching-card { break-inside: avoid; }
.pdf-export .report-step-card { break-inside: avoid; }
.pdf-export .report-competency-card { break-inside: avoid; }

/* ---- Responsive: Mobile ---- */
@media (max-width: 700px) {
  .report-section {
    margin: 8px;
    padding: 20px 16px;
  }
  .report-hero-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .report-bar-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .report-bar-label {
    text-align: left;
    font-weight: 500;
  }
  .report-charts-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .report-chart-container { min-height: 240px; }
  .report-two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .report-deepdive-body {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .report-coaching-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .report-table { font-size: 0.75rem; }
  .report-table th, .report-table td { padding: 8px 6px; }
  .report-table-legend {
    flex-wrap: wrap;
    gap: 8px;
  }
  .report-nav { padding: 10px 12px; }
  .btn-export { padding: 6px 12px; font-size: 0.78rem; }
  .report-comp-bar-row {
    grid-template-columns: 1fr 60px 28px;
  }
}

/* ---- Print Styles ---- */
@media print {
  body {
    background: white;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .report-nav,
  .no-print,
  .btn-export { display: none !important; }
  .report-container {
    padding: 0;
    max-width: 100%;
  }
  .report-section {
    box-shadow: none;
    border: 1px solid #ddd;
    margin: 8px 0;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .report-header-section {
    background: #0066CC !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .report-hero-card { break-inside: avoid; }
  .report-deepdive {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .report-coaching-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .report-table {
    page-break-inside: auto;
  }
  .report-table tr {
    page-break-inside: avoid;
  }
  .report-charts-row {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .report-footer {
    page-break-inside: avoid;
  }
  .report-step-card {
    break-inside: avoid;
  }
}

/* ============================================
   CD-First Dashboard — Role Group Fit Cards
   ============================================ */

/* CD Summary Card */
.cd-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bi-green-light);
  border: 1px solid var(--bi-green);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 14px;
}
.cd-summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cd-summary-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bi-green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cd-summary-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.cd-summary-status {
  font-size: 0.78rem;
  color: var(--bi-green);
  font-weight: 500;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

/* Fit Cards Grid */
.rg-fit-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .rg-fit-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual Fit Card */
.rg-fit-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.rg-fit-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--bi-blue);
  transform: translateY(-1px);
}

.rg-fit-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rg-fit-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.rg-fit-emoji {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}
.rg-fit-info {
  min-width: 0;
}
.rg-fit-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rg-fit-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Fit Score Circle */
.rg-fit-right {
  flex-shrink: 0;
}
.fit-score-circle {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--fit-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 1px;
}
.fit-score-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fit-color);
  line-height: 1;
}
.fit-score-pct {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--fit-color);
  line-height: 1;
  margin-top: 2px;
}

/* Competency Pills */
.fit-competencies {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.fit-comp-pill {
  display: inline-block;
  background: var(--bi-blue-50);
  color: var(--bi-blue);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* No scores prompt */
.cd-no-scores-prompt {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.cd-no-scores-prompt p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* Bucket fit badge in role group detail */
.ba-fit-badge {
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 8px;
}

/* Role group detail header fit indicator */
.rg-detail-fit {
  font-size: 0.82rem;
  font-weight: 600;
  margin-left: auto;
  padding-right: 8px;
}

/* ============================================
   Psychometric Tests Styles
   ============================================ */

/* Dashboard — test cards grid */
.psych-tests-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 600px) {
  .psych-tests-grid {
    grid-template-columns: 1fr;
  }
}
.psych-test-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.psych-test-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--bi-blue);
}
.ptc-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}
.ptc-info {
  flex: 1;
  min-width: 0;
}
.ptc-name {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.ptc-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.ptc-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  white-space: nowrap;
}
.ptc-status.completed {
  background: var(--bi-green-light);
  color: var(--bi-green);
}
.ptc-status.not-started {
  background: var(--bi-blue-light);
  color: var(--bi-blue);
}

/* Psychometric Container (shared by all psych screens) */
.psych-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 16px 40px;
}
.psych-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}
.psych-header-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.psych-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Hub Cards */
.psych-hub-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.psych-hub-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.psych-hub-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--bi-blue);
}
.phc-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.phc-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.phc-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.phc-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* About Box */
.psych-about-box {
  background: var(--bi-blue-50);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}
.psych-about-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.psych-about-box p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Steps */
.psych-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.psych-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.psych-step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--bi-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}
.psych-step-content {
  flex: 1;
}
.psych-step-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.psych-step-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* External link button */
.psych-open-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 16px;
  border: 1.5px solid var(--bi-blue);
  border-radius: var(--radius-sm);
  color: var(--bi-blue);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.psych-open-link:hover {
  background: var(--bi-blue);
  color: white;
}

/* CTA Button (full width) */
.psych-cta-btn {
  width: 100%;
}

/* Attribution/Disclaimer Box */
.psych-attr-box {
  background: var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 20px;
}
.psych-attr-box strong {
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}

/* Fetch by Result ID */
.psych-fetch-box {
  background: var(--bi-blue-50);
  border: 1px solid var(--bi-blue-light);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.psych-fetch-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.psych-fetch-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.psych-fetch-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: monospace;
  background: var(--bg-white);
}
.psych-fetch-input:focus {
  outline: none;
  border-color: var(--bi-blue);
  box-shadow: 0 0 0 2px rgba(0,102,204,0.15);
}
.psych-fetch-btn {
  padding: 8px 16px;
  font-size: 0.82rem;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}
.psych-fetch-status {
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
}
.psych-fetch-status.loading { color: var(--bi-blue); }
.psych-fetch-status.success { color: var(--bi-green); font-weight: 500; }
.psych-fetch-status.error { color: var(--bi-red); }
.psych-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.psych-divider::before,
.psych-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Slider Groups */
.psych-slider-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.psych-slider-group {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.psych-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.psych-slider-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.psych-slider-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.psych-slider-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bi-blue);
  min-width: 48px;
  text-align: right;
  flex-shrink: 0;
}

/* Range Input Styling */
.psych-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
}
.psych-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bi-blue);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.psych-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bi-blue);
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* Number input for RIASEC */
.psych-num-input {
  width: 64px;
  padding: 6px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--bi-blue);
  font-family: inherit;
  flex-shrink: 0;
}
.psych-num-input:focus {
  border-color: var(--bi-blue);
  outline: none;
}

/* RIASEC Code Display */
.riasec-code-display {
  text-align: center;
  padding: 14px;
  background: var(--bi-blue-50);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 16px;
}
.riasec-code-display strong {
  font-size: 1.2rem;
  color: var(--bi-blue);
  letter-spacing: 2px;
}

/* Save Error */
.psych-save-error {
  color: var(--bi-red);
  font-size: 0.78rem;
  text-align: center;
  margin-top: 8px;
  min-height: 18px;
}

/* VIA Entry */
.via-section-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.via-count {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.via-ranked-list {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  min-height: 48px;
  margin-bottom: 8px;
}
.via-empty {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
  padding: 12px;
}
.via-rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-light);
}
.via-rank-item:last-child {
  border-bottom: none;
}
.via-rank-num {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--bi-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}
.via-rank-name {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.via-rank-remove {
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  line-height: 1;
}
.via-rank-remove:hover {
  background: #FEE2E5;
  color: var(--bi-red);
}

/* VIA Pills */
.via-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.via-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
  background: var(--bg-white);
}
.via-pill:hover:not(.disabled) {
  border-color: var(--bi-blue);
  background: var(--bi-blue-50);
  color: var(--bi-blue);
}
.via-pill.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.via-pill.selected {
  background: var(--bi-blue);
  color: white;
  border-color: var(--bi-blue);
}

/* Results Screen */
.psych-results-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}
.psych-results-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.psych-chart-container {
  position: relative;
  width: 100%;
}

/* VIA Results */
.via-results-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.via-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
}
.via-result-item:nth-child(-n+5) {
  background: var(--bi-blue-50);
}
.via-result-rank {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--bi-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  flex-shrink: 0;
}
.via-result-name {
  flex: 1;
  font-size: 0.82rem;
  color: var(--text-primary);
}
.via-signature-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--bi-blue);
  background: var(--bi-blue-light);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* Career Impact Table */
.career-impact-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.cit-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--border-light);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.cit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
}
.cit-name {
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cit-boost {
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
  min-width: 48px;
  text-align: right;
}

/* Print / Mobile */
@media (max-width: 500px) {
  .psych-slider-header {
    flex-direction: column;
    gap: 6px;
  }
  .psych-slider-value {
    text-align: left;
  }
  .psych-tests-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PROFILE ENGINE STYLES
   ============================================ */

/* Dashboard Profile Card */
.profile-dash-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.profile-dash-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--bi-blue);
}

.profile-upload-prompt {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.profile-prompt-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bi-blue-50);
  color: var(--bi-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-prompt-info {
  flex: 1;
  min-width: 0;
}

.profile-prompt-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.profile-prompt-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.profile-upload-prompt .btn-primary {
  flex-shrink: 0;
  white-space: nowrap;
}

.profile-summary-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}

.profile-mini-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bi-green-light);
  color: var(--bi-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-mini-info {
  flex: 1;
  min-width: 0;
}

.profile-mini-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.profile-mini-spec {
  font-size: 0.76rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-summary-mini .btn-secondary {
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
}

/* Upload Screen */
.profile-upload-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 20px;
}

.profile-upload-header {
  text-align: center;
  margin-bottom: 28px;
}

.profile-upload-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.profile-upload-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.profile-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  background: var(--bi-blue-50);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.profile-upload-zone:hover,
.profile-upload-zone.drag-over {
  border-color: var(--bi-blue);
  background: var(--bi-blue-light);
}

.profile-upload-zone-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.profile-upload-zone-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-upload-zone-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.profile-upload-status {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.profile-upload-status.error {
  color: var(--bi-red);
}

.profile-upload-status.success {
  color: var(--bi-green);
}

.profile-parsed-summary {
  margin-top: 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
}

.profile-parsed-summary h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.profile-parsed-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
}

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

.profile-parsed-label {
  color: var(--text-secondary);
}

.profile-parsed-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  max-width: 60%;
}

.profile-upload-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.profile-upload-actions .btn-primary,
.profile-upload-actions .btn-secondary {
  flex: 1;
}

.profile-manual-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--bi-blue);
  cursor: pointer;
}

.profile-manual-link:hover {
  text-decoration: underline;
}

/* Academic Form */
.academic-form-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 20px;
}

.academic-form-header {
  margin-bottom: 24px;
}

.academic-form-header h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.academic-form-header p {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.academic-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.academic-section-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.academic-field {
  margin-bottom: 14px;
}

.academic-field:last-child {
  margin-bottom: 0;
}

.academic-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.academic-field input,
.academic-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-primary);
  background: var(--bg-white);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.academic-field input:focus,
.academic-field select:focus {
  border-color: var(--bi-blue);
}

.academic-field input[readonly] {
  background: var(--bg);
  color: var(--text-secondary);
}

.academic-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.academic-form-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.academic-form-actions .btn-primary {
  flex: 1;
}

.academic-form-actions .btn-secondary {
  flex-shrink: 0;
}

/* Profile Summary */
.profile-summary-container {
  max-width: 580px;
  margin: 0 auto;
  padding: 32px 20px;
}

.profile-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.profile-summary-header h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-summary-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 16px;
}

.profile-summary-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

/* Education Timeline */
.pe-timeline {
  position: relative;
  padding-left: 24px;
}

.pe-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.pe-timeline-item {
  position: relative;
  padding-bottom: 16px;
}

.pe-timeline-item:last-child {
  padding-bottom: 0;
}

.pe-timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bi-blue);
  border: 2px solid var(--bg-white);
}

.pe-timeline-degree {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.pe-timeline-institution {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pe-timeline-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Experience List */
.pe-exp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pe-exp-item {
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 8px;
}

.pe-exp-role {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--text-primary);
}

.pe-exp-company {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pe-exp-domain-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: var(--bi-blue-light);
  color: var(--bi-blue);
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 4px;
}

.pe-sip-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: var(--bi-green-light);
  color: var(--bi-green);
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 3px;
}

/* Skills & Certs Pills */
.pe-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pe-pill {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.pe-pill.cert {
  background: var(--bi-blue-50);
  border-color: var(--bi-blue-light);
  color: var(--bi-blue);
}

/* Career Edge Scores */
.profile-edge-section {
  margin-top: 8px;
}

.profile-edge-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.profile-edge-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-edge-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-white);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.profile-edge-card .edge-emoji {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.profile-edge-card .edge-info {
  flex: 1;
  min-width: 0;
}

.profile-edge-card .edge-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edge-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.edge-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.profile-edge-card .edge-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
  min-width: 36px;
  text-align: right;
}

/* Back button for profile screens */
.profile-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  font-size: 0.82rem;
  color: var(--bi-blue);
  cursor: pointer;
  background: none;
  border: none;
  margin-bottom: 12px;
}

.profile-back-btn:hover {
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 500px) {
  .profile-upload-prompt {
    flex-wrap: wrap;
    gap: 12px;
  }
  .profile-upload-prompt .btn-primary {
    width: 100%;
  }
  .profile-summary-mini {
    flex-wrap: wrap;
    gap: 10px;
  }
  .profile-summary-mini .btn-secondary {
    width: 100%;
    text-align: center;
  }
  .profile-mini-spec {
    white-space: normal;
  }
  .academic-field-row {
    grid-template-columns: 1fr;
  }
  .profile-upload-zone {
    padding: 32px 16px;
  }
}

/* ============================================
   CAREER INTELLIGENCE HUB STYLES
   ============================================ */

/* Container */
.ci-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* Header */
.ci-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ci-header h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  text-align: center;
}

/* Filter Bar */
.ci-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ci-filter-bar::-webkit-scrollbar {
  display: none;
}

.ci-filter-tab {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}

.ci-filter-tab:hover {
  border-color: var(--bi-blue);
  color: var(--bi-blue);
}

.ci-filter-tab.active {
  background: var(--bi-blue);
  color: #fff;
  border-color: var(--bi-blue);
}

/* Search */
.ci-search-wrap {
  position: relative;
  margin-bottom: 16px;
}

.ci-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.ci-search {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-primary);
  background: var(--bg-white);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.ci-search:focus {
  border-color: var(--bi-blue);
}

/* Sections */
.ci-section {
  margin-top: 20px;
}

.ci-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ci-section-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}

/* Horizontal Scroll */
.ci-horizontal-scroll {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ci-horizontal-scroll::-webkit-scrollbar {
  display: none;
}

/* Cards List */
.ci-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Content Card */
.ci-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.ci-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-color: #d0d5dd;
}

.ci-card.compact {
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* Card Header */
.ci-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ci-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.ci-read-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.ci-diff-badge {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: capitalize;
}

.ci-bookmark-btn {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.15s;
  flex-shrink: 0;
}

.ci-bookmark-btn:hover,
.ci-bookmark-btn.active {
  color: var(--bi-orange);
}

/* Community Badge */
.ci-community-badge {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.ci-verified {
  color: var(--bi-green);
  font-weight: 500;
}

.ci-under-review {
  color: var(--bi-orange);
  font-weight: 500;
}

.ci-rejected {
  color: var(--bi-red);
  font-weight: 500;
}

/* Video Thumbnail */
.ci-video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
}

.ci-video-thumb-large {
  margin-top: 8px;
  margin-bottom: 16px;
}

.ci-play-overlay {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #DC2626;
}

/* Card Title & Summary */
.ci-card-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.35;
  margin-top: 4px;
}

.ci-card-summary {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.5;
}

.ci-card-summary.compact {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tags */
.ci-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.ci-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg);
  border-radius: 20px;
  font-size: 0.68rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ci-tag-removable {
  cursor: default;
  padding-right: 4px;
}

.ci-tag-remove {
  cursor: pointer;
  margin-left: 3px;
  color: var(--text-muted);
  font-weight: 700;
}

.ci-tag-remove:hover {
  color: var(--bi-red);
}

/* Expandable Sections */
.ci-expandable {
  margin-top: 10px;
  border-top: 1px solid var(--border);
}

.ci-expandable-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
}

.ci-expandable-header:hover {
  color: var(--bi-blue);
}

.ci-chevron {
  font-size: 0.7rem;
  transition: transform 0.2s;
  color: var(--text-muted);
}

.ci-expandable.open .ci-chevron {
  transform: rotate(180deg);
}

.ci-expandable-content {
  display: none;
  padding-bottom: 8px;
}

.ci-expandable.open .ci-expandable-content {
  display: block;
  animation: ci-fadeIn 0.2s ease;
}

@keyframes ci-fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* GD Section */
.ci-gd-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.ci-gd-col-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.ci-gd-point {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  padding: 4px 8px;
  margin-bottom: 4px;
  border-radius: 6px;
}

.ci-gd-for .ci-gd-point {
  background: #f0fdf4;
}

.ci-gd-against .ci-gd-point {
  background: #fef2f2;
}

.ci-gd-stats {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.ci-gd-stat {
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 4px 8px;
  margin-bottom: 4px;
  background: #eff6ff;
  border-radius: 6px;
  line-height: 1.45;
}

.ci-angle-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Actions */
.ci-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ci-action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.ci-action input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--bi-blue);
  cursor: pointer;
  flex-shrink: 0;
}

.ci-action input[type=checkbox]:checked + span {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Card Footer */
.ci-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.ci-relevant-areas {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.ci-relevant-pill {
  display: inline-block;
  padding: 2px 6px;
  background: var(--bi-blue-50);
  color: var(--bi-blue);
  font-size: 0.68rem;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
}

.ci-time-source {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Empty State */
.ci-empty {
  text-align: center;
  padding: 40px 20px;
}

.ci-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.ci-empty-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Load More */
.ci-load-more {
  width: 100%;
  margin-top: 12px;
}

/* ---- Dashboard Intel Card ---- */
.intel-dash-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
  margin-bottom: 16px;
}

.intel-dash-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-color: #d0d5dd;
}

.idc-left {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.idc-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.idc-info {
  min-width: 0;
}

.idc-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.idc-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.idc-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.idc-badge {
  display: inline-block;
  padding: 2px 10px;
  background: var(--bi-blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
}

/* ---- Detail View ---- */
.ci-detail-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.ci-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ci-detail-actions-row {
  display: flex;
  gap: 8px;
}

.ci-detail-hero {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ci-detail-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 10px;
}

.ci-detail-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ci-detail-source {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.ci-detail-source a {
  color: var(--bi-blue);
  text-decoration: none;
}

.ci-detail-source a:hover {
  text-decoration: underline;
}

.ci-detail-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.ci-detail-section h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.ci-detail-footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- Submit Screen ---- */
.ci-submit-intro {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.ci-submit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ci-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ci-form-field label {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.ci-form-field textarea {
  resize: vertical;
  min-height: 72px;
}

/* Tags Input */
.ci-tags-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
  min-height: 38px;
  align-items: center;
}

.ci-tag-input {
  border: none;
  outline: none;
  font-size: 0.85rem;
  color: var(--text-primary);
  flex: 1;
  min-width: 100px;
  background: transparent;
  padding: 2px 0;
}

/* How It Works */
.ci-how-it-works {
  margin-top: 24px;
  padding: 16px;
  background: var(--bi-blue-50);
  border-radius: var(--radius);
  border: 1px solid var(--bi-blue-light);
}

.ci-hiw-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.ci-hiw-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.45;
}

.ci-hiw-num {
  width: 20px;
  height: 20px;
  background: var(--bi-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Submit Success */
.ci-submit-success {
  text-align: center;
  padding: 40px 20px;
}

.ci-success-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.ci-success-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.ci-success-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Submission List */
.ci-submission-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.ci-submission-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ci-submission-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 10px;
}

/* ---- Mobile Responsive ---- */
@media (max-width: 500px) {
  .ci-header h1 {
    font-size: 1rem;
  }
  .ci-card.compact {
    min-width: 260px;
    max-width: 290px;
  }
  .ci-gd-section {
    grid-template-columns: 1fr;
  }
  .intel-dash-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .idc-right {
    align-self: flex-end;
  }
  .ci-detail-title {
    font-size: 1.15rem;
  }
}

.ci-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Admin Pipeline Controls */
.ci-admin-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.ci-admin-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #92400e;
  margin-right: 4px;
}
.ci-admin-btn {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #d97706;
  border-radius: 6px;
  background: #fff;
  color: #92400e;
  cursor: pointer;
  transition: background 0.15s;
}
.ci-admin-btn:hover { background: #fde68a; }
.ci-admin-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ci-admin-status {
  font-size: 0.75rem;
  color: #065f46;
  margin-left: auto;
}

/* ===== Career Aspiration — open-text question ===== */
.asp-open-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text, #1e293b);
  background: #fff;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.asp-open-textarea:focus {
  outline: none;
  border-color: var(--bi-blue, #0066cc);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}
.asp-open-textarea::placeholder { color: var(--text-muted, #94a3b8); }
