@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --brand-turquoise: #24A2BD;
    --brand-pink: #E84472;
    --brand-turquoise-soft: rgba(36, 162, 189, 0.16);
    --brand-pink-soft: rgba(232, 68, 114, 0.16);
}

/* Przyciski bazowe pod brand */
.btn-primary {
    background-color: var(--brand-turquoise);
    border-color: var(--brand-turquoise);
    color: #fff !important;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active,
    .btn-primary.active {
        background-color: #1f93aa;
        border-color: #1f93aa;
        color: #fff !important;
    }

    .btn-primary:focus-visible {
        box-shadow: 0 0 0 0.25rem rgba(36, 162, 189, 0.35);
    }

.btn-outline-primary {
    color: var(--brand-turquoise);
    border-color: var(--brand-turquoise);
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:active,
    .btn-outline-primary.active {
        background-color: var(--brand-turquoise);
        border-color: var(--brand-turquoise);
        color: #fff;
    }

.btn-outline-danger {
    color: var(--brand-pink);
    border-color: var(--brand-pink);
}

    .btn-outline-danger:hover,
    .btn-outline-danger:focus,
    .btn-outline-danger:active,
    .btn-outline-danger.active {
        background-color: var(--brand-pink);
        border-color: var(--brand-pink);
        color: #fff;
    }

.btn-link,
.btn-link:hover,
.btn-link:focus {
    color: var(--brand-turquoise);
}

/* Mapowanie kolorystyki Bootstrap na brand */
a,
.link-primary,
.text-primary {
    color: var(--brand-turquoise) !important;
}

.text-danger {
    color: var(--brand-pink) !important;
}

.bg-primary,
.badge.bg-primary {
    background-color: var(--brand-turquoise) !important;
}

.bg-danger,
.badge.bg-danger {
    background-color: var(--brand-pink) !important;
}

.border-primary {
    border-color: var(--brand-turquoise) !important;
}

.border-danger {
    border-color: var(--brand-pink) !important;
}

.alert-primary {
    color: #0b5b6b;
    background-color: var(--brand-turquoise-soft);
    border-color: rgba(36, 162, 189, 0.35);
}

.alert-danger {
    color: #8b2342;
    background-color: var(--brand-pink-soft);
    border-color: rgba(232, 68, 114, 0.35);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--brand-turquoise);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--brand-turquoise);
}

/* Jasny przycisk z brandowym tekstem */
.brand-btn-light {
    color: var(--brand-turquoise);
    border-color: rgba(36, 162, 189, 0.35);
    font-weight: 600;
}

    .brand-btn-light:hover,
    .brand-btn-light:focus {
        color: var(--brand-turquoise);
        background-color: var(--brand-turquoise-soft);
        border-color: rgba(36, 162, 189, 0.5);
    }

.custom-radio-card.selected {
    border: 2px solid var(--brand-turquoise);
    margin: 5px;
    box-shadow: 0 0 10px rgba(36, 162, 189, 0.25);
    background-color: var(--brand-turquoise-soft);
    transform: translateY(-2px);
}

.custom-radio-card {
    transition: border 0.2s, box-shadow 0.2s, background-color 0.2s, transform 0.2s;
    margin: 5px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    padding: 0.35rem;
    background-color: #fff;
}

.asset-thumb-card {
    padding: 12px;
    background-color: #fff;
}

/* Lokalny wariant para-atrybut korzysta z języka wizualnego postaci z atrybutami,
   ale pozostaje odseparowany od istniejących ekranów Stage2 i Stage2Couple. */
body.page-stage2 .stage-shell--pair-attributes .stage-form-card {
    padding: 0.78rem 0.9rem 0.18rem !important;
}

body.page-stage2 .stage-shell--pair-attributes .wizard-stage-heading-line {
    margin-bottom: 0.46rem !important;
}

body.page-stage2 .stage-shell--pair-attributes .wizard-stage-title {
    font-size: 1.24rem;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-panel {
    padding: 0.5rem 0.58rem 0.12rem;
}

body.page-stage2 .stage-shell--pair-attributes .custom-character-panel--attributes .stage2-pair-attributes-layout {
    grid-template-columns: minmax(0, 14.25rem) minmax(0, 1fr);
    gap: 0.38rem 0.48rem;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-custom-hero {
    height: auto;
    gap: 0.34rem;
    padding: 0.42rem;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-custom-character-column--intro {
    align-content: start;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-custom-hero__title {
    font-size: 0.98rem;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-custom-hero__text {
    font-size: 0.74rem;
    line-height: 1.25;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-custom-card__hint {
    color: #365061;
    font-size: 0.74rem;
    font-weight: 400;
    line-height: 1.25;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-example {
    display: grid;
    gap: 0.24rem;
    width: 100%;
    align-self: end;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-example__media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    aspect-ratio: 1.34 / 1;
    overflow: hidden;
    border: 1px solid rgba(36, 162, 189, 0.16);
    border-radius: 8px;
    background: #ffffff;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-example__before {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-example__source {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    object-fit: cover;
    object-position: center;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-example__image {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    object-fit: cover;
    object-position: center center;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-example__image--preview {
    border-left: 1px solid rgba(36, 162, 189, 0.12);
    object-fit: contain;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-custom-card {
    gap: 0.32rem;
    padding: 0.34rem 0.4rem;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-attributes-step-heading {
    gap: 0.34rem;
    margin-bottom: 0.24rem;
    font-size: 0.82rem;
    line-height: 1.12;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-attributes-step-heading__badge {
    width: 1.24rem;
    height: 1.24rem;
    font-size: 0.7rem;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
    margin-top: 0.06rem;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-photo-slot {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
    padding: 0.24rem 0.32rem;
    border: 1px solid rgba(216, 61, 112, 0.2);
    border-radius: 8px;
    background: rgba(253, 235, 242, 0.4);
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-photo-slot:nth-child(2) {
    border-color: rgba(20, 158, 171, 0.22);
    background: rgba(234, 251, 255, 0.55);
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-photo-slot.is-filled {
    border-color: rgba(216, 61, 112, 0.24);
    background: rgba(253, 235, 242, 0.4);
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-photo-slot:nth-child(2).is-filled {
    border-color: rgba(20, 158, 171, 0.24);
    background: rgba(234, 251, 255, 0.55);
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-person-label {
    color: #b8295a;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.15;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-person-label--teal {
    color: #0f7f8f;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.24rem;
    min-height: 1.96rem;
    align-items: center;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-row.is-empty {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-file {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0.26rem;
    min-width: 0;
    align-items: center;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-thumb {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(36, 162, 189, 0.16);
    border-radius: 8px;
    background: #ffffff;
    object-fit: cover;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-file-name {
    min-width: 0;
    overflow: hidden;
    color: #687b8b;
    font-size: 0.66rem;
    font-weight: 650;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-actions {
    display: flex;
    gap: 0.28rem;
    align-items: center;
    justify-content: flex-end;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-actions .btn {
    min-height: 1.52rem;
    padding: 0.14rem 0.34rem;
    border-radius: 8px;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-help {
    color: #6b7d8c;
    font-size: 0.62rem;
    line-height: 1.16;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-person-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.38rem;
    min-width: 0;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-person-editor {
    display: grid;
    gap: 0.24rem;
    min-width: 0;
    margin: 0.1rem 0 0;
    padding: 0.32rem;
    border: 1px solid rgba(216, 61, 112, 0.2);
    border-radius: 8px;
    background: rgba(253, 235, 242, 0.4);
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-person-editor--second {
    border-color: rgba(20, 158, 171, 0.22);
    background: rgba(234, 251, 255, 0.55);
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-person-editor legend {
    width: auto;
    margin: 0;
    padding: 0;
    color: #b8295a;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.15;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-person-editor--second legend {
    color: #0f7f8f;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-person-editor:not(.stage2-pair-attributes-person-editor--second) .stage2-attribute-label__icon {
    border-color: rgba(216, 61, 112, 0.32);
    background: rgba(253, 235, 242, 0.74);
    color: #c62d63;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-attribute-label__icon {
    width: 1.42rem;
    height: 1.42rem;
    border-radius: 7px;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-attribute-label__icon svg {
    width: 1.04rem;
    height: 1.04rem;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-custom-attribute-fields--grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.22rem 0.34rem;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-custom-attribute-field .form-label,
body.page-stage2 .stage-shell--pair-attributes .stage2-pair-height-label {
    font-size: 0.66rem;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-custom-attribute-field .form-control {
    min-height: 1.72rem;
    padding-block: 0.18rem;
    font-size: 0.72rem;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-custom-attribute-field .form-control::placeholder,
body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-footer-instructions .custom-character-textarea::placeholder {
    color: #748596;
    font-size: 0.72rem;
    opacity: 1;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-outfit-selector {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.38rem;
    align-items: center;
    min-width: 0;
    margin-top: 0.02rem;
    color: #425668;
    font-size: 0.66rem;
    font-weight: 800;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-outfit-selector > span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.46rem;
    border: 1px solid rgba(216, 61, 112, 0.24);
    border-radius: 999px;
    background: rgba(253, 235, 242, 0.78);
    color: #b92758;
    line-height: 1.1;
    white-space: nowrap;
}

body.wizard-page.page-stage2 .stage-shell--pair-attributes .stage2-pair-outfit-selector .stage1-section-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 1.1rem;
    padding: 0;
    background: transparent;
    color: inherit;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-outfit-selector[data-halloween-style-field] {
    grid-template-columns: minmax(0, 1fr);
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-outfit-selector[data-halloween-style-field] > span {
    justify-self: start;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-person-editor--second .stage2-pair-outfit-selector > span {
    border-color: rgba(20, 158, 171, 0.26);
    background: rgba(234, 251, 255, 0.9);
    color: #087b8d;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-outfit-selector .form-select {
    min-width: 0;
    min-height: 1.72rem;
    padding-top: 0.16rem;
    padding-bottom: 0.16rem;
    border: 1.5px solid rgba(216, 61, 112, 0.42);
    border-radius: 7px;
    background-color: #fffafd;
    box-shadow: 0 0.18rem 0.45rem rgba(216, 61, 112, 0.08);
    font-size: 0.7rem;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-person-editor--second .stage2-pair-outfit-selector .form-select {
    border-color: rgba(20, 158, 171, 0.44);
    background-color: #f8feff;
    box-shadow: 0 0.18rem 0.45rem rgba(20, 158, 171, 0.08);
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-outfit-selector .form-select:focus {
    border-color: #d83d70;
    box-shadow: 0 0 0 0.16rem rgba(216, 61, 112, 0.14);
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-person-editor--second .stage2-pair-outfit-selector .form-select:focus {
    border-color: #149eab;
    box-shadow: 0 0 0 0.16rem rgba(20, 158, 171, 0.14);
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem;
    margin-top: 0.28rem;
    align-items: start;
}

body.page-stage2 .stage-shell--pair-attributes .custom-character-generation-panel--attributes {
    min-width: 0;
    margin-top: 0;
    padding: 0.26rem 0.34rem 0.2rem;
}

body.page-stage2 .stage-shell--pair-attributes .custom-character-generation-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.28rem;
    align-content: start;
}

body.page-stage2 .stage-shell--pair-attributes .custom-character-generation-actions {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
}

body.page-stage2 .stage-shell--pair-attributes .custom-character-generate-button,
body.page-stage2 .stage-shell--pair-attributes .custom-character-cancel-button {
    min-height: 1.92rem;
    padding: 0.22rem 0.7rem;
    font-size: 0.74rem;
    line-height: 1.12;
}

body.page-stage2 .stage-shell--pair-attributes .custom-character-generation-copy {
    gap: 0.2rem;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-footer-instructions {
    min-width: 0;
    margin-top: 0;
    padding: 0.3rem 0.4rem;
    border: 1px solid rgba(36, 162, 189, 0.2);
    border-radius: 0.7rem;
    background: rgba(247, 253, 254, 0.9);
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-footer-grid .custom-character-attempt-info {
    font-size: 0.68rem;
}

body.page-stage2 .stage-shell--pair-attributes #pairAttributesStatus {
    font-size: 0.66rem;
    line-height: 1.18;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-footer-instructions .stage2-custom-step-title--optional {
    width: 100%;
    justify-content: flex-start;
    padding: 0.14rem 0.34rem;
    font-size: 0.6rem;
    line-height: 1.08;
}

body.page-stage2 .custom-character-generation-progress-bar.is-active {
    width: 34%;
    animation: stage2PairAttributesProgress 1.35s ease-in-out infinite;
    transition: none;
}

@keyframes stage2PairAttributesProgress {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(305%);
    }
}

body.page-stage2 .stage-shell--pair-attributes .stage2-attributes-optional-instructions .custom-character-textarea {
    min-height: 3.1rem;
    max-height: 3.5rem;
    padding-top: 0.28rem;
    padding-bottom: 0.28rem;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-preview-shell {
    display: grid;
    width: 100%;
    min-height: 35rem;
    place-items: start center;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-preview-placeholder {
    display: grid;
    width: 100%;
    min-height: 35rem;
    align-content: center;
    justify-items: center;
    gap: 0.56rem;
    padding: 1.4rem;
    border: 1px solid rgba(36, 162, 189, 0.18);
    border-radius: 8px;
    background: #ffffff;
    color: #435969;
    text-align: center;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-preview-placeholder strong {
    color: #263442;
    font-size: 1rem;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-preview-placeholder span {
    max-width: 19rem;
    font-size: 0.82rem;
    line-height: 1.4;
}

body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-preview-placeholder img {
    width: min(52%, 11.5rem);
    max-height: 17rem;
    opacity: 0.2;
    object-fit: contain;
}

body.page-stage2 .stage-shell--pair-attributes #pairAttributesProjectPreview {
    width: 100%;
    max-height: calc(100vh - 13.5rem);
    object-fit: contain;
}

body.page-stage2 .stage-shell--pair-attributes .stage-form-actions {
    margin-top: 0.16rem;
    margin-bottom: 0 !important;
}

body.page-stage2 .stage-shell--pair-attributes .stage-form-actions .btn {
    min-height: 1.66rem;
    padding: 0.22rem 0.88rem;
    font-size: 0.78rem;
    line-height: 1.15;
}

@media (min-width: 1200px) and (max-height: 800px) {
    body.page-stage2 .wizard-header-shell + .stage-shell--pair-attributes {
        margin-top: 0.5rem !important;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage-form-card {
        padding-top: 0.55rem !important;
    }

    body.page-stage2 .stage-shell--pair-attributes .wizard-stage-heading-line {
        margin-bottom: 0.28rem !important;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-panel {
        padding-top: 0.38rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-custom-card {
        gap: 0.24rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-preview-shell,
    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-preview-placeholder {
        min-height: 33rem;
    }
}

@media (min-width: 1200px) and (min-height: 860px) {
    body.page-stage2 .stage-shell--pair-attributes .stage-form-card {
        padding: 0.82rem 1.05rem 0.18rem !important;
    }

    body.page-stage2 .stage-shell--pair-attributes .row.mb-4 {
        --bs-gutter-x: 1.25rem !important;
    }

    body.page-stage2 .stage-shell--pair-attributes .col-lg-7 {
        width: clamp(47rem, 61vw, 68rem) !important;
        max-width: calc(100vw - min(34rem, 34vw) - 3.25rem) !important;
    }

    body.page-stage2 .stage-shell--pair-attributes .wizard-stage-heading-line {
        margin-bottom: 0.4rem !important;
    }

    body.page-stage2 .stage-shell--pair-attributes .wizard-stage-title {
        font-size: 1.38rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-panel {
        padding: 0.54rem 0.78rem 0.1rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .custom-character-panel--attributes .stage2-pair-attributes-layout {
        grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
        gap: 0.48rem 0.6rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-custom-hero {
        gap: 0.5rem;
        padding: 0.62rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-custom-hero__title {
        font-size: 1.14rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-custom-hero__text {
        font-size: 0.8rem;
        line-height: 1.32;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-example {
        gap: 0.32rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-example__media {
        aspect-ratio: 1.34 / 1;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-custom-card {
        gap: 0.4rem;
        padding: 0.42rem 0.5rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-attributes-step-heading {
        gap: 0.42rem;
        margin-bottom: 0.34rem;
        font-size: 0.9rem;
        line-height: 1.16;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-attributes-step-heading__badge {
        width: 1.42rem;
        height: 1.42rem;
        font-size: 0.78rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-grid {
        gap: 0.46rem;
        margin-top: 0.14rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-photo-slot {
        gap: 0.28rem;
        padding: 0.36rem 0.46rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-person-label {
        font-size: 0.74rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-row {
        gap: 0.34rem;
        min-height: 2.34rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-file {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 0.34rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-thumb {
        width: 36px;
        height: 36px;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-file-name {
        font-size: 0.7rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-actions .btn {
        min-height: 1.74rem;
        padding: 0.22rem 0.48rem;
        font-size: 0.7rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-help {
        font-size: 0.68rem;
        line-height: 1.24;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-person-grid {
        gap: 0.62rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-person-editor {
        gap: 0.32rem;
        margin-top: 0.14rem;
        padding: 0.42rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-person-editor legend {
        font-size: 0.76rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-attribute-label__icon {
        width: 1.64rem;
        height: 1.64rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-attribute-label__icon svg {
        width: 1.18rem;
        height: 1.18rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-custom-attribute-fields--grid {
        gap: 0.3rem 0.46rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-custom-attribute-field .form-label,
    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-height-label {
        font-size: 0.76rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-custom-attribute-field .form-control {
        min-height: 1.9rem;
        padding-block: 0.24rem;
        font-size: 0.82rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .custom-character-generation-panel--attributes {
        margin-top: 0;
        padding: 0.34rem 0.46rem 0.24rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .custom-character-generation-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.46rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .custom-character-generate-button,
    body.page-stage2 .stage-shell--pair-attributes .custom-character-cancel-button {
        min-height: 2.18rem;
        padding: 0.32rem 0.95rem;
        font-size: 0.82rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-attributes-optional-instructions .custom-character-textarea {
        min-height: 3.2rem;
        max-height: 3.6rem;
        padding-top: 0.32rem;
        padding-bottom: 0.32rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage-form-actions {
        margin-top: 0.62rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage-form-actions .btn {
        min-height: 2.28rem;
        padding: 0.4rem 1.2rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 1199.98px) {
    body.page-stage2 .stage-shell--pair-attributes .custom-character-panel--attributes .stage2-pair-attributes-layout {
        grid-template-columns: minmax(11rem, 0.62fr) minmax(0, 1.38fr);
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-preview-shell,
    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-preview-placeholder {
        min-height: 33rem;
    }
}

@media (max-width: 991.98px) {
    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-preview-shell,
    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-preview-placeholder {
        min-height: 28rem;
    }

    body.page-stage2 .stage-shell--pair-attributes #pairAttributesProjectPreview {
        max-height: none;
    }
}

@media (max-width: 767.98px) {
    body.page-stage2 .stage-shell--pair-attributes .stage-form-card {
        padding: 0.85rem !important;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-panel {
        padding: 0.62rem;
    }

    body.page-stage2 .stage-shell--pair-attributes .custom-character-panel--attributes .stage2-pair-attributes-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "intro"
            "workflow"
            "instructions";
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-upload-grid,
    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-person-grid,
    body.page-stage2 .stage-shell--pair-attributes .stage2-custom-attribute-fields--grid,
    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-footer-grid,
    body.page-stage2 .stage-shell--pair-attributes .custom-character-generation-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-preview-shell,
    body.page-stage2 .stage-shell--pair-attributes .stage2-pair-attributes-preview-placeholder {
        min-height: 24rem;
    }
}

.attribute-count-selector {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.28rem 0.42rem;
    padding: 0.28rem 0.42rem;
    margin-bottom: 0.48rem !important;
    border: 1px solid #dde4ea;
    border-radius: 0.5rem;
    background-color: #f8fafc;
}

    .attribute-count-label {
        margin-right: 0.1rem;
        font-size: 0.88rem;
        font-weight: 700;
        color: #0f172a;
        white-space: nowrap;
    }

    .attribute-count-selector .form-check-input {
        width: 0.92rem;
        height: 0.92rem;
        margin: 0;
        cursor: pointer;
        border-color: #94a3b8;
    }

        .attribute-count-selector .form-check-input:checked {
            background-color: var(--brand-pink);
            border-color: var(--brand-pink);
        }

        .attribute-count-selector .form-check-input:focus-visible {
            border-color: var(--brand-pink);
            box-shadow: 0 0 0 0.2rem var(--brand-pink-soft);
        }

    .attribute-count-option {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        min-height: 1.65rem;
        padding: 0.18rem 0.42rem;
        border: 1px solid #ced4da;
        border-radius: 0.5rem;
        background-color: #fff;
        color: #0f172a;
        font-size: 0.86rem;
        cursor: pointer;
        transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
    }

        .attribute-count-option:hover,
        .attribute-count-option:focus-within {
            border-color: var(--brand-pink);
            color: var(--brand-pink);
        }

        .attribute-count-option.selected {
            border-color: var(--brand-pink);
            background-color: var(--brand-pink-soft);
            color: #0f172a;
            box-shadow: 0 0.35rem 1rem var(--brand-pink-soft);
        }

        .attribute-count-option span {
            font-weight: 700;
            line-height: 1.15;
        }

.attribute-selector {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

    /* Podbija widoczność aktywnego przełącznika atrybutu */
    .attribute-selector .btn {
        border: 1px solid #ced4da;
        background-color: #f8fafc;
        color: #0f172a;
        font-weight: 600;
        font-size: 0.88rem;
        line-height: 1.2;
        border-radius: 0.68rem;
        position: relative;
        padding-right: 1.55rem;
        transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    }

        .attribute-selector .btn::after {
            content: "\2713";
            position: absolute;
            top: 0.23rem;
            right: 0.32rem;
            width: 0.95rem;
            height: 0.95rem;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.67rem;
            font-weight: 800;
            color: #ffffff;
            background-color: #22a745;
            box-shadow: 0 0.28rem 0.65rem rgba(34, 167, 69, 0.34);
            opacity: 0;
            transform: scale(0.75);
            transition: opacity 0.18s ease, transform 0.18s ease;
            pointer-events: none;
        }

        .attribute-selector .btn.is-ready::after {
            opacity: 1;
            transform: scale(1);
        }

        .attribute-selector .btn:not(.selected):hover {
            border-color: var(--brand-turquoise);
            color: var(--brand-turquoise);
        }

        .attribute-selector .btn.selected {
            background-color: var(--brand-turquoise);
            color: #fff;
            border-color: var(--brand-turquoise);
            box-shadow: 0 0.5rem 1.25rem rgba(36, 162, 189, 0.35);
        }

.active-attribute-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.active-attribute-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.1rem 0.75rem;
    background-color: var(--brand-turquoise-soft);
}

.custom-radio-img {
    max-width: 200px;
    max-height: 200px;
    margin: 5px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.character-thumb {
    max-width: 200px;
    max-height: 200px;
    margin: 0;
}

.shadow-prev {
    margin: 0;
    display: block;
    object-fit: contain;
    box-shadow: 0 0 10px rgba(0,0,0,0.35);
}

/* Etapy kreatora - szeroki formularz i ciasniejszy odstep od menu */
.stage-shell {
    padding-top: 0.5rem;
}

.stage-form-card {
    max-width: 100%;
}

.wizard-start-card {
    border: 1px solid rgba(36, 162, 189, 0.24);
    background: linear-gradient(180deg, rgba(36, 162, 189, 0.08) 0%, rgba(255, 255, 255, 0.98) 40%);
}

.wizard-start-layout,
.wizard-start-content {
    display: grid;
    gap: 1.25rem;
}

.wizard-start-content {
    order: 1;
}

.wizard-start-video-shell {
    order: 2;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(36, 162, 189, 0.25);
    background: linear-gradient(135deg, rgba(36, 162, 189, 0.1) 0%, rgba(255, 255, 255, 0.96) 60%);
}

.wizard-start-video-frame {
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.18);
    background-color: #0f172a;
}

.wizard-start-image-frame {
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.16);
    background-color: #ffffff;
}

.wizard-start-image-button {
    display: block;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.wizard-start-image-button:focus-visible {
    outline: 3px solid rgba(36, 162, 189, 0.75);
    outline-offset: 4px;
}

.wizard-start-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

    .wizard-start-video-frame iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

.wizard-start-video-placeholder {
    min-height: 340px;
    border: 1px dashed rgba(36, 162, 189, 0.55);
    border-radius: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
}

.wizard-start-video-placeholder-title {
    font-weight: 700;
    color: #0d6070;
}

.wizard-start-video-placeholder-desc {
    color: #64748b;
    font-size: 0.92rem;
}

.wizard-product-select-form {
    display: grid;
    gap: 0.82rem;
    width: 100%;
    margin-top: 0.95rem;
}

.wizard-start-content--couple {
    align-self: stretch;
}

.wizard-product-select-form--couple {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.wizard-product-select-form--couple .wizard-start-actions {
    margin-top: auto !important;
}

.wizard-product-select-title {
    justify-self: center;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.wizard-product-select-title.wizard-subsection-pill {
    margin-bottom: 0;
}

.wizard-product-select-title--compact.wizard-subsection-pill {
    justify-self: start;
    width: fit-content;
    max-width: max-content;
    padding-inline: 0.62rem;
}

.wizard-product-inspiration-copy {
    width: 100%;
    max-width: none;
    margin: 0;
    justify-self: stretch;
    color: #31485b;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
}

.wizard-product-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    gap: 0.85rem;
}

.wizard-product-tile {
    position: relative;
    display: grid;
    grid-template-rows: minmax(128px, 1fr) auto;
    gap: 0.65rem;
    min-height: 188px;
    padding: 0.7rem;
    border: 2px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.94);
    color: #1f2937;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

    .wizard-product-tile:hover,
    .wizard-product-tile:focus-within {
        border-color: rgba(36, 162, 189, 0.58);
        box-shadow: 0 0.65rem 1.25rem rgba(15, 23, 42, 0.11);
        transform: translateY(-1px);
    }

    .wizard-product-tile:has(.wizard-product-tile__input:checked) {
        border-width: 4px;
        border-color: #128ba4;
        background: #f0fbfd;
        box-shadow: 0 0 0 0.24rem rgba(36, 162, 189, 0.22), 0 0.8rem 1.4rem rgba(15, 23, 42, 0.12);
    }

.wizard-product-tile__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.wizard-product-tile__media {
    display: grid;
    place-items: center;
    min-height: 128px;
    border-radius: 0.45rem;
    background: #f6f8fa;
    overflow: hidden;
}

    .wizard-product-tile__media img {
        width: 100%;
        height: 100%;
        max-height: 150px;
        object-fit: contain;
        display: block;
    }

.wizard-product-tile__label {
    min-height: 2.4em;
    display: grid;
    place-items: center;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.wizard-start-inspirations {
    display: grid;
    gap: 0.55rem;
}

.wizard-start-choice-heading {
    width: fit-content;
    margin: 0 0 -0.2rem;
    padding: 0.28rem 0.62rem;
    border: 1px solid rgba(var(--wizard-primary-rgb, 232, 68, 114), 0.3);
    border-radius: 999px;
    background: rgba(var(--wizard-primary-rgb, 232, 68, 114), 0.08);
    color: var(--wizard-primary-dark, var(--brand-pink));
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1.2;
    text-align: left;
}

.wizard-start-choice-group,
.wizard-start-profile-grid,
.wizard-start-profile-group-grid,
.wizard-start-profile-select {
    display: grid;
    gap: 0.45rem;
}

.wizard-start-profile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3rem;
    padding: 0.75rem 0.9rem;
    border: 2px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.94);
    color: #1f2937;
    font-weight: 750;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.wizard-start-choice {
    position: relative;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    align-items: center;
    gap: 0.56rem;
    min-height: 3.58rem;
    padding: 0.52rem 0.62rem;
    border: 2px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.96);
    color: #1f2937;
    line-height: 1.22;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.wizard-start-choice__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.wizard-start-choice__icon {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(36, 162, 189, 0.2);
    border-radius: 0.5rem;
    background: #f8fafc;
    color: #128ba4;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.wizard-start-choice__svg,
.wizard-start-profile-label__svg {
    width: 1.12rem;
    height: 1.12rem;
}

    .wizard-start-choice__svg path,
    .wizard-start-profile-label__svg path,
    .wizard-start-profile-label__svg circle,
    .wizard-start-profile-label__svg rect {
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.wizard-start-choice__body {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.wizard-start-choice__title {
    display: block;
    color: #1f2937;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.wizard-start-choice__description {
    display: block;
    color: #5b6777;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

    .wizard-start-choice:hover,
    .wizard-start-choice:focus-within,
    .wizard-start-profile:hover,
    .wizard-start-profile:focus-within {
        border-color: rgba(36, 162, 189, 0.5);
        box-shadow: 0 0.45rem 1rem rgba(15, 23, 42, 0.08);
    }

    .wizard-start-choice:has(input:checked),
    .wizard-start-profile:has(input:checked) {
        border-color: #128ba4;
        background: #f0fbfd;
        box-shadow: 0 0 0 0.18rem rgba(36, 162, 189, 0.18);
    }

        .wizard-start-choice:has(input:checked) .wizard-start-choice__icon {
            border-color: #128ba4;
            background: #128ba4;
            color: #ffffff;
        }

.wizard-start-profile-grid {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.wizard-start-profile-select {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    gap: 0.34rem;
    text-align: left;
}

.wizard-start-profile-select.is-single {
    max-width: none;
}

.wizard-start-profile-label {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    margin: 0;
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
}

.wizard-start-profile-label--compact {
    width: fit-content;
    padding: 0.24rem 0.58rem;
    border: 1px solid rgba(217, 79, 117, 0.42);
    border-radius: 999px;
    background: rgba(217, 79, 117, 0.08);
    color: #d94f75;
    font-size: 0.78rem;
}

.wizard-start-profile-label__icon {
    width: 1.18rem;
    height: 1.18rem;
    display: grid;
    place-items: center;
    border-radius: 0.42rem;
    background: #eef9fb;
    color: #128ba4;
    flex: 0 0 auto;
}

.wizard-start-profile-group-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
}

.wizard-start-profile-select.is-single .wizard-start-profile-group-grid {
    max-width: 18rem;
    grid-template-columns: minmax(0, 1fr);
    margin-inline: auto;
}

.wizard-start-profile-group {
    position: relative;
    min-width: 0;
}

.wizard-start-independent {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding: 0.25rem 0.62rem;
    border: 1px solid #d8e2e6;
    border-radius: 0.42rem;
    background: #f8fafb;
    color: #374151;
    cursor: pointer;
    text-align: left;
    line-height: 1.25;
}

.wizard-start-independent .wizard-start-profile-group__icon {
    width: 1.4rem;
    height: 1.4rem;
    border: 0;
    background: transparent;
    color: #64748b;
}

.wizard-start-independent__title {
    font-size: 0.76rem;
    font-weight: 750;
}

.wizard-start-independent__description {
    font-size: 0.72rem;
    color: #526170;
    overflow-wrap: anywhere;
}

.wizard-start-independent__check {
    visibility: hidden;
    color: #128ba4;
}

.wizard-start-independent:has(input:checked) {
    border-color: #128ba4;
    background: #eef9fb;
    box-shadow: 0 0 0 1px rgba(36, 162, 189, 0.18);
}

.wizard-start-independent:has(input:checked) .wizard-start-independent__check {
    visibility: visible;
}

.wizard-start-independent:has(input:focus-visible) {
    outline: 2px solid #128ba4;
    outline-offset: 2px;
}

.wizard-start-profile-group__icon {
    width: 1.85rem;
    height: 1.85rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(36, 162, 189, 0.2);
    border-radius: 0.42rem;
    background: #eef9fb;
    color: #128ba4;
}

.wizard-start-profile-group.is-profile-group-popular .wizard-start-profile-group__icon {
    border-color: rgba(245, 158, 11, 0.34);
    background: #fff7d6;
    color: #b45309;
}

.wizard-start-profile-group.is-profile-group-occupation .wizard-start-profile-group__icon {
    border-color: rgba(124, 58, 237, 0.32);
    background: #f3e8ff;
    color: #6d28d9;
}

.wizard-start-profile-select[data-stage0-inspiration-forced="true"] .wizard-start-profile-label__icon,
.wizard-start-profile-group.is-profile-group-occasion .wizard-start-profile-group__icon {
    border-color: rgba(217, 79, 117, 0.3);
    background: rgba(217, 79, 117, 0.1);
    color: #cf4f75;
}

.wizard-start-profile-group__icon .wizard-start-profile-label__svg {
    width: 1.22rem;
    height: 1.22rem;
}

.wizard-start-profile-group__body {
    display: grid;
    gap: 0.04rem;
    min-width: 0;
    flex: 1 1 auto;
}

.wizard-start-profile-group__title {
    color: #4d5f70;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.05;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.wizard-start-profile-dropdown {
    min-height: 1.95rem;
    border: 2px solid rgba(36, 162, 189, 0.28);
    border-radius: 0.42rem;
    color: #1f2937;
    font-size: 0.78rem;
    font-weight: 650;
    padding-top: 0.24rem;
    padding-bottom: 0.24rem;
    box-shadow: 0 0.45rem 1rem rgba(15, 23, 42, 0.06);
}

.wizard-start-profile-dropdown--enhanced {
    display: none;
}

.wizard-start-profile-dropdown option {
    font-size: 0.76rem;
}

.wizard-start-profile-picker {
    position: relative;
    width: 100%;
}

.wizard-start-profile-picker__button {
    width: 100%;
    min-height: 2.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.54rem;
    padding: 0.42rem 0.62rem;
    border: 2px solid rgba(36, 162, 189, 0.28);
    border-radius: 0.42rem;
    background: rgba(255, 255, 255, 0.98);
    color: #1f2937;
    box-shadow: 0 0.38rem 0.82rem rgba(15, 23, 42, 0.055);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 760;
    line-height: 1.22;
    cursor: pointer;
    text-align: left;
}

.wizard-start-profile-picker__button:focus-visible {
    outline: 0;
    border-color: #128ba4;
    box-shadow: 0 0 0 0.16rem rgba(36, 162, 189, 0.18);
}

.wizard-start-profile-picker__text {
    overflow: hidden;
    overflow-wrap: anywhere;
}

.wizard-start-profile-picker__chevron {
    width: 0.42rem;
    height: 0.42rem;
    flex: 0 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.08rem) rotate(45deg);
    opacity: 0.72;
}

.wizard-start-profile-picker.is-open .wizard-start-profile-picker__chevron,
.wizard-start-profile-group.is-open .wizard-start-profile-picker__chevron {
    transform: translateY(0.08rem) rotate(225deg);
}

.wizard-start-profile-picker__list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.22rem);
    right: 0;
    left: 0;
    display: none;
    max-height: min(9.5rem, 34vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.2rem;
    border: 1px solid rgba(36, 162, 189, 0.24);
    border-radius: 0.46rem;
    background: #ffffff;
    box-shadow: 0 0.75rem 1.4rem rgba(15, 23, 42, 0.14);
}

.wizard-start-profile-picker.is-open .wizard-start-profile-picker__list,
.wizard-start-profile-group.is-open .wizard-start-profile-picker__list {
    display: grid;
    gap: 0.12rem;
}

.wizard-start-profile-search {
    position: sticky;
    z-index: 2;
    top: -0.2rem;
    padding: 0.12rem 0.08rem 0.26rem;
    background: #ffffff;
}

.wizard-start-profile-search__input {
    width: 100%;
    min-height: 2.15rem;
    padding: 0.38rem 0.58rem;
    border: 1px solid rgba(36, 162, 189, 0.28);
    border-radius: 0.38rem;
    background: #ffffff;
    color: #263447;
    font: inherit;
    font-size: 0.78rem;
    line-height: 1.2;
}

.wizard-start-profile-search__input:focus {
    outline: 0;
    border-color: #128ba4;
    box-shadow: 0 0 0 0.14rem rgba(36, 162, 189, 0.14);
}

.wizard-start-profile-category {
    display: grid;
    gap: 0.12rem;
}

.wizard-start-profile-category + .wizard-start-profile-category {
    margin-top: 0.3rem;
    padding-top: 0.08rem;
}

.wizard-start-profile-category__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 1.6rem;
    margin: 0 0.08rem;
    padding: 0.28rem 0.46rem;
    border-radius: 0.32rem;
    background: #f1f5f9;
    color: #526478;
    font-size: 0.69rem;
    font-weight: 900;
    letter-spacing: 0.065em;
    line-height: 1.2;
}

.wizard-start-profile-category__badge {
    padding: 0.09rem 0.34rem;
    border: 1px solid #d9e2ea;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #526478;
    font-size: 0.57rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.wizard-start-profile-category__options {
    display: grid;
    gap: 0.06rem;
}

.wizard-start-profile-category[hidden],
.wizard-start-profile-picker__option[hidden],
.wizard-start-profile-search__empty[hidden] {
    display: none !important;
}

.wizard-start-profile-search__empty {
    padding: 0.62rem 0.52rem;
    color: #748294;
    font-size: 0.76rem;
    text-align: center;
}

.wizard-start-profile-picker__option {
    width: 100%;
    min-height: 2.1rem;
    display: flex;
    align-items: center;
    gap: 0.36rem;
    padding: 0.34rem 0.52rem;
    border: 0;
    border-radius: 0.34rem;
    background: transparent;
    color: #263447;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.wizard-start-profile-picker__option.is-featured {
    color: #172033;
    font-weight: 900;
}

.wizard-start-profile-picker__option.is-featured + .wizard-start-profile-picker__option:not(.is-featured) {
    margin-top: 0.22rem;
    padding-top: 0.52rem;
    border-top: 1px solid rgba(15, 23, 42, 0.14);
}

.wizard-start-profile-option__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.wizard-start-profile-picker__option:hover,
.wizard-start-profile-picker__option.is-active,
.wizard-start-profile-picker__option.is-selected {
    background: rgba(36, 162, 189, 0.1);
    color: #0f6f86;
}

@media (max-width: 575.98px) {
    .wizard-start-profile-group-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.wizard-start-validation {
    margin-top: -0.2rem;
    padding: 0.34rem 0.48rem;
    border: 1px solid rgba(217, 79, 117, 0.25);
    border-radius: 0.45rem;
    background: rgba(217, 79, 117, 0.08);
    color: #9f2f53;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.22;
    text-align: left;
}

.wizard-start-device-hint {
    align-self: end;
    max-width: 100%;
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.wizard-inspiration-suggestions {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(36, 162, 189, 0.18);
    border-radius: 0.5rem;
    background: #f7fbfc;
}

.wizard-inspiration-suggestion-row {
    display: grid;
    gap: 0.5rem;
}

.wizard-inspiration-suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.wizard-inspiration-suggestion-list .btn {
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

.wizard-product-change-modal .modal-content {
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 1.4rem 3.5rem rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.wizard-product-change-modal__header {
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #f7fbfc;
    padding: 1.35rem 1.5rem 1.1rem;
}

.wizard-product-change-modal__eyebrow {
    margin: 0 0 0.35rem;
    color: #24a2bd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wizard-product-change-modal .modal-title {
    color: #10212b;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.wizard-product-change-modal__body {
    padding: 1.35rem 1.5rem;
}

    .wizard-product-change-modal__body p {
        margin: 0;
        color: #334155;
        font-size: 1rem;
        line-height: 1.55;
    }

.wizard-product-change-modal__choice {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(36, 162, 189, 0.22);
    border-radius: 0.5rem;
    background: rgba(36, 162, 189, 0.08);
    color: #1f2937;
    font-weight: 700;
}

.wizard-product-change-modal__footer {
    gap: 0.75rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem 1.5rem 1.35rem;
}

.wizard-project-caption {
    font-size: 0.9rem;
}

.wizard-stage-title {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.wizard-section-title,
.wizard-subsection-title,
.wizard-subsection-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    white-space: normal;
    margin-bottom: 0.5rem;
}

.wizard-section-title {
    background: linear-gradient(180deg, rgba(36, 162, 189, 0.2) 0%, rgba(36, 162, 189, 0.14) 100%);
    border-color: rgba(36, 162, 189, 0.42);
    color: #0d6070;
    box-shadow: 0 0.35rem 0.85rem rgba(36, 162, 189, 0.12);
}

.stage-form-card .attribute-line-group .form-control {
    color: #0f172a;
    font-weight: 600;
}

    .stage-form-card .attribute-line-group .form-control::placeholder {
        color: #9daab8;
        opacity: 1;
        font-weight: 500;
    }

.wizard-subsection-title {
    background: linear-gradient(180deg, rgba(232, 68, 114, 0.16) 0%, rgba(232, 68, 114, 0.11) 100%);
    color: #a12d55;
    border-color: rgba(232, 68, 114, 0.35);
    box-shadow: 0 0.35rem 0.85rem rgba(232, 68, 114, 0.12);
}

.wizard-subsection-pill {
    background: linear-gradient(180deg, rgba(232, 68, 114, 0.16) 0%, rgba(232, 68, 114, 0.11) 100%);
    color: #a12d55;
    border-color: rgba(232, 68, 114, 0.35);
    box-shadow: 0 0.35rem 0.85rem rgba(232, 68, 114, 0.12);
    margin-bottom: 0;
}

.wizard-intro-copy {
    max-width: 38rem;
    margin-inline: auto;
    color: #607688;
    font-size: 1rem;
    line-height: 1.65;
}

.wizard-hint-callout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 0.7rem;
    row-gap: 0.35rem;
    max-width: 38rem;
    margin-inline: auto;
    padding: 0.9rem 1rem;
    border: 1px dashed rgba(232, 68, 114, 0.35);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 248, 251, 0.98), rgba(243, 250, 253, 0.96));
    box-shadow: 0 0.75rem 1.4rem rgba(18, 51, 70, 0.08);
    text-align: left;
}

.wizard-hint-callout::before {
    content: "";
    display: block;
    grid-column: 1;
    grid-row: 1;
    width: 2.1rem;
    height: 2.1rem;
    margin-top: 0.05rem;
    background: url("../img/ui/lightbulb-hint.svg") center / contain no-repeat;
    filter: drop-shadow(0 0.25rem 0.4rem rgba(217, 119, 6, 0.3));
}

.wizard-hint-callout > * {
    grid-column: 2;
    min-width: 0;
}

.wizard-hint-callout--compact {
    max-width: none;
    margin-inline: 0;
    padding: 0.75rem 0.9rem;
    column-gap: 0.55rem;
    row-gap: 0.25rem;
}

.wizard-hint-callout--compact::before {
    width: 1.55rem;
    height: 1.55rem;
    margin-top: 0.05rem;
}

.wizard-hint-callout__text {
    margin: 0;
    color: #546a7b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.wizard-helper-copy {
    color: #607688;
    font-size: 0.95rem;
    line-height: 1.6;
}

.wizard-panel {
    padding: 1.4rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(36, 162, 189, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 252, 0.92));
    box-shadow: 0 0.85rem 1.6rem rgba(18, 51, 70, 0.08);
}

.wizard-alert {
    border-radius: 1rem;
    border-width: 1px;
    box-shadow: 0 0.75rem 1.4rem rgba(18, 51, 70, 0.08);
}

.wizard-requirement-alert {
    display: grid;
    gap: 0.22rem;
}

.wizard-validation-summary {
    padding-block: 0.85rem;
}

    .wizard-validation-summary > :last-child {
        margin-bottom: 0;
    }

    .wizard-validation-summary ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .wizard-validation-summary li {
        margin: 0;
    }

        .wizard-validation-summary li + li {
            margin-top: 0.35rem;
        }

.wizard-alert.alert-warning {
    color: #855d1a;
    background: linear-gradient(180deg, rgba(255, 244, 214, 0.96), rgba(255, 249, 232, 0.98));
    border-color: rgba(230, 176, 74, 0.42);
}

.wizard-alert.alert-success {
    color: #17614e;
    background: linear-gradient(180deg, rgba(218, 247, 234, 0.96), rgba(240, 252, 246, 0.98));
    border-color: rgba(56, 161, 105, 0.3);
}

.wizard-alert.alert-danger {
    color: #8b2342;
    background: linear-gradient(180deg, rgba(253, 232, 239, 0.96), rgba(255, 246, 249, 0.98));
    border-color: rgba(232, 68, 114, 0.28);
}

.wizard-input-group-label {
    min-width: 11rem;
    justify-content: flex-start;
    font-weight: 700;
}

.reset-color {
    border-radius: 0.85rem;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.wizard-submit-btn {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.wizard-back-btn {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    min-width: 8rem;
}

.project-footer-note {
    color: #6b7f8d !important;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.stage-preview-stage2 {
    width: 100%;
    max-width: 560px;
}

.page-stage3 .attribute-selector .btn {
    padding: 0.28rem 1.45rem 0.28rem 0.52rem;
    font-size: 0.78rem;
    border-radius: 0.68rem;
    min-width: 5.35rem;
}

.page-stage3 #stage3Preview {
    width: 100%;
    max-width: 620px;
}

/* W trybie wyboru źródła JS przełącza widok niezależnie od zapisanej grafiki. */
.page-stage3 [id^="attributePanel"][data-source-choice="false"]:has(input[type="radio"]:is([value="custom-attribute"], [value="custom-attribute.svg"]):checked) .custom-attribute-panel {
    display: block !important;
}

.page-stage3 [id^="attributePanel"][data-source-choice="false"]:has(input[type="radio"]:is([value="custom-attribute"], [value="custom-attribute.svg"]):checked) .attribute-suggestion-block {
    display: none !important;
}

.page-stage3 [id^="attributePanel"][data-source-choice="false"]:not(:has(input[type="radio"]:is([value="custom-attribute"], [value="custom-attribute.svg"]):checked)) .custom-attribute-panel {
    display: none !important;
}

.attribute-suggestion-list .list-group-item {
    font-size: 0.9rem;
    line-height: 1.25;
}

.attribute-tag-search {
    position: relative;
}

.attribute-tag-search-group {
    margin-bottom: 0;
}

    .attribute-tag-search-group .attribute-field-label {
        min-width: 10.8rem;
    }

.attribute-suggestion-header {
    display: flex;
    align-items: flex-start;
}

.attribute-suggestion-heading {
    max-width: 100%;
    background: linear-gradient(180deg, rgba(36, 162, 189, 0.2) 0%, rgba(36, 162, 189, 0.14) 100%);
    border-color: rgba(36, 162, 189, 0.42);
    color: #0d6070;
    box-shadow: 0 0.35rem 0.85rem rgba(36, 162, 189, 0.12);
    line-height: 1.25;
}

.attribute-description-hint {
    grid-column: 1 / -1;
    max-width: none;
    margin-top: -0.18rem;
    padding: 0.42rem 0.65rem;
    column-gap: 0.42rem;
    row-gap: 0;
    border-radius: 0.65rem;
    box-shadow: 0 0.35rem 0.85rem rgba(18, 51, 70, 0.06);
}

.attribute-description-hint::before {
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 0.1rem;
}

.attribute-description-hint .wizard-hint-callout__text {
    font-size: 0.82rem;
    line-height: 1.24;
}

.page-stage3 .stage-form-card {
    padding-bottom: 0.78rem !important;
}

.page-stage3 .attribute-count-selector {
    margin-bottom: 0.38rem !important;
}

.page-stage3 .wizard-section-title {
    margin-bottom: 0.32rem;
    padding: 0.24rem 0.58rem;
    font-size: 0.72rem;
}

.page-stage3 .attribute-category-strip {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.16rem 0.26rem;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 0.34rem !important;
    padding-bottom: 0.05rem;
    white-space: nowrap;
    scrollbar-width: thin;
}

.page-stage3 .attribute-category-strip .form-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    min-width: max-content;
    margin-right: 0;
    margin-bottom: 0;
}

.page-stage3 .attribute-category-strip .form-check-input {
    width: 0.72rem;
    height: 0.72rem;
    flex: 0 0 auto;
    margin: 0;
}

.page-stage3 .attribute-category-strip .form-check-label {
    font-size: 0.72rem;
    line-height: 1.12;
}

.page-stage3 .attribute-tag-search {
    margin-bottom: 0.42rem !important;
}

.page-stage3 [id^="attributePanel"] {
    margin-bottom: 0.35rem !important;
}

.page-stage3 .attribute-description-layout.mt-3 {
    margin-top: 0.65rem !important;
}

.page-stage0 .breadcrumb-shell,
.page-stage1 .breadcrumb-shell,
.page-stage2 .breadcrumb-shell,
.page-stage3 .breadcrumb-shell,
.page-stage4 .breadcrumb-shell,
.page-stage5 .breadcrumb-shell {
    margin-top: 0.9rem !important;
    margin-bottom: 0.55rem !important;
}

.custom-radio-label {
    width: 100%;
}

/* Styl całej tabeli debug */
.debug-table {
    border: 2px solid #b3d7ff; /* jasny niebieski */
}

    .debug-table td, .debug-table th {
        border: 1px solid #b3d7ff; /* ten sam kolor dla wewnętrznych linii */
    }
/* Separator sekcji */
.debug-separator td {
    background-color: #e6f2ff; /* bardzo jasny niebieski */
    height: 8px;
    padding: 0;
    border-top: 2px solid #b3d7ff;
    border-bottom: 2px solid #b3d7ff;
}

.color-picker input.color-input {
    width: 6rem;
}

.page-stage2 #colorsContainer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.page-stage2 .stage2-color-option {
    min-width: 0;
}

.page-stage2 .stage2-color-option .color-picker {
    height: 100%;
}

/* Panel administracyjny */
.admin-panel {
    padding: 2rem;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(36, 162, 189, 0.08), rgba(36, 162, 189, 0.02));
}

.admin-section {
    background: #fff;
    border: 1px solid #d6e3f5;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0.75rem 1.25rem rgba(13, 110, 253, 0.08);
}

.admin-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-turquoise);
}

@media (max-width: 991.98px) {
    .wizard-start-video-placeholder {
        min-height: 220px;
    }
}

.admin-switch.form-check,
.admin-analytics-toggle-card.form-check,
.admin-check-card.form-check {
    padding-left: 1rem;
    margin-bottom: 0;
}

.admin-switch,
.admin-analytics-toggle-card,
.admin-check-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 4.35rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(18, 51, 70, 0.08);
    background: linear-gradient(180deg, rgba(36, 162, 189, 0.08), rgba(255, 255, 255, 0.98));
    box-shadow: 0 0.8rem 1.6rem rgba(18, 51, 70, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

    .admin-switch:hover,
    .admin-analytics-toggle-card:hover,
    .admin-check-card:hover {
        transform: translateY(-1px);
        border-color: rgba(36, 162, 189, 0.24);
        box-shadow: 0 1rem 1.9rem rgba(18, 51, 70, 0.1);
    }

    .admin-switch .form-check-input,
    .admin-analytics-toggle-card .form-check-input,
    .admin-check-card .form-check-input {
        -webkit-appearance: none;
        appearance: none;
        position: relative;
        float: none;
        flex-shrink: 0;
        width: 3.25rem;
        height: 1.9rem;
        margin: 0;
        margin-left: 0;
        border: 1px solid rgba(18, 51, 70, 0.12);
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(148, 163, 184, 0.42), rgba(148, 163, 184, 0.24));
        box-shadow: inset 0 0.1rem 0.25rem rgba(15, 23, 42, 0.08);
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .admin-switch .form-check-input::before,
        .admin-analytics-toggle-card .form-check-input::before,
        .admin-check-card .form-check-input::before {
            content: "";
            position: absolute;
            top: 0.15rem;
            left: 0.16rem;
            width: 1.45rem;
            height: 1.45rem;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 0.28rem 0.6rem rgba(15, 23, 42, 0.18);
            transition: transform 0.2s ease;
        }

        .admin-switch .form-check-input:checked,
        .admin-analytics-toggle-card .form-check-input:checked,
        .admin-check-card .form-check-input:checked {
            border-color: rgba(36, 162, 189, 0.34);
            background: linear-gradient(90deg, var(--brand-turquoise) 0%, #4bc0d0 55%, var(--brand-pink) 100%);
            box-shadow: 0 0 0 0.18rem rgba(36, 162, 189, 0.12);
        }

            .admin-switch .form-check-input:checked::before,
            .admin-analytics-toggle-card .form-check-input:checked::before,
            .admin-check-card .form-check-input:checked::before {
                transform: translateX(1.3rem);
            }

        .admin-switch .form-check-input:focus-visible,
        .admin-analytics-toggle-card .form-check-input:focus-visible,
        .admin-check-card .form-check-input:focus-visible {
            outline: none;
            box-shadow: 0 0 0 0.22rem rgba(36, 162, 189, 0.18);
        }

        .admin-switch .form-check-input:disabled,
        .admin-analytics-toggle-card .form-check-input:disabled,
        .admin-check-card .form-check-input:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

    .admin-switch .form-check-label,
    .admin-analytics-toggle-card .form-check-label,
    .admin-check-card .admin-check-card-body {
        margin: 0;
        cursor: pointer;
    }

    .admin-switch .form-check-label,
    .admin-analytics-toggle-card .form-check-label {
        color: #173245;
    }

    .admin-switch:has(.form-check-input:checked),
    .admin-analytics-toggle-card:has(.form-check-input:checked),
    .admin-check-card:has(.form-check-input:checked) {
        border-color: rgba(36, 162, 189, 0.28);
        background: linear-gradient(180deg, rgba(36, 162, 189, 0.14), rgba(255, 255, 255, 0.98));
        box-shadow: 0 1rem 2rem rgba(36, 162, 189, 0.11);
    }

.admin-image-form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: 1rem;
}

.admin-image-save-status {
    min-height: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

    .admin-image-save-status.is-saving {
        color: #0f6b6f;
    }

    .admin-image-save-status.is-success {
        color: #1d7a46;
    }

    .admin-image-save-status.is-error {
        color: #b42318;
    }

.admin-suggestion-group {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.5);
}

.admin-suggestion-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-suggestion-row {
    padding: 0.75rem;
    border-radius: 0.85rem;
    border: 1px dashed rgba(15, 107, 111, 0.25);
    background: rgba(15, 107, 111, 0.05);
}

.admin-suggestion-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
}

.admin-suggestion-text {
    font-size: 0.9rem;
    color: #374151;
}

/* Sekcja inspiracji w etapie 3 */
.attribute-suggestion-list .suggestion-pill {
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
}

    .attribute-suggestion-list .suggestion-pill:hover {
        background: rgba(15, 107, 111, 0.12);
    }

/* Usprawnienia UX/RWD dla czytelniejszego i płynniejszego interfejsu */
body.page-stage0,
body.page-stage1,
body.page-stage2,
body.page-stage3,
body.page-stage4,
body.page-stage5 {
    background: radial-gradient(circle at 8% 8%, rgba(36, 162, 189, 0.13), transparent 34%), radial-gradient(circle at 92% 2%, rgba(232, 68, 114, 0.1), transparent 30%), linear-gradient(180deg, #f8fcff 0%, #f5f7fb 100%);
}

body.page-admin {
    background: linear-gradient(180deg, #f6f2ea 0%, #f8f5ef 100%);
}

.project-brand-shell {
    padding-top: clamp(0.8rem, 1.8vw, 1.25rem);
}

    .project-brand-shell .container {
        display: flex;
        justify-content: center;
    }

.project-brand-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: #1f3548 !important;
}

.project-brand-logo {
    width: clamp(160px, 22vw, 268px);
    height: auto;
    filter: drop-shadow(0 0.65rem 1rem rgba(15, 23, 42, 0.16));
}

.project-brand-caption {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #3f586e;
}

.stage-shell .container-xxl {
    max-width: 1360px;
}

.stage-form-card {
    border: 1px solid rgba(36, 162, 189, 0.24);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 1.25rem !important;
    box-shadow: 0 1.15rem 2.2rem rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(4px);
}

    .stage-form-card .input-group-text {
        border-color: #d5e1ec;
        background-color: #f4f8fb;
        color: #203448;
    }

    .stage-form-card .form-control {
        border-color: #c8d7e2;
    }

        .stage-form-card .form-control:focus {
            border-color: var(--brand-turquoise);
            box-shadow: 0 0 0 0.2rem rgba(36, 162, 189, 0.2);
        }

.wizard-stage-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.3rem, 2vw, 1.85rem);
    letter-spacing: 0.06em;
}

.wizard-project-caption {
    font-size: clamp(0.84rem, 1.1vw, 0.96rem);
}

.wizard-submit-btn,
.wizard-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.72rem 1.35rem;
    border-radius: 999px;
}

.wizard-mode-switch,
.wizard-custom-intro {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(36, 162, 189, 0.18);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(36, 162, 189, 0.08), rgba(36, 162, 189, 0.02));
}

.wizard-mode-switch__body,
.wizard-custom-intro__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex: 1 1 auto;
    min-width: 0;
}

.wizard-mode-switch__copy,
.wizard-custom-intro__copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-width: 0;
}

.wizard-custom-intro__text {
    margin: 0;
    color: #134f62;
    line-height: 1.6;
}

.wizard-mode-switch__preview,
.wizard-custom-intro__preview {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: clamp(6.5rem, 17vw, 8.75rem);
    min-height: 5.75rem;
    padding: 0.35rem;
    border-radius: 1rem;
    border: 1px solid rgba(36, 162, 189, 0.16);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0.8rem 1.6rem rgba(18, 51, 70, 0.08);
}

    .wizard-mode-switch__preview .custom-character-image,
    .wizard-custom-intro__preview .custom-character-image,
    .wizard-custom-intro__image {
        display: block;
        width: auto;
        max-width: 100%;
        height: 100%;
        object-fit: contain;
    }

.wizard-mode-switch .form-check-input {
    align-self: center;
    float: none;
    margin: 0;
    width: 3rem;
    height: 1.6rem;
    cursor: pointer;
}

.wizard-mode-switch .form-check-label {
    cursor: pointer;
    font-weight: 600;
    line-height: 1.35;
}

@media (max-width: 767.98px) {
    .wizard-custom-intro__body,
    .wizard-mode-switch__body {
        flex-direction: column;
        align-items: flex-start;
    }

    .wizard-custom-intro__preview,
    .wizard-mode-switch__preview {
        width: min(100%, 10rem);
    }
}

.custom-character-panel,
.custom-attribute-panel {
    border: 1px dashed rgba(36, 162, 189, 0.26);
    border-radius: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(36, 162, 189, 0.04));
}

.wizard-custom-compact-grid {
    display: grid;
    gap: 0.75rem;
}

.wizard-custom-upload-panel {
    min-width: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(36, 162, 189, 0.16);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.78);
}

.page-stage2 .wizard-custom-intro__preview {
    width: clamp(11rem, 24vw, 14rem);
    min-height: auto;
    aspect-ratio: 639 / 264;
    padding: 0.2rem 0.35rem;
}

.page-stage2 .wizard-custom-intro__image {
    width: 100%;
    height: 100%;
}

.page-stage2 .custom-character-panel {
    padding: 1rem;
    border-style: solid;
    border-color: rgba(36, 162, 189, 0.18);
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.95), rgba(255, 255, 255, 0.98));
}

.page-stage2 .stage2-custom-page-intro {
    margin: -0.9rem 0 1rem;
    color: #536879;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.page-stage2 .stage2-custom-character-layout {
    display: grid;
    grid-template-columns: minmax(15.5rem, 0.78fr) minmax(0, 1.22fr);
    grid-template-areas:
        "intro workflow"
        "intro instructions";
    gap: 0.8rem 1rem;
    align-items: stretch;
}

.page-stage2 .stage2-custom-character-column {
    display: grid;
    gap: 0.56rem;
    align-content: stretch;
    min-width: 0;
}

.page-stage2 .stage2-custom-character-column--intro {
    grid-area: intro;
}

.page-stage2 .stage2-custom-character-column--workflow {
    grid-area: workflow;
}

.page-stage2 .stage2-custom-character-column--instructions {
    grid-area: instructions;
}

.page-stage2 .stage2-custom-hero,
.page-stage2 .stage2-custom-card {
    min-width: 0;
    border: 1px solid rgba(36, 162, 189, 0.14);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: none;
}

.page-stage2 .stage2-custom-hero {
    display: grid;
    align-content: start;
    gap: 0.82rem;
    height: 100%;
    padding: 0.95rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(234, 248, 251, 0.9));
}

.page-stage2 .stage2-custom-hero__copy {
    display: grid;
    gap: 0.32rem;
    min-width: 0;
}

.page-stage2 .stage2-custom-hero__eyebrow {
    color: var(--brand-pink);
    font-size: 0.7rem;
    font-weight: 850;
    line-height: 1.1;
    text-transform: uppercase;
}

.page-stage2 .stage2-custom-hero__title {
    margin: 0;
    color: #243747;
    font-size: 1.28rem;
    font-weight: 850;
    line-height: 1.16;
}

.page-stage2 .stage2-custom-hero__text {
    color: #365061;
    font-size: 0.9rem;
    line-height: 1.42;
}

.page-stage2 .stage2-custom-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    margin-top: 0.04rem;
}

.page-stage2 .stage2-custom-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(232, 68, 114, 0.24);
    border-radius: 999px;
    background: rgba(232, 68, 114, 0.08);
    color: #74304b;
    font-size: 0.7rem;
    font-weight: 750;
    line-height: 1.1;
}

.page-stage2 .stage2-custom-example {
    display: grid;
    gap: 0.38rem;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    align-self: end;
}

.page-stage2 .stage2-custom-example__media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    aspect-ratio: 1190 / 920;
    min-height: 0;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(36, 162, 189, 0.14);
    border-radius: 0.72rem;
    background: #ffffff;
}

.page-stage2 .stage2-custom-example__image {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

.page-stage2 .stage2-custom-example__image--source {
    object-position: center center;
}

.page-stage2 .stage2-custom-example__image--preview {
    border-left: 1px solid rgba(36, 162, 189, 0.12);
    object-position: center center;
}

.page-stage2 .stage2-custom-example__labels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.58rem;
    color: #38576a;
    font-size: 0.7rem;
    font-weight: 850;
    line-height: 1.1;
    text-align: center;
}

.page-stage2 .stage2-custom-example__labels span {
    display: inline-flex;
    min-height: 1.42rem;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.62rem;
    border: 1px solid rgba(36, 162, 189, 0.2);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 249, 252, 0.9));
    box-shadow: 0 0.22rem 0.58rem rgba(36, 162, 189, 0.11);
}

.page-stage2 .stage2-custom-card {
    display: grid;
    gap: 0.62rem;
    align-content: start;
    padding: 0.78rem;
}

.page-stage2 .stage2-custom-card--compact {
    gap: 0.42rem;
}

.page-stage2 .stage2-custom-card__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
}

.page-stage2 .stage2-custom-card__heading-copy {
    min-width: 0;
    text-align: left;
    justify-items: start;
}

.page-stage2 .stage2-custom-card__heading .wizard-section-title {
    justify-self: start;
    margin-bottom: 0.2rem;
    text-align: left;
}

.page-stage2 .stage2-custom-card__hint {
    margin: 0;
    color: #536879;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.32;
}

.page-stage2 .stage2-custom-card__hint--full {
    padding-left: 0;
    text-align: left;
}

.page-stage2 .stage2-custom-instructions {
    min-width: 0;
    padding-block: 0.62rem;
}

.page-stage2 .custom-character-panel--oto #customCharacterPhotoValidation {
    width: fit-content;
    max-width: 100%;
    justify-self: start;
    padding: 0.26rem 0.48rem;
    font-size: 0.72rem;
    line-height: 1.18;
}

.page-stage2 .custom-character-panel--oto .stage2-custom-instructions .stage2-custom-step-title--optional {
    width: fit-content;
    max-width: 100%;
    justify-self: start;
    margin-bottom: 0.5rem;
}

.page-stage2 .stage2-custom-attribute-fields--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem 0.7rem;
}

.page-stage2 .stage2-custom-attribute-field {
    min-width: 0;
}

.page-stage2 .stage2-custom-attribute-field .form-label {
    margin-bottom: 0.24rem;
    color: #203647;
    font-size: 0.86rem;
    line-height: 1.22;
}

.page-stage2 .stage2-custom-attribute-field .form-control {
    min-height: 2.34rem;
    padding-block: 0.42rem;
    font-size: 0.9rem;
}

.page-stage2 .stage2-attributes-optional-instructions {
    display: grid;
    gap: 0.42rem;
    margin-top: 0.72rem;
}

.page-stage2 .custom-character-textarea {
    min-height: 3.2rem;
    max-height: 4rem;
    padding: 0.58rem 0.68rem;
    color: #203647;
    font-size: 0.9rem;
    line-height: 1.35;
    overflow-y: hidden;
}

.page-stage2 .stage2-custom-instructions-hint {
    margin: 0;
    padding: 0.46rem 0.58rem;
    border-radius: 0.66rem;
}

.page-stage2 .wizard-custom-upload-panel {
    padding: 0.78rem;
    border-radius: 0.8rem;
}

.page-stage2 .wizard-custom-upload-panel .custom-upload-picker {
    display: grid;
    grid-template-columns: minmax(6.2rem, auto) minmax(0, 1fr);
    gap: 0.5rem;
    align-items: center;
}

.page-stage2 .wizard-custom-upload-panel .stage2-couple-upload-picker {
    grid-template-columns: minmax(6.2rem, auto) minmax(0, 1fr) auto;
}

.page-stage2 .wizard-custom-upload-panel .custom-upload-button {
    min-width: 6.2rem;
    min-height: 2.18rem;
    padding: 0.34rem 0.66rem;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0;
}

.page-stage2 .wizard-custom-upload-panel .custom-upload-file-name {
    min-width: 0;
}

.page-stage2 .wizard-custom-upload-panel .custom-upload-file-name.is-selected {
    border-color: rgba(36, 162, 189, 0.2);
    background: rgba(36, 162, 189, 0.035);
    color: #98a7b4;
    font-size: 0.78rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-stage2 .custom-character-panel--attributes .custom-upload-picker--selected {
    display: none;
}

.page-stage2 .stage2-attributes-step-heading {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 0.42rem;
    margin-bottom: 0.46rem;
    color: #263442;
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.18;
}

.page-stage2 .stage2-attributes-step-heading__badge {
    display: inline-flex;
    width: 1.42rem;
    height: 1.42rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #d83d70;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0.24rem 0.58rem rgba(216, 61, 112, 0.22);
}

.page-stage2 .stage2-attributes-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.48rem;
    align-items: center;
    min-height: 4.1rem;
    margin-top: 0.54rem;
    padding: 0.56rem 0.62rem;
    border: 1px dashed rgba(36, 162, 189, 0.48);
    border-radius: 8px;
    background: rgba(234, 251, 255, 0.76);
}

.page-stage2 .stage2-attributes-upload-row.is-filled {
    border-style: solid;
    border-color: rgba(20, 184, 166, 0.34);
    background: #edfbf8;
}

.page-stage2 .stage2-attributes-upload-row.is-empty {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

.page-stage2 .stage2-attributes-upload-row.is-empty .custom-character-clear-button {
    display: none;
}

.page-stage2 .stage2-attributes-upload-row.is-empty .stage2-attributes-upload-actions {
    justify-content: center;
}

.page-stage2 .stage2-attributes-upload-file {
    display: grid;
    min-width: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.42rem;
    align-items: center;
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.page-stage2 .stage2-attributes-upload-thumb {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(36, 162, 189, 0.18);
    border-radius: 8px;
    background: #ffffff;
    object-fit: cover;
}

.page-stage2 .stage2-attributes-upload-file-name {
    min-width: 0;
    overflow: hidden;
    color: #7b8da0;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-stage2 .stage2-attributes-upload-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.34rem;
    align-items: center;
    justify-content: flex-end;
}

.page-stage2 .stage2-attributes-upload-button,
.page-stage2 .stage2-attributes-upload-actions .btn {
    min-height: 2.1rem;
    padding: 0.36rem 0.72rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 850;
    line-height: 1.12;
    white-space: nowrap;
}

.page-stage2 .stage2-attributes-upload-legal {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.24;
}

.page-stage2 .stage2-attribute-label {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.34rem;
    line-height: 1.2;
}

.page-stage2 .stage2-attribute-label__icon {
    display: inline-flex;
    width: 1.78rem;
    height: 1.78rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(36, 162, 189, 0.32);
    border-radius: 8px;
    background: rgba(234, 251, 255, 0.72);
    color: #16879f;
}

.page-stage2 .stage2-attribute-label__icon svg {
    width: 1.3rem;
    height: 1.3rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-stage2 .stage2-custom-attribute-field.is-disabled {
    opacity: 0.62;
}

.page-stage2 .stage2-custom-attribute-field input.is-disabled {
    cursor: not-allowed;
    background: #f3f6f9;
}

.page-stage2 .wizard-custom-upload-panel .form-text {
    margin-top: 0.42rem !important;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.24;
}

.page-stage2 .custom-character-upload-progress {
    margin-top: 0.48rem;
    display: grid;
    gap: 0.28rem;
}

.page-stage2 .custom-character-upload-progress-track {
    height: 0.5rem;
}

.page-stage2 .custom-character-upload-progress-label {
    font-size: 0.76rem;
}

.page-stage2 .custom-character-photo-preview {
    margin-top: 0.55rem;
    display: inline-grid;
    width: fit-content;
    max-width: 100%;
    grid-template-columns: auto auto;
    gap: 0.42rem;
    align-items: center;
    padding: 0.34rem 0.42rem;
}

.page-stage2 .stage2-couple-upload-picker .stage2-couple-photo-preview {
    margin-top: 0;
    padding: 0.24rem 0.32rem;
}

.page-stage2 .stage2-couple-upload-picker .stage2-couple-photo-preview__image {
    width: 2.78rem;
}

.page-stage2 .stage2-couple-upload-picker .custom-character-clear-button {
    padding-inline: 0.5rem;
}

.page-stage2 .custom-character-photo-preview__image {
    width: 3.45rem;
}

.page-stage2 .custom-character-photo-preview__meta {
    min-width: 0;
    justify-content: flex-start;
}

.page-stage2 .custom-character-panel--attributes .custom-character-photo-preview {
    display: grid;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.42rem 0.5rem;
}

.page-stage2 .custom-character-panel--attributes .custom-character-photo-preview__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.42rem;
}

.page-stage2 .custom-character-panel--attributes .custom-character-photo-preview__label {
    color: #38576a;
    font-size: 0.8rem;
    font-weight: 700;
}

.page-stage2 .custom-character-panel--attributes .stage2-attributes-upload-file {
    display: grid;
    width: auto;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.42rem;
    margin-top: 0;
    padding: 0;
}

.page-stage2 .custom-character-panel--attributes .stage2-attributes-upload-file .stage2-attributes-upload-thumb {
    width: 48px;
    height: 48px;
}

.page-stage2 .custom-character-change-button {
    border-radius: 999px;
    padding: 0.26rem 0.58rem;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.1;
    white-space: nowrap;
}

.page-stage2 .custom-character-clear-button {
    padding: 0.26rem 0.58rem;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.1;
    white-space: nowrap;
}

.page-stage2 .wizard-custom-upload-panel .wizard-alert {
    margin-top: 0.45rem !important;
    padding: 0.45rem 0.58rem;
    line-height: 1.25;
}

.page-stage2 .custom-character-generation-panel {
    margin-top: 0.55rem;
    padding: 0.78rem;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(253, 246, 248, 0.97));
    box-shadow: none;
}

.page-stage2 .custom-character-generation-panel--attributes {
    margin-top: 0.76rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 253, 254, 0.96));
}

.page-stage2 .custom-character-generation-grid {
    grid-template-columns: minmax(11.5rem, 0.38fr) minmax(0, 1fr);
    gap: 0.62rem;
}

.page-stage2 .custom-character-generation-actions {
    gap: 0.34rem;
}

.page-stage2 .custom-character-generate-button {
    min-height: 2.34rem;
    padding-block: 0.36rem;
    font-size: 0.86rem;
    line-height: 1.12;
}

.page-stage2 .custom-character-cancel-button {
    padding-block: 0.34rem;
    font-size: 0.84rem;
}

.page-stage2 .custom-character-generation-copy {
    gap: 0.3rem;
    align-content: center;
}

.page-stage2 #customCharacterAiStatus {
    line-height: 1.25;
}

.page-stage2 #customCharacterGenerateHelp {
    line-height: 1.25;
}

.page-stage2 .custom-character-generation-progress {
    gap: 0.28rem;
}

.page-stage2 .custom-character-generation-progress-track {
    height: 0.5rem;
}

.page-stage2 .custom-character-generation-progress-label {
    font-size: 0.76rem;
}

.page-stage2 .custom-character-attempt-info {
    padding: 0.42rem 0.55rem;
    line-height: 1.22;
}

.page-stage2 .custom-character-variant-gallery {
    display: grid;
    gap: 0.48rem;
    margin-top: 0.72rem;
    padding-top: 0.68rem;
    border-top: 1px solid rgba(36, 162, 189, 0.2);
}

.page-stage2 .custom-character-variant-gallery__title {
    margin: 0;
    color: #243747;
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.2;
}

.page-stage2 .custom-character-variant-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.25rem, 8.25rem));
    gap: 0.44rem;
    justify-content: start;
}

.page-stage2 .custom-character-variant-card {
    position: relative;
    display: grid;
    gap: 0.28rem;
    min-width: 0;
    padding: 0.35rem;
    border: 2px solid rgba(15, 23, 42, 0.14);
    border-radius: 0.62rem;
    background: rgba(255, 255, 255, 0.96);
    color: #243747;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.page-stage2 .custom-character-variant-card:hover:not(:disabled),
.page-stage2 .custom-character-variant-card:focus-visible {
    border-color: rgba(36, 162, 189, 0.7);
    box-shadow: 0 0.45rem 0.9rem rgba(18, 51, 70, 0.1);
    transform: translateY(-1px);
}

.page-stage2 .custom-character-variant-card.is-selected {
    border-color: #128ba4;
    background: #f0fbfd;
    box-shadow: 0 0 0 0.2rem rgba(36, 162, 189, 0.18);
}

.page-stage2 .custom-character-variant-card:disabled {
    opacity: 0.62;
    cursor: wait;
}

.page-stage2 .custom-character-variant-card__image {
    display: block;
    width: 100%;
    height: 5.5rem;
    border-radius: 0.4rem;
    background: #fff;
    object-fit: contain;
}

.page-stage2 .custom-character-variant-card__number {
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.page-stage2 .custom-character-variant-card__selected {
    position: absolute;
    top: 0.42rem;
    right: 0.42rem;
    padding: 0.18rem 0.34rem;
    border-radius: 999px;
    background: #128ba4;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 850;
    line-height: 1;
}

.page-stage1 .stage1-preview-shell,
.page-stage2 .stage2-attributes-preview-shell,
.page-stage3 .stage3-couple-preview-shell--custom-attributes {
    display: grid;
    width: 100%;
    align-self: start;
    justify-items: center;
}

.page-stage2 .stage2-attributes-preview-panel {
    display: grid;
    width: min(100%, 34rem);
    min-height: 39rem;
    align-self: start;
    align-content: start;
    justify-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.95rem;
    background: #fff;
}

.page-stage2 .stage2-attributes-preview-panel__title {
    margin: 0;
    color: #243747;
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.2;
}

.page-stage2 .stage2-attributes-preview-panel__empty {
    display: grid;
    min-height: 28rem;
    width: 100%;
    place-items: center;
    padding: 1.2rem;
    border: 1px dashed rgba(36, 162, 189, 0.32);
    border-radius: 0.85rem;
    color: #536879;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    background: rgba(248, 251, 253, 0.82);
}

.page-stage1 .stage1-project-preview-placeholder,
.page-stage2 .stage2-attributes-preview-placeholder {
    position: relative;
    width: 100%;
    min-height: min(calc(100vh - 10.75rem), 38rem);
    padding: 1.35rem;
    border: 1px solid rgba(36, 162, 189, 0.18);
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 16%, rgba(253, 235, 242, 0.95), transparent 32%),
        radial-gradient(circle at 82% 18%, rgba(234, 251, 255, 0.95), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 251, 0.94));
    box-shadow: 0 1.15rem 2.35rem rgba(38, 52, 66, 0.1);
    color: #263442;
    gap: 0.7rem;
}

.page-stage1 .stage1-project-preview-placeholder strong,
.page-stage2 .stage2-attributes-preview-placeholder strong {
    color: #263442;
    font-size: 1.06rem;
    font-weight: 900;
    line-height: 1.18;
}

.page-stage1 .stage1-project-preview-placeholder span,
.page-stage2 .stage2-attributes-preview-placeholder span {
    max-width: 20rem;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.38;
    text-align: center;
}

.page-stage1 .stage1-project-preview-placeholder__icon,
.page-stage2 .stage2-attributes-preview-placeholder__icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    color: #d83d70;
    box-shadow: 0 0.48rem 1rem rgba(38, 52, 66, 0.12);
}

.page-stage1 .stage1-project-preview-placeholder__icon svg,
.page-stage2 .stage2-attributes-preview-placeholder__icon svg {
    width: 1.72rem;
    height: 1.72rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-stage1 .stage1-project-preview-placeholder__card,
.page-stage2 .stage2-attributes-preview-placeholder__card {
    display: grid;
    width: min(58%, 12rem);
    aspect-ratio: 34 / 38;
    place-items: center;
    margin-top: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 0.72rem 1.45rem rgba(38, 52, 66, 0.12);
}

.page-stage1 .stage1-project-preview-placeholder__card span,
.page-stage2 .stage2-attributes-preview-placeholder__card span {
    width: 52%;
    aspect-ratio: 1;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(253, 235, 242, 0.95), rgba(234, 251, 255, 0.95));
}

.page-stage2 .custom-character-note--summary {
    margin-top: 0.55rem;
    line-height: 1.3;
}

.page-stage2 .stage2-couple-custom-panel {
    margin-top: 0 !important;
}

.page-stage2 .stage2-couple-custom-layout {
    grid-template-columns: minmax(15.5rem, 0.82fr) minmax(0, 1.18fr);
}

.page-stage2 .stage2-couple-example {
    display: grid;
    gap: 0.38rem;
    width: 100%;
    align-self: end;
}

.page-stage2 .stage2-couple-example__media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    width: 100%;
    aspect-ratio: 4 / 3.55;
    overflow: hidden;
    border: 1px solid rgba(36, 162, 189, 0.14);
    border-radius: 0.72rem;
    background: #ffffff;
}

.page-stage2 .stage2-couple-example__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.page-stage2 .stage2-couple-example .stage2-custom-example__labels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-stage2 .stage2-couple-photo-preview {
    width: fit-content;
}

.page-stage2 .stage2-couple-photo-preview__image {
    width: 2.95rem;
    aspect-ratio: 3 / 4;
    object-fit: contain;
}

.page-stage2 .stage2-couple-upload-button {
    margin-top: 0.28rem;
}

.page-stage2 .stage2-couple-generate-card {
    gap: 0.72rem;
}

.page-stage2 .stage2-couple-style-pickers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.page-stage2 .stage2-couple-background-picker,
.page-stage2 .stage2-couple-outfit-picker {
    max-width: 14rem;
}

.page-stage2 .stage2-couple-background-picker .wizard-start-profile-picker__button,
.page-stage2 .stage2-couple-outfit-picker .wizard-start-profile-picker__button {
    min-height: 2.28rem;
    padding: 0.28rem 0.48rem;
    border-width: 1.5px;
    border-color: rgba(36, 162, 189, 0.44);
    border-radius: 0.5rem;
    box-shadow: none;
    font-size: 0.78rem;
}

.page-stage2 .stage2-couple-background-picker .wizard-start-profile-group__icon,
.page-stage2 .stage2-couple-outfit-picker .wizard-start-profile-group__icon {
    width: 1.55rem;
    height: 1.55rem;
    border-color: rgba(36, 162, 189, 0.24);
    background: #eef9fb;
    color: #128ba4;
}

.page-stage2 .stage2-couple-background-picker .wizard-start-profile-group__icon .wizard-start-profile-label__svg,
.page-stage2 .stage2-couple-outfit-picker .wizard-start-profile-group__icon .wizard-start-profile-label__svg {
    width: 1rem;
    height: 1rem;
}

.page-stage2 .stage2-couple-background-picker .wizard-start-profile-picker__list,
.page-stage2 .stage2-couple-outfit-picker .wizard-start-profile-picker__list {
    max-height: 7rem;
}

.page-stage2 .stage2-couple-background-picker .wizard-start-profile-picker__option,
.page-stage2 .stage2-couple-outfit-picker .wizard-start-profile-picker__option {
    min-height: 1.88rem;
    padding: 0.28rem 0.45rem;
    font-size: 0.78rem;
}

.page-stage2 .stage2-couple-generation-panel {
    margin-top: 0.1rem;
}

.page-stage2 .stage2-couple-preview-shell {
    display: grid;
    justify-items: center;
    align-self: stretch;
}

.page-stage2 #coupleProjectPreview {
    width: 100%;
}

.page-stage2 .stage2-couple-preview-placeholder {
    width: min(100%, 560px);
}

.page-stage2 .stage2-couple-project-preview-image.shadow-prev {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
}

@media (min-width: 992px) {
    .page-stage2 .stage2-couple-preview-shell {
        min-height: min(calc(100vh - 10.75rem), 44rem);
    }

    body.page-stage2 .stage-shell--couple-photo .stage2-couple-preview-shell {
        position: sticky;
        top: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .page-stage2 .stage2-couple-preview-placeholder {
        min-height: min(calc(100vh - 12rem), 34rem);
    }

    .page-stage2 .stage2-couple-project-preview-image.shadow-prev {
        width: min(100%, 640px);
        max-height: min(calc(100vh - 10.75rem), 44rem);
    }
}

@media (max-width: 991.98px) {
    .page-stage2 .stage2-custom-character-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "workflow"
            "instructions";
        gap: 0.62rem;
    }
}

@media (max-width: 767.98px) {
    .page-stage2 .stage2-custom-character-layout {
        gap: 0.68rem;
    }

    .page-stage2 .stage2-custom-hero {
        padding: 0.82rem;
    }

    .page-stage2 .stage2-custom-hero__title {
        font-size: 1.14rem;
    }

    .page-stage2 .stage2-custom-example {
        width: 100%;
    }

    .page-stage2 .wizard-custom-upload-panel .custom-upload-picker,
    .page-stage2 .stage2-custom-attribute-fields--grid,
    .page-stage2 .custom-character-generation-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .page-stage2 .custom-character-variant-list {
        display: flex;
        gap: 0.58rem;
        padding: 0.2rem;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .page-stage2 .custom-character-variant-card {
        flex: 0 0 min(7.25rem, 36vw);
        scroll-snap-align: start;
    }

    .page-stage2 .custom-character-variant-card__image {
        height: 5.25rem;
    }

    .page-stage2 .custom-character-panel--attributes .custom-character-photo-preview__meta {
        grid-template-columns: 1fr;
    }

    .page-stage2 .custom-character-change-button {
        width: 100%;
    }

    .page-stage2 .wizard-custom-upload-panel .custom-upload-button,
    .page-stage2 .custom-character-clear-button,
    .page-stage2 .custom-character-cancel-button {
        width: 100%;
    }

    .page-stage2 .stage2-custom-card,
    .page-stage2 .wizard-custom-upload-panel,
    .page-stage2 .custom-character-generation-panel {
        padding: 0.78rem;
    }

    .page-stage2 .stage2-attributes-preview-panel {
        min-height: auto;
        padding: 0.82rem;
    }

    .page-stage2 .stage2-attributes-preview-panel__empty {
        min-height: 18rem;
    }
}

.page-stage3 .custom-attribute-panel {
    padding: 1rem;
    border-style: solid;
    border-color: rgba(36, 162, 189, 0.18);
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.95), rgba(255, 255, 255, 0.98));
}

.page-stage3 .stage3-couple-text-fields {
    display: grid;
    gap: 0.46rem;
}

.page-stage3 .stage3-couple-dedication-heading {
    width: fit-content;
    margin: 0.28rem 0 0.02rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(36, 162, 189, 0.42);
    border-radius: 999px;
    background: rgba(36, 162, 189, 0.1);
    color: #0f6f86;
    font-size: 0.74rem;
    font-weight: 850;
    line-height: 1.18;
}

.page-stage3 .stage3-couple-dedication-field .attribute-field-label {
    min-width: 10.6rem;
}

.page-stage3 .stage3-couple-dedication-field textarea.form-control {
    min-height: 2.72rem;
    resize: vertical;
}

.page-stage3 .stage3-couple-font-style {
    display: grid;
    gap: 0.35rem;
    padding: 0.56rem 0.68rem;
    border: 1px solid rgba(36, 162, 189, 0.18);
    border-radius: 8px;
    background: rgba(248, 251, 253, 0.78);
}

.page-stage3 .stage3-couple-font-style .wizard-section-title {
    width: fit-content;
    margin-bottom: 0;
}

.page-stage3 .stage3-couple-font-style__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.46rem 1.05rem;
}

.page-stage3 .stage3-couple-font-style__options .form-check {
    margin-bottom: 0;
}

.page-stage3 .stage3-couple-preview-shell {
    display: grid;
    justify-items: center;
    align-self: stretch;
}

.page-stage3 #coupleTextPreview {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
}

@media (min-width: 992px) {
    .page-stage3 .stage3-couple-preview-shell {
        min-height: min(calc(100vh - 8.9rem), 46rem);
    }

    .page-stage3 #coupleTextPreview {
        width: min(100%, 660px);
        max-height: min(calc(100vh - 8.9rem), 46rem);
    }

    .page-stage3 .stage3-couple-preview-shell--custom-attributes {
        min-height: 0;
        align-self: start;
        max-width: 34rem;
    }

    .page-stage3 .stage3-couple-preview-shell--custom-attributes #coupleTextPreview {
        width: auto;
        max-width: min(100%, 34rem);
        max-height: min(calc(100vh - 8.15rem), 820px);
    }
}

.page-stage3 .stage3-custom-attribute-layout {
    display: grid;
    grid-template-columns: minmax(15.5rem, 0.78fr) minmax(0, 1.22fr);
    gap: 0.8rem 1rem;
    align-items: stretch;
}

.page-stage3 .stage3-custom-attribute-column {
    display: grid;
    gap: 0.56rem;
    align-content: stretch;
    min-width: 0;
}

.page-stage3 .stage3-custom-attribute-column--intro {
    align-content: start;
}

.page-stage3 .stage3-custom-attribute-column--workflow {
    align-content: start;
}

.page-stage3 .stage2-custom-hero,
.page-stage3 .stage2-custom-card {
    min-width: 0;
    border: 1px solid rgba(36, 162, 189, 0.14);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: none;
}

.page-stage3 .stage2-custom-hero {
    display: grid;
    align-content: start;
    gap: 0.82rem;
    padding: 0.95rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(234, 248, 251, 0.9));
}

.page-stage3 .stage2-custom-hero__copy {
    display: grid;
    gap: 0.32rem;
    min-width: 0;
}

.page-stage3 .stage2-custom-hero__eyebrow {
    color: var(--brand-pink);
    font-size: 0.7rem;
    font-weight: 850;
    line-height: 1.1;
    text-transform: uppercase;
}

.page-stage3 .stage2-custom-hero__title {
    margin: 0;
    color: #243747;
    font-size: 1.28rem;
    font-weight: 750;
    line-height: 1.16;
}

.page-stage3 .stage2-custom-hero__text {
    color: #365061;
    font-size: 0.9rem;
    line-height: 1.42;
}

.page-stage3 .stage3-custom-attribute-hero .stage2-custom-hero__text {
    font-size: 0.82rem;
    line-height: 1.3;
}

.page-stage3 .stage2-custom-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    margin-top: 0.04rem;
}

.page-stage3 .stage2-custom-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(232, 68, 114, 0.24);
    border-radius: 999px;
    background: rgba(232, 68, 114, 0.08);
    color: #74304b;
    font-size: 0.7rem;
    font-weight: 750;
    line-height: 1.1;
}

.page-stage3 .stage3-custom-attribute-example {
    display: grid;
    gap: 0.38rem;
    width: 100%;
    justify-self: stretch;
    align-self: end;
}

.page-stage3 .attribute-description-slot {
    min-width: 0;
}

.page-stage3 .attribute-description-slot--custom {
    display: grid;
}

.page-stage3 .attribute-description-slot--custom:empty {
    display: none;
}

.page-stage3 .attribute-description-slot--custom .attribute-description-layout,
.page-stage3 .attribute-description-slot--custom .attribute-description-layout.mt-3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.42rem;
    margin-top: 0.56rem !important;
}

.page-stage3 .attribute-description-slot--custom .attribute-description-fields {
    gap: 0.32rem;
}

.page-stage3 .attribute-description-slot--custom .wizard-section-title {
    margin-bottom: 0.12rem;
    padding-block: 0.2rem;
    font-size: 0.84rem;
    line-height: 1.2;
}

.page-stage3 .attribute-description-slot--custom .attribute-line-group {
    min-width: 0;
    margin-bottom: 0.24rem;
}

.page-stage3 .attribute-description-slot--custom .attribute-line-group .attribute-field-label {
    min-width: 5.7rem;
    padding: 0.28rem 0.52rem;
    font-size: 0.82rem;
    line-height: 1.15;
}

.page-stage3 .attribute-description-slot--custom .attribute-line-group .form-control {
    min-width: 0;
    min-height: 2.1rem;
    padding: 0.28rem 0.58rem;
    font-size: 0.86rem;
    line-height: 1.2;
}

.page-stage3 .attribute-description-slot--custom .attribute-description-hint {
    margin-top: 0.02rem !important;
    padding: 0.38rem 0.56rem;
    font-size: 0.72rem;
    line-height: 1.2;
}

.page-stage3 .stage3-custom-attribute-example .stage2-custom-example__media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    aspect-ratio: 1190 / 760;
    min-height: 0;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(36, 162, 189, 0.14);
    border-radius: 0.72rem;
    background: #ffffff;
}

.page-stage3 .stage3-custom-attribute-example .stage2-custom-example__image {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

.page-stage3 .stage3-custom-attribute-example .stage2-custom-example__image--source {
    object-fit: cover;
}

.page-stage3 .stage3-custom-attribute-example .stage2-custom-example__image--preview {
    padding: 0;
    border-left: 1px solid rgba(36, 162, 189, 0.12);
    background: #ffffff;
    object-fit: cover;
}

.page-stage3 .stage3-custom-attribute-example .stage2-custom-example__labels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.58rem;
    color: #38576a;
    font-size: 0.7rem;
    font-weight: 850;
    line-height: 1.1;
    text-align: center;
}

.page-stage3 .stage3-custom-attribute-example .stage2-custom-example__labels span {
    display: inline-flex;
    min-height: 1.42rem;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.62rem;
    border: 1px solid rgba(36, 162, 189, 0.2);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 249, 252, 0.9));
    box-shadow: 0 0.22rem 0.58rem rgba(36, 162, 189, 0.11);
    color: #38576a;
    font-size: 0.7rem;
    font-weight: 850;
    line-height: 1.1;
    text-align: center;
}

.page-stage3 .stage3-custom-attribute-step {
    display: grid;
    gap: 0.62rem;
    align-content: start;
    padding: 0.78rem;
}

.page-stage3 .stage2-custom-card__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
}

.page-stage3 .stage2-custom-card__heading-copy {
    min-width: 0;
    text-align: left;
    justify-items: start;
}

.page-stage3 .stage2-custom-card__heading .wizard-section-title {
    justify-self: start;
    margin-bottom: 0.2rem;
    text-align: left;
}

.page-stage3 .stage2-custom-card__hint {
    margin: 0;
    color: #536879;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.32;
}

.page-stage3 .stage2-custom-card__hint--full {
    padding-left: 0;
    text-align: left;
}

.page-stage3 .stage3-custom-attribute-step .custom-character-textarea {
    min-height: 4.2rem;
    max-height: 5.4rem;
    padding: 0.48rem 0.64rem;
    color: #203647;
    font-size: 0.9rem;
    line-height: 1.35;
}

.page-stage3 .wizard-custom-upload-panel.stage3-custom-attribute-step--optional {
    gap: 0.36rem;
    padding: 0.58rem 0.68rem;
    border-color: rgba(36, 162, 189, 0.08) !important;
    background: rgba(255, 255, 255, 0.48) !important;
}

.page-stage3 .stage3-custom-attribute-step--optional .wizard-section-title {
    margin-bottom: 0.06rem;
    padding: 0.14rem 0.44rem;
    color: #5f7280;
    font-size: 0.7rem;
    font-weight: 750;
}

.page-stage3 .stage3-custom-attribute-step--upload .custom-upload-picker {
    display: grid;
    grid-template-columns: minmax(6.2rem, auto) minmax(0, 1fr) auto;
    gap: 0.38rem;
    align-items: center;
}

.page-stage3 .stage3-custom-attribute-step--upload .custom-upload-button,
.page-stage3 .stage3-custom-attribute-step--upload .clear-custom-attribute-reference {
    min-height: 2rem;
    padding: 0.26rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    white-space: nowrap;
}

.page-stage3 .stage3-custom-attribute-step--upload .custom-upload-file-name {
    min-width: 0;
    min-height: 2rem;
    padding-block: 0.26rem;
    color: #748591;
    font-size: 0.78rem;
}

.page-stage3 .stage3-custom-attribute-step--upload .custom-upload-file-name.is-selected {
    border-color: rgba(36, 162, 189, 0.2);
    background: rgba(36, 162, 189, 0.035);
    color: #6f8190;
    font-size: 0.78rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-stage3 .stage3-custom-attribute-step--upload .form-text,
.page-stage3 .stage3-custom-attribute-step--description .form-text {
    margin-top: 0.42rem !important;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.24;
}

.page-stage3 .stage3-custom-attribute-step--upload .form-text {
    margin-top: 0.24rem !important;
    color: #7b8994;
    font-size: 0.7rem;
}

.page-stage3 .custom-attribute-ai-panel {
    margin: 0;
    padding: 0.62rem;
    border: 1px solid rgba(36, 162, 189, 0.16);
    border-radius: 0.72rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(253, 246, 248, 0.97));
    box-shadow: none;
}

.page-stage3 .custom-attribute-ai-panel .custom-character-generation-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.52rem;
}

.page-stage3 .custom-attribute-ai-panel .custom-character-generation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.page-stage3 .custom-attribute-ai-panel .custom-character-generate-button {
    min-height: 2.34rem;
    min-width: min(100%, 13.5rem);
    padding-block: 0.36rem;
    font-size: 0.86rem;
    line-height: 1.12;
}

.page-stage3 .custom-attribute-ai-panel .custom-character-cancel-button {
    padding-block: 0.34rem;
    font-size: 0.84rem;
}

.page-stage3 .custom-attribute-ai-panel .custom-character-generation-copy {
    gap: 0.3rem;
    align-content: center;
}

.page-stage3 .custom-attribute-ai-panel .custom-character-generation-progress {
    gap: 0.28rem;
}

.page-stage3 .custom-attribute-ai-panel .custom-character-generation-progress-track {
    height: 0.5rem;
}

.page-stage3 .custom-attribute-ai-panel .custom-character-generation-progress-label {
    font-size: 0.76rem;
}

.page-stage3 .custom-attribute-ai-panel .custom-character-attempt-info {
    padding: 0.42rem 0.55rem;
    line-height: 1.22;
}

.page-stage3 .custom-character-note--summary {
    margin-top: 0.18rem;
    line-height: 1.3;
}

@media (max-width: 991.98px) {
    .page-stage3 .stage3-custom-attribute-layout {
        grid-template-columns: 1fr;
        gap: 0.62rem;
    }
}

@media (max-width: 767.98px) {
    .page-stage3 .stage3-custom-attribute-layout {
        gap: 0.68rem;
    }

    .page-stage3 .stage2-custom-hero {
        padding: 0.82rem;
    }

    .page-stage3 .stage2-custom-hero__title {
        font-size: 1.14rem;
    }

    .page-stage3 .stage3-custom-attribute-step--upload .custom-upload-picker,
    .page-stage3 .custom-attribute-ai-panel .custom-character-generation-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .page-stage3 .stage3-custom-attribute-step--upload .custom-upload-button,
    .page-stage3 .stage3-custom-attribute-step--upload .clear-custom-attribute-reference,
    .page-stage3 .custom-attribute-ai-panel .custom-character-cancel-button {
        width: 100%;
    }

    .page-stage3 .stage2-custom-card,
    .page-stage3 .wizard-custom-upload-panel,
    .page-stage3 .custom-character-generation-panel {
        padding: 0.78rem;
    }
}

.custom-character-hero {
    display: flex;
    justify-content: center;
}

.custom-character-hero__media {
    width: min(100%, 18rem);
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(36, 162, 189, 0.16);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0.8rem 1.6rem rgba(18, 51, 70, 0.08);
}

.custom-character-image {
    display: block;
    width: 100%;
    height: auto;
}

.custom-character-textarea {
    min-height: 0;
    resize: none;
    overflow-y: auto;
}

.custom-character-textarea::placeholder {
    color: #9daab8;
    opacity: 1;
    font-weight: 500;
}

.custom-upload-picker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.custom-upload-button {
    flex: 0 0 auto;
    min-width: 12rem;
}

.custom-upload-button.is-disabled {
    opacity: 0.48;
    filter: grayscale(0.35);
    cursor: not-allowed;
    pointer-events: none;
}

.custom-upload-file-name {
    flex: 1 1 auto;
    background-color: #fff;
}

    .custom-upload-file-name[readonly] {
        cursor: default;
    }

    .custom-upload-file-name.is-selected {
        border-color: rgba(36, 162, 189, 0.42);
        background: rgba(36, 162, 189, 0.08);
        color: #134f62;
        font-weight: 600;
    }

.custom-character-photo-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    padding: 0.56rem;
    border: 1px solid rgba(36, 162, 189, 0.18);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.92);
}

.custom-character-photo-preview__image {
    width: 5.25rem;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 0.45rem;
    border: 1px solid rgba(18, 51, 70, 0.12);
    background: #fff;
}

.custom-character-photo-preview__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.6rem;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.custom-character-photo-preview__label {
    color: #2f5067;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.custom-character-clear-button {
    border-radius: 999px;
    white-space: normal;
}

.custom-character-generation-panel {
    padding: 0.85rem;
    border: 1px solid rgba(36, 162, 189, 0.2);
    border-radius: 0.9rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(253, 246, 248, 0.96));
    box-shadow: 0 0.65rem 1.25rem rgba(18, 51, 70, 0.08);
}

.custom-character-generation-grid {
    display: grid;
    grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.28fr);
    gap: 0.85rem;
    align-items: center;
}

.custom-character-generation-actions {
    display: grid;
    gap: 0.5rem;
    align-content: center;
}

.btn-generate-preview.custom-character-generate-button {
    width: 100%;
    min-height: 3.2rem;
    border-radius: 999px;
    font-size: clamp(0.95rem, 1.3vw, 1.08rem);
    font-weight: 800;
    line-height: 1.18;
    white-space: normal;
    box-shadow: 0 0.45rem 0.95rem rgba(36, 162, 189, 0.22);
}

.btn-generate-preview.custom-character-generate-button:disabled,
.btn-generate-preview.custom-character-generate-button.disabled {
    border-color: #24a2bd !important;
    background: #24a2bd !important;
    color: #ffffff !important;
    box-shadow: none;
    filter: none;
    opacity: 0.55;
}

.custom-character-cancel-button {
    width: fit-content;
    justify-self: center;
    border-radius: 999px;
    padding-inline: 1.1rem;
}

.custom-character-generation-copy {
    display: grid;
    gap: 0.48rem;
    min-width: 0;
}

.custom-character-generation-info {
    color: #536779;
    font-size: 0.95rem;
    line-height: 1.45;
}

.custom-character-generation-progress {
    display: grid;
    gap: 0.34rem;
}

.custom-character-generation-progress-track {
    position: relative;
    height: 0.72rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(36, 162, 189, 0.12);
}

.custom-character-generation-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #24a2bd, #e84472);
    box-shadow: 0 0.28rem 0.7rem rgba(36, 162, 189, 0.18);
    transition: width 0.45s ease;
}

.custom-character-generation-progress-label {
    color: #2f5067;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
}

.page-stage2 .wizard-submit-btn.is-disabled,
.page-stage3 .wizard-submit-btn.is-disabled,
.page-stage2 .custom-character-generate-button.is-disabled,
.page-stage2 .custom-character-clear-button.is-disabled {
    opacity: 0.48;
    filter: grayscale(0.35);
    cursor: not-allowed;
}

.custom-character-attempt-info {
    padding: 0.55rem 0.75rem;
    border-radius: 0.72rem;
    box-shadow: 0 0.35rem 0.85rem rgba(18, 51, 70, 0.06);
    font-size: 0.72rem;
    line-height: 1.35;
}

@media (max-width: 767.98px) {
    .custom-character-generation-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .custom-character-photo-preview {
        grid-template-columns: minmax(0, 1fr);
    }

    .custom-character-photo-preview__image {
        width: min(100%, 8.5rem);
    }

    .custom-character-cancel-button {
        width: 100%;
    }
}

.custom-character-note {
    color: #4b5563;
}

.custom-character-note--summary {
    line-height: 1.55;
}

.asset-grid-scroll {
    max-height: clamp(12.8rem, 38vh, 16.5rem);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-gutter: stable both-edges;
    overscroll-behavior: contain;
}

    .asset-grid-scroll::-webkit-scrollbar {
        width: 7px;
    }

    .asset-grid-scroll::-webkit-scrollbar-thumb {
        background-color: rgba(36, 162, 189, 0.35);
        border-radius: 999px;
    }

.asset-grid-scroll--tall {
    max-height: clamp(15rem, 50vh, 24rem);
}

.custom-radio-card {
    border: 1px solid #d5e0e9;
}

    .custom-radio-card:hover {
        border-color: rgba(36, 162, 189, 0.52);
        box-shadow: 0 0.85rem 1.5rem rgba(15, 23, 42, 0.12);
        transform: translateY(-1px);
    }

.custom-radio-img {
    max-width: 160px;
    max-height: 160px;
    border-radius: 0.78rem;
    box-shadow: 0 0.55rem 1.15rem rgba(15, 23, 42, 0.2);
}

.asset-thumb-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: start;
}

    .asset-thumb-grid .custom-radio-card,
    .asset-thumb-grid .custom-radio-card.selected {
        position: relative;
        width: auto;
        margin: var(--asset-thumb-item-margin, 4px);
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        box-sizing: border-box;
        vertical-align: top;
    }

        .asset-thumb-grid .custom-radio-card::after {
            content: "";
            position: absolute;
            inset: calc(var(--asset-thumb-item-margin, 4px) * -0.5);
            border: 4px solid transparent;
            border-radius: 0.95rem;
            pointer-events: none;
            opacity: 0;
            transition: border-color 0.2s ease, opacity 0.2s ease;
        }

        .asset-thumb-grid .custom-radio-card:hover {
            border-color: transparent;
            background: transparent;
            box-shadow: none;
            transform: none;
        }

        .asset-thumb-grid .custom-radio-card.selected::after {
            opacity: 1;
            border-color: var(--brand-turquoise);
        }

    .asset-thumb-grid .asset-thumb-card {
        padding: 0;
        background: transparent;
    }

    .asset-thumb-grid .custom-radio-img {
        max-width: none;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
        display: block;
    }

    .asset-thumb-grid .character-thumb {
        width: auto;
        max-width: 118px;
        height: auto;
        max-height: 118px;
        margin: 0;
        display: block;
    }

.asset-thumb-grid--arrows .asset-thumb-card {
    padding: 0;
}

.asset-thumb-grid--arrows .character-thumb {
    max-width: 148px;
    max-height: 78px;
}

.arrow-thumb {
    aspect-ratio: auto;
    object-fit: contain;
}

.arrow-context-card {
    display: grid;
    grid-template-columns: minmax(88px, 112px) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    background: linear-gradient(180deg, rgba(36, 162, 189, 0.08), rgba(36, 162, 189, 0.02));
    border-color: rgba(36, 162, 189, 0.18) !important;
}

.arrow-context-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
}

.arrow-context-thumb {
    width: 100%;
    max-width: 104px;
    max-height: 104px;
    object-fit: contain;
    border-radius: 0.9rem;
    background-color: #fff;
    box-shadow: 0 0.55rem 1.15rem rgba(15, 23, 42, 0.16);
}

.arrow-context-placeholder {
    width: 100%;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 0.9rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px dashed rgba(36, 162, 189, 0.3);
    text-align: center;
}

.arrow-control-card {
    background-color: rgba(255, 255, 255, 0.92);
}

.stage4-arrow-controls {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: opacity 0.18s ease, filter 0.18s ease;
}

.stage4-arrow-controls.is-disabled .arrow-selector,
.stage4-arrow-controls.is-disabled [id^="arrowPanel"] > :not(.arrow-no-arrows-option),
#designerArrowAdjustmentSection.is-disabled {
    opacity: 0.48;
    filter: grayscale(0.75);
}

.stage4-arrow-controls.is-disabled .arrow-selector,
.stage4-arrow-controls.is-disabled .asset-grid-scroll,
.stage4-arrow-controls.is-disabled .arrow-control-grid {
    pointer-events: none;
}

.arrow-no-arrows-switch,
.arrow-edit-switch {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.arrow-control-grid.is-soft-locked .arrow-control-card {
    opacity: 0.54;
    filter: grayscale(0.55);
}

.arrow-control-grid.is-soft-locked .arrow-transform-input,
.arrow-control-grid.is-soft-locked .arrow-mirror-toggle {
    pointer-events: none;
    cursor: default;
}

.arrow-control-group .form-range {
    margin-bottom: 0;
}

.arrow-control-output {
    min-width: 4.25rem;
    text-align: right;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.arrow-switch {
    padding-top: 0.4rem;
}

.arrow-control-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.arrow-control-range {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .arrow-control-range .form-range {
        margin-bottom: 0;
    }

.arrow-control-card--mirror {
    display: flex;
    align-items: stretch;
}

.arrow-mirror-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin: 0;
    width: 100%;
    min-height: 100%;
    cursor: pointer;
}

.arrow-toggle-copy {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
}

.arrow-toggle-switch {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

    .arrow-toggle-switch .form-check-input {
        float: none;
        margin: 0;
        cursor: pointer;
    }

@media (max-width: 575.98px) {
    .arrow-mirror-toggle {
        gap: 0.65rem;
    }
}

.shadow-prev {
    width: 100%;
    max-width: min(100%, 640px);
    margin: 0;
    display: block;
    border-radius: 1rem;
    border: 1px solid rgba(36, 162, 189, 0.18);
    background: #fff;
    box-shadow: 0 1.1rem 2rem rgba(15, 23, 42, 0.16);
}

.stage5-card {
    position: relative;
    overflow: hidden;
}

    .stage5-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top left, rgba(36, 162, 189, 0.11), transparent 36%), radial-gradient(circle at bottom right, rgba(232, 68, 114, 0.1), transparent 34%);
        pointer-events: none;
    }

    .stage5-card > * {
        position: relative;
        z-index: 1;
    }

.stage5-header {
    display: grid;
    gap: 0.35rem;
}

.wizard-stage-heading-line,
.stage5-heading-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.58rem;
    flex-wrap: wrap;
    max-width: 100%;
}

.wizard-stage-heading-line .wizard-stage-title {
    margin-bottom: 0 !important;
}

.wizard-ui-icon,
.stage5-ui-icon {
    width: 1.8rem;
    height: 1.8rem;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(36, 162, 189, 0.22);
    border-radius: 0.55rem;
    background: #eef9fb;
    color: #128ba4;
}

.wizard-ui-icon--success,
.stage5-ui-icon--success {
    border-color: rgba(34, 197, 94, 0.26);
    background: #ecfdf3;
    color: #16a36f;
}

.wizard-ui-icon--start {
    border-color: rgba(245, 158, 11, 0.26);
    background: rgba(255, 247, 214, 0.9);
    color: #d97706;
}

.wizard-ui-icon--title {
    border-color: rgba(36, 162, 189, 0.24);
    background: #eef9fb;
    color: #128ba4;
}

.wizard-ui-icon--person {
    border-color: rgba(232, 68, 114, 0.24);
    background: rgba(232, 68, 114, 0.08);
    color: #c75070;
}

.wizard-ui-icon--attributes {
    border-color: rgba(124, 102, 220, 0.25);
    background: rgba(124, 102, 220, 0.09);
    color: #6754c8;
}

.wizard-ui-icon--arrows {
    border-color: rgba(20, 184, 166, 0.28);
    background: rgba(20, 184, 166, 0.1);
    color: #0f8f83;
}

.stage5-ui-icon--cart {
    border-color: rgba(232, 68, 114, 0.25);
    background: rgba(232, 68, 114, 0.08);
    color: #c75070;
}

.wizard-ui-icon__svg,
.stage5-ui-icon__svg {
    width: 1.08rem;
    height: 1.08rem;
}

.wizard-ui-icon__svg path,
.wizard-ui-icon__svg circle,
.wizard-ui-icon__svg rect,
.stage5-ui-icon__svg path,
.stage5-ui-icon__svg circle,
.stage5-ui-icon__svg rect {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stage5-section-heading {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    max-width: 100%;
    line-height: 1.35;
}

.stage5-section-heading--center {
    justify-content: center;
    text-align: center;
}

.stage5-product-summary {
    color: #607688;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.32;
}

.stage5-motivational-text {
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 600;
    color: #4f6475;
}

.stage5-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 800;
    color: #8c3554;
}

.stage5-preview-shell {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.stage5-preview-image {
    width: 100%;
    max-width: min(100%, 560px);
    opacity: 0;
    transform: translateY(8px) scale(0.985);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

    .stage5-preview-image.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

.stage5-preview-placeholder {
    width: min(100%, 560px);
    min-height: 16rem;
    padding: 1.5rem;
    border-radius: 1.15rem;
    border: 1px dashed rgba(36, 162, 189, 0.45);
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    color: #4f6475;
}

.stage5-preview-placeholder--countdown {
    position: relative;
    min-height: min(70vw, 34rem);
    padding: 2rem 1.75rem;
    border-style: solid;
    border-color: rgba(36, 162, 189, 0.28);
    background: radial-gradient(circle at top, rgba(36, 162, 189, 0.16), transparent 48%), linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 249, 252, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1.1rem 2.4rem rgba(18, 51, 70, 0.08);
    gap: 0.9rem;
}

    .stage5-preview-placeholder--countdown.is-waiting {
        animation: stage5PreviewPulse 1.2s ease-in-out infinite;
    }

    .stage5-preview-placeholder--countdown.is-complete {
        animation: none;
    }

.stage5-countdown-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(140, 53, 84, 0.09);
    color: #8c3554;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stage5-countdown-value {
    display: block;
    font-size: clamp(4rem, 11vw, 7.4rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #123346;
    text-shadow: 0 0.35rem 1.2rem rgba(18, 51, 70, 0.12);
}

.stage5-countdown-copy {
    max-width: 24rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #4f6475;
}

.stage5-preview-retry {
    margin-top: 0.35rem;
}

@keyframes stage5PreviewPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1.1rem 2.4rem rgba(18, 51, 70, 0.08);
    }

    50% {
        transform: scale(0.992);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1.45rem 2.8rem rgba(18, 51, 70, 0.12);
    }
}

.stage5-feedback {
    margin-inline: auto;
    max-width: 44rem;
}

.stage5-summary-layout {
    display: grid;
    gap: 1.35rem;
    max-width: 80rem;
    margin-inline: auto;
    align-items: start;
}

.stage5-summary-side {
    display: grid;
    gap: 1.35rem;
    align-content: start;
}

.stage5-token-panel {
    width: 100%;
    padding: 1.2rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(36, 162, 189, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 254, 0.9));
    box-shadow: 0 0.7rem 1.35rem rgba(18, 51, 70, 0.07);
    display: grid;
    gap: 0.45rem;
    align-content: start;
}

.stage5-token-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    flex-wrap: wrap;
}

.stage5-token-prefix {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: #40586c;
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.stage5-token-prefix-icon {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 0.48rem;
}

.stage5-token-code-control {
    display: flex;
    align-items: stretch;
    gap: 0.34rem;
    flex: 1 1 14rem;
    min-width: min(100%, 12rem);
    max-width: 18rem;
}

.stage5-copy-field {
    cursor: copy;
    text-align: center;
    font-family: Consolas, "Courier New", monospace;
    font-weight: 700;
    letter-spacing: 0.05em;
    min-height: 0;
    padding: 0.7rem 0.9rem;
    line-height: 1.35;
}

.stage5-copy-field--token {
    flex: 1 1 auto;
    color: #166534;
    border-color: rgba(34, 197, 94, 0.38);
    background-color: rgba(34, 197, 94, 0.1);
    font-size: 0.94rem;
    letter-spacing: 0.025em;
}

.stage5-copy-field.is-copied {
    border-color: rgba(36, 162, 189, 0.8);
    box-shadow: 0 0 0 0.2rem rgba(36, 162, 189, 0.15);
}

.stage5-token-hint,
.stage5-field-note {
    color: #607688;
    font-size: 0.8rem;
    line-height: 1.35;
}

.stage5-token-hint {
    text-align: center;
}

.stage5-field-note {
    margin-top: 0.48rem;
}

.stage5-copy-status {
    text-align: center;
    color: #607688;
    font-size: 0.92rem;
}

    .stage5-copy-status:not(:empty) {
        min-height: 1.45rem;
        margin-top: 0.35rem;
    }

.stage5-action-block {
    display: grid;
    gap: 0.7rem;
    justify-items: center;
}

.stage5-action-block--store {
    max-width: 62rem;
    margin-inline: auto;
}

.stage5-action-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0.85rem;
    flex-wrap: wrap;
    width: auto;
    max-width: 100%;
}

.stage5-main-button,
.stage5-secondary-button,
.stage5-save-button,
.stage5-back-button,
.stage5-contact-button {
    min-height: 3.35rem;
    border-radius: 999px;
    text-transform: none;
    letter-spacing: 0;
}

.stage5-main-button,
.stage5-secondary-button {
    width: max-content;
    max-width: 100%;
}

.stage5-main-button,
.stage5-contact-button {
    min-width: 12rem;
    padding-inline: 1.8rem;
}

.stage5-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.stage5-contact-button .stage5-ui-icon {
    width: 1.24rem;
    height: 1.24rem;
    border: 0;
    background: transparent;
    color: currentColor;
}

.stage5-contact-button .stage5-ui-icon__svg {
    width: 1rem;
    height: 1rem;
}

.stage5-action-row .stage5-main-button {
    width: auto;
    flex: 0 1 auto;
}

.stage5-action-row .stage5-direct-back {
    margin-bottom: 0;
}

.stage5-action-row .stage5-back-button {
    height: 100%;
}

.stage5-direct-back {
    display: flex;
    justify-content: center;
    margin-bottom: 0.6rem;
}

.stage5-back-button {
    width: max-content;
    max-width: 100%;
    min-width: 8rem;
    padding-inline: 1.4rem;
    color: #607688;
    border-color: rgba(96, 118, 136, 0.38);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.stage5-back-button:hover,
.stage5-back-button:focus,
.stage5-back-button:focus-visible {
    color: #40586c;
    border-color: rgba(64, 88, 108, 0.48);
    background: #fff;
}

.stage5-back-button--compact {
    min-width: 8.75rem;
    padding-inline: 1.1rem;
}

.stage5-action-block--secondary {
    gap: 0.45rem;
}

.stage5-action-note {
    max-width: 40rem;
    text-align: center;
    color: #607688;
    font-size: 0.92rem;
}

.stage5-store-return-info {
    width: min(100%, 38rem);
    display: grid;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(36, 162, 189, 0.18);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.74);
    color: #4f6475;
    text-align: left;
}

.stage5-store-return-info__heading {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.25;
    font-weight: 800;
    color: #123346;
}

.stage5-store-return-info__steps {
    display: grid;
    gap: 0.42rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stage5-store-return-info__step {
    display: flex;
    align-items: flex-start;
    gap: 0.48rem;
    font-size: 0.84rem;
    line-height: 1.32;
    font-weight: 650;
}

.stage5-store-return-info__icon {
    width: 1.45rem;
    height: 1.45rem;
    flex: 0 0 auto;
    border-radius: 0.48rem;
}

.stage5-store-return-info__icon .stage5-ui-icon__svg {
    width: 0.9rem;
    height: 0.9rem;
}

.stage5-store-return-info__footer {
    display: flex;
    align-items: flex-start;
    gap: 0.42rem;
    margin: 0.1rem 0 0;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(36, 162, 189, 0.14);
    color: #607688;
    font-size: 0.8rem;
    line-height: 1.35;
    font-weight: 600;
}

.stage5-store-return-info__footer-icon {
    width: 1.24rem;
    height: 1.24rem;
    flex: 0 0 auto;
    border-radius: 0.42rem;
    border-color: rgba(245, 158, 11, 0.26);
    background: rgba(255, 247, 214, 0.9);
    color: #d97706;
}

.stage5-store-return-info__footer-icon .stage5-ui-icon__svg {
    width: 0.82rem;
    height: 0.82rem;
}

.stage5-save-form {
    display: block;
}

.stage5-save-panel {
    width: 100%;
    max-width: 62rem;
    margin-inline: auto;
    padding: 1.4rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(36, 162, 189, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 252, 0.92));
    box-shadow: 0 0.85rem 1.6rem rgba(18, 51, 70, 0.08);
}

.stage5-save-panel--notes {
    max-width: none;
    margin-inline: 0;
}

.stage5-save-panel--secondary {
    max-width: 52rem;
    padding: 1rem 1.15rem;
    border-color: rgba(107, 114, 128, 0.22);
    background: linear-gradient(180deg, rgba(249, 250, 251, 0.98), rgba(243, 244, 246, 0.94));
    box-shadow: 0 0.45rem 1rem rgba(31, 41, 55, 0.06);
}

.stage5-save-title {
    margin-bottom: 0.18rem;
    color: #607688;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
}

.stage5-save-copy {
    display: grid;
    gap: 0.16rem;
    margin-bottom: 0.75rem;
}

.stage5-save-subtitle {
    margin: 0;
    color: #4f6475;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.35;
}

@media (min-width: 992px) {
    .stage5-save-subtitle {
        font-size: 0.82rem;
        line-height: 1.32;
    }
}

.stage5-secondary-button {
    width: auto;
    min-height: 2.35rem;
    padding: 0.42rem 1rem;
    border-radius: 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
}

.stage5-comment-field {
    min-height: 8.75rem;
    line-height: 1.55;
    resize: vertical;
}

.stage5-comment-field::placeholder {
    color: #9daab8;
    opacity: 1;
    font-weight: 500;
}

.btn.stage5-save-button--muted {
    min-height: 2.9rem;
    padding-inline: 1.2rem;
    color: #fff !important;
    border-color: #374151;
    background: linear-gradient(145deg, #4b5563, #374151);
    box-shadow: 0 0.48rem 1rem rgba(55, 65, 81, 0.24);
    font-size: 0.96rem;
    font-weight: 700;
}

    .btn.stage5-save-button--muted:hover,
    .btn.stage5-save-button--muted:focus,
    .btn.stage5-save-button--muted:focus-visible {
        color: #fff;
        border-color: #1f2937;
        background: linear-gradient(145deg, #374151, #1f2937);
        box-shadow: 0 0.62rem 1.15rem rgba(31, 41, 55, 0.3);
    }

.stage5-save-email-field {
    min-width: 0;
}

.stage5-save-panel--secondary .stage5-save-email-row {
    margin-top: 0.85rem;
}

.stage5-save-email-action {
    min-width: 0;
}

.stage5-validation-summary {
    max-width: 48rem;
    margin-inline: auto;
    text-align: center;
}

    .stage5-validation-summary:empty {
        display: none;
    }

@media (min-width: 1200px) {
    .stage5-summary-layout {
        grid-template-columns: fit-content(560px) minmax(0, 38rem);
        justify-content: center;
    }

    .stage5-preview-shell {
        justify-content: flex-start;
    }
}

.wizard-status-shell {
    padding-bottom: 2.5rem;
}

.wizard-status-card {
    max-width: min(100%, 48rem);
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border-radius: 1.5rem;
    border: 1px solid rgba(36, 162, 189, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 255, 0.95));
    box-shadow: 0 1.1rem 2.25rem rgba(18, 51, 70, 0.12);
    text-align: center;
}

.wizard-status-code {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #a12d55;
}

.wizard-status-actions {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.wizard-status-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

    .wizard-status-meta code {
        padding: 0.28rem 0.7rem;
        border-radius: 999px;
        background: rgba(36, 162, 189, 0.12);
        color: #0d6070;
        font-size: 0.9rem;
    }

.attribute-tag-suggestions {
    margin-top: 4px;
    max-height: 160px;
    overflow-y: auto;
    position: relative;
    z-index: 5;
}

    .attribute-tag-suggestions .list-group-item {
        cursor: pointer;
    }

        .attribute-tag-suggestions .list-group-item.active {
            background-color: #e9ecef;
            border-color: #dee2e6;
            color: #212529;
        }

.attribute-suggestion-list .list-group-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-panel {
    max-width: 980px;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 1.1rem 2rem rgba(15, 23, 42, 0.08);
}

@media (max-width: 991.98px) {
    .stage-form-card {
        padding: 1.1rem !important;
    }

    .asset-thumb-grid {
        justify-content: center;
    }

    .wizard-section-title,
    .wizard-subsection-title,
    .wizard-subsection-pill {
        font-size: 0.77rem;
        padding: 0.3rem 0.65rem;
    }

    .page-stage3 .attribute-selector,
    .page-stage4 .attribute-selector {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
        width: 100%;
    }

        .page-stage3 .attribute-selector .btn,
        .page-stage4 .attribute-selector .btn {
            width: 100%;
            min-width: 0;
            min-height: 3.2rem;
            padding: 0.62rem 1.45rem 0.62rem 0.6rem;
            font-size: 0.88rem;
            line-height: 1.2;
            text-align: center;
            white-space: normal;
        }

            .page-stage3 .attribute-selector .btn::after,
            .page-stage4 .attribute-selector .btn::after {
                top: 0.34rem;
                right: 0.36rem;
            }

    .arrow-control-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .project-brand-shell {
        padding-top: 0.6rem;
    }

    .project-brand-logo {
        width: clamp(112px, 34vw, 156px);
    }

    .project-brand-caption {
        font-size: 0.7rem;
    }

    .page-stage0 .breadcrumb-shell,
    .page-stage1 .breadcrumb-shell,
    .page-stage2 .breadcrumb-shell,
    .page-stage3 .breadcrumb-shell,
    .page-stage4 .breadcrumb-shell,
    .page-stage5 .breadcrumb-shell {
        margin-top: 0.65rem !important;
        margin-bottom: 0.8rem !important;
    }

    .custom-upload-picker {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-upload-button {
        width: 100%;
        min-width: 0;
    }

    .attribute-line-group {
        flex-wrap: wrap !important;
    }

        .attribute-line-group .attribute-field-label {
            width: 100%;
            min-width: 0;
            padding: 0.55rem 0.72rem;
            white-space: normal !important;
            border-radius: 0.7rem 0.7rem 0 0 !important;
            border-bottom: 0;
        }

        .attribute-line-group .form-control {
            width: 100%;
            border-radius: 0 0 0.7rem 0.7rem !important;
        }

    .wizard-stage-title {
        font-size: 1.05rem;
    }

    .wizard-submit-btn,
    .wizard-back-btn {
        width: 100%;
    }

    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .stage-form-actions {
        gap: 0.55rem !important;
        margin-top: 0.85rem;
        margin-bottom: 0.9rem;
    }

    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .stage-form-actions .wizard-submit-btn {
        order: 1;
    }

    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .stage-form-actions .wizard-back-btn {
        order: 2;
    }

    .stage-shell .d-flex.justify-content-center.gap-3.flex-wrap {
        align-items: stretch;
    }

    .active-attribute-hint {
        flex-wrap: wrap;
    }

    .wizard-input-group-label {
        min-width: 9.2rem;
    }

    .asset-grid-scroll {
        max-height: clamp(11.5rem, 34vh, 15rem);
    }

    .asset-grid-scroll--tall {
        max-height: 13.75rem;
    }

    body.page-stage2 .asset-grid-scroll--tall {
        max-height: 13.25rem;
    }

    body.page-stage2 .asset-thumb-grid .character-thumb {
        max-width: 77px;
        max-height: 77px;
    }

    body.page-stage3 .asset-grid-scroll {
        max-height: 9.25rem;
    }

    body.page-stage3 .asset-thumb-grid .character-thumb {
        max-width: 58px;
        max-height: 58px;
    }

    body.page-stage3 .attribute-selector {
        display: grid;
        gap: 0.35rem;
        width: 100%;
    }

    body.page-stage3 .attribute-selector[data-attribute-count="4"] {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.page-stage3 .attribute-selector[data-attribute-count="6"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.page-stage3 .attribute-selector .btn {
        width: 100%;
        min-width: 0;
        min-height: 2.05rem;
        padding: 0.36rem 1rem 0.36rem 0.35rem;
        font-size: 0.66rem;
        line-height: 1.12;
        text-align: center;
        white-space: nowrap;
    }

    body.page-stage3 .attribute-selector[data-attribute-count="4"] .btn {
        padding-right: 0.9rem;
        padding-left: 0.28rem;
        font-size: 0.64rem;
    }

    body.page-stage3 .attribute-selector .btn::after {
        top: 0.22rem;
        right: 0.16rem;
        width: 0.68rem;
        height: 0.68rem;
        font-size: 0.44rem;
    }

    body.page-stage3 .attribute-line-group {
        margin-bottom: 0.3rem;
    }

    body.page-stage3 .attribute-line-group .attribute-field-label {
        padding-top: 0.38rem;
        padding-bottom: 0.38rem;
    }

    body.page-stage3 .attribute-line-group .form-control {
        min-height: 2.05rem;
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
    }

    body.page-stage4 .arrow-no-arrows-option {
        margin-top: 0.5rem !important;
        padding-top: 0.55rem !important;
    }

    body.page-stage5 .stage5-comment-field {
        width: min(100%, 20rem);
        margin-right: auto;
        margin-left: auto;
    }

    .admin-panel {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        padding: 1.2rem;
    }

    .arrow-context-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .asset-thumb-grid {
        justify-content: center;
    }

        .asset-thumb-grid .asset-thumb-card {
            padding: 0;
        }

        .asset-thumb-grid .character-thumb {
            max-width: 96px;
            max-height: 96px;
        }

    body.page-stage3 .asset-thumb-grid .character-thumb {
        max-width: 58px;
        max-height: 58px;
    }

    .asset-thumb-grid--arrows .character-thumb {
        max-width: 112px;
        max-height: 62px;
    }

    .custom-radio-card {
        padding: 0.2rem;
    }

    .wizard-input-group-label {
        min-width: 0;
    }

    .custom-radio-img {
        max-width: 110px;
        max-height: 110px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Spójny motyw kreatora oraz panelu administracyjnego */
:root {
    --brand-ink: #123346;
    --brand-ink-soft: #4b6275;
    --brand-surface: #ffffff;
    --brand-surface-soft: #f3f9fc;
    --brand-border: rgba(36, 162, 189, 0.24);
    --brand-shadow: 0 1rem 2.4rem rgba(18, 51, 70, 0.14);
    --brand-shadow-strong: 0 1.15rem 2.65rem rgba(18, 51, 70, 0.2);
    --bs-primary: var(--brand-turquoise);
    --bs-primary-rgb: 36, 162, 189;
    --bs-secondary: #6f8091;
    --bs-secondary-rgb: 111, 128, 145;
    --bs-success: #24a287;
    --bs-danger: var(--brand-pink);
    --bs-danger-rgb: 232, 68, 114;
    --bs-link-color: var(--brand-turquoise);
    --bs-link-hover-color: #1c8ea4;
    --bs-body-font-family: 'Manrope', sans-serif;
    --bs-body-color: var(--brand-ink);
    --bs-body-bg: #f8fbfd;
    --bs-emphasis-color: #0f2a3b;
    --bs-border-radius: 0.82rem;
    --bs-border-radius-lg: 1.1rem;
}

body {
    font-family: var(--bs-body-font-family);
    color: var(--brand-ink);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.01em;
    color: #15374d;
}

a {
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
}

.project-brand-shell {
    margin-bottom: 0.15rem;
}

.project-brand-link {
    padding: 0.2rem 0.8rem 0.35rem;
    border-radius: 1rem;
    transition: transform 0.2s ease, filter 0.2s ease;
}

    .project-brand-link:hover {
        transform: translateY(-1px);
        filter: saturate(1.04);
    }

.project-brand-caption {
    font-size: 0.79rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brand-ink-soft);
}

.wizard-header-shell {
    margin-top: clamp(0.8rem, 1.6vw, 1.2rem) !important;
    margin-bottom: clamp(0.85rem, 1.8vw, 1.3rem) !important;
}

.wizard-header-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

.wizard-header-brand {
    flex: 0 0 auto;
}

.wizard-header-nav {
    flex: 0 1 auto;
    min-width: 0;
}

.wizard-header-shell .project-brand-link {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
}

.wizard-header-shell .project-brand-logo {
    width: clamp(112px, 10.8vw, 152px);
}

.wizard-header-shell .project-brand-caption {
    max-width: 10rem;
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
}

.wizard-breadcrumb {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 252, 255, 0.92) 100%) !important;
    border: 1px solid var(--brand-border) !important;
    box-shadow: 0 0.35rem 0.95rem rgba(18, 51, 70, 0.08);
    border-radius: 1rem !important;
}

.wizard-header-shell .wizard-breadcrumb {
    width: auto;
    max-width: 100%;
    padding: 0.62rem 0.82rem !important;
}

.wizard-header-shell .breadcrumb-chevron {
    justify-content: center;
}

.breadcrumb-chevron {
    gap: 0.36rem;
}

    .breadcrumb-chevron .breadcrumb-item::before {
        opacity: 0.85;
    }

.wizard-breadcrumb .wizard-step-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    min-width: 0;
    padding: 0.42rem 0.34rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #375166;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .wizard-breadcrumb .wizard-step-link:hover {
        color: #194459;
        border-color: rgba(36, 162, 189, 0.38);
        background-color: rgba(36, 162, 189, 0.12);
    }

    .wizard-breadcrumb .wizard-step-link:focus-visible {
        outline: 0;
        color: #163f53;
        border-color: rgba(36, 162, 189, 0.58);
        box-shadow: 0 0 0 0.22rem rgba(36, 162, 189, 0.24);
    }

    .wizard-breadcrumb .wizard-step-link.is-active {
        color: #ffffff !important;
        border-color: #1f95ad;
        background: linear-gradient(145deg, #24a2bd, #1d8ca4);
        box-shadow: 0 0.25rem 0.6rem rgba(29, 140, 164, 0.3);
    }

        .wizard-breadcrumb .wizard-step-link.is-active:hover {
            color: #ffffff !important;
            transform: none;
            box-shadow: 0 0.3rem 0.72rem rgba(29, 140, 164, 0.34);
        }

    .wizard-breadcrumb .wizard-step-link.is-disabled,
    .wizard-breadcrumb .wizard-step-link.disabled {
        color: #98a7b6 !important;
        border-color: rgba(148, 163, 184, 0.26);
        background-color: rgba(148, 163, 184, 0.12);
        pointer-events: none;
        box-shadow: none;
    }

.page-stage1 #stage1Preview,
.page-stage2 #stage2Preview,
.page-stage3 #stage3Preview,
.page-stage4 #stage4Preview {
    width: 100%;
    max-width: 560px;
}

.page-stage1 #stage1PreviewPlaceholder {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
}

@media (min-width: 992px) {
    .page-stage0 .stage-shell,
    .page-stage1 .stage-shell,
    .page-stage2 .stage-shell,
    .page-stage3 .stage-shell,
    .page-stage4 .stage-shell,
    .page-stage5 .stage-shell {
        padding-top: 0.1rem;
    }

    /* Etapy 1-4 dostają lekko większy odstep od menu, aby linia kart startowała
       na tej samej wysokosci co ekran START. */
    .page-stage1 .stage-shell,
    .page-stage2 .stage-shell,
    .page-stage3 .stage-shell,
    .page-stage4 .stage-shell {
        padding-top: 0.55rem;
    }

    .page-stage0 .wizard-header-shell,
    .page-stage1 .wizard-header-shell,
    .page-stage2 .wizard-header-shell,
    .page-stage3 .wizard-header-shell,
    .page-stage4 .wizard-header-shell,
    .page-stage5 .wizard-header-shell {
        margin-bottom: 0.65rem !important;
    }

    .wizard-header-shell .project-brand-logo {
        width: clamp(124px, 11.6vw, 166px);
    }

    .stage-shell #previewContainer {
        margin-top: 1.05rem !important;
    }

    .page-stage3 .attribute-selector,
    .page-stage4 .attribute-selector {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.45rem;
        width: 100%;
    }

        .page-stage3 .attribute-selector .btn,
        .page-stage4 .attribute-selector .btn {
            flex: 1 1 0;
            width: auto;
            min-width: 0;
            min-height: 0;
            padding: 0.28rem 1.26rem 0.28rem 0.42rem;
            font-size: 0.76rem;
            line-height: 1.2;
            text-align: center;
            white-space: nowrap;
        }
}

.stage-form-card {
    border: 1px solid var(--brand-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(249, 253, 255, 0.94) 100%);
    box-shadow: var(--brand-shadow);
    animation: card-rise 0.35s ease both;
}

    .stage-form-card .wizard-stage-title {
        color: #134f62 !important;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
    }

    .stage-form-card .form-control,
    .stage-form-card .form-select,
    .stage-form-card .input-group-text {
        border-color: #bfd2df;
        box-shadow: none;
    }

    .stage-form-card .input-group-text {
        color: #26495f;
        background: #f2f8fc;
    }

.btn {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn-primary {
    border: 0;
    background: linear-gradient(145deg, #24a2bd, #1d8ca4);
    box-shadow: 0 0.55rem 1.1rem rgba(29, 140, 164, 0.28);
}

    .btn-primary:hover,
    .btn-primary:focus-visible {
        background: linear-gradient(145deg, #1f93ab, #177f95);
        box-shadow: 0 0.68rem 1.28rem rgba(23, 127, 149, 0.34);
    }

.btn-outline-secondary {
    color: #305067;
    border-color: rgba(48, 80, 103, 0.35);
}

    .btn-outline-secondary:hover,
    .btn-outline-secondary:focus-visible {
        color: #10374b;
        border-color: rgba(36, 162, 189, 0.58);
        background-color: rgba(36, 162, 189, 0.14);
    }

.custom-radio-card:hover {
    box-shadow: var(--brand-shadow);
}

.custom-radio-card.selected {
    box-shadow: var(--brand-shadow-strong);
}

footer .text-body-secondary {
    color: #587185 !important;
}

@keyframes card-rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .wizard-breadcrumb {
        border-radius: 0.88rem !important;
    }

        .wizard-breadcrumb .wizard-step-link {
            min-height: 1.8rem;
            padding: 0.24rem 0.18rem;
            font-size: 0.62rem;
            letter-spacing: 0.01em;
        }

    .stage-form-card {
        box-shadow: 0 0.88rem 1.8rem rgba(18, 51, 70, 0.14);
    }

    .project-brand-caption {
        letter-spacing: 0.03em;
    }

    .stage5-save-panel {
        padding: 1rem;
    }

}

@media (max-width: 991.98px) {
    .wizard-header-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
    }

    .wizard-header-shell .project-brand-link {
        justify-content: center;
    }

    .wizard-header-nav {
        width: 100%;
    }

    .wizard-header-shell .wizard-breadcrumb {
        width: 100%;
    }

    .wizard-header-shell .project-brand-caption {
        max-width: none;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .wizard-header-shell {
        margin-top: 0.65rem !important;
        margin-bottom: 0.8rem !important;
    }

        .wizard-header-shell .project-brand-link {
            flex-direction: column;
            gap: 0.35rem;
            padding-inline: 0.55rem;
        }

        .wizard-header-shell .project-brand-logo {
            width: clamp(96px, 30vw, 132px);
        }

        .wizard-header-shell .project-brand-caption {
            font-size: 0.7rem;
            white-space: normal;
        }
}

/* Kompaktowy tryb desktopowy utrzymuje kazdy etap kreatora w widoku Full HD. */
@media (min-width: 1200px) {
    body.page-stage1 .wizard-footer-rule,
    body.page-stage2 .wizard-footer-rule,
    body.page-stage3 .wizard-footer-rule,
    body.page-stage4 .wizard-footer-rule,
    body.page-stage1 .wizard-footer-container,
    body.page-stage2 .wizard-footer-container,
    body.page-stage3 .wizard-footer-container,
    body.page-stage4 .wizard-footer-container {
        display: none;
    }

    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .wizard-header-shell {
        margin-top: 0 !important;
        margin-bottom: 0.35rem !important;
        padding-top: 0.35rem;
    }

    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .wizard-header-layout {
        gap: 0.6rem;
    }

    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .wizard-header-shell .project-brand-link {
        gap: 0.2rem;
        padding: 0.2rem 0.55rem;
    }

    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .wizard-header-shell .project-brand-logo {
        width: clamp(96px, 7.5vw, 132px);
    }

    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .wizard-header-shell .project-brand-caption {
        max-width: 8.5rem;
        font-size: 0.62rem;
        line-height: 1.05;
    }

    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .wizard-header-shell .wizard-breadcrumb {
        padding: 0.42rem 0.55rem !important;
        border-radius: 0.75rem !important;
    }

    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .breadcrumb-chevron {
        gap: 0.28rem;
    }

    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .wizard-breadcrumb .wizard-step-link {
        min-height: 1.9rem;
        padding: 0.26rem 0.48rem;
        font-size: 0.72rem;
        letter-spacing: 0;
    }

    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .stage-shell {
        padding-top: 0;
    }

    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .stage-shell .container-xxl {
        max-width: min(1780px, calc(100vw - 2rem));
    }

    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .stage-shell form.mb-4,
    body.page-stage5 .stage5-save-form {
        margin-bottom: 0 !important;
    }

    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .stage-shell .row.mb-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 0.5rem;
        margin-bottom: 0.65rem !important;
    }

    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .stage-form-card {
        padding: 1rem !important;
        border-radius: 0.95rem !important;
    }

    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .wizard-stage-title {
        margin-bottom: 0.65rem !important;
        font-size: 1.22rem;
        letter-spacing: 0;
    }

    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .wizard-section-title,
    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .wizard-subsection-title,
    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .wizard-subsection-pill {
        margin-bottom: 0.35rem;
        padding: 0.22rem 0.52rem;
        border-radius: 0.56rem;
        font-size: 0.7rem;
        letter-spacing: 0;
    }

    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .wizard-helper-copy,
    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .wizard-intro-copy,
    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .form-text,
    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .small {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .wizard-alert,
    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .wizard-hint-callout {
        padding: 0.55rem 0.75rem;
        margin-bottom: 0.65rem;
        border-radius: 0.75rem;
        column-gap: 0.5rem;
    }

    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .wizard-hint-callout::before {
        width: 1.4rem;
        height: 1.4rem;
    }

    body:is(.page-stage0, .page-stage1, .page-stage2, .page-stage3, .page-stage4, .page-stage5) .wizard-hint-callout__text {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .stage-shell .col-lg-7 {
        flex: 0 0 auto;
        width: 66%;
        margin-top: 0 !important;
    }

    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .stage-shell .col-lg-5 {
        flex: 0 0 auto;
        width: 34%;
        margin-top: 0 !important;
    }

    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .stage-shell #previewContainer {
        align-items: flex-start !important;
        margin-top: 0 !important;
    }

    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) #stage1Preview,
    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) #stage2Preview,
    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) #stage3Preview,
    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) #stage4Preview {
        width: auto;
        max-width: 100%;
        max-height: min(66vh, 690px);
        object-fit: contain;
    }

    body.page-stage1 #stage1PreviewPlaceholder {
        max-width: 100%;
        padding: 0.75rem;
    }

    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .wizard-submit-btn,
    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .wizard-back-btn,
    body.page-stage0 .wizard-submit-btn,
    body.page-stage0 .wizard-back-btn,
    body.page-stage5 .wizard-submit-btn,
    body.page-stage5 .wizard-back-btn {
        min-height: 2.35rem;
        padding: 0.44rem 1rem;
        font-size: 0.86rem;
        letter-spacing: 0;
    }

    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .btn-lg,
    body.page-stage5 .btn-lg,
    body.page-stage0 .btn-lg {
        font-size: 0.9rem;
    }

    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .form-control,
    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .form-select,
    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .input-group-text,
    body.page-stage5 .form-control,
    body.page-stage5 .form-select,
    body.page-stage5 .input-group-text {
        min-height: 2.25rem;
        padding-top: 0.38rem;
        padding-bottom: 0.38rem;
        font-size: 0.9rem;
        line-height: 1.25;
    }

    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .mb-4 {
        margin-bottom: 0.85rem !important;
    }

    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .mb-3 {
        margin-bottom: 0.62rem !important;
    }

    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .mt-4 {
        margin-top: 0.85rem !important;
    }

    body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .mt-3 {
        margin-top: 0.62rem !important;
    }

    body:is(.page-stage1, .page-stage3) .attribute-line-group {
        margin-bottom: 0.48rem;
    }

    body:is(.page-stage1, .page-stage3) .attribute-line-group .attribute-field-label,
    body:is(.page-stage1, .page-stage3) .wizard-input-group-label {
        min-width: 8.4rem;
        padding-block: 0.38rem;
        font-size: 0.82rem;
    }

    body.page-stage0 .wizard-start-card {
        max-height: calc(100vh - 6.75rem);
        overflow: hidden;
    }

    body.page-stage0 .wizard-start-layout {
        grid-template-columns: minmax(0, min(58vw, 922px)) minmax(20rem, 26rem);
        justify-content: center;
        align-items: stretch;
        gap: 0.75rem;
    }

    body.page-stage0 .wizard-start-video-shell {
        order: 1;
        width: 100%;
        max-width: calc(900px + 1.1rem + 2px);
        padding: 0.55rem;
        justify-self: end;
    }

    body.page-stage0 .wizard-start-content {
        order: 2;
        width: min(100%, 26rem);
        align-self: stretch;
        justify-self: start;
        justify-items: center;
        gap: 0.62rem;
        align-content: stretch;
        min-width: 0;
        text-align: center;
    }

    body.page-stage0 .wizard-start-copy {
        text-align: center !important;
    }

    body.page-stage0 .wizard-start-copy .wizard-hint-callout {
        margin-top: 0.75rem !important;
    }

    body.page-stage0 .wizard-start-video-frame {
        width: 100%;
        aspect-ratio: 16 / 9;
        margin-inline: auto;
    }

    body.page-stage0 .wizard-start-video-placeholder {
        min-height: min(45vh, 420px);
    }

    body.page-stage0 .wizard-product-select-form {
        display: flex;
        flex-direction: column;
        gap: 0.52rem;
        margin-top: 0;
        min-height: 100%;
    }

    body.page-stage0 .wizard-product-select-title {
        margin-bottom: 0.6rem;
        font-size: 0.92rem;
        line-height: 1.18;
        text-align: center;
    }

    body.page-stage0 .wizard-product-tile-grid {
        grid-template-columns: repeat(3, minmax(110px, 120px));
        justify-content: center;
        gap: 0.52rem;
    }

    body.page-stage0 .wizard-product-tile {
        grid-template-rows: minmax(78px, 1fr) auto;
        gap: 0.42rem;
        min-height: 126px;
        padding: 0.45rem;
    }

    body.page-stage0 .wizard-product-tile:has(.wizard-product-tile__input:checked) {
        border-width: 3px;
    }

    body.page-stage0 .wizard-product-tile__media {
        min-height: 78px;
    }

    body.page-stage0 .wizard-product-tile__media img {
        max-height: 92px;
    }

    body.page-stage0 .wizard-product-tile__label {
        min-height: 0;
        font-size: 0.72rem;
        letter-spacing: 0;
    }

    body.page-stage0 .wizard-start-actions {
        justify-content: center !important;
        gap: 0.55rem !important;
        margin-top: auto !important;
        padding-top: 0.8rem;
    }

    body.page-stage0 .wizard-start-choice-group {
        gap: 0.32rem;
    }

    body.page-stage0 .wizard-start-choice-heading {
        margin-bottom: -0.28rem;
        font-size: 0.68rem;
    }

    body.page-stage0 .wizard-start-choice {
        grid-template-columns: 1.72rem minmax(0, 1fr);
        gap: 0.4rem;
        min-height: 3.12rem;
        padding: 0.34rem 0.48rem;
    }

    body.page-stage0 .wizard-start-choice__icon {
        width: 1.72rem;
        height: 1.72rem;
    }

    body.page-stage0 .wizard-start-choice__title {
        font-size: 0.76rem;
    }

    body.page-stage0 .wizard-start-choice__description {
        font-size: 0.66rem;
        line-height: 1.18;
    }

    body.page-stage0 .wizard-start-profile-select {
        width: 100%;
        max-width: none;
        gap: 0.22rem;
    }

    body.page-stage0 .wizard-start-profile-select.is-single {
        max-width: none;
    }

    body.page-stage0 .wizard-start-profile-group-grid {
        gap: 0.24rem;
    }

    body.page-stage0 .wizard-start-profile-label {
        gap: 0.28rem;
        font-size: 0.72rem;
    }

    body.page-stage0 .wizard-start-profile-label__icon {
        width: 1.08rem;
        height: 1.08rem;
    }

    body.page-stage0 .wizard-start-profile-dropdown {
        min-height: 1.82rem;
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
        font-size: 0.72rem;
    }

    body.page-stage0 .wizard-start-profile-picker__button {
        min-height: 2.24rem;
        padding: 0.28rem 0.5rem;
        font-size: 0.76rem;
    }

    body.page-stage0 .wizard-start-profile-picker__list {
        max-height: min(8.4rem, 32vh);
    }

    body.page-stage0 .wizard-start-profile-picker__option {
        min-height: 1.9rem;
        padding: 0.28rem 0.46rem;
        font-size: 0.76rem;
    }

    body.page-stage0 .wizard-start-validation {
        padding: 0.3rem 0.42rem;
        font-size: 0.67rem;
    }

    body.page-stage0 .wizard-start-device-hint {
        width: 100%;
        margin-top: 0.35rem !important;
        margin-bottom: 0 !important;
        padding: 0.5rem 0.68rem !important;
    }

    body:is(.page-stage2, .page-stage3, .page-stage4) .asset-grid-scroll {
        padding: 0.35rem !important;
        max-height: min(25vh, 245px);
    }

    body.page-stage2 .asset-grid-scroll--tall {
        max-height: min(30vh, 292px);
    }

    body.page-stage3 .asset-grid-scroll {
        max-height: min(23vh, 222px);
    }

    body.page-stage4 .asset-grid-scroll {
        max-height: min(18vh, 168px);
    }

    body.page-stage2 .asset-thumb-grid .character-thumb {
        max-width: 84px;
        max-height: 84px;
    }

    body.page-stage3 .asset-thumb-grid .character-thumb {
        max-width: 82px;
        max-height: 82px;
    }

    body.page-stage4 .asset-thumb-grid--arrows .character-thumb {
        max-width: 104px;
        max-height: 55px;
    }

    body:is(.page-stage2, .page-stage3, .page-stage4) .asset-thumb-grid .custom-radio-card::after {
        inset: calc(var(--asset-thumb-item-margin, 4px) * -0.3);
        border-width: 3px;
        border-radius: 0.65rem;
    }

    body:is(.page-stage2, .page-stage3, .page-stage4) .custom-character-panel,
    body:is(.page-stage2, .page-stage3, .page-stage4) .custom-attribute-panel {
        padding: 0.7rem;
        border-radius: 0.75rem;
    }

    body:is(.page-stage2, .page-stage3, .page-stage4) .wizard-custom-intro,
    body:is(.page-stage2, .page-stage3, .page-stage4) .wizard-mode-switch {
        gap: 0.55rem;
        padding: 0.58rem 0.68rem;
        border-radius: 0.75rem;
    }

    body:is(.page-stage2, .page-stage3, .page-stage4) .wizard-custom-intro__body,
    body:is(.page-stage2, .page-stage3, .page-stage4) .wizard-mode-switch__body {
        gap: 0.6rem;
    }

    body:is(.page-stage2, .page-stage3, .page-stage4) .wizard-custom-intro__text {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    body:is(.page-stage2, .page-stage3, .page-stage4) .custom-character-textarea {
        min-height: 4.3rem;
        max-height: 5rem;
    }

    body:is(.page-stage2, .page-stage3, .page-stage4) .custom-upload-picker {
        gap: 0.45rem;
    }

    body:is(.page-stage2, .page-stage3, .page-stage4) .custom-upload-button {
        min-width: 8rem;
        padding-inline: 0.8rem;
    }

    body:is(.page-stage2, .page-stage3) .wizard-custom-compact-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 0.58rem 0.7rem;
    }

    body:is(.page-stage2, .page-stage3) .wizard-custom-compact-grid .wizard-custom-intro,
    body:is(.page-stage2, .page-stage3) .wizard-custom-upload-panel {
        height: 100%;
    }

    body:is(.page-stage2, .page-stage3) .wizard-custom-upload-panel {
        padding: 0.58rem 0.68rem;
        border-radius: 0.75rem;
    }

    body:is(.page-stage2, .page-stage3) .wizard-custom-upload-panel .custom-upload-picker {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        align-items: center;
    }

    body:is(.page-stage2, .page-stage3) .wizard-custom-upload-panel .custom-upload-button,
    body:is(.page-stage2, .page-stage3) .wizard-custom-upload-panel .custom-upload-file-name {
        min-width: 0;
    }

    body.page-stage2 .stage2-custom-character-layout {
        grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.2fr);
        grid-template-areas:
            "intro workflow"
            "intro instructions"
            "intro ai";
        gap: 0.58rem 0.7rem;
    }

    body.page-stage2 .custom-character-panel--attributes .stage2-custom-character-layout {
        grid-template-columns: minmax(12.75rem, 0.72fr) minmax(0, 1.28fr);
        gap: 0.52rem 0.62rem;
    }

    body.page-stage2 .custom-character-panel--oto .stage2-custom-character-layout {
        grid-template-columns: minmax(12.75rem, 0.72fr) minmax(0, 1.28fr);
        gap: 0.52rem 0.62rem;
    }

    body.page-stage2 .stage2-custom-character-column {
        gap: 0.48rem;
    }

    body.page-stage2 .stage2-custom-hero {
        padding: 0.62rem 0.72rem;
        gap: 0.56rem;
    }

    body.page-stage2 .stage2-custom-hero__text {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    body.page-stage2 .stage2-custom-example {
        width: 100%;
        max-width: none;
    }

    body.page-stage2 .stage2-custom-card {
        padding: 0.62rem;
    }

    body.page-stage2 .custom-character-panel--attributes .stage2-custom-card {
        padding: 0.46rem 0.52rem;
    }

    body.page-stage2 .custom-character-panel--attributes .stage2-custom-hero {
        height: auto;
        align-self: start;
    }

    body.page-stage2 .custom-character-panel--oto .stage2-custom-hero {
        height: auto;
        align-self: start;
    }

    body.page-stage2 .custom-character-panel--oto .stage2-custom-example {
        width: min(100%, 13.75rem);
        justify-self: center;
    }

    body.page-stage2 .custom-character-panel--attributes .stage2-attributes-step-heading {
        margin-bottom: 0.18rem;
    }

    body.page-stage2 .custom-character-panel--attributes .stage2-custom-card__hint--full,
    body.page-stage2 .custom-character-panel--attributes .stage2-custom-instructions .stage2-custom-card__hint {
        line-height: 1.26;
    }

    body.page-stage2 .custom-character-panel--attributes .stage2-attributes-upload-row,
    body.page-stage2 .custom-character-panel--oto .stage2-attributes-upload-row {
        min-height: 2.75rem;
        margin-top: 0.22rem;
        padding: 0.24rem 0.4rem;
        gap: 0.28rem;
    }

    body.page-stage2 .custom-character-panel--attributes .stage2-attributes-upload-file,
    body.page-stage2 .custom-character-panel--oto .stage2-attributes-upload-file {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 0.44rem;
    }

    body.page-stage2 .custom-character-panel--attributes .stage2-attributes-upload-file .stage2-attributes-upload-thumb,
    body.page-stage2 .custom-character-panel--oto .stage2-attributes-upload-file .stage2-attributes-upload-thumb {
        width: 34px;
        height: 34px;
    }

    body.page-stage2 .custom-character-panel--attributes .stage2-attributes-upload-file-name,
    body.page-stage2 .custom-character-panel--oto .stage2-attributes-upload-file-name {
        padding-left: 0.08rem;
        font-size: 0.72rem;
        line-height: 1.12;
    }

    body.page-stage2 .custom-character-panel--attributes .stage2-attributes-upload-button,
    body.page-stage2 .custom-character-panel--attributes .stage2-attributes-upload-actions .btn,
    body.page-stage2 .custom-character-panel--oto .stage2-attributes-upload-button,
    body.page-stage2 .custom-character-panel--oto .stage2-attributes-upload-actions .btn {
        min-height: 1.74rem;
        padding: 0.22rem 0.5rem;
    }

    body.page-stage2 .custom-character-panel--attributes .stage2-attributes-upload-legal,
    body.page-stage2 .custom-character-panel--oto .stage2-attributes-upload-legal {
        margin-top: 0.14rem !important;
        font-size: 0.7rem;
        line-height: 1.12;
    }

    body.page-stage2 .custom-character-panel--attributes #customCharacterPhotoValidation {
        width: fit-content;
        max-width: 100%;
        margin-top: 0.34rem !important;
        padding: 0.26rem 0.48rem;
        font-size: 0.72rem;
        line-height: 1.14;
    }

    body.page-stage2 .wizard-custom-upload-panel .custom-upload-picker {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.page-stage2 .custom-character-textarea {
        min-height: 3.65rem;
        max-height: 4.2rem;
    }

    body.page-stage2 .wizard-custom-upload-panel .custom-upload-button {
        min-width: 5.9rem;
        min-height: 2.08rem;
        padding-inline: 0.52rem;
    }

    body.page-stage2 .wizard-custom-upload-panel .form-text {
        margin-top: 0.38rem !important;
        font-size: 0.76rem;
        line-height: 1.22;
    }

    body.page-stage2 .custom-character-generation-panel {
        padding: 0.62rem;
    }

    body.page-stage2 .custom-character-panel--attributes .custom-character-generation-panel--attributes {
        margin-top: 0.34rem;
        padding: 0.42rem 0.5rem;
    }

    body.page-stage2 .custom-character-generation-grid {
        grid-template-columns: minmax(10rem, 0.38fr) minmax(0, 1fr);
        gap: 0.48rem;
    }

    body.page-stage2 .custom-character-panel--attributes .custom-character-generation-grid {
        gap: 0.32rem;
    }

    body.page-stage2 .custom-character-panel--attributes .stage2-attributes-optional-instructions {
        margin-top: 0.54rem;
        gap: 0.24rem;
    }

    body.page-stage2 .custom-character-panel--attributes .stage2-attributes-optional-instructions .stage2-custom-step-title--optional {
        display: inline-flex;
        width: fit-content;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: flex-start;
        margin-bottom: 0;
    }

    body.page-stage2 .custom-character-panel--attributes .stage2-attributes-optional-instructions .custom-character-textarea {
        min-height: 2.65rem;
        max-height: 3.2rem;
        padding-top: 0.42rem;
        padding-bottom: 0.42rem;
    }

    body.page-stage2 .custom-character-panel--attributes .custom-character-attempt-info {
        padding: 0.3rem 0.42rem;
        line-height: 1.16;
    }

    body.page-stage2 .custom-character-generate-button {
        min-height: 2.22rem;
        padding-block: 0.3rem;
        font-size: 0.82rem;
    }

    body.page-stage2 .custom-character-note--summary {
        margin-top: 0.48rem;
    }

    body:is(.page-stage3, .page-stage4) .attribute-selector {
        gap: 0.28rem;
        margin-bottom: 0.48rem !important;
    }

    body:is(.page-stage3, .page-stage4) .attribute-selector .btn {
        min-height: 2rem;
        padding: 0.2rem 1rem 0.2rem 0.35rem;
        font-size: 0.68rem;
        line-height: 1.12;
        letter-spacing: 0;
    }

    body.page-stage4 .arrow-control-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.45rem;
        margin-top: 0.62rem !important;
    }

    body.page-stage4 .arrow-control-card {
        padding: 0.5rem;
        border: 1px solid rgba(36, 162, 189, 0.14);
        border-radius: 0.7rem;
    }

    body.page-stage4 .arrow-control-range {
        gap: 0.42rem;
    }

    body.page-stage4 .arrow-control-output {
        min-width: 3rem;
        font-size: 0.78rem;
    }

    body.page-stage4 .arrow-mirror-toggle {
        gap: 0.45rem;
    }

    body.page-stage4 .form-range {
        height: 1rem;
    }

    body.page-stage5 .stage-form-card {
        padding: 1rem 1.15rem !important;
    }

    body.page-stage5 .stage5-header {
        gap: 0.15rem;
    }

    body.page-stage5 .stage5-product-summary {
        font-size: 0.8rem;
        line-height: 1.22;
    }

    body.page-stage5 .stage5-motivational-text {
        font-size: 0.86rem;
        line-height: 1.3;
    }

    body.page-stage5 .stage5-summary-layout {
        grid-template-columns: minmax(0, 1.12fr) minmax(24rem, 0.88fr);
        gap: 0.9rem;
        max-width: none;
        margin-top: 0.75rem !important;
    }

    body.page-stage5 .stage5-summary-side {
        gap: 0.7rem;
    }

    body.page-stage5 .stage5-preview-shell {
        justify-content: center;
        align-items: flex-start;
    }

    body.page-stage5 .stage5-preview-image,
    body.page-stage5 .stage5-preview-placeholder {
        max-width: 100%;
        max-height: min(68vh, 680px);
        object-fit: contain;
    }

    body.page-stage5 .stage5-preview-placeholder {
        min-height: min(54vh, 520px);
        padding: 1rem;
    }

    body.page-stage5 .stage5-preview-placeholder--countdown {
        min-height: min(62vh, 620px);
        gap: 0.55rem;
    }

    body.page-stage5 .stage5-countdown-chip {
        padding: 0.25rem 0.65rem;
        font-size: 0.65rem;
        letter-spacing: 0;
    }

    body.page-stage5 .stage5-countdown-value {
        font-size: clamp(3rem, 7vw, 5rem);
        letter-spacing: 0;
    }

    body.page-stage5 .stage5-countdown-copy {
        font-size: 0.84rem;
        line-height: 1.35;
    }

    body.page-stage5 .stage5-token-panel,
    body.page-stage5 .stage5-save-panel {
        padding: 0.75rem;
        border-radius: 0.78rem;
    }

    body.page-stage5 .stage5-token-panel {
        gap: 0.45rem;
    }

    body.page-stage5 .stage5-copy-field {
        padding: 0.48rem 0.68rem;
        font-size: 0.92rem;
    }

    body.page-stage5 .stage5-copy-status:not(:empty) {
        min-height: 1rem;
        margin-top: 0.2rem;
    }

    body.page-stage5 .stage5-token-hint,
    body.page-stage5 .stage5-field-note {
        font-size: 0.74rem;
        line-height: 1.25;
    }

    body.page-stage5 .stage5-comment-field {
        min-height: 4.8rem;
        line-height: 1.35;
        resize: none;
    }

    body.page-stage5 .stage5-action-block {
        gap: 0.45rem;
    }

    body.page-stage5 .stage5-action-block--store,
    body.page-stage5 .stage5-save-panel--secondary,
    body.page-stage5 .stage5-feedback,
    body.page-stage5 .stage5-validation-summary {
        max-width: none;
    }

    body.page-stage5 .stage5-action-block--store {
        margin-top: 0.65rem !important;
    }

    body.page-stage5 .stage5-main-button,
    body.page-stage5 .stage5-save-button,
    body.page-stage5 .stage5-back-button,
    body.page-stage5 .stage5-contact-button {
        width: 100%;
        min-height: 2.45rem;
    }

    body.page-stage5 .stage5-direct-back,
    body.page-stage5 .stage5-feedback,
    body.page-stage5 .stage5-save-panel--secondary,
    body.page-stage5 .stage5-contact-panel {
        margin-top: 0.65rem !important;
    }

    body.page-stage5 .stage5-save-title {
        margin-bottom: 0.45rem;
        font-size: 0.78rem;
        letter-spacing: 0;
    }

    body.page-stage5 .stage5-save-panel--secondary .row {
        --bs-gutter-x: 0.55rem;
        --bs-gutter-y: 0.5rem;
    }

    body.page-stage5 .stage5-save-panel--secondary .form-control-lg {
        min-height: 2.35rem;
        padding: 0.42rem 0.7rem;
        font-size: 0.9rem;
    }

    body.page-stage5 .stage5-contact-panel {
        padding: 0.75rem;
        border-radius: 0.78rem;
    }

}

.attribute-description-layout,
.attribute-description-fields,
.stage5-primary-side {
    display: grid;
    gap: 1rem;
}

/* Drugi przebieg trybu Full HD opiera sie na stabilnych klasach kreatora, nie na nazwach akcji MVC. */
@media (min-width: 1200px) {
    body.wizard-page {
        background: radial-gradient(circle at 8% 8%, rgba(36, 162, 189, 0.13), transparent 34%), radial-gradient(circle at 92% 2%, rgba(232, 68, 114, 0.1), transparent 30%), linear-gradient(180deg, #f8fcff 0%, #f5f7fb 100%);
    }

    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) .wizard-footer-rule,
    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) .wizard-footer-container {
        display: none;
    }

    body.wizard-page .wizard-header-shell {
        margin-top: 0 !important;
        margin-bottom: 0.3rem !important;
        padding-top: 0.32rem;
    }

    body.wizard-page .stage-shell {
        padding-top: 0;
    }

    body.wizard-page .stage-shell .container-xxl {
        max-width: min(1840px, calc(100vw - 1.5rem));
    }

    body.wizard-page .stage-form-actions {
        margin-top: 1rem;
        margin-bottom: 0;
    }

    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) .stage-shell .row.mb-4 {
        --bs-gutter-x: 0.35rem;
        --bs-gutter-y: 0.5rem;
        margin-bottom: 0 !important;
    }

    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) .stage-shell .col-lg-7 {
        flex: 0 0 auto;
        width: 59%;
        margin-top: 0 !important;
    }

    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) .stage-shell .col-lg-5 {
        flex: 0 0 auto;
        width: 41%;
        margin-top: 0 !important;
    }

    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) .stage-shell #previewContainer {
        min-height: calc(100vh - 8.15rem);
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) #stage1Preview,
    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) #stage2Preview,
    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) #stage3Preview,
    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) #stage4Preview {
        width: auto;
        max-width: 100%;
        max-height: min(calc(100vh - 8.15rem), 820px);
        object-fit: contain;
    }

    body.wizard-stage-1 #stage1PreviewPlaceholder {
        max-width: min(100%, 38rem);
        padding: 0.8rem;
    }

    body.wizard-stage-0 .wizard-start-card {
        max-height: calc(100vh - 6.4rem);
        overflow: hidden;
    }

    body.wizard-stage-0 .wizard-start-layout {
        grid-template-columns: minmax(0, min(58vw, 922px)) minmax(20rem, 26rem);
        justify-content: center;
        align-items: stretch;
        gap: 0.75rem;
    }

    body.wizard-stage-0 .wizard-start-content {
        width: min(100%, 26rem);
        align-self: stretch;
        justify-self: start;
        justify-items: center;
        align-content: stretch;
        gap: 0.62rem;
        text-align: center;
    }

    body.wizard-stage-0 .wizard-start-copy,
    body.wizard-stage-0 .wizard-product-select-title {
        text-align: center !important;
    }

    body.wizard-stage-0 .wizard-hint-callout {
        max-width: 26rem;
        margin-inline: auto;
    }

    body.wizard-stage-0 .wizard-product-select-form {
        display: flex;
        flex-direction: column;
        gap: 0.52rem;
        width: 100%;
        min-height: 100%;
    }

    body.wizard-stage-0 .wizard-product-tile-grid {
        grid-template-columns: repeat(3, minmax(110px, 120px));
        justify-content: center;
    }

    body.wizard-stage-0 .wizard-start-actions {
        justify-content: center !important;
        margin-top: auto !important;
        padding-top: 0.8rem;
    }

    body.wizard-stage-0 .wizard-start-choice {
        grid-template-columns: 1.72rem minmax(0, 1fr);
        gap: 0.4rem;
        min-height: 3.12rem;
        padding: 0.34rem 0.48rem;
    }

    body.wizard-stage-0 .wizard-start-choice__icon {
        width: 1.72rem;
        height: 1.72rem;
    }

    body.wizard-stage-0 .wizard-start-choice__title {
        font-size: 0.76rem;
    }

    body.wizard-stage-0 .wizard-start-choice__description {
        font-size: 0.66rem;
        line-height: 1.18;
    }

    body.wizard-stage-0 .wizard-start-choice-heading {
        margin-bottom: -0.28rem;
        font-size: 0.68rem;
    }

    body.wizard-stage-0 .wizard-start-profile-select {
        width: 100%;
        max-width: none;
        gap: 0.22rem;
    }

    body.wizard-stage-0 .wizard-start-profile-select.is-single {
        max-width: none;
    }

    body.wizard-stage-0 .wizard-start-profile-group-grid {
        gap: 0.24rem;
    }

    body.wizard-stage-0 .wizard-start-profile-label {
        gap: 0.28rem;
        font-size: 0.72rem;
    }

    body.wizard-stage-0 .wizard-start-profile-label__icon {
        width: 1.08rem;
        height: 1.08rem;
    }

    body.wizard-stage-0 .wizard-start-profile-dropdown {
        min-height: 1.82rem;
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
        font-size: 0.72rem;
    }

    body.wizard-stage-0 .wizard-start-profile-picker__button {
        min-height: 2.24rem;
        padding: 0.28rem 0.5rem;
        font-size: 0.76rem;
    }

    body.wizard-stage-0 .wizard-start-profile-picker__list {
        max-height: min(8.4rem, 32vh);
    }

    body.wizard-stage-0 .wizard-start-profile-picker__option {
        min-height: 1.9rem;
        padding: 0.28rem 0.46rem;
        font-size: 0.76rem;
    }

    body.wizard-stage-0 .wizard-start-validation {
        padding: 0.3rem 0.42rem;
        font-size: 0.67rem;
    }

    body.wizard-stage-0 .wizard-start-device-hint {
        width: 100%;
        margin-top: 0.35rem !important;
        margin-bottom: 0 !important;
        padding: 0.5rem 0.68rem !important;
    }

    body.wizard-stage-3 .attribute-description-layout {
        grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.72fr);
        align-items: start;
        gap: 0.38rem 0.62rem;
    }

    body.wizard-stage-3 .attribute-description-fields {
        gap: 0;
        min-width: 0;
    }

    body.wizard-stage-3 .attribute-tag-search {
        margin-bottom: 0.45rem !important;
    }

    body.wizard-stage-3 .attribute-tag-search-group .attribute-field-label {
        min-width: 10.6rem;
    }

    body.wizard-stage-3 .attribute-tag-suggestions {
        margin-top: 0.25rem;
        max-height: 7.4rem;
    }

    body.wizard-stage-3 .attribute-description-layout .attribute-suggestion-block {
        align-self: stretch;
        min-width: 0;
        margin-top: 0 !important;
    }

    body.wizard-stage-3 .attribute-suggestion-header {
        margin-bottom: 0.42rem !important;
    }

    body.wizard-stage-3 .attribute-suggestion-heading {
        padding: 0.28rem 0.62rem;
        font-size: 0.75rem;
        line-height: 1.22;
    }

    body.wizard-stage-3 .attribute-suggestion-list {
        max-height: min(17vh, 8.4rem);
        overflow-y: auto;
        padding-right: 0.15rem;
    }

    body.wizard-stage-3 .attribute-description-hint {
        margin-top: -0.24rem;
        padding: 0.32rem 0.58rem;
        column-gap: 0.34rem;
    }

    body.wizard-stage-3 .attribute-description-hint::before {
        width: 0.82rem;
        height: 0.82rem;
    }

    body.wizard-stage-3 .attribute-description-hint .wizard-hint-callout__text {
        font-size: 0.76rem;
        line-height: 1.18;
    }

    body.wizard-stage-2 #colorsContainer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    body.wizard-stage-2 .stage2-color-option .wizard-input-group-label {
        min-width: 7.4rem;
    }

    body.wizard-stage-5 .stage-form-card {
        padding: 0.72rem 0.92rem !important;
    }

    body.wizard-stage-5 .stage5-header {
        gap: 0.12rem;
    }

    body.wizard-stage-5 .stage5-product-summary {
        font-size: 0.78rem;
        line-height: 1.18;
    }

    body.wizard-stage-5 .stage5-motivational-text {
        font-size: 0.82rem;
        line-height: 1.22;
    }

    body.wizard-stage-5 .stage5-summary-layout {
        grid-template-columns: fit-content(510px) minmax(0, 38rem);
        justify-content: center;
        align-items: start;
        gap: 0.55rem;
        max-width: calc(510px + 38rem + 0.55rem);
        margin-top: 0.5rem !important;
    }

    body.wizard-stage-5 .stage5-primary-side {
        width: min(100%, 38rem);
        gap: 0.46rem;
        align-content: start;
        min-width: 0;
        justify-self: start;
    }

    body.wizard-stage-5 .stage5-preview-shell {
        width: fit-content;
        max-width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
        min-width: 0;
        justify-self: end;
    }

    body.wizard-stage-5 .stage5-preview-image,
    body.wizard-stage-5 .stage5-preview-placeholder {
        width: auto;
        max-width: min(100%, 510px);
        max-height: min(calc(100vh - 9.4rem), 625px);
        object-fit: contain;
    }

    body.wizard-stage-5 .stage5-preview-placeholder {
        width: min(510px, calc(100vw - 2rem));
        min-height: min(46vh, 430px);
        padding: 0.85rem;
    }

    body.wizard-stage-5 .stage5-preview-placeholder--countdown {
        min-height: min(52vh, 520px);
    }

    body.wizard-stage-5 .stage5-token-panel,
    body.wizard-stage-5 .stage5-save-panel,
    body.wizard-stage-5 .stage5-contact-panel {
        padding: 0.58rem 0.62rem;
        border-radius: 0.72rem;
    }

    body.wizard-stage-5 .stage5-token-panel,
    body.wizard-stage-5 .stage5-action-block {
        gap: 0.4rem;
    }

    body.wizard-stage-5 .stage5-save-panel--notes .wizard-helper-copy,
    body.wizard-stage-5 .stage5-save-panel--secondary .wizard-helper-copy,
    body.wizard-stage-5 .stage5-contact-panel .wizard-helper-copy {
        margin-bottom: 0.45rem !important;
    }

    body.wizard-stage-5 .stage5-token-hint,
    body.wizard-stage-5 .stage5-field-note {
        font-size: 0.72rem;
        line-height: 1.2;
    }

    body.wizard-stage-5 .stage5-comment-field {
        min-height: 3.65rem;
        max-height: 4.2rem;
        resize: none;
    }

    body.wizard-stage-5 .stage5-action-block--store {
        margin-top: 0.5rem !important;
    }

    body.wizard-stage-5 .stage5-action-row {
        width: 100%;
        gap: 0.45rem;
    }

    body.wizard-stage-5 .stage5-action-block--store .stage5-direct-back {
        width: 100%;
        margin-top: 0 !important;
    }

    body.wizard-stage-5 .stage5-action-block--store .stage5-action-row .stage5-direct-back {
        width: auto;
        flex: 0 0 7.75rem;
    }

    body.wizard-stage-5 .stage5-store-return-info {
        width: 100%;
        gap: 0.32rem;
        padding: 0.48rem 0.56rem;
        border-radius: 0.7rem;
    }

    body.wizard-stage-5 .stage5-store-return-info__heading {
        font-size: 0.82rem;
    }

    body.wizard-stage-5 .stage5-store-return-info__step {
        gap: 0.4rem;
        font-size: 0.76rem;
    }

    body.wizard-stage-5 .stage5-store-return-info__icon {
        width: 1.25rem;
        height: 1.25rem;
        border-radius: 0.42rem;
    }

    body.wizard-stage-5 .stage5-store-return-info__footer {
        padding-top: 0.34rem;
        font-size: 0.73rem;
    }

    body.wizard-stage-5 .stage5-save-copy {
        gap: 0.08rem;
        margin-bottom: 0.32rem;
    }

    body.wizard-stage-5 .stage5-save-title {
        margin-bottom: 0.12rem;
        font-size: 0.76rem;
        line-height: 1.18;
    }

    body.wizard-stage-5 .stage5-save-subtitle {
        font-size: 0.78rem;
        line-height: 1.22;
    }

    body.wizard-stage-5 .stage5-validation-summary:not(:empty),
    body.wizard-stage-5 .stage5-feedback,
    body.wizard-stage-5 .stage5-save-panel--secondary,
    body.wizard-stage-5 .stage5-contact-panel {
        margin-top: 0 !important;
    }

    body.wizard-stage-5 .stage5-save-panel--secondary .row {
        --bs-gutter-x: 0.45rem;
        --bs-gutter-y: 0.45rem;
    }

    body.wizard-stage-5 .stage5-save-panel--secondary .form-control-lg,
    body.wizard-stage-5 .stage5-copy-field {
        min-height: 2.12rem;
        padding: 0.32rem 0.58rem;
        font-size: 0.86rem;
    }

    body.wizard-stage-5 .stage5-main-button,
    body.wizard-stage-5 .stage5-save-button,
    body.wizard-stage-5 .stage5-back-button,
    body.wizard-stage-5 .stage5-contact-button {
        width: 100%;
        min-height: 2.22rem;
    }

}

/* Korekta optycznego ukladu kreatora: wspolny odstep pod naglowkiem
   i centrowanie realnej szerokosci kolumn zamiast calej siatki Bootstrapa. */
body.wizard-page .wizard-header-shell {
    margin-bottom: 1rem !important;
}

body.wizard-page .stage-shell {
    padding-top: 0 !important;
}

body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) .stage-shell .col-lg-7,
body.wizard-stage-5 .stage-shell .col-12 {
    margin-top: 0 !important;
}

body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) .stage-shell .row.mb-4 {
    margin-top: 0 !important;
}

body.page-stage3 .stage-form-card {
    padding-bottom: 0.46rem !important;
    padding-top: 1rem !important;
    padding-inline: 1.1rem !important;
}

body.page-stage3 [id^="attributePanel"] {
    margin-bottom: 0 !important;
}

body.page-stage3 .wizard-stage-title {
    margin-bottom: 0.75rem !important;
    font-size: 1.05rem;
}

body.page-stage3 .asset-grid-scroll {
    max-height: min(18vh, 176px);
}

body.page-stage3 .asset-thumb-grid .character-thumb {
    max-width: 72px;
    max-height: 72px;
}

@media (max-height: 840px) and (min-width: 992px) {
    body.page-stage3 .asset-grid-scroll {
        max-height: min(16vh, 142px);
    }

    body.page-stage3 .asset-thumb-grid .character-thumb {
        max-width: 58px;
        max-height: 58px;
    }

    body.page-stage3 .attribute-line-group {
        margin-bottom: 0.22rem;
    }
}

@media (max-width: 767.98px) {
    .page-stage3 .attribute-category-strip {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        grid-template-rows: repeat(2, minmax(1.1rem, auto));
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.22rem;
        white-space: nowrap;
        scrollbar-width: thin;
    }

    .page-stage3 .attribute-category-strip .form-check-inline {
        min-width: max-content;
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    body.page-stage0 .wizard-start-actions,
    body.wizard-stage-0 .wizard-start-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.page-stage0 .wizard-start-actions .wizard-submit-btn,
    body.wizard-stage-0 .wizard-start-actions .wizard-submit-btn {
        order: 1;
    }

    body.page-stage0 .wizard-start-actions .wizard-back-btn,
    body.wizard-stage-0 .wizard-start-actions .wizard-back-btn {
        order: 2;
    }
}

@media (min-width: 992px) {
    body.wizard-page .wizard-header-shell {
        margin-bottom: 1.5rem !important;
    }

    body.wizard-project-oto-on.wizard-stage-1 .stage-shell .stage1-editor-column {
        max-width: 606px;
    }

    body.wizard-project-oto-on.wizard-stage-1 .stage-shell .row.mb-4 {
        justify-content: center;
    }
}

@media (min-width: 1200px) {
    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) .stage-shell .container-xxl {
        max-width: min(1640px, calc(100vw - 3rem));
    }

    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) .stage-shell .row.mb-4 {
        --bs-gutter-x: 1rem;
        justify-content: center;
        flex-wrap: nowrap;
        width: fit-content;
        max-width: 100%;
        margin-inline: auto !important;
    }

    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) .stage-shell .col-lg-7 {
        flex: 0 0 auto;
        width: clamp(43rem, 58vw, 66rem);
        max-width: calc(100vw - min(34rem, 36vw) - 4rem);
    }

    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) .stage-shell .col-lg-5 {
        flex: 0 0 auto;
        width: fit-content;
        max-width: min(34rem, 36vw);
        margin-top: 0 !important;
    }

    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) .stage-shell #previewContainer {
        justify-content: center !important;
    }

    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) #stage1Preview,
    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) #stage2Preview,
    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) #stage3Preview,
    body:is(.wizard-stage-1, .wizard-stage-2, .wizard-stage-3, .wizard-stage-4) #stage4Preview {
        max-width: min(100%, 34rem);
    }

    body.wizard-project-oto-on.wizard-stage-1 .stage-shell .stage1-editor-column {
        width: 606px;
    }

    body.wizard-project-oto-on.wizard-stage-2 .stage-shell .col-lg-7 {
        width: clamp(34rem, 45vw, 54rem);
    }

    body.wizard-project-oto-on.wizard-stage-1 .stage1-preview-shell {
        width: min(34rem, 36vw);
        max-width: 100%;
    }

    body.wizard-stage-0 .stage-shell .col-12,
    body.wizard-stage-5 .stage-shell .col-12 {
        flex: 0 0 auto;
        width: fit-content;
        max-width: 100%;
    }

    body.wizard-stage-0 .wizard-start-card,
    body.wizard-stage-5 .stage5-card {
        width: fit-content !important;
        max-width: 100%;
        margin-inline: auto;
    }

    body.wizard-stage-5 .stage5-save-form {
        width: fit-content;
        max-width: 100%;
        margin-inline: auto;
    }

    body.wizard-stage-5 .stage5-summary-layout {
        grid-template-columns: fit-content(510px) minmax(0, 30.4rem);
        max-width: calc(510px + 30.4rem + 0.55rem);
    }

    body.wizard-stage-5 .stage5-primary-side {
        width: min(100%, 30.4rem);
    }
}

@media (min-width: 992px) {
    body.page-stage5 .stage5-save-panel--secondary .stage5-save-email-row,
    body.wizard-stage-5 .stage5-save-panel--secondary .stage5-save-email-row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content;
        align-items: start;
        gap: 0.75rem;
        margin-top: 0.35rem;
        margin-right: 0;
        margin-left: 0;
    }

    body.wizard-stage-5 .stage5-save-panel--secondary .stage5-save-email-row {
        gap: 0.5rem;
        margin-top: 0.35rem;
    }

    body.page-stage5 .stage5-save-panel--secondary .stage5-save-email-field,
    body.page-stage5 .stage5-save-panel--secondary .stage5-save-email-action,
    body.wizard-stage-5 .stage5-save-panel--secondary .stage5-save-email-field,
    body.wizard-stage-5 .stage5-save-panel--secondary .stage5-save-email-action {
        width: auto;
        max-width: none;
        margin-top: 0;
        padding-right: 0;
        padding-left: 0;
    }

    body.page-stage5 .stage5-save-panel--secondary .stage5-save-email-action,
    body.wizard-stage-5 .stage5-save-panel--secondary .stage5-save-email-action {
        justify-items: start;
    }

    body.page-stage5 .stage5-save-panel--secondary .stage5-save-email-action .stage5-save-button,
    body.wizard-stage-5 .stage5-save-panel--secondary .stage5-save-email-action .stage5-save-button {
        width: max-content;
        max-width: 100%;
        white-space: nowrap;
    }
}

/* Nowy workspace panelu administratora */
.admin-workspace {
    min-height: 100vh;
    padding: 0.85rem 0 3rem;
    background: radial-gradient(circle at top left, rgba(36, 162, 189, 0.12), transparent 26%), radial-gradient(circle at top right, rgba(232, 68, 114, 0.08), transparent 24%), linear-gradient(180deg, #f7f2e9 0%, #f9f7f3 100%);
}

.admin-workspace-container {
    max-width: 1600px;
    padding-inline: clamp(1rem, 2vw, 2rem);
}

.admin-workspace-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(21rem, 25rem);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.admin-workspace-header,
.admin-live-widget,
.admin-content-panel,
.admin-sidebar {
    border: 1px solid rgba(18, 51, 70, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1.1rem 2.3rem rgba(18, 51, 70, 0.08);
    backdrop-filter: blur(7px);
}

.admin-workspace-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    border-radius: 1.4rem;
}

.admin-live-widget {
    display: grid;
    gap: 0.85rem;
    align-content: start;
    padding: 1.1rem;
    border-radius: 1.4rem;
}

.admin-live-header,
.admin-live-counter,
.admin-live-meta-row,
.admin-live-stage-chip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-live-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.admin-live-state,
.admin-live-meta-row {
    color: #607688;
    font-size: 0.82rem;
}

.admin-live-state {
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(246, 251, 253, 0.96);
}

    .admin-live-state.is-active {
        color: #0f6f57;
        background: rgba(48, 189, 152, 0.14);
    }

    .admin-live-state.is-empty {
        color: #6c5a2b;
        background: rgba(245, 184, 59, 0.16);
    }

    .admin-live-state.is-error {
        color: #a52e4c;
        background: rgba(232, 68, 114, 0.14);
    }

.admin-live-counter {
    justify-content: flex-start;
}

    .admin-live-counter strong {
        color: #123346;
        font-size: 2.6rem;
        line-height: 1;
    }

    .admin-live-counter span {
        color: #607688;
        font-weight: 700;
    }

.admin-live-stage-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.admin-live-stage-chip {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.55rem;
    border-radius: 0.9rem;
    background: rgba(246, 251, 253, 0.92);
    border: 1px solid rgba(18, 51, 70, 0.06);
}

.admin-live-stage-label {
    overflow: hidden;
    color: #284255;
    font-size: 0.74rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-live-stage-count {
    color: #123346;
    font-weight: 900;
}

.admin-live-meter {
    height: 0.32rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(18, 51, 70, 0.08);
}

    .admin-live-meter > span {
        display: block;
        width: var(--admin-live-share, 0%);
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #24a2bd, #30bd98);
    }

.admin-live-meta {
    display: grid;
    gap: 0.35rem;
}

.admin-live-meta-row {
    min-width: 0;
}

    .admin-live-meta-row span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-live-meta-row strong {
        color: #284255;
        font-weight: 800;
        white-space: nowrap;
    }

.admin-workspace-eyebrow,
.admin-detail-eyebrow {
    margin: 0 0 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 800;
    color: #1e8ca3;
}

.admin-workspace-title {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2.3rem);
}

.admin-workspace-description {
    margin: 0.4rem 0 0;
    max-width: 52rem;
    color: #5c7184;
}

.admin-workspace-alert {
    margin-bottom: 1rem;
    border-radius: 1rem;
}

.admin-workspace-grid {
    display: grid;
    grid-template-columns: 18.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: 1rem;
    border-radius: 1.35rem;
    padding: 1rem;
}

.admin-sidebar-nav {
    display: grid;
    gap: 0.65rem;
}

.admin-sidebar-link {
    display: grid;
    gap: 0.18rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    color: #284255 !important;
    background: rgba(246, 251, 253, 0.9);
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

    .admin-sidebar-link:hover {
        transform: translateY(-1px);
        border-color: rgba(36, 162, 189, 0.34);
        box-shadow: 0 0.75rem 1.45rem rgba(18, 51, 70, 0.08);
    }

    .admin-sidebar-link.is-active {
        border-color: rgba(36, 162, 189, 0.5);
        background: linear-gradient(180deg, rgba(36, 162, 189, 0.15), rgba(255, 255, 255, 0.96));
        box-shadow: 0 0.9rem 1.8rem rgba(36, 162, 189, 0.16);
    }

.admin-sidebar-link-label {
    font-weight: 800;
}

.admin-sidebar-link-description {
    color: #607688;
    font-size: 0.87rem;
}

.admin-content-panel {
    border-radius: 1.45rem;
    padding: 1.25rem;
}

.admin-log-timestamp-cell {
    width: 1%;
}

.admin-log-timestamp-link {
    display: inline-grid;
    gap: 0.08rem;
    line-height: 1.15;
    color: inherit;
}

    .admin-log-timestamp-link:hover {
        color: #1d8ca4;
    }

.admin-log-timestamp-date,
.admin-log-timestamp-time {
    display: block;
    white-space: nowrap;
}

.admin-log-timestamp-time {
    color: #607688;
    font-size: 0.84rem;
}

.admin-log-entry-message {
    font-weight: 400;
}

.admin-log-entry-details {
    scroll-margin-top: 1rem;
}

.admin-log-summary-card.admin-settings-card.is-active {
    --admin-log-summary-accent: #24a2bd;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
    border-top: 0.32rem solid var(--admin-log-summary-accent);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-log-summary-card.is-level-info {
    --admin-log-summary-accent: #0ea5c6;
}

.admin-log-summary-card.is-level-warning {
    --admin-log-summary-accent: #d59b00;
}

.admin-log-summary-card.is-level-error {
    --admin-log-summary-accent: #c23a4a;
}

.admin-log-summary-card:hover {
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 1.2rem 2.4rem rgba(18, 51, 70, 0.12);
}

.admin-log-summary-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.24rem rgba(36, 162, 189, 0.42), 0 1.2rem 2.4rem rgba(18, 51, 70, 0.12);
}

.admin-log-summary-card.is-current {
    box-shadow: 0 1.2rem 2.4rem rgba(18, 51, 70, 0.12), 0 0 0 0.14rem rgba(18, 51, 70, 0.08);
}

    .admin-log-summary-card.is-current .admin-log-summary-card-meta {
        color: var(--admin-log-summary-accent);
    }

.admin-log-summary-card-meta {
    margin-top: auto;
    color: #607688;
    font-size: 0.84rem;
    font-weight: 700;
}

.admin-log-timeline-list {
    display: grid;
    gap: 1rem;
}

.admin-log-timeline-entry {
    border: 1px solid rgba(18, 51, 70, 0.1);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 0.85rem 1.7rem rgba(18, 51, 70, 0.06);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

    .admin-log-timeline-entry:hover {
        border-color: rgba(36, 162, 189, 0.28);
        box-shadow: 0 1.1rem 2.1rem rgba(18, 51, 70, 0.1);
        transform: translateY(-1px);
    }

    .admin-log-timeline-entry.is-selected {
        border-color: rgba(36, 162, 189, 0.34);
        background: linear-gradient(180deg, rgba(242, 248, 251, 0.98), rgba(255, 255, 255, 0.98));
        box-shadow: 0 1.15rem 2.25rem rgba(18, 51, 70, 0.12);
    }

.admin-log-timeline-link {
    display: block;
    padding: 1.2rem 1.25rem;
    color: inherit !important;
    text-decoration: none;
}

    .admin-log-timeline-link:hover {
        color: inherit !important;
    }

    .admin-log-timeline-link:focus-visible {
        outline: none;
        box-shadow: inset 0 0 0 0.2rem rgba(36, 162, 189, 0.28);
    }

.admin-log-timeline-summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.admin-log-timeline-body {
    min-width: 0;
}

.admin-log-timeline-message {
    color: #173245;
    font-weight: 700;
}

.admin-log-timeline-meta {
    color: #607688;
    font-size: 0.9rem;
    line-height: 1.55;
}

.admin-log-timeline-side {
    display: grid;
    gap: 0.55rem;
    justify-items: end;
    flex: 0 0 auto;
}

.admin-log-timeline-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: rgba(36, 162, 189, 0.08);
    color: #0f6b6f;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.admin-log-timeline-entry.is-selected .admin-log-timeline-action {
    background: rgba(36, 162, 189, 0.14);
}

.admin-log-detail-panel {
    padding: 1.25rem;
    border-top: 1px solid rgba(18, 51, 70, 0.08);
    background: linear-gradient(180deg, rgba(248, 252, 253, 0.98), rgba(255, 255, 255, 0.98));
}

.admin-log-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.admin-log-detail-tabs {
    gap: 0.35rem;
    border-bottom: none;
}

    .admin-log-detail-tabs .nav-link {
        border-radius: 999px;
        border: 1px solid rgba(18, 51, 70, 0.1);
        color: #466073;
        font-weight: 700;
        background: #fff;
    }

        .admin-log-detail-tabs .nav-link.active {
            color: #173245;
            background: rgba(36, 162, 189, 0.12);
            border-color: rgba(36, 162, 189, 0.26);
        }

.admin-log-related-list .list-group-item {
    background: transparent;
}

.admin-page-feedback {
    display: none;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.95rem;
    font-weight: 700;
}

    .admin-page-feedback.is-visible {
        display: block;
    }

    .admin-page-feedback.is-success {
        color: #15674f;
        background: rgba(36, 162, 135, 0.12);
        border: 1px solid rgba(36, 162, 135, 0.24);
    }

    .admin-page-feedback.is-error {
        color: #9d294c;
        background: rgba(232, 68, 114, 0.12);
        border: 1px solid rgba(232, 68, 114, 0.24);
    }

.admin-inline-status {
    min-height: 1.25rem;
    font-size: 0.85rem;
    font-weight: 800;
}

    .admin-inline-status.is-changed {
        color: #9a6600;
    }

    .admin-inline-status.is-saving {
        color: #0f6b6f;
    }

    .admin-inline-status.is-success {
        color: #1d7a46;
    }

    .admin-inline-status.is-error {
        color: #b42318;
    }

.admin-section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.admin-section-tab {
    display: inline-flex;
    align-items: center;
    min-height: 2.8rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(36, 162, 189, 0.24);
    background: rgba(255, 255, 255, 0.92);
    color: #264459 !important;
    font-weight: 700;
    text-decoration: none;
}

    .admin-section-tab.is-active {
        color: #fff !important;
        border-color: #1f95ad;
        background: linear-gradient(145deg, #24a2bd, #1d8ca4);
    }

.admin-settings-card,
.admin-list-card,
.admin-detail-card,
.admin-table-card,
.admin-stat-card {
    border: 1px solid rgba(18, 51, 70, 0.08);
    background: #fff;
    box-shadow: 0 1rem 2.1rem rgba(18, 51, 70, 0.08);
}

.admin-settings-card {
    display: none;
    border-radius: 1.2rem;
    padding: 1.25rem;
}

    .admin-settings-card.is-active {
        display: block;
    }

.admin-settings-card-header,
.admin-list-card-header,
.admin-detail-card-header,
.admin-table-card-header,
.admin-detail-section-header,
.admin-suggestion-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.admin-settings-card-header,
.admin-list-card-header,
.admin-detail-card-header,
.admin-table-card-header {
    margin-bottom: 1rem;
}

.admin-toolbar {
    display: grid;
    grid-template-columns: minmax(16rem, 1.6fr) repeat(2, minmax(12rem, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(18, 51, 70, 0.08);
    background: rgba(255, 255, 255, 0.86);
}

.admin-browser-settings-panel {
    margin-bottom: 1rem;
}

.admin-toolbar-field {
    min-width: 0;
}

.admin-toolbar-field-search {
    grid-column: span 1;
}

.admin-browser-grid {
    display: grid;
    grid-template-columns: minmax(19rem, 25rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.admin-browser-list-panel,
.admin-browser-detail-panel {
    min-width: 0;
}

.admin-list-card,
.admin-detail-card,
.admin-table-card {
    border-radius: 1.2rem;
    padding: 1rem;
}

.admin-list-scroll {
    display: grid;
    gap: 0.75rem;
    max-height: calc(100vh - 19rem);
    overflow-y: auto;
    padding-right: 0.2rem;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
}

.admin-list-item {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(18, 51, 70, 0.08);
    background: #fbfdfe;
    text-decoration: none;
    color: #21384a !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

    .admin-list-item:hover {
        transform: translateY(-1px);
        border-color: rgba(36, 162, 189, 0.34);
        box-shadow: 0 0.8rem 1.45rem rgba(18, 51, 70, 0.08);
    }

    .admin-list-item.is-selected {
        border-color: rgba(36, 162, 189, 0.54);
        background: linear-gradient(180deg, rgba(36, 162, 189, 0.12), rgba(255, 255, 255, 0.98));
        box-shadow: 0 0.95rem 1.8rem rgba(36, 162, 189, 0.14);
    }

.admin-list-item-thumb {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    border-radius: 0.8rem;
    background: #fff;
    border: 1px solid rgba(18, 51, 70, 0.08);
    padding: 0.35rem;
}

.admin-list-item-body {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

    .admin-list-item-body strong,
    .admin-list-item-body span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-list-item-body span {
        color: #5c7184;
        font-size: 0.88rem;
    }

.admin-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.admin-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.3rem;
    min-height: 2.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(36, 162, 189, 0.24);
    background: #fff;
    color: #244155 !important;
    font-weight: 800;
    text-decoration: none;
}

    .admin-page-link.is-active {
        color: #fff !important;
        border-color: #1f95ad;
        background: linear-gradient(145deg, #24a2bd, #1d8ca4);
    }

.admin-empty-state {
    padding: 2rem 1rem;
    text-align: center;
    color: #607688;
}

.admin-empty-state-detail {
    min-height: 22rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.admin-detail-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(243, 249, 252, 0.9), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(18, 51, 70, 0.08);
}

.admin-detail-preview-image {
    width: 100%;
    max-width: 28rem;
    max-height: 22rem;
    object-fit: contain;
}

.admin-detail-form + .admin-detail-form,
.admin-detail-form + .admin-detail-section,
.admin-detail-section + .admin-detail-form,
.admin-detail-section + .admin-detail-section {
    margin-top: 1rem;
}

.admin-detail-section {
    padding: 1rem;
    border-radius: 1rem;
    background: #fbfdfe;
    border: 1px solid rgba(18, 51, 70, 0.08);
}

.admin-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.7rem;
}

.admin-check-card {
    align-items: center;
}

.admin-check-card-body {
    display: grid;
    gap: 0.12rem;
    flex: 1 1 auto;
    min-width: 0;
}

    .admin-check-card-body strong {
        color: #173245;
    }

    .admin-check-card-body small {
        color: #657a8d;
    }

.admin-inline-create-form,
.admin-inline-edit-form {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.admin-inline-create-form {
    margin-bottom: 1rem;
}

    .admin-inline-create-form .form-control,
    .admin-inline-edit-form .form-control {
        max-width: 28rem;
    }

.admin-table-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.admin-table thead th {
    color: #5f7487;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.admin-stat-card {
    display: grid;
    gap: 0.25rem;
    border-radius: 1rem;
    padding: 1rem;
}

    .admin-stat-card strong {
        font-size: 1.7rem;
    }

.admin-stat-label {
    color: #607688;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-usage-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2rem;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-weight: 800;
    background: rgba(36, 162, 189, 0.1);
    color: #0f6b6f;
}

    .admin-usage-pill.is-unused {
        background: rgba(232, 68, 114, 0.12);
        color: #a12d55;
    }

    .admin-usage-pill.is-single {
        background: rgba(255, 170, 0, 0.12);
        color: #996000;
    }

.admin-token-editor {
    display: grid;
    gap: 0.75rem;
}

.admin-token-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-token-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(36, 162, 189, 0.28);
    background: rgba(36, 162, 189, 0.1);
    color: #164a5a;
    font-weight: 700;
}

.admin-token-input-shell {
    position: relative;
}

.admin-token-input {
    padding-right: 2.8rem;
}

.admin-token-suggestions {
    position: absolute;
    inset: calc(100% + 0.3rem) 0 auto;
    max-height: 14rem;
    overflow-y: auto;
    border-radius: 0.9rem;
    box-shadow: 0 0.85rem 1.5rem rgba(18, 51, 70, 0.12);
    z-index: 5;
}

.admin-suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 0.85rem;
}

.admin-suggestion-card {
    display: grid;
    gap: 0.8rem;
    border-radius: 1rem;
    padding: 1rem;
}

.admin-suggestion-form,
.admin-suggestion-delete-form {
    display: grid;
    gap: 0.75rem;
}

.admin-suggestion-card-actions {
    display: flex;
    justify-content: flex-end;
}

.admin-analytics-page {
    display: grid;
    gap: 1.2rem;
}

.admin-analytics-section {
    display: grid;
    gap: 0.85rem;
}

.admin-analytics-section-heading,
.admin-analytics-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.admin-analytics-card {
    border-radius: 1.25rem;
    padding: 1.15rem;
}

.admin-analytics-inline-legend,
.admin-analytics-active-filters,
.admin-analytics-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-analytics-pill,
.admin-analytics-link-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.admin-analytics-pill {
    color: #164a5a;
    border: 1px solid rgba(36, 162, 189, 0.18);
    background: rgba(36, 162, 189, 0.1);
}

    .admin-analytics-pill.is-soft {
        color: #5b6f82;
        background: rgba(95, 116, 135, 0.1);
        border-color: rgba(95, 116, 135, 0.16);
    }

    .admin-analytics-pill.is-info,
    .admin-analytics-pill.is-series-sessions {
        color: #0f6b6f;
        background: rgba(36, 162, 189, 0.14);
        border-color: rgba(36, 162, 189, 0.28);
    }

    .admin-analytics-pill.is-series-saved,
    .admin-analytics-pill.is-accent {
        color: #a12d55;
        background: rgba(232, 68, 114, 0.12);
        border-color: rgba(232, 68, 114, 0.24);
    }

    .admin-analytics-pill.is-series-resumed,
    .admin-analytics-pill.is-warning {
        color: #8b5a11;
        background: rgba(255, 191, 73, 0.18);
        border-color: rgba(255, 191, 73, 0.28);
    }

.admin-analytics-link-badge.is-bonzoobox {
    color: #0f6b6f;
    background: rgba(36, 162, 189, 0.16);
    border: 1px solid rgba(36, 162, 189, 0.3);
}

.admin-analytics-link-badge.is-unknown {
    color: #7a5a16;
    background: rgba(255, 203, 99, 0.22);
    border: 1px solid rgba(255, 191, 73, 0.34);
}

.admin-analytics-filter-card {
    display: grid;
    gap: 1rem;
}

.admin-analytics-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.admin-analytics-filter-group {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(18, 51, 70, 0.08);
    background: linear-gradient(180deg, rgba(248, 252, 253, 0.98), rgba(255, 255, 255, 0.96));
}

.admin-analytics-filter-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #21445b;
}

.admin-analytics-filter-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.admin-analytics-toggle-row {
    display: grid;
    gap: 0.65rem;
}

.admin-analytics-toggle-card {
    align-items: center;
}

.admin-analytics-filter-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.85rem;
    align-items: center;
}

.admin-analytics-kpi-grid,
.admin-analytics-time-grid,
.admin-analytics-breakdown-grid {
    display: grid;
    gap: 0.85rem;
}

.admin-analytics-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-analytics-kpi-card,
.admin-analytics-stage-card,
.admin-analytics-time-card,
.admin-analytics-device-card,
.admin-analytics-breakdown-card,
.admin-analytics-ranking-item,
.admin-analytics-product-card {
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(18, 51, 70, 0.08);
    background: #fff;
}

.admin-analytics-kpi-label,
.admin-analytics-breakdown-label,
.admin-analytics-stage-label {
    color: #607688;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-analytics-kpi-value {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1;
    color: #173245;
}

.admin-analytics-kpi-copy,
.admin-analytics-source-copy,
.admin-analytics-time-subline,
.admin-analytics-product-meta,
.admin-analytics-ranking-legend,
.admin-analytics-ranking-footer {
    color: #607688;
    font-size: 0.88rem;
}

.admin-analytics-meter {
    width: 100%;
    height: 0.56rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(36, 162, 189, 0.12);
}

    .admin-analytics-meter > span {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #24a2bd 0%, #52c5d4 100%);
    }

    .admin-analytics-meter.is-accent {
        background: rgba(232, 68, 114, 0.12);
    }

        .admin-analytics-meter.is-accent > span,
        .admin-analytics-meter.is-accent-soft > span {
            background: linear-gradient(90deg, #e84472 0%, #f07da1 100%);
        }

    .admin-analytics-meter.is-accent-soft {
        background: rgba(232, 68, 114, 0.08);
    }

    .admin-analytics-meter.is-muted {
        background: rgba(95, 116, 135, 0.12);
    }

        .admin-analytics-meter.is-muted > span {
            background: linear-gradient(90deg, #8ba0b3 0%, #b7c3cf 100%);
        }

    .admin-analytics-meter.is-warning {
        background: rgba(255, 191, 73, 0.18);
    }

        .admin-analytics-meter.is-warning > span {
            background: linear-gradient(90deg, #f0ad32 0%, #ffd37b 100%);
        }

.admin-analytics-chart-shell {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: stretch;
}

.admin-analytics-chart-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #607688;
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-analytics-chart {
    width: 100%;
    min-height: 14rem;
}

.admin-analytics-chart-grid {
    stroke: rgba(95, 116, 135, 0.2);
    stroke-width: 1;
}

.admin-analytics-chart-line {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

    .admin-analytics-chart-line.is-sessions {
        stroke: #24a2bd;
    }

    .admin-analytics-chart-line.is-saved {
        stroke: #e84472;
    }

    .admin-analytics-chart-line.is-resumed {
        stroke: #f0ad32;
    }

.admin-analytics-chart-range {
    display: flex;
    justify-content: space-between;
    color: #607688;
    font-size: 0.82rem;
    grid-column: 2;
}

.admin-analytics-flow-stack,
.admin-analytics-stage-grid,
.admin-analytics-device-grid,
.admin-analytics-source-summary-grid,
.admin-analytics-product-list,
.admin-analytics-ranking-list {
    display: grid;
    gap: 0.75rem;
}

.admin-analytics-stage-card-header,
.admin-analytics-source-topline,
.admin-analytics-product-head,
.admin-analytics-ranking-head,
.admin-analytics-time-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.admin-analytics-stage-title,
.admin-analytics-source-title,
.admin-analytics-product-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #173245;
}

.admin-analytics-metric-row {
    display: grid;
    gap: 0.35rem;
}

    .admin-analytics-metric-row > div:first-child {
        display: flex;
        justify-content: space-between;
        gap: 0.75rem;
        font-size: 0.88rem;
        color: #495f72;
    }

.admin-analytics-time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-analytics-stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-analytics-time-block {
    display: grid;
    gap: 0.35rem;
}

.admin-analytics-source-summary-grid,
.admin-analytics-device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-analytics-source-card.is-bonzoobox {
    background: linear-gradient(180deg, rgba(36, 162, 189, 0.1), rgba(255, 255, 255, 0.98));
}

.admin-analytics-source-card.is-unknown {
    background: linear-gradient(180deg, rgba(255, 191, 73, 0.18), rgba(255, 255, 255, 0.98));
}

.admin-analytics-breakdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-analytics-breakdown-value {
    font-size: 1.7rem;
    line-height: 1;
    color: #173245;
}

.admin-analytics-breakdown-share {
    font-size: 0.88rem;
    color: #607688;
}

.admin-analytics-product-head,
.admin-analytics-product-metrics {
    align-items: center;
}

.admin-analytics-product-tags,
.admin-analytics-product-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.admin-analytics-product-metric {
    display: grid;
    gap: 0.2rem;
    min-width: 7rem;
}

    .admin-analytics-product-metric span,
    .admin-analytics-product-metric small,
    .admin-analytics-ranking-share {
        color: #607688;
    }

    .admin-analytics-product-metric strong,
    .admin-analytics-ranking-value {
        font-size: 1.05rem;
        color: #173245;
    }

.admin-analytics-ranking-item {
    padding: 0.85rem 0.95rem;
}

.admin-analytics-ranking-label-group {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.admin-analytics-ranking-thumb {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(18, 51, 70, 0.1);
    background: linear-gradient(180deg, rgba(248, 252, 253, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 0.6rem 1.25rem rgba(18, 51, 70, 0.08);
}

    .admin-analytics-ranking-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.admin-analytics-ranking-label {
    display: block;
    font-weight: 700;
    color: #21445b;
    min-width: 0;
}

.admin-project-card {
    border: 1px solid rgba(18, 51, 70, 0.08);
    border-radius: 1.1rem;
    overflow: hidden;
}

.admin-project-preview-link {
    display: block;
    padding: 1rem 1rem 0;
}

.admin-project-preview-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 16rem);
    margin-inline: auto;
    padding: 0.85rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(245, 250, 252, 0.94), rgba(255, 255, 255, 0.98));
}

    .admin-project-preview-shell.is-vertical {
        width: min(100%, 11.5rem);
        aspect-ratio: 1 / 1.414;
    }

    .admin-project-preview-shell.is-horizontal {
        aspect-ratio: 1.414 / 1;
    }

.admin-project-preview-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 1rem 2.1rem rgba(18, 51, 70, 0.16), 0 0 0 1px rgba(18, 51, 70, 0.08);
}

.admin-project-guid {
    display: block;
    font-size: 0.76rem;
    line-height: 1.25;
    color: #21445b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-project-card-actions {
    display: grid;
    gap: 0.55rem;
}

.admin-project-card-actions-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

    .admin-project-card-actions-row.is-single {
        grid-template-columns: 1fr;
    }

    .admin-project-card-actions-row.is-project-state {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

.admin-project-card-actions .btn {
    width: 100%;
}

.admin-project-card-actions-row.is-project-state .btn {
    font-size: 0.76rem;
    padding-left: 0.28rem;
    padding-right: 0.28rem;
    white-space: nowrap;
}

.admin-project-card-actions form {
    width: 100%;
}

.admin-project-card-actions-row.is-project-state form {
    min-width: 0;
}

.admin-analytics-empty-state {
    padding: 1rem;
    border-radius: 1rem;
    color: #607688;
    text-align: center;
    background: rgba(248, 252, 253, 0.92);
}

.admin-analytics-table td {
    vertical-align: top;
}

@media (max-width: 1399.98px) {
    .admin-analytics-kpi-grid,
    .admin-analytics-breakdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-analytics-time-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .admin-analytics-filter-grid,
    .admin-analytics-filter-fields,
    .admin-analytics-stage-grid,
    .admin-analytics-source-summary-grid,
    .admin-analytics-device-grid {
        grid-template-columns: 1fr;
    }

    .admin-analytics-kpi-grid,
    .admin-analytics-time-grid,
    .admin-analytics-breakdown-grid {
        grid-template-columns: 1fr;
    }

    .admin-analytics-chart-shell {
        grid-template-columns: 1fr;
    }

    .admin-analytics-chart-range {
        grid-column: auto;
    }

    .admin-project-card-actions-row:not(.is-project-state) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1199.98px) {
    .admin-workspace-top,
    .admin-workspace-grid,
    .admin-browser-grid {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .admin-toolbar,
    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-list-scroll {
        max-height: 24rem;
    }

    .admin-log-timeline-summary,
    .admin-log-detail-header {
        flex-direction: column;
    }

    .admin-log-timeline-side {
        width: 100%;
        justify-items: start;
    }
}

@media (max-width: 767.98px) {
    .admin-workspace {
        padding-top: 0.6rem;
    }

    .admin-workspace-header,
    .admin-content-panel,
    .admin-sidebar,
    .admin-settings-card,
    .admin-list-card,
    .admin-detail-card,
    .admin-table-card {
        padding: 1rem;
    }

    .admin-toolbar,
    .admin-stats-grid,
    .admin-live-stage-list {
        grid-template-columns: 1fr;
    }

    .admin-inline-create-form,
    .admin-inline-edit-form {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-table-actions {
        justify-content: stretch;
    }

        .admin-table-actions .btn,
        .admin-table-actions form,
        .admin-table-actions button {
            width: 100%;
        }

    .admin-suggestion-grid {
        grid-template-columns: 1fr;
    }
}

/* Odświeżona kolorystyka publicznego kreatora. Zakres jest celowo zawężony poza panel administracyjny. */
body:is(.wizard-page, .page-status, .page-error) {
    --wizard-heading: #26323A;
    --wizard-primary: #FF8FB3;
    --wizard-primary-hover: #F57FA5;
    --wizard-primary-highlight: #FF8FB3;
    --wizard-primary-highlight-dark: #F57FA5;
    --wizard-primary-dark: #8E2947;
    --wizard-primary-rgb: 255, 143, 179;
    --wizard-accent: #24A2BD;
    --wizard-accent-hover: #1d8ca4;
    --wizard-accent-dark: #11697b;
    --wizard-accent-rgb: 36, 162, 189;
    --wizard-page-bg-start: #f7f8fa;
    --wizard-page-bg-end: #eef2f5;
    --wizard-surface: #ffffff;
    --wizard-surface-soft: #f8fafc;
    --wizard-border: rgba(15, 23, 42, 0.1);
    --wizard-border-strong: rgba(15, 23, 42, 0.14);
    --wizard-shadow: 0 1rem 2.1rem rgba(15, 23, 42, 0.1);
    --wizard-shadow-soft: 0 0.55rem 1.35rem rgba(15, 23, 42, 0.08);
    --brand-turquoise: var(--wizard-primary);
    --brand-pink: var(--wizard-primary);
    --brand-turquoise-soft: rgba(var(--wizard-primary-rgb), 0.11);
    --brand-pink-soft: rgba(var(--wizard-primary-rgb), 0.13);
    --brand-border: var(--wizard-border);
    --bs-primary: var(--wizard-primary);
    --bs-primary-rgb: var(--wizard-primary-rgb);
    --bs-danger: var(--wizard-primary);
    --bs-danger-rgb: var(--wizard-primary-rgb);
    --bs-link-color: var(--wizard-primary);
    --bs-link-hover-color: var(--wizard-primary-hover);
    background: linear-gradient(180deg, var(--wizard-page-bg-start) 0%, var(--wizard-page-bg-end) 100%) !important;
}

body:is(.wizard-page, .page-status, .page-error) a,
body:is(.wizard-page, .page-status, .page-error) .link-primary,
body:is(.wizard-page, .page-status, .page-error) .text-primary {
    color: var(--wizard-primary) !important;
}

body:is(.wizard-page, .page-status, .page-error) .text-danger,
body:is(.wizard-page, .page-status, .page-error) .link-danger {
    color: var(--wizard-primary) !important;
}

body:is(.wizard-page, .page-status, .page-error) .bg-primary,
body:is(.wizard-page, .page-status, .page-error) .badge.bg-primary {
    background-color: var(--wizard-primary) !important;
}

body:is(.wizard-page, .page-status, .page-error) .bg-danger,
body:is(.wizard-page, .page-status, .page-error) .badge.bg-danger {
    background-color: var(--wizard-primary) !important;
}

body:is(.wizard-page, .page-status, .page-error) .border-primary {
    border-color: var(--wizard-primary) !important;
}

body:is(.wizard-page, .page-status, .page-error) .border-danger {
    border-color: var(--wizard-primary) !important;
}

body:is(.wizard-page, .page-status, .page-error) .project-brand-link {
    color: #172f42 !important;
}

body:is(.wizard-page, .page-status, .page-error) .project-brand-caption,
body:is(.wizard-page, .page-status, .page-error) footer .text-body-secondary {
    color: #536779 !important;
}

body:is(.wizard-page, .page-status, .page-error) .wizard-breadcrumb,
body.wizard-page .stage-form-card,
body.wizard-page .wizard-start-card,
body.wizard-page .stage5-card,
body:is(.wizard-page, .page-status, .page-error) .wizard-status-card,
body.wizard-page .wizard-panel,
body.wizard-page .stage5-token-panel,
body.wizard-page .stage5-save-panel,
body.wizard-page .stage5-contact-panel,
body.wizard-page .stage5-action-block,
body.wizard-page .wizard-product-change-modal .modal-content {
    border-color: var(--wizard-border) !important;
    background: var(--wizard-surface) !important;
    box-shadow: var(--wizard-shadow);
}

body.wizard-page .stage5-card::before {
    background: none !important;
}

body.wizard-page .wizard-start-video-shell,
body.wizard-page .wizard-product-tile,
body.wizard-page .wizard-product-change-modal__choice,
body.wizard-page .wizard-mode-switch,
body.wizard-page .wizard-custom-intro,
body.wizard-page .wizard-mode-switch__preview,
body.wizard-page .wizard-custom-intro__preview,
body.wizard-page .wizard-custom-upload-panel,
body.wizard-page .custom-character-panel,
body.wizard-page .custom-attribute-panel,
body.wizard-page .custom-character-hero__media,
body.wizard-page .arrow-context-card,
body.wizard-page .arrow-context-placeholder,
body.wizard-page .arrow-control-card,
body.wizard-page .asset-grid-scroll,
body.wizard-page .attribute-count-selector,
body.wizard-page .stage5-preview-shell,
body.wizard-page .stage5-preview-placeholder,
body:is(.wizard-page, .page-status, .page-error) .wizard-status-meta {
    border-color: var(--wizard-border) !important;
    background: var(--wizard-surface-soft) !important;
    box-shadow: var(--wizard-shadow-soft);
}

body.wizard-page .wizard-product-tile:hover,
body.wizard-page .wizard-product-tile:focus-within,
body.wizard-page .custom-radio-card:hover {
    border-color: rgba(var(--wizard-primary-rgb), 0.28) !important;
    box-shadow: var(--wizard-shadow);
}

body.wizard-page .custom-radio-card.selected,
body.wizard-page .wizard-product-tile:has(.wizard-product-tile__input:checked) {
    border-color: rgba(var(--wizard-primary-rgb), 0.58) !important;
    background: rgba(var(--wizard-primary-rgb), 0.08) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--wizard-primary-rgb), 0.12), var(--wizard-shadow);
}

body.wizard-page .attribute-selector .btn.selected {
    color: #ffffff !important;
    border-color: var(--wizard-primary-highlight-dark) !important;
    background: linear-gradient(145deg, var(--wizard-primary-highlight), var(--wizard-primary-highlight-dark)) !important;
    box-shadow: 0 0.36rem 0.9rem rgba(var(--wizard-primary-rgb), 0.16);
}

body:is(.wizard-page, .page-status, .page-error) .wizard-stage-title,
body:is(.wizard-page, .page-status, .page-error) .stage-form-card .wizard-stage-title {
    color: var(--wizard-heading) !important;
    text-shadow: none;
}

body.wizard-page .wizard-section-title {
    color: var(--wizard-heading);
    border-color: rgba(var(--wizard-primary-rgb), 0.34);
    background: linear-gradient(180deg, rgba(var(--wizard-primary-rgb), 0.2), rgba(var(--wizard-primary-rgb), 0.12));
    box-shadow: 0 0.32rem 0.78rem rgba(var(--wizard-primary-rgb), 0.12);
}

body.wizard-page .wizard-section-title.stage2-custom-step-title--optional {
    color: #526171;
    border-color: rgba(100, 116, 139, 0.32);
    background: #f1f4f7;
    box-shadow: 0 0.24rem 0.62rem rgba(71, 85, 105, 0.1);
}

body.wizard-page .stage2-couple-custom-panel .stage2-custom-hero__eyebrow,
body.wizard-page .stage2-couple-custom-panel .wizard-section-title,
body.wizard-page .stage2-couple-custom-panel .wizard-start-profile-group__title,
body.wizard-page .stage3-couple-dedication-heading {
    color: var(--wizard-heading);
}

body.wizard-project-para-ai .wizard-section-title,
body.wizard-project-para-ai .wizard-subsection-title,
body.wizard-project-para-ai .wizard-subsection-pill,
body.wizard-project-para-ai .wizard-start-profile-label,
body.wizard-project-para-ai .wizard-start-profile-group__title,
body.wizard-project-para-ai .stage2-custom-hero__eyebrow,
body.wizard-project-para-ai .stage3-couple-dedication-heading {
    color: var(--wizard-heading) !important;
}

body.wizard-page .form-check-label.wizard-featured-category-label {
    display: inline-flex;
    align-items: center;
    min-height: 1.28rem;
    padding: 0.08rem 0.38rem;
    border: 1px solid rgba(36, 162, 189, 0.34);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(36, 162, 189, 0.12), rgba(255, 143, 179, 0.07));
    color: #0d6070;
    font-weight: 850;
    line-height: 1.05;
    box-shadow: 0 0.22rem 0.52rem rgba(36, 162, 189, 0.1);
}

body.wizard-page .person-category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.34rem;
    margin: 0 0 0.75rem;
}

body.wizard-page .person-category-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: 0.27rem 0.4rem;
    border: 1px solid #dce3e9;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #2d3741;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

body.wizard-page .person-category-button:hover,
body.wizard-page .person-category-filter:focus-visible + .person-category-button {
    border-color: rgba(var(--wizard-primary-rgb), 0.6);
}

body.wizard-page .person-category-filter:checked + .person-category-button {
    border-color: var(--wizard-primary);
    background: rgba(var(--wizard-primary-rgb), 0.09);
    color: var(--wizard-primary-dark);
    box-shadow: 0 0.18rem 0.45rem rgba(var(--wizard-primary-rgb), 0.12);
}

body.wizard-page .person-category-button.wizard-featured-category-label,
body.wizard-page .person-category-filter:checked + .person-category-button.wizard-featured-category-label {
    border-color: rgba(var(--wizard-accent-rgb), 0.56);
    background: rgba(var(--wizard-accent-rgb), 0.11);
    color: var(--wizard-accent-dark);
    font-weight: 850;
    box-shadow: 0 0.18rem 0.45rem rgba(var(--wizard-accent-rgb), 0.12);
}

body.wizard-page .wizard-subsection-title,
body.wizard-page .wizard-subsection-pill {
    color: var(--wizard-primary-dark);
    border-color: rgba(var(--wizard-primary-rgb), 0.3);
    background: linear-gradient(180deg, rgba(var(--wizard-primary-rgb), 0.14), rgba(var(--wizard-primary-rgb), 0.08));
    box-shadow: 0 0.28rem 0.7rem rgba(var(--wizard-primary-rgb), 0.1);
}

body.wizard-page .attribute-suggestion-heading {
    color: #0d6070;
    border-color: rgba(36, 162, 189, 0.42);
    background: linear-gradient(180deg, rgba(36, 162, 189, 0.2), rgba(36, 162, 189, 0.14));
    box-shadow: 0 0.35rem 0.85rem rgba(36, 162, 189, 0.12);
}

body.wizard-page .wizard-helper-copy,
body.wizard-page .wizard-intro-copy,
body.wizard-page .wizard-product-select-title,
body.wizard-page .wizard-custom-intro__text,
body:is(.wizard-page, .page-status, .page-error) .wizard-status-code {
    color: #31485b;
}

body.wizard-page .wizard-product-change-modal__eyebrow {
    color: var(--wizard-primary);
}

body:is(.wizard-page, .page-status, .page-error) .btn-primary,
body:is(.wizard-page, .page-status, .page-error) .wizard-submit-btn.btn-primary {
    border-color: var(--wizard-primary) !important;
    background: linear-gradient(145deg, var(--wizard-primary), var(--wizard-primary-hover)) !important;
    color: #ffffff !important;
    box-shadow: 0 0.5rem 1.08rem rgba(var(--wizard-primary-rgb), 0.2);
}

body:is(.wizard-page, .page-status, .page-error) .btn-primary:hover,
body:is(.wizard-page, .page-status, .page-error) .btn-primary:focus,
body:is(.wizard-page, .page-status, .page-error) .btn-primary:focus-visible,
body:is(.wizard-page, .page-status, .page-error) .btn-primary:active {
    border-color: var(--wizard-primary-highlight-dark) !important;
    background: linear-gradient(145deg, var(--wizard-primary-highlight), var(--wizard-primary-highlight-dark)) !important;
    color: #ffffff !important;
    box-shadow: 0 0.48rem 1.02rem rgba(var(--wizard-primary-rgb), 0.18);
}

body:is(.wizard-page, .page-status, .page-error) .btn-outline-primary,
body:is(.wizard-page, .page-status, .page-error) .brand-btn-light {
    color: var(--wizard-primary);
    border-color: rgba(var(--wizard-primary-rgb), 0.42);
}

body:is(.wizard-page, .page-status, .page-error) .btn-outline-primary:hover,
body:is(.wizard-page, .page-status, .page-error) .btn-outline-primary:focus,
body:is(.wizard-page, .page-status, .page-error) .btn-outline-primary:focus-visible,
body:is(.wizard-page, .page-status, .page-error) .brand-btn-light:hover,
body:is(.wizard-page, .page-status, .page-error) .brand-btn-light:focus {
    color: #ffffff;
    border-color: var(--wizard-primary-highlight);
    background-color: var(--wizard-primary-highlight);
}

body:is(.wizard-page, .page-status, .page-error) .btn-outline-danger {
    color: var(--wizard-primary);
    border-color: rgba(var(--wizard-primary-rgb), 0.42);
}

body:is(.wizard-page, .page-status, .page-error) .btn-outline-danger:hover,
body:is(.wizard-page, .page-status, .page-error) .btn-outline-danger:focus,
body:is(.wizard-page, .page-status, .page-error) .btn-outline-danger:focus-visible {
    color: #ffffff;
    border-color: var(--wizard-primary-highlight);
    background-color: var(--wizard-primary-highlight);
}

body:is(.wizard-page, .page-status, .page-error) .btn-outline-secondary:hover,
body:is(.wizard-page, .page-status, .page-error) .btn-outline-secondary:focus,
body:is(.wizard-page, .page-status, .page-error) .btn-outline-secondary:focus-visible {
    color: var(--wizard-primary-dark);
    border-color: rgba(var(--wizard-primary-rgb), 0.32);
    background-color: rgba(var(--wizard-primary-rgb), 0.07);
}

body:is(.wizard-page, .page-status, .page-error) .btn-link,
body:is(.wizard-page, .page-status, .page-error) .btn-link:hover,
body:is(.wizard-page, .page-status, .page-error) .btn-link:focus {
    color: var(--wizard-primary);
}

body:is(.wizard-page, .page-status, .page-error) .nav-pills .nav-link.active,
body:is(.wizard-page, .page-status, .page-error) .nav-pills .show > .nav-link {
    background-color: var(--wizard-primary);
}

body.wizard-page .wizard-breadcrumb .wizard-step-link:hover,
body.wizard-page .breadcrumb-chevron .breadcrumb-item a:hover {
    color: var(--wizard-primary-dark) !important;
    border-color: rgba(var(--wizard-primary-rgb), 0.34);
    background: rgba(var(--wizard-primary-rgb), 0.1);
}

body.wizard-page .wizard-breadcrumb .wizard-step-link:focus-visible {
    color: var(--wizard-primary-dark);
    border-color: rgba(var(--wizard-primary-rgb), 0.38);
    box-shadow: 0 0 0 0.22rem rgba(var(--wizard-primary-rgb), 0.12);
}

body.wizard-page .wizard-breadcrumb .wizard-step-link.is-active {
    color: #ffffff !important;
    border-color: var(--wizard-primary-highlight-dark);
    background: linear-gradient(145deg, var(--wizard-primary-highlight), var(--wizard-primary-highlight-dark));
    box-shadow: 0 0.18rem 0.5rem rgba(var(--wizard-primary-rgb), 0.16);
}

body.wizard-page .wizard-breadcrumb .wizard-step-link.is-active:hover {
    color: #ffffff !important;
    box-shadow: 0 0.22rem 0.58rem rgba(var(--wizard-primary-rgb), 0.18);
}

body.wizard-page .breadcrumb-chevron .breadcrumb-item:not(:last-child)::after {
    color: #6b7d8d;
}

body.wizard-page .wizard-breadcrumb .wizard-step-link.is-disabled,
body.wizard-page .wizard-breadcrumb .wizard-step-link.disabled {
    color: #96a3af !important;
    border-color: rgba(148, 163, 184, 0.24);
    background-color: rgba(148, 163, 184, 0.12);
}

body:is(.wizard-page, .page-status, .page-error) .form-control,
body:is(.wizard-page, .page-status, .page-error) .form-select,
body:is(.wizard-page, .page-status, .page-error) .input-group-text {
    border-color: rgba(100, 116, 139, 0.28) !important;
    background-color: #ffffff;
}

body:is(.wizard-page, .page-status, .page-error) .input-group-text,
body.wizard-page .attribute-field-label,
body.wizard-page .wizard-input-group-label {
    color: #2e475a;
    background: #f3f6f9 !important;
}

body:is(.wizard-page, .page-status, .page-error) .form-control:focus,
body:is(.wizard-page, .page-status, .page-error) .form-select:focus,
body:is(.wizard-page, .page-status, .page-error) .form-check-input:focus,
body:is(.wizard-page, .page-status, .page-error) .btn:focus,
body:is(.wizard-page, .page-status, .page-error) .btn:active:focus,
body:is(.wizard-page, .page-status, .page-error) .btn-link.nav-link:focus {
    border-color: var(--wizard-primary) !important;
    box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.24rem rgba(var(--wizard-primary-rgb), 0.12) !important;
}

body:is(.wizard-page, .page-status, .page-error) .form-check-input:checked {
    border-color: var(--wizard-primary);
    background-color: var(--wizard-primary);
}

body:is(.wizard-page, .page-status, .page-error) .alert-primary {
    color: var(--wizard-primary-dark);
    border-color: rgba(var(--wizard-primary-rgb), 0.24);
    background: rgba(var(--wizard-primary-rgb), 0.08);
}

body:is(.wizard-page, .page-status, .page-error) .alert-danger,
body:is(.wizard-page, .page-status, .page-error) .wizard-alert.alert-danger {
    color: var(--wizard-primary-dark);
    border-color: rgba(var(--wizard-primary-rgb), 0.3);
    background: rgba(var(--wizard-primary-rgb), 0.1);
}

body.wizard-page .wizard-hint-callout {
    border-color: rgba(var(--wizard-primary-rgb), 0.24);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 246, 248, 0.98));
}

body.wizard-page .wizard-hint-callout::before {
    filter: drop-shadow(0 0.25rem 0.4rem rgba(217, 119, 6, 0.3));
}

body.wizard-page .stage5-countdown-chip,
body:is(.wizard-page, .page-status, .page-error) .wizard-status-meta code {
    color: var(--wizard-primary-dark);
    background: rgba(var(--wizard-primary-rgb), 0.1);
}

body.wizard-page .custom-upload-file-name.is-selected {
    border-color: rgba(var(--wizard-primary-rgb), 0.42);
    background: rgba(var(--wizard-primary-rgb), 0.08);
    color: var(--wizard-primary-dark);
}

body.wizard-page .asset-grid-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(var(--wizard-primary-rgb), 0.35);
}

body.wizard-page .stage5-copy-field.is-copied {
    border-color: rgba(var(--wizard-primary-rgb), 0.55);
    box-shadow: 0 0 0 0.2rem rgba(var(--wizard-primary-rgb), 0.12);
}

body.wizard-page .stage5-copy-field--token {
    color: #166534;
    border-color: rgba(34, 197, 94, 0.42) !important;
    background-color: rgba(34, 197, 94, 0.1) !important;
}

body.wizard-page .custom-upload-button:hover,
body.wizard-page .custom-upload-button:focus-visible,
body.wizard-page .attribute-suggestion-list .suggestion-pill:hover {
    border-color: rgba(var(--wizard-primary-rgb), 0.28);
    background: rgba(var(--wizard-primary-rgb), 0.07);
}

body:is(.wizard-page, .page-status, .page-error) .wizard-footer-rule {
    border-color: rgba(15, 23, 42, 0.1);
}

body.wizard-page .wizard-product-select-title.wizard-subsection-pill {
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    color: var(--wizard-heading, #263442) !important;
}

body.wizard-stage-0 .wizard-start-choice-heading {
    color: var(--wizard-heading, #263442) !important;
}

@media (min-width: 992px) {
    body.wizard-stage-0 .wizard-start-profile-picker.is-open .wizard-start-profile-picker__list,
    body.wizard-stage-0 .wizard-start-profile-group.is-open .wizard-start-profile-picker__list {
        gap: 0.06rem;
    }

    body.wizard-stage-0 .wizard-start-profile-picker__option {
        min-height: 1.78rem;
        padding: 0.22rem 0.46rem;
    }

    body.wizard-stage-0 .wizard-start-profile-picker__option.is-featured + .wizard-start-profile-picker__option:not(.is-featured) {
        margin-top: 0.14rem;
        padding-top: 0.4rem;
    }
}

body.wizard-stage-0 .wizard-product-tile-grid {
    width: min(100%, 30rem);
    grid-template-columns: repeat(6, minmax(0, 1fr));
    justify-content: center;
    gap: 0.32rem;
    margin-inline: auto;
}

body.wizard-stage-0 .wizard-product-tile {
    grid-template-rows: 36px auto;
    gap: 0.2rem;
    min-height: 72px;
    padding: 0.28rem 0.22rem;
    border-width: 1px;
    border-radius: 0.48rem;
}

body.wizard-stage-0 .wizard-product-tile:has(.wizard-product-tile__input:checked) {
    border-width: 2px;
    box-shadow: 0 0 0 0.12rem rgba(var(--wizard-primary-rgb), 0.1), var(--wizard-shadow-soft);
}

body.wizard-stage-0 .wizard-product-tile__media {
    width: 36px;
    height: 36px;
    min-height: 36px;
    margin-inline: auto;
    border-radius: 0.45rem;
    background: transparent;
    overflow: visible;
}

body.wizard-stage-0 .wizard-product-tile__media img {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}

body.wizard-stage-0 .wizard-product-tile__label {
    min-height: 2.4em;
    font-size: 0.56rem;
    line-height: 1.08;
    letter-spacing: 0;
}

@media (min-width: 992px) {
    body.wizard-stage-0 .wizard-start-card {
        max-height: none;
        overflow: visible;
    }

    body.wizard-stage-0 .wizard-start-layout {
        align-items: start;
    }

    body.wizard-stage-0 .wizard-start-content {
        gap: 0.62rem;
    }

    body.wizard-stage-0 .wizard-product-select-form {
        gap: 0.52rem;
    }

    body.wizard-stage-0 .wizard-product-select-title {
        padding: 0.22rem 0.58rem;
        font-size: 0.7rem;
    }

    body.wizard-stage-0 .wizard-product-tile-grid {
        width: 100%;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0.22rem;
    }

    body.wizard-stage-0 .wizard-product-tile {
        grid-template-rows: 32px auto;
        gap: 0.18rem;
        min-height: 66px;
        padding: 0.24rem 0.18rem;
        border-width: 1px;
        border-radius: 0.48rem;
    }

    body.wizard-stage-0 .wizard-product-tile:has(.wizard-product-tile__input:checked) {
        border-width: 2px;
        box-shadow: 0 0 0 0.12rem rgba(var(--wizard-primary-rgb), 0.1), var(--wizard-shadow-soft);
    }

    body.wizard-stage-0 .wizard-product-tile__media {
        width: 32px;
        height: 32px;
        min-height: 32px;
        border-radius: 0.38rem;
    }

    body.wizard-stage-0 .wizard-product-tile__media img {
        width: 32px;
        height: 32px;
        max-width: 32px;
        max-height: 32px;
    }

    body.wizard-stage-0 .wizard-product-tile__label {
        min-height: 2.4em;
        font-size: 0.5rem;
        line-height: 1.05;
        letter-spacing: 0;
    }

    body.wizard-stage-0 .wizard-product-inspiration-copy {
        max-width: none;
        margin: 0;
        font-size: 0.72rem;
        line-height: 1.28;
        text-align: left;
    }
}

@media (min-width: 1200px) {
    body:is(.page-stage3, .wizard-stage-3) .stage-shell .container-xxl {
        max-width: min(1600px, calc(100vw - 2rem));
    }

    body:is(.page-stage3, .wizard-stage-3) .stage-shell .row.mb-4 {
        --bs-gutter-x: 0.95rem;
        align-items: flex-start;
    }

    body:is(.page-stage3, .wizard-stage-3) .stage-shell .col-lg-7 {
        width: clamp(40rem, 56vw, 62rem);
        max-width: calc(100vw - min(32rem, 35vw) - 2.5rem);
    }

    body:is(.page-stage3, .wizard-stage-3) .stage-shell .col-lg-5 {
        max-width: min(32rem, 35vw);
    }

    body:is(.page-stage3, .wizard-stage-3) .stage-form-card {
        padding: 0.72rem 0.9rem 0.42rem !important;
    }

    body:is(.page-stage3, .wizard-stage-3) .wizard-stage-title {
        margin-bottom: 0.42rem !important;
        font-size: 1rem;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-count-selector {
        width: fit-content;
        max-width: 100%;
        gap: 0.24rem 0.42rem;
        padding: 0.22rem 0.42rem;
        margin-bottom: 0.34rem !important;
        border-radius: 0.58rem;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-count-label,
    body:is(.page-stage3, .wizard-stage-3) .attribute-count-option span {
        font-size: 0.78rem;
        line-height: 1.05;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-count-option {
        min-height: 1.48rem;
        padding: 0.16rem 0.45rem;
        border-radius: 0.5rem;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-count-selector .form-check-input {
        width: 0.74rem;
        height: 0.74rem;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-selector {
        gap: 0.32rem;
        margin-bottom: 0.5rem !important;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-selector .btn {
        min-height: 1.92rem;
        padding: 0.22rem 1rem 0.22rem 0.38rem;
        border-radius: 0.6rem;
        font-size: 0.68rem;
        line-height: 1.12;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-selector .btn::after {
        top: 0.17rem;
        right: 0.14rem;
        width: 0.62rem;
        height: 0.62rem;
        font-size: 0.4rem;
    }

    body:is(.page-stage3, .wizard-stage-3) .wizard-section-title {
        margin-bottom: 0.24rem;
        padding: 0.22rem 0.56rem;
        font-size: 0.7rem;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-category-strip {
        gap: 0.12rem 0.28rem;
        margin-bottom: 0.36rem;
        padding-bottom: 0.18rem;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-category-strip .form-check-label {
        font-size: 0.7rem;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-category-strip .form-check-input {
        width: 0.62rem;
        height: 0.62rem;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-tag-search {
        margin-bottom: 0.38rem !important;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-tag-search-group .attribute-field-label {
        min-width: 8.9rem;
    }

    body:is(.page-stage3, .wizard-stage-3) .form-control,
    body:is(.page-stage3, .wizard-stage-3) .input-group-text {
        min-height: 2.08rem;
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
        font-size: 0.84rem;
        line-height: 1.2;
    }

    body:is(.page-stage3, .wizard-stage-3) .asset-grid-scroll {
        max-height: min(16vh, 148px);
        padding: 0.28rem !important;
    }

    body:is(.page-stage3, .wizard-stage-3) .asset-thumb-grid .character-thumb {
        max-width: 62px;
        max-height: 62px;
    }

    body:is(.page-stage3, .wizard-stage-3) .asset-thumb-grid .custom-radio-card::after {
        inset: calc(var(--asset-thumb-item-margin, 4px) * -0.2);
        border-width: 2px;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-description-layout.mt-3 {
        margin-top: 0.52rem !important;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-description-layout {
        grid-template-columns: minmax(0, 1fr) minmax(16.5rem, 0.82fr);
        gap: 0.46rem 0.72rem;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-line-group {
        margin-bottom: 0.28rem;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-line-group .attribute-field-label {
        min-width: 6.7rem;
        padding-inline: 0.5rem;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-suggestion-header {
        margin-bottom: 0.44rem !important;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-suggestion-heading {
        display: inline-flex;
        align-items: center;
        min-height: 1.86rem;
        white-space: normal;
        overflow-wrap: normal;
        padding: 0.3rem 0.64rem;
        font-size: 0.76rem;
        line-height: 1.24;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-suggestion-list {
        max-height: min(15vh, 7.6rem);
        overflow-y: auto;
        padding-right: 0.16rem;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-suggestion-list .list-group-item {
        display: flex;
        align-items: center;
        min-height: 2.08rem;
        padding: 0.44rem 0.64rem;
        font-size: 0.88rem;
        line-height: 1.32;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-description-hint {
        margin-top: -0.08rem;
        padding: 0.26rem 0.5rem;
        column-gap: 0.34rem;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-description-hint::before {
        width: 0.72rem;
        height: 0.72rem;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-description-hint .wizard-hint-callout__text {
        font-size: 0.7rem;
        line-height: 1.16;
    }

    body:is(.page-stage3, .wizard-stage-3) .stage-form-actions {
        gap: 0.75rem !important;
        margin-top: 0.9rem !important;
        margin-bottom: 0 !important;
    }

    body:is(.page-stage3, .wizard-stage-3) .stage-form-actions .btn {
        min-height: 2.35rem;
        padding: 0.46rem 1.18rem;
        font-size: 0.86rem;
        line-height: 1.16;
    }

    body:is(.page-stage3, .wizard-stage-3) #stage3Preview {
        max-width: min(100%, 31.5rem);
        max-height: min(calc(100vh - 8rem), 760px);
    }
}

@media (max-height: 840px) and (min-width: 1200px) {
    body:is(.page-stage3, .wizard-stage-3) .asset-grid-scroll {
        max-height: min(14vh, 128px);
    }

    body:is(.page-stage3, .wizard-stage-3) .asset-thumb-grid .character-thumb {
        max-width: 56px;
        max-height: 56px;
    }

    body:is(.page-stage3, .wizard-stage-3) .attribute-suggestion-list {
        max-height: min(13vh, 6.4rem);
    }
}

body:is(.page-stage3, .wizard-stage-3) .attribute-description-fields > .wizard-section-title {
    justify-self: start;
    width: fit-content;
    max-width: 100%;
}

body:is(.page-stage3, .wizard-stage-3) .attribute-suggestion-list {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
}

@media (min-width: 768px) {
    body:is(.page-stage5, .wizard-stage-5) .stage5-main-button,
    body:is(.page-stage5, .wizard-stage-5) .stage5-back-button,
    body:is(.page-stage5, .wizard-stage-5) .stage5-contact-button {
        width: max-content;
        max-width: 100%;
    }
}

body.page-stage0 .wizard-start-content--couple,
body.wizard-stage-0 .wizard-start-content--couple {
    align-self: stretch;
}

body.wizard-project-para-atrybut.wizard-stage-0 .wizard-stage-heading-line--pair-attributes {
    flex-direction: column;
    gap: 0.55rem;
}

body.wizard-project-para-atrybut.wizard-stage-0 .wizard-stage-heading-line--pair-attributes .wizard-stage-title {
    color: var(--wizard-heading, #263442) !important;
}

body.wizard-project-para-atrybut.wizard-stage-0 .wizard-product-select-form {
    min-height: 0;
    margin-top: 0;
    padding-top: 0.18rem;
}

/* Finał kreatora: układ sprzedażowy zgodny z wizualizacją Stage5. */
body.wizard-stage-5 {
    overflow-x: hidden;
    background: #fbfcfd;
}

body.wizard-stage-5 .stage5-redesign {
    padding: 0 0 0.8rem;
    color: #26323a;
}

body.wizard-stage-5 .stage5-final-container {
    width: min(100% - 2rem, 1120px);
    margin-inline: auto;
}

body.wizard-stage-5 .stage5-save-form {
    width: 100%;
    max-width: none;
}

body.wizard-stage-5 .stage5-final-header {
    margin: 0 auto 0.8rem;
    text-align: center;
}

body.wizard-stage-5 .stage5-final-title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

body.wizard-stage-5 .stage5-final-title-line h1 {
    margin: 0;
    color: var(--wizard-heading, #26323a);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.4rem, 1.9vw, 1.85rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

body.wizard-stage-5 .stage5-final-header > p {
    margin: 0.35rem auto 0;
    color: #5c6977;
    font-size: clamp(0.82rem, 1vw, 0.9rem);
    line-height: 1.4;
}

body.wizard-stage-5 .stage5-final-success-icon {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(21, 163, 91, 0.18);
    border-radius: 50%;
    color: #12a35d;
    background: #e5f8eb;
    box-shadow: 0 0 0 0.38rem rgba(51, 201, 116, 0.08);
}

body.wizard-stage-5 .stage5-final-success-icon .stage5-ui-icon__svg {
    width: 1.45rem;
    height: 1.45rem;
}

body.wizard-stage-5 .stage5-final-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.98fr);
    gap: 1.25rem;
    align-items: start;
}

body.wizard-stage-5 .stage5-final-card,
body.wizard-stage-5 .stage5-edit-card,
body.wizard-stage-5 .stage5-benefits {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.55rem 1.6rem rgba(15, 23, 42, 0.065);
}

body.wizard-stage-5 .stage5-product-card {
    min-width: 0;
    padding: 0.85rem;
}

body.wizard-stage-5 .stage5-product-card .stage5-preview-shell {
    width: 100%;
    max-width: none;
    min-height: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    justify-self: stretch;
    justify-content: center;
    align-items: center;
    margin-inline: auto;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 0.85rem;
    background: #f5f6f7 !important;
    box-shadow: none;
}

body.wizard-stage-5 .stage5-product-card .stage5-preview-shell:has(> .stage5-preview-image.is-visible:not(.d-none)) {
    width: fit-content;
    max-width: 100%;
    min-height: 0;
    aspect-ratio: auto;
    justify-self: center;
}

body.wizard-stage-5 .stage5-product-card .stage5-preview-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 34rem;
    display: block;
    object-fit: contain;
    border-radius: 0.8rem;
    box-shadow: none;
}

body.wizard-stage-5 .stage5-product-card .stage5-preview-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0 !important;
    border-radius: 0.8rem;
    background: #f7f9fa !important;
    box-shadow: none;
}

body.wizard-stage-5 .stage5-product-preview-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0.65rem 0 0;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 0.65rem;
    background: #f7f8f9;
    color: #6b7280;
    font-size: 0.78rem;
    line-height: 1.4;
}

body.wizard-stage-5 .stage5-product-preview-notice > span:first-child {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.2;
}

body.wizard-stage-5 .stage5-final-side {
    min-width: 0;
    display: grid;
    gap: 0.55rem;
}

body.wizard-stage-5 .stage5-order-card,
body.wizard-stage-5 .stage5-code-card,
body.wizard-stage-5 .stage5-email-card {
    padding: 0.8rem;
}

body.wizard-stage-5 .stage5-order-heading-line,
body.wizard-stage-5 .stage5-email-heading-line {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

body.wizard-stage-5 .stage5-order-heading-line h2,
body.wizard-stage-5 .stage5-email-heading-line h2 {
    margin: 0;
    color: #1f2933;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
}

body.wizard-stage-5 .stage5-order-heading-line p,
body.wizard-stage-5 .stage5-email-heading-line p {
    margin: 0.15rem 0 0;
    color: #5c6977;
    font-size: 0.76rem;
    line-height: 1.4;
}

body.wizard-stage-5 .stage5-order-heading-line .stage5-ui-icon,
body.wizard-stage-5 .stage5-email-heading-line .stage5-ui-icon,
body.wizard-stage-5 .stage5-section-title .stage5-ui-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
}

body.wizard-stage-5 .stage5-final-cta {
    width: 100% !important;
    min-height: 3.25rem;
    margin-top: 0.7rem;
    padding: 0.65rem 0.85rem;
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr) 1.35rem;
    align-items: center;
    gap: 0.65rem;
    border: 0 !important;
    border-radius: 0.72rem;
    color: #fff !important;
    background: var(--wizard-primary, #FF8FB3) !important;
    box-shadow: 0 0.75rem 1.35rem rgba(255, 143, 179, 0.23) !important;
    font-size: clamp(0.82rem, 1.1vw, 0.98rem);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

body.wizard-stage-5 .stage5-final-cta:hover,
body.wizard-stage-5 .stage5-final-cta:focus-visible {
    background: var(--wizard-primary-hover, #F57FA5) !important;
    transform: translateY(-1px);
    box-shadow: 0 0.85rem 1.5rem rgba(255, 143, 179, 0.29) !important;
}

body.wizard-stage-5 .stage5-final-cta-icon,
body.wizard-stage-5 .stage5-final-cta-arrow,
body.wizard-stage-5 .stage5-order-assurance > span,
body.wizard-stage-5 .stage5-edit-action > span:first-child,
body.wizard-stage-5 .stage5-edit-chevron,
body.wizard-stage-5 .stage5-copy-button > span:first-child,
body.wizard-stage-5 .stage5-email-button > span:first-child {
    display: inline-grid;
    place-items: center;
}

body.wizard-stage-5 .stage5-final-cta .stage5-ui-icon__svg,
body.wizard-stage-5 .stage5-order-assurance .stage5-ui-icon__svg,
body.wizard-stage-5 .stage5-edit-action .stage5-ui-icon__svg,
body.wizard-stage-5 .stage5-copy-button .stage5-ui-icon__svg,
body.wizard-stage-5 .stage5-email-button .stage5-ui-icon__svg {
    width: 1.15rem;
    height: 1.15rem;
}

body.wizard-stage-5 .stage5-order-assurance {
    margin: 0.4rem auto 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.38rem;
    color: #6c7884;
    font-size: 0.69rem;
    line-height: 1.35;
    text-align: center;
}

body.wizard-stage-5 .stage5-order-assurance > span {
    margin-top: 0.08rem;
    flex: 0 0 auto;
}

body.wizard-stage-5 .stage5-edit-card {
    overflow: hidden;
}

body.wizard-stage-5 .stage5-edit-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.wizard-stage-5 .stage5-edit-action {
    min-width: 0;
    min-height: 3.15rem;
    padding: 0.65rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border: 0;
    color: #344351;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 650;
    line-height: 1.25;
    transition: color 180ms ease, background-color 180ms ease;
}

body.wizard-stage-5 .stage5-edit-action--back {
    border-right: 1px solid rgba(15, 23, 42, 0.1);
}

body.wizard-stage-5 .stage5-edit-action--notes {
    color: var(--wizard-primary, #FF8FB3);
}

body.wizard-stage-5 .stage5-edit-action:hover,
body.wizard-stage-5 .stage5-edit-action:focus-visible {
    color: var(--wizard-primary-dark, #8e2947);
    background: rgba(var(--wizard-primary-rgb, 255, 143, 179), 0.055);
}

body.wizard-stage-5 .stage5-edit-action:focus-visible,
body.wizard-stage-5 .stage5-copy-button:focus-visible,
body.wizard-stage-5 .stage5-email-button:focus-visible {
    position: relative;
    z-index: 2;
    outline: 3px solid rgba(var(--wizard-primary-rgb, 255, 143, 179), 0.28);
    outline-offset: -3px;
}

body.wizard-stage-5 .stage5-edit-chevron {
    margin-left: auto;
    transition: transform 180ms ease;
}

body.wizard-stage-5 .stage5-edit-action--notes[aria-expanded="true"] .stage5-edit-chevron {
    transform: rotate(180deg);
}

body.wizard-stage-5 .stage5-comments-panel {
    padding: 0.75rem;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    background: #fbfcfd;
}

body.wizard-stage-5 .stage5-comments-panel[hidden] {
    display: none;
}

body.wizard-stage-5 .stage5-comments-panel .form-label {
    margin-bottom: 0.45rem;
    color: #26323a;
    font-size: 0.86rem;
    font-weight: 700;
}

body.wizard-stage-5 .stage5-comments-panel .stage5-comment-field {
    min-height: 5.2rem;
    resize: vertical;
}

body.wizard-stage-5 .stage5-validation-summary:empty {
    display: none;
}

body.wizard-stage-5 .stage5-section-title {
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #26323a;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
}

body.wizard-stage-5 .stage5-code-card .stage5-ui-icon {
    width: 1.9rem;
    height: 1.9rem;
    color: var(--wizard-primary, #FF8FB3);
    border-color: rgba(var(--wizard-primary-rgb, 255, 143, 179), 0.18);
    background: rgba(var(--wizard-primary-rgb, 255, 143, 179), 0.09);
}

body.wizard-stage-5 .stage5-code-control {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

body.wizard-stage-5 .stage5-code-control .stage5-copy-field {
    min-width: 0;
    min-height: 2.45rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.55rem 0 0 0.55rem;
    color: #222b33;
    border-color: rgba(100, 116, 139, 0.3) !important;
    background: #fbfcfd !important;
    font-size: 0.9rem;
    text-align: left;
}

body.wizard-stage-5 .stage5-copy-button {
    min-height: 2.45rem;
    padding: 0.45rem 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-left: 0;
    border-radius: 0 0.55rem 0.55rem 0;
    color: #344351;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    transition: color 180ms ease, background-color 180ms ease;
}

body.wizard-stage-5 .stage5-copy-button:hover {
    color: var(--wizard-primary-dark, #8e2947);
    background: rgba(var(--wizard-primary-rgb, 255, 143, 179), 0.055);
}

body.wizard-stage-5 .stage5-code-meta {
    min-height: 1.45rem;
    margin-top: 0.28rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

body.wizard-stage-5 .stage5-code-meta p,
body.wizard-stage-5 .stage5-code-meta .stage5-copy-status {
    margin: 0;
    color: #6c7884;
    font-size: 0.75rem;
    line-height: 1.35;
}

body.wizard-stage-5 .stage5-code-meta .stage5-copy-status {
    min-height: 0;
    color: #138a52;
    font-weight: 700;
    text-align: right;
}

body.wizard-stage-5 .stage5-code-meta .stage5-copy-status:not(:empty) {
    min-height: 0;
    margin: 0;
}

body.wizard-stage-5 .stage5-email-card {
    border-color: rgba(224, 163, 54, 0.2);
    background: #fffaf0;
    box-shadow: 0 0.45rem 1.2rem rgba(120, 83, 26, 0.06);
}

body.wizard-stage-5 .stage5-email-heading-line .stage5-ui-icon {
    color: #df951e;
    border-color: rgba(223, 149, 30, 0.2);
    background: #fff2d5;
}

body.wizard-stage-5 .stage5-email-card .stage5-feedback {
    max-width: none;
    margin: 0.8rem 0 0;
    padding: 0.65rem 0.8rem;
    font-size: 0.78rem;
}

body.wizard-stage-5 .stage5-email-row {
    margin-top: 0.55rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: start;
}

body.wizard-stage-5 .stage5-email-field {
    min-width: 0;
}

body.wizard-stage-5 .stage5-email-row .form-control {
    min-height: 2.45rem;
    border-radius: 0.55rem;
    font-size: 0.84rem;
}

body.wizard-stage-5 .stage5-email-button {
    min-height: 2.45rem;
    padding: 0.45rem 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    border: 1px solid rgba(var(--wizard-primary-rgb, 255, 143, 179), 0.28);
    border-radius: 0.55rem;
    color: var(--wizard-primary, #FF8FB3);
    background: #fff;
    font-size: 0.79rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

body.wizard-stage-5 .stage5-email-button:hover {
    color: var(--wizard-primary-dark, #8e2947);
    border-color: rgba(var(--wizard-primary-rgb, 255, 143, 179), 0.46);
    background: rgba(var(--wizard-primary-rgb, 255, 143, 179), 0.045);
}

body.wizard-stage-5 .stage5-benefits {
    margin-top: 0.7rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border-color: rgba(var(--wizard-primary-rgb, 255, 143, 179), 0.17);
    background: #fffafb;
    box-shadow: none;
}

body.wizard-stage-5 .stage5-benefit {
    min-width: 0;
    min-height: 3.65rem;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    border-right: 1px solid rgba(15, 23, 42, 0.1);
    color: #26323a;
    text-decoration: none;
}

body.wizard-stage-5 .stage5-benefit:last-child {
    border-right: 0;
}

body.wizard-stage-5 .stage5-benefit-icon {
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--wizard-primary, #FF8FB3);
}

body.wizard-stage-5 .stage5-benefit-icon .stage5-ui-icon__svg {
    width: 1.8rem;
    height: 1.8rem;
}

body.wizard-stage-5 .stage5-benefit-copy {
    min-width: 0;
}

body.wizard-stage-5 .stage5-benefit strong {
    color: #26323a;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
}

body.wizard-stage-5 .stage5-preview-lightbox {
    width: min(94vw, 76rem);
    max-width: 76rem;
    max-height: 92vh;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 1.6rem 4.2rem rgba(15, 23, 42, 0.3);
}

body.wizard-stage-5 .stage5-preview-lightbox::backdrop {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(0.18rem);
}

body.wizard-stage-5 .stage5-preview-lightbox__content {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem;
}

body.wizard-stage-5 .stage5-preview-lightbox__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

body.wizard-stage-5 .stage5-preview-lightbox__header h2 {
    margin: 0;
    color: #26323a;
    font-size: 1rem;
    font-weight: 800;
}

body.wizard-stage-5 .stage5-preview-lightbox__image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(92vh - 4.75rem);
    margin: 0 auto;
    border-radius: 0.7rem;
    object-fit: contain;
}

@media (min-width: 992px) {
    body.wizard-stage-5 .stage5-preview-image[data-stage5-preview-zoomable] {
        cursor: zoom-in;
    }

    body.wizard-stage-5 .stage5-preview-image[data-stage5-preview-zoomable]:focus-visible {
        outline: 0.2rem solid #159f9a;
        outline-offset: -0.22rem;
    }
}

@media (max-width: 991.98px) {
    body.wizard-stage-5 .stage5-preview-lightbox {
        display: none;
    }
}

@media (max-width: 991.98px) {
    body.wizard-stage-5 .stage5-final-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.wizard-stage-5 .stage5-product-card .stage5-preview-shell,
    body.wizard-stage-5 .stage5-product-card .stage5-preview-placeholder {
        min-height: 24rem;
    }

    body.wizard-stage-5 .stage5-product-card .stage5-preview-shell:has(> .stage5-preview-image.is-visible:not(.d-none)) {
        min-height: 0;
    }

    body.wizard-stage-5 .stage5-product-card .stage5-preview-image {
        max-height: 34rem;
    }

    body.wizard-stage-5 .stage5-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.wizard-stage-5 .stage5-benefit:nth-child(2) {
        border-right: 0;
    }

    body.wizard-stage-5 .stage5-benefit:nth-child(-n+2) {
        border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    }
}

@media (max-width: 575.98px) {
    body.wizard-stage-5 .stage5-final-container {
        width: min(100% - 1rem, 1220px);
    }

    body.wizard-stage-5 .stage5-final-header {
        margin-bottom: 1rem;
    }

    body.wizard-stage-5 .stage5-final-title-line {
        gap: 0.55rem;
    }

    body.wizard-stage-5 .stage5-final-title-line h1 {
        min-width: 0;
        font-size: 1.08rem;
        line-height: 1.15;
        text-align: left;
        white-space: normal;
    }

    body.wizard-stage-5 .stage5-final-success-icon {
        width: 2.55rem;
        height: 2.55rem;
        box-shadow: 0 0 0 0.4rem rgba(51, 201, 116, 0.07);
    }

    body.wizard-stage-5 .stage5-final-success-icon .stage5-ui-icon__svg {
        width: 1.55rem;
        height: 1.55rem;
    }

    body.wizard-stage-5 .stage5-final-header > p {
        max-width: 22rem;
        font-size: 0.82rem;
    }

    body.wizard-stage-5 .stage5-final-grid {
        gap: 0.85rem;
    }

    body.wizard-stage-5 .stage5-product-card,
    body.wizard-stage-5 .stage5-order-card,
    body.wizard-stage-5 .stage5-code-card,
    body.wizard-stage-5 .stage5-email-card {
        padding: 0.85rem;
        border-radius: 0.85rem;
    }

    body.wizard-stage-5 .stage5-product-card .stage5-preview-shell,
    body.wizard-stage-5 .stage5-product-card .stage5-preview-placeholder {
        min-height: 18rem;
    }

    body.wizard-stage-5 .stage5-product-card .stage5-preview-shell:has(> .stage5-preview-image.is-visible:not(.d-none)) {
        min-height: 0;
    }

    body.wizard-stage-5 .stage5-product-card .stage5-preview-image {
        max-height: 27rem;
    }

    body.wizard-stage-5 .stage5-final-cta {
        min-height: 3.7rem;
        padding-inline: 0.75rem;
        font-size: 0.76rem;
    }

    body.wizard-stage-5 .stage5-edit-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    body.wizard-stage-5 .stage5-edit-action--back {
        border-right: 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    }

    body.wizard-stage-5 .stage5-email-row {
        grid-template-columns: minmax(0, 1fr);
    }

    body.wizard-stage-5 .stage5-email-button {
        width: 100%;
    }

    body.wizard-stage-5 .stage5-benefit {
        padding: 0.75rem 0.65rem;
        justify-content: flex-start;
    }
}

@media (max-width: 389.98px) {
    body.wizard-stage-5 .stage5-benefits {
        grid-template-columns: minmax(0, 1fr);
    }

    body.wizard-stage-5 .stage5-benefit,
    body.wizard-stage-5 .stage5-benefit:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    }

    body.wizard-stage-5 .stage5-benefit:last-child {
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.wizard-stage-5 .stage5-final-cta,
    body.wizard-stage-5 .stage5-edit-action,
    body.wizard-stage-5 .stage5-edit-chevron {
        transition: none;
    }
}

body.wizard-project-para-atrybut.wizard-stage-0 .wizard-start-inspirations {
    align-self: start;
    margin-top: clamp(0.45rem, 1vh, 0.75rem);
    gap: 0.42rem;
}

body.wizard-project-para-atrybut.wizard-stage-0 .wizard-start-content--pair-attributes {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.24rem;
}

body.wizard-project-para-atrybut.wizard-stage-0 .wizard-start-profile-label--compact {
    padding: 0.2rem 0.52rem;
    color: var(--wizard-heading, #263442) !important;
    font-size: 0.78rem;
    font-weight: 850;
}

@media (prefers-reduced-motion: reduce) {
    body.page-stage2 .custom-character-generation-progress-bar.is-active {
        width: 68%;
        animation: none;
        transform: none;
    }
}

body.page-stage0 .wizard-product-select-form.wizard-product-select-form--couple,
body.wizard-stage-0 .wizard-product-select-form.wizard-product-select-form--couple {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

body.page-stage0 .wizard-product-select-form--couple .wizard-start-actions,
body.wizard-stage-0 .wizard-product-select-form--couple .wizard-start-actions {
    margin-top: auto !important;
}

body:is(.wizard-project-custom-character-attributes, .wizard-project-attribute-texts).wizard-stage-0 .wizard-start-content {
    grid-template-rows: auto minmax(0, 1fr);
}

body:is(.wizard-project-custom-character-attributes, .wizard-project-attribute-texts).wizard-stage-0 .wizard-product-select-form.wizard-product-select-form--couple {
    height: 100%;
    min-height: 0;
    margin-top: 0;
    padding-top: clamp(0.35rem, 1.2vh, 0.75rem);
}

body:is(.wizard-project-custom-character-attributes, .wizard-project-attribute-texts).wizard-stage-0 .wizard-start-inspirations {
    align-self: start;
    width: 100%;
    margin-top: 0;
    gap: 0.48rem;
}

@media (min-width: 576px) {
    body:is(.wizard-project-custom-character-attributes, .wizard-project-attribute-texts).wizard-stage-0 .wizard-start-profile-group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body:is(.wizard-project-custom-character-attributes, .wizard-project-attribute-texts).wizard-stage-0 .wizard-start-profile-picker__list {
        max-height: min(17rem, 64vh);
    }
}

/* Wspólna konfiguracja produktu na START dla przepływów pomijających etap TYTUŁ. */
body.wizard-stage-0:not(.wizard-project-oto-on) .wizard-start-card {
    max-height: none;
    overflow: visible;
}

body.wizard-stage-0:not(.wizard-project-oto-on) .wizard-start-content,
body.wizard-stage-0:not(.wizard-project-oto-on) .wizard-product-select-form.wizard-product-select-form--couple {
    height: auto;
    min-height: 0;
    align-self: start;
}

body.wizard-stage-0:not(.wizard-project-oto-on) .wizard-product-select-form--couple .wizard-start-actions {
    margin-top: 0.45rem !important;
}

.wizard-start-product-configuration {
    display: grid;
    width: 100%;
    gap: 0.55rem;
    padding-top: 0.2rem;
    text-align: left;
}

.wizard-start-product-configuration > .wizard-product-select-title {
    justify-self: start;
    width: fit-content;
    margin: 0;
}

.wizard-start-product-configuration > .wizard-product-configuration-heading {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.3rem 0.5rem;
    border: 1px solid rgba(var(--wizard-primary-rgb), 0.22);
    border-left: 3px solid var(--wizard-primary);
    border-radius: 0.5rem;
    background: rgba(var(--wizard-primary-rgb), 0.07);
    color: #1d252d;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 850;
    line-height: 1.2;
    text-align: left;
    text-transform: none;
    box-shadow: 0 0.16rem 0.42rem rgba(var(--wizard-primary-rgb), 0.08);
}

.wizard-start-product-configuration__panel,
.wizard-start-product-configuration__panel fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.wizard-start-product-option {
    display: grid;
    gap: 0.36rem;
    margin-bottom: 0.6rem;
}

.wizard-start-product-option:last-child {
    margin-bottom: 0;
}

.wizard-start-product-option .wizard-section-title {
    margin-bottom: 0;
    font-size: 0.75rem;
}

.wizard-start-product-option .stage1-choice-strip {
    justify-content: flex-start;
    gap: 0.36rem;
}

.wizard-start-product-option .stage1-choice-button {
    padding: 0.34rem 0.58rem;
    font-size: 0.72rem;
}

.wizard-start-product-option .wizard-size-guide-trigger {
    margin-left: 0.35rem;
}

@media (max-width: 767.98px) {
    .wizard-start-product-configuration {
        text-align: left;
    }

    .wizard-start-product-option .stage1-choice-strip {
        flex-wrap: wrap;
    }
}

body.wizard-project-custom-character-attributes.wizard-stage-0 .wizard-start-profile-label--compact {
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--wizard-heading, #263442) !important;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.2;
    box-shadow: none;
}

body.page-stage2.wizard-project-para-ai .wizard-header-shell,
body.wizard-stage-2.wizard-project-para-ai .wizard-header-shell {
    margin-bottom: 0.6rem !important;
}

body.page-stage2.wizard-project-para-ai,
body.wizard-stage-2.wizard-project-para-ai {
    background: #f5f8fb;
}

body.page-stage2 .stage-shell--couple-photo {
    --couple-pink: var(--wizard-primary);
    --couple-pink-soft: #FFE8F1;
    --couple-blue-soft: #eafbff;
    --couple-text: #263442;
    --couple-muted: #6b7a8c;
}

body.page-stage2 .stage-shell--couple-photo .stage-form-card {
    padding: 1.28rem !important;
}

body.page-stage2 .stage-shell--couple-photo .wizard-stage-heading-line {
    margin-bottom: 0.9rem !important;
}

body.page-stage2 .stage-shell--couple-photo .custom-character-panel {
    padding: 0.96rem;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-custom-layout {
    grid-template-columns: minmax(14rem, 0.64fr) minmax(0, 1.36fr);
    gap: 0.68rem 0.84rem;
}

body.page-stage2 .stage-shell--couple-photo .stage2-custom-hero {
    gap: 0.46rem;
    padding: 0.78rem;
}

body.page-stage2 .stage-shell--couple-photo .stage2-custom-hero__copy {
    gap: 0.18rem;
}

body.page-stage2 .stage-shell--couple-photo .stage2-custom-hero__title {
    font-size: 1.22rem;
    line-height: 1.14;
}

body.page-stage2 .stage-shell--couple-photo .stage2-custom-hero__text {
    font-size: 0.86rem;
    line-height: 1.34;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-example {
    gap: 0.28rem;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-example__media {
    aspect-ratio: 4 / 3.15;
}

body.page-stage2 .stage-shell--couple-photo .stage2-custom-example__labels {
    gap: 0.4rem;
}

body.page-stage2 .stage-shell--couple-photo .stage2-custom-example__labels span {
    min-height: 1.22rem;
    padding: 0.12rem 0.45rem;
}

body.page-stage2 .stage-shell--couple-photo .stage2-custom-card {
    gap: 0.52rem;
    padding: 0.68rem;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-photo-mode-card {
    display: grid;
    gap: 0.42rem;
    min-width: 0;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-step-heading {
    display: inline-flex;
    gap: 0.38rem;
    align-items: center;
    color: var(--couple-text);
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1.1;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-step-heading__badge {
    display: inline-flex;
    width: 1.35rem;
    height: 1.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--couple-pink);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0.22rem 0.55rem rgba(255, 143, 179, 0.22);
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-step-heading--cta {
    justify-self: center;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-section-label {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 1.45rem;
    align-items: center;
    justify-content: flex-start;
    justify-self: start;
    margin-bottom: 0;
    padding: 0.14rem 0.46rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.12;
    text-align: left;
    text-transform: none;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-section-label--pink {
    border-color: rgba(255, 143, 179, 0.34);
    background: var(--couple-pink-soft);
    color: #b72f58;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-section-label--teal {
    border-color: rgba(36, 162, 189, 0.34);
    background: var(--couple-blue-soft);
    color: #117c94;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-segmented-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.24rem;
    min-width: 0;
    padding: 0.22rem;
    border: 1px solid rgba(148, 163, 184, 0.36);
    border-radius: 8px;
    background: #f8fafc;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-segmented-control__option {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 2.24rem;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    margin: 0;
    padding: 0.42rem 0.56rem;
    border: 1px solid rgba(203, 213, 225, 0.75);
    border-radius: 6px;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1.12;
    text-align: center;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-segmented-control__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-segmented-control__option.is-selected {
    border-color: rgba(255, 143, 179, 0.58);
    background: #ffffff;
    color: var(--couple-text);
    font-weight: 900;
    box-shadow: 0 0.22rem 0.62rem rgba(255, 143, 179, 0.12);
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-segmented-control__check {
    display: none;
    width: 1rem;
    height: 1rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--couple-pink);
    color: #ffffff;
    flex: 0 0 auto;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-segmented-control__check svg {
    width: 0.72rem;
    height: 0.72rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-segmented-control__option.is-selected .stage2-couple-segmented-control__check {
    display: inline-flex;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-segmented-control__option:focus-within {
    outline: 2px solid rgba(100, 116, 139, 0.38);
    outline-offset: 2px;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-photo-mode-description {
    margin: 0;
    color: var(--couple-muted);
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.28;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-section {
    display: grid;
    gap: 0.42rem;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-form,
body.page-stage2 .stage-shell--couple-photo .stage2-couple-reference-form {
    min-width: 0;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.42rem;
    align-items: center;
    min-height: 4.75rem;
    padding: 0.64rem 0.72rem;
    border: 1px dashed rgba(36, 162, 189, 0.48);
    border-radius: 8px;
    background: var(--couple-blue-soft);
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-row.is-filled {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 4.08rem;
    border-style: solid;
    border-color: rgba(20, 184, 166, 0.34);
    background: #edfbf8;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-row.is-empty {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-copy {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-copy .wizard-section-title,
body.page-stage2 .stage-shell--couple-photo .stage2-couple-reference-card .wizard-section-title {
    margin-bottom: 0;
    line-height: 1.16;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-copy span {
    color: var(--couple-muted);
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.26;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-reference-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.56rem;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-reference-card {
    display: grid;
    gap: 0.46rem;
    min-height: 5.65rem;
    min-width: 0;
    padding: 0.58rem;
    border: 1px dashed rgba(36, 162, 189, 0.48);
    border-radius: 8px;
    background: var(--couple-blue-soft);
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-reference-card.is-filled {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 4.2rem;
    border-style: solid;
    border-color: rgba(20, 184, 166, 0.34);
    background: #edfbf8;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-reference-card.is-filled .wizard-section-title {
    grid-column: 1 / -1;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-file {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.42rem;
    align-items: center;
    min-width: 0;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-thumb {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(36, 162, 189, 0.18);
    border-radius: 8px;
    background: #ffffff;
    object-fit: cover;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-file-name {
    min-width: 0;
    overflow: hidden;
    color: var(--couple-text);
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.28rem;
    align-items: center;
    justify-content: flex-end;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-actions .btn,
body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-add {
    min-height: 2.1rem;
    padding: 0.36rem 0.72rem;
    font-size: 0.8rem;
    font-weight: 850;
    line-height: 1.12;
    white-space: nowrap;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-add {
    display: inline-flex;
    width: auto;
    align-items: center;
    justify-content: center;
    border-color: rgba(255, 143, 179, 0.78);
    background: var(--couple-pink);
    color: #ffffff;
    box-shadow: 0 0.18rem 0.46rem rgba(255, 143, 179, 0.2);
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-row.is-empty .stage2-couple-upload-add,
body.page-stage2 .stage-shell--couple-photo .stage2-couple-reference-card.is-empty .stage2-couple-upload-add {
    justify-self: center;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-add:hover,
body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-add:focus {
    border-color: var(--wizard-primary-hover);
    background: var(--wizard-primary-hover);
    color: #ffffff;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-reference-button--teal {
    border-color: rgba(36, 162, 189, 0.62);
    background: #ffffff;
    color: #117c94;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-reference-button--teal:hover,
body.page-stage2 .stage-shell--couple-photo .stage2-couple-reference-button--teal:focus {
    border-color: #24a2bd;
    background: var(--couple-blue-soft);
    color: #117c94;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-add.stage2-couple-reference-button--teal {
    border-color: rgba(36, 162, 189, 0.78);
    background: #24a2bd;
    color: #ffffff;
    box-shadow: 0 0.18rem 0.46rem rgba(36, 162, 189, 0.2);
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-add.stage2-couple-reference-button--teal:hover,
body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-add.stage2-couple-reference-button--teal:focus {
    border-color: #1d91aa;
    background: #1d91aa;
    color: #ffffff;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-legal {
    margin: 0;
    color: var(--couple-muted);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.24;
}

body.page-stage2 .stage-shell--couple-photo .stage2-custom-card__hint {
    font-size: 0.78rem;
    line-height: 1.24;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-photo-preview__image {
    width: 2.55rem;
}

body.page-stage2 .stage-shell--couple-photo .form-text {
    margin-top: 0.18rem !important;
    font-size: 0.74rem;
    line-height: 1.18;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-background-picker .wizard-start-profile-picker__button,
body.page-stage2 .stage-shell--couple-photo .stage2-couple-outfit-picker .wizard-start-profile-picker__button {
    min-height: 2.46rem;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-style-pickers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.56rem;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-background-picker,
body.page-stage2 .stage-shell--couple-photo .stage2-couple-outfit-picker {
    max-width: none;
    min-width: 0;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-instructions-block {
    display: grid;
    gap: 0.42rem;
}

body.page-stage2 .stage-shell--couple-photo .custom-character-textarea {
    height: 4.55rem;
    min-height: 4.25rem;
    max-height: 4.75rem;
    padding-top: 0.48rem;
    padding-bottom: 0.48rem;
}

body.page-stage2 .stage-shell--couple-photo .custom-character-generation-panel {
    margin-top: 0;
    padding: 0;
    background: transparent;
}

body.page-stage2 .stage-shell--couple-photo .custom-character-generation-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.32rem;
}

body.page-stage2 .stage-shell--couple-photo .custom-character-generation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
    align-items: center;
    justify-content: center;
}

body.page-stage2 .stage-shell--couple-photo .custom-character-generate-button {
    width: auto;
    min-width: min(52%, 17.5rem);
    min-height: 2.56rem;
    padding-inline: 1.8rem;
    border-color: #24a2bd;
    background: #24a2bd;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 0.52rem 1rem rgba(36, 162, 189, 0.24);
}

body.page-stage2 .stage-shell--couple-photo .custom-character-generate-button:hover,
body.page-stage2 .stage-shell--couple-photo .custom-character-generate-button:focus {
    border-color: #1f93aa;
    background: #1f93aa;
    color: #ffffff;
}

body.page-stage2 .stage-shell--couple-photo .custom-character-generate-button:disabled {
    border-color: #24a2bd;
    background: #24a2bd;
    color: #ffffff;
    box-shadow: none;
    opacity: 0.55;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-generation-progress {
    width: min(100%, 21rem);
    margin: 0 auto 0.1rem;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-status-message {
    display: block;
    color: var(--couple-muted);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
}

body.page-stage2 .stage-shell--couple-photo .custom-character-attempt-info {
    padding: 0.34rem 0.5rem;
    font-size: 0.72rem;
    line-height: 1.14;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-preview-placeholder {
    position: relative;
    width: min(100%, 520px);
    min-height: min(calc(100vh - 10.75rem), 40rem);
    padding: 1.35rem;
    border: 1px solid rgba(36, 162, 189, 0.18);
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 16%, rgba(253, 235, 242, 0.95), transparent 32%),
        radial-gradient(circle at 82% 18%, rgba(234, 251, 255, 0.95), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 248, 251, 0.94));
    box-shadow: 0 1.15rem 2.35rem rgba(38, 52, 66, 0.1);
    color: var(--couple-text);
    gap: 0.7rem;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-preview-placeholder strong {
    color: var(--couple-text);
    font-size: 1.06rem;
    font-weight: 900;
    line-height: 1.18;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-preview-placeholder span {
    max-width: 20rem;
    color: var(--couple-muted);
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.38;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-preview-placeholder__icon {
    display: inline-flex;
    width: 4rem;
    height: 4rem;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    color: var(--couple-pink);
    box-shadow: 0 0.48rem 1rem rgba(38, 52, 66, 0.12);
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-preview-placeholder__icon svg {
    width: 2.5rem;
    height: 2.5rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-preview-placeholder__card {
    display: grid;
    width: min(58%, 12rem);
    aspect-ratio: 34 / 38;
    place-items: center;
    margin-top: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 0.72rem 1.45rem rgba(38, 52, 66, 0.12);
}

body.page-stage2 .stage-shell--couple-photo .stage2-couple-preview-placeholder__card span {
    width: 52%;
    aspect-ratio: 1;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--couple-pink-soft), var(--couple-blue-soft));
}

body.page-stage2 .stage-shell--couple-photo .stage-form-actions {
    margin-top: 0.72rem !important;
}

body.page-stage2 .stage-shell--couple-photo .stage-form-actions .btn {
    min-height: 2.32rem;
    padding: 0.46rem 1.16rem;
    font-size: 0.86rem;
    line-height: 1.16;
}

body.page-stage3 .stage-shell--couple-texts .stage3-couple-texts-heading {
    margin-top: 0.12rem;
    margin-bottom: 0.5rem !important;
    font-family: inherit;
}

@media (max-width: 991.98px) {
    body.page-stage2 .stage-shell--couple-photo .stage2-couple-custom-layout {
        grid-template-columns: 1fr;
    }

    body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-row.is-filled {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-row.is-filled .stage2-couple-upload-copy {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    body.page-stage2 .stage-shell--couple-photo .stage2-couple-segmented-control,
    body.page-stage2 .stage-shell--couple-photo .stage2-couple-reference-grid,
    body.page-stage2 .stage-shell--couple-photo .stage2-couple-style-pickers {
        grid-template-columns: 1fr;
    }

    body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-row,
    body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-row.is-filled,
    body.page-stage2 .stage-shell--couple-photo .stage2-couple-reference-card.is-filled,
    body.page-stage2 .stage-shell--couple-photo .custom-character-generation-actions {
        grid-template-columns: 1fr;
    }

    body.page-stage2 .stage-shell--couple-photo .stage2-couple-upload-actions {
        justify-content: flex-start;
    }

    body.page-stage2 .stage-shell--couple-photo .custom-character-generate-button {
        width: 100%;
        min-width: 0;
    }

    body.page-stage2 .stage-shell--couple-photo .stage2-couple-preview-placeholder__card {
        width: min(70%, 11rem);
    }
}

@media (min-width: 1200px) and (max-height: 800px) {
    body.page-stage2 .wizard-header-shell {
        margin-bottom: 0.5rem !important;
    }

    body.page-stage2 .stage-shell--pair-attributes .stage2-attributes-optional-instructions .custom-character-textarea {
        height: 1.75rem;
        min-height: 1.75rem;
        max-height: 1.75rem;
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
    }
}

/* START projektu Oto Ona/On: kwadratowy film i wyraziste wybory sposobu personalizacji. */
body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice-group {
    width: min(100%, 25rem);
    margin-inline: auto;
    gap: 0.72rem;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice {
    --start-choice-accent: var(--wizard-primary);
    --start-choice-accent-rgb: var(--wizard-primary-rgb);
    grid-template-columns: 2.75rem minmax(0, 1fr) 1.65rem;
    gap: 0.78rem;
    min-height: 4.65rem;
    padding: 0.68rem 0.82rem;
    overflow: hidden;
    border-color: rgba(var(--start-choice-accent-rgb), 0.28);
    border-radius: 1rem;
    background: linear-gradient(105deg, rgba(var(--start-choice-accent-rgb), 0.075), #ffffff 46%);
    box-shadow: 0 0.35rem 0.9rem rgba(15, 23, 42, 0.07);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice:has(input[value="yes"]) {
    --start-choice-accent: #128f91;
    --start-choice-accent-rgb: 18, 143, 145;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-color: rgba(var(--start-choice-accent-rgb), 0.3);
    border-radius: 0.82rem;
    background: rgba(var(--start-choice-accent-rgb), 0.11);
    color: var(--start-choice-accent);
    box-shadow: 0 0.3rem 0.75rem rgba(var(--start-choice-accent-rgb), 0.13);
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice__svg {
    width: 1.42rem;
    height: 1.42rem;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice__body {
    align-self: center;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice__title {
    color: #263442;
    font-size: clamp(0.8rem, 0.95vw, 0.9rem);
    font-weight: 850;
    line-height: 1.16;
    letter-spacing: -0.012em;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice__description {
    display: none;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice::after {
    content: "\203A";
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(var(--start-choice-accent-rgb), 0.1);
    color: var(--start-choice-accent);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
    transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice:hover,
body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice:focus-within {
    transform: translateY(-2px);
    border-color: rgba(var(--start-choice-accent-rgb), 0.68);
    box-shadow: 0 0.62rem 1.25rem rgba(var(--start-choice-accent-rgb), 0.17);
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice:has(input:checked) {
    border-color: var(--start-choice-accent);
    background: linear-gradient(105deg, rgba(var(--start-choice-accent-rgb), 0.16), rgba(var(--start-choice-accent-rgb), 0.035) 72%);
    box-shadow: 0 0 0 0.2rem rgba(var(--start-choice-accent-rgb), 0.14), 0 0.62rem 1.25rem rgba(var(--start-choice-accent-rgb), 0.13);
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice:has(input:checked) .wizard-start-choice__icon,
body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice:has(input:checked)::after {
    border-color: var(--start-choice-accent);
    background: var(--start-choice-accent);
    color: #ffffff;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice:has(input:checked)::after {
    content: "\2713";
    font-size: 0.95rem;
}

@media (min-width: 992px) {
    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-layout {
        grid-template-columns: minmax(28rem, 32rem) minmax(20rem, 26rem);
        justify-content: center;
        align-items: stretch;
    }

    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-video-shell {
        order: 1;
        width: 100%;
        max-width: 32rem;
        justify-self: end;
    }

    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-content {
        order: 2;
    }

    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-video-frame {
        width: 100%;
        aspect-ratio: 1 / 1;
        --bs-aspect-ratio: 100%;
    }

    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice-group {
        width: min(100%, 25rem);
        margin-inline: auto;
    }

    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice {
        min-height: 4.85rem;
        padding: 0.75rem 0.9rem;
    }

    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice__icon {
        width: 2.85rem;
        height: 2.85rem;
    }

    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-choice__svg {
        width: 1.48rem;
        height: 1.48rem;
    }
}

/* Kafelek postaci ze zdjęcia korzysta z tego samego turkusowego języka co własny atrybut. */
body.wizard-project-oto-on.page-stage2 #mainCharacter.is-custom-person-filter {
    justify-content: flex-start;
}

body.wizard-project-oto-on.page-stage2 #mainCharacter.asset-thumb-grid .character-custom-create-card {
    order: -1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.22rem;
    border: 2px dashed #248ca5 !important;
    border-radius: 0.68rem;
    background: #ffffff !important;
    box-shadow: 0 0.2rem 0.5rem rgba(var(--wizard-accent-rgb), 0.09);
}

body.wizard-project-oto-on.page-stage2 #mainCharacter.asset-thumb-grid .character-custom-create-card:hover,
body.wizard-project-oto-on.page-stage2 #mainCharacter.asset-thumb-grid .character-custom-create-card.selected {
    border-color: var(--wizard-accent) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--wizard-accent-rgb), 0.14), var(--wizard-shadow);
}

body.wizard-project-oto-on.page-stage2 #mainCharacter.asset-thumb-grid .character-custom-create-card .character-thumb {
    flex: 0 0 auto;
    width: 4.5rem;
    height: 4.5rem;
    max-width: 4.5rem;
    max-height: 4.5rem;
    object-fit: contain;
}

body.wizard-project-oto-on.page-stage2 #mainCharacter.asset-thumb-grid .character-custom-create-card.selected::after {
    display: none;
}

/* Lifting standardowego etapu Atrybuty OTO. Zakres celowo nie obejmuje wariantu pary. */
body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .stage-form-card {
    position: relative;
    padding: 1.55rem 1.65rem 1.35rem !important;
    border-radius: 1rem !important;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-stage-heading {
    justify-content: flex-start;
    padding-right: 13.5rem;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .wizard-stage-title {
    margin: 0 !important;
    font-size: 1.08rem;
    line-height: 1.2;
    text-align: left !important;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-stage-intro {
    margin: 0 13.5rem 1.15rem 2.6rem;
    color: #526171;
    font-size: 0.78rem;
    line-height: 1.35;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-count-selector {
    position: absolute;
    top: 1.35rem;
    right: 1.65rem;
    display: inline-flex;
    align-items: center;
    width: auto;
    min-height: 2.15rem;
    margin: 0 !important;
    padding: 0;
    gap: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-count-label {
    margin-right: 0.55rem;
    color: #20262d;
    font-size: 0.77rem;
    font-weight: 750;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-count-option {
    min-width: 2.55rem;
    min-height: 2.15rem;
    margin: 0;
    padding: 0.45rem 0.75rem;
    justify-content: center;
    border: 1px solid #d9e0e7;
    border-radius: 0;
    background: #ffffff;
    color: #3f4b57;
    box-shadow: none;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-count-option:first-of-type {
    border-radius: 0.62rem 0 0 0.62rem;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-count-option:last-of-type {
    margin-left: -1px;
    border-radius: 0 0.62rem 0.62rem 0;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-count-option .form-check-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-count-option span {
    font-size: 0.78rem;
    font-weight: 800;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-count-option.selected {
    z-index: 1;
    border-color: var(--wizard-primary);
    background: var(--wizard-primary);
    color: #ffffff;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-selector {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 1.15rem !important;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-selector .btn {
    min-width: 0;
    min-height: 2.55rem;
    padding: 0.45rem 1rem 0.45rem 0.55rem;
    border: 1px solid #dce3e9;
    border-radius: 0.7rem;
    background: #ffffff;
    color: #20262d;
    font-size: 0.72rem;
    font-weight: 750;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-image-title,
body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-image-title,
body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: auto;
    margin: 0 0 0.7rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1d252d;
    font-size: 0.77rem;
    font-weight: 850;
    text-transform: uppercase;
    box-shadow: none;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-section-number,
body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.45rem;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    background: var(--wizard-primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 850;
}

body.wizard-project-oto-on:is(.page-stage1, .page-stage2) .wizard-section-title.wizard-numbered-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: auto;
    margin: 0 0 0.7rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1d252d;
    font-size: 0.77rem;
    font-weight: 850;
    text-transform: uppercase;
    box-shadow: none;
}

body.wizard-project-oto-on:is(.page-stage1, .page-stage2) .wizard-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.45rem;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    background: var(--wizard-primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 850;
}

:is(.page-stage1, .page-stage2, .page-stage3) .stage1-section-icon {
    flex: 0 0 1.625rem;
    width: 1.625rem;
    height: 1.625rem;
    color: var(--wizard-primary);
}

.page-stage1 .stage1-heading-description {
    flex-basis: 100%;
    margin: 0;
    padding-left: 2.38rem;
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.9rem;
    text-align: left;
}

body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .wizard-stage-heading-line {
    justify-content: flex-start;
}

body:is(.page-stage1, .page-stage2) .wizard-stage-heading-line {
    row-gap: 0.25rem;
}

body:is(.page-stage1, .page-stage2, .page-stage3, .page-stage4) .wizard-stage-heading-line .wizard-stage-title {
    text-align: left !important;
}

body:is(.page-stage2, .page-stage3, .page-stage4) .wizard-stage-description {
    flex-basis: 100%;
    margin: 0;
    padding-left: 2.38rem;
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.9rem;
    text-align: left;
}

body.page-stage2 .stage2-custom-page-intro {
    text-align: left;
}

.wizard-project-preview-card {
    display: grid;
    justify-items: center;
    align-content: start;
    width: 100%;
    max-width: 34rem;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Pionowy plakat zostawia miejsce na nawigację i nagłówek białej karty. */
@media (min-width: 992px) {
    body .wizard-project-preview-card[data-product="plakat-pion"] :is(#stage1Preview, #stage2Preview, #stage3Preview) {
        width: auto;
        max-width: 100%;
        max-height: min(720px, calc(100vh - 15rem));
        max-height: min(720px, calc(100dvh - 15rem));
        object-fit: contain;
    }
}

.wizard-project-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    width: 100%;
    margin-bottom: 0.75rem;
}

.wizard-project-preview-heading h2 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    margin: 0;
    color: var(--wizard-ink, #1d252d);
    font-size: 1rem;
    font-weight: 700;
}

.wizard-project-preview-heading__icon {
    flex: 0 0 1.45rem;
    width: 1.45rem;
    height: 1.45rem;
    color: var(--wizard-primary);
}


.wizard-poster-price {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    margin-left: 0.15rem;
    padding: 0.15rem 0.52rem;
    border: 1px solid rgba(var(--wizard-primary-rgb), 0.28);
    border-radius: 0.48rem;
    background: rgba(var(--wizard-primary-rgb), 0.08);
    color: var(--wizard-primary-dark);
    font-size: 0.75rem;
    font-weight: 850;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
}

.wizard-poster-price[hidden] {
    display: none;
}

/* Wybory etapu Tytuł korzystają z tego samego języka kafelków co kategorie postaci i atrybutów. */
body.wizard-project-oto-on.page-stage1 .stage1-choice-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.34rem;
    margin: 0;
}

body.wizard-project-oto-on.page-stage1 .stage1-choice-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    margin: 0;
    padding: 0.27rem 0.5rem;
    border: 1px solid #dce3e9;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #2d3741;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

body.wizard-project-oto-on.page-stage1 .stage1-choice-button:hover,
body.wizard-project-oto-on.page-stage1 .stage1-choice-input:focus-visible + .stage1-choice-button {
    border-color: rgba(var(--wizard-primary-rgb), 0.6);
}

body.wizard-project-oto-on.page-stage1 .stage1-choice-input:focus-visible + .stage1-choice-button {
    outline: 2px solid rgba(var(--wizard-primary-rgb), 0.34);
    outline-offset: 2px;
}

body.wizard-project-oto-on.page-stage1 .stage1-choice-input:checked + .stage1-choice-button {
    border-color: var(--wizard-primary);
    background: rgba(var(--wizard-primary-rgb), 0.09);
    color: var(--wizard-primary-dark);
    box-shadow: 0 0.18rem 0.45rem rgba(var(--wizard-primary-rgb), 0.12);
}

body.wizard-project-oto-on.page-stage1 .wizard-size-guide-trigger {
    display: inline-flex;
    align-items: center;
    margin-left: 0.35rem;
    padding: 0.18rem 0.36rem;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: var(--wizard-primary-dark);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 750;
    line-height: 1.15;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease;
}

body.wizard-project-oto-on.page-stage1 .wizard-section-title--with-size-guide {
    flex-wrap: wrap;
}

body.wizard-project-oto-on.page-stage1 .wizard-size-guide-trigger:hover {
    background: rgba(var(--wizard-primary-rgb), 0.08);
    color: var(--wizard-primary);
}

body.wizard-project-oto-on.page-stage1 .wizard-size-guide-trigger:focus-visible {
    outline: 2px solid rgba(var(--wizard-primary-rgb), 0.34);
    outline-offset: 2px;
}

.wizard-size-guide-modal .modal-dialog {
    width: min(90vw, 720px);
    max-width: 720px;
}

.wizard-size-guide-modal .modal-content {
    max-height: 90vh;
    overflow: hidden;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 1.1rem 3rem rgba(26, 39, 52, 0.24);
}

.wizard-size-guide-modal .modal-header {
    flex: 0 0 auto;
    padding: 0.8rem 1rem;
    border-bottom-color: #e7ecf0;
}

.wizard-size-guide-modal .modal-title {
    color: #1d252d;
    font-size: 0.9rem;
    font-weight: 850;
    text-transform: uppercase;
}

.wizard-size-guide-modal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0.75rem;
    overflow-y: hidden;
    background: #ffffff;
}

.wizard-size-guide-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(90dvh - 4.75rem);
    height: auto;
    margin: 0 auto;
}

@media (max-width: 575.98px) {
    .wizard-size-guide-modal .modal-dialog {
        width: 95vw;
        max-width: 95vw;
        margin-right: auto;
        margin-left: auto;
    }

    .wizard-size-guide-modal .modal-content {
        max-height: 90vh;
        border-radius: 0.85rem;
    }

    .wizard-size-guide-modal .modal-header {
        padding: 0.68rem 0.78rem;
    }

    .wizard-size-guide-modal .modal-body {
        padding: 0.45rem;
    }
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-tag-search,
body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-tag-search {
    width: 50%;
    margin-bottom: 0.65rem !important;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-tag-search .form-control,
body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-tag-search .form-control {
    min-height: 2.25rem;
    padding: 0.4rem 0.85rem;
    border-radius: 0.65rem !important;
    font-size: 0.78rem;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-category-strip,
body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.34rem;
    margin: 0 0 0.75rem;
    padding: 0;
    overflow: visible;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-category-button,
body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-category-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    margin: 0;
    padding: 0.27rem 0.28rem;
    border: 1px solid #dce3e9;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #2d3741;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-category-button.wizard-featured-category-label,
body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-category-button.wizard-featured-category-label {
    border-color: rgba(var(--wizard-accent-rgb), 0.56);
    border-style: dashed;
    background: rgba(var(--wizard-accent-rgb), 0.11);
    color: var(--wizard-accent-dark);
    font-weight: 850;
    box-shadow: 0 0.18rem 0.45rem rgba(var(--wizard-accent-rgb), 0.12);
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-category-button:hover,
body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-category-button:hover,
body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-category-filter:focus-visible + .attribute-category-button,
body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-category-filter:focus-visible + .attribute-category-button {
    border-color: rgba(var(--wizard-primary-rgb), 0.6);
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-category-filter:checked + .attribute-category-button,
body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-category-filter:checked + .attribute-category-button {
    border-color: var(--wizard-primary);
    background: rgba(var(--wizard-primary-rgb), 0.09);
    color: var(--wizard-primary-dark);
    box-shadow: 0 0.18rem 0.45rem rgba(var(--wizard-primary-rgb), 0.12);
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-category-button.wizard-featured-category-label:hover,
body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-category-button.wizard-featured-category-label:hover,
body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-category-filter:focus-visible + .attribute-category-button.wizard-featured-category-label,
body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-category-filter:focus-visible + .attribute-category-button.wizard-featured-category-label,
body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-category-filter:checked + .attribute-category-button.wizard-featured-category-label,
body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-category-filter:checked + .attribute-category-button.wizard-featured-category-label {
    border-color: var(--wizard-accent);
    background: rgba(var(--wizard-accent-rgb), 0.15);
    color: var(--wizard-accent-dark);
    box-shadow: 0 0.18rem 0.45rem rgba(var(--wizard-accent-rgb), 0.15);
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .asset-grid-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.55rem, 1fr));
    align-items: stretch;
    justify-items: stretch;
    gap: 0.42rem;
    max-height: 9.65rem;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .asset-thumb-grid .custom-radio-card:not(.d-none) {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 4.55rem;
    margin: 0;
    padding: 0.3rem;
    border: 1px solid #dce3e9;
    border-radius: 0.68rem;
    background: #ffffff;
    overflow: hidden;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .asset-thumb-grid .custom-radio-card::after {
    inset: -1px;
    border-width: 2px;
    border-radius: 0.68rem;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .asset-thumb-grid .custom-radio-card.selected::after {
    border-color: var(--wizard-primary);
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .asset-thumb-grid .attribute-custom-create-card {
    border-width: 2px !important;
    border-color: #248ca5 !important;
    border-style: dashed !important;
    background: #ffffff;
    box-shadow: 0 0.2rem 0.5rem rgba(var(--wizard-accent-rgb), 0.09);
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .asset-thumb-grid .attribute-custom-create-card:hover {
    border-color: rgba(var(--wizard-accent-rgb), 0.64) !important;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .asset-thumb-grid .attribute-custom-create-card.selected {
    border-color: #176d82 !important;
    border-style: dashed !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--wizard-accent-rgb), 0.14), var(--wizard-shadow);
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .asset-thumb-grid .attribute-custom-create-card.selected::after {
    display: none;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .asset-thumb-grid .character-thumb {
    width: 100%;
    height: 3.75rem;
    max-width: 100%;
    max-height: 3.75rem;
    object-fit: contain;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(15rem, 0.92fr);
    gap: 0.8rem;
    margin-top: 1.2rem !important;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-fields {
    gap: 0;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-lead {
    margin: -0.2rem 0 0.65rem;
    color: #526171;
    font-size: 0.72rem;
    line-height: 1.35;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-layout--custom-docked .attribute-description-lead {
    display: none;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-control .form-label {
    margin-bottom: 0.32rem;
    color: #27323c;
    font-size: 0.72rem;
    font-weight: 700;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-input {
    height: auto;
    min-height: 0;
    resize: vertical;
    padding: 0.7rem 0.8rem;
    border-radius: 0.65rem;
    font-size: 0.82rem;
    line-height: 1.45;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-input:focus {
    border-color: var(--wizard-primary) !important;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-input.is-invalid {
    border-color: var(--wizard-primary-hover) !important;
    box-shadow: 0 0 0 0.16rem rgba(var(--wizard-primary-rgb), 0.12) !important;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.28rem;
    color: #718090;
    font-size: 0.68rem;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes :is(.attribute-description-counter, .attribute-description-length-state).is-over-limit {
    color: var(--wizard-primary-hover);
    font-weight: 750;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes #stage3ValidationSummary {
    gap: 0.12rem;
    margin-bottom: 0.55rem;
    padding: 0.5rem 0.68rem;
    border-color: rgba(var(--wizard-primary-rgb), 0.22);
    border-radius: 0.65rem;
    background: rgba(var(--wizard-primary-rgb), 0.055);
    color: #9d3652;
    font-size: 0.71rem;
    line-height: 1.28;
    box-shadow: none;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes #stage3ValidationSummary > div {
    margin: 0;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes #stage3ValidationSummary strong {
    font-size: 0.73rem;
    font-weight: 750;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-suggestion-block {
    align-self: end;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid #e3e8ed;
    border-radius: 0.75rem;
    background: #fbfcfd;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-suggestion-header {
    display: grid;
    gap: 0.2rem;
    margin: 0 0 0.55rem !important;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-suggestion-heading {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 1.5rem;
    padding: 0.16rem 0.46rem;
    border: 1px solid rgba(var(--wizard-accent-rgb), 0.24);
    border-radius: 999px;
    background: rgba(var(--wizard-accent-rgb), 0.1);
    color: var(--wizard-accent-dark) !important;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    box-shadow: 0 0.2rem 0.5rem rgba(var(--wizard-accent-rgb), 0.08);
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-suggestion-list {
    gap: 0;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-suggestion-list .list-group-item {
    min-height: 2rem;
    padding: 0.42rem 0.55rem;
    border-color: #e0e5ea;
    color: #28333d;
    font-size: 0.7rem;
    line-height: 1.25;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-suggestion-list .list-group-item.is-selected {
    z-index: 1;
    border-color: rgba(var(--wizard-accent-rgb), 0.38);
    background: rgba(var(--wizard-accent-rgb), 0.1);
    color: var(--wizard-accent-dark);
    box-shadow: inset 0.2rem 0 0 var(--wizard-accent);
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .stage-form-actions {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem !important;
    width: 100%;
    margin-top: 1.1rem !important;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .stage-form-actions .btn {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    min-height: 2.25rem;
    padding: 0.38rem 0.9rem;
    border-radius: 0.65rem;
    font-size: 0.8rem;
    font-weight: 750;
    text-transform: none;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .stage-form-actions .wizard-submit-btn {
    width: fit-content;
    min-width: 0;
}

@media (min-width: 1200px) {
    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes {
        padding-top: 0.4rem !important;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-category-strip,
    body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-category-strip {
        flex-wrap: nowrap;
    }
}

@media (min-width: 1200px) and (max-height: 1000px) {
    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .stage-form-card {
        padding: 0.9rem 1rem 0.72rem !important;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-count-selector {
        top: 0.75rem;
        right: 1rem;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-stage-intro {
        margin-bottom: 0.65rem;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes #stage3ValidationSummary {
        margin-bottom: 0.42rem;
        padding: 0.42rem 0.62rem;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-selector {
        margin-bottom: 0.65rem !important;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-image-title,
    body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-image-title,
    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-title {
        margin-bottom: 0.45rem;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-tag-search,
    body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-tag-search {
        margin-bottom: 0.4rem !important;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-category-strip,
    body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-category-strip {
        margin-bottom: 0.45rem;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .asset-grid-scroll {
        max-height: 8.75rem;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .asset-thumb-grid .custom-radio-card:not(.d-none) {
        min-height: 4.1rem;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .asset-thumb-grid .character-thumb {
        height: 3.3rem;
        max-height: 3.3rem;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-layout {
        margin-top: 0.72rem !important;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-lead {
        margin-bottom: 0.42rem;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-input {
        height: auto;
        min-height: 0;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .stage-form-actions {
        margin-top: 0.58rem !important;
    }
}

@media (min-width: 992px) {
    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .row.mb-4 {
        --bs-gutter-x: 1.35rem;
        /* Szerokość paneli nie zależy od wybranej metody dodawania atrybutu. */
        width: 100%;
        max-width: 1368px;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .col-lg-7 {
        width: 63.5%;
        max-width: 63.5%;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .col-lg-5 {
        width: 36.5%;
        max-width: 36.5%;
    }
}

@media (max-width: 1199.98px) {
    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-stage-heading {
        padding-right: 0;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-stage-intro {
        margin-right: 0;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-count-selector {
        position: static;
        margin-bottom: 0.85rem !important;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-suggestion-block {
        align-self: stretch;
    }
}

@media (max-width: 767.98px) {
    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes {
        overflow-x: clip;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-tag-search,
    body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-tag-search {
        width: 100%;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .container-xxl {
        padding-inline: 0.7rem;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .stage-form-card {
        padding: 1rem !important;
        border-radius: 0.8rem !important;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-stage-intro {
        margin: 0.35rem 0 0.85rem;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-selector {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.38rem;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-selector .btn {
        min-height: 2.35rem;
        padding-inline: 0.4rem 0.9rem;
        font-size: 0.68rem;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-category-strip,
    body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-category-strip {
        display: flex;
        flex-wrap: wrap;
        overflow-x: visible;
        padding-bottom: 0;
        white-space: normal;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-category-button,
    body.wizard-project-attribute-texts.page-stage2 .stage-shell .attribute-category-button {
        flex: 0 1 auto;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .asset-grid-scroll {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-height: 11.25rem;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .asset-thumb-grid .custom-radio-card,
    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .asset-thumb-grid .custom-radio-card.selected {
        min-height: 4.25rem;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .asset-thumb-grid .character-thumb {
        height: 3.45rem;
        max-height: 3.45rem;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-layout {
        gap: 0.7rem;
        margin-top: 1rem !important;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-input {
        height: auto;
        min-height: 0;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .stage-form-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.55rem !important;
    }

    body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .stage-form-actions .btn {
        width: 100%;
    }

}

/* Wspólny, kompaktowy standard dolnych akcji we wszystkich kreatorach i etapach. */
body.wizard-page :is(.wizard-submit-btn, .wizard-back-btn) {
    min-height: 2.25rem !important;
    padding: 0.38rem 0.9rem !important;
    border-radius: 0.62rem !important;
    font-size: 0.8rem !important;
    line-height: 1.15;
    letter-spacing: 0;
}

body.wizard-page .wizard-back-btn {
    min-width: 7.15rem;
}

@media (max-width: 767.98px) {
    body.wizard-page :is(.wizard-submit-btn, .wizard-back-btn) {
        min-height: 44px !important;
        padding: 0.55rem 0.9rem !important;
        font-size: 0.84rem !important;
    }
}

body.wizard-project-oto-on.page-stage1 .wizard-product-option-switch {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    margin: 0;
    padding-left: 2.75rem;
}

body.wizard-project-oto-on.page-stage1 .wizard-product-option-toggle {
    width: 2.25rem;
    height: 1.2rem;
    margin-left: -2.75rem;
    border-color: var(--wizard-border);
    cursor: pointer;
}

body.wizard-project-oto-on.page-stage1 .wizard-product-option-toggle:checked {
    border-color: var(--wizard-primary);
    background-color: var(--wizard-primary);
}

body.wizard-project-oto-on.page-stage1 .wizard-product-option-toggle-label {
    min-width: 2.6rem;
    margin-left: 0.45rem;
    color: var(--wizard-text);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

body.wizard-project-oto-on.page-stage1 .wizard-product-option-toggle-on,
body.wizard-project-oto-on.page-stage1 .wizard-product-option-toggle:checked ~ .wizard-product-option-toggle-label .wizard-product-option-toggle-off {
    display: none;
}

body.wizard-project-oto-on.page-stage1 .wizard-product-option-toggle:checked ~ .wizard-product-option-toggle-label .wizard-product-option-toggle-on {
    display: inline;
}

/* Konfiguracja produktu na START powtarza język wizualny wyborów z etapu Tytuł. */
.wizard-start-product-configuration .wizard-section-title.wizard-numbered-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: auto;
    margin: 0 0 0.7rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1d252d;
    font-size: 0.77rem;
    font-weight: 850;
    text-transform: uppercase;
    box-shadow: none;
}

.wizard-start-product-configuration .wizard-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.45rem;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 50%;
    background: var(--wizard-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 850;
}

.wizard-start-product-configuration .stage1-choice-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.34rem;
    margin: 0;
}

.wizard-start-product-configuration .stage1-choice-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    margin: 0;
    padding: 0.27rem 0.5rem;
    border: 1px solid #dce3e9;
    border-radius: 0.5rem;
    background: #fff;
    color: #2d3741;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.wizard-start-product-configuration .stage1-choice-button:hover,
.wizard-start-product-configuration .stage1-choice-input:focus-visible + .stage1-choice-button {
    border-color: rgba(var(--wizard-primary-rgb), 0.6);
}

.wizard-start-product-configuration .stage1-choice-input:focus-visible + .stage1-choice-button {
    outline: 2px solid rgba(var(--wizard-primary-rgb), 0.34);
    outline-offset: 2px;
}

.wizard-start-product-configuration .stage1-choice-input:checked + .stage1-choice-button {
    border-color: var(--wizard-primary);
    background: rgba(var(--wizard-primary-rgb), 0.09);
    color: var(--wizard-primary-dark);
    box-shadow: 0 0.18rem 0.45rem rgba(var(--wizard-primary-rgb), 0.12);
}

.wizard-start-product-configuration .wizard-size-guide-trigger {
    display: inline-flex;
    align-items: center;
    margin-left: 0.35rem;
    padding: 0.18rem 0.36rem;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: var(--wizard-primary-dark);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 750;
}

.wizard-start-product-configuration .wizard-product-option-switch {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    margin: 0;
    margin-top: -0.12rem;
    padding-left: 2.75rem;
}

.wizard-start-product-configuration .wizard-product-option-toggle {
    width: 2.25rem;
    height: 1.2rem;
    margin-left: -2.75rem;
    border-color: var(--wizard-border);
    cursor: pointer;
}

.wizard-start-product-configuration .wizard-product-option-toggle:checked {
    border-color: var(--wizard-primary);
    background-color: var(--wizard-primary);
}

.wizard-start-product-configuration .wizard-product-option-toggle-label {
    min-width: 2.6rem;
    margin-left: 0.45rem;
    color: var(--wizard-text);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.wizard-start-product-configuration .wizard-product-option-toggle-on,
.wizard-start-product-configuration .wizard-product-option-toggle:checked ~ .wizard-product-option-toggle-label .wizard-product-option-toggle-off {
    display: none;
}

.wizard-start-product-configuration .wizard-product-option-toggle:checked ~ .wizard-product-option-toggle-label .wizard-product-option-toggle-on {
    display: inline;
}

/* Nagłówek START nowych kreatorów powtarza poziomy układ ikon z kolejnych etapów. */
body.wizard-stage-0:not(.wizard-project-oto-on) .wizard-stage-heading-line--start {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.46rem;
}

body.wizard-stage-0:not(.wizard-project-oto-on) .wizard-stage-heading-line--start .wizard-stage-title {
    min-width: 0;
    font-size: clamp(0.78rem, 2.2vw, 1.18rem);
    line-height: 1.15;
    white-space: nowrap;
}

body.wizard-stage-0:not(.wizard-project-oto-on) .wizard-stage-heading-line--start .wizard-ui-icon--start {
    width: 1.65rem;
    height: 1.65rem;
}

/* Reguła jest celowo po wspólnych kafelkach START, aby nie przegrała w kaskadzie. */
@media (min-width: 768px) {
    .wizard-start-product-configuration .wizard-start-product-option--poster-type .stage1-choice-strip {
        flex-wrap: nowrap;
        gap: 0.16rem;
        width: 100%;
    }

    .wizard-start-product-configuration .wizard-start-product-option--poster-type .stage1-choice-button {
        flex: 0 1 auto;
        min-width: 0;
        padding: 0.22rem 0.28rem;
        font-size: 0.61rem;
        letter-spacing: -0.016em;
    }
}

/* Nowe kreatory wyrównują akcje do dolnej krawędzi grafiki START. */
@media (min-width: 992px) {
    body.wizard-stage-0:is(.wizard-project-para-ai, .wizard-project-para-atrybut, .wizard-project-custom-character-attributes, .wizard-project-attribute-texts) .wizard-start-layout {
        align-items: stretch;
    }

    body.wizard-stage-0:is(.wizard-project-para-ai, .wizard-project-para-atrybut, .wizard-project-custom-character-attributes, .wizard-project-attribute-texts) .wizard-start-content {
        display: flex;
        flex-direction: column;
        min-height: 0;
        align-self: stretch;
    }

    body.wizard-stage-0:is(.wizard-project-para-ai, .wizard-project-para-atrybut, .wizard-project-custom-character-attributes, .wizard-project-attribute-texts) .wizard-product-select-form {
        flex: 1 1 auto;
        min-height: 0;
        align-self: stretch;
    }

    body.wizard-stage-0:is(.wizard-project-para-ai, .wizard-project-para-atrybut, .wizard-project-custom-character-attributes, .wizard-project-attribute-texts) .wizard-product-select-form.wizard-product-select-form--couple .wizard-start-actions {
        margin-top: auto !important;
        padding-top: 0.8rem;
    }
}
/* START Oto Ona/On: prosty wybór odbiorcy zgodny z główną ścieżką inspiracji. */
body.wizard-project-oto-on.wizard-stage-0 .wizard-start-card {
    max-height: none;
    overflow: visible;
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1rem 2.8rem rgba(15, 23, 42, 0.09) !important;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-video-shell {
    padding: 0;
    border: 0;
    background: transparent;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-video-frame {
    border: 0.45rem solid #ffffff;
    border-radius: 1.1rem;
    box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.08);
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-video-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    margin: 0.85rem 0 0;
    color: #50667b;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-video-caption__icon {
    display: grid;
    width: 1.1rem;
    height: 1.1rem;
    place-items: center;
    flex: 0 0 auto;
    color: #506f89;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-video-caption__icon svg,
body.wizard-project-oto-on.wizard-stage-0 .wizard-start-gift-icon svg,
body.wizard-page.wizard-stage-0 .wizard-start-order-note__icon svg,
body.wizard-page.wizard-stage-0 .wizard-start-no-hints__icon svg {
    width: 100%;
    height: 100%;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-video-caption__icon :is(circle, path),
body.wizard-project-oto-on.wizard-stage-0 .wizard-start-gift-icon path,
body.wizard-page.wizard-stage-0 .wizard-start-order-note__icon :is(rect, path),
body.wizard-page.wizard-stage-0 .wizard-start-no-hints__icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-video-caption__icon path {
    fill: currentColor;
    stroke-width: 1.2;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-content {
    width: 100%;
    max-width: 34rem;
    justify-self: stretch;
    align-content: start;
    gap: 0.7rem;
    text-align: left;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-copy {
    display: grid;
    justify-items: center;
    gap: 0.65rem;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-gift-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    padding: 0.72rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 1rem;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-recipient-title {
    color: #1f2d3a;
    font-size: clamp(1.55rem, 2.4vw, 2.25rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-align: center;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-recipient-title span {
    color: var(--wizard-primary, #FF8FB3);
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-start-recipient-intro,
.ai-illustration-start .wizard-start-recipient-intro {
    max-width: 31rem;
    color: #506176;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.55;
    text-align: center;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-product-select-form {
    gap: 0.7rem;
}

body.wizard-page.wizard-stage-0 .wizard-start-inspirations {
    gap: 0.7rem;
}

body.wizard-page.wizard-stage-0 .wizard-start-choice-heading {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #263442;
    font-size: 0.86rem;
    font-weight: 800;
}

body.wizard-page.wizard-stage-0 .wizard-start-profile-select {
    gap: 0.45rem;
}

body.wizard-page.wizard-stage-0 .wizard-start-profile-group-grid,
body.wizard-page.wizard-stage-0 .wizard-start-profile-select.is-single .wizard-start-profile-group-grid {
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.72rem;
    margin: 0;
}

body.wizard-page.wizard-stage-0 .wizard-start-profile-group {
    --recipient-accent: var(--wizard-primary);
    --recipient-accent-rgb: var(--wizard-primary-rgb);
}

body.wizard-page.wizard-stage-0 .wizard-start-profile-picker__button {
    min-height: 5.05rem;
    gap: 0.9rem;
    padding: 0.75rem 1rem;
    border: 1.5px solid #dce1e7;
    border-radius: 0.9rem;
    background: #ffffff;
    box-shadow: none;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

@media (hover: hover) {
    body.wizard-page.wizard-stage-0 .wizard-start-profile-picker__button:hover {
        border-color: #bccbd6;
    }
}

body.wizard-page.wizard-stage-0 .wizard-start-profile-picker__button:focus-visible {
    outline: 2px solid #64748b;
    outline-offset: 3px;
    box-shadow: none;
}

body.wizard-page.wizard-stage-0 .wizard-start-profile-group__icon,
body.wizard-page.wizard-stage-0 .wizard-start-profile-group.is-profile-group-popular .wizard-start-profile-group__icon,
body.wizard-page.wizard-stage-0 .wizard-start-profile-group.is-profile-group-occupation .wizard-start-profile-group__icon {
    width: 3.3rem;
    height: 3.3rem;
    border: 0;
    border-radius: 0.9rem;
    background: linear-gradient(145deg, rgba(var(--recipient-accent-rgb), 0.82), var(--recipient-accent));
    color: #ffffff;
    box-shadow: 0 0.45rem 0.9rem rgba(var(--recipient-accent-rgb), 0.22);
}

body.wizard-page.wizard-stage-0 .wizard-start-profile-group__icon .wizard-start-profile-label__svg {
    width: 1.65rem;
    height: 1.65rem;
}

body.wizard-page.wizard-stage-0 .wizard-start-profile-group__body {
    gap: 0.18rem;
}

body.wizard-page.wizard-stage-0 .wizard-start-profile-group__title {
    color: #263442;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: none;
}

body.wizard-page.wizard-stage-0 .wizard-start-profile-group__description {
    color: #56697d;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
}

body.wizard-page.wizard-stage-0 .wizard-start-profile-picker__chevron {
    width: 0.65rem;
    height: 0.65rem;
    margin-right: 0.25rem;
    border-color: #64748b;
    opacity: 1;
}

body.wizard-page.wizard-stage-0 .wizard-start-profile-picker__list {
    top: calc(100% + 0.3rem);
    max-height: min(15rem, 40vh);
    border-color: #dce1e7;
    border-radius: 0.75rem;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.16);
}

body.wizard-page.wizard-stage-0 .wizard-start-no-hints {
    position: relative;
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    text-align: left;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.15rem;
    padding: 0.75rem;
    border: 2px dashed rgba(79, 102, 123, 0.24);
    border-radius: 0.85rem;
    color: #34495e;
    cursor: pointer;
}

body.wizard-page.wizard-stage-0 .wizard-start-no-hints__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

body.wizard-page.wizard-stage-0 .wizard-start-no-hints__icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    padding: 0.6rem;
    border: 1px solid rgba(79, 102, 123, 0.18);
    border-radius: 50%;
    background: #f3f6f8;
    color: #46627c;
}

body.wizard-page.wizard-stage-0 .wizard-start-no-hints__body {
    display: grid;
    gap: 0.08rem;
}

body.wizard-page.wizard-stage-0 .wizard-start-no-hints__title {
    color: #31465a;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.25;
}

body.wizard-page.wizard-stage-0 .wizard-start-no-hints__description {
    color: #64778a;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.3;
}

body.wizard-page.wizard-stage-0 .wizard-start-no-hints__chevron {
    color: #46627c;
    font-size: 1.7rem;
    line-height: 1;
}

body.wizard-page.wizard-stage-0 .wizard-start-no-hints:has(input:checked) {
    border: 2px solid var(--wizard-primary, #FF8FB3);
    background: #fff0f5;
    box-shadow: 0 0 0 3px rgba(var(--wizard-primary-rgb, 255, 143, 179), 0.12);
    color: var(--wizard-primary, #FF8FB3);
}

body.wizard-page.wizard-stage-0 .wizard-start-no-hints:has(input:focus-visible) {
    outline: 3px solid #31465a;
    outline-offset: 3px;
}

body.wizard-page.wizard-stage-0 .wizard-start-no-hints__selected {
    display: none;
    margin-top: 0.3rem;
    color: #a5224a;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.3;
}

body.wizard-page.wizard-stage-0 .wizard-start-no-hints:has(input:checked) .wizard-start-no-hints__selected {
    display: block;
}

body.wizard-page.wizard-stage-0 .wizard-start-no-hints:has(input:checked) .wizard-start-no-hints__chevron {
    visibility: hidden;
}

body.wizard-page.wizard-stage-0 .wizard-start-no-hints:has(input:checked) .wizard-start-no-hints__icon {
    border-color: var(--wizard-primary, #FF8FB3);
    background: var(--wizard-primary, #FF8FB3);
    color: #fff;
}

body.wizard-page.wizard-stage-0 .wizard-start-actions {
    display: grid !important;
    grid-template-columns: minmax(8rem, 0.8fr) minmax(11rem, 1.25fr);
    gap: 0.75rem !important;
    width: 100%;
    margin-top: 0.45rem !important;
    padding-top: 0;
}

body.wizard-page.wizard-stage-0 .wizard-start-actions :is(.wizard-back-btn, .wizard-submit-btn) {
    width: 100%;
    min-height: 3rem !important;
    border-radius: 0.75rem !important;
    font-size: 0.82rem !important;
    font-weight: 800;
}

body.wizard-page.wizard-stage-0 .wizard-start-actions .wizard-back-btn {
    border-color: #aab8c5;
    background: #ffffff;
    color: #425a70;
}

body.wizard-page.wizard-stage-0 .wizard-start-actions .wizard-submit-btn {
    border-color: var(--wizard-primary, #FF8FB3);
    background: linear-gradient(135deg, var(--wizard-primary), var(--wizard-primary-hover));
    box-shadow: 0 0.65rem 1.25rem rgba(var(--wizard-primary-rgb, 255, 143, 179), 0.22);
}

body.wizard-page.wizard-stage-0 .wizard-start-order-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.55rem;
    margin: 0;
    color: #5f7387;
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
}

body.wizard-page.wizard-stage-0 .wizard-start-order-note__icon {
    width: 1rem;
    height: 1rem;
    margin-top: 0.08rem;
    flex: 0 0 auto;
    color: #526e87;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-footer-rule {
    display: none;
}

body.wizard-project-oto-on.wizard-stage-0 .wizard-footer {
    margin-top: 2rem !important;
}

@media (min-width: 992px) {
    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-layout {
        grid-template-columns: minmax(27rem, 1.03fr) minmax(26rem, 0.97fr);
        gap: clamp(2rem, 3.4vw, 3.5rem);
        align-items: center;
        max-width: 76rem;
        margin-inline: auto;
    }

    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-video-shell {
        max-width: 35rem;
        align-self: center;
    }

    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-video-frame {
        aspect-ratio: 1 / 1;
        --bs-aspect-ratio: 100%;
    }
}

@media (max-width: 991.98px) {
    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-layout {
        gap: 1.75rem;
    }

    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-content {
        order: 1;
        max-width: 38rem;
        margin-inline: auto;
    }

    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-video-shell {
        order: 2;
        width: min(100%, 38rem);
        margin-inline: auto;
    }

    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-video-frame {
        aspect-ratio: 16 / 9;
        --bs-aspect-ratio: 56.25%;
    }
}

@media (max-width: 767.98px) {
    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-card {
        padding: 1rem !important;
    }

    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-copy {
        gap: 0.52rem;
    }

    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-gift-icon {
        width: 2.6rem;
        height: 2.6rem;
        padding: 0.62rem;
    }

    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-recipient-title {
        font-size: clamp(1.45rem, 7vw, 1.9rem);
    }

    body.wizard-project-oto-on.wizard-stage-0 .wizard-start-recipient-intro {
        font-size: 0.82rem;
        line-height: 1.48;
    }

    body.wizard-page.wizard-stage-0 .wizard-start-profile-picker__button {
        min-height: 4.7rem;
        padding: 0.65rem 0.75rem;
    }

    body.wizard-page.wizard-stage-0 .wizard-start-profile-group__icon,
    body.wizard-page.wizard-stage-0 .wizard-start-profile-group.is-profile-group-popular .wizard-start-profile-group__icon,
    body.wizard-page.wizard-stage-0 .wizard-start-profile-group.is-profile-group-occupation .wizard-start-profile-group__icon {
        width: 2.85rem;
        height: 2.85rem;
    }

    body.wizard-page.wizard-stage-0 .wizard-start-profile-group__title {
        font-size: 0.92rem;
    }

    body.wizard-page.wizard-stage-0 .wizard-start-profile-group__description {
        font-size: 0.7rem;
    }

    body.wizard-page.wizard-stage-0 .wizard-start-profile-picker__list {
        position: static;
        margin-top: 0.35rem;
        max-height: 14rem;
    }

    body.wizard-page.wizard-stage-0 .wizard-start-actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.wizard-page.wizard-stage-0 .wizard-start-actions .wizard-submit-btn {
        order: 1;
        min-height: 3.25rem !important;
    }

    body.wizard-page.wizard-stage-0 .wizard-start-actions .wizard-back-btn {
        order: 2;
    }

    body.wizard-page.wizard-stage-0 .wizard-start-order-note {
        order: 3;
    }
}

/* Podgląd jednego atrybutu współdzieli układ i elementy kreatora. */
body.wizard-project-attribute-texts .attribute-texts-preview {
    width: 100%;
    max-width: 26rem;
}
body.wizard-project-attribute-texts .attribute-texts-preview img {
    display: block;
    width: 100%;
    height: auto;
}
body.wizard-project-attribute-texts.page-stage2 .attribute-texts-preview__message {
    min-height: 14rem;
    margin: 0 auto;
}

/* Szeroki edytor mieści kategorie i przycisk tworzenia własnego atrybutu. */
body.wizard-project-attribute-texts.page-stage2 .stage-shell--attribute-texts .attribute-texts-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
    max-width: 78rem;
    margin: 0 auto;
}
body.wizard-project-attribute-texts.page-stage2 .stage-shell--attribute-texts .stage-form-card {
    padding: 1rem !important;
}
body.wizard-project-attribute-texts.page-stage2 .stage-shell--attribute-texts .wizard-intro-copy {
    margin: 0.65rem 0 1rem;
    font-size: 0.85rem;
}
body.wizard-project-attribute-texts.page-stage2 .stage-shell--attribute-texts .attribute-section-number {
    display: none;
}
body.wizard-project-attribute-texts.page-stage2 .stage-shell--attribute-texts .asset-grid-scroll {
    max-height: clamp(9rem, calc(100dvh - 42rem), 14rem);
}
body.wizard-project-attribute-texts.page-stage2 .stage-shell--attribute-texts .attribute-texts-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.85rem;
}
body.wizard-project-attribute-texts.page-stage2 .stage-shell--attribute-texts .attribute-texts-preview {
    max-width: none;
}
@media (max-width: 767.98px) {
    body.wizard-project-attribute-texts.page-stage2 .stage-shell--attribute-texts .attribute-texts-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    body.wizard-project-attribute-texts.page-stage2 .stage-shell--attribute-texts .attribute-texts-actions {
        flex-direction: column-reverse;
    }
}

body.wizard-project-attribute-texts.page-stage2 .stage-shell--attribute-texts .attribute-category-strip {
    flex-wrap: wrap;
    max-width: 100%;
}
body.wizard-project-attribute-texts.page-stage2 .stage-shell--attribute-texts .attribute-tag-search {
    width: 100%;
    max-width: none;
}

@media (min-width: 1200px) {
    body.wizard-project-attribute-texts.page-stage2 .stage-shell--attribute-texts .attribute-texts-layout {
        grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    }

    body.wizard-project-attribute-texts.page-stage2 .stage-shell--attribute-texts .attribute-category-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    body.wizard-project-attribute-texts.page-stage2 .stage-shell--attribute-texts .attribute-category-button {
        flex-shrink: 0;
    }
}

.wizard-text-suggestions {
    position: fixed;
    z-index: 1080;
    box-sizing: border-box;
    padding: 0.3rem;
    border: 1px solid #d5dce3;
    border-radius: 0.75rem;
    background: #fff;
    color: #31465a;
    box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.16);
}

.attribute-suggestion-list [hidden],
.seasonal-inspirations [hidden] {
    display: none !important;
}

.wizard-text-suggestions__header {
    margin: -0.3rem -0.3rem 0.2rem;
    padding: 0.45rem 1.05rem;
    border-bottom: 1px solid #e8edf1;
    background: #f7f9fb;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    cursor: default;
}

.wizard-text-suggestions__option {
    padding: 0.65rem 0.75rem;
    border-radius: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.wizard-text-suggestions__option:hover,
.wizard-text-suggestions__option.is-active {
    background: #fff0f5;
    color: #a5224a;
}

.wizard-text-suggestions__option[aria-selected="true"] {
    font-weight: 700;
    background: #fff0f5;
}

/* Grafiki START poza Oto zachowują pełną treść i środek rozciągniętej kolumny. */
body.wizard-stage-0:not(.wizard-project-oto-on) .wizard-start-image-shell {
    display: flex;
    align-items: center;
}

body.wizard-stage-0:not(.wizard-project-oto-on) .wizard-start-hero-image {
    object-fit: contain;
}

/* START atrybut-teksty: pelna grafika bez przycinania. */
.wizard-start-hero-image[src="/img/stage0-attribute-texts-start.webp"] {
    object-fit: contain;
}

/* Hierarchia kolorów etapów TYTUŁ, POSTAĆ i ATRYBUTY; FINAŁ zachowuje własne style. */
body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) :is(.stage1-section-icon, .wizard-ui-icon:not(.wizard-ui-icon--success), .wizard-project-preview-heading__icon) {
    color: var(--wizard-accent);
    border-color: rgba(var(--wizard-accent-rgb), 0.2);
    background: rgba(var(--wizard-accent-rgb), 0.07);
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) :is(.stage1-section-icon, .wizard-project-preview-heading__icon) {
    box-sizing: border-box;
    padding: 0.16rem;
    border-radius: 0.35rem;
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) .stage1-section-icon {
    padding: 0.18rem;
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) :is(.wizard-section-number, .stage2-attributes-step-heading__badge) {
    color: var(--wizard-accent-dark);
    background: rgba(var(--wizard-accent-rgb), 0.07);
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) :is(.wizard-subsection-title, .wizard-subsection-pill, .wizard-hint-callout) {
    color: var(--wizard-heading);
    border-color: rgba(var(--wizard-accent-rgb), 0.2);
    background: rgba(var(--wizard-accent-rgb), 0.07);
    box-shadow: var(--wizard-shadow-soft);
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) .wizard-hint-callout::before {
    background: var(--wizard-accent);
    mask: url("../img/ui/lightbulb-hint.svg") center / contain no-repeat;
    filter: none;
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) :is(.wizard-size-guide-trigger, .btn-link, .stage2-custom-hero__eyebrow) {
    color: var(--wizard-accent-dark) !important;
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) .wizard-size-guide-trigger:is(:hover, :focus-visible) {
    color: var(--wizard-accent-dark);
    background: rgba(var(--wizard-accent-rgb), 0.07);
    outline-color: var(--wizard-accent);
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) .wizard-poster-price {
    color: var(--wizard-primary-hover);
    border-color: rgba(var(--wizard-primary-rgb), 0.22);
    background: rgba(var(--wizard-primary-rgb), 0.06);
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) :is(.wizard-back-btn, .btn-outline-secondary, .btn-outline-danger) {
    color: var(--wizard-heading) !important;
    border-color: var(--wizard-border-strong);
    background: var(--wizard-surface);
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) :is(.wizard-back-btn, .btn-outline-secondary, .btn-outline-danger):is(:hover, :focus-visible) {
    color: var(--wizard-accent-dark) !important;
    border-color: var(--wizard-accent);
    background: rgba(var(--wizard-accent-rgb), 0.07);
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) .wizard-breadcrumb .wizard-step-link:not(.is-active):not(.is-disabled):not(.disabled) {
    color: var(--wizard-heading) !important;
    border-color: transparent;
    background: transparent;
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) .wizard-breadcrumb .wizard-step-link:not(.is-active):not(.is-disabled):not(.disabled):is(:hover, :focus-visible) {
    color: var(--wizard-accent-dark) !important;
    border-color: rgba(var(--wizard-accent-rgb), 0.2);
    background: rgba(var(--wizard-accent-rgb), 0.07);
    box-shadow: 0 0 0 0.2rem rgba(var(--wizard-accent-rgb), 0.1);
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) .stage-shell :is(.person-category-filter, .attribute-category-filter):not(:checked) + .wizard-featured-category-label {
    color: var(--wizard-heading);
    border-width: 1.5px;
    border-color: #63b8c7;
    border-style: dashed;
    background: var(--wizard-surface);
    box-shadow: none;
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) .stage-shell :is(.person-category-filter, .attribute-category-filter):checked + .wizard-featured-category-label {
    color: var(--wizard-primary-dark);
    border-width: 1.5px;
    border-color: #399bb1;
    border-style: dashed;
    background: rgba(var(--wizard-primary-rgb), 0.09);
    box-shadow: 0 0.18rem 0.45rem rgba(var(--wizard-primary-rgb), 0.12);
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) .stage-shell .attribute-suggestion-list .list-group-item.is-selected {
    color: var(--wizard-primary-dark);
    border-color: var(--wizard-primary);
    background: rgba(var(--wizard-primary-rgb), 0.09);
    box-shadow: inset 0.2rem 0 0 var(--wizard-primary);
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) .asset-grid-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(var(--wizard-accent-rgb), 0.35);
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) .btn:disabled {
    color: var(--wizard-heading) !important;
    border-color: var(--wizard-border-strong) !important;
    background: var(--wizard-surface-soft) !important;
    box-shadow: none;
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) .wizard-ui-icon--success {
    color: #198754;
    border-color: rgba(25, 135, 84, 0.15);
    background: rgba(25, 135, 84, 0.08);
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) .stage-shell .wizard-section-title:not(.wizard-numbered-section-title):not(.attribute-image-title):not(.attribute-description-title) {
    color: var(--wizard-heading);
    border-color: rgba(var(--wizard-accent-rgb), 0.2);
    background: rgba(var(--wizard-accent-rgb), 0.07);
    box-shadow: none;
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) .btn-outline-primary:not(.active):not([aria-pressed="true"]) {
    color: var(--wizard-accent-dark) !important;
    border-color: rgba(var(--wizard-accent-rgb), 0.3);
    background: var(--wizard-surface);
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) .btn-outline-primary:not(.active):not([aria-pressed="true"]):is(:hover, :focus-visible) {
    background: rgba(var(--wizard-accent-rgb), 0.07);
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) :is(.stage1-choice-input, .person-category-filter, .attribute-category-filter):not(:checked) + :is(.stage1-choice-button, .person-category-button, .attribute-category-button):hover {
    border-color: var(--wizard-accent);
}

body.wizard-page:is(.page-stage1, .page-stage2, .page-stage3) .stage-shell :is(.alert-danger, .alert-warning, .wizard-validation-summary) {
    color: var(--wizard-heading) !important;
    border-color: var(--wizard-border-strong) !important;
    background: var(--wizard-surface-soft) !important;
}

body.wizard-page.wizard-project-oto-on.page-stage2 #mainCharacter.asset-thumb-grid .character-custom-create-card.selected,
body.wizard-page.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .asset-thumb-grid .attribute-custom-create-card.selected {
    border-color: var(--wizard-primary) !important;
    background: rgba(var(--wizard-primary-rgb), 0.08) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--wizard-primary-rgb), 0.12), var(--wizard-shadow);
}

body.page-stage2 .stage2-photo-entry-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
    margin: 0 0 0.85rem;
}

body.page-stage2 .stage2-method-heading {
    margin: 0 0 0.75rem;
    color: var(--wizard-heading);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
}

body.page-stage2 .stage2-photo-entry {
    display: flex;
    align-self: stretch;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(var(--wizard-accent-rgb), 0.3);
    border-radius: 0.75rem;
    background: rgba(var(--wizard-accent-rgb), 0.07);
    color: var(--wizard-heading);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

body.page-stage2 .stage2-photo-entry__icon {
    flex: 0 0 2.1rem;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0.35rem;
    border-radius: 50%;
    background: rgba(var(--wizard-accent-rgb), 0.1);
    color: var(--wizard-accent);
}

body.page-stage2 .stage2-photo-entry__copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.35;
}

body.page-stage2 .stage2-photo-entry__copy strong {
    font-size: 0.9rem;
}

body.page-stage2 .stage2-photo-entry__arrow {
    flex: 0 0 1rem;
    width: 1rem;
    height: 1rem;
    margin-left: auto;
    color: var(--wizard-accent);
}

body.page-stage2 .stage2-photo-entry:hover {
    border-color: var(--wizard-accent);
    background: rgba(var(--wizard-accent-rgb), 0.1);
}

body.page-stage2 .stage2-photo-entry:focus-visible {
    outline: 2px solid var(--wizard-accent);
    outline-offset: 3px;
}

body.page-stage2 .stage2-photo-entry[aria-pressed="true"] {
    border-color: var(--wizard-primary);
    background: rgba(var(--wizard-primary-rgb), 0.05);
    box-shadow: inset 0 0 0 1px var(--wizard-primary);
}

body.page-stage2 .stage2-photo-entry[aria-pressed="true"] :is(.stage2-photo-entry__icon, .stage2-photo-entry__arrow) {
    color: var(--wizard-primary);
}

body.page-stage2 .stage2-photo-entry[aria-pressed="true"] .stage2-photo-entry__icon {
    background: rgba(var(--wizard-primary-rgb), 0.1);
}

@media (max-width: 767.98px) {
    body.page-stage2 .stage2-photo-entry-row {
        grid-template-columns: 1fr;
        max-width: none;
    }
}

body.page-stage2 .stage2-photo-entry:not([aria-pressed="true"]) {
    border-color: var(--wizard-border);
    background: var(--wizard-surface);
}

body.page-stage2 .custom-character-panel--oto {
    background: #fff;
    border-color: var(--wizard-border);
    box-shadow: none;
}

body.page-stage2 .custom-character-panel--oto :is(.stage2-custom-hero, .stage2-custom-card) {
    border-color: rgba(var(--wizard-accent-rgb), 0.12);
    background: #fff;
    box-shadow: none;
}

body.page-stage2 .custom-character-panel--oto .stage2-custom-hero {
    border-color: transparent;
    background: rgba(var(--wizard-accent-rgb), 0.025);
}

body.page-stage2 .custom-character-panel--oto .stage2-custom-hero__eyebrow {
    color: var(--wizard-accent);
}

body.page-stage2 .custom-character-panel--oto .stage2-custom-chip {
    background: rgba(var(--wizard-primary-rgb), 0.04);
    border-color: rgba(var(--wizard-primary-rgb), 0.16);
    color: var(--wizard-primary);
    font-weight: 500;
}

body.page-stage2 .custom-character-panel--oto #customCharacterUploadPicker {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 0.85rem;
    min-height: 5.25rem;
    padding: 0.75rem;
    border: 1px dashed rgba(var(--wizard-accent-rgb), 0.45);
    border-radius: 0.75rem;
    background: rgba(var(--wizard-accent-rgb), 0.025);
}

body.page-stage2 .custom-character-panel--oto #customCharacterUploadPicker.is-dragging {
    border-color: var(--wizard-accent);
    background: rgba(var(--wizard-accent-rgb), 0.08);
}

body.page-stage2 .stage2-upload-invitation {
    width: 2rem;
    height: 2rem;
    color: var(--wizard-accent);
}

body.page-stage2 #customCharacterUploadPicker.is-filled .stage2-upload-invitation {
    display: none;
}

body.page-stage2 .stage2-upload-drop-hint {
    color: #718090;
    font-size: 0.78rem;
    text-align: center;
}

body.page-stage2 .custom-character-panel--oto .custom-character-generate-button:disabled {
    background: var(--wizard-surface-soft) !important;
    border-color: var(--wizard-border) !important;
    color: #718090 !important;
    box-shadow: none;
}

@media (min-width: 992px) {
    body.page-stage2 .custom-character-panel--oto .stage2-custom-character-layout {
        grid-template-columns: minmax(10rem, 0.6fr) minmax(0, 1.4fr);
    }
}

/* Zwarty formularz postaci ze zdjęcia w kreatorze Oto Ona/On. */
body.page-stage2 .custom-character-panel--oto {
    padding: 0;
    border: 0;
    margin-top: 0.75rem !important;
}
body.page-stage2 .custom-character-panel--oto .stage2-custom-character-layout {
    align-items: start;
    grid-template-rows: auto 1fr;
}
body.page-stage2 .custom-character-panel--oto .stage2-custom-character-column {
    align-content: start;
}
body.page-stage2 .custom-character-panel--oto .stage2-custom-card {
    padding: 0.75rem;
    border: 0;
    background: rgba(var(--wizard-accent-rgb), 0.025);
}
body.page-stage2 .custom-character-panel--oto .stage2-custom-hero {
    padding: 0.85rem;
    border: 1px solid rgba(var(--wizard-accent-rgb), 0.18);
}
body.page-stage2 .custom-character-panel--oto .stage2-custom-example {
    width: 100%;
    max-width: 18rem;
    justify-self: center;
}
body.page-stage2 .stage2-upload-details {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    padding-left: 0.85rem;
    border-left: 1px solid var(--wizard-border);
}
body.page-stage2 .stage2-upload-drop-hint {
    text-align: left;
}
body.page-stage2 .stage2-upload-formats {
    color: #718090;
    font-size: 0.72rem;
}
body.page-stage2 .custom-character-panel--oto .custom-character-textarea {
    min-height: 3.3rem;
    height: 3.3rem;
    max-height: none;
    resize: vertical;
}
body.page-stage2 .custom-character-panel--oto .custom-character-generation-panel {
    margin-top: 0.25rem;
    padding: 0.5rem;
    border: 0;
    background: transparent;
    box-shadow: none;
}
body.page-stage2 .custom-character-panel--oto .custom-character-generation-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    text-align: center;
}
body.page-stage2 .custom-character-panel--oto .custom-character-generate-button {
    width: min(100%, 25rem);
    min-height: 2.65rem;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}
body.page-stage2 .stage-form-card:has(.custom-character-panel--oto) + .stage-form-actions .btn {
    min-height: 2.65rem;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
}
@media (max-width: 575.98px) {
    body.page-stage2 .stage2-upload-details {
        flex-basis: 100%;
        padding-left: 0;
        border-left: 0;
        text-align: center;
    }
    body.page-stage2 .stage2-upload-drop-hint {
        text-align: center;
    }
}

/* Stan po uploadzie: miniatura, metadane i akcje w jednym wierszu. */
body.page-stage2 :is(.custom-character-panel--oto, .stage-shell--photo-attributes) #customCharacterUploadPicker.is-filled {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-style: solid;
    border-color: var(--wizard-border);
    background: #fff;
}
body.page-stage2 :is(.custom-character-panel--oto, .stage-shell--photo-attributes) #customCharacterUploadPicker.is-filled .stage2-upload-details {
    display: none;
}
body.page-stage2 :is(.custom-character-panel--oto, .stage-shell--photo-attributes) .stage2-attributes-upload-thumb {
    width: 40px;
    height: 48px;
    object-fit: contain;
    object-position: center top;
    border-radius: 0.35rem;
}
body.page-stage2 :is(.custom-character-panel--oto, .stage-shell--photo-attributes) .stage2-attributes-upload-thumb.is-face-cropped {
    object-fit: cover;
    object-position: center;
}
body.page-stage2 :is(.custom-character-panel--oto, .stage-shell--photo-attributes) .stage2-attributes-upload-file {
    grid-template-columns: 40px minmax(0, 1fr);
    width: 100%;
}
body.page-stage2 :is(.custom-character-panel--oto, .stage-shell--photo-attributes) .stage2-upload-file-details {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}
body.page-stage2 :is(.custom-character-panel--oto, .stage-shell--photo-attributes) .stage2-attributes-upload-file-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
body.page-stage2 :is(.custom-character-panel--oto, .stage-shell--photo-attributes) .stage2-upload-file-size {
    font-size: 0.72rem;
    color: #718090;
}
body.page-stage2 .custom-character-panel--oto .stage2-custom-character-layout {
    row-gap: 0.3rem;
}
body.page-stage2 .custom-character-panel--oto .stage2-custom-card {
    padding: 0.55rem 0.75rem;
}
body.page-stage2 .custom-character-panel--oto .stage2-custom-instructions .stage2-custom-step-title--optional {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}
body.page-stage2 .custom-character-panel--oto .stage2-custom-instructions .stage1-section-icon {
    flex: 0 0 1.3rem;
    width: 1.3rem;
    height: 1.3rem;
}
body.page-stage2 .custom-character-panel--oto .custom-character-textarea {
    min-height: 2.6rem;
    height: 2.6rem;
    max-height: 12rem;
    resize: none;
}
body.page-stage2 .custom-character-panel--oto .custom-character-generation-panel {
    margin-top: 0;
    padding: 0.35rem 0.5rem;
}
body.page-stage2 .custom-character-panel--oto .custom-character-generation-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}
body.page-stage2 .custom-character-panel--oto #groupProgressTitle {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
}
body.page-stage2 .custom-character-panel--oto .group-progress-messages {
    display: grid;
    margin-top: 0.4rem;
    color: #788899;
}
body.page-stage2 .custom-character-panel--oto .group-progress-messages span {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
}
body.page-stage2 .custom-character-panel--oto .group-progress-messages span.is-current {
    opacity: 1;
    visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
    body.page-stage2 .custom-character-panel--oto .group-progress-messages span { transition: none; }
}
body.page-stage2 .custom-character-panel--oto .custom-character-generate-button {
    flex: 0 1 360px;
    width: min(100%, 360px);
    max-width: 360px;
}
body.page-stage2 .custom-character-panel--oto .custom-character-generation-copy {
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: center;
}
@media (max-width: 399.98px) {
    body.page-stage2 :is(.custom-character-panel--oto, .stage-shell--photo-attributes) #customCharacterUploadPicker.is-filled {
        padding-inline: 0.4rem;
        gap: 0.35rem;
    }
    body.page-stage2 :is(.custom-character-panel--oto, .stage-shell--photo-attributes) .stage2-attributes-upload-actions .btn {
        padding-inline: 0.4rem;
        font-size: 0.72rem;
    }
}

/* Kompaktowy wybor metody i galerii w etapie postaci. */
body.page-stage2 .stage2-photo-entry {
    padding-block: 0.45rem;
}
body.page-stage2 .stage2-photo-entry-row {
    margin-bottom: 0.55rem;
}
body.page-stage2 .stage2-method-heading {
    margin-bottom: 0.5rem;
}
body.page-stage2 .person-category-strip {
    gap: 0.3rem;
    margin-bottom: 0.45rem;
}
body.page-stage2 .person-category-button {
    min-height: 1.6rem;
    padding-block: 0.2rem;
}
body.page-stage2 .custom-character-panel--oto {
    margin-top: 0.5rem !important;
}
body.page-stage2 .custom-character-panel--oto .stage2-custom-hero {
    gap: 0.5rem;
    padding-block: 0.65rem;
}
body.page-stage2 .custom-character-panel--oto .stage2-custom-example__media {
    aspect-ratio: 1190 / 828;
}
body.page-stage2 .stage2-instructions-disclosure summary {
    cursor: pointer;
    list-style: none;
    min-height: 1.75rem;
    width: 100% !important;
    margin-bottom: 0 !important;
}
body.page-stage2 .stage2-instructions-disclosure summary::-webkit-details-marker {
    display: none;
}
body.page-stage2 .stage2-instructions-disclosure summary::after {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    flex-shrink: 0;
    margin-left: 0.35rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}
body.page-stage2 .stage2-instructions-disclosure[open] summary::after {
    transform: rotate(225deg);
}
body.page-stage2 .stage2-instructions-disclosure summary:focus-visible {
    outline: 2px solid var(--wizard-accent);
    outline-offset: 3px;
}
body.page-stage2 .stage2-instructions-disclosure textarea {
    margin-top: 0.4rem;
}
body.page-stage2 .custom-character-panel--oto .custom-character-attempt-info {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #718090;
    font-size: 0.75rem;
    line-height: 1.35;
}
body.page-stage2 .custom-character-panel--oto .custom-character-attempt-info.alert-warning {
    color: #855600;
}
body.page-stage2 .custom-character-panel--oto .custom-character-variant-gallery {
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    gap: 0.4rem;
}
body.page-stage2 .custom-character-panel--oto .custom-character-variant-list {
    grid-template-columns: repeat(auto-fill, minmax(min(7rem, 100%), 8rem));
    gap: 0.6rem;
}
body.page-stage2 .custom-character-panel--oto .custom-character-variant-card {
    padding: 0.35rem;
    gap: 0.3rem;
}
body.page-stage2 .custom-character-panel--oto .custom-character-variant-card__image {
    height: 4.5rem;
}
body.page-stage2 .custom-character-panel--oto .custom-character-variant-card__number {
    font-size: 0.75rem;
}
body.page-stage2 .custom-character-panel--oto .custom-character-variant-card__selected {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
}
@media (max-width: 575.98px) {
    body.page-stage2 .custom-character-panel--oto .custom-character-variant-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Wspolny wzorzec wyboru zrodla atrybutu w kreatorze Oto Ona/On. */
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-source-heading {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 650;
    color: var(--wizard-heading);
}
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-source-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-source-choice {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--wizard-border);
    border-radius: 0.75rem;
    background: var(--wizard-surface);
    color: var(--wizard-heading);
    text-align: left;
    font: inherit;
}
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-source-choice > span:not(.attribute-source-arrow) {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.35;
}
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-source-choice strong { font-size: 0.9rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-source-icon {
    flex: 0 0 2.1rem;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0.35rem;
    border-radius: 50%;
    color: var(--wizard-accent);
    background: rgba(var(--wizard-accent-rgb), 0.1);
}
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-source-arrow { margin-left: auto; font-size: 1.5rem; color: var(--wizard-accent); }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-source-choice[aria-pressed="true"] {
    border-color: var(--wizard-primary);
    background: rgba(var(--wizard-primary-rgb), 0.05);
    box-shadow: inset 0 0 0 1px var(--wizard-primary);
}
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-source-choice[aria-pressed="true"] :is(.attribute-source-icon, .attribute-source-arrow) { color: var(--wizard-primary); }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-source-choice[aria-pressed="true"] .attribute-source-icon { background: rgba(var(--wizard-primary-rgb), 0.1); }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-source-choice:focus-visible { outline: 2px solid var(--wizard-accent); outline-offset: 3px; }
:is(body.page-stage3, body.wizard-project-attribute-texts) [data-source-choice="true"] .attribute-library:not(.d-none) { display: flex; flex-direction: column; }
:is(body.page-stage3, body.wizard-project-attribute-texts) [data-source-choice="true"] .attribute-image-title { display: none; }
:is(body.page-stage3, body.wizard-project-attribute-texts) [data-source-choice="true"] .attribute-tag-search { order: 1; }
:is(body.page-stage3, body.wizard-project-attribute-texts) [data-source-choice="true"] .attribute-category-strip { order: 2; }
:is(body.page-stage3, body.wizard-project-attribute-texts) [data-source-choice="true"] .asset-thumb-grid { order: 3; }
:is(body.page-stage3, body.wizard-project-attribute-texts) [data-source-choice="true"] .attribute-library :is([data-custom-attribute-filter="true"], [data-custom-attribute-filter="true"] + label) { display: none; }
:is(body.page-stage3, body.wizard-project-attribute-texts) [data-source-choice="true"] .custom-attribute-panel {
    margin-top: 0.5rem !important;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-workflow {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
    gap: 0.85rem;
    align-items: start;
}
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-intro {
    display: grid;
    gap: 0.5rem;
    padding: 0.85rem;
    border: 1px solid rgba(var(--wizard-accent-rgb), 0.18);
    border-radius: 0.75rem;
    background: rgba(var(--wizard-accent-rgb), 0.025);
}
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-eyebrow { color: var(--wizard-accent); font-size: 0.78rem; font-weight: 600; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-intro h2 { margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.5rem); line-height: 1.2; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-intro p { margin: 0; font-size: 0.86rem; line-height: 1.35; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-cost { justify-self: start; border: 1px solid rgba(var(--wizard-primary-rgb), 0.18); border-radius: 1rem; padding: 0.25rem 0.5rem; font-size: 0.75rem; color: var(--wizard-primary); background: rgba(var(--wizard-primary-rgb), 0.04); }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-example { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0.5rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-example figure { margin: 0; min-width: 0; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-example img { width: 100%; height: 10rem; object-fit: contain; border-radius: 0.5rem; background: white; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-example figcaption { margin-top: 0.25rem; text-align: center; font-size: 0.75rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form { display: grid; gap: 0.55rem; min-width: 0; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form > :is(.attribute-custom-prompt,.attribute-custom-reference) { padding: 0.6rem 0.7rem; border-radius: 0.7rem; background: rgba(var(--wizard-accent-rgb), 0.025); }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form .wizard-section-title { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.45rem; font-size: 0.85rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form .attribute-custom-instructions { min-height: 5rem; max-height: 12rem; resize: vertical; font-size: 0.86rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-prompt-count { text-align: right; color: #718090; font-size: 0.72rem; margin-top: 0.2rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-reference-row { display: flex; align-items: center; gap: 0.45rem; padding: 0.5rem; border: 1px solid var(--wizard-border); border-radius: 0.7rem; background: white; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-reference-thumb { width: 36px; height: 42px; object-fit: cover; border-radius: 0.35rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-reference-row .custom-upload-file-name { flex: 1 1 0; min-width: 0; width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 0.78rem; text-overflow: ellipsis; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-reference-row .btn { flex-shrink: 0; padding: 0.35rem 0.55rem; font-size: 0.78rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-reference-row:has([data-has-file="false"]) label { order: -1; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form .form-text { margin-top: 0.3rem; font-size: 0.72rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form .custom-attribute-ai-panel { padding: 0.35rem 0.5rem; margin: 0; border: 0; background: transparent; box-shadow: none; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form .custom-character-generation-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0.4rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form .custom-character-generation-actions { order: -1; display: flex; justify-content: center; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form .custom-character-generate-button { width: min(100%,360px); min-height: 2.65rem; padding: 0.6rem 1rem; font-size: 0.9rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form .custom-character-generation-copy { text-align: center; font-size: 0.78rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form .custom-character-attempt-info { padding: 0; border: 0; background: transparent; font-size: 0.75rem; text-align: center; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-result { display: grid; justify-items: center; gap: 0.2rem; width: 7rem; padding: 0.35rem; border: 2px solid var(--wizard-accent); border-radius: 0.65rem; font-size: 0.75rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-result img { width: 100%; height: 4.5rem; object-fit: contain; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form .attribute-description-layout { margin-top: 0.25rem !important; }
body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes #attributeSelector .btn { min-height: 2.35rem; padding-block: 0.4rem; }
@media (max-width: 767.98px) {
    :is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-source-options, :is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-workflow { grid-template-columns: 1fr; }
    :is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-example { max-width: 16rem; }
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes [data-source-choice="true"] .attribute-image-title { display: none; }
body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes [data-source-choice="true"] .attribute-tag-search { width: min(100%, 22rem); }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form .wizard-section-title {
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-intro h2 { font-size: 1.3rem; }
body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-custom-form .attribute-description-layout {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0.25rem !important;
}
body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-custom-form .attribute-description-input {
    height: auto;
    min-height: 0;
    padding-block: 0.5rem;
}

/* Kolory postaci dopasowują liczbę kolumn do miejsca w edytorze. */
body.wizard-project-oto-on.page-stage2 #colorsContainer {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr));
}
body.wizard-project-oto-on.page-stage2 .stage2-color-option .color-picker {
    flex-wrap: nowrap;
    height: auto;
}
body.wizard-project-oto-on.page-stage2 .stage2-color-option .wizard-input-group-label {
    min-width: 5rem;
    padding-inline: 0.6rem;
}
body.wizard-project-oto-on.page-stage2 .stage2-color-option .color-input {
    min-width: 0;
}
@media (max-width: 575.98px) {
    body.wizard-project-oto-on.page-stage2 .stage2-color-option .color-picker {
        flex-wrap: wrap;
    }
    body.wizard-project-oto-on.page-stage2 .stage2-color-option .wizard-input-group-label {
        width: 100%;
        border-radius: 0.65rem 0.65rem 0 0;
    }
}

:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form .attribute-custom-instructions { height: 64px; min-height: 64px; max-height: 240px; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-reference summary { cursor: pointer; list-style: none; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-reference summary::-webkit-details-marker { display: none; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-reference:not([open]) summary { margin-bottom: 0; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-reference-chevron { margin-left: 0.35rem; width: 0.55rem; height: 0.55rem; flex-shrink: 0; align-self: center; font-size: 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-reference[open] .attribute-reference-chevron { transform: rotate(225deg); }
body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-custom-form .attribute-description-layout--custom-docked .attribute-description-lead { display: block; margin: 0 0 0.35rem; font-size: 0.78rem; }

body.page-stage2 .stage2-method-heading, :is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-source-heading { font-size: 0.9rem; }

/* Zwarty przebieg tworzenia własnego atrybutu. */
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form { gap: 0.35rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form > :is(.attribute-custom-prompt, .attribute-custom-reference) { padding: 0.4rem 0.65rem; }
body.wizard-project-oto-on.page-stage3 .stage-shell .attribute-custom-reference summary { font-size: 13px; text-transform: none; font-weight: 500; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-reference summary small { font-size: 12px; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form .custom-character-generate-button { width: min(100%, 310px); min-height: 2.4rem; padding: 0.45rem 0.8rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form .custom-character-generation-grid { gap: 0.15rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form .custom-character-generation-copy:has(> .d-none):not(:has(> :not(.d-none))) { display: none; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form .custom-character-attempt-info { margin: 0; box-shadow: none; font-size: 0.75rem; line-height: 1.35; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-result-section .attribute-source-heading { margin: 0 0 0.25rem; font-size: 0.85rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-result { width: 6rem; padding: 0.2rem; gap: 0.1rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-result img { height: 3.5rem; }
body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-custom-form .attribute-description-title { font-size: 0.75rem; margin-bottom: 0.2rem; }
body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-custom-form .attribute-description-input { height: auto; min-height: 0; padding-block: 0.35rem; }

:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form [id$="PromptHelp"]:empty,
body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-custom-form .attribute-description-layout--custom-docked .attribute-description-lead,
:is(body.page-stage3, body.wizard-project-attribute-texts) .attribute-custom-form .attribute-description-counter {
    display: none;
}
body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-custom-form .attribute-description-meta:has(.attribute-description-length-state:empty) {
    display: none;
}
/* Lżejsza hierarchia informacji na ekranie atrybutów. */
body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-source-selector > .attribute-source-heading {
    font-size: 0.82rem;
    font-weight: 500;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-source-choice {
    padding-block: 0.45rem;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes :is(.attribute-description-lead, .attribute-suggestion-copy) {
    font-weight: 400;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes :is(.attribute-description-lead, .attribute-suggestion-copy) {
    color: #647180;
}

body.wizard-project-oto-on.page-stage3 .stage-shell--oto-attributes .attribute-description-meta:not(:has(.attribute-description-counter)):has(.attribute-description-length-state:empty) {
    display: none;
}

.wizard-preview-mode { display: flex; flex: 0 0 auto; gap: 0.25rem; }
.wizard-preview-mode[hidden] { display: none; }
.wizard-preview-mode .btn { border: 1px solid var(--wizard-border); border-radius: 999px; font-size: 0.75rem; padding: 0.25rem 0.55rem; white-space: nowrap; }
.wizard-preview-mode .btn[aria-pressed="true"] { background: var(--wizard-primary); color: white; border-color: var(--wizard-primary); }
.wizard-preview-mode-frame { position: relative; width: 100%; text-align: center; }
.wizard-preview-mode-frame.is-product > img:first-child { opacity: 0; }
.wizard-page .wizard-preview-mode-frame > .wizard-preview-product-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.wizard-preview-product-image[hidden] { display: none !important; }

/* Ograniczenie natywnego zapisu i przeciągania grafik we wszystkich kreatorach. */
.wizard-page img,
.wizard-page picture,
.wizard-page canvas,
.wizard-page svg {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    user-select: none;
}

.stage3-text-switch { margin-top: .65rem; margin-bottom: .25rem; }
.stage3-text-switch [data-toggle-status] { font-size: .8em; font-weight: normal; color: var(--bs-secondary-color); }
.wizard-text-field[hidden] { display: none !important; }

.stage3-decoration-options { display: grid; gap: .2rem; justify-items: start; padding: .1rem 0 .05rem .6rem; }
.stage3-decoration-switch { display: flex; align-items: center; gap: .55rem; min-height: 28px; margin: 0; padding: .2rem .65rem; border-radius: .7rem; color: var(--bs-secondary-color); font-size: .8rem; }
.stage3-decoration-switch .form-check-input { float: none; flex-shrink: 0; margin: 0; cursor: pointer; }
.stage3-decoration-switch .form-check-label { cursor: pointer; }
.stage3-decoration-switch:has(.form-check-input:checked) { color: var(--wizard-primary-dark); background: rgba(var(--wizard-primary-rgb), .09); }

/* Trzy źródła grafiki zachowują styl istniejących kafelków. */
body.wizard-project-attribute-texts .graphic-source-options { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.graphic-dropzone { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .75rem; min-height: 88px; padding: .75rem; border: 1px dashed rgba(var(--wizard-accent-rgb), .45); border-radius: .85rem; background: rgba(var(--wizard-accent-rgb), .025); }
.graphic-dropzone.is-dragging { border-color: var(--bs-primary); background: #fff2f8; }
.graphic-dropzone.is-filled { flex-wrap: nowrap; justify-content: space-between; min-height: 0; border-style: solid; padding: .5rem .65rem; background: #fff; }
.graphic-upload-file { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.graphic-upload-thumb { width: 40px; height: 48px; flex: 0 0 40px; object-fit: contain; border-radius: .35rem; }
.graphic-upload-invitation { width: 32px; height: 32px; color: var(--wizard-accent); }
.graphic-upload-details { display: grid; gap: .25rem; border-left: 1px solid var(--wizard-border); padding-left: .75rem; font-size: .8rem; color: #718090; }
.graphic-upload-details small { font-size: .72rem; }
.graphic-dropzone.is-filled .graphic-upload-invitation, .graphic-dropzone.is-filled .graphic-upload-details { display: none; }
#graphicUploadPanel .graphic-upload-heading { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; background: transparent; }
#graphicUploadPanel .attribute-custom-form { padding: .75rem; background: rgba(var(--wizard-accent-rgb), .025); border-radius: .85rem; }
#graphicUploadPanel .btn { min-height: 32px; padding: .35rem .6rem; font-size: .8rem; flex-shrink: 0; }
#graphicUploadResult { margin-top: .75rem; }
.graphic-adjustments { display: flex; flex-wrap: wrap; gap: .35rem; }
@media(max-width: 575px) { body.wizard-project-attribute-texts .graphic-source-options { grid-template-columns: 1fr; } }

/* Miniatury pomysłów odwzorowują kolejność elementów gotowego projektu. */
.attribute-text-ideas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 12px;
}

.attribute-text-ideas__item { min-width: 0; }

.attribute-text-idea {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 12px;
    text-align: center;
}

.attribute-text-idea__label {
    display: block;
    margin-bottom: 3px;
    color: #7b8189;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .08em;
}

.attribute-text-idea .attribute-text-idea__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
    white-space: pre-line;
    margin: 0;
    line-height: 1.25;
    min-height: 2.5em;
}

.attribute-text-idea .attribute-text-idea__title { font-size: 16px; font-weight: 700; }
.attribute-text-idea .attribute-text-idea__subtitle { font-size: 13px; font-weight: 400; }
.attribute-text-idea .attribute-text-idea__slogan { font-size: 14px; font-weight: 600; }

.attribute-text-idea__image {
    display: block;
    width: 100%;
    height: 96px;
    object-fit: contain;
}

#attributeTextIdeas .attribute-text-idea__select {
    width: 100%;
    min-height: 34px;
    margin-top: auto;
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.35;
}

@media (max-width: 575px) {
    .attribute-text-ideas { grid-template-columns: 1fr; }
}

/* Wybór ścieżki zmienia wyłącznie widoczność istniejącej biblioteki. */
#attributeTextsForm[data-library-section="collapsed"] :is(.attribute-library, #graphicIdeaControls, #attributeTextIdeas) { display: none !important; }
#attributeTextsForm:not([data-library-section="library"]) .attribute-library > :not(#graphicIdeaControls):not(#attributeTextIdeas) { display: none !important; }
.graphic-library-empty { grid-column: 1 / -1; padding: 20px; border: 1px solid var(--wizard-border, #dce3e9); border-radius: 16px; font-size: 14px; }

/* Dostawa obok akceptacji projektu we wszystkich kreatorach. */
body.wizard-stage-5 .stage5-shipping {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #ccebf0;
    border-radius: 12px;
    background: #f0fafb;
    color: #245968;
    font-size: 14px;
}
body.wizard-stage-5 .stage5-shipping__summary {
    display: flex;
    align-items: center;
    gap: 10px;
}
body.wizard-stage-5 .stage5-shipping__express {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 0 auto;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}
body.wizard-stage-5 .stage5-shipping__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
body.wizard-stage-5 .stage5-shipping__price { font-weight: 700; }
body.wizard-stage-5 .stage5-shipping .form-check {
    display: flex;
    margin: 0;
    padding: 0;
    min-height: 0;
}
body.wizard-stage-5 .stage5-shipping .form-check-input {
    flex: 0 0 42px;
    width: 42px;
    height: 24px;
    margin: 0;
    border-radius: 24px;
    cursor: pointer;
}


/* Postać ze zdjęcia z atrybutami — układ oparty na kartach OTO i PARA. */
body.page-stage2 .stage-shell--photo-attributes .custom-character-panel--attributes {
    margin-top: 0 !important;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-custom-character-layout {
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
    grid-template-areas: "intro workflow" "intro instructions";
    gap: 0.5rem;
    align-items: start;
}
body.page-stage2 .stage-shell--photo-attributes :is(.stage2-custom-card, .stage2-custom-hero) {
    padding: 0.55rem;
    border: 1px solid var(--wizard-border);
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: none;
    gap: 0.35rem;
    height: auto;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-custom-hero {
    background: rgba(var(--wizard-accent-rgb), 0.025);
}
body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-step-heading {
    gap: 0.45rem;
    margin: 0;
    font-size: 0.86rem;
    font-weight: 650;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.7rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.8rem;
    background: rgba(var(--wizard-primary-rgb), 0.06);
    color: var(--wizard-primary);
}
body.page-stage2 .stage-shell--photo-attributes .stage1-section-icon {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-custom-card__hint {
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-custom-attribute-fields--grid {
    gap: 0.3rem 0.65rem;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-custom-attribute-field {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
body.page-stage2 .stage-shell:not(.stage-shell--photo-attributes) .stage2-attributes-style-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    width: 100%;
    margin-bottom: 0.75rem;
}
body.page-stage2 .stage-shell:not(.stage-shell--photo-attributes) .stage2-attributes-style-row > span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
body.page-stage2 .stage-shell:not(.stage-shell--photo-attributes) .stage2-attributes-style-row .form-select {
    flex: 1 1 14rem;
    min-width: 0;
    width: auto;
}
body.page-stage2 .custom-character-panel--oto .stage2-oto-outfit-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
body.page-stage2 .custom-character-panel--oto .stage2-oto-outfit-fields .stage2-attributes-style-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    min-width: 0;
    margin: 0;
}
body.wizard-page.page-stage2 .stage-shell .stage2-oto-outfit-fields .wizard-numbered-section-title {
    gap: 0.45rem;
    margin: 0;
}
body.page-stage2 .stage-shell .custom-character-panel--oto .stage2-oto-outfit-fields .form-select {
    flex: none;
    width: 100%;
    min-height: 2.25rem;
    padding-block: 0.3rem;
    font-size: 0.85rem;
}
@media (max-width: 575.98px) {
    body.page-stage2 .custom-character-panel--oto .stage2-oto-outfit-fields {
        grid-template-columns: minmax(0, 1fr);
    }
    body.page-stage2 .stage-shell .custom-character-panel--oto .stage2-oto-outfit-fields .form-select {
        min-height: 2.75rem;
    }
}
body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-style-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 14rem);
    align-items: center;
    gap: 0.6rem;
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-attribute-options:not(:has(> :not(.d-none))) {
    display: none;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-style-row > span {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-style-row .stage1-section-icon {
    color: var(--wizard-primary);
}
body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-style-row .form-select {
    min-width: 0;
    min-height: 2.1rem;
    margin: 0;
}
body.page-stage2 .stage-shell--photo-attributes .custom-character-generation-panel--attributes {
    padding: 0;
    margin-top: 0.3rem;
    border: 0;
    background: transparent;
    box-shadow: none;
}
body.page-stage2 .stage-shell--photo-attributes .custom-character-generation-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
}
body.page-stage2 .stage-shell--photo-attributes .custom-character-generate-button {
    width: 100%;
    min-height: 2.45rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}
body.page-stage2 .stage-shell--photo-attributes #customCharacterUploadPicker:not(.is-filled) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.6rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.75rem;
}
body.page-stage2 .stage-shell--photo-attributes #customCharacterUploadPicker.is-filled .stage2-upload-details {
    display: none;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-upload-legal {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 400;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-style-row .form-select {
    font-size: 0.8rem;
    min-height: 1.9rem;
    padding-block: 0.25rem;
}
body.page-stage2 .stage-shell--photo-attributes .custom-character-variant-list {
    grid-template-columns: repeat(auto-fill, minmax(6rem, 7rem));
}
body.page-stage2 .stage-shell--photo-attributes .custom-character-variant-card {
    padding: 0.3rem;
    min-height: 0;
}
body.page-stage2 .stage-shell--photo-attributes .custom-character-variant-card__image {
    height: 3.5rem;
}
body.page-stage2 .stage-shell--photo-attributes .custom-character-variant-gallery {
    margin-top: .4rem;
    padding-top: .4rem;
    gap: .3rem;
}
body.page-stage2 .stage-shell--photo-attributes .custom-character-variant-card__number {
    font-size: 0.7rem;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-optional-instructions {
    display: block;
    margin-top: 0.4rem;
    padding: 0.55rem;
    border: 1px solid var(--wizard-border);
    border-radius: 0.75rem;
    background: rgba(var(--wizard-accent-rgb), 0.025);
}
body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-optional-instructions summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-optional-instructions textarea {
    margin-top: 0.4rem;
    max-height: 12rem;
    overflow-y: auto;
}
@media (min-width: 1200px) {
    body.page-stage2 .stage-shell--photo-attributes .row.mb-4 {
        width: min(1420px, 100%);
    }
    body.page-stage2 .stage-shell--photo-attributes .col-lg-7 { width: 58%; flex: 0 0 58%; max-width: none; }
    body.page-stage2 .stage-shell--photo-attributes .col-lg-5 { width: 42%; flex: 0 0 42%; max-width: none; }
}
@media (max-width: 1199.98px) {
    body.page-stage2 .stage-shell--photo-attributes :is(.col-lg-7, .col-lg-5) {
        width: 100%;
        flex: 0 0 100%;
    }
    body.page-stage2 .stage-shell--photo-attributes .stage2-custom-character-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "intro" "workflow" "instructions";
    }
    body.page-stage2 .stage-shell--photo-attributes .stage2-custom-example { max-width: 22rem; justify-self: center; }
}
@media (max-width: 991.98px) {
    body.page-stage2 .stage-shell--photo-attributes .stage2-custom-attribute-fields--grid { grid-template-columns: minmax(0, 1fr); }
    body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-style-row { grid-template-columns: minmax(0, 1fr); }
}
body.page-stage2 .stage-shell--photo-attributes .stage2-upload-file-details {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-upload-file-name {
    display: block;
    min-width: 0;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-optional-instructions summary {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-section-icon .stage1-section-icon {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
}

/* Kompaktowy formularz: różowe sekcje, turkusowe pozycje atrybutów. */
body.page-stage2 .stage-shell--photo-attributes {
    --wizard-section-gap: 0.65rem;
}
body.wizard-page.page-stage2 .stage-shell--photo-attributes :is(.stage2-attributes-section-icon, .stage2-attributes-style-row) .stage1-section-icon {
    color: var(--brand-pink);
    background: rgba(var(--wizard-primary-rgb), 0.08);
    border-color: rgba(var(--wizard-primary-rgb), 0.2);
}
body.page-stage2 .stage-shell--photo-attributes .stage2-attribute-label__icon {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 0.4rem;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-attribute-label__icon svg {
    width: 0.85rem;
    height: 0.85rem;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-custom-attribute-field .form-label {
    font-size: 0.75rem;
    margin-bottom: 0.15rem;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-custom-attribute-field .form-control {
    min-height: 2.1rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.85rem;
}
body.page-stage2 .stage-shell--photo-attributes .wizard-stage-heading-line {
    margin-bottom: 0.4rem !important;
}
body.page-stage2 .stage-shell--photo-attributes .stage2-custom-page-intro {
    margin: 0 0 0.65rem;
}
body.page-stage2 .stage-shell--photo-attributes #customCharacterPhotoValidation[data-photo-validation-status="accepted"]:not(:has(.custom-photo-validation-reason)) {
    display: none !important;
}
@media (min-width: 1200px) {
    body.page-stage2 .stage-shell--photo-attributes .stage2-custom-example {
        max-width: 185px;
        justify-self: start;
    }
    body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-preview-placeholder {
        min-height: 28rem;
    }
}

@media (min-width: 1200px) {
    body.page-stage2 .stage-shell--photo-attributes {
        --wizard-section-gap: 0.35rem;
    }
    body.wizard-page.page-stage2 .stage-shell--photo-attributes {
        --wizard-icon-size: 1.65rem;
    }
    body.wizard-page.page-stage2 .stage-shell--photo-attributes .stage-form-card {
        padding: 0.8rem 1rem !important;
    }
    body.page-stage2 .stage-shell--photo-attributes .stage2-custom-character-column {
        gap: 0.4rem;
    }
    body.page-stage2 .stage-shell--photo-attributes .stage2-custom-character-layout {
        grid-template-columns: minmax(205px, 220px) minmax(0, 1fr);
        column-gap: 12px;
    }
    body.page-stage2 .stage-shell--photo-attributes #customCharacterUploadPicker.is-empty {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
        justify-items: start;
        column-gap: 0.6rem;
    }
    body.page-stage2 .stage-shell--photo-attributes #customCharacterUploadPicker.is-empty .stage2-upload-details {
        padding-left: 0.6rem;
        text-align: left;
    }
    body.page-stage2 .stage-shell--photo-attributes .stage2-custom-attribute-fields--grid {
        gap: 12px 16px;
    }
    body.page-stage2 .stage-shell--photo-attributes .stage2-custom-attribute-field .form-label {
        margin-bottom: 6px;
    }
    /* Automatyczne kolumny nie rezerwują miejsca dla ukrytych opcji sezonowych. */
    body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-style-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        margin: 0;
        min-width: 0;
        font-size: 0.78rem;
    }
    body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-style-row--fixed {
        display: flex;
        flex-wrap: wrap;
        align-self: center;
    }
    body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-style-row > span {
        gap: 0.4rem;
    }
    body.page-stage2 .stage-shell--photo-attributes .custom-character-variant-list {
        grid-template-columns: repeat(auto-fill, minmax(5rem, 5.75rem));
        gap: 0.4rem;
    }
    body.page-stage2 .stage-shell--photo-attributes .custom-character-variant-card__image {
        height: 2.75rem;
    }
    body.page-stage2 .stage-shell--photo-attributes .custom-character-variant-gallery {
        margin-top: 0.25rem;
        padding-top: 0.25rem;
    }
    body.page-stage2 .stage-shell--photo-attributes :is(.stage2-custom-card, .stage2-custom-hero) {
        padding: 0.4rem;
        gap: 0.2rem;
    }
    body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-section-icon {
        width: 1.7rem;
        height: 1.7rem;
        flex-basis: 1.7rem;
    }
    body.page-stage2 .stage-shell--photo-attributes .stage2-custom-card__hint {
        font-size: 0.74rem;
    }
    body.page-stage2 .stage-shell--photo-attributes .stage2-custom-attribute-field .form-control,
    body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-style-row .form-select {
        min-height: 40px;
        width: 100%;
        padding: 8px 12px;
    }
    body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-style-row .form-select {
        min-height: 34px;
        padding-block: 5px;
        padding-right: 32px;
        font-size: 0.78rem;
    }
    body.page-stage2 .stage-shell--photo-attributes .stage2-attributes-optional-instructions {
        padding: 0.35rem;
        margin-top: 0.25rem;
    }
    body.page-stage2 .stage-shell--photo-attributes .stage2-custom-page-intro {
        margin-bottom: 0.3rem;
    }
    body.page-stage2 .stage-shell--photo-attributes .stage-form-actions {
        margin-top: 0.3rem;
    }
}


/* Parametry techniczne na finale współdzielą kontrolki produktu ze START-em. */
body.wizard-stage-5 .stage5-variant-card {
    min-width: 0;
    padding: 24px;
}
body.wizard-stage-5 .stage5-variant-card fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
body.wizard-stage-5 .stage5-variant-card .stage1-choice-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
body.wizard-stage-5 .stage5-variant-card .stage1-choice-button {
    flex: 0 1 auto;
    min-width: 0;
    white-space: normal;
}
body.wizard-stage-5 .stage5-variant-card .wizard-section-title {
    font-size: 0.85rem;
}
body.wizard-stage-5 .stage5-variant-card .stage5-section-title {
    font-size: 1rem;
    margin-bottom: 20px;
}
body.wizard-stage-5 .stage5-variant-card + .stage5-order-card .stage5-shipping {
    margin-bottom: 20px;
}
@media (max-width: 575px) {
    body.wizard-stage-5 .stage5-variant-card { padding: 18px; }
}

/* Zwarty finał pozostałych kreatorów; OTO zachowuje dotychczasowy układ. */
body.wizard-stage-5 .stage5-checkout-group { display: contents; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-checkout-group {
    display: block;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .55rem 1.6rem rgba(15, 23, 42, .065);
}
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-checkout-group > .stage5-final-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-variant-card .stage5-section-title { margin-bottom: 10px; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .wizard-start-product-configuration { gap: 10px; }
body.wizard-page.wizard-stage-5 .stage-shell.stage5-redesign--compact .wizard-start-product-option { margin: 0 0 10px; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-variant-card + .stage5-order-card .stage5-order-heading-line { display: none; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-shipping { margin: 10px 0 0; padding: 10px; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-final-cta { margin-top: 10px; min-height: 48px; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-final-side { gap: 8px; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-edit-action { min-height: 44px; padding: 8px; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-code-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0 8px;
    padding: 8px 12px;
    box-shadow: none;
}
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-code-card .stage5-section-title { margin: 0; font-size: .8rem; white-space: nowrap; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-code-card .stage5-ui-icon,
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-code-meta p { display: none; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-code-control .stage5-copy-field { min-height: 34px; padding: 6px; font-size: .8rem; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-copy-button { min-height: 34px; padding: 6px 8px; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-code-meta { grid-column: 1 / -1; min-height: 0; margin: 0; justify-content: end; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-save-disclosure { padding: 0; overflow: hidden; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-save-disclosure summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
    font-size: .9rem;
    font-weight: 600;
}
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-save-disclosure summary::-webkit-details-marker { display: none; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-save-disclosure summary:focus-visible { outline: 2px solid var(--wizard-primary); outline-offset: -3px; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-save-disclosure summary .stage5-ui-icon { width: 28px; height: 28px; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-save-chevron { width: 16px; height: 16px; margin-left: auto; }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-save-disclosure[open] .stage5-save-chevron { transform: rotate(180deg); }
body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-save-disclosure .stage5-email-card { padding: 0 12px 12px; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
@media (max-width: 575px) {
    body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-checkout-group { padding: 12px; }
    body.wizard-page.wizard-stage-5 .stage5-redesign--compact .stage5-code-card { padding: 8px; gap: 0 6px; }
}

body.wizard-stage-5 [data-variant-status]:empty { display: none; }

/* Informacja o zleceniu w finale projektu. */
.commission-final { background: #ebfaf8; border-radius: .8rem; padding: .8rem 1rem; font-size: .9rem; }
.commission-final p { margin-bottom: .3rem; }

.attribute-custom-variant-list { display: flex; flex-wrap: wrap; gap: .5rem; }
:is(body.page-stage3, body.wizard-project-attribute-texts) button.attribute-custom-result { background: white; color: inherit; cursor: pointer; border-color: #dfe8ef; }
:is(body.page-stage3, body.wizard-project-attribute-texts) button.attribute-custom-result[aria-pressed="true"] { border-color: var(--wizard-accent); background: #f0fbfd; }
button.attribute-custom-result:disabled { opacity: .65; cursor: wait; }
button.attribute-custom-result:focus-visible { outline: 2px solid var(--wizard-accent); outline-offset: 2px; }

.wizard-start-reset-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.wizard-start-reset-label > small {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: none;
    opacity: 1;
}

/* Wspólny kompaktowy układ tekstów zachowuje etykiety dla czytników ekranu. */
body.wizard-page .stage-form-card .wizard-text-field > label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body.wizard-page .stage-form-card .wizard-text-field > .form-control {
    width: 100%;
    min-width: 0;
    margin-left: 0 !important;
    border-radius: var(--bs-border-radius) !important;
}

@media (max-width: 767.98px) {
    body.wizard-page .stage-form-card .wizard-text-field > .form-control {
        border-radius: .7rem !important;
    }

    body.wizard-page .stage-form-card .wizard-text-style-options {
        display: flex;
        flex-wrap: nowrap;
        gap: .35rem;
        max-width: 100%;
        overflow-x: auto;
        padding: .2rem;
    }

    body.wizard-page .wizard-text-style-options > label,
    body.wizard-page .wizard-text-style-options > .wizard-font-tile {
        flex: 0 0 auto;
        width: auto;
    }
}

/* Produkt ma własną ramę; dodatkowy obrys podglądu grupowego jest zbędny. */
body.wizard-stage-5 .group-final .stage5-product-card .stage5-preview-shell:has(> .stage5-preview-image.is-visible:not(.d-none)) {
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
}
body.wizard-stage-5 .group-final .stage5-product-card .stage5-preview-image { border-radius: 0; }
