.qwen-public h1,
.qwen-public h2,
.qwen-public h3 {
    line-height: 1.45;
    text-wrap: balance;
}

.qwen-public figure,
.qwen-public__figure,
.qwen-reference-proof__inputs,
.qwen-reference-proof__result,
.qwen-regeneration-proof,
.qwen-scene-proof {
    min-width: 0;
    margin: 0;
}

.qwen-public img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: var(--border-soft);
    border-radius: 0.8rem;
    background: var(--color-panel);
}

.qwen-image-link {
    display: block;
    min-width: 0;
    border-radius: 0.8rem;
}

.qwen-image-link:focus-visible {
    outline: 3px solid var(--color-primary-dark);
    outline-offset: 3px;
}

.qwen-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}

.qwen-hero__copy,
.qwen-hero__visual,
.qwen-feature-proof,
.qwen-reference-proof,
.qwen-regeneration-proof,
.qwen-scene-proof {
    min-width: 0;
}

.qwen-hero__copy {
    max-width: 58rem;
    margin-inline: 0;
    margin-bottom: 1.5rem;
}

.qwen-public--hero h1 {
    font-size: clamp(2rem, 3.5vw, 3.25rem);
}

.qwen-hero__visual {
    width: 100%;
    max-width: none;
    margin: 0;
}

.qwen-hero__image {
    aspect-ratio: 1;
    object-fit: contain;
}

.qwen-hero__cta {
    min-width: min(100%, 16rem);
    text-align: center;
}

.qwen-hero__cta:focus-visible {
    outline: 3px solid var(--color-primary-dark);
    outline-offset: 3px;
}

.qwen-style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.qwen-style-tags span {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    border: var(--border-soft);
    border-radius: 999px;
    color: var(--color-ink);
    background: var(--color-panel);
    font-size: 0.76rem;
    line-height: 1.3;
}

.qwen-image-meta {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82em;
    font-weight: 400;
}

.qwen-hero__visual figcaption,
.qwen-feature-proof figcaption,
.qwen-reference-proof figcaption,
.qwen-regeneration-proof figcaption,
.qwen-scene-proof figcaption {
    margin-top: 0.55rem;
    color: var(--color-copy);
    font-size: 0.86rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.qwen-hero__visual figcaption strong,
.qwen-reference-proof__result figcaption,
.qwen-scene-proof figcaption {
    color: var(--color-ink);
    font-weight: 700;
}

.qwen-public figcaption > span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82em;
    font-weight: 400;
}

.qwen-feature-proof,
.qwen-reference-proof,
.qwen-regeneration-proof,
.qwen-scene-proof {
    margin-top: 1.15rem;
}

.qwen-public .qwen-feature-proof--type {
    width: min(100%, 24rem);
    margin-inline: auto;
}

.qwen-public--features > .public-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.qwen-public--features > .public-grid > article:nth-child(1),
.qwen-public--features > .public-grid > article:nth-child(2) {
    grid-column: span 3;
}

.qwen-public--features > .public-grid > article:nth-child(n + 3) {
    grid-column: span 2;
}

.qwen-reference-proof,
.qwen-regeneration-proof {
    padding: 0.9rem;
    border: var(--border-soft);
    border-radius: 0.75rem;
    background: var(--color-panel);
}

.qwen-reference-proof__inputs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.qwen-reference-proof__inputs figure,
.qwen-regeneration-proof figure,
.qwen-scene-proof figure {
    min-width: 0;
    margin: 0;
}

.qwen-reference-proof__inputs img {
    aspect-ratio: 1;
    object-fit: cover;
}

.qwen-reference-proof__inputs figcaption,
.qwen-regeneration-proof figcaption {
    margin-top: 0.3rem;
    font-size: 0.76rem;
}

.qwen-reference-proof__result {
    margin-top: 0.8rem;
}

.qwen-reference-proof__arrow {
    display: block;
    width: fit-content;
    margin: 0.65rem auto;
    color: var(--color-primary-dark);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}

.qwen-reference-proof__result img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.qwen-regeneration-proof {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
}

.qwen-regeneration-proof img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.qwen-regeneration-proof__arrow {
    color: var(--color-primary-dark);
    font-size: 1.35rem;
    font-weight: 800;
}

.qwen-format-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.qwen-format-proof span {
    padding: 0.45rem 0.7rem;
    border: var(--border-soft);
    border-radius: 0.5rem;
    color: var(--color-ink);
    background: var(--color-panel);
    font-size: 0.84rem;
    font-weight: 800;
}

.qwen-public--scenes > .public-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qwen-scene-proof img {
    border-radius: 0.65rem;
}

.qwen-public--specs dd {
    min-width: 0;
}

.qwen-ratio-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin-top: 0.9rem;
}

.qwen-ratio-proof__item {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    min-width: 2.5rem;
    color: var(--color-copy);
    font-size: 0.78rem;
    line-height: 1.3;
}

.qwen-ratio-proof__shape {
    display: block;
    width: 3rem;
    max-width: 100%;
    border: 2px solid var(--color-primary-dark);
    background: transparent;
}

.qwen-ratio-proof__shape--square {
    aspect-ratio: 1;
}

.qwen-ratio-proof__shape--portrait {
    width: 2.4rem;
    aspect-ratio: 4 / 5;
}

.qwen-ratio-proof__shape--landscape {
    aspect-ratio: 3 / 2;
}

.qwen-ratio-proof__shape--wide {
    aspect-ratio: 16 / 9;
}

.qwen-hero-tool {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.25rem;
    padding: 1rem;
    border: var(--border-soft);
    border-radius: 1rem;
    background: var(--color-panel);
}

.qwen-hero__layout > .qwen-hero-tool {
    margin-top: 0;
}

.qwen-hero-tool__preview,
.qwen-hero-tool__field,
.qwen-hero-tool__upload {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.qwen-hero-tool__preview label,
.qwen-hero-tool__label {
    color: var(--color-ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.qwen-hero-tool__preview textarea,
.qwen-hero-tool__field select,
.qwen-hero-tool__upload input[type="file"] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: var(--border-soft);
    border-radius: 0.55rem;
    color: var(--color-ink);
    background: var(--color-panel);
    font: inherit;
}

.qwen-hero-tool__preview textarea {
    min-height: 5.5rem;
    padding: 0.7rem;
    resize: vertical;
}

.qwen-hero-tool__field select {
    min-height: 2.4rem;
    padding: 0.45rem 0.6rem;
}

.qwen-hero-tool__settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.qwen-hero-tool__field--model {
    align-content: center;
    min-height: 2.4rem;
    padding: 0.45rem 0.6rem;
    box-sizing: border-box;
    border: var(--border-soft);
    border-radius: 0.55rem;
    background: var(--color-panel);
}

.qwen-hero-tool__field--model strong {
    overflow-wrap: anywhere;
}

.qwen-hero-tool__details {
    padding: 0.7rem 0.8rem;
    border: var(--border-soft);
    border-radius: 0.65rem;
    background: var(--color-panel);
}

.qwen-hero-tool__details summary {
    cursor: pointer;
    color: var(--color-ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.qwen-hero-tool__upload {
    margin-top: 0.7rem;
}

.qwen-hero-tool__upload input[type="file"] {
    padding: 0.4rem;
    font-size: 0.8rem;
}

.qwen-hero-tool__upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.qwen-hero-tool__hint {
    display: block;
    margin: 0.4rem 0 0;
    color: var(--color-copy);
    font-size: 0.78rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.qwen-hero-tool__start {
    display: grid;
    gap: 0.45rem;
    margin: 0;
}

.qwen-hero-tool__start .qwen-hero__cta {
    width: 100%;
}

@media (max-width: 820px) {
    .qwen-hero__layout {
        grid-template-columns: 1fr;
    }

    .qwen-public--features > .public-grid,
    .qwen-public--scenes > .public-grid {
        grid-template-columns: 1fr;
    }

    .qwen-public--features > .public-grid > article:nth-child(n) {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .qwen-reference-proof__inputs {
        gap: 0.35rem;
    }

    .qwen-reference-proof__inputs figcaption {
        font-size: 0.7rem;
    }

    .qwen-ratio-proof {
        gap: 0.65rem 0.8rem;
    }
}

@media (max-width: 560px) {
    .qwen-hero-tool__settings,
    .qwen-hero-tool__upload-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
