:root {
  color-scheme: light;
  --bg: #f7f3ec;
  --surface: #ffffff;
  --ink: #0f0826;
  --muted: #6b6480;
  --line: #ece9f2;
  --line-strong: #e0dbec;
  --accent: #6546d4;
  --accent-strong: #492bb6;
  --accent-deep: #351f84;
  --accent-soft: #f1eefb;
  --mint: #46fab2;
  --coral: #fa6446;
  --cream: #fff7ec;
  --peach: #ffebd1;
  --blue: #6546d4;
  --amber: #fa6446;
  --danger: #a33d3d;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 8px 24px -8px rgba(53, 31, 132, 0.15), 0 2px 4px rgba(15, 8, 38, 0.04);
  --shadow-lg: 0 30px 60px -30px rgba(53, 31, 132, 0.35), 0 12px 24px -12px rgba(53, 31, 132, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(70, 250, 178, 0.16), transparent 26rem),
    linear-gradient(135deg, #fbfff7 0%, var(--bg) 42%, #f6f1ff 100%);
  color: var(--ink);
  font-family: Figtree, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.apply-body {
  background: #ffffff;
}

button,
select,
input,
textarea {
  font: inherit;
}

select[multiple] {
  min-height: 132px;
}

.native-multi {
  display: none;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  min-height: 92px;
  padding: 22px clamp(18px, 4vw, 48px);
  position: relative;
  z-index: 2;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 18px;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-lockup img {
  display: block;
  height: 42px;
  object-fit: contain;
  width: 124px;
}

.topbar h1 {
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 6px 0 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.nav-link,
button {
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding: 12px 18px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.nav-link {
  border: 1px solid rgba(101, 70, 212, 0.28);
  color: var(--accent);
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.shell {
  margin: 0 auto;
  max-width: 1240px;
  padding: 26px clamp(16px, 3vw, 32px) 56px;
}

.toolbar,
.summary-strip {
  align-items: end;
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.toolbar label {
  min-width: 170px;
}

.toolbar label:first-child {
  flex: 1.4;
  min-width: 260px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 7px;
}

select,
input,
textarea {
  background: white;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 48px;
  padding: 12px 15px;
}

select:focus,
input:focus,
textarea:focus {
  border-color: rgba(101, 70, 212, 0.55);
  box-shadow: 0 0 0 3px rgba(101, 70, 212, 0.12);
  outline: 0;
}

textarea {
  resize: vertical;
  width: 100%;
}

.demo-grid {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.demo-card,
.ops-card,
.log-panel,
.summary-strip > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.demo-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.card-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

h2 {
  font-size: 1.05rem;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 4px 0 0;
}

.vote-count {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 5px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.vote-count {
  background: var(--accent-soft);
  color: var(--accent);
}

.facts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.facts div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-width: 0;
  padding: 9px 10px;
}

dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

dd {
  font-size: 0.95rem;
  font-weight: 760;
  line-height: 1.22;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.lead-summary {
  background: #f7fbf8;
  border: 1px solid rgba(101, 70, 212, 0.14);
  border-radius: var(--radius);
  padding: 12px;
}

.lead-summary strong {
  color: var(--accent-strong);
  display: block;
  font-weight: 900;
  margin-bottom: 5px;
}

.lead-summary p {
  color: #342746;
  line-height: 1.45;
  margin: 0;
  white-space: pre-line;
}

.lead-summary.is-collapsed p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.summary-toggle {
  background: transparent;
  color: var(--accent-strong);
  min-height: auto;
  padding: 8px 0 0;
}

.actions {
  display: flex;
  gap: 10px;
}

button {
  border: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none !important;
}

.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 0 0 var(--accent-deep), 0 12px 24px -10px rgba(53, 31, 132, 0.55);
}

.primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.secondary {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.secondary:hover {
  background: #e8e2fb;
}

.ops-shell {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 310px;
}

.summary-strip {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.ops-filters {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.summary-strip > div {
  flex: 1;
  padding: 16px;
}

.summary-strip span {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
}

.summary-strip p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 4px 0 0;
  text-transform: uppercase;
}

.ops-list {
  display: grid;
  gap: 16px;
}

.ops-card {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 280px;
  padding: 18px;
}

.ops-card .lead-summary {
  margin-top: 12px;
}

.recommendation {
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 16px;
  padding: 12px;
}

.recommendation strong {
  color: var(--accent-strong);
}

.score-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.score-grid span,
.vote-row {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.vote-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.vote-row {
  display: grid;
  gap: 4px;
}

.vote-row p {
  color: var(--muted);
  margin: 0;
}

.assignment-panel {
  align-content: start;
  align-items: start;
  border-left: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-left: 18px;
}

.assignment-panel label,
.assignment-panel button {
  width: 100%;
}

.log-panel {
  align-self: start;
  padding: 16px;
}

.log-panel h2 {
  margin-top: 0;
}

.log-item {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  padding: 10px 0;
}

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

.compact-empty {
  padding: 12px;
  text-align: left;
}

@media (max-width: 860px) {
  .topbar,
  .toolbar,
  .summary-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-shell,
  .ops-card {
    grid-template-columns: 1fr;
  }

  .assignment-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 16px;
  }
}

@media (max-width: 520px) {
  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }
}

.apply-topbar {
  backdrop-filter: blur(18px);
  min-height: 76px;
  padding-bottom: 16px;
  padding-top: 16px;
}

.apply-topbar .brand-lockup img {
  height: 54px;
  width: 160px;
}

.apply-page {
  margin: 0 auto;
  max-width: 1200px;
  padding: 34px clamp(16px, 4vw, 48px) 72px;
}

.apply-hero {
  background:
    linear-gradient(145deg, rgba(255, 247, 236, 0.92), rgba(246, 241, 255, 0.96) 54%, rgba(255, 255, 255, 0.94)),
    #ffffff;
  border: 1px solid rgba(236, 233, 242, 0.95);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  display: grid;
  justify-items: start;
  padding: clamp(40px, 7vw, 80px) clamp(30px, 5.6vw, 64px);
  position: relative;
}

/* Full-width hero — spans the full container, text constrained inside */
.apply-hero--full {
  width: 100%;
}

.apply-hero h1 {
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3.5rem, 4.2vw, 4.1rem);
  font-weight: 900;
  line-height: 0.98;
  margin: 12px 0 20px;
  max-width: 820px;
}

.apply-hero h1 span {
  color: var(--accent);
  display: block;
  white-space: nowrap;
}

.apply-hero p {
  color: #3b3050;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.65;
  margin: 0;
  max-width: 690px;
}

.apply-positioning-line {
  color: var(--accent-deep) !important;
  font-weight: 820;
  margin-top: 18px !important;
}

.apply-rating {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(101, 70, 212, 0.14);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  gap: 10px;
  margin-top: 18px;
  padding: 9px 13px;
}


.apply-rating strong {
  color: var(--ink);
  font-weight: 900;
}

.apply-rating span {
  font-size: 0.88rem;
  font-weight: 760;
}

.apply-badges,
.apply-proof-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.apply-badges span,
.apply-proof-chips span,
.status-pill {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(101, 70, 212, 0.16);
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 9px 13px;
}

.apply-badges span:first-child {
  background: rgba(70, 250, 178, 0.18);
  border-color: rgba(70, 250, 178, 0.4);
  color: #235f4b;
}

.apply-topbar-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

/* Both topbar buttons share the same size and shape */
.apply-topbar-actions .nav-link,
.apply-topbar-cta {
  font-size: 0.88rem;
  min-height: 40px;
  padding: 9px 20px;
  text-decoration: none;
}

/* Ghost — "Tutor login" */
.apply-topbar-actions .nav-link {
  background: transparent;
  border: 1.5px solid rgba(101, 70, 212, 0.3);
  color: var(--accent);
}

.apply-topbar-actions .nav-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* Filled — "Apply now" */
.apply-topbar-cta {
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 3px 0 0 var(--accent-deep);
  color: white;
}

.apply-topbar-cta:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.apply-hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.apply-hero-cta {
  font-size: 1.05rem;
  padding: 14px 28px;
  text-decoration: none;
}

.apply-hero-sub {
  margin-top: 16px !important;
}

.apply-rating {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 600;
  gap: 6px;
}

.apply-rating .stars {
  color: #f5a524;
  letter-spacing: 1px;
}

.apply-rating strong {
  color: var(--ink);
  font-weight: 900;
}

/* CTA button at bottom of a section */
.apply-section-cta {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.apply-section-cta a {
  font-size: 1rem;
  padding: 14px 32px;
  text-decoration: none;
}

/* ── Application form section (anchored, near footer) ───────────────── */

.apply-form-section {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #f0ebff 100%);
  border-radius: 28px;
  margin-top: 0;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 60px);
}

.apply-form-inner {
  margin: 0 auto;
  max-width: 560px;
  text-align: center;
}

.apply-form-inner h2 {
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 10px 0 12px;
}

.apply-form-sub {
  color: var(--muted);
  margin: 0 0 18px;
}

.apply-prep-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.apply-prep-list li {
  color: var(--muted);
  font-size: 0.84rem;
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}

.apply-prep-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6366f1;
  font-weight: 700;
  font-size: 0.78rem;
}

.apply-prep-note {
  color: rgba(99, 102, 241, 0.7);
  font-size: 0.78rem;
  font-style: italic;
  margin: 0 0 22px;
  text-align: left;
}

.apply-email-form {
  display: grid;
  gap: 8px;
  text-align: left;
}

.apply-email-form label {
  font-size: 0.84rem;
}

.apply-email-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
}

.apply-email-row input {
  min-width: 0;
}

#applicantResult {
  margin-top: 20px;
  text-align: left;
}

.apply-stats-bar {
  background: #1a1a2e;
  border-radius: 24px;
  box-shadow: 0 24px 60px -34px rgba(26, 26, 46, 0.85);
  color: white;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  overflow: hidden;
}

.apply-stats-bar span {
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  gap: 4px;
  min-height: 112px;
  padding: 22px clamp(16px, 2.5vw, 28px);
}

.apply-stats-bar strong {
  color: white;
  display: block;
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  font-weight: 780;
  line-height: 1;
}

.apply-stats-bar small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
  font-weight: 760;
  line-height: 1.35;
}

.apply-selective-line {
  color: var(--accent-strong);
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.5;
  margin: 14px auto 0;
  text-align: center;
}

.apply-panel,
.apply-result,
.apply-steps article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.apply-panel {
  align-self: start;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(101, 70, 212, 0.16);
  box-shadow: 0 24px 52px -38px rgba(53, 31, 132, 0.42), 0 8px 20px -16px rgba(15, 8, 38, 0.12);
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3vw, 34px);
}

.apply-panel h2,
.apply-result h2,
.apply-steps h3 {
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.22rem;
  margin: 0;
}

.apply-panel p,
.apply-result p,
.apply-steps p,
.muted-line {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.apply-result-wrap {
  margin-top: 24px;
}

.inline-result {
  min-height: 0;
}

.inline-status {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding-top: 14px;
}

.inline-status p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}


/* ── OTP / eligibility result card ────────────────────────────────────── */

.otp-result {
  display: grid;
  gap: 20px;
}

.otp-status-row {
  align-items: center;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  gap: 10px;
  padding: 12px 16px;
}

.otp-status-row strong { font-weight: 700; }
.otp-status-row span   { opacity: 0.72; }

.otp-status-row--eligible,
.otp-status-row--verified {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #065f46;
}

.otp-status-row--submitted {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #3730a3;
}

.otp-status-row--blocked {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #991b1b;
}

.otp-status-row--active-application {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #3730a3;
}

.otp-active-app-note {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  color: #4338ca;
  opacity: 0.85;
}

.otp-status-row--loading {
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.otp-stage {
  display: grid;
  gap: 12px;
}

.otp-stage.is-hidden { display: none; }

.otp-label {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.otp-hint {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.otp-action-btn { justify-self: start; }

.otp-redirect-hint {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.4rem 0 0;
}

.otp-enter-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  max-width: 360px;
}

.otp-enter-row input {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-align: center;
}

.otp-resend-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.82rem;
  justify-self: start;
  min-height: auto;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.otp-error {
  color: #dc2626;
  font-size: 0.84rem;
  margin: 0;
  min-height: 1.2em;
}

.inline-status.is-blocked .status-pill {
  background: #fff1ec;
  color: var(--danger);
}

.apply-result {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.apply-result.is-eligible {
  border-color: rgba(70, 250, 178, 0.55);
}

.apply-result.is-blocked {
  border-color: rgba(250, 100, 70, 0.3);
}

.apply-cta {
  justify-self: start;
  margin-top: 4px;
}

.apply-section {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  margin-top: 24px;
  padding: clamp(22px, 4vw, 38px);
}

.apply-section-soft {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 236, 0.64)),
    #ffffff;
}

.apply-section-head {
  display: grid;
  gap: 8px;
}

.apply-section-head h2,
.apply-pay-card h2 {
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.apply-steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.apply-steps article {
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 22px;
}

.apply-steps article.bonus-step {
  background:
    linear-gradient(145deg, rgba(101, 70, 212, 0.9), rgba(53, 31, 132, 0.88)),
    var(--accent);
  border-color: rgba(101, 70, 212, 0.3);
  box-shadow: 0 20px 44px -34px rgba(53, 31, 132, 0.75);
  color: white;
  transform: translateY(-6px);
}

.apply-steps article.bonus-step strong {
  background: var(--mint);
  color: var(--accent-deep);
}

.apply-steps article.bonus-step h3,
.apply-steps article.bonus-step p {
  color: white;
}

.apply-review-strip {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(101, 70, 212, 0.14);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
  padding: 16px clamp(18px, 3vw, 26px);
}

.apply-qualities {
  background: #1a1a2e;
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.apply-qualities .apply-proof-chips {
  margin-top: 0;
}

.apply-qualities .eyebrow,
.apply-qualities h2 {
  color: white;
}

.apply-section.apply-qualities p {
  color: rgba(255, 255, 255, 0.68);
}

.apply-qualities .apply-proof-chips span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
}

.apply-review-strip strong {
  color: var(--ink);
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  margin-right: 4px;
}

.apply-review-strip span {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 760;
}

.apply-review-strip span::before {
  background: var(--mint);
  border-radius: 999px;
  content: "";
  height: 7px;
  margin-right: 10px;
  width: 7px;
}

.apply-section p,
.footer-note {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.apply-story {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: clamp(22px, 4vw, 38px);
}

.apply-story h2 {
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  margin: 0;
}

.apply-story p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.agreement-list {
  color: var(--muted);
  display: grid;
  gap: 10px;
  line-height: 1.6;
  margin: 0;
  padding-left: 20px;
}

.footer-note {
  padding: 24px 0 0;
}

.apply-steps strong {
  align-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: 999px;
  box-shadow: 0 12px 24px -14px rgba(53, 31, 132, 0.8);
  color: white;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  margin-bottom: 14px;
  width: 34px;
}

.subject-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.subject-grid article {
  background: linear-gradient(180deg, #ffffff, #fbfaff);
  border: 1px solid rgba(101, 70, 212, 0.14);
  border-radius: 18px;
  box-shadow: 0 12px 24px -22px rgba(53, 31, 132, 0.8);
  display: grid;
  gap: 10px;
  min-height: 136px;
  padding: 20px;
}

.subject-grid h3 {
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.16rem;
  margin: 0;
}

.subject-grid p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.subject-grid span {
  align-self: start;
  background: rgba(70, 250, 178, 0.18);
  border: 1px solid rgba(70, 250, 178, 0.42);
  border-radius: 999px;
  color: #235f4b;
  font-size: 0.78rem;
  font-weight: 850;
  justify-self: start;
  padding: 6px 9px;
}

.apply-pay-card {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(24, 17, 39, 0.96), rgba(53, 31, 132, 0.94)),
    var(--ink);
  color: white;
  grid-template-columns: minmax(0, 0.7fr) minmax(300px, 1.1fr);
}

.apply-pay-card .eyebrow,
.apply-pay-card h2,
.apply-pay-card p {
  color: white;
}

.apply-pay-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.7;
}

.apply-testimonials {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 236, 0.5)),
    #ffffff;
}

.testimonial-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-grid article {
  background: #ffffff;
  border: 1px solid rgba(101, 70, 212, 0.12);
  border-radius: 18px;
  box-shadow: 0 10px 24px -22px rgba(53, 31, 132, 0.55);
  display: grid;
  gap: 14px;
  padding: 20px;
}

.testimonial-grid img {
  border: 3px solid rgba(101, 70, 212, 0.12);
  border-radius: 999px;
  height: 64px;
  object-fit: cover;
  width: 64px;
}

.testimonial-grid p {
  color: #342746;
  font-size: 0.96rem;
  line-height: 1.65;
  margin: 0;
}

.testimonial-grid strong {
  color: var(--accent-strong);
  display: grid;
  font-size: 0.9rem;
  gap: 2px;
}

.testimonial-grid strong span {
  color: var(--muted);
  font-weight: 760;
}

.apply-faq {
  background: #ffffff;
}

.faq-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid article {
  background: #fbfaff;
  border: 1px solid rgba(101, 70, 212, 0.12);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  padding: 20px;
}

.faq-grid h3 {
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.02rem;
  margin: 0;
}

.faq-grid p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.site-footer {
  background: #181127;
  color: rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr) minmax(220px, 0.7fr);
  padding: 34px clamp(18px, 4vw, 48px);
}

.site-footer img {
  background: white;
  border-radius: var(--radius-sm);
  display: block;
  height: 50px;
  margin-bottom: 16px;
  object-fit: contain;
  padding: 8px;
  width: 158px;
}

.site-footer p,
.site-footer address {
  font-style: normal;
  line-height: 1.65;
  margin: 0;
}

.site-footer strong {
  color: white;
  display: block;
  margin-bottom: 8px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.site-footer a {
  align-items: center;
  color: white;
  display: inline-flex;
  gap: 7px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  grid-column: 1 / -1;
  padding-top: 18px;
}

.embed-body {
  background: transparent;
}

.embed-apply {
  margin: 0;
  padding: 0;
}

.embed-panel {
  box-shadow: none;
}

@media (max-width: 860px) {
  .apply-hero,
  .apply-steps,
  .apply-stats-bar,
  .subject-grid,
  .testimonial-grid,
  .faq-grid,
  .apply-pay-card,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .apply-hero {
    border-radius: 22px;
    gap: 20px;
    padding: 22px;
  }

  .apply-hero h1 {
    font-size: clamp(2.3rem, 10.5vw, 3rem);
    line-height: 1.04;
  }

  .apply-hero h1 span {
    white-space: normal;
  }

  .apply-positioning-line {
    font-size: 0.98rem !important;
  }

  .apply-panel {
    padding: 22px;
  }

  .apply-stats-bar span {
    min-height: 92px;
    padding: 18px;
  }

  .apply-steps article {
    min-height: 0;
  }

  .apply-steps article.bonus-step {
    transform: none;
  }
}

.profile-topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(101, 70, 212, 0.1);
  box-shadow: none;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  min-height: 70px;
}

.profile-topbar .brand-lockup img {
  height: 54px;
  width: 160px;
}

.profile-topbar-center {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 850;
  gap: 18px;
  justify-content: center;
}

.profile-topbar-center span:first-child {
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-topbar-center a {
  color: var(--accent-strong);
  text-decoration: none;
}

.profile-save-pill {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 900;
  justify-self: end;
  padding: 9px 13px;
}

.admin-page {
  display: grid;
  gap: 20px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 30px clamp(16px, 4vw, 42px) 64px;
}

.admin-toolbar,
.admin-summary,
.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.admin-toolbar {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  padding: 18px;
}

.admin-toolbar label:first-child {
  grid-column: span 2;
}

.admin-login-note {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 11px 12px;
}

.admin-login-note strong {
  color: var(--ink);
}

.admin-login-note span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.admin-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px;
}

.admin-summary div {
  display: grid;
  gap: 4px;
}

.admin-summary strong {
  font-size: 1.7rem;
}

.admin-summary span,
.admin-card p,
.admin-section p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.admin-list {
  display: grid;
  gap: 16px;
}

.admin-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.admin-card-head {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.admin-card h2,
.admin-section h3 {
  margin: 0;
}

.admin-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.admin-decision {
  border-radius: 999px;
  font-weight: 900;
  padding: 10px 14px;
}

.admin-decision.is-approved {
  background: #e8f8ef;
  color: #176b3f;
}

.admin-decision.is-rejected {
  background: #fff1ec;
  color: var(--danger);
}

.admin-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.admin-facts div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

.compact-cloud {
  margin-top: 0;
}

.admin-subject-grid,
.admin-media-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-subject-card,
.admin-media-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
}

.admin-subject-card {
  position: relative;
}

.admin-subject-card span {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 5px 8px;
  position: absolute;
  right: 10px;
  top: 10px;
}

.admin-subject-card small,
.admin-media-card span,
.admin-media-card a,
.admin-media-card small,
.muted-copy {
  color: var(--muted);
  font-weight: 760;
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-score-card {
  border: 1px solid rgba(101, 70, 212, 0.12);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-score-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.admin-score-main {
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px;
}

.admin-score-main h3 {
  font-size: 1.8rem;
  line-height: 1;
}

.admin-performance-main.is-high   { border-color: rgba(52,211,153,.4);  background: rgba(52,211,153,.06); }
.admin-performance-main.is-medium { border-color: rgba(251,191,36,.4);  background: rgba(251,191,36,.06); }
.admin-performance-main.is-low    { border-color: rgba(239,68,68,.3);   background: rgba(239,68,68,.05); }
.admin-performance-main.is-unknown { border-color: var(--line-strong); }

.admin-score-band {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
  padding: 8px 10px;
  white-space: nowrap;
}

.admin-performance-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.admin-performance-signals span {
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
}

.admin-performance-signals .is-positive {
  background: rgba(52, 211, 153, 0.12);
  color: #065f46;
}

.admin-performance-signals .is-risk {
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
}

.admin-score-card.is-strong_fit {
  background: #effdf6;
  border-color: rgba(70, 250, 178, 0.48);
}

.admin-score-card.is-promising {
  background: #f5f1ff;
}

.admin-score-card.is-manual_review {
  background: #fff9eb;
  border-color: rgba(249, 173, 61, 0.28);
}

.admin-score-card.is-low_fit {
  background: #fff5f1;
  border-color: rgba(250, 100, 70, 0.2);
}

.admin-score-card.is-unscored {
  background: #fbfaff;
}

.admin-score-card.is-strong_fit .admin-score-band {
  background: rgba(70, 250, 178, 0.34);
  color: #12724a;
}

.admin-score-card.is-promising .admin-score-band,
.admin-score-card.is-unscored .admin-score-band {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.admin-score-card.is-manual_review .admin-score-band {
  background: #fff0c7;
  color: #81510b;
}

.admin-score-card.is-low_fit .admin-score-band {
  background: #ffe7df;
  color: var(--danger);
}

.admin-score-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-score-meta span {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(101, 70, 212, 0.1);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 7px 9px;
}

.admin-caveat-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-caveat-list li {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 8, 38, 0.08);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 760;
  line-height: 1.45;
  padding: 9px 10px;
}

.admin-media-card img,
.admin-media-card video {
  aspect-ratio: 16 / 10;
  background: #f5f2fb;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  object-fit: cover;
  width: 100%;
}

.admin-pagination {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.admin-pagination span {
  color: var(--muted);
  font-weight: 850;
}

.admin-details {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.admin-details summary {
  color: var(--accent-strong);
  cursor: pointer;
  font-weight: 900;
}

.dashboard-page {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 1320px;
  padding: 34px clamp(16px, 4vw, 42px) 72px;
}

.dashboard-hero {
  align-items: stretch;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-hero > div,
.dashboard-card,
.dashboard-demo-card,
.quick-action-card,
.opportunity-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.dashboard-hero > div {
  padding: clamp(22px, 3vw, 34px);
}

.dashboard-hero h2 {
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 12px;
  max-width: 780px;
}

.dashboard-welcome {
  align-content: start;
  display: grid;
  gap: 22px;
}

.dashboard-welcome > p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 820px;
}

.dashboard-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-stats div {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.dashboard-stats strong {
  color: var(--accent-deep);
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.dashboard-stats span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.dashboard-pathway {
  background:
    radial-gradient(circle at 100% 0%, rgba(70, 250, 178, 0.18), transparent 12rem),
    linear-gradient(135deg, var(--surface) 0%, var(--accent-soft) 100%) !important;
  align-content: start;
  display: grid;
  gap: 12px;
}

.dashboard-pathway h3,
.dashboard-card h3 {
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  margin: 0;
}

.dashboard-action-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-action-card {
  align-items: start;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.quick-action-card span {
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-action-card strong {
  display: block;
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  margin-top: 4px;
}

.quick-action-card button {
  justify-self: start;
  white-space: nowrap;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.referral-action {
  background:
    radial-gradient(circle at 95% 0%, rgba(70, 250, 178, 0.16), transparent 10rem),
    var(--surface);
}

.dashboard-grid {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 340px minmax(0, 1fr);
}

.dashboard-side,
.dashboard-main,
.dashboard-demo-list {
  display: grid;
  gap: 16px;
}

.dashboard-card {
  padding: 22px;
}

.section-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.profile-summary-card {
  /* no sticky — edit panel stays readable when open */
}

.resource-card,
.referral-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(101, 70, 212, 0.08), transparent 10rem),
    var(--surface);
}

.compact-action-card {
  box-shadow: 0 8px 20px -16px rgba(53, 31, 132, 0.26);
}

.danger-card {
  background: #fffaf7;
  border-color: rgba(250, 100, 70, 0.22);
}

.danger-card h3 {
  color: #6d2b1f;
}

.availability-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(70, 250, 178, 0.13), transparent 10rem),
    var(--surface);
}

.availability-row {
  align-items: end;
  background: var(--accent-soft);
  border: 1px dashed rgba(101, 70, 212, 0.22);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  /* This row lives in the narrow sidebar — a 4-col layout truncated the Day select and
     time inputs. Lay it out as Day (full width) / From | To / + Add (full width). */
  grid-template-columns: 1fr 1fr;
  padding: 12px;
}

.availability-row > label:first-child,
.availability-row button {
  grid-column: 1 / -1;
}

.availability-row button {
  white-space: nowrap;
}

.availability-slots {
  display: grid;
  gap: 8px;
  margin: 10px 0 4px;
}

.availability-slot {
  align-items: center;
  background: rgba(101, 70, 212, 0.06);
  border: 1px solid rgba(101, 70, 212, 0.14);
  border-radius: var(--radius);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 9px 10px;
}

.availability-slot span {
  color: var(--ink);
  font-weight: 850;
}

.availability-slot button {
  min-height: 34px;
  padding: 7px 10px;
}

.compact-facts {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.compact-facts div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
}

.compact-facts div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.resource-list {
  color: var(--muted);
  display: grid;
  gap: 10px;
  line-height: 1.45;
  margin: 12px 0 0;
  padding-left: 20px;
}

.compact-list {
  gap: 6px;
  margin-top: 4px;
}

.full-width-button {
  margin-top: 14px;
  width: 100%;
}

.dashboard-filters {
  grid-template-columns: minmax(220px, 1.3fr) minmax(160px, 0.6fr) minmax(160px, 0.6fr);
  margin-bottom: 0;
}

.opportunity-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.opportunity-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.opportunity-head h2 {
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.08;
  margin: 0 0 6px;
}

.dashboard-demo-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  position: relative;
}

.dashboard-demo-card.has-own-vote {
  border-color: rgba(101, 70, 212, 0.34);
  box-shadow: 0 18px 42px -24px rgba(53, 31, 132, 0.32);
}

.dashboard-demo-card h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  line-height: 1.12;
}

.demo-time-band {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.demo-time-band div {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 13px 14px;
}

.demo-time-band span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-time-band strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.dashboard-demo-card .facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vote-note-label {
  color: var(--muted);
  display: grid;
  font-weight: 850;
  gap: 8px;
}

.assigned-details {
  background: #fbfefc;
  border: 1px solid rgba(70, 250, 178, 0.32);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.assigned-details > strong {
  color: var(--accent-deep);
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
}

.inline-link-button {
  display: inline-flex;
  justify-content: center;
  justify-self: start;
  text-decoration: none;
}

.locked-opportunities {
  display: grid;
}

.locked-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(101, 70, 212, 0.08), transparent 12rem),
    #fffdf8;
  display: grid;
  gap: 10px;
}

.locked-card h3 {
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  margin: 0;
}

.muted-copy {
  color: var(--muted);
  line-height: 1.5;
}

.admin-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-users-panel {
  display: grid;
  gap: 16px;
}

.admin-user-form {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) 160px auto;
}

.admin-user-list {
  display: grid;
  gap: 10px;
}

.admin-user-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 90px 140px auto;
  padding: 12px;
}

.inline-action-status {
  color: var(--accent-strong);
  font-weight: 800;
  margin: 8px 0 0;
  min-height: 1.2em;
}

.inline-action-status.is-error {
  color: var(--danger);
}

.dashboard-pagination {
  margin-top: 4px;
}

.admin-field-table {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.admin-field-table div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  padding: 10px 0;
}

.admin-field-table dt {
  color: var(--muted);
  font-weight: 900;
}

.admin-field-table dd {
  margin: 0;
}

.admin-field-table pre {
  color: var(--ink);
  font: inherit;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.auth-page {
  align-items: center;
  background: linear-gradient(135deg, #fbfff7 0%, #fffaf2 42%, #f6f1ff 100%);
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.auth-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 520px;
  padding: clamp(24px, 5vw, 42px);
  width: min(100%, 520px);
}

.auth-panel img {
  height: 26px;
  object-fit: contain;
  object-position: left center;
  width: 130px;
}

.auth-panel h1,
.auth-panel p {
  margin: 0;
}

.auth-status {
  color: var(--muted);
  font-weight: 780;
  min-height: 1.4em;
}

.auth-status.is-error {
  color: var(--danger);
}

.profile-page {
  background:
    radial-gradient(circle at 10% 10%, rgba(83, 242, 177, 0.13), transparent 28%),
    #fbf9ff;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-columns: 300px minmax(0, 1fr);
  margin: 0 auto;
  max-width: none;
  min-height: calc(100vh - 70px);
  padding: 46px clamp(18px, 5vw, 86px) 82px;
}

.profile-sidebar,
.profile-form {
  border-radius: 26px;
}

.profile-sidebar {
  align-self: start;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  gap: 22px;
  padding: 8px 0 0;
  position: sticky;
  top: 92px;
}

.profile-sidebar::after {
  content: none;
}

.profile-steps {
  counter-reset: profile-step;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.option-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.check-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: flex;
  flex-direction: row;
  font-size: 0.9rem;
  gap: 8px;
  min-height: 44px;
  padding: 9px 10px;
}

.check-card input,
.inline-check input {
  min-height: auto;
  width: auto;
}

.multi-picker {
  display: grid;
  gap: 10px;
}

.multi-picker-head {
  display: grid;
  gap: 10px;
}

.selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
}

.chip {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  min-height: 30px;
  padding: 6px 9px;
}

.compact-options {
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.compact-options.no-scroll {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.conditional-other {
  display: none;
}

.conditional-other.is-visible {
  display: grid;
}

.profile-steps li {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(101, 70, 212, 0.14);
  border-radius: 18px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-weight: 850;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.profile-steps li::before {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-strong);
  content: counter(profile-step);
  counter-increment: profile-step;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.profile-steps button {
  background: transparent;
  color: inherit;
  display: block;
  font-weight: inherit;
  min-height: auto;
  padding: 0;
  text-align: left;
  width: 100%;
}

.profile-steps li.is-active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 20px 32px -28px rgba(53, 31, 132, 0.9);
  color: white;
}

.profile-steps li.is-active::before {
  background: rgba(255, 255, 255, 0.22);
  color: white;
}

.profile-steps li.is-done {
  background: #ffffff;
  color: var(--ink);
}

.profile-steps li.is-done::before {
  background: var(--mint);
  color: #11281f;
  content: "✓";
}

.profile-status {
  background: #fff6e8;
  border: 1px solid rgba(245, 176, 83, 0.22);
  border-radius: 24px;
  display: grid;
  gap: 8px;
  padding: 20px;
}

.profile-status p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.profile-status strong {
  color: var(--ink);
}

.profile-status.is-error .status-pill {
  background: #fff1ed;
  color: var(--danger);
}

.profile-form {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.profile-step-panel {
  display: none;
}

.profile-step-panel.is-active {
  display: grid;
  gap: 26px;
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 850px;
}

.section-head h2 {
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0;
}

.section-head p:last-child {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.single-column {
  grid-template-columns: 1fr;
}

.form-grid label.is-prefilled::after {
  color: var(--accent-strong);
  content: "Already known";
  font-size: 0.72rem;
  font-weight: 850;
}

.rate-grid {
  align-items: end;
  grid-template-columns: minmax(150px, 220px) minmax(220px, 1fr);
}

.file-drop-label {
  border: 1px dashed rgba(101, 70, 212, 0.3);
  border-radius: 18px;
  background: #fbfaff;
  padding: 16px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.file-drop-label input[type="file"] {
  margin-top: 8px;
}

.file-drop-hint {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 750;
  margin-top: 8px;
}

.file-drop-label.is-dragging,
.file-drop-label.is-uploading {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 12px 28px -24px rgba(53, 31, 132, 0.8);
}

.file-drop-label.has-stored-file {
  background: color-mix(in srgb, var(--mint) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--mint) 55%, var(--line));
}

.file-drop-label.has-stored-file .file-drop-hint {
  color: var(--accent-deep);
  font-weight: 850;
}

.profile-actions {
  align-items: center;
  border-top: 1px solid rgba(101, 70, 212, 0.14);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 26px;
  padding-top: 18px;
}

.profile-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.is-hidden {
  display: none !important;
}

/* ─── Skeleton loading shimmer ──────────────────────────────────────────────── */

@keyframes skeleton-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.skeleton-pulse {
  animation: skeleton-shimmer 1.8s ease infinite;
  background: linear-gradient(
    90deg,
    var(--line) 25%,
    rgba(200, 190, 230, 0.38) 50%,
    var(--line) 75%
  );
  background-size: 200% 100%;
  border-radius: 5px;
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}
.skeleton-pulse * { opacity: 0; }

/* ─── Support modal ─────────────────────────────────────────────────────────── */

.support-link-btn {
  background: none;
  border: none;
  color: var(--accent, #7c3aed);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.support-link-btn:hover { opacity: 0.75; }

.support-modal-backdrop {
  align-items: center;
  background: rgba(15, 8, 38, 0.52);
  backdrop-filter: blur(5px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 300;
}
.support-modal-backdrop.is-hidden { display: none !important; }

.support-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 16px;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  width: 100%;
}

.support-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.support-modal-header h2 {
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0;
}
.support-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
  padding: 2px 4px;
}
.support-modal-close:hover { color: var(--ink); }

.support-modal-sub {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.support-sysinfo-details summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  user-select: none;
}
.support-sysinfo-pre {
  background: var(--bg, #f7f3ec);
  border-radius: 6px;
  font-size: 0.72rem;
  line-height: 1.6;
  margin: 6px 0 0;
  overflow-x: auto;
  padding: 10px 12px;
  white-space: pre-wrap;
  word-break: break-all;
}

.support-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.support-send-status {
  font-size: 0.83rem;
  min-height: 1.2em;
  color: var(--muted);
}

.field-optional {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}

/* ─── First-demo modal ──────────────────────────────────────────────────────── */

.first-demo-modal-backdrop {
  align-items: center;
  background: rgba(15, 8, 38, 0.52);
  backdrop-filter: blur(5px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 200;
}

.first-demo-modal-backdrop.is-hidden {
  display: none !important;
}

.first-demo-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 18px;
  max-width: 540px;
  padding: 36px;
  width: 100%;
}

.first-demo-modal h2 {
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0;
}

.first-demo-modal p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.first-demo-modal ol {
  color: var(--ink);
  display: grid;
  gap: 8px;
  line-height: 1.45;
  margin: 0;
  padding-left: 20px;
}

.first-demo-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Routing priority card ─────────────────────────────────────────────────── */

.routing-priority-card .priority-tier {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
}

.routing-priority-card .priority-tier strong {
  color: var(--accent-deep);
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.1rem;
}

.priority-tier-dot {
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  height: 10px;
  width: 10px;
}

.priority-tier-dot--improved {
  background: var(--mint);
}

.priority-tier-dot--verified {
  background: #46fab2;
  box-shadow: 0 0 0 3px rgba(70, 250, 178, 0.28);
}

/* ─── Availability week grid ────────────────────────────────────────────────── */

.availability-week-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 14px 0 6px;
}

.avail-day-col {
  display: grid;
  gap: 4px;
}

.avail-day-label {
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  padding: 4px 0;
  text-align: center;
  text-transform: uppercase;
}

.avail-day-has-slot .avail-day-label {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.avail-day-slot {
  background: var(--accent-soft);
  border: 1px solid rgba(101, 70, 212, 0.18);
  border-radius: 5px;
  color: var(--accent-deep);
  font-size: 0.67rem;
  font-weight: 850;
  line-height: 1.3;
  padding: 4px 3px;
  text-align: center;
}

/* ─── Add-slot strip (tighter) ──────────────────────────────────────────────── */

.add-slot-strip {
  align-items: end;
  background: var(--accent-soft);
  border: 1px dashed rgba(101, 70, 212, 0.24);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 0.8fr) auto;
  padding: 12px;
}

.add-slot-strip label {
  font-size: 0.8rem;
}

/* ─── Verification pathway (sidebar version) ────────────────────────────────── */

.pathway-sidebar-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(70, 250, 178, 0.12), transparent 10rem),
    var(--surface);
}

.review-card {
  background: linear-gradient(135deg, #6546d4, #4b2dad);
  border: 1px solid rgba(101, 70, 212, 0.14);
  border-radius: 22px;
  display: grid;
  gap: 8px;
  padding: 22px;
}

.review-card strong {
  color: white;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.review-card p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  margin: 0;
}

.terms-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: grid;
  gap: 12px;
  padding: 20px;
}

.terms-box p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.terms-check {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: 22px 1fr;
  line-height: 1.45;
}

.terms-check input {
  margin-top: 2px;
}

.terms-check span {
  color: var(--muted);
  font-size: 0.95rem;
}

.detail-list,
.repeat-section {
  display: grid;
  gap: 12px;
}

.detail-card {
  background: #fbfaff;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.char-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-muted, #888);
}

/* The description part of the hint never changes color — only the counter span does */
.char-hint-desc {
  color: var(--text-muted, #888);
}

/* Counter span color states */
.char-count-warn {
  color: #b45309;   /* amber — "not quite there" not "error" */
  font-weight: 650;
  transition: color 0.15s;
}

.char-count-ok {
  color: #059669;   /* green — confirmed met */
  font-weight: 600;
  transition: color 0.15s;
}

/* Legacy parent-level classes — kept for backward compat but no longer set colors */
.char-hint.char-hint-warn { /* intentionally no color — counter span handles it */ }
.char-hint.char-hint-ok   { /* intentionally no color — counter span handles it */ }

.field-needs-attention {
  border-color: #b45309 !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18) !important;
  /* outline lets the highlight show on container divs that have no natural border */
  outline: 2px solid #b45309;
  outline-offset: 3px;
  border-radius: 6px;
}

.field-needs-attention {
  border-color: #b45309 !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18) !important;
}

.profile-section-card,
.repeat-section,
.verification-panel,
.record-panel {
  background: #ffffff;
  border: 1px solid rgba(101, 70, 212, 0.13);
  border-radius: 24px;
  box-shadow: 0 18px 42px -36px rgba(53, 31, 132, 0.62);
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
}

.profile-section-card-head {
  display: grid;
  gap: 5px;
}

.profile-section-card-head h3,
.repeat-head h3 {
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  margin: 0;
}

.profile-section-card-head p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.detail-card-head,
.repeat-head,
.example-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.repeat-head h3 {
  font-size: 1rem;
  margin: 0;
}

.section-help {
  color: var(--color-muted, #6b7280);
  font-size: 0.85rem;
  margin: 0.25rem 0 0.75rem;
}

.story-callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.85rem;
  margin: 0.4rem 0 0.6rem;
  padding: 0.5rem 0.75rem;
}

.compact-button {
  font-size: 0.82rem;
  min-height: 34px;
  padding: 7px 10px;
}

.inline-check {
  align-items: center;
  display: flex;
  flex-direction: row;
}

.terms-box .terms-check {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: 22px 1fr;
}

.terms-box .terms-check input {
  margin-top: 3px;
}

.verification-panel {
  background: linear-gradient(135deg, #fbfafc 0%, #f5f0ff 100%);
}

.verification-panel p {
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 0 0;
}

.verification-actions {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(180px, 1fr) auto;
}

.verification-actions label {
  min-width: 0;
}

.verification-actions input {
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: center;
}

.required-chip {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 6px 9px;
}

.record-panel {
  background: #ffffff;
}

.family-pitch-panel {
  border-color: rgba(101, 70, 212, 0.18);
}

.record-panel-inner {
  display: grid;
  gap: 14px;
}

.record-panel p {
  color: var(--muted);
  margin: 4px 0 0;
}

.video-save-nudge {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  margin: 6px 0 0;
  line-height: 1.5;
}

/* Live photo upload status badge in the Proof step card head */
.upload-count-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 9px;
  border-radius: 99px;
  vertical-align: middle;
  margin-left: 8px;
  line-height: 1.8;
  transition: background 0.2s, color 0.2s;
}

.upload-count-badge--missing {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.upload-count-badge--done {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #34d399;
}

/* Pulse highlight shown on the upload label when in-browser recording fails */
@keyframes upload-fallback-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(101, 70, 212, 0.45); background: rgba(101, 70, 212, 0.08); }
  40%  { box-shadow: 0 0 0 8px rgba(101, 70, 212, 0); background: rgba(101, 70, 212, 0.12); }
  100% { box-shadow: 0 0 0 0 rgba(101, 70, 212, 0); background: transparent; }
}

.upload-fallback-highlight {
  animation: upload-fallback-pulse 1.4s ease-out;
  border-radius: var(--radius-sm);
  outline: 2px solid rgba(101, 70, 212, 0.5);
  outline-offset: 4px;
  padding: 4px 6px;
  transition: outline 0.3s ease;
}

.recording-status {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--accent-strong);
  font-weight: 850;
  padding: 10px 12px;
}

.recording-stage {
  position: relative;
}

.recording-preview {
  background: #181127;
  border-radius: var(--radius);
  display: block;
  max-height: 280px;
  width: 100%;
}

.recording-countdown {
  align-items: center;
  background: rgba(24, 17, 39, 0.72);
  border-radius: var(--radius);
  color: white;
  display: flex;
  font-family: Sora, Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 900;
  inset: 0;
  justify-content: center;
  position: absolute;
  text-transform: uppercase;
}

.recording-countdown.is-small {
  align-items: center;
  border-radius: 999px;
  font-family: Figtree, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  height: auto;
  inset: 12px auto auto 12px;
  letter-spacing: 0.06em;
  padding: 7px 10px;
}

.record-panel.is-recording {
  border-color: rgba(250, 100, 70, 0.45);
  box-shadow: 0 0 0 3px rgba(250, 100, 70, 0.1);
}

.record-panel.is-recording .recording-status {
  background: #fff1ec;
  color: var(--danger);
}

@media (max-width: 920px) {
  .profile-topbar {
    gap: 12px;
    grid-template-columns: 1fr;
    justify-items: start;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .profile-topbar-center {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .profile-save-pill {
    justify-self: start;
  }

  .admin-toolbar,
  .admin-summary,
  .admin-facts,
  .admin-user-form,
  .admin-user-row,
  .dashboard-action-strip,
  .dashboard-hero,
  .dashboard-grid,
  .dashboard-filters,
  .availability-row {
    grid-template-columns: 1fr;
  }

  .profile-summary-card {
    /* already non-sticky */
  }

  .quick-action-card,
  .opportunity-head {
    align-items: stretch;
    display: grid;
  }

  .admin-card-head {
    display: grid;
  }

  .admin-field-table div {
    grid-template-columns: 1fr;
  }

  .profile-page {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
  }

  .profile-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .apply-verification-actions {
    grid-template-columns: 1fr;
  }

  .profile-steps,
  .form-grid,
  .verification-actions,
  .dashboard-stats,
  .demo-time-band,
  .dashboard-demo-card .facts {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-actions button {
    width: 100%;
  }
}

/* ─── Admin list: minimal cards ──────────────────────────────────────────────── */

.admin-card--list {
  padding: 1.25rem 1.5rem;
}

.admin-card-list-head {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.admin-card-list-info {
  flex: 1;
  min-width: 0;
}

.admin-card-list-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.admin-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--line);
  color: var(--muted);
}
.admin-status-badge.is-submitted { background: #dbeafe; color: #1d4ed8; }
.admin-status-badge.is-approved { background: #d1fae5; color: #065f46; }
.admin-status-badge.is-rejected { background: #fee2e2; color: #991b1b; }
.admin-status-badge.is-deactivated { background: #f3f4f6; color: #6b7280; }
.admin-status-badge.is-profile_draft { background: #fef9c3; color: #92400e; }
.admin-status-badge.is-changes { background: #fef3c7; color: #92400e; }

.admin-band-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.admin-band-chip.is-strong_fit { background: #d1fae5; color: #065f46; }
.admin-band-chip.is-promising { background: #dbeafe; color: #1e40af; }
.admin-band-chip.is-manual_review { background: #fef3c7; color: #92400e; }
.admin-band-chip.is-low_fit { background: #fee2e2; color: #991b1b; }

.admin-card--list h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
}

.admin-card-email {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.admin-card-headline {
  font-size: 0.88rem;
  color: var(--ink);
  margin: 0 0 0.35rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.admin-card-meta-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-card-meta-row span::before {
  content: "· ";
}
.admin-card-meta-row span:first-child::before {
  content: "";
}

.admin-open-btn {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.85rem;
  padding: 8px 16px;
  text-decoration: none;
}

/* ─── Admin detail page ──────────────────────────────────────────────────────── */

.admin-back-nav {
  margin-bottom: 1.5rem;
}

.admin-back-link {
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.admin-back-link:hover {
  text-decoration: underline;
}

.admin-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-detail-header > div:first-child {
  flex: 1;
}

.admin-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.admin-detail-chip {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--line);
  padding: 2px 9px;
  border-radius: 999px;
}

.admin-detail-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
}

.admin-detail-email {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.admin-detail-headline {
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
}

/* ─── Written responses ──────────────────────────────────────────────────────── */

.admin-written-field {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.admin-written-field:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.admin-written-field strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.admin-written-field p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
  white-space: pre-wrap;
}

/* ─── Review section ─────────────────────────────────────────────────────────── */

.admin-review-section .admin-review-history {
  margin-bottom: 1rem;
}

.admin-review-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-review-actions textarea {
  width: 100%;
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  resize: vertical;
  font-family: inherit;
  background: var(--surface);
}

.admin-review-actions .admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ─── Lightbox ───────────────────────────────────────────────────────────────── */

.admin-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.admin-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.admin-lightbox-media {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-lightbox-media img,
.admin-lightbox-media video {
  max-width: 90vw;
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  object-fit: contain;
}

.admin-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.admin-lightbox-close:hover {
  background: rgba(255,255,255,0.22);
}

.media-thumb {
  cursor: zoom-in;
  transition: opacity 0.15s;
}

.media-thumb:hover {
  opacity: 0.85;
}

.media-thumb--video {
  width: 100%;
  max-width: 320px;
}

/* ─── Resume attachment ──────────────────────────────────────────────────────── */

.resume-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 7px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.resume-attachment:hover {
  background: #e5dff7;
}

.resume-icon {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  flex-shrink: 0;
}

/* ─── Review notes hint ──────────────────────────────────────────────────────── */

.review-notes-hint {
  font-size: 0.82rem;
  color: var(--danger);
  margin-top: 0.35rem;
}

/* ─── OTP changes requested ──────────────────────────────────────────────────── */

.otp-status-row--changes {
  background: #fffbeb;
  border-color: #f59e0b;
}

.otp-changes-notes {
  font-size: 0.88rem;
  color: var(--ink);
  margin: 0.35rem 0 0;
  padding: 0.5rem 0.75rem;
  background: rgba(245,158,11,0.08);
  border-radius: 6px;
  border-left: 3px solid #f59e0b;
}

/* ─── HR feedback banner ─────────────────────────────────────────────────────── */

.session-expired-banner {
  background: #fef2f2;
  border: 1.5px solid #ef4444;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  color: #7f1d1d;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.session-expired-banner strong {
  color: #991b1b;
  display: block;
  margin-bottom: 0.2rem;
}

.session-expired-banner a {
  color: #b91c1c;
  font-weight: 600;
  text-decoration: underline;
}

.hr-feedback-banner {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  color: #92400e;
  margin: 0 0 1.5rem;
}

.hr-feedback-banner strong {
  color: #78350f;
}

/* ─── Transcript section ─────────────────────────────────────────────────────── */

.admin-transcript-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.admin-transcript-section h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-transcript-status {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--line);
  color: var(--muted);
}
.admin-transcript-status.is-completed { background: #d1fae5; color: #065f46; }
.admin-transcript-status.is-partial { background: #dbeafe; color: #1d4ed8; }
.admin-transcript-status.is-failed { background: #fee2e2; color: #991b1b; }

.admin-transcript-item {
  margin-bottom: 0.75rem;
}

.admin-transcript-item strong {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.25rem;
}

.admin-transcript-text {
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
  padding: 0.6rem 0.85rem;
  background: var(--accent-soft);
  border-radius: 6px;
}

.admin-transcript-caveat {
  font-size: 0.8rem;
  color: #92400e;
  background: #fffbeb;
  border-radius: 4px;
  padding: 4px 8px;
  margin-top: 0.35rem;
}

/* ─── Admin danger button ─────────────────────────────────────────────────────── */

.admin-danger-btn {
  color: var(--danger);
  border-color: var(--danger);
}

.admin-danger-btn:hover {
  background: #fee2e2;
}

/* ─── Tutor login page ───────────────────────────────────────────────────────── */

.login-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}

.login-card h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0.35rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.login-sub {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  line-height: 1.55;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.25rem;
}

.login-form input[type="email"],
.login-form input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s;
}

.login-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(101, 70, 212, 0.12);
}

.login-code-row {
  margin-top: 0.25rem;
}

.login-code-inputs {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.login-code-inputs input {
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono, monospace);
  width: 100%;
  background: var(--surface);
  color: var(--ink);
}

.login-code-inputs input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(101, 70, 212, 0.12);
}

.login-send-btn {
  width: 100%;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem;
  font-size: 1rem;
}

.login-status {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  min-height: 1.4em;
}

.login-status.is-error {
  color: var(--danger);
}

/* ─── OPS vote stat chip ─────────────────────────────────────────────────────── */

.admin-vote-stat {
  color: #059669;
  font-weight: 600;
}

/* ─── Score card v2 ──────────────────────────────────────────────────────────── */

.admin-score-card2 {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.score2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.score2-col--sep {
  padding-left: 1.25rem;
  border-left: 1px solid #e5e7eb;
}

.score2-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.35rem;
}

.score2-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.score2-num {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}

.score2-band {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.score2-band.is-strong_fit  { background: #dcfce7; color: #15803d; }
.score2-band.is-promising   { background: #dbeafe; color: #1d4ed8; }
.score2-band.is-manual_review { background: #fef9c3; color: #854d0e; }
.score2-band.is-low_fit     { background: #fee2e2; color: #b91c1c; }
.score2-band.is-unscored    { background: #f3f4f6; color: #6b7280; }
.score2-band.is-perf-high   { background: #dcfce7; color: #15803d; }
.score2-band.is-perf-medium { background: #dbeafe; color: #1d4ed8; }
.score2-band.is-perf-low    { background: #fee2e2; color: #b91c1c; }
.score2-band.is-perf-unknown { background: #f3f4f6; color: #6b7280; }

.score2-hint {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.4;
}

.score2-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.25rem;
}

.score2-pill {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  cursor: default;
}
.score2-pill.is-ok   { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.score2-pill.is-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.score2-pill.is-flag { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }

.score2-clean {
  font-size: 0.78rem;
  color: #9ca3af;
}

.score2-details {
  border-top: 1px solid #f3f4f6;
  padding-top: 0.75rem;
}
.score2-details summary {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  user-select: none;
}
.score2-details summary::-webkit-details-marker { display: none; }
.score2-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
  font-weight: 700;
  text-transform: capitalize;
}
.score-transcript-block { margin-top: 0.75rem; }
.score-transcript-label { font-size: 0.75rem; font-weight: 600; color: #374151; margin-bottom: 0.25rem; }
.score-transcript-text  { font-size: 0.8rem; color: #4b5563; line-height: 1.6; white-space: pre-wrap; }
.score2-transcript-note { font-size: 0.75rem; color: #b45309; margin-top: 0.5rem; }

/* ─── Audio assessment section ────────────────────────────────────────────── */
.score2-badge--muted { background: #374151; color: #9ca3af; }
.aa-secs { font-size: 0.68rem; color: #6b7280; margin-left: 0.5rem; font-weight: 400; }
.aa-video-block { margin: 0.6rem 0; }
.aa-video-label { font-size: 0.78rem; font-weight: 600; color: #e5e7eb; margin: 0 0 0.35rem; }
.aa-src { font-size: 0.7rem; color: #6b7280; font-weight: 400; }
.aa-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.aa-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.7rem; padding: 2px 8px; border-radius: 999px;
  border: 1px solid transparent;
}
.aa-pill strong { font-size: 0.75rem; }
.aa-pill-ok   { background: #052e16; color: #4ade80; border-color: #166534; }
.aa-pill-warn { background: #422006; color: #fb923c; border-color: #9a3412; }
.aa-pill-low  { background: #450a0a; color: #f87171; border-color: #991b1b; }
.aa-caveat-flag { color: #f87171 !important; font-weight: 600; }

/* ─── Score factors table ─────────────────────────────────────────────────── */
.sfact-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; margin: 0.75rem 0 0.5rem; }
.sfact-table thead th { text-align: left; padding: 0.25rem 0.5rem; color: #6b7280; font-weight: 600; border-bottom: 1px solid #374151; }
.sfact-row td { padding: 0.3rem 0.5rem; vertical-align: top; border-bottom: 1px solid #1f2937; }
.sfact-label { color: #d1d5db; white-space: nowrap; font-weight: 500; }
.sfact-val { font-weight: 600; white-space: nowrap; }
.sfact-note { color: #6b7280; font-size: 0.72rem; }
.sfact-ok .sfact-val { color: #34d399; }
.sfact-warn .sfact-val { color: #fbbf24; }
.sfact-miss .sfact-val { color: #f87171; }
.sfact-note-foot { font-size: 0.7rem; color: #6b7280; margin: 0.5rem 0 0; }

.score2-date {
  font-size: 0.72rem;
  color: #d1d5db;
  text-align: right;
  margin-top: -0.25rem;
}

/* ─── Header action buttons ──────────────────────────────────────────────────── */

.hdr-actions {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-shrink: 0;
}

.hdr-rescore-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.hdr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #374151;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.hdr-btn:hover { background: #f9fafb; border-color: #9ca3af; }
.hdr-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.hdr-btn-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.hdr-btn.is-loading .hdr-btn-icon {
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hdr-rescore-hint {
  font-size: 0.7rem;
  color: #9ca3af;
  max-width: 160px;
  text-align: right;
  line-height: 1.3;
}

.hdr-menu {
  position: relative;
}
.hdr-menu summary { list-style: none; }
.hdr-menu summary::-webkit-details-marker { display: none; }

.hdr-btn--actions {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}
.hdr-btn--actions:hover { background: #6d28d9; border-color: #6d28d9; }

.hdr-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 180px;
  z-index: 100;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
}

.hdr-menu-item {
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  border-radius: 7px;
  font-size: 0.82rem;
  color: #374151;
  cursor: pointer;
  font-weight: 500;
}
.hdr-menu-item:hover { background: #f3f4f6; }
.hdr-menu-item.is-danger { color: #dc2626; }
.hdr-menu-item.is-danger:hover { background: #fef2f2; }

.hdr-menu-sep {
  border: none;
  border-top: 1px solid #f3f4f6;
  margin: 0.25rem 0;
}

/* ─── Notes textarea ─────────────────────────────────────────────────────────── */

.admin-notes-textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: #374151;
  resize: vertical;
  background: #fafafa;
}
.admin-notes-textarea:focus {
  outline: none;
  border-color: #7c3aed;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

/* ─── Action menu (toggle-based, not details) ────────────────────────────────── */

.hdr-menu-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

/* Make Rescore + Actions the same size */
.hdr-btn {
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  height: 36px;
  box-sizing: border-box;
}

.hdr-btn--actions {
  min-width: 110px;
  justify-content: center;
}

/* ─── Request changes inline panel ──────────────────────────────────────────── */

.hdr-changes-panel {
  padding: 0.75rem;
  border-top: 1px solid #f3f4f6;
  margin-top: 0.25rem;
}

.hdr-changes-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

.hdr-changes-textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
  font-family: inherit;
  color: #374151;
  resize: vertical;
  background: #fafafa;
  box-sizing: border-box;
  min-width: 240px;
}
.hdr-changes-textarea:focus {
  outline: none;
  border-color: #7c3aed;
  background: #fff;
}

.hdr-changes-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.hdr-btn--submit {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
  padding: 0.35rem 0.8rem;
  height: auto;
  font-size: 0.78rem;
}
.hdr-btn--submit:hover { background: #6d28d9; border-color: #6d28d9; }

.hdr-btn--cancel {
  padding: 0.35rem 0.8rem;
  height: auto;
  font-size: 0.78rem;
}

/* ─── Score details (transcript) - clear open affordance ────────────────────── */

.score2-details summary::before {
  content: "▶";
  font-size: 0.6rem;
  color: #9ca3af;
  transition: transform 0.15s;
  display: inline-block;
}
.score2-details[open] summary::before {
  transform: rotate(90deg);
}

/* ─── CSS tooltips (data-tooltip attribute) ──────────────────────────────────── */

.has-tip {
  position: relative;
  cursor: help;
}
.has-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #f9fafb;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 0.4rem 0.65rem;
  border-radius: 7px;
  width: max-content;
  max-width: 260px;
  white-space: normal;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.has-tip:hover::after {
  opacity: 1;
}
/* Arrow */
.has-tip::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1f2937;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 200;
}
.has-tip:hover::before {
  opacity: 1;
}

/* ─── Two-button header layout (Rescore + Actions) ───────────────────────────── */

.hdr-actions {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.hdr-rescore-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Design consistency pass — June 2026
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Screen-reader-only utility ──────────────────────────────────────────── */
.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ─── Logo size: all candidate-facing pages use 54 × 160px ───────────────── */
/* apply.html + profile-start.html already override via .apply-topbar / .profile-topbar.
   Terms and dashboard topbars use plain .topbar. Add .candidate-topbar to those. */
.candidate-topbar .brand-lockup img {
  height: 54px;
  width: 160px;
}

/* ─── Status pill semantic variants ──────────────────────────────────────── */
.status-pill--green {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.42);
  color: #065f46;
}
.status-pill--blue {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  color: #3730a3;
}
.status-pill--amber {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.42);
  color: #92400e;
}
.status-pill--neutral {
  background: rgba(107, 100, 128, 0.07);
  border-color: rgba(107, 100, 128, 0.2);
  color: var(--muted);
}

/* ─── Hero H1: suppress hard line-break — let text flow naturally ─────────── */
.apply-hero h1 br {
  display: none;
}
.apply-hero h1 span {
  display: inline;
  white-space: normal;
}

/* ─── Hero CTA: unify shadow with global .primary button ─────────────────── */
a.apply-hero-cta.primary {
  box-shadow: 0 4px 0 0 var(--accent-deep), 0 12px 24px -10px rgba(53, 31, 132, 0.55);
}

/* ─── Profile page background: reduce mint saturation slightly ───────────── */
.profile-page {
  background:
    radial-gradient(circle at 10% 10%, rgba(83, 220, 165, 0.09), transparent 28%),
    #fbf9ff;
}

/* ─── Mobile profile builder: collapse sidebar into compact step header ──── */
.profile-mobile-step {
  display: none; /* hidden on desktop */
}

/* Mobile status banner — mirrors #profileStatus (sidebar hidden on mobile) */
.mobile-status-banner {
  display: none; /* hidden on desktop — sidebar is visible there */
  align-items: flex-start;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
}
.mobile-status-banner.is-hidden { display: none !important; }
.mobile-status-banner.is-error {
  background: #fff7ed;
  border: 1.5px solid #f97316;
  color: #7c2d12;
}
.mobile-status-banner.is-saved {
  background: #f0fdf4;
  border: 1.5px solid #22c55e;
  color: #14532d;
}
.mobile-status-banner strong { display: block; margin-bottom: 0.15rem; }
@media (max-width: 920px) {
  .mobile-status-banner:not(.is-hidden) {
    display: flex;
  }
}

@media (max-width: 920px) {
  .profile-sidebar {
    display: none;
  }

  .profile-mobile-step {
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(101, 70, 212, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px -8px rgba(53, 31, 132, 0.14);
    display: flex;
    gap: 12px;
    padding: 10px 14px;
  }

  .profile-mobile-step-badge {
    align-items: center;
    background: var(--accent);
    border-radius: 999px;
    color: white;
    display: flex;
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 950;
    height: 26px;
    justify-content: center;
    width: 26px;
  }

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

  .profile-mobile-step-name {
    color: var(--ink);
    display: block;
    font-size: 0.95rem;
    font-weight: 850;
    line-height: 1.2;
  }

  .profile-mobile-step-sub {
    color: var(--muted);
    display: block;
    font-size: 0.78rem;
    margin-top: 2px;
  }

  .profile-mobile-step-bar {
    background: var(--accent-soft);
    border-radius: 999px;
    height: 4px;
    margin-top: 7px;
    overflow: hidden;
    width: 100%;
  }

  .profile-mobile-step-fill {
    background: var(--accent);
    border-radius: 999px;
    height: 100%;
    transition: width 0.3s ease;
  }

  .profile-page {
    gap: 12px;
    padding: 12px clamp(14px, 4vw, 26px) 64px;
  }
}

/* ─── Terms page: sticky TOC ──────────────────────────────────────────────── */
.terms-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 200px minmax(0, 1fr);
  max-width: 1060px;
  margin: 24px auto 0;
  padding: 0 clamp(16px, 4vw, 48px) 64px;
}

.terms-toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding: 16px;
  position: sticky;
  scrollbar-width: thin;
  top: 90px;
}

.terms-toc-label {
  color: var(--accent-strong);
  display: block;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.terms-toc a {
  border-radius: 6px;
  color: var(--muted);
  display: block;
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 4px 7px;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.terms-toc a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.terms-toc hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 8px 0;
}

.terms-content {
  display: grid;
  gap: 20px;
}

.terms-back {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 5px;
  margin-bottom: 4px;
  text-decoration: none;
  transition: color 0.12s ease;
}

.terms-back:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Remove the max-width/padding from the original .apply-page on terms — layout handles it */
.terms-page.apply-page {
  max-width: none;
  padding: 0;
}

@media (max-width: 860px) {
  .terms-layout {
    grid-template-columns: 1fr;
  }
  .terms-toc {
    display: none;
  }
}

/* ─── Login page: trust strip & navigation links ──────────────────────────── */
.login-footer-note {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  text-align: center;
}

.login-footer-note a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.login-footer-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-trust-row {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.8rem;
  font-weight: 750;
  gap: 7px;
  justify-content: center;
  margin-top: 1.5rem;
}

.login-trust-dot {
  background: var(--mint);
  border-radius: 999px;
  flex-shrink: 0;
  height: 7px;
  width: 7px;
}

/* ─── Dashboard demo cards: h2 → h3 heading fix ──────────────────────────── */
.dashboard-demo-card h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  line-height: 1.12;
}
