.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.6fr);
    gap: 24px;
    align-items: start;
}

.form-layout--single {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
    max-width: 100%;
}

.form-card,
.side-card {
    padding: 32px 34px;
}

.form-card .chip {
    margin-bottom: 4px;
}

.form-card .section-title {
    letter-spacing: -0.03em;
}

.form-card .section-copy {
    margin-bottom: 4px;
}

@media (prefers-reduced-motion: no-preference) {
    html.motion-on .form-card > .chip {
        animation: fade-up 0.5s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both;
    }

    html.motion-on .form-card > .section-title {
        animation: fade-up 0.52s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 0.05s both;
    }

    html.motion-on .form-card > .section-copy {
        animation: fade-up 0.48s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 0.1s both;
    }

    html.motion-on .form-card > .message {
        animation: fade-up 0.45s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 0.08s both;
    }

    html.motion-on .form-card > .form-grid {
        animation: fade-up 0.52s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 0.12s both;
    }
}

.side-card h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #18181b;
}

@media (prefers-reduced-motion: no-preference) {
    html.motion-on .side-card > h2 {
        animation: fade-up 0.5s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 0.06s both;
    }

    html.motion-on .side-card > .section-copy {
        animation: fade-up 0.48s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 0.1s both;
    }

    html.motion-on .side-card > .helper-list {
        animation: fade-up 0.52s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 0.14s both;
    }
}

.form-grid {
    display: grid;
    gap: 18px;
}

.form-grid--smart {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.75fr);
    align-items: start;
}

.field-group {
    display: grid;
    gap: 8px;
}

.field-group--wide {
    grid-column: 1 / -1;
}

.field-group label {
    font-weight: 600;
}

/* Honeypot antybot (pole ukryte przed ludźmi) */
.listing-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
}

.checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.helper-list {
    display: grid;
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.helper-list li {
    padding: 14px 16px;
    border-radius: 18px;
    background: #fafafa;
    border: 1px solid var(--border, #e4e4e7);
    transition:
        transform 0.25s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)),
        border-color 0.2s ease,
        box-shadow 0.25s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .helper-list li:hover {
        transform: translateX(4px);
        border-color: var(--border-strong, #d4d4d8);
        box-shadow: 0 8px 24px rgba(24, 24, 27, 0.06);
    }
}

.smart-card {
    position: sticky;
    top: 92px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid var(--border, #e4e4e7);
    box-shadow: 0 12px 36px rgba(24, 24, 27, 0.05);
    transition: box-shadow 0.3s ease, border-color 0.2s ease;
}

.smart-card:hover {
    box-shadow: 0 16px 44px rgba(24, 24, 27, 0.08);
}

.smart-card h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.smart-card__line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border, #e4e4e7);
    color: var(--muted);
    font-size: 14px;
}

.smart-card__line strong {
    color: var(--text);
}

.smart-card__line:last-child {
    border-bottom: 0;
}

.smart-card__list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.smart-card__item {
    padding: 12px 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--border, #e4e4e7);
    transition: border-color 0.2s ease;
}

.smart-card__item strong {
    display: block;
    margin-bottom: 4px;
}

.smart-card__hint {
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.smart-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(24, 24, 27, 0.06);
    color: #27272a;
    font-size: 13px;
    margin-top: 8px;
}

.smart-pill--entity {
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
    font-weight: 600;
}

.intent-intents {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 6px 0 4px;
}

.intent-intents__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.intent-intents__row--secondary {
    opacity: 0.92;
}

.intent-intents__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #71717a;
    min-width: 5.5rem;
}

.intent-intent {
    border: 1px solid var(--border, #e4e4e7);
    background: #fff;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
    color: #27272a;
    cursor: pointer;
}

.intent-intent--ghost {
    font-weight: 500;
    background: #fafafa;
}

.intent-intent.is-active {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
    color: #0f766e;
}

.smart-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.smart-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 2px;
}

.smart-pick {
    border: 1px solid var(--border, #e4e4e7);
    background: #fff;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    color: #27272a;
    cursor: pointer;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smart-pick.is-best {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
    font-weight: 600;
}

.subtle-button {
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    border: 1px solid var(--border-strong, #d4d4d8);
    box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
}

.subtle-button:hover {
    transform: translateY(-2px);
    border-color: #a1a1aa;
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.upload-preview__item,
.existing-gallery__item {
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    background: #fafafa;
    border: 1px solid var(--border, #e4e4e7);
    transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.upload-preview__item:hover,
.existing-gallery__item:hover {
    border-color: var(--border-strong, #d4d4d8);
    box-shadow: 0 8px 22px rgba(24, 24, 27, 0.06);
}

.upload-preview__item img,
.existing-gallery__item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
}

.upload-preview__item span,
.existing-gallery__item span {
    color: var(--muted);
    font-size: 13px;
    word-break: break-word;
}

.existing-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.existing-gallery__item {
    cursor: pointer;
}

.existing-gallery__item input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.add-form-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 640px;
}

.add-form-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
}

.add-form-submit {
    width: fit-content;
    min-width: 160px;
    margin-top: 4px;
}

.add-form-details {
    border: 1px solid var(--border, #e4e4e7);
    border-radius: 12px;
    padding: 10px 14px;
    background: #fafafa;
}

.add-form-details summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
    list-style-position: outside;
}

.add-form-details__inner {
    display: grid;
    gap: 14px;
    margin-top: 12px;
    padding-top: 4px;
}

.add-form-assistant {
    padding: 12px 16px;
}

.add-form-assistant summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
}

.add-form-assistant__aside {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.add-wizard {
    gap: 14px;
}

.add-wizard__progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.add-wizard__meter {
    height: 7px;
    border-radius: 999px;
    background: #ececf1;
    overflow: hidden;
}

.add-wizard__meter-fill {
    display: block;
    width: 16%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #18181b 0%, #0f766e 100%);
    transition: width .22s ease;
}

.add-wizard__momentum {
    margin: 2px 0 4px;
    color: #52525b;
    font-size: 13px;
    line-height: 1.4;
}

.add-wizard__step-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--border, #e4e4e7);
    background: #fff;
    color: #71717a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.add-wizard__step-dot.is-active {
    border-color: #18181b;
    color: #18181b;
}

.add-wizard__step-dot.is-done {
    border-color: #0f766e;
    color: #0f766e;
}

.add-wizard__panel {
    display: none;
    gap: 12px;
}

.add-wizard__panel.is-active {
    display: grid;
}

.add-wizard__title {
    margin: 2px 0 2px;
    font-size: 1.12rem;
}

.add-wizard__actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}

.add-step-suggestion {
    padding: 14px 16px;
    border-radius: 16px;
}

.add-wizard__preview {
    padding: 14px 16px;
    border-radius: 16px;
    display: grid;
    gap: 10px;
}

.add-wizard__celebration {
    margin: 0;
    font-weight: 600;
}

.add-wizard__market-hitline {
    margin: -4px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: #3f3f46;
}

.add-wizard__market-feed {
    margin: 6px 0 0;
    padding: 10px 10px 4px;
    border: 1px solid var(--border, #e4e4e7);
    border-radius: 12px;
    background: #fcfcfd;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.add-wizard__market-feed-label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #71717a;
}

.add-wizard__market-strip {
    display: flex;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding: 4px 2px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.add-wizard__feed-card {
    flex: 0 0 auto;
    width: clamp(168px, 20vw, 230px);
    min-width: 168px;
    max-width: 230px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border, #e4e4e7);
    background: #fff;
    scroll-snap-align: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.add-wizard__feed-card--ghost {
    opacity: 0.78;
}

.add-wizard__feed-card--yours {
    width: clamp(220px, 26vw, 300px);
    min-width: 220px;
    max-width: 300px;
    z-index: 1;
    border-color: #0f766e;
    box-shadow: 0 8px 22px rgba(15, 118, 110, 0.18), 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.add-wizard__feed-card__media {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #e4e4e7 0%, #f4f4f5 50%, #d4d4d8 100%);
}

.add-wizard__feed-card__media--live {
    position: relative;
    background: #e4e4e7;
}

.add-wizard__feed-card__media--live img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.add-wizard__feed-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 9, 11, .06) 18%, rgba(9, 9, 11, .48) 100%);
}

.add-wizard__feed-badges {
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 7px;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.add-wizard__feed-badge {
    background: rgba(255, 255, 255, .95);
    color: #27272a;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 999px;
    padding: 3px 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 72%;
}

.add-wizard__feed-badge--primary {
    margin-left: auto;
    background: #0f766e;
    color: #fff;
    font-size: 10px;
    max-width: 46%;
}

.add-wizard__feed-card__body {
    padding: 8px 9px 10px;
    display: grid;
    gap: 3px;
}

.add-wizard__feed-card--ghost .add-wizard__feed-card__body {
    padding-top: 7px;
}

.add-wizard__feed-card__title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.add-wizard__feed-card__price {
    font-size: 14px;
    font-weight: 700;
    color: #18181b;
}

.add-wizard__feed-card__meta {
    margin: 0;
    font-size: 10px;
    color: #71717a;
    display: flex;
    align-items: center;
    gap: 4px;
}

.add-wizard__feed-sep {
    opacity: .8;
}

.add-wizard__feed-card--ghost .add-wizard__feed-card__title {
    font-weight: 500;
    color: #52525b;
}

.add-wizard__preview-details {
    margin: 2px 0 0;
}

.add-wizard__preview-details summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #52525b;
}

@media (max-width: 900px) {
    .add-wizard__market-feed {
        padding: 8px 8px 2px;
    }

    .add-wizard__feed-card {
        width: 168px;
        min-width: 168px;
        max-width: 168px;
    }

    .add-wizard__feed-card--yours {
        width: 228px;
        min-width: 228px;
        max-width: 228px;
    }
}

.add-wizard__preview-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    border-bottom: 1px dashed var(--border, #e4e4e7);
    padding-bottom: 8px;
}

.add-wizard__preview-line:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.add-wizard__preview-line span {
    color: var(--muted);
    font-size: 13px;
}

.add-wizard__preview-line strong {
    text-align: right;
    font-size: 14px;
    max-width: 70%;
    line-height: 1.35;
}

.add-wizard__buyer-card {
    display: grid;
    gap: 0;
    overflow: hidden;
    padding: 0;
    border-radius: 14px;
}

.add-wizard__buyer-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #e4e4e7;
}

.add-wizard__buyer-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.add-wizard__buyer-media .listing-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 9, 11, .08) 18%, rgba(9, 9, 11, .52) 100%);
}

.add-wizard__buyer-media .listing-card__badges {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.add-wizard__buyer-media .badge--on-photo {
    background: rgba(255, 255, 255, .95);
    color: #27272a;
    font-size: 11px;
    border-radius: 999px;
    padding: 4px 8px;
}

.add-wizard__buyer-media .badge--premium {
    margin-left: auto;
    background: #18181b;
    color: #fff;
}

.add-wizard__buyer-body {
    padding: 10px 12px 12px;
}

.add-wizard__buyer-body h3 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.35;
}

.add-wizard__buyer-price {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.add-wizard__buyer-meta {
    margin: 0;
    color: #71717a;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.staff-placement-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-weight: 500;
    color: #3f3f46;
}

@media (max-width: 900px) {
    .form-layout {
        grid-template-columns: 1fr;
    }

    .form-grid--smart {
        grid-template-columns: 1fr;
    }

    .smart-card {
        position: static;
    }
}

.company-nip-autofill--ok {
    color: #166534;
    font-size: 13px;
    margin: 0 0 0 2px;
}

.company-nip-autofill--warn {
    color: #9a3412;
    font-size: 13px;
    margin: 0 0 0 2px;
}
