/* Setup wizard · design session · on top of ../ui/ui.css. Canvas: rows C (3 to 7). The bot interviews the owner. */
.setup { display: flex; flex-direction: column; gap: var(--s4); }
.setup__chat { display: flex; flex-direction: column; gap: 4px; font: 400 16px/1.6 var(--font); min-height: 120px; }
.setup__chat .bubble { max-width: 86%; padding: 10px 15px; }
.setup__chat .msg { align-items: flex-end; }
.setup__chat .msg .bubble { max-width: none; }
.botface { width: 30px; height: 30px; flex: none; }
/* one avatar column for the whole group: rows without the mascot keep its space (30px + the row gap), so bubbles line up */
.setup__chat .msg--bot:not(.has-face) { padding-inline-end: calc(30px + var(--s2)); }
.owner { align-self: flex-start; display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--card); padding: 10px 15px; border-radius: var(--shape-cust-bubble); margin-block: 8px; max-width: 86%; }
.owner button { color: var(--saffron); width: 32px; height: 32px; display: grid; place-items: center; }
.setup__panel { display: flex; flex-direction: column; gap: var(--s3); }
.setup__panel[hidden] { display: none; }

/* lists of saved items (products, zones) */
.items { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); border-radius: 20px; }
.item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item__name { font: 600 15px/1.45 var(--font); }
.item__sub { font: var(--t-small); color: var(--ink-2); }
.item__del { width: 44px; height: 44px; border-radius: 50%; background: var(--card-2); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.item.is-new { animation: born var(--t-split) var(--ease-spring) both; }

.addform { background: var(--card); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: inset 0 0 0 2px var(--ink); }
.addform__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
/* two fields side by side: labels on ONE line so both inputs start at the same height ("optional" lives in the hint row) */
.addform__row .field__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addform .input, .addform .inputgroup { min-height: 48px; }
.check { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: var(--r-m); background: var(--ember-tint); color: var(--ember-ink); font: var(--t-small); }
.check .row { gap: 8px; }
.check .btn { min-height: 44px; font-size: 14px; flex: 1; }
.btn--ember { background: var(--ember-ink); color: #fff; }
.btn--ember-ghost { background: transparent; color: var(--ember-ink); box-shadow: inset 0 0 0 1.5px var(--ember-ink); }

/* radio cards (voice, identity) */
.choices { display: flex; flex-direction: column; gap: 10px; border: 0; margin: 0; padding: 0; }
.choice { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.choice:has(input:checked) { background: var(--saffron-tint); box-shadow: inset 0 0 0 2px var(--ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice__head { display: flex; align-items: center; gap: 10px; font: 600 16px/1.4 var(--font); }
.choice__head input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }
.choice__tag { margin-inline-start: auto; font: 600 12px/1 var(--font); padding: 5px 10px; border-radius: var(--r-pill); background: var(--ink); color: var(--card); }
.choice__hint { font: var(--t-small); color: var(--ink-2); padding-inline-start: 32px; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
textarea.input { min-height: 96px; padding: 12px 16px; resize: vertical; line-height: 1.6; }

@media (min-width: 900px) { .setup.wrap { max-width: 600px; } }

/* saved cards: tap anywhere on the text to edit; the card being edited is outlined */
.items .item__main { cursor: pointer; }
.item.is-editing { box-shadow: inset 0 0 0 2px var(--ink); }
