:root {
  --launch-radius-lg: 20px;
  --launch-radius-md: 14px;
  --launch-radius-pill: 999px;
  --launch-mono: ui-monospace, Menlo, Consolas, monospace;
}

body.launch-surface {
  color: var(--text);
  background:
    radial-gradient(560px 300px at 85% -5%, rgba(240, 179, 94, 0.13), transparent 60%),
    radial-gradient(460px 300px at -8% 22%, rgba(139, 124, 248, 0.14), transparent 55%),
    linear-gradient(170deg, var(--bg), var(--bg) 70%);
  background-attachment: fixed;
}

:root[data-roast="latte"] body.launch-surface {
  background:
    radial-gradient(560px 300px at 85% -5%, rgba(154, 100, 32, 0.1), transparent 60%),
    radial-gradient(460px 300px at -8% 22%, rgba(106, 88, 214, 0.12), transparent 55%),
    linear-gradient(170deg, var(--bg), var(--bg) 70%);
}

body.launch-surface .top-bar {
  min-height: 52px;
  padding: 10px max(18px, calc((100vw - 920px) / 2));
  gap: 14px;
  border-color: var(--panel-border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

body.launch-surface .wordmark {
  flex: none;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
  text-decoration: none;
}

body.launch-surface .wordmark span,
body.launch-surface .launch-jordan-name {
  color: var(--accent);
}

body.launch-surface .top-bar-right {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

body.launch-surface .top-bar-right::-webkit-scrollbar { display: none; }

body.launch-surface .nav-pill {
  flex: none;
  padding: 7px 11px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 650;
}

body.launch-surface .nav-pill-active {
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--text);
}

.roast-toggle {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--panel-border);
  border-radius: var(--launch-radius-pill);
  background: var(--panel);
}

.roast-toggle button {
  min-height: 30px;
  padding: 4px 8px;
  border: 0;
  border-radius: var(--launch-radius-pill);
  background: transparent;
  color: var(--muted);
  font: 650 0.68rem/1 var(--font);
  cursor: pointer;
}

.roast-toggle button.is-selected {
  background: var(--truth-bg);
  color: var(--truth-ink);
}

.launch-main,
body.launch-surface .tracker-main,
body.launch-surface .resumes-main,
body.launch-surface .reviews-main,
body.launch-surface .jordan-main {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 22px 18px 92px;
}

.launch-jordan-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 6px;
}

.launch-jordan-avatar {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--violeta), var(--accent) 55%, var(--violeta));
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 18%, transparent);
}

.launch-jordan-name {
  margin: 0 0 3px;
  font-size: 0.75rem;
  font-weight: 750;
}

.launch-jordan-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.launch-language-note,
.launch-footnote {
  margin: 8px 0 14px 47px;
  color: var(--muted);
  font: 0.62rem/1.5 var(--launch-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launch-stack {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.launch-card {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--panel-border);
  border-radius: var(--launch-radius-lg);
  background: var(--panel);
  color: var(--text);
  box-shadow: none;
  text-decoration: none;
  transition: border-color 140ms ease, transform 120ms ease;
}

.launch-card:hover { border-color: var(--truth-border); }
.launch-card:active { transform: scale(0.99); }

.launch-card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.launch-card-heading strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.launch-card-meta {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.launch-status-pill,
body.launch-surface .status-badge {
  display: inline-flex;
  flex: none;
  padding: 5px 9px;
  border: 1px solid var(--truth-border);
  border-radius: var(--launch-radius-pill);
  background: var(--truth-bg);
  color: var(--truth-ink);
  font: 700 0.59rem/1 var(--launch-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verdict-memory-line,
.journey-save-cue {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 11px 13px;
  border-left: 3px solid var(--lc-violet);
  border-radius: 0 12px 12px 0;
  background: var(--lc-violet-soft);
  color: var(--lc-ink-2);
  font-size: 0.82rem;
  line-height: 1.5;
}

.verdict-memory-line.hidden,
.journey-save-cue.hidden { display: none; }

.verdict-memory-mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--lc-violet-soft);
  color: var(--lc-violet);
  font-weight: 800;
}

.journey-save-cue {
  align-items: center;
  margin-top: 12px;
  border-left-color: var(--lc-crema);
  background: var(--truth-bg);
  color: var(--truth-ink);
}

.journey-save-cue a,
.journey-save-cue button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--lc-violet);
  font: 700 0.78rem/1 var(--font);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Journey: keep the existing owner-scoped loader, present every row as one named cup. */
body.launch-surface .tracker-main { gap: 14px; }
body.launch-surface .tracker-main .jordan-guide { margin: 0; }
body.launch-surface[data-page="tracker"] .jordan-guide-name,
body.launch-surface[data-page="tracker"] .jordan-nudge-link { color: var(--accent); }
body.launch-surface[data-page="tracker"] .jordan-guide-message,
body.launch-surface[data-page="tracker"] .jordan-nudge-line { color: var(--text); }
body.launch-surface .tracker-main .toolbar { grid-template-columns: 1fr; margin: 0; }
body.launch-surface .tracker-main .card { padding: 0; border: 0; background: transparent; box-shadow: none; }
body.launch-surface .pipeline-table,
body.launch-surface .pipeline-table tbody { display: block; width: 100%; }
body.launch-surface .pipeline-table thead { display: none; }
body.launch-surface .pipeline-table tr:not(.detail-row) {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
  margin-bottom: 11px;
  padding: 16px 18px;
  border: 1px solid var(--panel-border);
  border-radius: var(--launch-radius-lg);
  background: var(--panel);
}
body.launch-surface .pipeline-table td {
  display: block;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
body.launch-surface .pipeline-table td::before { display: none; }
body.launch-surface .pipeline-table .company-cell {
  grid-column: 1;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
}
body.launch-surface .pipeline-table td[data-label="Role"] { grid-column: 1 / -1; font-size: 0.86rem; }
body.launch-surface .pipeline-table td[data-label="Status"] { grid-column: 2; grid-row: 1; }
body.launch-surface .pipeline-table td[data-label="Track"],
body.launch-surface .pipeline-table td[data-label="Date"],
body.launch-surface .pipeline-table td[data-label="HM"] { display: none; }
body.launch-surface .pipeline-table td[data-label="ATS"] { grid-column: 1; }
body.launch-surface .journey-score-progress {
  display: inline-flex;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
body.launch-surface .journey-score-label {
  color: var(--muted);
  font: 750 0.68rem/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body.launch-surface .journey-score-before { color: var(--muted); }
body.launch-surface .journey-score-arrow { color: var(--muted); }
body.launch-surface .journey-score-after { font-weight: 800; }
body.launch-surface .journey-score-progress[data-direction="up"] .journey-score-after {
  color: var(--green-bright);
}
body.launch-surface .journey-score-progress[data-direction="down"] .journey-score-after {
  color: var(--truth-ink);
}
body.launch-surface .journey-score-context {
  padding: 3px 7px;
  border: 1px solid var(--truth-border);
  border-radius: var(--launch-radius-pill);
  background: var(--truth-bg);
  color: var(--truth-ink);
  font: 700 0.67rem/1 var(--font);
}
body.launch-surface .pipeline-table td[data-label="Jordan"] { grid-column: 1 / -1; }
body.launch-surface .journey-practice-trace {
  margin: 8px 0 0;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-line;
}
body.launch-surface .pipeline-table .row-actions { grid-column: 1 / -1; }
body.launch-surface .detail-row { display: block; margin: -5px 0 11px; }
body.launch-surface .detail-row.hidden { display: none; }
body.launch-surface .detail-row-cell {
  display: block;
  padding: 16px !important;
  border: 1px solid var(--panel-border) !important;
  border-radius: var(--launch-radius-md);
  background: color-mix(in srgb, var(--panel) 80%, var(--bg));
}
body.launch-surface .score-low,
body.launch-surface .jordan-badge-red,
body.launch-surface .status-Rejected { color: var(--truth-ink); background: var(--truth-bg); border-color: var(--truth-border); }

/* Wardrobe and receipts retain their real loaders inside the launch column. */
body.launch-surface .resumes-main,
body.launch-surface .reviews-main { display: block; }
body.launch-surface .resume-version-card,
body.launch-surface .tailored-cut-card,
body.launch-surface .review-card,
body.launch-surface .reviews-empty,
body.launch-surface .reviews-not-found {
  border-color: var(--panel-border);
  border-radius: var(--launch-radius-lg);
  background: var(--panel);
  box-shadow: none;
}

body.launch-surface .reviews-heading .launch-jordan-row { margin-bottom: 0; }
body.launch-surface .reviews-heading h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.7rem, 7vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
body.launch-surface .reviews-intro {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
body.launch-surface .fit-reads-section,
body.launch-surface .coaching-receipts-title { margin-top: 8px; }
body.launch-surface .fit-read-card {
  grid-template-columns: minmax(0, 1fr);
}
body.launch-surface .fit-read-card .review-card-body {
  grid-column: 1;
}
body.launch-surface .review-card-title {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.35;
}
body.launch-surface .review-card-summary {
  color: var(--muted);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
body.launch-surface .review-card-time { color: var(--muted); }

body[data-page="home"] .home-search {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
body[data-page="home"] .home-search.hidden { display: none; }
body[data-page="home"] .job-search-message,
body[data-page="home"] .job-card {
  padding: 16px 18px;
  border: 1px solid var(--panel-border);
  border-radius: var(--launch-radius-lg);
  background: var(--panel);
  box-shadow: none;
}
body[data-page="home"] .job-search-message h1 {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.2;
}
body[data-page="home"] .job-search-message > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
body[data-page="home"] .job-search-form { grid-template-columns: minmax(0, 1fr); }
body[data-page="home"] .job-search-input {
  border-color: var(--panel-border);
  background: var(--panel);
  color: var(--text);
}
body[data-page="home"] .job-search-submit {
  width: 100%;
  min-width: 0;
}

/* Practice is a spoken rep: one question, no scoreboard, timer, or progress furniture. */
body[data-page="practice"] #session-timer,
body[data-page="practice"] .readiness-score-wrap,
body[data-page="practice"] .jordan-progress-row,
body[data-page="practice"] .readiness-pill { display: none !important; }
body[data-page="practice"] .top-bar #session-type-bar { display: none; }
body[data-page="practice"] .jordan-phase,
body[data-page="practice"] .jordan-phase-shell,
body[data-page="practice"] .session-stage,
body[data-page="practice"] .session-composer { width: 100%; max-width: 440px; }
body[data-page="practice"] .jordan-main { display: block; }
body[data-page="practice"] .jordan-phase {
  min-height: 0;
  display: block;
}
body[data-page="practice"] .jordan-phase-shell {
  min-height: 0;
  justify-content: flex-start;
  gap: 18px;
  padding: 0;
}
body[data-page="practice"] .jordan-phase-header { gap: 8px; }
body[data-page="practice"] .warmup-intro,
body[data-page="practice"] .summary-intro { gap: 7px; }
body[data-page="practice"] .warmup-kicker {
  color: var(--accent);
  font: 700 0.65rem/1 var(--launch-mono);
}
body[data-page="practice"] .jordan-name,
body[data-page="practice"] .summary-title {
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  line-height: 1.08;
}
body[data-page="practice"] .jordan-tagline,
body[data-page="practice"] .summary-subtitle,
body[data-page="practice"] .jordan-phase-meta {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
body[data-page="practice"] .jordan-question-panel,
body[data-page="practice"] .warmup-card,
body[data-page="practice"] .summary-card {
  border-color: var(--panel-border);
  border-radius: var(--launch-radius-lg);
  background: var(--panel);
  box-shadow: none;
}
body[data-page="practice"] .warmup-card,
body[data-page="practice"] .summary-card { padding: 18px; }
body[data-page="practice"] #start-button.cta-button {
  min-height: 50px;
  border-radius: var(--launch-radius-pill);
}
body[data-page="practice"] .session-stage {
  display: block;
  padding: 0 0 14px;
}
body[data-page="practice"] .session-prompt {
  width: 100%;
  gap: 14px;
  text-align: left;
}
body[data-page="practice"] .jordan-question-text {
  color: var(--text);
  opacity: 1;
  font-size: clamp(1.15rem, 5vw, 1.45rem);
  line-height: 1.55;
}
body[data-page="practice"] .jordan-coaching {
  width: 100%;
  padding: 12px 14px;
  border-left: 3px solid var(--yellow);
  border-radius: 0 var(--launch-radius-md) var(--launch-radius-md) 0;
  background: var(--truth-bg);
  color: var(--truth-ink);
  opacity: 1;
  font-style: normal;
  text-align: left;
}
body[data-page="practice"] .input-zone {
  padding: 16px;
  border-color: var(--panel-border);
  border: 1px solid var(--panel-border);
  border-radius: var(--launch-radius-lg);
  background: color-mix(in srgb, var(--panel) 92%, var(--bg));
  box-shadow: none;
}
body[data-page="practice"] .session-composer { padding: 0; }
body[data-page="practice"] .answer-input {
  border-color: var(--panel-border);
  border-radius: var(--launch-radius-md);
  background: color-mix(in srgb, var(--bg) 55%, var(--panel));
}

@media (max-width: 760px) {
  body.launch-surface .top-bar { padding: 10px 14px; }
  body.launch-surface .top-bar-right .nav-pill { display: none; }
  body .mobile-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 2px;
    overflow-x: auto;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    border-color: var(--panel-border);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    scrollbar-width: none;
  }
  body .mobile-tabs::-webkit-scrollbar { display: none; }
  body .mobile-tab {
    min-width: auto;
    flex: none;
    padding: 8px 7px;
    border-radius: var(--launch-radius-pill);
    color: var(--muted);
    font-size: 0.62rem;
  }
  body .mobile-tab-active {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--text);
  }
  body[data-page="practice"] .session-composer { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .launch-card { transition: none; }
}
