:root {
  --purple: #7C3AED;
  --purple-dark: #5B21B6;
  --blue: #2563EB;
  --teal: #0D9488;
  --green: #10B981;
  --amber: #F59E0B;
  --red: #DC2626;
  --navy: #1E293B;
  --slate: #64748B;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --gradient: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  --radius: 14px;
  --shadow: 0 1px 3px rgba(30, 41, 59, 0.08), 0 1px 2px rgba(30, 41, 59, 0.06);
  --shadow-lg: 0 10px 30px rgba(30, 41, 59, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--navy);
}

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

/* ---------- Auth pages ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  padding: 24px;
}

.auth-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}

.auth-brand .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 800;
}
.auth-brand .logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-logo-icon { width: 34px; height: 34px; border-radius: 8px; }

.auth-brand p {
  color: var(--slate);
  font-size: 14px;
  margin: 4px 0 0;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--navy);
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.field-hint {
  font-size: 12px;
  color: var(--slate);
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  width: 100%;
}

.btn-primary:hover { opacity: 0.92; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn-danger {
  background: #FEF2F2;
  color: var(--red);
  border: 1.5px solid #FECACA;
}

.btn-sm { padding: 7px 12px; font-size: 13px; }
/* btn-primary is width:100% for form submits; a small primary button sitting
   in a row of actions (Save / Applied / Learn more) must not stretch. */
.btn-primary.btn-sm { width: auto; }

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--slate);
}

.alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 16px;
  display: none;
}

.alert.show { display: block; }
.alert-error { background: #FEF2F2; color: var(--red); border: 1px solid #FECACA; }
.alert-success { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }

.password-strength {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin-top: 6px;
  overflow: hidden;
}
.password-strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.2s, background 0.2s;
}

.usage-banner {
  background: var(--gradient);
  color: #fff;
  font-size: 12.5px;
  padding: 8px 20px;
  text-align: center;
  line-height: 1.5;
}
.usage-banner-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ---------- App shell (top nav) ---------- */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topnav {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.topnav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.topnav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
}
.topnav-logo:hover { text-decoration: none; }
.topnav-logo span { color: var(--purple); }
.topnav-logo-icon { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; }

.topnav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-item {
  padding: 4px 0;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 500;
  border-bottom: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.nav-item:hover { color: var(--purple); text-decoration: none; border-bottom-color: var(--border); }
.nav-item.active { border-bottom-color: var(--navy); font-weight: 600; }

.nav-more { position: relative; }
.nav-more-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.nav-more-btn:hover { color: var(--purple); }
.nav-more-btn.active { border-bottom-color: var(--navy); font-weight: 600; }
.nav-more-btn .caret { font-size: 9px; transition: transform 0.15s; }
.nav-more.open .nav-more-btn .caret { transform: rotate(180deg); }

.nav-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 200px;
  z-index: 60;
}
.nav-more.open .nav-more-menu { display: block; }
.nav-more-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--navy);
  white-space: nowrap;
}
.nav-more-menu a:hover { background: var(--bg); text-decoration: none; color: var(--purple); }
.nav-more-menu a.active { font-weight: 600; background: #F1F5F9; }

.pc-history-audio { width: 100%; max-width: 420px; margin-top: 10px; display: block; height: 34px; }
.pc-history-noaudio { margin-top: 8px; font-size: 12px; color: var(--slate); font-style: italic; }

.pc-badge { display:inline-block; padding:2px 8px; border-radius:999px; font-size:10.5px; font-weight:700; background:#EDE9FE; color:var(--purple-dark); margin-left:6px; vertical-align:middle; }

.topnav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.topnav-logout {
  font-size: 13.5px;
  color: var(--slate);
  white-space: nowrap;
}
.topnav-logout:hover { color: var(--red); text-decoration: none; }

.main {
  padding: 32px 36px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

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

.topbar h1 {
  font-size: 24px;
  margin: 0;
}

.topbar p {
  color: var(--slate);
  margin: 4px 0 0;
  font-size: 14px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

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

.card h2 {
  font-size: 16px;
  margin: 0 0 14px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .topnav-inner { flex-wrap: wrap; gap: 14px 24px; padding: 18px 20px; }
  .topnav-links { order: 3; width: 100%; gap: 12px 18px; flex-wrap: wrap; }
  .main { padding: 24px 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.stat {
  text-align: center;
}
.stat .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--purple);
}
.stat .label {
  font-size: 13px;
  color: var(--slate);
}

.progress-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gradient);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #F1F5F9;
  color: var(--slate);
}
.tag-purple { background: #EDE9FE; color: var(--purple-dark); }
.tag-green { background: #D1FAE5; color: #047857; }
.tag-blue { background: #DBEAFE; color: #1D4ED8; }

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }

.empty-state {
  text-align: center;
  color: var(--slate);
  padding: 30px 10px;
  font-size: 14px;
}

/* ---------- Deadline reminder popup ---------- */
.reminder-overlay {
  position: fixed; inset: 0; z-index: 1002;
  background: rgba(15, 23, 42, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.reminder-modal {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 460px; padding: 22px; max-height: 85vh; overflow-y: auto;
}
.reminder-modal h3 { margin: 0 0 4px; font-size: 17px; }
.reminder-sub { margin: 0 0 14px; font-size: 12.5px; color: var(--slate); }
.reminder-list { list-style: none; margin: 0 0 16px; padding: 0; }
.reminder-list li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 9px 11px; border-radius: 9px; margin-bottom: 7px; font-size: 13px;
  border: 1px solid var(--border); background: var(--bg);
}
.reminder-list li.is-overdue { background: #FEF2F2; border-color: #FECACA; }
.reminder-list li.is-today   { background: #FFFBEB; border-color: #FDE68A; }
.reminder-when { font-weight: 700; font-size: 11px; white-space: nowrap; }
.is-overdue .reminder-when { color: #B91C1C; }
.is-today .reminder-when { color: #92400E; }
.is-soon .reminder-when { color: var(--purple-dark); }
.reminder-list .reminder-title { font-weight: 600; color: var(--navy); }
.reminder-date { font-size: 11.5px; color: var(--slate); white-space: nowrap; }
.reminder-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.reminder-settings { font-size: 12px; color: var(--slate); margin-left: auto; }

/* ---------- Journey target dates ---------- */
.jp-target {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  background: #EDE9FE;
  color: var(--purple-dark);
}
.jp-target.is-soon { background: #FFFBEB; color: #92400E; }
.jp-target.is-overdue { background: #FEF2F2; color: #B91C1C; }
.jp-target.is-done { background: #ECFDF5; color: #047857; }

/* ---------- Service hours goal ---------- */
.goal-editor { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.goal-editor label { display: block; font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.goal-editor-row { display: flex; gap: 8px; align-items: center; }
.goal-editor-row input {
  width: 110px; padding: 8px 10px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 14px; font-family: inherit;
}
.goal-editor-row input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
.goal-hint { font-size: 11.5px; color: var(--slate); margin: 8px 0 0; line-height: 1.5; }

/* ---------- Essay Studio upload ---------- */
.essay-upload-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.essay-upload-hint { font-size: 11.5px; color: var(--slate); line-height: 1.5; }
.essay-count { font-size: 11.5px; color: var(--slate); margin-top: 6px; text-align: right; }
.essay-count.over { color: var(--red); font-weight: 700; }
.upload-msg { margin: 8px 0; padding: 9px 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.5; }
.upload-ok      { background: #ECFDF5; border: 1px solid #A7F3D0; color: #047857; }
.upload-warn    { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.upload-err     { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }
.upload-working { background: #EDE9FE; border: 1px solid #DDD6FE; color: var(--purple-dark); }

/* ---------- Passport CSV import ---------- */
.import-format {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.import-format-head { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.import-format-table { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; border-radius: 8px; overflow: hidden; }
.import-format-table th, .import-format-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--border); }
.import-format-table th { background: #EDE9FE; color: var(--purple-dark); font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.import-format-table tr:last-child td { border-bottom: none; }
.import-format-table td { color: var(--slate); }
.import-format-note { font-size: 12px; color: var(--slate); line-height: 1.6; margin: 10px 0 0; }
.import-format-note code { background: #EDE9FE; color: var(--purple-dark); padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }

.import-msg { margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.6; }
.import-msg ul { margin: 8px 0 0; padding-left: 20px; }
.import-msg li { margin-bottom: 3px; }
.preview-scroll { overflow-x: auto; margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; }
.preview-table { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; }
.preview-table th { text-align: left; padding: 8px 10px; background: var(--bg); color: var(--slate); font-weight: 700; border-bottom: 1px solid var(--border); white-space: nowrap; }
.preview-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.preview-table tr:last-child td { border-bottom: none; }
.preview-table .preview-title { font-weight: 600; color: var(--navy); }
.preview-table .preview-detail { color: var(--slate); line-height: 1.5; min-width: 260px; }
.preview-table select { padding: 5px 7px; border: 1.5px solid var(--border); border-radius: 7px; font-size: 12px; font-family: inherit; max-width: 170px; }

.import-ok   { background: #ECFDF5; border: 1px solid #A7F3D0; color: #047857; }
.import-warn { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.import-err  { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }

@media (max-width: 560px) {
  .import-format-table { font-size: 11.5px; }
  .import-format-table th, .import-format-table td { padding: 6px 7px; }
}

/* ---------- Opportunity card deadline ---------- */
/* Pulled out of the muted meta line so the one time-sensitive fact on the
   card is scannable. Colour encodes urgency, not decoration: green = no
   deadline to miss, amber = a real date ahead, red = closing soon or past. */
.opp-deadline {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.45;
}
.opp-deadline .dl-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  flex-shrink: 0;
}
.opp-deadline .dl-value { font-weight: 600; }
.opp-deadline .dl-count { font-weight: 700; margin-left: auto; white-space: nowrap; }

.opp-deadline.is-open   { background: #ECFDF5; border-color: #A7F3D0; color: #047857; }
.opp-deadline.is-dated  { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.opp-deadline.is-soon   { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.opp-deadline.is-past   { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.opp-deadline.is-varies { background: #F8FAFC; border-color: var(--border); color: var(--slate); }

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-bar select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-family: inherit;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s;
  pointer-events: none;
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateY(0); }

.feedback-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feedback-fab:hover { opacity: 0.92; }

.feedback-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.feedback-overlay.open { display: flex; }

.feedback-modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
  padding: 22px;
  margin: 16px;
}
.feedback-modal h3 { margin: 0 0 4px; }
.feedback-modal p { color: var(--slate); font-size: 13.5px; margin: 0 0 14px; }

.feedback-stars { display: flex; gap: 6px; margin-bottom: 14px; }
.feedback-star {
  font-size: 24px;
  cursor: pointer;
  color: var(--border);
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}
.feedback-star.active { color: var(--purple); }

.feedback-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.toast.error { background: var(--red); }

/* ---------- Legal pages (Privacy / Cookies) ---------- */
.legal-hero {
  background: var(--gradient);
  color: #fff;
  padding: 40px 36px 34px;
}
.legal-hero-inner { max-width: 760px; margin: 0 auto; }
.legal-hero-back { color: #fff; opacity: 0.85; font-size: 13.5px; font-weight: 600; }
.legal-hero-back:hover { opacity: 1; text-decoration: underline; }
.legal-hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; margin: 18px 0 8px; }
.legal-hero h1 { font-size: 30px; margin: 0 0 6px; line-height: 1.25; }
.legal-hero .updated { font-size: 13px; opacity: 0.85; margin: 0; }

.legal-wrap { max-width: 760px; margin: 0 auto; padding: 44px 24px 80px; }
.legal-wrap h2 { font-size: 18px; margin: 32px 0 10px; }
.legal-wrap h2:first-child { margin-top: 0; }
.legal-wrap p { font-size: 14.5px; line-height: 1.75; color: var(--navy); margin: 0 0 14px; }
.legal-wrap ul { margin: 0 0 14px; padding-left: 20px; }
.legal-wrap li { font-size: 14.5px; line-height: 1.75; color: var(--navy); margin-bottom: 8px; }
.legal-wrap strong { color: var(--navy); }
.legal-wrap a { font-weight: 600; }

/* ---------- Site footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 36px;
  text-align: center;
}
.site-footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.site-footer-links a { font-size: 13px; color: var(--slate); font-weight: 600; }
.site-footer-links a:hover { color: var(--purple); text-decoration: none; }
.site-footer-note { font-size: 12px; color: var(--slate); margin: 0; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  z-index: 1001;
}
.cookie-banner-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }
.cookie-banner-text { font-size: 13px; line-height: 1.55; color: var(--navy); }
.cookie-banner-text a { font-weight: 600; }
.cookie-banner-actions { margin-top: 10px; }
@media (max-width: 480px) {
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* ---------- Consent checkbox (signup) ---------- */
.consent-field { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 18px; }
.consent-field input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 15px; height: 15px; }
.consent-field label { font-size: 13px; color: var(--slate); line-height: 1.5; font-weight: 400; }

/* ---------- Topnav settings link ---------- */
.topnav-settings { font-size: 13.5px; color: var(--slate); white-space: nowrap; }
.topnav-settings:hover { color: var(--purple); text-decoration: none; }

/* ---------- Account settings page ---------- */
.settings-section { margin-bottom: 20px; }
.settings-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.settings-row:last-child { border-bottom: none; }
.settings-row .label { font-size: 13px; color: var(--slate); }
.settings-row .value { font-size: 14px; color: var(--navy); font-weight: 600; }

/* ---------- Passport export ---------- */
.export-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.export-hint { font-size: 11.5px; color: var(--slate); line-height: 1.5; }

/* ---------- Presentation Coach: mic check ---------- */
.pc-mic { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.pc-mic-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-mic-row label { font-size: 12.5px; font-weight: 600; color: var(--navy); }
.pc-mic-row select { padding: 7px 9px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 12.5px; font-family: inherit; max-width: 260px; }
.pc-meter-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.pc-meter { flex: 0 0 160px; height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.pc-meter-fill { height: 100%; width: 0%; background: var(--slate); transition: width 0.06s linear; }
.pc-meter-fill.is-good { background: var(--green); }
.pc-meter-label { font-size: 12px; color: var(--slate); line-height: 1.5; }
.pc-meter-label.is-good { color: #047857; font-weight: 600; }
.pc-meter-label.is-bad { color: #B91C1C; font-weight: 600; }

.pc-score-max { font-size: 20px; font-weight: 700; color: var(--slate); }
.pc-history-actions { margin-top: 8px; }

/* ---------- Presentation Coach: progress chart ---------- */
.pcx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.pcx-hero { font-size: 34px; font-weight: 800; color: var(--purple); line-height: 1; }
.pcx-hero-max { font-size: 16px; font-weight: 700; color: var(--slate); }
.pcx-sub { font-size: 12.5px; color: var(--slate); margin-top: 4px; }
.pcx-trend { font-size: 12.5px; font-weight: 700; color: var(--slate); }
.pcx-trend.is-up { color: #047857; }
.pcx-trend.is-down { color: #B91C1C; }

.pcx-scroll { overflow-x: auto; }
.pcx-svg { width: 100%; min-width: 420px; height: auto; display: block; }
.pcx-grid { stroke: var(--border); stroke-width: 1; }
.pcx-axis { font-size: 10px; fill: var(--slate); }
.pcx-line { stroke: #7C3AED; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pcx-dot { fill: #7C3AED; stroke: #fff; stroke-width: 2; cursor: pointer; }
.pcx-dot:hover { r: 7; }
.pcx-value { font-size: 11px; font-weight: 700; fill: var(--navy); }

.pcx-table-toggle { margin-top: 10px; background: none; border: none; padding: 0; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--purple); cursor: pointer; }
.pcx-table-toggle:hover { text-decoration: underline; }
.pcx-table-wrap { overflow-x: auto; margin-top: 10px; }
table.pcx-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.pcx-table th, table.pcx-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--border); }
table.pcx-table th { color: var(--slate); font-weight: 700; }

/* ---------- Presentation Coach: sub-metrics ---------- */
/* Measurements get figure treatment; the coach's written observations get
   ordinary body text. Setting a sentence in big bold accent type -- as this
   grid originally did for every value -- is close to unreadable. */
.pc-substats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.pc-substat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.pc-substat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--purple);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.pc-substat-unit { font-size: 13px; font-weight: 700; color: var(--slate); margin-left: 2px; }
.pc-substat-label { font-size: 12px; color: var(--slate); margin-top: 5px; }

.pc-observations { margin-top: 20px; }
.pc-obs-heading {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--slate);
  margin: 0 0 10px;
}
.pc-obs {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.pc-obs:last-child { border-bottom: none; }
.pc-obs-label { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.pc-obs-text { font-size: 14px; line-height: 1.65; color: var(--navy); margin: 0; }
@media (max-width: 560px) {
  .pc-obs { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Opportunity personalization ---------- */
.opp-context {
  font-size: 12.5px; color: var(--slate); line-height: 1.6;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 14px;
}
.opp-context.is-on { background: #F5F3FF; border-color: #DDD6FE; color: var(--navy); }
.opp-context-meta { color: var(--slate); font-size: 11.5px; margin-left: 4px; white-space: nowrap; }
.opp-match {
  background: #EDE9FE; color: var(--purple-dark);
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.opp-why { font-size: 11.5px; color: var(--slate); margin: -6px 0 8px; }
.opp-why em { font-style: normal; font-weight: 600; color: var(--purple-dark); }

/* ---------- AI-suggested opportunities (unverified tier) ---------- */
#suggest-card { border: 1px solid #FDE68A; background: #FFFDF5; }
.suggest-warning {
  font-size: 12.5px; line-height: 1.6; color: #92400E;
  background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 10px;
  padding: 10px 13px; margin: -6px 0 14px;
}
.suggest-item { border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.suggest-item.is-saved { border-color: #A7F3D0; background: #F7FEFB; }
.suggest-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.suggest-top strong { font-size: 14.5px; margin-right: 8px; }
.suggest-kept { font-size: 11px; font-weight: 700; color: #047857; margin-left: 6px; }
.suggest-org { font-size: 12.5px; color: var(--slate); margin-top: 2px; }
.suggest-desc { font-size: 13.5px; line-height: 1.6; margin: 8px 0 6px; }
.suggest-meta { font-size: 11.5px; color: var(--slate); }
.suggest-note { font-size: 11.5px; color: #92400E; margin-top: 4px; }
.suggest-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.suggest-status-msg { font-size: 12.5px; color: var(--slate); margin-bottom: 10px; line-height: 1.6; }
.suggest-status-msg.is-ok { color: #047857; }
.suggest-status-msg.is-bad { color: #B91C1C; }
.suggest-discarded { color: var(--slate); }
.opp-new {
  background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0;
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 999px;
}
