/* Avilo — Quick add (BRIEF-v3 L3): the 3-step Add product (1 Photos · 2 What is it · 3 Price & place) and the
   "Copy from a similar design" picker. The form itself lives in app.js (openForm / quickHTML / pickDesign).
   Phone first (375 px): every tap target ≥ 44 px; colours only from the app.css tokens (light + dark). */

/* ---- Step bar ---- */
.qa-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 0 16px}
.qa-step{display:flex;align-items:center;gap:7px;min-height:46px;padding:6px 8px;border:0;border-radius:var(--r-sm);background:var(--surface-2);
  color:var(--ink-2);font:600 12.5px/1.15 var(--font);text-align:left;cursor:pointer}
.qa-step b{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--surface);color:var(--ink);font-size:12.5px}
.qa-step b .i{width:13px;height:13px}
.qa-step.on{background:var(--ink);color:var(--bg)}
.qa-step.on b{background:var(--bg);color:var(--ink)}
.qa-step.done b{background:var(--accent);color:var(--on-accent)}
.qa-step:disabled{opacity:.5;cursor:default}

/* ---- Step 1: photos ---- */
.qa-skip{display:flex;justify-content:center;width:100%;margin:12px 0 0;font-size:14.5px}

/* ---- Step 2: what is it ---- */
.qa-copywrap{margin:0 0 6px}
.qa-copybtn{display:flex;align-items:center;gap:12px;width:100%;min-height:76px;padding:12px 14px;border:1.5px solid var(--brand);border:1.5px solid color-mix(in srgb,var(--brand) 35%,var(--line));
  border-radius:var(--r);background:var(--brand-soft);color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.qa-copybtn>.i{flex:none;width:22px;height:22px;color:var(--muted)}
.qa-copybtn>.i:first-child{width:30px;height:30px;color:var(--brand)}
.qa-copybtn>span{flex:1;min-width:0}
.qa-copybtn b{display:block;font-size:16px;line-height:1.25}
.qa-copybtn small{display:block;margin-top:3px;color:var(--ink-2);font-size:13px;line-height:1.3}
.qa-or{display:flex;align-items:center;gap:10px;margin:16px 0 12px;color:var(--muted);font-size:13px;font-weight:600;white-space:nowrap}
.qa-or::before,.qa-or::after{content:"";flex:1;height:1px;background:var(--line)}
.qa-copied{display:flex;align-items:center;gap:12px;padding:10px;border-radius:var(--r-sm);background:var(--surface-2);margin:0 0 10px}
.qa-copied img,.qa-copied .qa-noimg{flex:none;width:76px;height:58px;border-radius:8px;object-fit:cover;background:var(--surface-3);display:grid;place-items:center;color:var(--muted);cursor:zoom-in}
.qa-copied .qa-noimg{cursor:default}
.qa-copied .grow{flex:1;min-width:0}
.qa-copied b{display:block;font-size:15.5px;line-height:1.25;overflow-wrap:anywhere}
.qa-copied small{display:block;color:var(--muted);font-size:12.5px}
.qa-copied .btn{flex:none}
.qa-why{margin:0 0 14px}
.qa-fabrow{display:flex;gap:10px;align-items:center}
.qa-fabrow img{flex:none;width:48px;height:48px;border-radius:8px;object-fit:cover;cursor:zoom-in}
.qa-fabrow input{flex:1;min-width:0}
.qa-fabrow .qa-lib{flex:none;width:50px;min-height:48px;padding:0;justify-content:center}
.qa-fabrow .qa-lib .i{width:22px;height:22px;margin:0}
.qa-sec .linkbtn{gap:6px}

/* ---- Step 3: "Add more details (optional)" ---- */
.qa-more{margin-top:2px}
.qa-more>summary{min-height:var(--tap)}
.qa-more>summary em{font-style:normal;font-weight:500;color:var(--muted)}
.qa-more>div{padding-top:12px}

/* ---- Foot: Back · Next / Save & add next · Save ---- */
.sheet .ft .qa-back{flex:none;padding-left:12px;padding-right:14px}
.sheet .ft .qa-next{flex:1}
.sheet .ft .qa-next .i{margin:0 -4px 0 2px}
.sheet .ft .qa-back~.btn.lg{padding-left:14px;padding-right:14px} /* Back · Save & add next · Save fit one row at 375 px */

/* ---- Copy from a similar design: search + type chips + photo grid ---- */
.qd-types{margin-bottom:10px}
.qd-types:empty{display:none}
.qd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.qd-card{display:flex;flex-direction:column;min-width:0;padding:0;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface);
  color:var(--ink);overflow:hidden;text-align:left;font:inherit;cursor:pointer}
.qd-card:active{transform:scale(.98)}
.qd-card:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.qd-pic{display:block;aspect-ratio:4/3;background:var(--surface-2)}
.qd-pic img{display:block;width:100%;height:100%;object-fit:cover}
.qd-body{display:block;padding:8px 10px 10px}
.qd-body b{display:block;font-size:14px;line-height:1.25;overflow-wrap:anywhere}
.qd-body small{display:block;margin-top:2px;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
