/* Guided setup: short prompts, compact summaries, optional detail on demand. */
.store-setup main { max-width: 1016px; padding: 28px 28px 130px; }
.store-setup .topbar.signmall-topbar { min-height: 76px; padding: 8px max(24px, calc((100vw - 960px)/2)); }
.store-setup .signmall-brand { width: 172px; }
.store-setup .intro { gap: 24px; margin: 0; align-items: center; }
.store-setup .intro h1 { font: 650 clamp(25px, 3vw, 34px)/1.2 system-ui, sans-serif; margin: 0 0 8px; letter-spacing: -.8px; }
.store-setup .intro .eyebrow { font-size: 10px; letter-spacing: 1.4px; margin-bottom: 8px; }
.store-setup .intro p { margin: 0; font-size: 14px; }
.store-setup .destination { min-width: 180px; max-width: 240px; margin: 0; }
.store-setup .destination select { padding: 8px 10px; margin-top: 4px; font-size: 13px; }
.store-setup .steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 24px 0; gap: 4px; background: transparent; }
.store-setup .steps :is(button, span) { min-width: 0; min-height: 44px; padding: 9px 6px; font-size: 12px; white-space: normal; border-radius: 7px; }
.store-setup .steps b { width: 23px; height: 23px; margin-right: 4px; }
.store-setup .panel { padding: 22px 24px; margin: 0 0 16px; border-radius: 12px; }
.store-setup .panel h2 { font: 650 20px/1.3 system-ui, sans-serif; letter-spacing: -.3px; margin: 0 0 6px; }
.store-setup .panel > p { margin-bottom: 14px; font-size: 14px; }
.store-setup .panel > summary { font-size: 15px; padding: 0; }
.store-setup .panel[open] > summary { margin-bottom: 16px; }
.store-setup .scan-entry { padding: 18px 24px; }
.store-setup .scan-entry h2 { font-size: 18px; }
.store-setup .scan-entry > p { margin: 0 0 12px; }
.store-setup .scan-entry-controls { display: flex; align-items: center; gap: 10px; }
.store-setup .scan-entry-controls label { flex: 1; margin: 0; }
.store-setup .scan-entry-controls input { margin: 0; padding: 10px 12px; min-height: 46px; font-size: 15px; }
.store-setup .scan-entry-controls .primary { width: auto; min-width: 150px; min-height: 46px; padding: 10px 16px; font-size: 14px; }
.store-setup #no-website { margin: 7px 0 -5px; min-height: 36px; padding: 5px 0; font-size: 13px; }
.store-setup .scan-account { margin: -6px 0 16px; padding: 0 4px; }
.store-setup .scan-account > summary { font-size: 12px; color: var(--muted); }
.store-setup .scan-account[open] { padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.store-setup .findings-heading { align-items: start; gap: 16px; margin: 0 0 8px; }
.store-setup .findings-heading p { font-size: 13px; margin: 0; }
.store-setup .findings-heading button { width: auto; flex-shrink: 0; min-height: 38px; padding: 7px 12px; font-size: 12px; }
.store-setup .review-note { font-size: 12px; margin: 12px 0; }
.store-setup .business-summary { margin: 0; }
.store-setup .business-row { display: grid; grid-template-columns: 136px minmax(0, 1fr) auto; gap: 16px; align-items: start; border-bottom: 1px solid var(--line); padding: 13px 0; }
.store-setup .business-row:last-child { border: 0; }
.store-setup .business-row dt { color: var(--muted); font-size: 13px; padding-top: 3px; }
.store-setup .business-row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.store-setup .business-value { font-size: 14px; line-height: 1.5; margin: 0; color: var(--ink); white-space: pre-line; }
.store-setup .detail-basis { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.store-setup .previous-value { margin: 4px 0 0; }
.store-setup .previous-value summary { font-size: 11px; color: var(--muted); font-weight: 400; }
.store-setup .previous-value p { font-size: 12px; margin: 5px 0 0; }
.store-setup .detail-actions { display: flex; gap: 6px; }
.store-setup .detail-actions button { min-height: 36px; padding: 5px 8px; margin: -3px 0 0; font-size: 12px; }
.store-setup #optional-business, .store-setup #website-sources { margin: 0; padding: 13px 0 0; border-top: 1px solid var(--line); }
.store-setup #website-sources { margin-top: 13px; }
.store-setup #optional-business > summary { font-size: 13px; }
.store-setup #website-sources > summary { color: var(--muted); font-size: 12px; font-weight: 400; }
.store-setup #research-result:empty { display: none; }
.store-setup .business-details label { margin: 14px 0; }
.store-setup .business-details > label:nth-of-type(1), .store-setup .business-details > label:nth-of-type(3) { max-width: 560px; }
.store-setup .two-columns { gap: 16px; }
.store-setup .two-columns .panel { height: 100%; margin-bottom: 16px; }
.store-setup .styles { gap: 12px; margin-top: 16px; }
.store-setup .style-card { border-radius: 9px; padding: 7px; }
.store-setup .style-card strong { font-size: 14px; margin: 8px 6px; }
.store-setup .style-card small { display: none; }
.store-setup .style-card .style-select { font-size: 12px; min-height: 36px; padding: 7px 10px; }
.store-setup .palette-options { margin: 12px 0; }
.store-setup .palette-options > summary, .store-setup .inspiration-options > summary { font-size: 13px; }
.store-setup .dropzone { min-height: 100px; padding: 16px; }
.store-setup .upload-icon { display: none; }
.store-setup .inspiration-options { margin-top: 18px; }
.store-setup .color-row { gap: 16px; }
.store-setup .color-row label { margin: 12px 0 0; }
.store-setup .pricing-panel #markup { max-width: 160px; }
.store-setup .price-example { font-size: 14px; padding: 12px 14px; }
.store-setup .next-card { margin-top: 16px; }
.store-setup .next-card p { margin: 0; }
.store-setup .new-site-setup { margin: 0; padding: 16px 0 0; border: 0; background: transparent; box-shadow: none; }
.store-setup .actionbar { padding: 14px max(24px, calc((100vw - 960px)/2)); gap: 16px; }
.store-setup .actionbar > div { display: flex; align-items: center; gap: 12px; }
.store-setup .actionbar > div:first-child { display: block; font-size: 12px; }
.store-setup #next-help { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.store-setup .actionbar .primary { width: auto; font-size: 14px; min-height: 46px; padding: 11px 18px; }
.store-setup .research-progress { padding: 18px 24px; margin-bottom: 16px; border-radius: 12px; }
.store-setup .research-progress .progress-heading h2 { font: 650 18px/1.3 system-ui, sans-serif; }
.store-setup .research-progress > p { font-size: 13px; margin: 8px 0; }
.store-setup #scan-activity { margin: 12px 0 0; }
.store-setup #scan-activity > summary { font-size: 12px; }
.store-setup #scan-activity[open] > summary { margin-bottom: 16px; }
.store-setup #message:empty { display: none; }
.store-setup #message:not(:empty) { font-size: 13px; margin: 0 0 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.store-setup [hidden] { display: none !important; }
/* A compact live console stays visible while real scan events arrive. */
.store-setup #research-progress {
  --data-lime: #d1f87e; --data-muted: #a6bbae; --ink: #edf6f0;
  --muted: #a6bbae; --line: #344d40;
  background: #0c1514; color: #edf6f0; border-color: #496454; padding: 18px 22px;
}
.store-setup #research-progress .progress-heading h2 { color: #edf6f0; font-size: 18px; }
.store-setup #research-progress > p { color: #a6bbae; margin: 5px 0 8px; font-size: 12px; }
.store-setup #scan-activity { margin-top: 6px; }
.store-setup #scan-activity > summary { color: #c7ddbd; font: 11px/1.4 ui-monospace, monospace; }
.store-setup #scan-activity[open] > summary { margin-bottom: 10px; }
.store-setup #research-progress .analysis-topline { margin-bottom: 8px; color: #abc3b0; gap: 8px; }
.store-setup #research-progress .analysis-topline button { color: #d0e0d5; background: #17251e; border-color: #496454; min-height: 32px; padding: 5px 9px; }
.store-setup #research-progress .analysis-stage { min-height: 168px; padding: 12px 0; gap: 20px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border-color: #344d40; }
.store-setup #research-progress .analysis-scan { animation-name: compact-analysis-scan; animation-duration: 5s; }
@keyframes compact-analysis-scan { from { transform: translateY(0); } to { transform: translateY(190px); } }
.store-setup #research-progress .analysis-readout { gap: 12px; }
.store-setup #research-progress .analysis-label { font-size: 9px; line-height: 1.4; margin-bottom: 7px; color: #d1f87e; }
.store-setup #research-progress .analysis-focus h3 { font-size: 25px; line-height: 1.2; letter-spacing: -.6px; margin-bottom: 7px; color: #edf6f0; -webkit-line-clamp: 2; }
.store-setup #research-progress .analysis-focus[data-kind="fact"] h3 { color: #d1f87e; }
.store-setup #research-progress .analysis-focus > p:not(.analysis-label) { font-size: 12px; line-height: 1.5; margin-bottom: 6px; color: #a6bbae; -webkit-line-clamp: 2; }
.store-setup #research-progress .analysis-focus > a { color: #c7ddbd; font-size: 10px; }
.store-setup #research-progress .analysis-metrics { gap: 24px; padding-top: 10px; border-color: #344d40; }
.store-setup #research-progress .analysis-metrics > div { display: flex; align-items: center; gap: 7px; }
.store-setup #research-progress .analysis-metrics strong { margin: 0; font-size: 23px; letter-spacing: -1px; }
.store-setup #research-progress .analysis-metrics span { color: #a6bbae; font-size: 9px; }
.store-setup #research-progress .analysis-sidebar { gap: 8px; }
.store-setup #research-progress .scan-music { flex-direction: row; flex-wrap: nowrap; margin: 0; padding: 7px 10px; gap: 8px; background: #16231b; border-color: #344d40; border-radius: 6px; }
.store-setup #research-progress .scan-track { gap: 8px; }
.store-setup #research-progress .scan-track strong { font-size: 12px; color: #dce8da; white-space: nowrap; }
.store-setup #research-progress .scan-track-label, .store-setup #scan-music-status { display: none; }
.store-setup #research-progress .scan-music-bars { height: 22px; gap: 2px; }
.store-setup #research-progress .scan-music-bars i { width: 2px; max-height: 22px; }
.store-setup #research-progress #scan-music-toggle { flex: 0 0 auto; min-width: 0; min-height: 32px; width: auto; padding: 5px 8px; gap: 5px; background: #172b1c; color: #d1f87e; border: 1px solid #607a48; border-radius: 5px; font-size: 11px; }
.store-setup #research-progress #scan-music-toggle svg { width: 16px; height: 16px; }
.store-setup #research-progress .analysis-feed { background: #101e1b; border-color: #344d40; border-radius: 6px; }
.store-setup #research-progress .analysis-feed-heading { color: #ccdfcd; padding: 7px 10px; font-size: 8px; border-color: #344d40; }
.store-setup #research-progress .analysis-feed-heading > span:last-child { color: #a6bbae; }
.store-setup #research-progress #analysis-empty { min-height: 50px; padding: 12px; font-size: 12px; color: #a6bbae; }
.store-setup #research-progress #analysis-events { max-height: 110px; padding: 0 6px; }
.store-setup #research-progress #analysis-events li { padding: 4px 0; border-color: #344d40; }
.store-setup #research-progress #analysis-events button { min-height: 44px; padding: 7px; background: transparent; color: #d7e8db; }
.store-setup #research-progress #analysis-events button:is(:hover, [aria-pressed="true"]) { background: #25351f; border-color: #607a48; }
.store-setup #research-progress #analysis-events strong { font-size: 12px; line-height: 1.4; -webkit-line-clamp: 1; }
.store-setup #research-progress #analysis-events .discovery-tag { color: #bfd996; margin: 0 0 3px; font-size: 8px; }
.store-setup #research-progress #analysis-events small { color: #a6bbae; margin-top: 3px; font-size: 9px; -webkit-line-clamp: 1; }
.store-setup #research-progress .analysis-bottom { padding-top: 10px; border-color: #344d40; }
.store-setup #research-progress #research-progress-count { color: #a6bbae; margin-top: 6px; }
.store-setup #research-progress .progress-steps { margin-top: 8px; gap: 12px; }
.store-setup #research-progress .progress-steps li { color: #d1dfd3; font-size: 10px; }
.store-setup #research-progress .progress-steps small { display: none; }
.store-setup #research-progress .is-done .progress-marker { color: #1d3420; }
.store-setup #research-progress .is-warning .progress-marker { color: #ddc391; }
@media (max-width: 650px) {
  .store-setup #research-progress { padding: 16px; }
  .store-setup #research-progress .analysis-stage { grid-template-columns: 1fr; gap: 10px; padding: 10px 0; min-height: 0; }
  .store-setup #research-progress .analysis-focus h3 { font-size: 22px; }
  .store-setup #research-progress .analysis-focus > p:not(.analysis-label) { -webkit-line-clamp: 1; }
  .store-setup #research-progress .analysis-metrics { justify-content: space-between; gap: 8px; }
  .store-setup #research-progress .analysis-sidebar { display: flex; flex-direction: row; align-items: start; }
  .store-setup #research-progress .analysis-feed { display: none; }
  .store-setup #research-progress .scan-music { width: 100%; justify-content: space-between; }
  .store-setup #research-progress .progress-steps { grid-template-columns: 1fr 1fr; gap: 8px; }
  .store-setup #research-progress .analysis-topline { margin-bottom: 6px; flex-wrap: nowrap; }
  .store-setup #research-progress .analysis-topline button, .store-setup #research-progress #scan-music-toggle { min-height: 40px; }
}
@media (max-width: 650px) {
  .store-setup main { padding: 22px 16px 135px; }
  .store-setup .topbar.signmall-topbar { min-height: 66px; padding: 8px 16px; gap: 8px; flex-wrap: nowrap; }
  .store-setup .signmall-brand { width: 136px; }
  .store-setup .signmall-theme-actions { gap: 8px; }
  .store-setup #back-catalog { font-size: 12px; }
  .store-setup button.theme-toggle { min-width: 42px; padding: 10px; }
  .store-setup [data-theme-label] { display: none; }
  .store-setup .intro { flex-direction: column; align-items: stretch; gap: 14px; }
  .store-setup .destination { max-width: none; display: flex; align-items: center; gap: 10px; font-size: 12px; }
  .store-setup .destination select { margin: 0; }
  .store-setup .steps { margin: 18px 0; }
  .store-setup .steps :is(button, span) { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10px; padding: 7px 2px; }
  .store-setup .steps b { margin: 0; }
  .store-setup .panel { padding: 18px; }
  .store-setup .scan-entry-controls { gap: 8px; }
  .store-setup .scan-entry-controls .primary { min-width: 0; padding: 10px 12px; font-size: 12px; }
  .store-setup .scan-entry-controls input { font-size: 16px; }
  .store-setup .findings-heading { flex-direction: column; gap: 10px; }
  .store-setup .business-row { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 12px 0; }
  .store-setup .business-row dt { grid-column: 1; font-size: 11px; }
  .store-setup .business-row dd:not(.detail-actions) { grid-column: 1; }
  .store-setup .detail-actions { grid-column: 2; grid-row: 1 / span 2; }
  .store-setup .detail-actions button { min-width: 40px; min-height: 44px; }
  .store-setup .two-columns { grid-template-columns: 1fr; gap: 0; }
  .store-setup .two-columns .panel { height: auto; }
  .store-setup #step-2 #styles.styles { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .store-setup .style-card strong { font-size: 12px; margin: 7px 2px; }
  .store-setup .actionbar { padding: 12px 16px; }
  .store-setup #next-help { max-width: 120px; font-size: 11px; }
  .store-setup .actionbar > div { gap: 6px; }
  .store-setup .actionbar .primary { padding: 10px 12px; font-size: 12px; }
  .store-setup #back { padding: 8px; font-size: 12px; }
}

.store-setup .scan-logo-review { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; flex-wrap: wrap; }
.store-setup .scan-logo-review img { width: 140px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.store-setup .scan-logo-review small { flex: 1; color: var(--muted); }
.store-setup #website-copy { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
