/* The AI's buttons and dialogs (6.2 section 3): the content of the Avvia wizard, the price slot's shimmer, and the
   bridge that lets the old light pages draw the same kit pieces. The wizard frame itself is the shell's wizard.css. */

/* The four things a person needs to see, left to right: what they give, what the AI does, what comes back, the price. */
.ai-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.ai-flow li { position: relative; display: grid; align-content: start; gap: var(--s-1); padding: var(--s-3); border-radius: var(--r-card); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--hairline); font: var(--t-small); color: var(--ink); }
.ai-flow li + li::before { content: "›"; position: absolute; left: calc(-1 * var(--s-3) - 2px); top: var(--s-3); color: var(--ink-3); }
.ai-flow svg.i { width: 18px; height: 18px; color: var(--ink-2); }
.ai-flow svg.i.ai { color: var(--ai); }
.ai-flow .eyebrow { font: var(--t-micro); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.ai-flow .muted { color: var(--ink-2); }
.ai-flow [data-flow-cost] { font-variant-numeric: tabular-nums; font-weight: 500; }

/* Choices: a column of cards, or three side by side when each is only a name. */
.wiz fieldset.cards { display: grid; gap: var(--s-2); border: 0; margin: 0; padding: 0; min-width: 0; }
.wiz fieldset.cards.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wiz fieldset.cards > legend { padding: 0; margin-bottom: var(--s-2); font: var(--t-small); color: var(--ink-2); }
.wiz fieldset.cards.cols > legend { grid-column: 1 / -1; margin-bottom: 0; }
.wiz .choice.is-off { opacity: .5; cursor: default; }
.wiz .choice-line { display: flex; align-items: center; gap: var(--s-2); font: var(--t-small); color: var(--ink-2); }
.wiz .wiz-step > details > summary { cursor: pointer; font: var(--t-small); color: var(--ink-2); }
.wiz .wiz-step > p { margin: 0; }
.wiz .wiz-step svg.i { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.wiz .choice > svg.i { width: 18px; height: 18px; }

/* The footer's price line: the figure, then what the person should know before saying yes. */
.wiz-cost strong { color: var(--ink); font-weight: 500; }
.wiz-cost .note { display: block; color: var(--look); }
.wiz-cost .muted { margin-left: var(--s-2); }

/* A figure that is still being worked out is a pale pill that moves, never a literal "...". */
.price[aria-busy="true"] { display: inline-block; min-width: 3.2em; height: 1em; border-radius: var(--r-pill); vertical-align: middle; color: transparent; background: linear-gradient(90deg, var(--hairline) 25%, color-mix(in srgb, var(--hairline), var(--ink) 14%) 50%, var(--hairline) 75%); background-size: 200% 100%; animation: ai-shimmer 1.2s linear infinite; }
@keyframes ai-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .price[aria-busy="true"] { animation: none; } }
.btn.ai { color: var(--ink); }
.btn.ai .price { color: var(--ink-2); padding-left: var(--s-2); border-left: 1px solid color-mix(in srgb, var(--ai), transparent 65%); }
.btn.ai svg.i { width: 15px; height: 15px; flex: none; color: var(--ai); }

/* The old light pages have no shell tokens: the kit pieces take their colours from the room's own. */
body:not(.shell) {
  --surface-1: var(--raised); --surface-2: var(--raised); --hairline: var(--hair); --ink-2: var(--muted); --ink-3: var(--muted);
  --gold: var(--action); --gold-hi: color-mix(in srgb, var(--action), var(--action-ink) 14%); --gold-wash: var(--sunk); --on-gold: var(--action-ink);
  --fail: var(--bad); --look: var(--warn); --font: var(--sans);
  --t-small: 400 12.5px/18px var(--font); --t-micro: 500 10.5px/14px var(--font); --t-title: 400 17px/24px var(--font);
  --s-1: 3px; --s-2: 6px; --s-3: 10px; --s-4: 13px; --s-5: 19px; --s-6: 26px;
  --r-control: 7px; --r-card: 10px; --r-drawer: 16px; --r-pill: 999px; --lift-2: var(--shadow-float); --lift-3: var(--shadow-float);
  --m-fast: 120ms; --m-base: 200ms; --ease: cubic-bezier(.2, 0, 0, 1); --rail: 0px;
}
body:not(.shell) .btn.ai::before { content: none; }

/* The plan table in the drawing wizard: a few short rows, left-aligned, figures on the right. */
.wiz table.small { width: auto; border-collapse: collapse; font: var(--t-small); }
.wiz table.small th, .wiz table.small td { padding: var(--s-1) var(--s-3) var(--s-1) 0; text-align: left; font-weight: 400; }
.wiz table.small th { color: var(--ink-2); border-bottom: 1px solid var(--hairline); }
.wiz table.small td:last-child, .wiz table.small th:last-child { text-align: right; padding-right: 0; }
body:not(.shell) svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
