:root {
  color-scheme: light;
  --background: #f5f3ed;
  --paper: #fffefa;
  --ink: #262725;
  --muted: #62645e;
  --line: #dfdfd6;
  --blue: #7893a9;
  --blue-wash: #edf1f3;
  --lilac: #eeebf2;
  --lilac-ink: #6d617e;
  --gold: #b6923f;
  --wash: #f9f7ef;
  --success: #395b43;
  --error: #933f33;
  --focus: #6d617e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  background: var(--background);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, a, input, textarea, select, summary { touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { color: var(--ink); background: #e4deec; }
.wrap { width: min(calc(100% - 40px), 600px); margin: 0 auto; }
.topbar { display: flex; align-items: center; min-height: 96px; padding: 25px 0; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
.brand-fallback { position: relative; font-family: ui-monospace, "Courier New", monospace; font-size: 27px; font-weight: 900; letter-spacing: -1.6px; line-height: 1; }
.brand-fallback > span { color: #71869a; }
.brand-fallback::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 2px 6px; background: var(--gold); }
#brand-logo { display: block; width: 188px; height: 44px; max-width: 100%; object-fit: contain; object-position: left center; image-rendering: pixelated; }
.intro { padding: 20px 0 27px; }
h1 { font-size: clamp(34px, 6.6vw, 47px); line-height: 1.075; letter-spacing: -.05em; font-weight: 650; }
.lede { max-width: 440px; margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.paper { position: relative; padding: 0 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 3px 0 #e9e8e0; }
.paper::before, .paper::after { content: ""; position: absolute; width: 5px; height: 5px; pointer-events: none; }
.paper::before { top: -1px; left: -1px; background: var(--blue); }
.paper::after { bottom: -1px; right: -1px; background: #bcb2c8; }
.stage-progress { display: none; }
.story-section { padding: 15px 0 20px; }
h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.035em; font-weight: 650; }
h3 { font-size: 16px; line-height: 1.35; letter-spacing: -.015em; font-weight: 650; }
.chest { position: relative; width: 216px; height: 216px; margin: 0 auto 9px; isolation: isolate; }
.chest::before { content: ""; position: absolute; bottom: 26px; left: 25%; width: 50%; height: 7px; background: #eee7d4; z-index: -1; }
.chest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.chest-open { opacity: 0; }
/* A real SDK call-start sets data-open once; no looping or button-click reveal. */
.chest[data-open="true"] .chest-closed { animation: closed-pose 400ms both; }
.chest[data-open="true"] .chest-open { animation: open-pose 400ms both; }
@keyframes closed-pose { 0%, 30% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes open-pose { 0%, 30% { opacity: 0; transform: translateY(3px); } 65%, 100% { opacity: 1; transform: translateY(0); } }
.call-panel { width: 100%; max-width: 420px; margin: 0 auto; }
.call-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.call-heading:has(> :not([hidden])) { margin: 0 0 10px; }
.call-state { color: var(--muted); font-size: 13px; line-height: 1.5; }
.call-badge { color: var(--muted); font-size: 10px; line-height: 1.5; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid var(--ink); border-radius: 3px; text-align: left; font-size: 15px; line-height: 1.35; font-weight: 650; transition: background-color 120ms ease, border-color 120ms ease; }
.primary { color: #fffefa; background: var(--ink); }
.primary:not(:disabled):hover { background: #40423d; }
.primary:disabled { background: #666860; border-color: #666860; }
#start { min-height: 56px; }
.button-icon { font-size: 20px; line-height: 1; }
.secondary { color: var(--ink); background: var(--paper); border-color: #c6c9bf; }
.secondary:not(:disabled):hover { background: var(--wash); border-color: #979e94; }
.secondary:disabled { color: #777970; background: #f3f3ed; border-color: #d9dcd2; }
.call-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.call-controls > button { flex: 1 1 145px; min-height: 44px; justify-content: center; padding: 10px 12px; font-size: 13px; }
#mute[aria-pressed="true"] { color: var(--lilac-ink); background: var(--lilac); border-color: #bcb0c9; }
.end-button { border-color: #cfbdb4; }
/* Voice blocks follow observed volume. There is no idle pulse or thinking loop. */
.coach-presence { display: flex; align-items: center; gap: 10px; padding: 0 0 14px; }
.coach-presence[data-state="idle"] { display: none; }
.coach-orb { --voice-level: 0; display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #bfcbd3; border-radius: 2px; color: #728ba0; background: var(--blue-wash); }
.pixel-bars { display: flex; align-items: center; justify-content: center; gap: 3px; width: 24px; height: 26px; }
.pixel-bars > i { display: block; width: 5px; height: calc(4px + 14px * var(--voice-level, 0)); background: currentColor; transition: height 80ms steps(3, end); }
.pixel-bars > i:nth-child(2) { height: calc(8px + 16px * var(--voice-level, 0)); }
.pixel-bars > i:nth-child(3) { height: calc(4px + 10px * var(--voice-level, 0)); }
.coach-name { font-size: 13px; font-weight: 650; line-height: 1.4; }
.coach-state { color: var(--muted); margin-top: 2px; font-size: 12px; line-height: 1.5; }
.coach-presence[data-state="thinking"] .coach-orb { background: #f5f0e2; border-color: #d4c697; color: #aa8c3f; }
.coach-presence[data-state="speaking"] .coach-orb { background: var(--lilac); border-color: #c4b9d1; color: #8b799d; }
.coach-presence[data-state="muted"] .coach-orb, .coach-presence[data-state="ended"] .coach-orb { background: #f0f0eb; border-color: #d6d8cf; color: #8d9187; }
.coach-presence[data-state="muted"] .pixel-bars > i, .coach-presence[data-state="ended"] .pixel-bars > i { height: 4px; }
.coach-caption, .transcript-current { margin-top: 13px; padding: 11px 12px; border-left: 2px solid #b6a7c6; color: #504857; background: #f4f1f6; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
/* Caption is the main live line; the complete conversation remains in Transcript. */
.coach-caption:not([hidden]) + .transcript-current { display: none; }
.quiet { color: var(--muted); font-size: 13px; line-height: 1.55; }
.quiet summary { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; min-height: 44px; padding: 10px 0; list-style: none; color: var(--muted); font-weight: 500; }
.quiet summary::-webkit-details-marker { display: none; }
.quiet summary::before { content: "+"; width: 10px; flex: 0 0 auto; color: var(--blue); font-family: ui-monospace, monospace; font-size: 14px; }
.quiet[open] > summary::before { content: "−"; }
.quiet summary:hover { color: var(--ink); }
.quiet > p, .privacy-copy > p { margin: 0 0 11px; line-height: 1.6; overflow-wrap: anywhere; }
.summary-meta { color: var(--muted); font-size: 11px; font-weight: 400; }
.transcript-details { margin-top: 3px; }
.transcript-log { max-height: 240px; overflow-y: auto; padding: 12px 0; border-top: 1px solid var(--line); line-height: 1.6; overscroll-behavior: contain; overflow-wrap: anywhere; }
.transcript-log > p + p, .transcript-log > div + div { margin-top: 12px; }
.transcript-log strong, .transcript-turn .speaker { color: var(--ink); font-size: 12px; font-weight: 650; }
.micro, .empty-transcript { color: var(--muted); font-size: 12px; line-height: 1.55; }
.privacy-details { margin: 4px auto 0; max-width: 420px; }
.privacy-details > summary { justify-content: center; gap: 8px; text-align: center; font-size: 11px; line-height: 1.5; }
.privacy-details > summary::before { display: none; }
.privacy-link { text-decoration: underline; text-underline-offset: 3px; }
.privacy-copy { padding-top: 8px; font-size: 12px; }
.inline-alert { margin-top: 12px; padding: 12px 14px; border: 1px solid #dfc5bc; border-radius: 2px; color: var(--error); background: #faf0ea; font-size: 14px; line-height: 1.5; }
.paper-section { padding: 24px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.evidence-note { margin: 8px 0 19px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.skill-map { --map-gap: 28px; position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: var(--map-gap); padding: 2px 0; }
.skill-avatar { display: grid; justify-items: center; gap: 7px; padding: 9px 4px 8px; border: 1px solid #d5cedf; border-radius: 2px; background: #f1eef5; color: var(--lilac-ink); z-index: 1; }
.skill-avatar svg { display: block; width: 56px; max-width: 100%; height: auto; image-rendering: pixelated; }
.skill-avatar span { font-family: ui-monospace, monospace; font-size: 12px; font-weight: 700; }
.skill-content { min-width: 0; }
.skills-empty, .jobs-empty { display: none; }
.skill-nodes { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.skill { position: relative; z-index: 1; padding: 12px 13px; border: 1px solid #dde0d7; border-radius: 2px; background: #fafaf5; overflow-wrap: anywhere; }
.skill::after { content: ""; position: absolute; left: -1px; top: -1px; width: 3px; height: 3px; background: var(--blue); }
.skill h3 { font-size: 16px; }
.skill p { margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.skill-kicker, .skill .evidence-label { color: var(--muted); font-size: 10px; line-height: 1.5; }
.skill > .skill-kicker { display: none; }
.skill-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.skill-actions .text-button { min-height: 36px; padding: 5px 0; font-size: 11px; }
.map-connectors { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.map-connectors path, .map-connectors line { stroke: #9faab5; stroke-width: 1; fill: none; shape-rendering: crispEdges; }
.skill-map[data-empty="true"] .map-connectors { display: none; }
#story { margin-top: 11px; }
.correction-button { margin-top: 3px; font-size: 12px; }
.correction-panel { margin-top: 8px; padding: 12px 14px; border: 1px solid #d8d0e1; border-radius: 2px; background: #f6f3f8; }
.correction-panel label { margin-top: 0; }
.correction-panel .secondary { min-height: 44px; margin-top: 8px; font-size: 13px; }
#correction-status:not(:empty) { margin-top: 9px; }
.preference-chips { display: flex; flex-wrap: wrap; gap: 3px 12px; padding: 0; margin: 12px 0 4px; list-style: none; }
.preference-chips li { color: var(--lilac-ink); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.preference-chips button { min-height: 44px; padding: 5px 0; border: 0; background: transparent; color: var(--lilac-ink); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.preferences, .search-settings { margin-top: 5px; }
form { margin: 0; }
label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 14px 0 5px; color: var(--ink); font-size: 13px; font-weight: 650; }
.optional { color: var(--muted); font-size: 11px; font-weight: 400; }
.field-help { margin: 5px 0 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
input, textarea, select { display: block; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c8cbbf; border-radius: 2px; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.45; }
textarea { min-height: 82px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #73776c; opacity: 1; font-size: 14px; }
input:disabled, textarea:disabled { background: #f1f2eb; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: 5px; color: var(--error); font-size: 12px; line-height: 1.5; }
.review-evidence { align-items: flex-start; justify-content: flex-start; gap: 9px; margin: 12px 0; font-weight: 400; }
.review-evidence input[type="checkbox"] { width: 16px; height: 16px; min-height: 16px; margin: 2px 0 0; flex: 0 0 16px; padding: 0; accent-color: var(--lilac-ink); }
.explore-button { margin: 12px 0 7px; }
.search-status:not(:empty) { margin-top: 13px; padding: 10px 12px; border-left: 2px solid var(--blue); background: var(--blue-wash); color: #526575; font-size: 13px; line-height: 1.55; }
#jobs:not(:empty) { margin-top: 16px; }
.job { padding: 16px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.job.chosen { padding: 16px; border: 1px solid #d7d0bd; border-radius: 2px; background: var(--wash); }
.job h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.025em; }
.job p { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.job-source, .job-eyebrow { margin-bottom: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.job .reason { color: var(--ink); }
.job .job-meta, .job .micro { font-size: 12px; }
.job blockquote { margin: 8px 0 0; padding-left: 11px; border-left: 2px solid #c2b586; color: var(--ink); font-size: 14px; line-height: 1.6; }
.job a { display: inline-block; padding: 10px 0; margin-top: 3px; color: var(--ink); font-size: 14px; line-height: 1.5; text-underline-offset: 4px; }
.job .secondary { margin-top: 7px; min-height: 44px; font-size: 13px; }
.alternatives { margin-top: 8px; }
.dataset-context { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.dataset-context h3 { font-size: 14px; }
.dataset-context ul { margin: 10px 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.dataset-context li + li { margin-top: 6px; }
.dataset-context p + p { margin-top: 8px; }
.occupation + .occupation { margin-top: 14px; }
.page-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 80px; padding: 12px 0 max(28px, env(safe-area-inset-bottom)); }
.utility-menu > summary { width: fit-content; font-size: 11px; }
.utility-menu > summary::before { color: #8d9388; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 18px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 0; border: 0; color: var(--muted); background: transparent; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--ink); }
.modal { width: min(calc(100% - 32px), 520px); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #cbd0c3; border-radius: 4px; color: var(--ink); background: var(--paper); box-shadow: 0 20px 60px #23292030; }
.modal::backdrop { background: #25292366; }
.modal[open] { display: flex; flex-direction: column; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 auto; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 23px; }
.close-button { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; margin: 0 -8px 0 0; border: 0; border-radius: 2px; color: var(--muted); background: transparent; font-size: 26px; line-height: 1; }
.close-button:hover { color: var(--ink); background: var(--wash); }
.modal-body { min-height: 0; overflow-y: auto; padding: 20px 24px; overscroll-behavior: contain; }
.modal-lede { color: var(--ink); font-size: 15px; line-height: 1.55; }
.setup-note { margin: 10px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.provider { margin: 11px 0; padding: 14px 0 7px; border-top: 1px solid var(--line); }
.provider-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 7px; }
.provider-heading h3 { font-size: 16px; }
.provider-heading h3 span { color: var(--muted); font-size: 12px; font-weight: 400; }
.provider-status { color: var(--lilac-ink); font-size: 10px; line-height: 1.5; }
.provider > p { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.provider > p.provider-detail { font-size: 12px; }
.provider[data-status="verified"] .provider-status { color: var(--success); }
.provider[data-status="missing"] .provider-status { color: #896a2a; }
.provider[data-status="failed"] .provider-status { color: var(--error); }
.provider .quiet summary { font-size: 12px; }
code { padding: 2px 4px; border-radius: 2px; background: #f0f1e9; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; overflow-wrap: anywhere; }
.origin-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 9px 0 14px; }
.origin-row code { min-width: 0; flex: 1 1 180px; padding: 8px; line-height: 1.6; }
.origin-row .secondary { width: auto; min-height: 44px; padding: 9px 11px; font-size: 12px; }
.modal-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 16px 24px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #f8f8f1; }
.modal-actions > .primary, .modal-actions > .secondary { min-width: 0; flex: 1 1 0; min-height: 46px; padding: 11px 13px; font-size: 13px; }
.modal-actions > .text-button { flex: 1 1 0; justify-content: flex-start; text-align: left; }
.agent-modal > form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.question-preview { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--line); }
.question-preview ol { margin: 8px 0 12px; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.question-preview li + li { margin-top: 8px; }
.question-preview li::marker { color: var(--blue); }
.dataset-details { margin-top: 8px; }
#agent-status:not(:empty) { margin-top: 12px; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 20; padding: 12px 16px; border-radius: 2px; color: white; background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript { max-width: 600px; margin: 20px auto; padding: 20px; color: var(--error); font-size: 14px; line-height: 1.6; }
@media (min-width: 480px) { .wrap { width: min(calc(100% - 48px), 600px); } }
@media (max-width: 520px) {
  .topbar { min-height: 78px; padding: 17px 0; }
  .intro { padding: 16px 0 24px; }
  .paper { padding: 0 22px; }
  .story-section { padding-top: 10px; }
  .chest { width: 192px; height: 192px; margin-bottom: 10px; }
  .chest::before { bottom: 23px; }
  .lede { font-size: 15px; }
  .skill-map { --map-gap: 24px; grid-template-columns: 62px minmax(0, 1fr); }
  .skill-avatar svg { width: 46px; }
  .skill { padding: 11px; }
  .modal { width: calc(100% - 20px); max-height: calc(100dvh - 24px); margin: auto; }
  .modal-header { padding: 16px 20px; }
  .modal-body { padding: 18px 20px; }
  .modal-actions { padding-inline: 20px; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); }
  h1 { font-size: 32px; }
  h2 { font-size: 22px; }
  .brand-fallback { font-size: 25px; }
  .paper { padding: 0 16px; }
  .chest { width: 184px; height: 184px; }
  .privacy-details > summary { gap: 3px 7px; font-size: 10px; }
  .call-heading { flex-wrap: wrap; gap: 5px; }
  .skill-map { --map-gap: 22px; grid-template-columns: 54px minmax(0, 1fr); }
  .skill-avatar svg { width: 42px; }
  .summary-meta { font-size: 10px; }
  .modal-actions { gap: 8px; }
}
@media (max-width: 290px) {
  .headline-break { display: none; }
  h1 { font-size: 29px; }
  .chest { width: 160px; height: 160px; }
  .skill-map { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .skill-avatar { width: 58px; }
  .modal-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .chest[data-open="true"] .chest-closed { opacity: 0; }
  .chest[data-open="true"] .chest-open { opacity: 1; transform: none; }
}

/* User-requested pixel display hierarchy; body copy stays readable. */
@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/pixelify-sans.ttf') format('truetype');
}
.topbar { justify-content: center; min-height: 136px; padding: 18px 0 0; }
#brand-logo { width: min(360px, 80vw); height: 100px; object-position: center; }
.brand-fallback { font-family: 'Pixelify Sans', monospace; font-size: 48px; letter-spacing: 0; }
.intro { text-align: center; }
h1 { font-family: 'Pixelify Sans', monospace; font-size: clamp(38px, 7vw, 54px); font-weight: 600; line-height: 1.02; letter-spacing: -.025em; }
.lede { max-width: 450px; margin: 18px auto 0; }
#start, #search { font-family: 'Pixelify Sans', monospace; font-size: 23px; font-weight: 500; justify-content: center; text-align: center; border: 0; border-radius: 0; padding: 16px 26px; width: min(100%, 350px); min-height: 58px; margin-inline: auto; display: flex; box-shadow: -4px 0 0 var(--ink), 4px 0 0 var(--ink), 0 -4px 0 var(--ink), 0 4px 0 var(--ink), 0 8px 0 #c5c3b6; }
#start:hover, #search:hover { transform: translateY(-1px); }
#start .button-icon { display: none; }
#start:disabled, #search:disabled { box-shadow: -4px 0 0 #666860, 4px 0 0 #666860, 0 -4px 0 #666860, 0 4px 0 #666860, 0 8px 0 #c5c3b6; }
@media (max-width: 380px) {
  .topbar { min-height: 110px; }
  #brand-logo { width: 280px; height: 90px; }
  h1 { font-size: 37px; }
  #start, #search { font-size: 21px; width: calc(100% - 12px); }
}

/* The entry is now only the wordmark, one line, chest and action. */
body[data-screen='entry'] .intro h1 { display: none; }
body[data-screen='coach'] .intro { display: none; }
.coach-heading { padding: 0 0 24px; text-align: center; }
.coach-heading h1 { font-size: clamp(32px, 5vw, 44px); }
.coach-heading .micro { margin-top: 12px; }
body[data-screen='coach'] #chest { display: none; }
body[data-screen='coach'] .skills-empty:not([hidden]) { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; }
.based-on { max-width: 520px; margin: 0 auto 32px; }
.based-on > summary { justify-content: center; font-size: 11px; }
.based-on > p { padding: 4px 12px 12px; font-size: 12px; }

/* One pixel language across primary actions and underlying controls. */
.secondary, .modal-actions .primary { border-radius: 0; border-width: 2px; box-shadow: 0 3px 0 #d1d1c5; font-family: 'Pixelify Sans', monospace; font-size: 18px; text-align: center; justify-content: center; }
.text-button { font-family: 'Pixelify Sans', monospace; font-size: 16px; }
body[data-screen='coach'] .skill { animation: node-arrival 360ms steps(5, end) both; }
@keyframes node-arrival { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
body[data-screen='coach'] .map-connectors path { stroke-width: 2; stroke-dasharray: 650; stroke-dashoffset: 0; animation: branch-arrival 650ms steps(12, end); }
@keyframes branch-arrival { from { stroke-dashoffset: 650; } to { stroke-dashoffset: 0; } }
body[data-screen='coach'] .transcript-details summary { font-family: 'Pixelify Sans', monospace; font-size: 16px; }

:root { --background: #f6f0fb; --ink: #352b40; --muted: #71637e; --line: #e2d6ec; --focus: #896aa5; --lilac: #eee3f6; --lilac-ink: #7a5598; --blue: #a58bbc; --gold: #a58bbc; }
.primary { background: #7d5b9b; border-color: #7d5b9b; }
#start, #search { background: #7d5b9b; color: #fffafc; box-shadow: -4px 0 0 #7d5b9b, 4px 0 0 #7d5b9b, 0 -4px 0 #7d5b9b, 0 4px 0 #7d5b9b, 0 8px 0 #c5afd8; font-size: 24px; }
#start:hover, #search:hover { background: #73508f; }
#brand-logo { filter: hue-rotate(200deg) saturate(.55); }
.entry-you { display: flex; flex-direction: column; align-items: center; position: absolute; left: 14%; top: 124px; color: #7b628e; font-family: 'Pixelify Sans', monospace; font-size: 16px; }
.entry-you svg { width: 40px; height: 58px; image-rendering: pixelated; }
body[data-screen='coach'] .entry-you { display: none; }
@media (max-width: 380px) { .entry-you { left: 5%; top: 111px; } }

#brand-logo { filter: none; }

body[data-screen='entry'] .intro h1 { display: block; }

.launch-scene { display: flex; align-items: flex-end; justify-content: center; gap: 30px; padding: 6px 0 16px; }
.launch-scene .chest { margin: 0; }
.entry-you { position: static; width: 66px; flex: 0 0 66px; margin-bottom: 40px; gap: 7px; font-size: 19px; }
.entry-you svg { width: 60px; height: 86px; transform-origin: 50% 95%; animation: you-wave 3.4s steps(2, end) infinite; }
@keyframes you-wave { 0%, 65%, 100% { transform: rotate(0) translateY(0); } 72% { transform: rotate(-3deg) translateY(-2px); } 80% { transform: rotate(3deg) translateY(-2px); } 88% { transform: rotate(0) translateY(0); } }
body[data-screen='coach'] .launch-scene { display: none; }
@media (max-width: 420px) { .launch-scene { gap: 12px; } .entry-you { width: 50px; flex-basis: 50px; margin-bottom: 30px; } .entry-you svg { width: 46px; height: 67px; } }
@media (prefers-reduced-motion: reduce) { .entry-you svg { animation: none; } }

/* Reworked landing: less dead space, story-led copy, one clear action. */
body[data-screen='entry'] .wrap { width: min(calc(100% - 40px), 1120px); }
body[data-screen='entry'] .topbar { padding-top: 20px; min-height: 100px; }
body[data-screen='entry'] #brand-logo { width: 300px; height: 92px; }
body[data-screen='entry'] .intro { max-width: 620px; margin: 0 auto; padding: 16px 0 30px; }
body[data-screen='entry'] .intro h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.12; }
body[data-screen='entry'] .lede { font-size: 17px; line-height: 1.65; margin-top: 18px; }
body[data-screen='entry'] .paper { max-width: 560px; margin: 0 auto; border: 2px solid #e4d6ee; box-shadow: 6px 6px 0 #eaddf1; padding: 20px 24px; }
body[data-screen='entry'] #story-section { padding: 10px 0; }
body[data-screen='entry'] .launch-scene { padding: 25px 0 20px; gap: 26px; }
body[data-screen='entry'] #start { margin-top: 12px; margin-bottom: 18px; }
body[data-screen='entry'] .privacy-details { margin-top: 12px; }
@media (min-width: 960px) {
  body[data-screen='entry'] .wrap { display: grid; grid-template-columns: 1.12fr 1fr; column-gap: 55px; }
  body[data-screen='entry'] .topbar { grid-column: 1 / -1; justify-content: flex-start; padding-top: 28px; margin-bottom: 30px; }
  body[data-screen='entry'] .intro { grid-column: 1; grid-row: 2; align-self: center; text-align: left; margin: 0; padding: 25px 0; }
  body[data-screen='entry'] .intro h1 { font-size: 52px; }
  body[data-screen='entry'] .lede { max-width: 470px; font-size: 18px; }
  body[data-screen='entry'] .paper { grid-column: 2; grid-row: 2; width: 100%; align-self: center; padding: 24px; }
  body[data-screen='entry'] .page-footer { grid-column: 1 / -1; margin-top: 28px; }
  body[data-screen='entry'] #based-on { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  body[data-screen='entry'] .wrap { width: calc(100% - 28px); }
  body[data-screen='entry'] .paper { padding: 16px; }
  body[data-screen='entry'] .launch-scene { gap: 14px; }
  body[data-screen='entry'] #brand-logo { width: 260px; height: 78px; }
}

.entry-result { display: none; }
body[data-screen='entry'] .entry-result { display: block; margin: 25px auto; max-width: 560px; }
.entry-result img { display: block; width: 100%; height: auto; border: 2px solid #e4d6ee; box-shadow: 6px 6px 0 #eaddf1; }
.entry-result figcaption { margin-top: 14px; font-size: 13px; line-height: 1.5; color: #79658a; text-align: center; }
@media (min-width: 960px) {
  body[data-screen='entry'] .entry-result { grid-column: 2; grid-row: 2 / span 2; align-self: center; margin: 0; width: 100%; }
  body[data-screen='entry'] .paper { grid-column: 1; grid-row: 3; margin: 15px 0 0; padding: 14px 20px; }
  body[data-screen='entry'] .launch-scene { padding: 8px 0 9px; }
  body[data-screen='entry'] .chest { width: 128px; height: 120px; }
  body[data-screen='entry'] .entry-you { margin-bottom: 14px; }
}
@media (max-width: 959px) {
  body[data-screen='entry'] .wrap { display: flex; flex-direction: column; }
  body[data-screen='entry'] .topbar { order: 0; }
  body[data-screen='entry'] .intro { order: 1; }
  body[data-screen='entry'] .paper { order: 2; width: 100%; }
  body[data-screen='entry'] .entry-result { order: 3; }
  body[data-screen='entry'] .page-footer { order: 4; }
  body[data-screen='entry'] #based-on { order: 5; }
}

/* Latest direction: the cropped sample replaces You/chest above the action. */
.landing-result { margin: 0 0 22px; }
.landing-result img { display: block; width: 100%; height: auto; }
.landing-result figcaption { margin-top: 12px; text-align: center; color: #79658a; font-size: 12px; line-height: 1.5; }
body[data-screen='coach'] .landing-result { display: none; }
body[data-screen='entry'] #chest,
body[data-screen='entry'] .entry-you,
body[data-screen='entry'] .launch-scene { display: none !important; }
body[data-screen='entry'] .paper { padding: 22px; }
body[data-screen='entry'] #story-section { padding: 0; }
body[data-screen='entry'] #start { margin-top: 6px; }
@media (min-width: 960px) {
  body[data-screen='entry'] .paper { grid-column: 2; grid-row: 2; margin: 0; }
}
@media (max-width: 520px) {
  body[data-screen='entry'] .paper { padding: 16px; }
  .landing-result { margin-bottom: 18px; }
}
