/* The sign-up steps (/start): searchable business types, colour choices, hero photos, the optional details page.
   On top of app.css, which has the tokens, forms, chips, swatches and the mic. */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label { font-weight: 700; }
.field .hint { margin-top: 0; }
.field .mic-status { margin: 0; }

/* ---- A searchable list (kinds of business, designs) ---- */
.combo { position: relative; }
.combo__field { position: relative; }
.combo__field input { padding-right: 48px; }
.combo__toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.combo__toggle svg { width: 20px; height: 20px; }
.combo__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; max-height: min(340px, 52vh); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 32px -12px rgba(4, 18, 44, .3); }
.combo__group { position: sticky; top: -6px; background: #fff; padding: 10px 10px 4px; font: 800 .7rem/1.2 'Manrope', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.combo__list [role="option"] { padding: 10px 10px; border-radius: 8px; cursor: pointer; font-weight: 600; line-height: 1.3; }
.combo__list [role="option"][aria-selected="true"] { color: var(--blue); }
.combo__list [role="option"][aria-selected="true"]::after { content: '\2713'; float: right; font-weight: 800; }
.combo__list [role="option"].is-active { background: var(--bg); }
.combo__list .combo__other { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; padding-top: 12px; }
.combo__none { padding: 10px; color: var(--muted); font-size: .9rem; }

/* ---- Your look ---- */
.look-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.look-row p { margin: 0; }
.look-sec { border: 0; padding: 0; margin: 4px 0 0; min-width: 0; display: grid; gap: 10px; }
.look-sec legend { padding: 0; margin-bottom: 8px; font-weight: 800; }
.look-sec .chips { margin-bottom: 0; }
.look-sec .hint { margin: 0; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.seg button { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 6px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 700 .85rem/1.15 'Manrope', sans-serif; cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(4, 18, 44, .14); }
.seg button:focus-visible, .pick-target:focus-visible, .dot-btn:focus-visible, .hero-opt:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.dot { flex: none; display: inline-block; width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(4, 18, 44, .14); }
.dot--empty { background: repeating-linear-gradient(45deg, #fff 0 4px, var(--bg) 4px 8px); }
.pick-targets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick-target { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
.pick-target > span:last-child { display: grid; min-width: 0; line-height: 1.25; }
.pick-target b { font-size: .9rem; }
.pick-target small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-target.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.hues { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 6px 18px; }
.hue { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 8px; min-width: 0; }
.hue__label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.hue__row { display: flex; flex-wrap: wrap; gap: 6px; }
.dot-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 1px rgba(4, 18, 44, .14); }
.dot-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(4, 18, 44, .14), 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.hex-field { position: relative; display: block; }
.hex-field .dot { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
.hex-field input { padding-left: 46px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .04em; }
.hex-msg { margin: 0; padding: 10px 12px; border-radius: 10px; background: #e8f1ff; color: var(--navy); }
.hex-msg.is-bad { background: #fff3dc; color: #6b4a10; }

.hero-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(132px, 45%), 1fr)); gap: 10px; }
.hero-opt { display: grid; gap: 0; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--bg); cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.hero-opt img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--line); }
.hero-opt span { padding: 6px 10px 8px; font-size: .82rem; font-weight: 700; }
.hero-opt.is-on { border-color: var(--ink); }
.hero-opt.is-on span::before { content: '\2713\00a0'; }

/* ---- Details (optional) ---- */
.opt-tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); font: 700 .78rem/1.4 'Manrope', sans-serif; letter-spacing: 0; }
.later { display: grid; gap: 10px; justify-items: start; padding: 12px 14px; border-radius: 12px; background: #e6fbf4; color: #04513f; }
.later p { margin: 0; font-size: .92rem; line-height: 1.45; }
.later .btn { background: #fff; }
details.opt { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
details.opt > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 14px; }
details.opt > summary::-webkit-details-marker { display: none; }
details.opt > summary::after { content: ''; grid-row: 1 / span 2; grid-column: 2; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0; transition: transform .15s; }
details.opt[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
details.opt > summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 12px; }
.opt__title { font-weight: 800; }
.opt__sum { grid-column: 1; font-size: .84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.opt__sum.is-empty { font-style: italic; }
.opt__body { margin: 0; padding: 0 14px 14px; }
.opt__body .actions { margin: 0; }

@media (max-width: 420px) {
  .pair--stack { grid-template-columns: 1fr; }
  .actions [data-free] { flex-basis: 100%; }
  .pick-targets { grid-template-columns: 1fr; }
  .hue { grid-template-columns: 72px 1fr; }
  .dot-btn { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { details.opt > summary::after { transition: none; } }
