/* First-run setup (docs/ONBOARDING.md, boards 1-4). Buttons are s-button; only layout and the boards' own pieces live here. */
.ss-onb-col { max-width: 760px; margin: 0 auto; padding: 24px 20px 48px; display: flex; flex-direction: column; gap: 20px; box-sizing: border-box; }
.ss-onb-sub { margin: 0; font-size: 13px; line-height: 1.5; color: #616161; }
.ss-onb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ss-onb-dots { display: flex; align-items: center; gap: 0; }
.ss-onb-pills { display: inline-flex; gap: 6px; align-items: center; }
.ss-onb-dot { display: inline-block; height: 6px; width: 16px; border-radius: 3px; background: #d4d4d4; }
.ss-onb-dot-cur { width: 28px; }
.ss-onb-dot-on { background: #303030; }
.ss-onb-stepno { margin-left: 8px; }
.ss-onb-skip { font: inherit; font-size: 13px; color: #005bd3; background: none; border: 0; padding: 4px 0; cursor: pointer; }
.ss-onb-skip:hover { color: #004299; text-decoration: underline; }
.ss-onb-skip:focus-visible, .ss-onb-h1:focus-visible { outline: 2px solid #005bd3; outline-offset: 2px; border-radius: 4px; }

.ss-onb-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 0 rgba(26, 26, 26, .07), 0 0 0 1px rgba(26, 26, 26, .07); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.ss-onb-card-flush { padding: 0; gap: 0; overflow: hidden; }
.ss-onb-inner { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.ss-onb-head { display: flex; flex-direction: column; gap: 6px; }
.ss-onb-h1 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; color: #303030; outline: none; }
.ss-onb-lead { margin: 0; font-size: 14px; line-height: 1.5; color: #616161; }
.ss-onb-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid #ebebeb; padding-top: 16px; }
.ss-onb-foot-plain { border-top: 0; padding-top: 0; justify-content: flex-end; }
.ss-onb-foot-end { justify-content: flex-end; }
.ss-onb-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 1 Welcome */
.ss-onb-band { background: #f7f7f7; padding: 32px 24px; display: flex; justify-content: center; border-bottom: 1px solid #ebebeb; }
.ss-onb-ill { width: 100%; max-width: 420px; display: flex; flex-direction: column; }
.ss-onb-ill-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid #005bd3; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.ss-onb-caret { width: 1px; height: 16px; background: #303030; margin-left: -6px; flex: none; }
.ss-onb-ill[data-anim="on"] .ss-onb-caret { animation: ss-onb-blink 1s steps(1) infinite; }
@keyframes ss-onb-blink { 50% { opacity: 0; } }
/* the typed query: one line, fixed height, so the box never changes size while letters come and go */
.ss-onb-ill-q { min-width: 0; height: 20px; line-height: 20px; white-space: pre; overflow: hidden; }
.ss-onb-ill-list { margin-top: 6px; padding: 8px; display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 12px; box-shadow: 0 1px 0 rgba(26, 26, 26, .07), 0 0 0 1px rgba(26, 26, 26, .07); }
.ss-onb-ill-cap { font-size: 11px; color: #616161; padding: 4px 8px; letter-spacing: .4px; }
/* results fade in and out in place (the list keeps its size: no layout jump while the demo runs) */
.ss-onb-ill-list > .ss-onb-ill-cap, .ss-onb-ill-list > .ss-onb-ill-row { transition: opacity .18s ease; }
.ss-onb-ill-list[data-shown="0"] > .ss-onb-ill-cap, .ss-onb-ill-list[data-shown="0"] > .ss-onb-ill-row { opacity: 0; }
.ss-onb-ill-row { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 6px; }
.ss-onb-ill-row-on { background: #f7f7f7; }
.ss-onb-thumb { width: 32px; height: 32px; border-radius: 6px; flex: none; overflow: hidden; display: block; }
.ss-onb-thumb > svg { display: block; }
.ss-onb-ill-name { flex: 1; min-width: 0; font-size: 13px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-onb-price { font-size: 13px; line-height: 20px; font-weight: 600; flex: none; }
.ss-onb-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.ss-onb-feat { display: flex; flex-direction: column; gap: 4px; }
.ss-onb-feat-t { font-size: 14px; font-weight: 600; }

.ss-onb-consent { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #ebebeb; padding-top: 16px; }
.ss-onb-consent-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; max-width: 420px; }
.ss-onb-consent-fields[hidden] { display: none; }
.ss-onb-consent-fields s-text-field { flex: 1 1 200px; min-width: 0; }
.ss-onb-consent .ss-onb-sub:empty { display: none; }
.ss-onb-consent [data-state="error"] { color: #8e1f0b; }

/* 2 Getting your store ready */
.ss-onb-rows { display: flex; flex-direction: column; }
.ss-onb-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #ebebeb; }
.ss-onb-row-top { align-items: flex-start; }
.ss-onb-row > svg, .ss-onb-hero > svg { flex: none; }
.ss-onb-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ss-onb-row-t { font-size: 14px; font-weight: 600; }
.ss-onb-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 550; padding: 2px 8px; border-radius: 8px; white-space: nowrap; flex: none; }
.ss-onb-badge-info { background: #eaf4ff; color: #00527c; }
.ss-onb-badge-success { background: #cdfee1; color: #0c5132; }
.ss-onb-badge-warning { background: #ffd6a4; color: #5e4200; }
.ss-onb-badge-neutral { background: #ebebeb; color: #303030; }
.ss-onb-bar { height: 6px; border-radius: 3px; background: #ebebeb; margin-top: 6px; }
.ss-onb-bar-fill { height: 6px; border-radius: 3px; background: #005bd3; transition: width .4s ease; }
.ss-onb-pw { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 8px; max-width: 420px; }
.ss-onb-pw s-password-field { flex: 1 1 200px; min-width: 0; }
.ss-onb-spin { animation: ss-onb-spin 1s linear infinite; }
@keyframes ss-onb-spin { to { transform: rotate(360deg); } }

/* 3 Theme */
.ss-onb-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.ss-onb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; flex: 1 1 260px; min-width: 0; }
.ss-onb-li { display: flex; gap: 12px; }
.ss-onb-num { width: 24px; height: 24px; border-radius: 50%; background: #303030; color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.ss-onb-embeds { flex: 1 1 280px; min-width: 0; background: #f7f7f7; border-radius: 12px; padding: 20px; box-sizing: border-box; }
.ss-onb-embeds-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 0 rgba(26, 26, 26, .07), 0 0 0 1px rgba(26, 26, 26, .07); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.ss-onb-embeds-cap { font-size: 12px; font-weight: 600; color: #616161; }
.ss-onb-embed { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; }
.ss-onb-embed-on { border: 2px solid #005bd3; background: #f4f8ff; }
.ss-onb-embed-off { opacity: .5; }
.ss-onb-logo { width: 24px; height: 24px; border-radius: 6px; background: #303030; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; object-fit: cover; }
.ss-onb-logo-off { background: #d4d4d4; }
.ss-onb-embed-name { flex: 1; font-size: 13px; font-weight: 600; }
.ss-onb-embed-name-off { font-weight: 450; }
.ss-onb-sw { position: relative; display: inline-block; width: 32px; height: 18px; border-radius: 9px; background: #b5b5b5; flex: none; }
.ss-onb-sw-on { background: #303030; }
.ss-onb-knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.ss-onb-sw-on .ss-onb-knob { left: 16px; }
.ss-onb-status { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; font-size: 13px; }
.ss-onb-status > svg { flex: none; }
.ss-onb-status-wait { background: #eaf4ff; color: #00527c; }
.ss-onb-status-ok { background: #cdfee1; color: #0c5132; }

/* 4 Done */
.ss-onb-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 0; }
.ss-onb-hero-lead { max-width: 460px; }
.ss-onb-nexts { display: flex; flex-direction: column; }
.ss-onb-next { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #ebebeb; }
.ss-onb-next .ss-link { font-size: 13px; }
.ss-onb-tile { width: 32px; height: 32px; border-radius: 8px; background: #f1f1f1; display: flex; align-items: center; justify-content: center; flex: none; }

@media (prefers-reduced-motion: reduce) { .ss-onb-spin { animation-duration: 3s; } .ss-onb-bar-fill { transition: none; } .ss-onb-caret { animation: none !important; } .ss-onb-ill-list > * { transition: none !important; } }
@media (max-width: 600px) {
  .ss-onb-card { padding: 20px; }
  .ss-onb-inner { padding: 20px; }
  .ss-onb-band { padding: 24px 16px; }
  .ss-onb-foot { flex-direction: row; }
  .ss-onb-row { flex-wrap: wrap; }
  .ss-onb-row-main { flex-basis: 120px; }
}
