/* Dashboard layout. Brand tokens, buttons and form fields come from /_shared/brand.css */

body { background: var(--sand-100); min-height: 100vh; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.pad { padding: 64px 0; }
.pad-top { padding-top: 24px; }
.narrow { max-width: 680px; padding-bottom: 64px; }
h1 { font-size: 30px; margin: 28px 0 8px; }
h2 { font-size: 22px; }
.lead { font-size: 18px; color: var(--muted); margin-bottom: 24px; }
.card { margin-top: 18px; box-shadow: var(--shadow-sm); }
.card-title { margin-bottom: 10px; }

.bar { background: var(--sand-50); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.bar-user { display: flex; align-items: center; gap: 6px; }
.bar-user .muted { display: none; }
@media (min-width: 560px) { .bar-user .muted { display: inline; } }

.hero-card { text-align: left; margin-top: 28px; padding: 28px 24px; }
.hero-card h1 { margin-top: 0; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }

.notice { padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; font-size: 15px; background: var(--green-100); color: var(--green-900); }
.notice.error { background: #fdecea; color: var(--error); }
.notice.warn { background: #fff4e0; color: #6b4300; }
.notice.ok { background: var(--green-100); color: var(--green-900); }

.input-group .prefix {
  display: flex; align-items: center; padding: 0 12px; background: var(--sand-200); border: 1.5px solid #cfc7b2; border-right: 0;
  border-radius: 10px 0 0 10px; color: var(--ink); font-weight: 600;
}
.input-group .prefix + .input { border-radius: 0 10px 10px 0; }

.fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.fieldset legend { padding: 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 10px; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--green-700); background: #f4faf7; }
.choice input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--green-700); flex: 0 0 auto; }
.existing { padding: 4px 2px 0; }

.progress h2 { margin-bottom: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { padding-left: 32px; position: relative; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cfc7b2; }
.steps li.doing { color: var(--ink); font-weight: 600; }
.steps li.doing::before { border-color: var(--green-700); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--green-700); border-color: var(--green-700); content: "✓"; color: #fff; font-size: 12px; text-align: center; line-height: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

.welcome { background: var(--green-900); border-color: var(--green-900); }
.welcome h1, .welcome p { color: var(--sand-50); margin-top: 0; }
.welcome h1 { font-size: 26px; margin-bottom: 6px; }

.billing.warn { border-color: #e0b25a; background: #fff9ec; }
.billing.locked { border-color: #e0a29b; background: #fdf3f2; }
.billing.locked .card-title { color: var(--error); }
.price-line { font: 700 20px/1.3 var(--font-head); color: var(--green-900); margin: 10px 0 14px; }
.price-line s { color: var(--muted); font-weight: 500; margin-right: 8px; }
.price-line .tag { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 99px; background: var(--green-100); color: var(--green-900); font: 600 13px/1.6 var(--font-body); }
.shop-url { font: 700 20px/1.3 var(--font-head); color: var(--green-900); word-break: break-all; margin-bottom: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.actions .btn { flex: 1 1 160px; }

.health { margin: 14px 0 4px; display: grid; gap: 8px; }
.health .notice { margin: 0; }

/* live preview of the storefront header */
.preview-wrap { margin-bottom: 22px; }
.preview { max-width: 320px; margin: 0 auto 8px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #f4f7f5; box-shadow: var(--shadow-sm); }
.preview-head { background: #0a7d4f; color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.preview-head img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; flex: 0 0 auto; }
.pv-name { font: 700 18px/1.2 var(--font-head); }
.pv-tag { font-size: 12px; opacity: .9; margin-top: 2px; }
.pv-body { padding: 12px 14px 16px; }
.pv-search { background: #fff; border-radius: 10px; padding: 11px 12px; color: #8a948f; font-size: 14px; margin-bottom: 10px; }
.pv-row { background: #fff; border: 1px solid #dde5e0; border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.pv-row b { background: #0a7d4f; color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 13px; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px #cfc7b2; cursor: pointer; padding: 0; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--ink); }
.color-custom { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.color-custom input[type="color"] { width: 48px; height: 40px; padding: 2px; border: 1.5px solid #cfc7b2; border-radius: 8px; background: #fff; cursor: pointer; }

.logo-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.logo-box { width: 84px; height: 84px; border: 1.5px dashed #cfc7b2; border-radius: 16px; display: grid; place-items: center; background: #fff; overflow: hidden; text-align: center; flex: 0 0 auto; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; }
.logo-row .hint { margin-top: 8px; }
