/* Extracted from site/start.html on 2026-04-14 */

body { background: var(--bg-muted); min-height: 100vh; }

        .wizard-wrap {
            max-width: 600px;
            margin: 0 auto;
            padding: 32px 16px 64px;
        }

        .wizard-header {
            text-align: center;
            margin-bottom: 32px;
        }

        .wizard-header a {
            font-size: 14px;
            color: var(--text-muted);
            text-decoration: none;
        }

        .wizard-header a:hover { color: var(--accent); }

        .wizard-header h1 {
            font-size: 26px;
            font-weight: 800;
            margin-top: 12px;
            color: var(--text-primary);
        }

        /* Step indicator */
        .step-indicator {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0;
            margin-bottom: 32px;
        }

        .si-step {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
        }

        .si-dot {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--border);
            color: var(--text-muted);
            font-size: 14px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid var(--border);
            transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
        }
        .si-dot.done,
        .si-dot.active { cursor: pointer; }
        .si-dot.done:hover { transform: scale(1.08); }

        .si-dot.active {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
        }

        .si-dot.done {
            background: var(--accent-light);
            color: var(--accent);
            border-color: var(--accent);
        }

        .si-label {
            font-size: 11px;
            color: var(--text-muted);
            font-weight: 500;
            white-space: nowrap;
        }

        .si-label.active { color: var(--accent); font-weight: 700; }
        .si-label.done { color: var(--accent); }

        .si-line {
            width: 48px;
            height: 2px;
            background: var(--border);
            margin-bottom: 22px;
            transition: background 0.2s;
        }

        .si-line.done { background: var(--accent); }

        @media (max-width: 400px) {
            .si-line { width: 28px; }
            .si-label { font-size: 10px; }
        }

        /* Card container */
        .wizard-card {
            background: var(--bg);
            border: 1.5px solid var(--border);
            border-radius: 16px;
            padding: 32px 28px;
        }

        @media (max-width: 480px) {
            .wizard-card { padding: 24px 18px; }
        }

        .step-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 6px;
        }

        .step-desc {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 28px;
            line-height: 1.5;
        }

        /* Form fields */
        .field {
            margin-bottom: 20px;
        }

        .field label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .field label .req {
            color: #ef4444;
            margin-left: 2px;
        }

        .field input,
        .field select {
            width: 100%;
            padding: 10px 14px;
            border: 1.5px solid var(--border);
            border-radius: 10px;
            font-size: 15px;
            color: var(--text-primary);
            background: var(--bg);
            outline: none;
            transition: border-color 0.15s;
            font-family: inherit;
            -webkit-appearance: none;
            appearance: none;
        }

        .field select {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            padding-right: 36px;
        }

        .field input:focus,
        .field select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
        }

        .field input.error,
        .field select.error {
            border-color: #ef4444;
        }

        .field-error {
            font-size: 12px;
            color: #ef4444;
            margin-top: 4px;
            display: none;
        }

        /* Mode cards (step 2) */
        .mode-cards {
            display: grid;
            gap: 14px;
            margin-bottom: 8px;
        }

        .mode-card {
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 20px;
            cursor: pointer;
            transition: border-color 0.15s, background 0.15s;
            position: relative;
        }

        .mode-card:hover { border-color: #93c5fd; background: #f8faff; }

        .mode-card.selected {
            border-color: var(--accent);
            background: var(--accent-light);
        }

        .mode-card input[type="radio"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }

        .mode-card-top {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
        }

        .mode-radio-dot {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 2px solid var(--border);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: border-color 0.15s;
        }

        .mode-card.selected .mode-radio-dot {
            border-color: var(--accent);
        }

        .mode-radio-dot::after {
            content: '';
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--accent);
            display: none;
        }

        .mode-card.selected .mode-radio-dot::after { display: block; }

        .mode-card-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .mode-card-badge {
            font-size: 11px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 20px;
            background: var(--accent-light);
            color: var(--accent);
            margin-left: auto;
        }

        .mode-card-desc {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.5;
            padding-left: 32px;
        }

        /* Kids list (step 3) */
        .kids-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 16px;
        }

        .kid-row {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            background: var(--bg-muted);
            border: 1.5px solid var(--border);
            border-radius: 10px;
            padding: 14px 14px 14px 14px;
            position: relative;
        }

        .kid-row-fields {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .kid-row-inner {
            display: flex;
            gap: 10px;
        }

        .kid-name-wrap {
            flex: 1;
        }

        .kid-row label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 4px;
        }

        .kid-row input {
            width: 100%;
            padding: 9px 12px;
            border: 1.5px solid var(--border);
            border-radius: 8px;
            font-size: 14px;
            color: var(--text-primary);
            background: var(--bg);
            outline: none;
            font-family: inherit;
        }

        .kid-row input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
        }

        .kid-row input.error { border-color: #ef4444; }

        .kid-remove {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-muted);
            font-size: 18px;
            line-height: 1;
            padding: 2px 0 0 0;
            margin-top: 22px;
            flex-shrink: 0;
            transition: color 0.15s;
        }

        .kid-remove:hover { color: #ef4444; }

        .kid-count {
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 12px;
            font-weight: 500;
        }

        .add-kid-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            background: var(--accent-light);
            color: var(--accent);
            border: 1.5px dashed #93c5fd;
            border-radius: 10px;
            padding: 12px 16px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            justify-content: center;
            transition: background 0.15s;
            font-family: inherit;
        }

        .add-kid-btn:hover { background: #dbeafe; }

        .add-kid-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        /* Review step */
        .review-section {
            margin-bottom: 24px;
        }

        .review-section-title {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--text-muted);
            margin-bottom: 10px;
        }

        .review-table {
            border: 1.5px solid var(--border);
            border-radius: 10px;
            overflow: hidden;
        }

        .review-row {
            display: flex;
            padding: 10px 14px;
            font-size: 14px;
            border-bottom: 1px solid var(--border);
        }

        .review-row:last-child { border-bottom: none; }

        .review-row dt {
            width: 140px;
            flex-shrink: 0;
            color: var(--text-muted);
            font-weight: 500;
        }

        .review-row dd {
            color: var(--text-primary);
            font-weight: 500;
            word-break: break-word;
        }

        .review-kids-list {
            border: 1.5px solid var(--border);
            border-radius: 10px;
            overflow: hidden;
        }

        .review-kid {
            padding: 8px 14px;
            font-size: 14px;
            color: var(--text-primary);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .review-kid:last-child { border-bottom: none; }

        .kid-num {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--accent-light);
            color: var(--accent);
            font-size: 11px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .review-kid-url {
            font-size: 12px;
            color: var(--text-muted);
            margin-left: auto;
            max-width: 180px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* Navigation buttons */
        .wizard-nav {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 32px;
        }

        .btn-back {
            padding: 11px 20px;
            border: 1.5px solid var(--border);
            border-radius: 10px;
            background: var(--bg);
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: border-color 0.15s, color 0.15s;
        }

        .btn-back:hover { border-color: var(--accent); color: var(--accent); }

        .btn-next {
            flex: 1;
            padding: 13px 20px;
            background: var(--accent);
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            font-family: inherit;
            transition: opacity 0.15s;
        }

        .btn-next:hover { opacity: 0.9; }

        .btn-next:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .btn-submit {
            flex: 1;
            padding: 14px 20px;
            background: var(--accent);
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            font-family: inherit;
            transition: opacity 0.15s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        /* Sticky top nav that mirrors the bottom buttons — so long lists
           don't force scrolling to the bottom to advance. */
        .wizard-nav-top {
            position: sticky;
            top: 0;
            z-index: 20;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 0;
            margin: -8px -4px 16px;
            padding-left: 4px;
            padding-right: 4px;
            background: var(--bg, #fff);
            border-bottom: 1px solid var(--border);
        }
        .wizard-nav-top .btn-back { padding: 8px 14px; font-size: 13px; }
        .wizard-nav-top .btn-next,
        .wizard-nav-top .btn-submit { padding: 10px 16px; font-size: 14px; flex: 1; }
        .wizard-nav-top .step-meta {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 600;
            white-space: nowrap;
        }

        .btn-submit:hover { opacity: 0.9; }
        .btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

        .spinner {
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255,255,255,0.4);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            display: none;
        }

        @keyframes spin { to { transform: rotate(360deg); } }

        /* Error banner */
        .error-banner {
            background: #fef2f2;
            border: 1.5px solid #fecaca;
            border-radius: 10px;
            padding: 12px 16px;
            font-size: 14px;
            color: #b91c1c;
            margin-bottom: 20px;
            display: none;
        }

        /* Hidden step panels */
        .step-panel { display: none; }
        .step-panel.active { display: block; }

        /* Group name */
        .group-field {
            margin-bottom: 24px;
        }

/* Page-specific utility classes for start wizard */
.color-picker-wrap { display: flex; gap: 10px; align-items: center; }
.color-input { width: 48px; height: 36px; border: 1.5px solid var(--border); border-radius: 8px; cursor: pointer; padding: 2px; }
.color-label { font-size: 12px; color: var(--text-muted); }
.logo-input { font-size: 13px; }
.logo-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.logo-preview { display: none; margin-top: 8px; }
.logo-preview-img { max-height: 48px; max-width: 200px; border-radius: 6px; border: 1px solid var(--border); }
.org-help-box { display: none; margin-top: 12px; padding: 16px; background: var(--accent-light); border-radius: 10px; font-size: 13px; line-height: 1.6; }
.goal-wrap { display: flex; gap: 8px; align-items: center; }
.goal-dollar { font-size: 18px; font-weight: 700; color: var(--text-muted); }
.goal-input { max-width: 160px; }
.milestone-hint { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.milestone-add-btn { padding: 8px 16px; background: white; color: var(--accent); border: 1.5px solid var(--accent); border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 12px; margin-top: 8px; }
.roster-box { padding: 14px; background: #f0f4ff; border-radius: 10px; font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.roster-box-inner { padding: 14px; background: #f0f4ff; border-radius: 10px; font-size: 13px; line-height: 1.6; margin-bottom: 8px; }
.roster-link { color: var(--accent); font-weight: 600; font-size: 13px; }
.roster-upload-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.csv-input { font-size: 13px; flex: 1; min-width: 0; }
.csv-import-btn { padding: 8px 16px; background: var(--accent); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 12px; }
.csv-import-btn-inline { margin-left: 8px; padding: 8px 16px; background: var(--accent); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 12px; }
.csv-status { margin-top: 6px; font-size: 12px; color: var(--text-muted); min-height: 1em; }
.csv-status-inline { margin-left: 8px; font-size: 12px; color: var(--text-muted); }
.bulk-paste-section { display: none; margin-bottom: 20px; }
.bulk-paste-info { padding: 14px; background: var(--accent-light); border-radius: 10px; font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
.bulk-paste-hint { color: var(--text-muted); }
.bulk-paste-textarea { width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-family: monospace; resize: vertical; }
.bulk-paste-import { margin-top: 8px; padding: 10px 20px; background: var(--accent); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 13px; }
.bulk-paste-or { margin-left: 8px; font-size: 12px; color: var(--text-muted); }
.add-kid-plus { font-size: 18px; line-height: 1; }

#step-auth #auth-error { display: none; margin-bottom: 16px; padding: 12px 14px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; font-size: 13px; color: #991b1b; }
#step-auth #auth-error.show { display: block; }
.auth-success { display: none; margin-top: 20px; padding: 16px 18px; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; font-size: 14px; color: #065f46; line-height: 1.6; }
.auth-success.show { display: block; }
.auth-success strong { color: #047857; display: block; margin-bottom: 4px; }
#step-auth .auth-divider { display: flex; align-items: center; gap: 12px; margin: 28px 0 16px; color: var(--text-muted); }
#step-auth .auth-divider::before, #step-auth .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
#step-auth .auth-divider span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; }
.auth-passkey-row { display: none; }
.auth-passkey-row.show { display: block; }
.btn-passkey { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 20px; background: white; color: #1a1a2e; border: 1.5px solid var(--border); border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; box-sizing: border-box; }
.btn-passkey:hover { border-color: var(--accent); background: #f9fafb; }
.btn-passkey:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-passkey-status { font-size: 12px; color: var(--text-muted); margin-top: 10px; min-height: 1em; }
.auth-help { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); line-height: 1.6; }
