
.wizard {
    padding-bottom: var(--space-3xl);
    position: relative;
}


body.wizard-prompt-active,
body.wizard-questions-active,
body.wizard-flow-active {
    background: var(--surface-light);
}

html:has(body.wizard-flow-active):not(:has(body.wizard-questions-active)) {
    height: 100%;
    overflow: hidden;
    background: var(--surface-light);
}

html:has(body.wizard-questions-active) {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--surface-light);
}

body.wizard-flow-active:not(.wizard-questions-active) {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

body.wizard-questions-active {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
}

body.wizard-flow-active:not(.wizard-questions-active) .app-shell,
body.wizard-flow-active:not(.wizard-questions-active) .app-content {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

body.wizard-questions-active .app-shell,
body.wizard-questions-active .app-content {
    height: auto;
    min-height: 100%;
    overflow: visible;
}

body.wizard-prompt-active .app-topbar,
body.wizard-prompt-active .app-footer,
body.wizard-prompt-active .app-email-verify-banner,
body.wizard-questions-active .app-topbar,
body.wizard-questions-active .app-footer,
body.wizard-questions-active .app-email-verify-banner,
body.wizard-flow-active .app-topbar,
body.wizard-flow-active .app-footer,
body.wizard-flow-active .app-email-verify-banner {
    display: none;
}

body.wizard-prompt-active .app-content,
body.wizard-questions-active .app-content,
body.wizard-flow-active .app-content {
    align-items: stretch;
    padding: 0;
    max-width: none;
}

body.wizard-prompt-active .wizard,
body.wizard-questions-active .wizard {
    padding-bottom: 0;
    width: 100%;
    max-width: none;
}

body.wizard-questions-active .wizard {
    height: auto;
    min-height: 100%;
    overflow: visible;
}

@media (min-width: 1024px) {
    body.wizard-questions-active .wizard {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
    }
}

.wizard-prompt-landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    min-height: 100vh;
    padding: var(--space-xl) var(--space-lg);
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--surface-bg) 20%, transparent) 0%,
            color-mix(in srgb, var(--surface-tertiary) 20%, transparent) 100%
        ),
        var(--surface-light);
}

.wizard-prompt-landing__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    width: 100%;
    gap: var(--space-2xl);
    min-height: 0;
}

.wizard-prompt-landing__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.wizard-prompt-landing__logo-image {
    display: block;
    width: auto;
    height: 3rem;
}

.wizard-prompt-landing__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
    width: 100%;
    max-width: 926px;
}

.wizard-prompt-landing__headline {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.wizard-prompt-landing__accent {
    color: var(--text-brand-primary);
}

.wizard-prompt-landing__subhead {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--text-tertiary);
}

.wizard-prompt-landing__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin: 0;
    padding: 0;
    list-style: none;
}

.wizard-prompt-landing__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.wizard-prompt-landing__trust-item svg {
    flex-shrink: 0;
    color: var(--text-tertiary);
}

.wizard-prompt-landing__trust-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--surface-quaternary);
}

.wizard-prompt-block {
    width: 100%;
    max-width: 667px;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

@property --wizard-glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.wizard-prompt-card__glow {
    position: absolute;
    inset: -6px;
    border-radius: calc(var(--radius-lg) + 6px);
    --wizard-glow-angle: 0deg;
    background:
        conic-gradient(
            from var(--wizard-glow-angle),
            transparent 0deg,
            color-mix(in srgb, var(--surface-brand-primary) 12%, transparent) 30deg,
            color-mix(in srgb, var(--surface-brand-primary) 34%, transparent) 58deg,
            color-mix(in srgb, var(--purple-600) 40%, transparent) 82deg,
            color-mix(in srgb, var(--surface-brand-primary) 24%, transparent) 108deg,
            transparent 142deg,
            transparent 360deg
        ),
        linear-gradient(
            91deg,
            color-mix(in srgb, var(--surface-brand-primary) 20%, transparent) 0%,
            color-mix(in srgb, var(--purple-600) 20%, transparent) 100%
        );
    filter: blur(13px);
    pointer-events: none;
    z-index: 0;
    animation: wizard-prompt-glow-travel 5.5s linear infinite;
}

@keyframes wizard-prompt-glow-travel {
    to {
        --wizard-glow-angle: 360deg;
    }
}

.wizard-prompt-card__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    padding: 16px;
    background: var(--surface-bg);
    border: 1px solid var(--surface-tertiary);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.wizard-prompt-card.is-focused .wizard-prompt-card__inner,
.wizard-prompt-card.is-filled .wizard-prompt-card__inner {
    border: 1px solid transparent;
    background: linear-gradient(var(--button-text-primary), var(--button-text-primary)) padding-box,
        linear-gradient(90deg, var(--surface-brand-primary) 0%, var(--purple-600) 100%) border-box;
}

.wizard-prompt-card__textarea {
    width: 100%;
    min-height: 48px;
    max-height: 150px;
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    resize: none;
    overflow-y: auto;
    background: transparent;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--text-body);
}

.wizard-prompt-card__textarea::placeholder {
    color: var(--text-quaternary);
}

.wizard-prompt-card__voice-indicator {
    display: none;
    align-items: center;
    min-height: 28px;
    margin-bottom: 4px;
    padding: 4px 0;
}

.wizard-prompt-card__voice-line {
    display: block;
    width: 100%;
    height: 0;
    border-top: 2px dotted var(--text-strong);
    opacity: 0.35;
}

.wizard-prompt-card.is-voice-active .wizard-prompt-card__voice-indicator {
    display: flex;
}

.wizard-prompt-card.is-voice-active .wizard-prompt-card__voice-indicator.is-speaking .wizard-prompt-card__voice-line {
    opacity: 0.65;
    animation: wizard-voice-line-pulse 1.4s ease-in-out infinite;
}

.wizard-prompt-card.is-voice-active .wizard-prompt-card__textarea::placeholder {
    color: transparent;
}

.wizard-prompt-card.is-voice-active .wizard-prompt-card__mic {
    display: none;
}

.wizard-prompt-card.is-voice-active .wizard-prompt-card__voice-cancel {
    display: flex;
}

.wizard-prompt-card__voice-cancel {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-quaternary);
    cursor: pointer;
}

.wizard-prompt-card__voice-cancel:hover {
    background: color-mix(in srgb, var(--surface-black) 4%, transparent);
    color: var(--text-strong);
}

.wizard-prompt-card__voice-cancel svg[data-icon] {
    width: 18px;
    height: 18px;
}

.wizard-prompt-card__send-icon--confirm {
    display: none;
}

.wizard-prompt-card.is-voice-active .wizard-prompt-card__send-icon--send {
    display: none;
}

.wizard-prompt-card.is-voice-active .wizard-prompt-card__send-icon--confirm {
    display: block;
}

.wizard-prompt-card.is-voice-active .wizard-prompt-card__send {
    width: 40px;
    height: 40px;
    border-color: var(--surface-black);
    background: var(--surface-black);
    border-radius: 50%;
}

.wizard-prompt-card.is-voice-active .wizard-prompt-card__send svg[data-icon] {
    width: 18px;
    height: 18px;
}

.wizard-prompt-card.is-voice-active .wizard-prompt-card__send:disabled:not(.loading),
.wizard-prompt-card.is-voice-active .wizard-prompt-card__send:disabled:not(.loading):hover {
    border-color: var(--surface-black);
    background: var(--surface-black);
    color: var(--button-text-primary);
    opacity: 1;
    cursor: pointer;
}

@keyframes wizard-voice-line-pulse {
    0%,
    100% {
        opacity: 0.35;
    }
    50% {
        opacity: 0.75;
    }
}

.wizard-prompt-card__toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 8px;
}

.wizard-prompt-card__mic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 10px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-quaternary);
    cursor: pointer;
    opacity: 0.85;
    transition: color var(--transition-fast), background var(--transition-fast), opacity var(--transition-fast);
}

.wizard-prompt-card__mic:hover {
    background: color-mix(in srgb, var(--surface-black) 4%, transparent);
    color: var(--text-body);
}

.wizard-prompt-card__mic:disabled,
.wizard-prompt-card__mic[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.6;
}

.wizard-prompt-card__mic.is-hidden {
    display: none;
}

.wizard-prompt-card__mic.is-recording {
    color: var(--text-brand-primary);
    animation: wizard-mic-pulse 1.2s ease-in-out infinite;
}

.wizard-prompt-card__mic svg[data-icon] {
    width: 20px;
    height: 20px;
}

@keyframes wizard-mic-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.wizard-prompt-card__send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--surface-brand-primary);
    border-radius: var(--radius-sm);
    background: var(--surface-brand-primary);
    color: var(--button-text-primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.wizard-prompt-card__send svg[data-icon] {
    width: 16px;
    height: 16px;
}

.wizard-prompt-card__send:hover {
    background: var(--surface-brand-primary);
}

.wizard-prompt-card__send:disabled:not(.loading),
.wizard-prompt-card__send:disabled:not(.loading):hover {
    border-color: var(--surface-tertiary);
    background: var(--surface-tertiary);
    color: var(--button-text-primary);
    opacity: 1;
    cursor: not-allowed;
}

.wizard-prompt-card__send.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.wizard-prompt-card__send.loading::after {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--surface-bg);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.wizard-prompt-card__send.loading svg[data-icon] {
    display: none;
}

.wizard-prompt-chips {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.wizard-prompt-chips__label {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--text-body);
    text-align: center;
}

.wizard-prompt-chips__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    padding: 10px 0;
}

.wizard-prompt-chip {
    padding: 6px 16px;
    border: 1px solid var(--surface-tertiary);
    border-radius: var(--radius-lg);
    background: var(--surface-bg);
    color: var(--text-body);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    line-height: 1.43;
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.wizard-prompt-chip:hover {
    border-color: var(--surface-brand-primary);
}

.wizard-prompt-chip.is-selected {
    border-color: var(--surface-brand-primary);
    color: var(--text-brand-primary);
    font-weight: 500;
}

.wizard-prompt-chip.is-selected::before {
    content: '✓ ';
    font-weight: 700;
}

body.wizard-prompt-active .wizard-error-toast,
body.wizard-prompt-active .wizard-success-toast {
    position: fixed;
    top: auto;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    max-width: min(90vw, 480px);
    margin: 0;
}

@media (max-width: 768px) {
    .wizard-prompt-landing__trust-item {
        white-space: normal;
        font-size: var(--font-size-sm);
    }

    .wizard-prompt-landing__trust-sep {
        display: none;
    }

    .wizard-prompt-landing__trust {
        flex-direction: column;
        gap: var(--space-sm);
    }
}


.wizard-questions {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl) var(--space-lg) var(--space-2xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(192, 192, 192, 0.15) 100%), var(--bg-primary);
}

@media (min-width: 1024px) {
    body.wizard-questions-active .wizard-questions {
        padding-bottom: 0;
        min-height: 0;
    }
}

.wizard-questions__panel {
    flex: 0 1 500px;
    width: 100%;
    max-width: 500px;
}

.wizard-questions__progress-label {
    margin: 0 0 6px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-tertiary);
}

.wizard-questions__progress-label[hidden] {
    display: none;
}

.wizard-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.wizard-contact__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
}

@media (max-width: 560px) {
    .wizard-contact__row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.wizard-contact__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.wizard-contact__label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-secondary);
}

.wizard-contact__input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-input, var(--white));
    font: inherit;
    font-weight: 500;
    color: var(--text-strong);
    outline: none;
    transition: border-color var(--transition-fast);
}

.wizard-contact__input:focus {
    border-color: var(--accent-primary);
}

.wizard-contact__input--invalid {
    border-color: var(--accent-primary);
}

.wizard-brand-imported {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-input, var(--white));
}

.wizard-brand-imported__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    overflow: hidden;
}

.wizard-brand-imported__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wizard-brand-imported__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.wizard-brand-imported__label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.wizard-brand-imported__change {
    align-self: flex-start;
    padding: 6px 12px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: transparent;
    font: inherit;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-strong);
    cursor: pointer;
}

.wizard-questions__progress-track {
    height: 4px;
    background: var(--border-subtle);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.wizard-questions__progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--purple-600) 0%, var(--surface-brand-primary) 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.wizard-questions__form {
    min-height: 320px;
}

.wizard-questions__form.is-busy,
.wizard__step-form.is-busy {
    opacity: 0.72;
    cursor: wait;
    user-select: none;
}

.wizard-q {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    animation: fadeIn 0.35s ease;
}

.wizard-q__heading {
    margin: 0;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.wizard-q__subtext {
    margin: calc(-1 * var(--space-sm)) 0 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.wizard-q-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.wizard-q-option--radio {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
}

.wizard-q-option--radio.is-selected {
    box-shadow: none;
    color: var(--text-strong);
}

.wizard-q-option:hover {
    border-color: var(--text-muted);
}

.wizard-q-option:focus-visible,
.wizard-questions__nav-btn:focus-visible,
.wizard-brand-mode-tab:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.wizard-q-option.is-selected {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.wizard-q-option__control {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-subtle);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-q-option--radio .wizard-q-option__control {
    border-radius: 50%;
    border-color: var(--border-subtle);
    background: var(--border-subtle);
    color: var(--white);
}

.wizard-q-option--radio .wizard-q-option__control::after {
    content: '✓';
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.wizard-q-option--radio.is-selected .wizard-q-option__control {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
}

.wizard-q-option--radio.is-selected .wizard-q-option__control::after {
    content: '✓';
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
}

.wizard-q-option--check .wizard-q-option__control {
    border-radius: 6px;
}

.wizard-q-option--check.is-selected .wizard-q-option__control {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: var(--white);
}

.wizard-q-option--check.is-selected .wizard-q-option__control::after {
    content: '✓';
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.wizard-q-option--check.is-locked {
    cursor: default;
    opacity: 0.7;
}

.wizard-q-option--check.is-locked:hover {
    border-color: var(--accent-primary);
}

.wizard-q-text-wrap {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    padding: 14px;
    transition: border-color var(--transition-fast);
}

.wizard-q-text-wrap:focus-within {
    border-color: var(--accent-primary);
}

.wizard-q-text-input {
    width: 100%;
    min-height: 80px;
    border: none;
    outline: none;
    resize: vertical;
    background: transparent;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--text-strong);
}

.wizard-q-text-input::placeholder {
    color: var(--text-muted);
}

.wizard-questions__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-xl);
    gap: var(--space-md);
}

.wizard-questions__nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.wizard-questions__nav-btn--skip {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
}

.wizard-questions__nav-btn--skip:hover:not(:disabled) {
    color: var(--text-strong);
    background: rgba(0, 0, 0, 0.04);
}

.wizard-questions__nav-btn--skip:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.wizard-questions__nav-btn--back {
    border: none;
    background: transparent;
    color: var(--text-primary);
}

.wizard-questions__nav-btn--back:hover:not(:disabled) {
    color: var(--text-strong);
}

.wizard-questions__nav-btn--back:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.wizard-questions__nav-btn--next {
    border: 1px solid var(--accent-primary);
    background: var(--accent-primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.wizard-questions__nav-btn--next:hover {
    background: var(--accent-primary);
}

.wizard-questions__nav-btn--next:disabled {
    border-color: var(--gray-300);
    background: var(--gray-300);
    color: var(--white);
    opacity: 1;
    cursor: not-allowed;
}

.wizard-questions__previews {
    position: relative;
    flex: 0 0 343px;
    width: 343px;
    max-height: calc(100vh - 8rem);
    overflow: hidden;
    display: none;
}

@media (min-width: 1024px) {
    .wizard-questions__previews {
        display: block;
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
        max-height: none;
        height: 100%;
    }
}

.wizard-questions__previews-scroll {
    display: flex;
    align-items: flex-start;
    gap: 43px;
    padding-top: 82px;
}

.wizard-questions__previews-col {
    --wizard-thumb-height: 100px;
    --wizard-thumb-gap: 60px;
    --wizard-loop-distance: calc((var(--wizard-thumb-height) * 9) + (var(--wizard-thumb-gap) * 8));
    display: flex;
    flex-direction: column;
    gap: var(--wizard-thumb-gap);
    width: 150px;
    animation: wizard-questions-slide-up 80s linear infinite;
    will-change: transform;
}

.wizard-questions__previews-col--offset {
    margin-top: 82px;
    animation-name: wizard-questions-slide-down;
    animation-duration: 80s;
}

.wizard-questions__thumb {
    height: 100px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-quaternary);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wizard-questions__thumb-1 {
    background-image: url("../imgs/wizard-questions__thumb-1.png");
}

.wizard-questions__thumb-2 {
    background-image: url("../imgs/wizard-questions__thumb-2.png");
}

.wizard-questions__thumb-3 {
    background-image: url("../imgs/wizard-questions__thumb-3.png");
}

.wizard-questions__thumb-4 {
    background-image: url("../imgs/wizard-questions__thumb-4.png");
}

.wizard-questions__thumb-5 {
    background-image: url("../imgs/wizard-questions__thumb-5.png");
}

.wizard-questions__thumb-6 {
    background-image: url("../imgs/wizard-questions__thumb-6.png");
}

.wizard-questions__thumb-7 {
    background-image: url("../imgs/wizard-questions__thumb-7.png");
}

.wizard-questions__thumb-8 {
    background-image: url("../imgs/wizard-questions__thumb-8.png");
}

.wizard-questions__thumb-9 {
    background-image: url("../imgs/wizard-questions__thumb-9.png");
}

.wizard-questions__previews-fade {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 12%, transparent 88%, var(--bg-quaternary) 100%);
}

@keyframes wizard-questions-slide-up {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(calc(-1 * var(--wizard-loop-distance)));
    }
}

@keyframes wizard-questions-slide-down {
    from {
        transform: translateY(calc(-1 * var(--wizard-loop-distance)));
    }

    to {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wizard-questions__previews-col {
        animation: none;
        transform: none;
    }
}

@media (max-width: 768px) {
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .wizard-questions__nav {
        flex-direction: column-reverse;
    }

    .wizard-questions__nav-btn {
        width: 100%;
        justify-content: center;
    }
}


body.wizard-flow-active:not(.wizard-questions-active) .wizard {
    padding-bottom: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wizard-flow__body {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: visible;
    padding: 0 var(--space-lg) var(--space-lg);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: clamp(2rem, 6vw, 4rem);
}

.wizard-flow__body--questions {
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
}

.wizard-flow__body--questions .wizard-questions__panel {
    flex: 0 1 520px;
    max-width: 520px;
    width: 100%;
    align-self: flex-start;
    min-height: 0;
    max-height: none;
    overflow: visible;
}

.wizard-flow__body--questions .wizard-questions__previews {
    max-height: min(100%, calc(100vh - 20rem));
    overflow: hidden;
}


@media (min-width: 1024px) {


    .wizard-flow__body--questions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        align-items: stretch;
        align-content: stretch;
        column-gap: clamp(2rem, 6vw, 4rem);
        min-height: 0;
    }

    .wizard-flow__body--questions .wizard-questions__panel {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        align-self: start;
        display: flex;
        flex-direction: column;
        min-height: 0;
        width: 100%;
        max-width: 520px;
    }

    .wizard-flow__body--questions .wizard-questions__progress-wrap,
    .wizard-flow__body--questions .wizard-questions__nav {
        flex: 0 0 auto;
    }

    .wizard-flow__body--questions .wizard__planner-panel {
        flex: 0 1 auto;
        min-height: 0;
    }

    .wizard-flow__body--questions .wizard-questions__previews {
        grid-column: 2;
        grid-row: 1;
        justify-self: stretch;
        align-self: stretch;
        width: 100%;
        max-width: none;
        max-height: none;
        overflow: hidden;
        contain: size;
    }

    .wizard-flow__body--questions .wizard-questions__previews:has(.wizard__checkpoint-preview) {
        justify-self: stretch;
        align-self: stretch;
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        max-height: 100%;
        overflow: visible;
    }

}

.wizard-questions__disclaimer {
    flex: 0 0 auto;
    width: 100%;
    margin: var(--space-md) 0;
    text-align: center;
    color: var(--text-secondary);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
}


.wizard-q + .wizard-q {
    padding-top: 0;
}

.wizard-error-toast {
    background: var(--accent-primary);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-sm);
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.wizard-error-toast__retry {
    margin-left: var(--space-md);
    padding: 2px var(--space-md);
    border: 1px solid currentColor;
    border-radius: var(--radius-md);
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.wizard-success-toast {
    background: var(--success, #16a34a);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-sm);
    font-weight: 500;
    animation: slideDown 0.3s ease;
}
.dropup {
    position: relative;
    z-index: 50;
}

.dropup-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    padding: 10px 14px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    border: 1px solid var(--surface-extra);
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    cursor: pointer;
    text-decoration: none;
}

.dropup-trigger:hover {
    background-color: var(--bg-tertiary);
    text-decoration: none;
}

.dropup-trigger.active {
    background-color: var(--border-subtle);
}

.dropup-trigger.active:hover {
    background-color: var(--bg-tertiary);
}

.dropup-trigger:focus-visible,
.dropup-panel li a:focus-visible,
.dropup-panel li button:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.dropup-flag {
    width: 1.25em;
    height: 1.25em;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.dropup-caret {
    font-size: 0.85em;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

button.dropup-trigger {
    appearance: none;
}

.dropup-trigger.active .dropup-caret {
    transform: rotate(180deg);
}

.dropup-panel {
    position: absolute;
    left: 0;
    bottom: 100%;
    margin-bottom: 8px;
    box-sizing: border-box;
    min-width: 200px;
    max-width: calc(100vw - 32px);
    max-height: min(60vh, 420px);
    overflow: hidden auto;
    padding: 2px 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    box-shadow: 0 20px 24px -4px rgba(10, 13, 18, 0.08), 0 8px 8px -4px rgba(10, 13, 18, 0.03);
    text-align: left;
    z-index: 51;
    display: none;
}

.dropup-trigger.active + .dropup-panel {
    display: block;
}

.dropup-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropup-panel li {
    display: flex;
    margin: 0;
}

.dropup-panel li form {
    display: flex;
    width: 100%;
    margin: 0;
}

.dropup-panel li a,
.dropup-panel li button {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    margin: 2px 0;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: var(--text-tertiary);
    text-decoration: none;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.dropup-panel li a .dropup-flag,
.dropup-panel li button .dropup-flag {
    margin-right: 10px;
}

.dropup-panel li.active a,
.dropup-panel li.active button {
    background: var(--bg-quaternary);
}

.dropup-panel li a:hover,
.dropup-panel li button:hover {
    background: var(--bg-tertiary);
}

.wizard-session {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 80;
}

.wizard-session .dropup-panel {
    top: 100%;
    bottom: auto;
    left: auto;
    right: 0;
    margin-top: 8px;
    margin-bottom: 0;
}

.wizard-session .dropup-trigger.active .dropup-caret {
    transform: rotate(180deg);
}

@media (max-width: 480px) {
    .dropup-panel {
        min-width: 180px;
    }
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


@media (prefers-reduced-motion: reduce) {
    .wizard__generating-logo,
    .wizard__generating-title,
    .wizard__generating-sub {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .wizard-prompt-card__glow {
        animation: none;
        background: linear-gradient(
            91deg,
            color-mix(in srgb, var(--surface-brand-primary) 20%, transparent) 0%,
            color-mix(in srgb, var(--purple-600) 20%, transparent) 100%
        );
    }
}


.wizard-flow__body--palette {
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
}

.wizard-flow__body--palette .wizard-palette-panel {
    flex: 0 1 560px;
    max-width: 560px;
    width: 100%;
    align-self: center;
}

.wizard-flow__body--palette .wizard-questions__previews {
    max-height: min(100%, calc(100vh - 20rem));
    overflow: hidden;
}

.wizard-brand-logo-step .wizard-brand-upload-dropzone {
    min-height: 200px;
    height: auto;
}

.wizard-brand-substep-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}


.wizard-brand-palette-step {
    display: flex;
    flex-direction: column;
    gap: 20px;
}




.wizard-brand-mode-tabs {
    display: flex;
    gap: 10px;
    width: 100%;
}

.wizard-brand-mode-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: var(--bg-card);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: border-color 0.15s ease;
}

.wizard-brand-mode-tab:hover {
    border-color: var(--text-muted);
}

.wizard-brand-mode-tab.is-active {
    border: 1.5px solid var(--text-muted);
    padding: 7.5px;
}

.wizard-brand-mode-tab:disabled,
.wizard-brand-mode-tab.is-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.wizard-brand-mode-tab:disabled:hover,
.wizard-brand-mode-tab.is-disabled:hover {
    border-color: var(--border-subtle);
}

.wizard-brand-mode-tab__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    background: var(--surface-light);
    border-radius: 8px;
    padding: 8px 10px;
}

.wizard-brand-mode-tab.is-active .wizard-brand-mode-tab__inner {
    background: var(--surface-primary);
}

.wizard-brand-mode-tab__icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    padding: 5px;
    box-sizing: border-box;
    background: var(--bg-quaternary);
}

.wizard-brand-mode-tab__icon {
    font-size: 20px;
    line-height: 1;
    color: var(--text-muted);
}

.wizard-brand-mode-tab__label {
    flex: 1 1 auto;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-strong);
    text-align: left;
}

.wizard-brand-logo-step__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wizard-brand-text-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 105px;
    padding: 35px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-card);
}

.wizard-brand-text-preview__name {
    display: block;
    margin: 0;
    width: 100%;
    max-width: 100%;
    padding: 4px 8px;
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    line-height: 1.2;
    color: var(--text-primary);
    text-align: center;
    word-break: break-word;
}

.wizard-brand-name-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wizard-brand-name-panel__group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wizard-brand-name-panel__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
}

.wizard-brand-font-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.wizard-brand-font-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 16px;
    border: 1.5px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    font: inherit;
    text-align: center;
}

.wizard-brand-font-card:hover {
    border-color: var(--text-muted);
}

.wizard-brand-font-card.is-selected {
    border-color: var(--accent-primary);
}

.wizard-brand-font-card__sample {
    font-size: 2.375rem;
    line-height: normal;
    color: var(--text-primary);
    white-space: nowrap;
}

.wizard-brand-font-card__divider {
    width: 60px;
    height: 1px;
    background: var(--border-subtle);
}

.wizard-brand-font-card__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.wizard-brand-font-card__name {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-secondary);
}

.wizard-brand-font-card__mood {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.wizard-brand-font-card__check {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: var(--white);
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
}

@media (max-width: 640px) {
    .wizard-brand-font-grid {
        grid-template-columns: 1fr;
    }
}

.wizard-brand-upload-panel__box {
    min-height: 200px;
    border: 2px dashed var(--text-muted);
    border-radius: 6px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.wizard-brand-upload-dropzone {
    position: relative;
    width: 100%;
    min-height: 200px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 2px dashed var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease;
}

.wizard-brand-upload-dropzone > *:not(.wizard-brand-upload-dropzone__input) {
    pointer-events: none;
}

.wizard-brand-upload-dropzone:hover,
.wizard-brand-upload-dropzone.is-dragging {
    background: var(--bg-primary);
}

.wizard-brand-upload-dropzone__icon-halo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-primary);
}

.wizard-brand-upload-dropzone:hover .wizard-brand-upload-dropzone__icon-halo,
.wizard-brand-upload-dropzone.is-dragging .wizard-brand-upload-dropzone__icon-halo {
    background: var(--bg-primary);
}

.wizard-brand-upload-dropzone__icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.wizard-brand-upload-dropzone:hover .wizard-brand-upload-dropzone__icon-circle,
.wizard-brand-upload-dropzone.is-dragging .wizard-brand-upload-dropzone__icon-circle {
    background: var(--bg-tertiary);
}

.wizard-brand-upload-dropzone__icon-circle svg[data-icon] {
    width: 20px;
    height: 20px;
    line-height: 1;
    color: var(--text-secondary);
}

.wizard-brand-upload-dropzone__line {
    display: block;
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.wizard-brand-upload-dropzone__link {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wizard-brand-upload-dropzone__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
}

.wizard-brand-upload-panel__box .wizard-palette-preview--compact {
    border: none;
    background: transparent;
    padding: 0;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.wizard-brand-upload-panel__box .wizard-palette-preview--compact .wizard-palette-preview__thumb {
    width: auto;
    height: auto;
    max-width: 164px;
    max-height: 140px;
    background: transparent;
    border: none;
    padding: 0;
}

.wizard-brand-upload-panel__box .wizard-palette-preview--compact .wizard-palette-preview__thumb img {
    max-width: 164px;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.wizard-brand-logo-step__footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 10px 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.wizard-brand-logo-step__footnote-icon {
    font-size: 14px;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .wizard-brand-mode-tabs {
        flex-direction: column;
    }
}
















.wizard-palette-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: var(--bg-secondary);
    width: 100%;
}

.wizard-palette-preview__thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: var(--bg-quaternary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.wizard-palette-preview__thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.wizard-palette-preview__meta {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wizard-palette-preview__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wizard-palette-preview__size {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.wizard-palette-preview__remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.wizard-palette-preview__remove:hover {
    background: var(--bg-quaternary);
    color: var(--text-strong);
}


.wizard-palette-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: var(--surface-bg);
    border: 1px solid var(--surface-tertiary);
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(10, 13, 18, 0.05);
    cursor: pointer;
    text-align: center;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wizard-palette-tile:hover:not(.is-selected) {
    border-color: var(--gray-300);
}

.wizard-palette-tile.is-selected {
    border-color: var(--surface-brand-primary);
    outline: 1.5px solid var(--surface-brand-primary);
    outline-offset: -1.5px;
    box-shadow: 0 1px 1px rgba(10, 13, 18, 0.05);
}

.wizard-palette-tile__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wizard-palette-tile__title {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--text-strong);
    text-transform: capitalize;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wizard-palette-tile__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.wizard-palette-tile__dots {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.wizard-palette-tile__dot {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 2px solid var(--surface-light);
    box-shadow: 0 1px 3px rgba(10, 13, 18, 0.1), 0 1px 2px rgba(10, 13, 18, 0.06);
    margin-left: -10px;
}

.wizard-palette-tile__dot:first-child {
    margin-left: 0;
}

.wizard-palette-tile__check {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--surface-brand-primary);
    color: var(--white);
    font-size: 12px;
}

.wizard-palette-tile--row {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 8px 12px;
    gap: 10px;
}

.wizard-palette-tile--row .wizard-palette-tile__dot {
    width: 26px;
    height: 26px;
    margin-left: -8px;
}

.wizard-palette-tile--row .wizard-palette-tile__copy {
    flex: 1;
    min-width: 0;
}

.wizard-palette-tile--row .wizard-palette-tile__title {
    font-size: 14px;
    line-height: 20px;
}

.wizard-palette-tile--row.is-selected {
    outline-offset: -1.5px;
}

.wizard-palette-tile__swatches {
    display: flex;
    align-items: center;
    isolation: isolate;
    height: auto;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.wizard-palette-tile__swatch {
    flex: none;
    display: block;
    width: 38px;
    height: 38px;
    position: relative;
    margin-right: -10px;
    border: 2px solid var(--surface-light);
    border-radius: 50px;
    box-shadow: 0 1px 3px rgba(10, 13, 18, 0.1), 0 1px 2px rgba(10, 13, 18, 0.06);
}

.wizard-palette-tile__swatch:last-child {
    margin-right: 0;
}

.wizard-palette-tile__swatch:nth-child(1) {
    z-index: 3;
}

.wizard-palette-tile__swatch:nth-child(2) {
    z-index: 2;
}

.wizard-palette-tile__swatch:nth-child(3) {
    z-index: 1;
}


@media (max-width: 640px) {
    .wizard-palette-content {
        height: auto;
    }
}


.wizard__step-card-inner {
    position: relative;
    min-height: inherit;
}

.wizard__soft-floor {
    color: var(--warning);
}


.wizard .wizard-q__options[data-mode="multi"] .wizard-q-option--check .wizard-q-option__control {
    border-radius: 6px;
    border: 2px solid var(--gray-300);
    background: var(--bg-secondary);
    color: transparent;
}
.wizard .wizard-q__options[data-mode="multi"] .wizard-q-option--check .wizard-q-option__control::after {
    content: none;
}
.wizard .wizard-q__options[data-mode="multi"] .wizard-q-option--check.is-selected .wizard-q-option__control {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: var(--white);
}
.wizard .wizard-q__options[data-mode="multi"] .wizard-q-option--check.is-selected .wizard-q-option__control::after {
    content: '\2713';
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.wizard .wizard-q__options[data-mode="single"] .wizard-q-option--radio .wizard-q-option__control {
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: var(--bg-secondary);
    color: transparent;
}
.wizard .wizard-q__options[data-mode="single"] .wizard-q-option--radio .wizard-q-option__control::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: background var(--transition-fast);
}
.wizard .wizard-q__options[data-mode="single"] .wizard-q-option--radio.is-selected .wizard-q-option__control {
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
}
.wizard .wizard-q__options[data-mode="single"] .wizard-q-option--radio.is-selected .wizard-q-option__control::after {
    background: var(--accent-primary);
}

.wizard .wizard-q-option--custom {
    border-style: dashed;
    color: var(--text-quaternary);
}
.wizard .wizard-q-option--custom.is-selected {
    border-style: solid;
    color: var(--text-primary);
}

.wizard .wizard__multi-additions {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px dashed var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.wizard .wizard__multi-additions-prompt {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.wizard .wizard__multi-additions-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.4;
    color: var(--text-strong);
    background: var(--bg-secondary);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.wizard .wizard__multi-additions-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(226, 1, 61, 0.10);
}
.wizard .wizard__multi-additions-input::placeholder {
    color: var(--gray-400);
}

.wizard .wizard__multi-additions-add {
    flex: 0 0 auto;
    padding: 0 var(--space-md);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-strong);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}
.wizard .wizard__multi-additions-add:not(:disabled):hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
.wizard .wizard__multi-additions-add:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wizard .wizard__multi-additions-error {
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: 1.4;
    color: var(--accent-primary);
}

.wizard .wizard__multi-additions-error.hidden {
    display: none;
}


.wizard__checkpoint-heading {
    display: flex;
    flex-direction: column;
}

.wizard__checkpoint-summary-title {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    color: var(--text-strong, #1c1c1c);
    line-height: 38px;
}

.wizard__checkpoint-summary-subtitle {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-tertiary);
    line-height: 24px;
}

.wizard__checkpoint-card {
    padding: 18px;
    border: 1.5px solid var(--surface-brand-primary);
    border-radius: 16px;
    background: var(--surface-bg);
    box-shadow: var(--shadow-xs, var(--shadow-sm));
}

.wizard__checkpoint-card-name-inline {
    font-weight: 500;
    text-decoration: underline;
    text-decoration-skip-ink: none;
}

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

.wizard__checkpoint-card-star {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.wizard__checkpoint-card-name {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: var(--text-strong, #1c1c1c);
}

.wizard__checkpoint-card-text {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--text-body);
}















.wizard__checkpoint-revise-field {
    position: relative;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    padding: 14px 14px 30px;
}

.wizard__checkpoint-revise-input {
    width: 100%;
    min-height: 100px;
    border: none;
    outline: none;
    resize: vertical;
    background: transparent;
    padding: 0;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--text-strong);
}

.wizard__checkpoint-revise-input::placeholder {
    color: var(--text-muted);
}

.wizard__checkpoint-revise-count {
    position: absolute;
    right: 14px;
    bottom: 10px;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: 1;
    pointer-events: none;
}



.wizard__checkpoint-preview {
    width: 100%;
    height: 100%;
    min-height: 0;
    gap: 32px;
}

.wizard__checkpoint-preview-box {
    position: relative;
    width: min(100%, 528px);
    flex: 1 1 auto;
    min-height: 280px;
    max-height: min(70%, 560px);
    aspect-ratio: 480 / 340;
    overflow: visible;
}

.wizard__checkpoint-preview-glow {
    position: absolute;
    top: 18%;
    left: 18%;
    width: 64%;
    height: 64%;
    background: radial-gradient(
        circle,
        color-mix(in srgb, var(--cp-primary, var(--surface-brand-primary)) 26%, transparent) 0%,
        transparent 70%
    );
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
    animation: wizard-checkpoint-glow-pulse 6s ease-in-out infinite;
}

.wizard__checkpoint-preview-cluster {
    position: absolute;
    inset: 0;
    z-index: 1;
    animation: wizard-checkpoint-cluster-in 0.6s ease-out;
}

.wizard__checkpoint-preview-window {
    position: absolute;
    display: flex;
    flex-direction: column;
    background: var(--surface-bg);
    border: 1px solid var(--surface-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 8px 8px -4px color-mix(in srgb, var(--cp-primary, var(--surface-brand-primary)) 10%, rgba(16, 24, 40, 0.08)),
        0 20px 24px -6px color-mix(in srgb, var(--cp-primary, var(--surface-brand-primary)) 16%, rgba(16, 24, 40, 0.08));
    animation: wizard-checkpoint-frame-float 4.8s ease-in-out infinite;
}

.wizard__checkpoint-preview-window--back {
    left: 8.3%;
    top: 11.8%;
    width: 87.7%;
    height: 79.1%;
    z-index: 1;
}

.wizard__checkpoint-preview-window--top-right {
    right: -1.9%;
    top: -5.3%;
    width: 39.6%;
    height: 29.4%;
    z-index: 2;
    border-radius: 10px;
    animation-name: wizard-checkpoint-frame-float-alt;
    animation-duration: 4.2s;
    animation-delay: 0.4s;
}

.wizard__checkpoint-preview-window--bottom-left {
    left: -4.4%;
    bottom: -2.1%;
    width: 49.4%;
    height: 38.2%;
    z-index: 2;
    border-radius: 10px;
    animation-name: wizard-checkpoint-frame-float-soft;
    animation-duration: 5.6s;
    animation-delay: 0.8s;
}

.wizard__checkpoint-preview-titlebar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--surface-secondary);
    flex-shrink: 0;
}

.wizard__checkpoint-preview-titlebar--sm {
    padding: 6px 8px;
}

.wizard__checkpoint-preview-dot,
.wizard__checkpoint-preview-ellipse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--surface-tertiary);
    flex-shrink: 0;
}

.wizard__checkpoint-preview-address {
    height: 8px;
    flex: 1;
    max-width: 60%;
    margin-left: 4px;
    border-radius: 4px;
    background: var(--surface-secondary);
}

.wizard__checkpoint-preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    min-height: 0;
}

.wizard__checkpoint-preview-content--end {
    align-items: flex-end;
}

.wizard__checkpoint-preview-line {
    display: block;
    height: 4px;
    width: 70%;
    border-radius: 3px;
    background: var(--surface-secondary);
}

.wizard__checkpoint-preview-line--title {
    width: 30%;
    height: 7px;
    background: var(--surface-black);
}

.wizard__checkpoint-preview-line--short {
    width: 50%;
}

.wizard__checkpoint-preview-line--tiny {
    width: 35%;
}

.wizard__checkpoint-preview-block {
    border-radius: 6px;
    flex-shrink: 0;
}

.wizard__checkpoint-preview-block--primary {
    height: 40%;
    width: 100%;
    background: var(--cp-primary, var(--surface-brand-primary));
}

.wizard__checkpoint-preview-block--secondary {
    background: var(--cp-secondary, var(--purple-600));
}

.wizard__checkpoint-preview-block--accent {
    background: var(--cp-accent, var(--warning));
}

.wizard__checkpoint-preview-block--sm {
    height: 30px;
}

.wizard__checkpoint-preview-cardrow {
    display: flex;
    gap: 4px;
}

.wizard__checkpoint-preview-card {
    flex: 1;
    height: 22px;
    border-radius: 5px;
    background: var(--surface-secondary);
}

.wizard__checkpoint-preview-metarow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.wizard__checkpoint-preview-pip {
    width: 18px;
    height: 8px;
    border: 1px solid var(--surface-tertiary);
    border-radius: 3px;
    flex-shrink: 0;
}

.wizard__checkpoint-preview-swatch-pill {
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    padding: 6px 16px;
    background: var(--cp-background, var(--surface-bg));
    border: 1px solid var(--surface-primary);
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    z-index: 3;
    animation: wizard-checkpoint-frame-float 4.8s ease-in-out infinite;
    animation-delay: 0.2s;
}

@keyframes wizard-checkpoint-frame-float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(-0.4deg);
    }
}

@keyframes wizard-checkpoint-frame-float-alt {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-7px) scale(1.015);
    }
}

@keyframes wizard-checkpoint-frame-float-soft {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-4px) rotate(0.6deg);
    }
}

.wizard__checkpoint-preview-swatch-pill {
    animation-name: wizard-checkpoint-pill-float;
}

@keyframes wizard-checkpoint-pill-float {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes wizard-checkpoint-glow-pulse {
    0%,
    100% {
        opacity: 0.85;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

@keyframes wizard-checkpoint-cluster-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wizard__checkpoint-preview-build {
    animation: wizard-checkpoint-build-in 9s ease-in-out infinite;
}

@keyframes wizard-checkpoint-build-in {
    0%,
    100% {
        opacity: 0;
        transform: translateY(6px);
    }
    8%,
    82% {
        opacity: 1;
        transform: translateY(0);
    }
    92% {
        opacity: 0;
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wizard__checkpoint-preview-window,
    .wizard__checkpoint-preview-swatch-pill,
    .wizard__checkpoint-preview-glow,
    .wizard__checkpoint-preview-cluster,
    .wizard__checkpoint-preview-build {
        animation: none;
        transform: none;
    }

    .wizard__checkpoint-preview-build {
        opacity: 1;
    }
}

.wizard__checkpoint-preview-heading {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    line-height: 38px;
    color: var(--text-strong, #1c1c1c);
    text-align: center;
}

.wizard__checkpoint-preview-hint {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-body);
    text-align: center;
    max-width: 361px;
    line-height: 20px;
}

.wizard .wizard-questions__nav-btn--next.wizard-questions__nav-btn--generate {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--white);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.wizard .wizard-questions__nav-btn--next.wizard-questions__nav-btn--generate:hover {
    background: var(--accent-primary-hover);
    border-color: var(--accent-primary-hover);
}

.wizard .wizard-questions__nav-btn--next.wizard-questions__nav-btn--generate svg {
    display: none;
}

.wizard__cta-star {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.wizard .wizard-questions__nav-btn--next.wizard-questions__nav-btn--generate .wizard__cta-star {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}


.wizard .wizard__chip-followup {
    display: block;
    margin: var(--space-xs) 0 var(--space-sm) 51px;
}

.wizard .wizard__chip-followup-prompt {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.wizard .wizard__chip-followup-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.4;
    color: var(--text-strong);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(226, 1, 61, 0.10);
    outline: none;
}

.wizard .wizard__chip-followup-input::placeholder {
    color: var(--gray-400);
}


.wizard__resume-banner {
    margin: var(--space-lg) auto 0;
    max-width: 720px;
    width: calc(100% - var(--space-lg) * 2);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
    justify-content: space-between;
    display: none;
}

.wizard__resume-banner-text {
    flex: 1 1 280px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}


body.wizard-prompt-active .wizard__landing {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

body.wizard-prompt-active .wizard__landing .wizard-prompt-landing {
    flex: 1 1 auto;
    width: 100%;
}

body.wizard-questions-active .wizard__step .wizard-flow {
    flex: 1 0 auto;
    width: 100%;
    min-height: 0;
    overflow: visible;
}

body.wizard-questions-active .wizard__step {
    width: 100%;
    flex: 1 0 auto;
    min-height: 0;
    overflow: visible;
}

@media (min-width: 1024px) {
    body.wizard-questions-active .wizard__step {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    body.wizard-questions-active .wizard__step .wizard-flow {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    body.wizard-questions-active .wizard__step .wizard-flow__body--questions,
    body.wizard-questions-active .wizard__step .wizard-flow__body--palette {
        flex: 1 1 auto;
        min-height: 0;
        padding-bottom: 0;
    }
}

.wizard__step-logo {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-bottom: var(--space-xl);
    text-decoration: none;
}

.wizard__step-logo-image {
    display: block;
    height: 3rem;
    width: auto;
}

.wizard .wizard-questions__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: var(--space-xl);
    gap: var(--space-md);
}

.wizard .wizard-questions__nav-btn--next {
    border: 1px solid var(--black);
    background: var(--black);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.wizard .wizard-questions__nav-btn--next:hover {
    background: var(--black);
    border-color: var(--black);
}

.wizard .wizard-questions__nav-btn--next:disabled:not(.is-loading),
.wizard .wizard-questions__nav-btn--next:disabled:not(.is-loading):hover {
    border-color: var(--gray-300);
    background: var(--gray-300);
    color: var(--white);
}

.wizard .wizard-questions__nav-btn--next.is-loading {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
    opacity: 0.85;
    cursor: wait;
    pointer-events: none;
}

.wizard .wizard-questions__nav-btn--next.is-loading svg {
    display: none;
}

.wizard .wizard-questions__nav-btn--back.is-loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.wizard .wizard-questions__nav-btn--back.is-loading:disabled {
    opacity: 0.7;
    cursor: wait;
}

.wizard .wizard-questions__nav-btn--back.is-loading svg {
    opacity: 0.4;
}

.wizard .wizard-questions__nav-btn--back.is-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    border: 2px solid var(--text-strong);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

.wizard .wizard-questions__nav-btn--next.is-loading::after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--bg-secondary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    flex-shrink: 0;
}

.wizard__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}

.wizard__btn--primary {
    background: var(--accent-primary);
    color: var(--white);
}

.wizard__btn--ghost {
    background: transparent;
    border-color: var(--border-default);
    color: var(--text-strong);
}


.wizard__widget-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin: 0 0 var(--space-md);
    color: var(--text-primary);
}

.wizard-import-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    max-width: 100%;
    margin-bottom: var(--space-md);
    padding: 6px 12px 6px 8px;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: var(--bg-input, var(--white));
    font-size: var(--font-size-xs);
    line-height: 1.4;
    color: var(--text-secondary);
}

.wizard-import-status.hidden {
    display: none;
}

.wizard-import-status__mark {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.wizard-import-status[data-kind="reading"] .wizard-import-status__mark {
    border: 2px solid var(--accent-primary);
    border-right-color: transparent;
    animation: spin 0.8s linear infinite;
}

.wizard-import-status[data-kind="done"] .wizard-import-status__mark {
    background: var(--success);
}

.wizard-import-status[data-kind="failed"] .wizard-import-status__mark {
    background: var(--text-tertiary);
}

.wizard-import-status__text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.wizard-bring__hint {
    margin: 0 0 var(--space-lg);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--text-secondary);
}

.wizard-bring__tiles {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--bg-input, var(--white));
    box-shadow: var(--shadow-sm);
}

.wizard-social-row {
    position: relative;
    background: transparent;
    transition: background-color var(--transition-fast);
}

.wizard-social-row + .wizard-social-row {
    border-top: 1px solid var(--border-default);
}

.wizard-social-row::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--accent-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.wizard-social-row:focus-within {
    background: var(--bg-primary);
}

.wizard-social-row:focus-within::before {
    opacity: 1;
}

.wizard-social-row__main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 10px 10px 14px;
}

.wizard-social-row__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: background-color 200ms ease, color 200ms ease;
}

.wizard-social-row__icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.wizard-social-row__icon--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #ffffff; }
.wizard-social-row__icon--facebook { background: #1877f2; color: #ffffff; }
.wizard-social-row__icon--linkedin { background: #0a66c2; color: #ffffff; }
.wizard-social-row__icon--youtube { background: #ff0000; color: #ffffff; }
.wizard-social-row__icon--pinterest { background: #e60023; color: #ffffff; }
.wizard-social-row__icon--whatsapp { background: #25d366; color: #ffffff; }
.wizard-social-row__icon--snapchat { background: #fffc00; color: #000000; }
.wizard-social-row__icon--x,
.wizard-social-row__icon--tiktok,
.wizard-social-row__icon--threads,
.wizard-social-row__icon--other { background: #000000; color: #ffffff; }
.wizard-social-row__icon--link { color: var(--text-muted); }

.wizard-social-row:not(.is-valid) .wizard-social-row__icon {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.wizard-social-row__field {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: var(--font-size-base);
    cursor: text;
}

.wizard-social-row__name {
    font-size: var(--font-size-xs);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-secondary);
}

.wizard-social-row__value {
    display: flex;
    align-items: baseline;
    min-width: 0;
    overflow: hidden;
}

.wizard-social-row__value .wizard-social-row__input {
    flex: 1 0 6ch;
}

.wizard-social-row__prefix {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-muted);
    white-space: nowrap;
}

.wizard-social-row--url .wizard-social-row__prefix {
    display: none;
}

.wizard-social-row__input,
.wizard-social-row__label-input,
.wizard-bring__paste-input {
    flex: 1;
    min-width: 0;
    padding: 2px 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 500;
    color: var(--text-strong);
    outline: none;
}

.wizard-social-row__input::placeholder,
.wizard-social-row__label-input::placeholder,
.wizard-bring__paste-input::placeholder {
    font-weight: 400;
    color: var(--text-muted);
    opacity: 1;
}

.wizard-social-row--other .wizard-social-row__value {
    flex-direction: column;
    align-items: stretch;
}

.wizard-social-row--other .wizard-social-row__value > * {
    flex: none;
}

.wizard-social-row--other .wizard-social-row__label-input + .wizard-social-row__input {
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--text-secondary);
}

.wizard-social-row__status {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--success);
    animation: wizard-social-pop 220ms ease-out;
}

@keyframes wizard-social-pop {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}

.wizard-social-row__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.wizard-social-row__remove:hover,
.wizard-social-row__remove:focus-visible {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

@media (max-width: 560px) {
    .wizard-social-row__main {
        gap: 10px;
        padding: 10px 6px 10px 12px;
    }

    .wizard-social-row__icon {
        width: 32px;
        height: 32px;
    }

    .wizard-social-row__field {
        font-size: 15px;
    }

    .wizard-social-row__status {
        display: none;
    }

    .wizard-social-row__notice {
        padding-left: 54px;
    }
}

.wizard-social-row--fixed:not(.has-value) .wizard-social-row__remove {
    display: none;
}

.wizard-social-row__notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs) var(--space-sm);
    padding: 0 14px 12px 62px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.wizard-social-row__move {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: underline;
    cursor: pointer;
}

.wizard-social-row__error {
    margin: 0;
    padding: 0 14px 12px 62px;
    font-size: var(--font-size-sm);
    color: var(--error, #ef4444);
    line-height: 1.5;
}

.wizard-social-row__status[hidden],
.wizard-social-row__notice[hidden],
.wizard-social-row__error[hidden] {
    display: none;
}

.wizard-bring__paste {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: var(--space-sm);
    padding: 8px 8px 8px 14px;
    border: 1px dashed var(--surface-extra, var(--border-subtle));
    border-radius: var(--radius-lg);
    background: transparent;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.wizard-bring__paste:hover {
    background: var(--bg-input, var(--white));
}

.wizard-bring__paste:focus-within {
    border-style: solid;
    border-color: var(--accent-primary);
    background: var(--bg-input, var(--white));
}

.wizard-bring__paste .wizard-social-row__icon {
    background: transparent;
}

.wizard-bring__paste-add {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    color: var(--white);
    font: inherit;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.wizard-bring__paste-add:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: default;
}

.wizard-bring__soon {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin: var(--space-md) 0 0;
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.wizard-bring__soon svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.wizard-bring__soon-badge {
    padding: 1px 8px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-secondary);
}

.wizard__hours-card {
    position: relative;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.wizard__hours-same-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding: 14px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.wizard__hours-same-card--off,
.wizard__hours-same-card--on {
    border-color: var(--border-subtle);
    background: var(--bg-input);
    box-shadow: none;
}

.wizard__hours-same-card--off .wizard__hours-same-text span {
    color: var(--text-muted);
}

.wizard__hours-same-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wizard__hours-same-text strong {
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 20px;
    color: var(--text-secondary);
}

.wizard__hours-same-text span {
    font-size: var(--font-size-sm);
    font-weight: 400;
    line-height: 20px;
    color: var(--text-muted);
}

.wizard__hours-card .toggle .toggle-slider {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-tertiary);
}

.wizard__hours-card .toggle .toggle-slider::before {
    background: var(--bg-input);
}

.wizard__hours-card .toggle input:checked + .toggle-slider {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.wizard__hours-card .toggle input:checked + .toggle-slider::before {
    background: var(--bg-input);
}

.wizard__hours-section-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 20px;
    color: var(--text-secondary);
}

.wizard__hours-row {
    display: grid;
    grid-template-columns: minmax(80px, auto) 1fr auto;
    gap: var(--space-md);
    align-items: center;
    font-size: var(--font-size-sm);
    line-height: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-default);
}

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

.wizard__hours-day {
    font-size: var(--font-size-sm);
    font-weight: 400;
    line-height: 20px;
    color: var(--text-secondary);
}

.wizard__hours-times {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wizard__hours-sep {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    line-height: 20px;
    user-select: none;
}

.wizard__hours-time-field {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    max-width: 148px;
}

.wizard__hours-open,
.wizard__hours-close {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 400;
    line-height: 20px;
    font-family: inherit;
    color: var(--text-secondary);
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
}

.wizard__hours-row:not(.wizard__hours-row--closed) .wizard__hours-open,
.wizard__hours-row:not(.wizard__hours-row--closed) .wizard__hours-close {
    background: var(--bg-input);
}

.wizard__hours-open:disabled,
.wizard__hours-close:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wizard__hours-open-label {
    font-size: var(--font-size-sm);
    font-weight: 400;
    line-height: 20px;
    color: var(--text-strong);
    user-select: none;
}

.wizard__hours-row--closed .wizard__hours-day {
    color: var(--text-muted);
}

.wizard__hours-row--closed .wizard__hours-open-check,
.wizard__hours-row--closed .wizard__hours-open-label {
    opacity: 1;
}

.wizard__hours-row--closed .wizard__hours-open-label {
    color: var(--text-strong);
}

.wizard__hours-row--closed .wizard__hours-open,
.wizard__hours-row--closed .wizard__hours-close {
    color: var(--text-muted);
    border-color: var(--border-default);
    background: transparent;
    opacity: 0.7;
}

.wizard__hours-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: var(--space-lg) 0 0;
    padding: 0;
    text-align: center;
}

.wizard__hours-footnote-icon {
    flex-shrink: 0;
    font-size: var(--font-size-sm);
    line-height: 20px;
    color: var(--text-muted);
}

.wizard__hours-footnote-text {
    font-size: var(--font-size-sm);
    font-weight: 400;
    line-height: 20px;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .wizard__hours-same-card {
        flex-direction: column;
        align-items: stretch;
    }

    .wizard__hours-same-toggle {
        align-self: flex-end;
    }

    .wizard__hours-row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        padding: var(--space-md) 0;
    }

    .wizard__hours-time-field {
        max-width: none;
    }
}


.wizard__brand-hint {
    margin: 0 0 var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.wizard__info-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: var(--space-sm) 0 var(--space-md);
}

.wizard__info-alert-icon {
    flex: 0 0 auto;
    margin-top: 1px;
    line-height: 1;
    color: var(--info);
}

.wizard__info-alert-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.wizard__info-alert-text {
    flex: 1 1 auto;
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.wizard__widget-error {
    margin: var(--space-sm) 0 0;
    font-size: var(--font-size-sm);
    color: var(--error, #ef4444);
    line-height: 1.5;
}

.wizard__widget-error[hidden] {
    display: none;
}

.wizard-q-text-input--invalid {
    border-color: var(--error, #ef4444);
}

.wizard__widget-title.hidden + .wizard__brand-hint {
    margin-top: calc(6px - var(--space-lg));
}

.wizard__brand-mock {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wizard__brand-mock-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-subtle);
}

.wizard__brand-mock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gray-300);
}

.wizard__brand-mock-pill {
    margin-left: auto;
    width: 40px;
    height: 12px;
    border-radius: 999px;
    background: var(--gray-300);
}

.wizard__brand-mock-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.wizard__brand-mock-heading {
    width: 55%;
    height: 13px;
    border-radius: 4px;
    opacity: 0.92;
}

.wizard__brand-mock-line {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    opacity: 0.4;
}

.wizard__brand-mock-line--short {
    width: 38%;
}

.wizard__brand-mock-card {
    margin-top: 6px;
    padding: 12px;
    border-radius: var(--radius-md);
    display: flex;
}

.wizard__brand-mock-btn {
    width: 72px;
    height: 22px;
    border-radius: 6px;
}

.wizard__brand-note {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--warning);
    background: var(--bg-primary);
    border: 1px solid var(--warning);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    line-height: 1.45;
}

body.wizard-flow-active .wizard__generating {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl);
    gap: var(--space-lg);
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(192, 192, 192, 0.15) 100%), var(--bg-primary);
}

.wizard__generating {
    display: none;
}

.wizard__generating-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
}

.wizard__generating-logo {
    width: 72px;
    height: auto;
    object-fit: contain;
}

.wizard__generating-logo--user {
    max-width: 160px;
    max-height: 96px;
    width: auto;
    animation: wizard-logo-pulse 2s ease-in-out infinite;
}

.wizard__generating-logo--default {
    animation: wizard-logo-pulse 2s ease-in-out infinite;
}

@keyframes wizard-logo-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.04); opacity: 0.92; }
}

@media (min-width: 1024px) {
    body.wizard-questions-active .wizard__step .wizard-flow__body--palette {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        align-items: stretch;
        align-content: stretch;
        column-gap: clamp(2rem, 6vw, 4rem);
        overflow: hidden;
        min-height: 0;
        height: 100%;
    }

    body.wizard-questions-active .wizard__step .wizard-flow__body--palette .wizard-questions__panel {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        align-self: start;
        max-width: 560px;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    body.wizard-questions-active .wizard__step .wizard-flow__body--palette .wizard-questions__previews {
        grid-column: 2;
        grid-row: 1;
        justify-self: stretch;
        align-self: stretch;
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        overflow: hidden;
    }

}

.wizard__generating-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    margin: 0;
    color: var(--black);
    letter-spacing: -0.02em;
}

.wizard__generating-sub {
    color: var(--text-secondary);
    margin: 0;
    font-size: var(--font-size-base);
    max-width: 28rem;
    line-height: 1.5;
}


.wizard__spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: wizard-spin 0.8s linear infinite;
}

.wizard__spinner--lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

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

.wizard__save-indicator {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    display: none;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    z-index: 10;
}

.wizard__save-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-default);
}


.wizard__checkpoint--saving input:disabled,
.wizard__checkpoint--saving textarea:disabled,
.wizard__checkpoint--saving button:disabled,
.wizard-checkpoint-overlay.wizard__checkpoint--saving input:disabled,
.wizard-checkpoint-overlay.wizard__checkpoint--saving textarea:disabled,
.wizard-checkpoint-overlay.wizard__checkpoint--saving button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.wizard__checkpoint--saving .wizard-checkpoint-pill--loading {
    opacity: 1;
}

.wizard-checkpoint-section {
    padding: 0;
}

.wizard-checkpoint-section--extra .wizard-checkpoint-section__title {
    display: flex;
    align-items: center;
    gap: 6px;
    width: auto;
    margin: 0;
    padding: 10px 16px 10px 4px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-tertiary);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
}

.wizard-checkpoint-section--extra .wizard-checkpoint-section__title:hover {
    background: transparent;
    color: var(--text-tertiary);
    text-decoration: none;
}

.wizard-checkpoint-section--extra .wizard-checkpoint-section__title:hover .wizard-checkpoint-section__title-label {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wizard-checkpoint-section--extra .wizard-checkpoint-section__title .wizard-checkpoint-pill__edit {
    opacity: 1;
    font-size: 18px;
}

.wizard-checkpoint-section--extra {
    padding-top: 0;
    border-top: none;
}

.wizard-checkpoint-section--extra .wizard-checkpoint-section__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.wizard__checkpoint [hidden] {
    display: none;
}

.wizard-checkpoint-section--extra .wizard-checkpoint-section__body[hidden] {
    display: none;
}

.wizard__checkpoint--editable > .wizard__checkpoint-card {
    margin-top: 24px;
}

.wizard__checkpoint--editable > .wizard-checkpoint-summary-card {
    margin-top: 20px;
}

.wizard-checkpoint-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.wizard-checkpoint-more {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wizard-checkpoint-footer .wizard-checkpoint-section--extra .wizard-checkpoint-section__title {
    padding-top: 0;
}

.wizard-migration-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--surface-tertiary);
    border-radius: var(--radius-lg);
    background: var(--surface-bg);
}

.wizard-migration-summary__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.wizard-migration-summary__icon {
    flex-shrink: 0;
    color: var(--text-brand-primary);
}

.wizard-migration-summary__title {
    margin: 0;
    font-size: var(--font-size-md, 16px);
    font-weight: 600;
    color: var(--text-primary);
}

.wizard-migration-summary__url {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    word-break: break-all;
}

.wizard-migration-summary__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px 16px;
    margin: 0;
}

.wizard-migration-summary__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wizard-migration-summary__item dt {
    font-size: var(--font-size-xs, 12px);
    color: var(--text-tertiary);
}

.wizard-migration-summary__item dd {
    margin: 0;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.wizard-migration-summary__notice {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.wizard-migration-logo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wizard-migration-logo__label {
    font-size: var(--font-size-xs, 12px);
    color: var(--text-tertiary);
}

.wizard-migration-logo__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
}

.wizard-migration-logo__tile {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    padding: 8px;
    border: 1px solid var(--surface-tertiary);
    border-radius: var(--radius-md);
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #eef0f3 25%, transparent 25%),
        linear-gradient(-45deg, #eef0f3 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eef0f3 75%),
        linear-gradient(-45deg, transparent 75%, #eef0f3 75%);
    background-size: 12px 12px;
    background-position: 0 0, 0 6px, 6px -6px, -6px 0;
    cursor: pointer;
    font-size: var(--font-size-xs, 12px);
    color: var(--text-secondary);
}

.wizard-migration-logo__tile img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wizard-migration-logo__tile--none {
    background: var(--surface-bg);
}

.wizard-migration-logo__tile[aria-checked="true"] {
    border-color: var(--text-brand-primary);
    box-shadow: 0 0 0 2px var(--text-brand-primary);
}

.wizard-migration-logo__tile:focus-visible {
    outline: 2px solid var(--text-brand-primary);
    outline-offset: 2px;
}

.wizard-migration-logo__more {
    align-self: flex-start;
}

.wizard-migration-issues summary {
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.wizard-migration-issues__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow: auto;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.wizard-migration-issues__list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wizard-migration-issues__url {
    font-size: var(--font-size-xs, 12px);
    color: var(--text-primary);
    word-break: break-all;
}

.wizard-migration-issues__reason {
    font-size: var(--font-size-xs, 12px);
    color: var(--text-tertiary);
}

.wizard-checkpoint-summary-card {
    padding: 0 4px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.wizard-checkpoint-summary-card::after {
    content: '';
    display: block;
    height: 1px;
    margin-top: 10px;
    background: var(--surface-tertiary);
}

.wizard-checkpoint-more-toggle {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 16px 10px 4px;
    border: none;
    border-radius: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--text-tertiary);
    cursor: pointer;
    box-shadow: none;
    transition: color 0.15s ease;
}

.wizard-checkpoint-more-toggle:hover {
    background: transparent;
    text-decoration: none;
}

.wizard-checkpoint-more-toggle:hover .wizard-checkpoint-more-toggle__label {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wizard-checkpoint-more-toggle__chevron {
    font-size: 14px;
    line-height: 1;
    color: var(--text-tertiary);
    transition: transform 0.2s ease;
}

.wizard-checkpoint-more-toggle[aria-expanded="true"] .wizard-checkpoint-more-toggle__chevron {
    transform: rotate(180deg);
}

.wizard-checkpoint-more-card {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    transition: grid-template-rows 0.28s ease, opacity 0.2s ease;
}

.wizard-checkpoint-more-card:not(.is-open) {
    visibility: hidden;
    max-height: 0;
}

.wizard-checkpoint-more-card.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.wizard-checkpoint-more-card__inner {
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.wizard-checkpoint-more-card.is-open .wizard-checkpoint-more-card__inner {
    min-height: auto;
    overflow: visible;
}

.wizard-checkpoint-section__body--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md) var(--space-lg);
}

@media (max-width: 640px) {
    .wizard-checkpoint-section__body--grid {
        grid-template-columns: 1fr;
    }
}

.wizard-checkpoint-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    align-items: center;
}

.wizard-checkpoint-summary-card .wizard-checkpoint-row + .wizard-checkpoint-row,
.wizard-checkpoint-summary-card .wizard-checkpoint-section + .wizard-checkpoint-section .wizard-checkpoint-row:first-child,
.wizard-checkpoint-more-card .wizard-checkpoint-row + .wizard-checkpoint-row,
.wizard-checkpoint-more-card .wizard-checkpoint-section + .wizard-checkpoint-section .wizard-checkpoint-row:first-child {
    position: relative;
    margin-top: 20px;
}

.wizard-checkpoint-summary-card .wizard-checkpoint-row + .wizard-checkpoint-row::before,
.wizard-checkpoint-summary-card .wizard-checkpoint-section + .wizard-checkpoint-section .wizard-checkpoint-row:first-child::before,
.wizard-checkpoint-more-card .wizard-checkpoint-row + .wizard-checkpoint-row::before,
.wizard-checkpoint-more-card .wizard-checkpoint-section + .wizard-checkpoint-section .wizard-checkpoint-row:first-child::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--surface-tertiary);
}

.wizard-checkpoint-row--palette {
    align-items: center;
}

.wizard-checkpoint-section__body--grid .wizard-checkpoint-row {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    align-items: start;
    align-self: start;
}

@media (max-width: 640px) {
    .wizard-checkpoint-row {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }
}

.wizard-checkpoint-row__label {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: var(--text-tertiary);
}

.wizard-checkpoint-row__note {
    margin: 6px 0 0;
}

.wizard-checkpoint-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    min-height: 0;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.25s ease, padding 0.15s ease;
}

.wizard-checkpoint-pill:hover:not(:focus-within) {
    background: #efefef;
}

.wizard-checkpoint-pill--button {
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.wizard-checkpoint-pill--readonly {
    cursor: default;
}

.wizard-checkpoint-pill:focus-within {
    background: var(--surface-bg);
    border-color: var(--surface-quaternary, #848484);
    padding: 8px 16px;
    box-shadow: 0 0 0 4px #efefef;
}

.wizard-checkpoint-pill--readonly .wizard-checkpoint-pill__edit {
    display: none;
}

.wizard-checkpoint-pill__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--text-body);
    outline: none;
    cursor: pointer;
}

.wizard-checkpoint-pill:focus-within,
.wizard-checkpoint-pill:focus-within .wizard-checkpoint-pill__input {
    cursor: text;
}

.wizard-checkpoint-pill:focus-within .wizard-checkpoint-pill__input {
    font-weight: 400;
    color: var(--text-strong, #1c1c1c);
}

.wizard-checkpoint-pill--multiline {
    align-items: flex-start;
    min-height: 96px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.wizard-checkpoint-pill--multiline .wizard-checkpoint-pill__edit,
.wizard-checkpoint-pill--multiline .wizard-checkpoint-pill__loader {
    margin-top: 2px;
}

.wizard-checkpoint-pill__textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.5;
    white-space: pre-wrap;
    field-sizing: content;
}

.wizard-checkpoint-pill__text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
    line-height: 20px;
    white-space: pre-line;
}

.wizard-checkpoint-pill__edit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
    color: var(--text-tertiary, #3f3f50);
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.wizard-checkpoint-pill__edit svg[data-icon] {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

.wizard-checkpoint-pill:hover:not(:focus-within) .wizard-checkpoint-pill__edit {
    opacity: 1;
}

.wizard-checkpoint-pill__loader {
    display: none;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: wizard-spin 0.8s linear infinite;
}

.wizard-checkpoint-pill--loading .wizard-checkpoint-pill__loader {
    display: inline-block;
}

.wizard-checkpoint-pill--loading .wizard-checkpoint-pill__edit {
    display: none;
}

.wizard-checkpoint-pill--saved {
    border-color: var(--success);
    border-style: solid;
    background: var(--success-50);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15);
}

.wizard-checkpoint-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    width: 100%;
}

.wizard-checkpoint-chips__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
    align-items: center;
    width: 100%;
    overflow: visible;
}

.wizard-checkpoint-chips__list--scroll {
    max-height: none;
    overflow: visible;
}

.wizard-checkpoint-chips__list--scroll::-webkit-scrollbar {
    width: 6px;
}

.wizard-checkpoint-chips__list--scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--flag-border);
}

.wizard-checkpoint-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 8px 4px 10px;
    border: 1px solid var(--surface-quaternary);
    border-radius: 16px;
    background: var(--surface-light);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--text-tertiary);
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.wizard-checkpoint-chip--removable {
    cursor: pointer;
}

.wizard-checkpoint-chip--removable:hover,
.wizard-checkpoint-chip--removable:hover .wizard-checkpoint-chip__title,
.wizard-checkpoint-chip--removable:hover .wizard-checkpoint-chip__remove {
    color: var(--accent-primary);
}

.wizard-checkpoint-chip--removable:hover {
    border-color: var(--accent-primary);
    background: color-mix(in srgb, var(--accent-primary) 10%, var(--surface-light));
}

.wizard-checkpoint-chip__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    white-space: normal;
    word-break: break-word;
}

.wizard-checkpoint-chip__title {
    font-weight: 500;
    line-height: 20px;
}

.wizard-checkpoint-chip--locked {
    padding-right: 12px;
    cursor: default;
}

.wizard-checkpoint-chip__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.wizard-checkpoint-chip__remove:hover {
    color: var(--accent-primary);
}

.wizard-checkpoint-chips__add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    align-self: center;
    padding: 4px 10px 4px 8px;
    border: 1px dashed var(--surface-tertiary, #d9d9d9);
    border-radius: 16px;
    background: var(--surface-light, #f9f9f9);
    appearance: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--text-body);
    cursor: pointer;
}

.wizard-checkpoint-chips__add-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    line-height: 0;
}

.wizard-checkpoint-chips__add-icon svg[data-icon] {
    width: 14px;
    height: 14px;
    display: block;
}

.wizard-checkpoint-chips__add-label {
    display: inline-flex;
    align-items: center;
    line-height: 20px;
}

.wizard-checkpoint-chips__add:hover {
    border-color: var(--surface-extra, var(--surface-quaternary));
    color: var(--text-strong);
}

.wizard-checkpoint-chips .wizard-checkpoint-pill__loader {
    position: absolute;
    top: 8px;
    right: 8px;
}

.wizard-checkpoint-chips.wizard-checkpoint-pill--loading .wizard-checkpoint-pill__loader,
.wizard-checkpoint-chips[data-checkpoint-field].wizard-checkpoint-pill--loading .wizard-checkpoint-pill__loader {
    display: inline-block;
}

.wizard-checkpoint-palette-pill {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: auto;
}

.wizard-checkpoint-palette-pill:hover:not(:focus-within) {
    border-color: var(--surface-quaternary);
}

.wizard-checkpoint-palette-pill__name {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-body);
    white-space: nowrap;
}

.wizard-checkpoint-palette-pill__swatches {
    flex: 0 0 auto;
    width: auto;
    height: auto;
}

.wizard-checkpoint-palette-pill__edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-left: auto;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.wizard-checkpoint-palette-pill:hover .wizard-checkpoint-palette-pill__edit,
.wizard-checkpoint-palette-pill[aria-expanded="true"] .wizard-checkpoint-palette-pill__edit {
    opacity: 1;
}

.wizard-checkpoint-palette-pill__edit:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-strong);
}

.wizard-checkpoint-palette-pill__edit svg[data-icon] {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.wizard-checkpoint-palette__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--surface-bg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.wizard-checkpoint-palette__dropdown:not([hidden]) {
    display: flex;
    flex-direction: column;
}

.wizard-checkpoint-palette__dropdown.is-open:not([hidden]),
.wizard-checkpoint-language__dropdown.is-open:not([hidden]) {
    animation: wizard-checkpoint-dropdown-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wizard-checkpoint-dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wizard-checkpoint-palette__dropdown.is-open:not([hidden]),
    .wizard-checkpoint-language__dropdown.is-open:not([hidden]) {
        animation: none;
    }
}


[data-checkpoint-field].wizard-checkpoint-pill--loading .wizard-checkpoint-pill__loader {
    display: inline-block;
}

.wizard-checkpoint-chips__add-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    align-self: center;
    z-index: 2;
}

.wizard-checkpoint-language__dropdown {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 200px;
    max-width: calc(100vw - 16px);
    z-index: 1100;
    max-height: min(50vh, 280px);
    overflow-y: auto;
    gap: 2px;
    padding: 6px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--surface-bg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.wizard-checkpoint-language__dropdown:not([hidden]) {
    display: flex;
    flex-direction: column;
}

.wizard-checkpoint-language__option {
    display: block;
    width: 100%;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font: inherit;
    font-size: var(--font-size-sm);
    text-align: left;
    color: var(--text-strong);
    cursor: pointer;
}

.wizard-checkpoint-language__option:hover {
    background: var(--bg-card-hover);
}

.wizard__btn--sm {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
}

[data-checkpoint-field].wizard-checkpoint-pill--saved {
    border-color: var(--success);
    border-style: solid;
    background: var(--success-50);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15);
}

.wizard-checkpoint-overlay .wizard-checkpoint-overlay__save--hours.is-loading {
    position: relative;
    cursor: wait;
    pointer-events: none;
    color: transparent;
}

.wizard-checkpoint-overlay .wizard-checkpoint-overlay__save--hours.is-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid var(--bg-secondary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.wizard-checkpoint-overlay.wizard__checkpoint--saving .wizard-checkpoint-overlay__save--hours.is-loading:disabled {
    opacity: 1;
}

.wizard-checkpoint-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.wizard-checkpoint-overlay__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.24s ease;
}

.wizard-checkpoint-overlay__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-lg);
    border-radius: 12px;
    background: var(--bg-secondary);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    transition:
        opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.wizard-checkpoint-overlay--open .wizard-checkpoint-overlay__backdrop {
    opacity: 1;
}

.wizard-checkpoint-overlay--open .wizard-checkpoint-overlay__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.wizard-checkpoint-overlay--closing .wizard-checkpoint-overlay__backdrop {
    opacity: 0;
}

.wizard-checkpoint-overlay--closing .wizard-checkpoint-overlay__panel {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
    .wizard-checkpoint-overlay__backdrop,
    .wizard-checkpoint-overlay__panel {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .wizard-checkpoint-overlay--closing .wizard-checkpoint-overlay__backdrop,
    .wizard-checkpoint-overlay--closing .wizard-checkpoint-overlay__panel {
        opacity: 0;
    }
}

.wizard-checkpoint-overlay__title {
    margin: 0 0 var(--space-md);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.3;
}

.wizard-checkpoint-overlay__field:last-of-type {
    margin-bottom: 0;
}

.wizard-checkpoint-overlay__label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-strong);
}

.wizard-checkpoint-overlay__input,
.wizard-checkpoint-overlay__textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px dashed var(--flag-border);
    border-radius: 10px;
    background: var(--bg-card-hover);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--text-strong);
    outline: none;
    transition:
        border-color 0.2s ease,
        border-style 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.wizard-checkpoint-overlay__input {
    min-height: 0;
    resize: none;
}

.wizard-checkpoint-overlay__textarea {
    resize: vertical;
    min-height: 4.5rem;
}

.wizard-checkpoint-overlay__input::placeholder,
.wizard-checkpoint-overlay__textarea::placeholder {
    color: var(--text-muted);
}

.wizard-checkpoint-overlay__input:hover,
.wizard-checkpoint-overlay__textarea:hover {
    border-color: var(--surface-extra);
    background: var(--bg-primary);
}

.wizard-checkpoint-overlay__input:focus,
.wizard-checkpoint-overlay__textarea:focus {
    border-color: var(--accent-primary);
    border-style: solid;
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(226, 1, 61, 0.12);
}

.wizard-checkpoint-overlay__actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--gray-200);
}

.wizard-checkpoint-overlay .wizard__multi-additions-error {
    margin: 0 0 var(--space-sm);
    font-size: var(--font-size-sm);
    line-height: 1.4;
    color: var(--accent-primary);
}

.wizard-checkpoint-overlay .wizard__multi-additions-error.hidden {
    display: none;
}

.wizard-checkpoint-section--extra .wizard__checkpoint-revise {
    margin: 0;
}

.wizard-checkpoint-section--extra .wizard__checkpoint-revise-field {
    border: none;
    background: transparent;
    padding: 0 0 28px;
}

.wizard-checkpoint-section--extra .wizard__checkpoint-revise-input {
    min-height: 88px;
    padding: 8px 16px;
    background: var(--surface-bg);
    border: 1px solid var(--surface-quaternary, #848484);
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 20px;
}

.wizard-checkpoint-section--extra .wizard__checkpoint-revise-input:focus {
    box-shadow: 0 0 0 4px #efefef;
    outline: none;
}

.wizard-checkpoint-section--extra .wizard__checkpoint-revise-input::placeholder {
    color: var(--text-muted);
}

.wizard-checkpoint-section--extra .wizard__checkpoint-revise-count {
    right: 12px;
    bottom: 6px;
}

.wizard-char-counter {
    margin: 4px 0 0;
    font-size: var(--font-size-xs);
    line-height: 1.4;
    text-align: right;
    color: var(--text-quaternary);
}

.wizard-char-counter.is-limit {
    color: var(--error);
}

.wizard-enter-hint {
    margin: 4px 0 0;
    font-size: var(--font-size-xs);
    line-height: 1.4;
    color: var(--text-quaternary);
}

.wizard-prompt-card__toolbar .wizard-enter-hint {
    margin: 0 auto 0 0;
}

.wizard__checkpoint-revise-field .wizard-enter-hint {
    position: absolute;
    left: 14px;
    bottom: 10px;
    margin: 0;
    line-height: 1;
    pointer-events: none;
}

.wizard-checkpoint-section--extra .wizard__checkpoint-revise-field .wizard-enter-hint {
    left: 0;
    bottom: 6px;
}

@media (pointer: coarse) {
    .wizard-enter-hint {
        display: none;
    }
}

.wizard-model-test {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 640px;
    margin: 12px auto 0;
    padding: 12px 16px;
    border: 1px dashed var(--surface-tertiary);
    border-radius: var(--radius-lg);
    background: var(--surface-bg);
}

.wizard-model-test__title {
    padding: 0 4px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.wizard-model-test__fields {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wizard-model-test__field {
    display: flex;
    flex: 1 1 160px;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    font-size: var(--font-size-xs, 12px);
    color: var(--text-secondary);
}

.wizard-model-test__select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--surface-tertiary);
    border-radius: var(--radius-md);
    background: var(--surface-bg);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
}

.wizard-model-test__select:disabled {
    opacity: 0.5;
}

.wizard-model-test__hint {
    margin: 0;
    font-size: var(--font-size-xs, 12px);
    color: var(--text-tertiary);
}
