/* wizard pages — MatDash horizontal language, loaded after app.css.
   Everything is scoped to the new-idea wizard (.wz) and its "making your plan" overlay (#making),
   because this file loads on every page. */

/* Top line: progress on the left, a quiet "Save for later" on the right */
.wz .flow-top { padding: 22px 0 12px; }
.wz .flow-count { margin: 0; }
.wz .flow-top .back-link + .flow-count { margin-right: auto; margin-left: 12px; }
.wz-save { font-size: 13.5px; font-weight: 600; color: var(--aura-color-text-muted); text-decoration: none; }
.wz-save:hover, .wz-save:focus-visible { color: var(--aura-color-brand-fg); text-decoration: underline; }
.wz .flow-bar { background: var(--hairline); }

/* Screens */
.wz .screen { padding-top: 32px; }
.wz .q { color: var(--aura-color-text-heading); }
.wz .q-help { margin-bottom: 22px; }
.wz .screen-actions { margin-top: 24px; }
.wz .screen[data-screen="idea"] .screen-actions { justify-content: flex-end; }
.wz .btn-lg .icon { width: 18px; height: 18px; }

/* The two cards on the check screen: white, borderless, soft shadow */
.wz .review-card.wz-card { border: 0; box-shadow: var(--md-shadow); border-radius: var(--r-surface); padding: 22px 24px; margin-bottom: 16px; }
.wz-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.wz-head h2 { font: 700 18px/1.3 var(--aura-font-family-display); letter-spacing: -.01em; color: var(--aura-color-text-heading); margin: 4px 0 0; }
.wz-head .rc-note { margin: 4px 0 0; font-size: 13.5px; }
.wz-no { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--md-primary-tint); color: var(--aura-color-brand-fg); font: 800 15px var(--aura-font-family-display); }
.wz-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wz .level-pick { margin-top: 0; }
.wz .level-chipcard > span { border-color: var(--hairline); }

/* Primary action: big and easy to hit; going back is quiet */
.wz .review-actions { margin: 8px 0 28px; }
.wz .review-actions .btn-lg { min-width: 240px; justify-content: center; }

/* Folded extras below the decision */
.wz-folds { display: grid; gap: 12px; }
.wz-fold { background: var(--aura-color-bg-surface); border-radius: var(--r-surface); box-shadow: var(--md-shadow); }
.wz-fold[hidden] { display: none; }
.wz-fold > summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; border-radius: var(--r-surface); }
.wz-fold > summary::-webkit-details-marker { display: none; }
.wz-fold > summary:focus-visible { outline: 2px solid var(--aura-color-focus-ring); outline-offset: 2px; }
.wz-fold-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.wz-fold-t b { font-size: 15px; color: var(--aura-color-text-heading); }
.wz-fold-t small { font-size: 13px; color: var(--aura-color-text-muted); }
.wz-fold .chev { width: 18px; height: 18px; flex: none; color: var(--aura-color-text-subtle); transition: transform var(--aura-duration-fast); }
.wz-fold[open] > summary .chev { transform: rotate(180deg); }
.wz-fold > summary:hover .chev { color: var(--aura-color-brand-fg); }
.wz-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--md-primary-tint); color: var(--aura-color-brand-fg); }
.wz-ico .icon { width: 19px; height: 19px; }
.wz-ico.is-amber { background: var(--md-amber-tint); color: var(--aura-color-status-attention-fg); }
.wz-fold-body { padding: 4px 20px 20px; }
.wz-sec { padding: 18px 0; border-top: 1px solid var(--hairline); }
.wz-sec:first-child { border-top: 0; padding-top: 6px; }
.wz-sec[hidden] { display: none; }
.wz-sec .more-q { font: 700 15px var(--aura-font-family-display); color: var(--aura-color-text-heading); margin: 0 0 10px; }
.wz-sec [data-block] + [data-block] { margin-top: 18px; }
.wz-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wz-sec-head .more-q { margin: 0; }
.wz-sec .rc-note { margin-bottom: 10px; }
.wz .adv-grid.wz-grid { padding: 0 0 12px; }
.wz .wz-fold .advanced { margin-top: 4px; border-color: var(--hairline); }
.wz .rc-list.later { gap: 10px; }
.wz .rc-list.later li { border-left: 0; border-radius: 12px; }

/* "Making your plan": one progress indicator (the step list), calm copy */
#making .overlay-card { background: var(--aura-color-bg-surface); border-radius: var(--r-surface); box-shadow: var(--md-shadow); padding: 32px 28px 26px; }
#making h2 { color: var(--aura-color-text-heading); }
#making .making-steps { margin-top: 22px; }
.wz-making-foot { margin: 20px 0 0; font-size: 13px; color: var(--aura-color-text-subtle); }
#making:has(#making-slow:not([hidden])) .wz-making-foot,
#making:has(#making-error:not([hidden])) .wz-making-foot { display: none; }

@media (max-width: 640px) {
  .wz .screen { padding-top: 24px; }
  .wz .review-card.wz-card { padding: 18px 16px; }
  .wz-fold > summary { padding: 14px 16px; gap: 12px; }
  .wz-fold-body { padding: 0 16px 16px; }
  .wz .review-actions { flex-direction: column-reverse; align-items: stretch; }
  .wz .review-actions .btn-lg { min-width: 0; width: 100%; }
  .wz .review-actions [data-back] { margin-right: 0; align-self: center; }
  #making .overlay-card { margin: 0 16px; width: auto; padding: 26px 18px 22px; }
}

/* Steps still to come get a visible empty ring */
#making .making-steps li:not(.active):not(.done) .tick { border: 1.5px solid var(--aura-color-border-strong); }
/* Assumptions read as a calm bullet list */
.wz #rv-assume { font-size: 14px; line-height: 1.5; color: var(--aura-color-text-default); list-style: disc; padding-left: 20px; gap: 4px; }
.wz #rv-assume li::marker { color: var(--aura-color-brand-fg); }
/* Phones: keep progress and "Save for later" on one line (the back link only shows when editing) */
@media (max-width: 640px) {
  .wz .flow-top .flow-count { order: 0; flex: 1 1 auto; flex-basis: auto; }
  .wz .flow-top .back-link ~ .flow-count { order: 3; flex-basis: 100%; }
}

/* Show the person's idea back to them, and what each level costs */
.wz .rv-idea { display: grid; gap: 4px; margin: 4px 0 18px; padding: 14px 18px; border-radius: 12px; background: var(--aura-color-bg-surface); box-shadow: var(--md-shadow); border-left: 3px solid var(--aura-color-brand-solid); }
.wz .rv-idea-label { font-size: 12.5px; font-weight: 700; color: var(--aura-color-text-subtle); text-transform: uppercase; letter-spacing: .06em; }
.wz .rv-idea p { font-size: 15px; color: var(--aura-color-text-default); white-space: pre-line; max-height: 7.5em; overflow: hidden; }
.wz .lv-price { display: block; margin-top: 6px; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--aura-color-brand-fg); }
/* Level cards stack: icon, name, what you get, then the price at the bottom */
.wz .level-chipcard > span { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; }
.wz .level-chipcard .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--md-primary-tint); box-sizing: border-box; }
.wz .level-chipcard b { font-size: 16px; color: var(--aura-color-text-heading); }
.wz .level-chipcard small { font-size: 13.5px; line-height: 1.45; }
.wz .level-chipcard .lv-price { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--hairline); width: 100%; }
/* "Reading your idea": say what is happening, how long, and show where the suggestions will land */
.suggest-status { display: grid; gap: 14px; margin: 4px 0 14px; padding: 16px 18px; border-radius: 14px; background: var(--md-primary-tint); }
.suggest-status[hidden] { display: none; }
.ss-head { display: flex; gap: 14px; align-items: flex-start; }
.ss-head > div { display: grid; gap: 3px; }
.ss-head b { font-size: 15px; color: var(--aura-color-text-heading); }
.ss-head small { font-size: 13.5px; line-height: 1.5; color: var(--aura-color-text-muted); }
.ss-ai { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--aura-color-brand-solid); color: var(--aura-color-brand-on-solid); animation: ss-pulse 1.6s ease-in-out infinite; }
.ss-ai .icon { width: 19px; height: 19px; }
@keyframes ss-pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--aura-color-brand-solid) 18%, transparent); } }
.ss-skel { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ss-skel li { height: 42px; border-radius: 10px; background: linear-gradient(90deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .95) 50%, rgba(255, 255, 255, .55) 100%); background-size: 200% 100%; animation: ss-shimmer 1.4s linear infinite; }
.ss-skel li:nth-child(2) { width: 82%; } .ss-skel li:nth-child(3) { width: 64%; }
@keyframes ss-shimmer { to { background-position: -200% 0; } }
:root[data-aura-theme="dark"] .ss-skel li { background-image: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .14), rgba(255, 255, 255, .06)); }
.suggest-fail { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--md-amber-tint); font-size: 14px; color: var(--aura-color-text-default); }
.suggest-fail[hidden] { display: none; }
.suggest-fail .icon { width: 17px; height: 17px; margin-top: 2px; flex: none; color: var(--aura-color-status-attention-fg); }
@media (prefers-reduced-motion: reduce) { .ss-ai, .ss-skel li { animation: none; } }
/* The AI is visibly at work: a running clock and "typing" dots in each placeholder row */
.ss-head b { display: inline; }
.ss-time { display: inline-block; min-width: 2.5em; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--aura-color-brand-solid) 14%, transparent); color: var(--aura-color-brand-fg); font: 600 12px var(--aura-font-family-mono); vertical-align: 2px; }
.ss-time:empty { display: none; }
.ss-skel li { display: flex; align-items: center; padding: 0 16px; }
.ss-dots { display: inline-flex; gap: 5px; }
.ss-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--aura-color-brand-highlight); opacity: .35; animation: ss-dot 1.2s ease-in-out infinite; }
.ss-dots i:nth-child(2) { animation-delay: .15s; } .ss-dots i:nth-child(3) { animation-delay: .3s; }
.ss-skel li:nth-child(2) .ss-dots i { animation-delay: .25s; } .ss-skel li:nth-child(3) .ss-dots i { animation-delay: .5s; }
@keyframes ss-dot { 0%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ss-dots i { animation: none; opacity: .6; } }
/* Once the instant draft is in, the status shrinks to one line and the placeholders go */
.suggest-status.is-improving { padding: 10px 14px; gap: 0; }
.suggest-status.is-improving .ss-skel, .suggest-status.is-improving .ss-head small { display: none; }
.suggest-status.is-improving .ss-ai { width: 30px; height: 30px; border-radius: 9px; }
/* Keep the clock on the same line as the status sentence */
.ss-head > div { display: block; }
.ss-head > div > small { display: block; margin-top: 3px; }

/* "Making your plan": a moving bar, a running clock and a spinning ring on the current step */
#making .making-meter { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; }
#making .making-meter .making-bar { flex: 1; margin: 0; max-width: none; height: 8px; }
#making .making-bar span { background: linear-gradient(90deg, var(--aura-color-brand-highlight), var(--aura-color-brand-solid)); position: relative; overflow: hidden; }
#making .making-bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%); animation: mk-shine 1.6s linear infinite; }
@keyframes mk-shine { to { transform: translateX(100%); } }
#making .making-clock { flex: none; min-width: 92px; text-align: right; font: 600 12.5px var(--aura-font-family-mono); color: var(--aura-color-brand-fg); }
#making .making-steps li.active .tick { position: relative; border-color: transparent; }
#making .making-steps li.active .tick::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--aura-color-brand-solid) 20%, transparent); border-top-color: var(--aura-color-brand-solid); animation: mk-spin .9s linear infinite; }
@keyframes mk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #making .making-bar span::after, #making .making-steps li.active .tick::after { animation: none; } }

/* =====================================================================
   Step prompt as a terminal: the prompt looks like what you paste into
   your IDE. Always dark (like the "my-idea.txt" box), in light and dark mode.
   ===================================================================== */
.prompt-card.prompt-term {
  --pt-bg: var(--surface-ink); --pt-bar: var(--surface-ink-raised); --pt-line: rgba(255, 255, 255, .07);
  --pt-text: var(--on-ink); --pt-dim: var(--on-ink-muted); --pt-violet: var(--ink-accent); --pt-teal: var(--ink-teal); --pt-amber: var(--ink-amber);
  padding: 0; overflow: hidden; border: 1px solid var(--surface-ink-deep); border-radius: 14px;
  background: var(--pt-bg); color: var(--pt-text);
  box-shadow: 0 18px 38px -24px rgba(0, 0, 0, .75);
  transition: box-shadow var(--aura-duration-fast);
}
.prompt-card.prompt-term:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--aura-color-brand-solid) 45%, transparent), 0 18px 38px -24px rgba(0, 0, 0, .75); }

/* Title bar: window dots, the prompt "file", and the assistant it is for */
.pt-bar { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 14px; background: var(--pt-bar); border-bottom: 1px solid var(--pt-line); }
.pt-file { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 7px 7px 0 0; margin-bottom: -9px; align-self: flex-end;
  background: var(--pt-bg); border: 1px solid var(--pt-line); border-bottom: 0; font: 12.5px var(--aura-font-family-mono); color: var(--pt-text); }
.pt-file .icon { width: 13px; height: 13px; color: var(--pt-violet); }
.pt-tool { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: 600 12px var(--aura-font-family-body); color: var(--pt-dim); white-space: nowrap; }
.pt-live { width: 7px; height: 7px; border-radius: 50%; background: var(--md-green); box-shadow: 0 0 0 3px rgba(54, 199, 108, .18); }

/* Body: a "❯" prompt gutter and the text in a monospace font */
.pt-body { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 16px 16px 16px 0; }
.pt-gutter { padding-left: 14px; font: 700 15px/1.7 var(--aura-font-family-mono); color: var(--aura-color-brand-highlight); user-select: none; }
.prompt-term pre {
  margin: 0; padding-right: 6px; max-height: 380px; overflow: auto;
  font: 14.5px/1.7 var(--aura-font-family-mono); color: var(--pt-text); white-space: pre-wrap; word-break: break-word; tab-size: 2;
  /* Same scroll shadows as before, in terminal colours: a long prompt fades where more text waits */
  background: linear-gradient(var(--pt-bg) 40%, transparent) center top / 100% 32px no-repeat local,
    linear-gradient(transparent, var(--pt-bg) 60%) center bottom / 100% 40px no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, .55), transparent) center top / 100% 14px no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, .55), transparent) center bottom / 100% 14px no-repeat scroll;
  scrollbar-color: var(--ink-line) transparent; scrollbar-width: thin;
}
.prompt-term pre::-webkit-scrollbar { width: 8px; }
.prompt-term pre::-webkit-scrollbar-thumb { background: var(--ink-line); border-radius: 8px; }
.prompt-term pre::selection, .prompt-term pre *::selection { background: rgba(140, 133, 255, .45); color: #fff; }
/* A blinking caret after the last line, like a live prompt */
.prompt-term pre:not(:empty)::after { content: ""; display: inline-block; width: .55em; height: 1.1em; margin-left: 2px; vertical-align: -.18em; background: var(--aura-color-brand-highlight); animation: pt-caret 1.1s steps(1) infinite; }
@keyframes pt-caret { 50% { opacity: 0; } }
/* Light highlighting */
.prompt-term .tk-h { color: var(--pt-violet); font-weight: 700; }
.prompt-term .tk-b { color: var(--pt-teal); font-weight: 700; }
.prompt-term .tk-c { color: var(--pt-amber); }

/* Status bar at the bottom, with the copy button */
.prompt-term .pt-foot { margin: 0; padding: 10px 12px 10px 16px; background: var(--pt-bar); border-top: 1px solid var(--pt-line); }
.prompt-term .pt-foot .hint-next { font: 12.5px var(--aura-font-family-mono); color: var(--pt-dim); }
.prompt-term .pt-foot .hint-next::before { content: "● "; color: var(--md-green); }
.prompt-term .pt-copy.btn:not(.btn-primary):not(.btn-plain):not(.btn-link) { background: var(--ink-line); border-color: rgba(255, 255, 255, .14); color: var(--pt-text); }
.prompt-term .pt-copy.btn:not(.btn-primary):not(.btn-plain):not(.btn-link):hover { background: var(--ink-line); color: #fff; }
.prompt-term .pt-copy.btn.copied, .prompt-term .pt-copy.btn.copied:not(.btn-primary):not(.btn-plain):not(.btn-link) { background: var(--md-green); border-color: transparent; color: #062a16; }

/* The locked preview of a prompt: the same terminal, blurred */
.prompt-card.ghost { background: var(--surface-ink); border: 1px solid var(--surface-ink-deep); border-radius: 14px; padding: 52px 22px 26px; position: relative; overflow: hidden; }
.prompt-card.ghost::before { content: ""; position: absolute; inset: 0 0 auto; height: 38px; background: var(--surface-ink-raised); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.prompt-card.ghost::after { content: ""; position: absolute; top: 14px; left: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--md-rose); box-shadow: 16px 0 0 var(--md-amber), 32px 0 0 var(--md-green); }
.prompt-card.ghost span { background: rgba(230, 236, 248, .16); }

@media (max-width: 560px) {
  .pt-tool { display: none; }
  .pt-body { grid-template-columns: 24px minmax(0, 1fr); padding: 14px 12px 14px 0; }
  .pt-gutter { padding-left: 10px; }
  .prompt-term pre { font-size: 13.5px; max-height: 460px; }
  .prompt-term .pt-foot .pt-copy { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .prompt-term pre:not(:empty)::after { animation: none; } }

/* Links in a prompt stand out, and long ones wrap anywhere instead of pushing the box wide */
.prompt-term .tk-u { color: var(--pt-teal); text-decoration: underline; text-decoration-color: rgba(94, 224, 219, .4); text-underline-offset: 3px; word-break: break-all; }
/* Prompt cards inside other cards (project files, example page) get a little air */
.pack-flow .prompt-card.prompt-term, .ex-card .prompt-card.prompt-term { margin-top: 10px; }
.pack-flow .prompt-term pre { max-height: 220px; }
.ex-card .prompt-card.prompt-term pre { margin: 0; }

/* Command boxes (macOS / Windows) match the terminal cards */
.code-block { border: 1px solid var(--surface-ink-deep); border-radius: 12px; background: var(--surface-ink); color: var(--on-ink); box-shadow: 0 12px 26px -20px rgba(0, 0, 0, .7); }
.code-block .cb-head { gap: 10px; min-height: 36px; padding: 6px 8px 6px 14px; background: var(--surface-ink-raised); border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--on-ink-muted); font: 12px var(--aura-font-family-mono); }
.code-block .cb-head > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.code-block .cb-head > span:first-child::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--md-rose); box-shadow: 14px 0 0 var(--md-amber), 28px 0 0 var(--md-green); margin-right: 30px; flex: none; }
.code-block pre { color: var(--on-ink); font: 13.5px/1.65 var(--aura-font-family-mono); }
.code-block pre::before { content: "$ "; color: var(--aura-color-brand-highlight); font-weight: 700; user-select: none; }
.code-block .copy-btn { background: var(--ink-line); border: 1px solid rgba(255, 255, 255, .14); color: var(--on-ink); border-radius: 8px; }
.code-block .copy-btn:hover { background: var(--ink-line); color: #fff; }
.code-block .copy-btn.copied { background: var(--md-green); color: #062a16; border-color: transparent; }

/* Project header: the journey in stages, plus an honest time guide */
.stage-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.stage-strip li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--aura-color-bg-sunken); color: var(--aura-color-text-muted); font-size: 13px; font-weight: 600; }
.stage-strip li span { font-weight: 500; color: var(--aura-color-text-subtle); font-variant-numeric: tabular-nums; }
.stage-strip li .icon { width: 13px; height: 13px; }
.stage-strip li.is-now { background: var(--aura-color-brand-subtle); color: var(--aura-color-brand-fg); box-shadow: inset 0 0 0 1.5px var(--aura-color-brand-fg); }
.stage-strip li.is-done { background: var(--aura-color-status-healthy-subtle); color: var(--aura-color-status-healthy-fg); }
.proj-pace { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; max-width: 620px; font-size: 13.5px; color: var(--aura-color-text-muted); }
.proj-pace .icon { width: 15px; height: 15px; flex: none; margin-top: 3px; }

/* Audit fixes: readable stage counts, and a bigger touch area on the step rail dots (visual size unchanged) */
.stage-strip li span { color: var(--aura-color-text-muted); }
.rail-dot > a { width: 26px; height: 26px; right: -8px; }   /* 24px+ target without overlapping neighbours on long journeys */

/* ---------- One page width everywhere ----------
   Every signed-in page fills the frame, like the project and step pages.
   The wizard used to sit in a narrow column with empty space on both sides (the checkout: end of money.css). */
.flow-shell, .shell-content > .flow-shell { max-width: none; }

@media (min-width: 1000px) {
  /* Idea screen: the question on the left, the box to type in on the right */
  .js .wz .screen.current[data-screen="idea"], html:not(.js) .wz .screen[data-screen="idea"] {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr auto; column-gap: 40px; align-items: start;
  }
  .wz .screen[data-screen="idea"] > * { grid-column: 2; }
  .wz .screen[data-screen="idea"] > .q { grid-column: 1; grid-row: 1; }
  .wz .screen[data-screen="idea"] > .q-help { grid-column: 1; grid-row: 2; }
  .wz .screen[data-screen="idea"] > .idea-starters { grid-column: 1; grid-row: 3; margin-top: 0; }
  .wz .screen[data-screen="idea"] > .term, .wz .screen[data-screen="idea"] > .wz-term-wrap { grid-row: 1 / span 3; }
  .wz .screen[data-screen="idea"] > .screen-actions { grid-row: 4; }
  .wz .screen[data-screen="idea"] .big-input { min-height: 300px; }

  /* Check screen: the "what we understood" terminal on the left, the two things to check on the right.
     Floats, not a grid, so a long idea on the left never opens a gap between the cards on the right. */
  .js .wz .screen.current[data-screen="review"], html:not(.js) .wz .screen[data-screen="review"] { display: flow-root; }
  .wz .screen[data-screen="review"] > * { margin-left: calc(36% + 16px); }
  .wz .screen[data-screen="review"] > .rv-term { float: left; width: calc(36% - 16px); margin-left: 0; margin-bottom: 0; position: sticky; top: 16px; }
}

/* ---------- "Here's what we understood" as a terminal ----------
   Same window as the idea box on screen 1 and the prompt cards on the step pages. Dark in both themes. */
.wz .rv-term { display: block; margin-bottom: 18px; border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .75); }
.wz .rv-term:focus-within { box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .75); }
.wz .rv-term .pt-tool { color: var(--on-ink-muted); }
.wz .rv-term > .rv-term-body {
  display: block; padding: 18px 20px 20px; color: var(--on-ink);
  background: radial-gradient(120% 70% at 100% 0, color-mix(in srgb, var(--aura-color-brand-solid) 22%, transparent), transparent 60%), var(--surface-ink);
}
.rv-cmd { margin: 0; font: 13px/1.6 var(--aura-font-family-mono); color: var(--on-ink-muted); }
.rv-ps { color: var(--ink-accent); font-weight: 700; }
.wz .rv-term .q { margin: 10px 0 0; font-size: clamp(24px, 2.3vw, 32px); color: #fff; }
.wz .rv-term .q-help { margin: 8px 0 16px; font-size: 15px; color: var(--on-ink-muted); }
.wz .rv-term .rv-idea { margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .05); box-shadow: none; border-left: 3px solid var(--ink-teal); }
.wz .rv-term .rv-idea-label { font-family: var(--aura-font-family-mono); font-size: 11.5px; color: var(--ink-teal); }
.wz .rv-term .rv-idea p { font: 14px/1.7 var(--aura-font-family-mono); color: var(--on-ink); max-height: 15.3em; overflow: auto; }
.rv-status { list-style: none; margin: 16px 0 0; padding: 14px 0 0; display: grid; gap: 8px; border-top: 1px dashed rgba(255, 255, 255, .14); font: 13.5px/1.5 var(--aura-font-family-mono); }
.rv-status li { display: grid; grid-template-columns: 16px 100px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.rv-ok { color: var(--md-green); font-weight: 700; }
.rv-k { color: var(--on-ink-muted); }
.rv-v { color: var(--on-ink); overflow-wrap: anywhere; }
.rv-v b { color: var(--ink-amber); font-weight: 700; }
.rv-caret { display: inline-block; width: 8px; height: 15px; margin-left: 6px; vertical-align: -2px; background: var(--ink-accent); animation: rv-blink 1.1s steps(1) infinite; }
@keyframes rv-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rv-caret { animation: none; } }
@media (max-width: 560px) {
  .wz .rv-term > .rv-term-body { padding: 14px 14px 16px; }
}

/* The plan button inside the check-screen terminal: only where the terminal stays in view beside the cards */
.rv-go { display: none; }
.rv-edit { display: none; }
@media (min-width: 1000px) {
  .wz .rv-term .rv-go { display: flex; width: 100%; justify-content: center; margin-top: 16px; }
  .wz .rv-term .rv-edit { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--on-ink-muted); font: 600 15px var(--aura-font-family-display); cursor: pointer; }
  .wz .rv-term .rv-edit:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .wz .rv-term .rv-edit:focus-visible { outline: 2px solid var(--aura-color-brand-fg); outline-offset: 2px; }
  .wz .rv-term .rv-edit .icon { width: 16px; height: 16px; }
}

/* Sign-in: the e-mail link first, then "or use your password" */
.auth-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; font-size: 13px; color: var(--aura-color-text-muted); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--hairline, var(--aura-color-border-default)); }

/* ---------- Sign-in, the way modern sites do it ----------
   Brand mark, "Continue with Google", one e-mail field, the password folded away. */
.auth-card.auth-modern { max-width: 440px; padding: 36px 36px 28px; }
.auth-mark { display: block; width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 14px; }
.auth-social { display: grid; gap: 10px; }
.auth-social-btn { width: 100%; justify-content: center; gap: 12px; background: var(--aura-color-bg-surface); border: 1px solid var(--aura-color-border-default); color: var(--aura-color-text-default); font-weight: 600; }
.auth-social-btn:hover, .auth-social-btn:focus-visible { border-color: var(--aura-color-brand-solid); background: var(--aura-color-bg-sunken); }
.auth-brand { width: 20px; height: 20px; flex: none; }
.auth-modern .auth-or { margin: 20px 0 16px; }
.auth-alt { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--aura-color-text-muted); }
.auth-alt .btn-link { font-size: 14px; font-weight: 600; color: var(--aura-color-brand-fg); }
.auth-modern .auth-note { text-align: center; }
.auth-legal { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hairline, var(--aura-color-border-default)); font-size: 12.5px; color: var(--aura-color-text-subtle); }
.auth-legal a { color: inherit; text-decoration: underline; }
@media (max-width: 480px) { .auth-card.auth-modern { padding: 28px 20px 22px; } }

/* ---------- Step progress, numbered ----------
   One circle per step: a tick when it is done, filled in for the step on screen, a plain number for the rest.
   Every circle is a link. The line between two circles turns green once the step it leads to is done. */
.step-rail { display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
.srail { position: relative; list-style: none; margin: 0; padding: 9px 10px; display: flex; align-items: center; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }   /* relative: the hidden screen-reader labels inside must scroll with the rail, not widen the page */
.srail::-webkit-scrollbar { display: none; }
.srail-step { display: flex; align-items: center; flex: 1 1 0; min-width: 46px; }
.srail-step:first-child { flex: 0 0 auto; min-width: 0; }
.srail-step::before { content: ""; flex: 1; min-width: 10px; height: 2px; margin: 0 5px; border-radius: 2px; background: var(--aura-color-border-default); }
.srail-step:first-child::before { display: none; }
.srail-step.is-done::before { background: var(--aura-color-status-healthy-fg); }
.srail-step > a {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--aura-color-border-strong); background: var(--aura-color-bg-surface); color: var(--aura-color-text-muted);
  font: 700 13px/1 var(--aura-font-family-display); text-decoration: none; transition: transform .15s, border-color .15s, color .15s, box-shadow .15s;
}
.srail-step > a:hover, .srail-step > a:focus-visible { transform: scale(1.1); border-color: var(--aura-color-brand-solid); color: var(--aura-color-brand-fg); }
.srail-ok { display: none; width: 16px; height: 16px; stroke-width: 3; }
.srail-step.is-working > a { border-color: var(--aura-color-status-attention-fg); color: var(--aura-color-status-attention-fg); }
.srail-step.is-checking > a { border-color: var(--aura-color-status-info-fg); color: var(--aura-color-status-info-fg); }
.srail-step.is-done > a { background: var(--aura-color-status-healthy-fg); border-color: var(--aura-color-status-healthy-fg); color: var(--on-status); }
.srail-step.is-done .srail-n { display: none; }
.srail-step.is-done .srail-ok { display: block; }
.srail-step.is-current > a { background: var(--aura-now, var(--aura-color-brand-solid)); border-color: var(--aura-now, var(--aura-color-brand-solid)); color: var(--aura-color-brand-on-solid); box-shadow: 0 0 0 4px color-mix(in srgb, var(--aura-now, var(--aura-color-brand-solid)) 22%, transparent); }
.srail-step.is-current.is-done > a { background: var(--aura-color-status-healthy-fg); border-color: var(--aura-color-status-healthy-fg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--aura-color-status-healthy-fg) 24%, transparent); }
.srail-count { flex: none; margin: 0; font-size: 13px; color: var(--aura-color-text-muted); white-space: nowrap; }
.srail-count b { color: var(--aura-color-text-default); }
.srail:has(> li:nth-child(20)) .srail-step { min-width: 38px; }
.srail:has(> li:nth-child(20)) .srail-step > a { width: 26px; height: 26px; font-size: 12px; }
@media (max-width: 640px) {
  .step-rail { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; }
  .srail-count { text-align: right; }
}

/* ---------- "Publish to AURA" on the Share a link step ---------- */
.pub-box { border: 1px solid color-mix(in srgb, var(--aura-color-brand-solid) 35%, transparent); }
.pub-box.is-live { border-color: color-mix(in srgb, var(--aura-color-status-healthy-fg) 55%, transparent); background: color-mix(in srgb, var(--aura-color-status-healthy-fg) 6%, var(--aura-color-bg-surface)); }
.pub-box .eyebrow { display: flex; align-items: center; gap: 8px; }
.pub-url { margin: 6px 0 14px; font: 600 clamp(16px, 2.2vw, 20px)/1.4 var(--aura-font-family-mono); overflow-wrap: anywhere; }
.pub-url a { color: var(--aura-color-brand-fg); }
.pub-actions, .pub-manage { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pub-manage { margin-top: 12px; }
.pub-manage form { margin: 0; }
.pub-box .hint { margin-top: 12px; }
.pub-other { margin-top: 14px; }

/* ---------- Project finale: every step is done ----------
   A dark terminal card, like the idea box and the prompt cards. It replaces the plain "step complete" lines. */
.finish-done.is-finale > .done-msg, .finish-done.is-finale > .done-added, .finish-done.is-finale > .milestone { display: none; }
.done-added { margin-top: 10px; }   /* it used to sit on top of the line above it */
.finale { border-radius: 16px; overflow: hidden; background: var(--surface-ink); color: var(--on-ink); box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .8); animation: rise .5s var(--aura-easing-standard) both; }
.finale[hidden] { display: none; }
.finale-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface-ink-raised); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.finale-file { font: 12.5px var(--aura-font-family-mono); color: var(--on-ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finale .pt-tool { color: var(--on-ink-muted); }
.finale-body { padding: 26px 30px 28px; background: radial-gradient(110% 80% at 100% 0, color-mix(in srgb, var(--aura-color-brand-solid) 28%, transparent), transparent 60%), radial-gradient(80% 70% at 0 100%, rgba(54, 199, 108, .14), transparent 60%); }
.finale-cmd { margin: 0 0 10px; font: 13px var(--aura-font-family-mono); color: var(--on-ink-muted); }
.finale-cmd span { color: var(--ink-accent); font-weight: 700; }
.finale h2 { margin: 0; font: 700 clamp(30px, 4vw, 42px)/1.1 var(--aura-font-family-display); letter-spacing: -.03em; color: #fff; text-transform: none; }
.finale-lead { margin: 12px 0 0; max-width: 720px; font-size: 17px; line-height: 1.6; color: var(--on-ink-muted); }
.finale-lead b { color: #fff; }
.finale-label { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font: 700 12px var(--aura-font-family-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-teal); }
.finale-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.finale-chips li { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: var(--on-ink); }
.finale-chips li span { color: var(--md-green); font-weight: 700; margin-right: 4px; }
.finale-live { margin-top: 22px; padding: 16px 18px; border-radius: 12px; background: rgba(54, 199, 108, .1); border: 1px solid rgba(54, 199, 108, .35); }
p.finale-live { padding: 0; background: none; border: 0; }
.finale-live .finale-label { margin-top: 0; color: var(--aura-color-status-healthy-fg); }
.finale-url { display: block; margin-bottom: 12px; font: 600 clamp(15px, 2vw, 18px)/1.4 var(--aura-font-family-mono); color: #fff; overflow-wrap: anywhere; }
.finale-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.finale-main { margin-top: 26px; }
/* The card is dark in both themes, so its plain buttons must not take the light theme's white background (which hid their white text). */
.finale .btn:not(.btn-primary) { background: rgba(255, 255, 255, .1) !important; border: 1px solid rgba(255, 255, 255, .22) !important; color: #fff !important; box-shadow: none !important; }
.finale .btn:not(.btn-primary):hover, .finale .btn:not(.btn-primary):focus-visible { background: rgba(255, 255, 255, .2) !important; }
.finale .btn:not(.btn-primary) .icon { color: #fff; }
.finale-hint { margin: 16px 0 0; font-size: 13.5px; color: var(--on-ink-muted); }
@media (max-width: 560px) {
  .finale-body { padding: 20px 18px 22px; }
  .finale-main .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- The live app on the project page (views/partials/project-live.php) ----------
   The finale card with a preview beside it: the real app in a frame three times the box, scaled to a third. */
.live-card { margin: 0; }
.live-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; }
.live-card .finale-live { margin-top: 18px; }
.live-meta { display: grid; gap: 6px; margin: 16px 0 0; font-size: 14px; }
.live-meta > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
.live-meta dt { color: var(--on-ink-muted); }
.live-meta dd { margin: 0; color: var(--on-ink); }
.live-soon { color: var(--ink-amber); font-weight: 600; }
.live-manage { margin-top: 16px; }
.live-manage form { margin: 0; }
.finale .btn.live-off { color: #ffb4b4 !important; }
.live-shot { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 28px 50px -28px rgba(0, 0, 0, .8); background: var(--surface-ink-raised); transition: transform .2s; }
.live-shot:hover, .live-shot:focus-within { transform: translateY(-3px); }
.live-shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--ink-line); }
.live-shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.live-shot-bar span { margin-left: 8px; flex: 1; min-width: 0; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); font: 11.5px var(--aura-font-family-mono); color: var(--on-ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-shot-frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.live-shot-frame iframe { position: absolute; top: 0; left: 0; width: 300%; height: 300%; border: 0; transform: scale(.33334); transform-origin: 0 0; pointer-events: none; }
.live-shot-cover { position: absolute; inset: 0; }
.live-shot-cover:focus-visible { outline: 3px solid var(--ink-accent); outline-offset: -3px; }
@media (max-width: 900px) {
  .live-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .live-shot { order: -1; }
}

/* ---------- Step 1: "What do you already have?" (views/partials/setup-check.php) ---------- */
.setup-check { margin: 0 0 20px; padding: 22px 24px 20px; border-radius: var(--aura-radius-lg, 16px); background: var(--aura-color-bg-surface); border: 1px solid color-mix(in srgb, var(--aura-color-brand-solid) 35%, transparent); }
.setup-check h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.sc-lead { margin: 0 0 16px; color: var(--aura-color-text-muted); }
.sc-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.sc-preset { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--hairline, rgba(128, 128, 128, .3)); background: var(--aura-color-bg-surface); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.sc-preset b { font-size: 15px; }
.sc-preset span { font-size: 13px; color: var(--aura-color-text-muted); }
.sc-preset:hover { border-color: var(--aura-color-brand-solid); }
.sc-preset[aria-pressed="true"] { border-color: var(--aura-color-brand-solid); background: color-mix(in srgb, var(--aura-color-brand-solid) 9%, var(--aura-color-bg-surface)); box-shadow: 0 0 0 1px var(--aura-color-brand-solid) inset; }
.sc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sc-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border-radius: 12px; background: var(--aura-color-bg-sunken); border: 1px solid transparent; }
.sc-row.is-have { background: color-mix(in srgb, var(--aura-color-status-healthy-fg) 8%, var(--aura-color-bg-surface)); border-color: color-mix(in srgb, var(--aura-color-status-healthy-fg) 40%, transparent); }
.sc-row.is-have .sc-get { display: none; }
.sc-have { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; padding-top: 2px; }
.sc-have input { width: 20px; height: 20px; accent-color: var(--aura-color-brand-solid); }
.sc-body h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.4; }
.sc-body h3 .sc-n, .sc-body h3 .sc-acct { vertical-align: middle; }
.sc-body h3 .sc-n { margin-right: 6px; }
.sc-body h3 .sc-acct { margin-left: 6px; }
.sc-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--aura-color-brand-solid); color: var(--aura-color-brand-on-solid); font: 700 12px var(--aura-font-family-body); }
.sc-row.is-have .sc-n { background: var(--aura-color-status-healthy-fg); }
.sc-body p { margin: 0; font-size: 14.5px; color: var(--aura-color-text-muted); }
.sc-get { margin-top: 10px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sc-alts { font-size: 13px; }
.sc-sum { margin-top: 16px; }
.sc-sum p { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--aura-color-bg-sunken); font-size: 14.5px; }
.sc-sum p[hidden], .sc-sum-all[hidden] { display: none; }
.sc-sum .icon { flex: none; margin-top: 2px; color: var(--aura-color-brand-fg); }
.sc-sum-all { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sc-sum-all p { flex: 1 1 260px; background: color-mix(in srgb, var(--aura-color-status-healthy-fg) 10%, var(--aura-color-bg-surface)); }
.sc-sum-all .icon { color: var(--aura-color-status-healthy-fg); }
.step-page.sc-all .prompt-section, .step-page.sc-all #check-section, .step-page.sc-all #finish-ask { display: none; }
@media (max-width: 720px) {
  .sc-presets { grid-template-columns: minmax(0, 1fr); }
  .sc-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .setup-check { padding: 18px 16px; }
}

/* Check screen: where the name and the list came from, and whether the AI is still working on them. */
.rv-note { color: var(--on-ink-muted); font-size: .86em; font-weight: 400; }
.rv-note.is-busy::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--ink-amber); animation: rv-pulse 1s ease-in-out infinite; vertical-align: middle; }
@keyframes rv-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rv-note.is-busy::before { animation: none; } }
.rv-name-edit { display: inline-block; margin: -10px 0 -10px 2px; padding: 10px 8px; border: 0; background: none; color: var(--ink-accent); font: inherit; font-size: .95em; text-decoration: underline; cursor: pointer; }   /* light orange: 6:1 on charcoal; the padding is the tap area */
.rv-name-edit:hover { color: #fff; }
.rv-name-edit:focus-visible { outline: 2px solid var(--aura-color-brand-fg); outline-offset: 2px; border-radius: 4px; }

/* Project type cards: who it is for, and example ideas, so the choice is obvious */
.level-chipcard .lv-who, .level-chipcard .lv-eg { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--aura-color-text-muted); }
.level-chipcard .lv-who b, .level-chipcard .lv-eg b { color: var(--aura-color-text-heading); font-weight: 700; }

/* "Step done" announcement: shown for a moment after Done, then the next step opens by itself. */
#step-pop .overlay-card { width: calc(100% - 32px); max-width: 460px; padding: 28px; border-radius: var(--r-surface); background: var(--aura-color-bg-surface); box-shadow: var(--shadow-lift); display: grid; gap: 10px; justify-items: center; }
#step-pop h2 { margin: 0; font-size: 24px; }
#step-pop .pop-added { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--aura-color-text-default); }
#step-pop .pop-next { margin: 4px 0 0; font: 700 14px var(--aura-font-family-body); color: var(--aura-color-text-heading); }
#step-pop .pop-bar { width: 100%; height: 4px; margin: 6px 0 2px; border-radius: 4px; background: var(--aura-color-bg-sunken); overflow: hidden; }
#step-pop .pop-bar i { display: block; height: 100%; width: 100%; background: var(--aura-color-brand-solid); transform-origin: left; animation: pop-run 3.5s linear forwards; }
#step-pop.is-long .pop-bar i { animation-duration: 5s; }
#step-pop.is-paused .pop-bar i { animation-play-state: paused; }
#step-pop .pop-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 4px; }
@keyframes pop-run { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { #step-pop .pop-bar i { animation: none; } }

.sc-quick { margin: 0 0 12px; }

/* The plan button with its one-line promise */
.rv-go-wrap { display: grid; gap: 6px; justify-items: center; }
.rv-hint { font-size: 12.5px; color: var(--aura-color-text-muted); }
/* Phones: the decisions start sooner. The decorative command line goes, and a long idea is shown short. */
@media (max-width: 700px) {
  .wz .rv-term .rv-cmd { display: none; }
  .wz .rv-term .rv-idea p { max-height: 5.2em; overflow: hidden; }
  .wz .rv-term .q { font-size: 26px; }
}

/* The end of every step: Back on the left, "Skip for now" and the main "Done — next step" on the right (stacked, Done first, on a phone). */
.step-foot { text-align: left; padding: 18px 0 8px; display: grid; gap: 12px; border-top: 1px solid var(--aura-color-border-default); margin-top: 8px; }
.step-foot .step-foot-q { margin: 0; color: var(--aura-color-text-muted); font-weight: 600; display: block; text-align: left; }
.step-foot-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.step-foot-gap { flex: 1 1 auto; }
@media (max-width: 560px) { .step-foot-btns { flex-direction: column-reverse; align-items: stretch; } .step-foot-gap { display: none; } .step-foot-btns .btn { justify-content: center; } }

/* Aurai peeks over the idea box on step 1 (same style as home and /plan) */
.wz-term-wrap { position: relative; padding-top: 84px; min-width: 0; }
.wz-aurai { position: absolute; right: 18px; top: 6px; z-index: 2; pointer-events: none; }
.wz-aurai .aurai { display: flex; flex-direction: row-reverse; align-items: center; gap: 10px; }
.wz-aurai .aurai-img, .wz-aurai .aurai.is-lg .aurai-img { height: 96px; width: auto; }
.wz-aurai .aurai-say { margin: 0; max-width: 200px; font-size: 13.5px; pointer-events: auto; }
.wz-aurai .aurai-say::before { left: auto; right: -8px; bottom: auto; top: 50%; margin-top: -7px; transform: rotate(-135deg); }
@media (max-width: 999px) {
  .wz-term-wrap { padding-top: 0; }
  .wz-aurai { position: static; margin: 0 0 6px; }
  .wz-aurai .aurai { justify-content: flex-start; }
  .wz-aurai .aurai-img, .wz-aurai .aurai.is-lg .aurai-img { height: 72px; }
}
