.prompt-catalog-shell {
    gap: 22px;
}

.prompt-catalog-hero {
    display: grid;
    gap: 20px;
}

.prompt-breadcrumbs .breadcrumb {
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.prompt-breadcrumbs .breadcrumb-item,
.prompt-breadcrumbs .breadcrumb-item a {
    color: var(--front-muted-strong);
    font-size: 0.88rem;
}

.prompt-breadcrumbs .breadcrumb-item.active {
    color: var(--front-primary);
    font-weight: 700;
}

.prompt-catalog-hero__copy {
    display: grid;
    gap: 10px;
}

.prompt-catalog-hero__category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 24px;
    align-items: start;
}

.prompt-catalog-hero__category-layout--single {
    grid-template-columns: minmax(0, 1fr);
}

.prompt-catalog-hero__category-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.prompt-catalog-hero__type,
.prompt-catalog-hero__count {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(101, 87, 246, 0.14);
    background: #faf9ff;
    color: var(--front-muted-strong);
    font-size: 0.82rem;
    font-weight: 700;
}

.prompt-catalog-hero__type {
    color: var(--front-primary);
}

.prompt-catalog-hero__media {
    width: 100%;
    max-width: 320px;
    justify-self: end;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(207, 203, 236, 0.88);
    background: radial-gradient(circle at top, rgba(101, 87, 246, 0.08), rgba(101, 87, 246, 0) 62%), #f7f5ff;
}

.prompt-catalog-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.prompt-category-context {
    display: grid;
    gap: 14px;
}

.prompt-category-context__header {
    display: grid;
    gap: 6px;
}

.prompt-category-context__title {
    margin: 0;
    color: var(--front-text);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
}

.prompt-category-context__description {
    margin: 0;
    max-width: 840px;
    color: var(--front-muted-strong);
    font-size: 0.95rem;
    line-height: 1.65;
}

.prompt-category-nav {
    display: grid;
    gap: 10px;
}

.prompt-category-nav__scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
}

.prompt-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(101, 87, 246, 0.14);
    background: #fff;
    color: var(--front-muted-strong);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.prompt-category-chip:hover,
.prompt-category-chip:focus-visible {
    border-color: rgba(101, 87, 246, 0.35);
    color: var(--front-primary);
    background: #faf9ff;
}

.prompt-category-chip.is-active {
    border-color: rgba(101, 87, 246, 0.38);
    background: linear-gradient(180deg, rgba(101, 87, 246, 0.12), rgba(101, 87, 246, 0.18));
    color: var(--front-primary);
}

.prompt-category-nav--compact .prompt-category-chip {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 0.88rem;
}

.prompt-filter-card {
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(207, 203, 236, 0.9);
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, #fcfbff);
}

.prompt-filter-card__search,
.prompt-filter-group {
    min-width: 0;
}

.prompt-filter-group {
    display: grid;
    gap: 8px;
    align-content: start;
}

.prompt-filter-group .form-label {
    margin: 0;
    min-height: 22px;
    color: var(--front-text);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
}

.prompt-search-control {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.prompt-search-control .prompt-filter-field {
    flex: 1 1 auto;
    min-width: 0;
}

.prompt-search-control__button {
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: static;
    transform: none;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.prompt-search-control__button:hover,
.prompt-search-control__button:focus,
.prompt-search-control__button:focus-visible,
.prompt-search-control__button:active {
    width: 56px;
    min-width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    transform: none;
}

.prompt-filter-card__topline,
.prompt-filter-card__bottomline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 18px;
    align-items: end;
}

.prompt-filter-card__search {
    flex: 1 1 auto;
    min-width: 280px;
}

.prompt-filter-group--tag {
    flex: 0 0 210px;
}

.prompt-filter-group--sort {
    flex: 0 0 220px;
}

.prompt-filter-group--type {
    flex: 0 0 auto;
}

.prompt-filter-field,
.prompt-filter-select {
    width: 100%;
    min-height: 56px;
    height: 56px;
    padding: 0.875rem 1rem;
    border-radius: 16px;
    font-size: 0.96rem;
    line-height: 1.4;
}

.prompt-type-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.prompt-type-toggle__item {
    position: relative;
    cursor: pointer;
}

.prompt-type-toggle__item input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.prompt-type-toggle__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(101, 87, 246, 0.14);
    background: #fff;
    color: var(--front-muted-strong);
    font-size: 0.9rem;
    font-weight: 700;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.prompt-type-toggle__item input:checked + span {
    border-color: rgba(101, 87, 246, 0.38);
    background: linear-gradient(180deg, rgba(101, 87, 246, 0.12), rgba(101, 87, 246, 0.18));
    color: var(--front-primary);
}

.prompt-type-toggle__item input:focus-visible + span {
    outline: 2px solid rgba(101, 87, 246, 0.35);
    outline-offset: 2px;
}

.prompt-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    flex: 0 0 auto;
    margin-left: auto;
}

.prompt-filter-actions__reset,
.prompt-results__reset-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--front-primary);
    font-weight: 700;
    text-decoration: none;
}

.prompt-filter-actions__reset:hover,
.prompt-results__reset-link:hover {
    color: var(--front-primary-strong);
}

.prompt-results {
    display: grid;
    gap: 20px;
}

.prompt-results__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.prompt-results__head h2 {
    margin: 0 0 6px;
}

.prompt-results__count {
    margin: 0;
    color: var(--front-muted-strong);
    font-size: 0.95rem;
    line-height: 1.6;
}

.prompt-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(207, 203, 236, 0.95);
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, #faf9ff);
    box-shadow: 0 10px 24px rgba(69, 58, 136, 0.04);
    overflow: hidden;
}

.prompt-card__figure {
    border-bottom: 1px solid rgba(207, 203, 236, 0.85);
}

.prompt-card__media {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(101, 87, 246, 0.08), rgba(101, 87, 246, 0) 62%), #f7f5ff;
}

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

.prompt-card__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
}

.prompt-card__placeholder i {
    color: var(--front-primary);
    font-size: 2.2rem;
    line-height: 1;
}

.prompt-card__placeholder span {
    color: var(--front-text);
    font-size: 0.96rem;
    font-weight: 800;
}

.prompt-card__placeholder small {
    color: var(--front-muted-strong);
    font-size: 0.84rem;
    line-height: 1.5;
}

.prompt-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 18px 18px 20px;
}

.prompt-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.prompt-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prompt-card__badge--create {
    background: rgba(101, 87, 246, 0.11);
    color: var(--front-primary);
}

.prompt-card__badge--edit {
    background: rgba(38, 112, 255, 0.1);
    color: #3a63d9;
}

.prompt-card__category {
    color: var(--front-muted-strong);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

.prompt-card__category:hover {
    color: var(--front-primary);
}

.prompt-card__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
}

.prompt-card__title a {
    color: var(--front-text);
    text-decoration: none;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.prompt-card__title a:hover {
    color: var(--front-primary);
}

.prompt-card__description {
    margin: 0;
    color: var(--front-muted-strong);
    font-size: 0.94rem;
    line-height: 1.65;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.prompt-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prompt-card__tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f4f2ff;
    color: var(--front-primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.prompt-empty-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 34px 24px;
    border: 1px dashed rgba(101, 87, 246, 0.22);
    border-radius: 20px;
    background: #faf9ff;
    text-align: center;
}

.prompt-empty-state i {
    color: var(--front-primary);
    font-size: 2rem;
}

.prompt-empty-state strong {
    color: var(--front-text);
    font-size: 1.05rem;
}

.prompt-empty-state p {
    max-width: 560px;
    margin: 0;
    color: var(--front-muted-strong);
    line-height: 1.7;
}

.prompt-pagination {
    padding-top: 8px;
}

.prompt-pagination .pagination {
    gap: 8px;
}

.prompt-pagination .page-item .page-link {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border-color: rgba(101, 87, 246, 0.14);
    color: var(--front-muted-strong);
}

.prompt-pagination .page-item.active .page-link {
    background: linear-gradient(180deg, #6a5ef6, #5947f2);
    border-color: #6a5ef6;
}

.prompt-info {
    display: grid;
    gap: 58px;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding-top: 18px;
}

.prompt-info__intro,
.prompt-info__section,
.prompt-info__copy-block {
    display: grid;
    gap: 18px;
}

.prompt-info__section + .prompt-info__section,
.prompt-info__callout {
    padding-top: 0;
}

.prompt-info__intro h2,
.prompt-info__section h2,
.prompt-info__callout h2 {
    margin: 0;
    color: var(--front-text);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
}

.prompt-info__copy {
    display: grid;
    gap: 14px;
    max-width: 980px;
}

.prompt-info__copy p,
.prompt-info__compare-item p,
.prompt-info__step p,
.prompt-info__callout p {
    margin: 0;
    color: var(--front-muted-strong);
    font-size: 0.99rem;
    line-height: 1.72;
}

.prompt-info__compare,
.prompt-info__steps {
    display: grid;
    gap: 0;
}

.prompt-info__compare {
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
    align-items: start;
}

.prompt-info__compare::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 50%;
    width: 1px;
    background: rgba(207, 203, 236, 0.9);
    transform: translateX(-0.5px);
}

.prompt-info__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 28px 32px;
    border: 1px solid rgba(207, 203, 236, 0.82);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(249, 246, 255, 0.9), rgba(252, 250, 255, 0.96));
}

.prompt-info__compare-item,
.prompt-info__step {
    display: grid;
    gap: 12px;
    padding: 0;
}

.prompt-info__step + .prompt-info__step {
    border-left: 1px solid rgba(207, 203, 236, 0.85);
    padding-left: 28px;
    margin-left: 28px;
}

.prompt-info__icon,
.prompt-info__callout-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(101, 87, 246, 0.1);
    color: var(--front-primary);
    font-size: 1.1rem;
    box-shadow: none;
}

.prompt-info__compare-item > .prompt-info__icon + h3,
.prompt-info__step > .prompt-info__step-number + h3 {
    margin-top: 2px;
}

.prompt-info__compare-item h3,
.prompt-info__step h3 {
    margin: 0;
    color: var(--front-text);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
}

.prompt-info__compare-item a,
.prompt-info__callout a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--front-primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.prompt-info__compare-item a:hover,
.prompt-info__callout a:hover {
    color: var(--front-primary-strong);
}

.prompt-info__step {
    gap: 12px;
}

.prompt-info__step-number {
    display: inline-block;
    color: var(--front-primary);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
}

.prompt-info__callout {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px 18px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(249, 246, 255, 0.9);
    border: 1px solid rgba(207, 203, 236, 0.86);
}

.prompt-info__callout-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 18px;
    align-items: center;
}

.prompt-info__callout-copy h2 {
    grid-column: 1;
    font-size: 1.12rem;
}

.prompt-info__callout-copy p {
    grid-column: 1;
}

.prompt-info__callout-copy a {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    align-self: center;
}

.prompt-catalog-cta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.prompt-catalog-cta__icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(101, 87, 246, 0.12), rgba(101, 87, 246, 0.2));
    color: var(--front-primary);
    font-size: 1.8rem;
}

.prompt-catalog-cta__copy {
    min-width: 0;
}

.prompt-catalog-cta__copy h2 {
    margin: 0 0 8px;
}

.prompt-catalog-cta__copy p {
    margin: 0;
}

.prompt-catalog-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.prompt-editorial {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding-top: 8px;
}

.prompt-editorial__inner {
    max-width: 1080px;
    display: grid;
    gap: 28px;
}

.prompt-editorial__article {
    display: grid;
    gap: 20px;
}

.prompt-editorial__article > h2,
.prompt-editorial__article > h3,
.prompt-editorial__article > p,
.prompt-editorial__article > ul:not(.pc-content-feature-list),
.prompt-editorial__article > ol:not(.pc-content-steps),
.prompt-editorial__article > blockquote,
.prompt-editorial__article > .pc-content-lead {
    max-width: 980px;
}

.prompt-editorial__article > *:first-child {
    margin-top: 0;
}

.prompt-editorial__article > *:last-child {
    margin-bottom: 0;
}

.prompt-editorial__article h2,
.prompt-editorial__article h3 {
    margin: 0;
    color: var(--front-text);
    font-weight: 800;
    line-height: 1.25;
}

.prompt-editorial__article h2 {
    font-size: 1.55rem;
    margin-top: 34px;
}

.prompt-editorial__article h3 {
    font-size: 1.14rem;
    margin-top: 12px;
}

.prompt-editorial__article > h2 + p,
.prompt-editorial__article > h2 + ul:not(.pc-content-feature-list),
.prompt-editorial__article > h2 + ol:not(.pc-content-steps),
.prompt-editorial__article > h2 + blockquote,
.prompt-editorial__article > h2 + .pc-content-lead,
.prompt-editorial__article > h2 + .pc-content-note,
.prompt-editorial__article > h2 + .pc-content-grid,
.prompt-editorial__article > h2 + .pc-content-feature-list,
.prompt-editorial__article > h2 + .pc-content-steps,
.prompt-editorial__article > h2 + .pc-content-highlight,
.prompt-editorial__article > h2 + .pc-content-links,
.prompt-editorial__article > h3 + p,
.prompt-editorial__article > h3 + ul:not(.pc-content-feature-list),
.prompt-editorial__article > h3 + ol:not(.pc-content-steps),
.prompt-editorial__article > h3 + blockquote {
    margin-top: -6px;
}

.prompt-editorial__article p,
.prompt-editorial__article ul,
.prompt-editorial__article ol,
.prompt-editorial__article blockquote {
    margin: 0;
    color: rgba(29, 33, 64, 0.8);
    font-size: 1.07rem;
    line-height: 1.72;
}

.prompt-editorial__article ul,
.prompt-editorial__article ol {
    padding-left: 1.35rem;
}

.prompt-editorial__article li + li {
    margin-top: 0.45rem;
}

.prompt-editorial__article a {
    color: var(--front-primary);
    font-weight: 700;
    text-decoration: none;
}

.prompt-editorial__article a:hover {
    color: var(--front-primary-strong);
}

.prompt-editorial__article strong {
    color: var(--front-text);
}

.prompt-editorial__article blockquote {
    padding-left: 18px;
    border-left: 3px solid rgba(101, 87, 246, 0.22);
}

.prompt-editorial__article .pc-content-lead {
    position: relative;
    padding-left: 24px;
    border-left: 3px solid rgba(101, 87, 246, 0.24);
    color: var(--front-text);
    font-size: 1.13rem;
    font-weight: 500;
    line-height: 1.78;
}

.prompt-editorial__article .pc-content-note {
    position: relative;
    padding: 16px 20px 16px 70px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(249, 246, 255, 0.92), rgba(252, 250, 255, 0.98));
    border-left: 3px solid rgba(101, 87, 246, 0.36);
}

.prompt-editorial__article .pc-content-note::before {
    content: "i";
    position: absolute;
    left: 20px;
    top: 16px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(101, 87, 246, 0.1);
    color: var(--front-primary);
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1;
}

.prompt-editorial__article .pc-content-highlight {
    position: relative;
    padding: 18px 22px 18px 58px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248, 245, 255, 0.98), rgba(244, 240, 255, 0.94));
    border: 1px solid rgba(101, 87, 246, 0.14);
    color: var(--front-text);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.68;
}

.prompt-editorial__article .pc-content-highlight::before {
    content: "✦";
    position: absolute;
    left: 20px;
    top: 20px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(101, 87, 246, 0.08);
    color: var(--front-primary);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.prompt-editorial__article .pc-content-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
    padding: 16px 0 0;
    border-top: 1px solid rgba(207, 203, 236, 0.82);
    background: none;
}

.prompt-editorial__article .pc-content-links strong {
    color: var(--front-text);
    margin-right: 4px;
}

.prompt-editorial__article .pc-content-links a {
    line-height: 1.5;
}

.prompt-editorial__article .pc-content-grid {
    display: grid;
    gap: 0;
    align-items: start;
}

.prompt-editorial__article .pc-content-grid > div {
    position: relative;
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 10px;
}

.prompt-editorial__article .pc-content-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 56px;
}

.prompt-editorial__article .pc-content-grid--2 > div + div {
    padding-left: 28px;
    border-left: 1px solid rgba(207, 203, 236, 0.86);
}

.prompt-editorial__article .pc-content-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 42px;
    counter-reset: prompt-editorial-grid-block;
}

.prompt-editorial__article .pc-content-grid--3 > div {
    counter-increment: prompt-editorial-grid-block;
}

.prompt-editorial__article .pc-content-grid--3 > div::before {
    content: counter(prompt-editorial-grid-block, decimal-leading-zero);
    display: inline-block;
    margin-bottom: 2px;
    color: var(--front-primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1;
}

.prompt-editorial__article .pc-content-grid--3 > div + div {
    padding-left: 28px;
    border-left: 1px solid rgba(207, 203, 236, 0.82);
}

.prompt-editorial__article .pc-content-feature-list,
.prompt-editorial__article .pc-content-steps {
    list-style: none;
    padding-left: 0;
}

.prompt-editorial__article .pc-content-feature-list {
    display: grid;
    gap: 20px;
}

.prompt-editorial__article .pc-content-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(207, 203, 236, 0.58);
}

.prompt-editorial__article .pc-content-feature-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.prompt-editorial__article .pc-content-feature-list i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(101, 87, 246, 0.12), rgba(101, 87, 246, 0.06));
    color: var(--front-primary);
    font-size: 1rem;
}

.prompt-editorial__article .pc-content-feature-list li > div {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.prompt-editorial__article .pc-content-feature-list li > div p {
    font-size: 1.02rem;
    line-height: 1.7;
}

.prompt-editorial__article .pc-content-steps {
    counter-reset: prompt-editorial-step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px 22px;
    padding: 28px 30px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(249, 246, 255, 0.9), rgba(252, 250, 255, 0.96));
}

.prompt-editorial__article .pc-content-steps li {
    position: relative;
    display: grid;
    gap: 6px;
    margin-top: 0;
    padding-top: 34px;
    min-height: 0;
}

.prompt-editorial__article .pc-content-steps li::before {
    counter-increment: prompt-editorial-step;
    content: counter(prompt-editorial-step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--front-primary-strong);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    line-height: 1;
}

.prompt-editorial__article .pc-content-steps li::after {
    content: "";
    position: absolute;
    left: 48px;
    right: 0;
    top: 14px;
    height: 1px;
    background: rgba(207, 203, 236, 0.9);
}

.prompt-editorial__article .pc-content-divider {
    margin: 14px 0 6px;
    border: 0;
    border-top: 1px solid rgba(207, 203, 236, 0.85);
    opacity: 1;
}

.prompt-editorial__help .prompt-info__callout {
    margin: 0;
}

@media (max-width: 1199.98px) {
    .prompt-catalog-hero__category-layout {
        grid-template-columns: 1fr;
    }

    .prompt-catalog-hero__media {
        max-width: 100%;
        justify-self: start;
    }

    .prompt-filter-card__search {
        flex-basis: 100%;
    }

    .prompt-filter-group--tag,
    .prompt-filter-group--sort {
        flex: 1 1 220px;
        max-width: 280px;
    }

    .prompt-filter-actions {
        margin-left: 0;
    }

    .prompt-info {
        gap: 46px;
        max-width: 100%;
    }

    .prompt-info__compare {
        grid-template-columns: 1fr;
    }

    .prompt-info__compare::before {
        display: none;
    }

    .prompt-info__compare-item + .prompt-info__compare-item {
        border-top: 1px solid rgba(207, 203, 236, 0.85);
        padding-top: 24px;
        margin-top: 24px;
    }

    .prompt-info__steps {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .prompt-info__step + .prompt-info__step {
        border-left: 0;
        border-top: 1px solid rgba(207, 203, 236, 0.85);
        padding-left: 0;
        margin-left: 0;
        padding-top: 20px;
        margin-top: 20px;
    }

    .prompt-catalog-cta {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .prompt-catalog-cta__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .prompt-catalog-hero,
    .prompt-results,
    .prompt-info {
        gap: 18px;
    }

    .prompt-filter-card {
        padding: 18px;
    }

    .prompt-category-nav__scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .prompt-filter-card__topline,
    .prompt-filter-card__bottomline {
        gap: 14px;
    }

    .prompt-search-control {
        gap: 8px;
    }

    .prompt-filter-card__topline > *,
    .prompt-filter-card__bottomline > * {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .prompt-filter-actions {
        margin-left: 0;
        flex-wrap: wrap;
    }

    .prompt-type-toggle {
        width: 100%;
    }

    .prompt-type-toggle__item {
        flex: 1 1 0;
    }

    .prompt-type-toggle__item span {
        min-width: 0;
        width: 100%;
    }

    .prompt-results__head {
        align-items: flex-start;
    }

    .prompt-card__body {
        padding: 16px;
    }

    .prompt-info__intro h2,
    .prompt-info__section h2,
    .prompt-info__callout h2 {
        font-size: 1.34rem;
    }

    .prompt-info {
        padding-top: 8px;
    }

    .prompt-info__section {
        gap: 16px;
    }

    .prompt-info__callout {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .prompt-info__callout-copy {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .prompt-info__callout-copy a {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
    }

    .prompt-info__compare {
        gap: 28px;
    }

    .prompt-info__steps {
        padding: 20px 18px;
    }

    .prompt-catalog-hero__category-meta {
        gap: 8px;
    }

    .prompt-catalog-hero__type,
    .prompt-catalog-hero__count {
        min-height: 28px;
        padding: 0 10px;
    }

    .prompt-category-context {
        gap: 12px;
    }

    .prompt-editorial {
        padding-top: 0;
    }

    .prompt-editorial__article h2 {
        font-size: 1.34rem;
    }

    .prompt-editorial__article p,
    .prompt-editorial__article ul,
    .prompt-editorial__article ol,
    .prompt-editorial__article blockquote {
        font-size: 1rem;
        line-height: 1.7;
    }

    .prompt-editorial__article .pc-content-lead {
        font-size: 1.08rem;
        line-height: 1.74;
    }

    .prompt-editorial__article .pc-content-grid--2,
    .prompt-editorial__article .pc-content-grid--3 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .prompt-editorial__article .pc-content-grid--2 > div + div,
    .prompt-editorial__article .pc-content-grid--3 > div + div {
        margin-top: 18px;
        padding-top: 18px;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(207, 203, 236, 0.82);
    }

    .prompt-editorial__article .pc-content-steps {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0;
        border-radius: 0;
        background: none;
    }

    .prompt-editorial__article .pc-content-steps li {
        padding-top: 0;
        padding-left: 56px;
        min-height: 52px;
    }

    .prompt-editorial__article .pc-content-steps li::after {
        left: 24px;
        right: auto;
        top: 22px;
        bottom: -18px;
        width: 1px;
        height: auto;
    }

    .prompt-editorial__article .pc-content-steps li:last-child::after {
        display: none;
    }

    .prompt-editorial__article .pc-content-links {
        align-items: flex-start;
        gap: 8px 14px;
    }

    .prompt-editorial__article .pc-content-note,
    .prompt-editorial__article .pc-content-highlight {
        padding-left: 20px;
    }

    .prompt-editorial__article .pc-content-note::before,
    .prompt-editorial__article .pc-content-highlight::before {
        position: static;
        margin-bottom: 12px;
    }

    .prompt-pagination .pagination {
        justify-content: flex-start !important;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .prompt-editorial__article .pc-content-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Prompt detail page */
.prompt-detail-page {
    padding: 20px 0 56px;
}

.prompt-detail-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 26px;
}

.prompt-detail-preview-notice {
    margin: 0;
    border-radius: 18px;
}

.prompt-detail-hero {
    display: grid;
    gap: 14px;
}

.prompt-detail-hero__copy {
    display: grid;
    gap: 8px;
}

.prompt-detail-hero__eyebrow {
    display: inline-flex;
    align-self: start;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(101, 87, 246, 0.1), rgba(101, 87, 246, 0.16));
    color: var(--front-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.prompt-detail-hero h1 {
    margin: 0;
    color: var(--front-text);
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.05em;
    max-width: 860px;
}

.prompt-detail-hero__lead {
    margin: 0;
    max-width: 820px;
    color: var(--front-muted-strong);
    font-size: 1.05rem;
    line-height: 1.72;
}

.prompt-detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.prompt-detail-meta-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid rgba(207, 203, 236, 0.88);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #fcfbff);
    box-shadow: 0 12px 24px rgba(71, 51, 143, 0.04);
}

.prompt-detail-meta-card__icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(101, 87, 246, 0.1), rgba(101, 87, 246, 0.05));
    color: var(--front-primary);
    font-size: 1.15rem;
}

.prompt-detail-meta-card__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.prompt-detail-meta-card__copy span {
    color: var(--front-muted-strong);
    font-size: 0.82rem;
    line-height: 1.35;
}

.prompt-detail-meta-card__copy strong {
    color: var(--front-text);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
}

.prompt-detail-meta-card__copy small {
    color: var(--front-muted-strong);
    font-size: 0.83rem;
    line-height: 1.45;
}

.prompt-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
}

.prompt-detail-tags__label {
    color: var(--front-text);
    font-size: 0.92rem;
    font-weight: 800;
}

.prompt-detail-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prompt-detail-tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(101, 87, 246, 0.08);
    border: 1px solid rgba(101, 87, 246, 0.12);
    color: var(--front-primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.prompt-detail-tag:hover,
.prompt-detail-tag:focus-visible {
    color: var(--front-primary-strong);
    background: rgba(101, 87, 246, 0.14);
    border-color: rgba(101, 87, 246, 0.28);
    transform: translateY(-1px);
}

.prompt-detail-section {
    display: grid;
    gap: 18px;
}

.prompt-detail-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.prompt-detail-section__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(101, 87, 246, 0.08);
    color: var(--front-primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.prompt-detail-section__head h2 {
    margin: 6px 0 0;
    color: var(--front-text);
    font-size: 1.42rem;
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: -0.03em;
}

.prompt-detail-zoom-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.prompt-detail-section--media {
    padding: 22px;
    border: 1px solid rgba(207, 203, 236, 0.82);
    border-radius: 22px;
    background: linear-gradient(180deg, #fff, #fbfaff);
    box-shadow: 0 18px 40px rgba(71, 51, 143, 0.05);
}

.prompt-result-gallery,
.prompt-before-after-carousel {
    display: grid;
    gap: 16px;
}

.prompt-result-gallery__frame,
.prompt-before-after-slider {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(207, 203, 236, 0.82);
    border-radius: 20px;
    background: radial-gradient(circle at top, rgba(101, 87, 246, 0.08), rgba(101, 87, 246, 0) 60%), linear-gradient(180deg, #fdfcff, #f7f5ff);
    min-height: clamp(420px, 44vw, 640px);
}

.prompt-result-gallery__main {
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    min-height: inherit;
    padding: 18px;
    background: transparent;
    border: 0;
    cursor: zoom-in;
}

.prompt-detail-media-nav {
    position: absolute;
    top: 50%;
    z-index: 7;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(207, 203, 236, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--front-text);
    box-shadow: 0 10px 24px rgba(71, 51, 143, 0.1);
    transform: translateY(-50%);
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.prompt-detail-media-nav:hover,
.prompt-detail-media-nav:focus-visible {
    border-color: rgba(101, 87, 246, 0.4);
    color: var(--front-primary);
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 12px 28px rgba(101, 87, 246, 0.16);
}

.prompt-detail-media-nav--prev {
    left: 14px;
}

.prompt-detail-media-nav--next {
    right: 14px;
}

.prompt-detail-media-nav i {
    font-size: 1rem;
    line-height: 1;
}

.prompt-result-gallery--secondary {
    margin-top: 4px;
}

.prompt-detail-media-subheading h3 {
    margin: 0;
    color: var(--front-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.02em;
}

.prompt-result-gallery__main img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
}

.prompt-before-after-slider {
    min-height: clamp(460px, 48vw, 680px);
    --prompt-before-after-split: 50%;
}

.prompt-before-after-slider__stage {
    position: relative;
    min-height: inherit;
    overflow: hidden;
    border-radius: inherit;
    isolation: isolate;
}

.prompt-before-after-slider__panel {
    position: absolute;
    inset: 0;
    overflow: hidden;
    width: 100%;
    z-index: 1;
}

.prompt-before-after-slider__panel--after {
    clip-path: inset(0 calc(100% - var(--prompt-before-after-split)) 0 0);
    border-right: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 14px 0 24px rgba(101, 87, 246, 0.1);
    z-index: 2;
}

.prompt-before-after-slider__panel img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.prompt-before-after-slider__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(18, 20, 41, 0.64);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.prompt-before-after-slider__badge--before,
.prompt-before-after-slider__badge--after {
    pointer-events: none;
    z-index: 4;
}

.prompt-before-after-slider__badge--after {
    left: auto;
    right: 14px;
}

.prompt-before-after-slider__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--prompt-before-after-split);
    z-index: 5;
    width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: ew-resize;
    touch-action: none;
    transform: translateX(-1px);
}

.prompt-before-after-slider__handle::before,
.prompt-before-after-slider__handle::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
}

.prompt-before-after-slider__handle::before {
    width: 2px;
    height: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 1px rgba(101, 87, 246, 0.18), 0 0 0 8px rgba(255, 255, 255, 0.12);
}

.prompt-before-after-slider__handle::after {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(207, 203, 236, 0.9);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(71, 51, 143, 0.16);
    background-image: linear-gradient(90deg, transparent 0, transparent 46%, rgba(101, 87, 246, 0.8) 46%, rgba(101, 87, 246, 0.8) 54%, transparent 54%, transparent 100%);
}

.prompt-before-after-slider__handle:focus-visible::after {
    box-shadow: 0 0 0 4px rgba(101, 87, 246, 0.2), 0 14px 30px rgba(71, 51, 143, 0.16);
}

.prompt-result-gallery__zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(207, 203, 236, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--front-muted-strong);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(71, 51, 143, 0.08);
}

.prompt-result-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    justify-content: center;
}

.prompt-detail-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: stretch;
    justify-content: center;
    width: max-content;
    min-width: 100%;
    overflow-x: auto;
    padding-top: 2px;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(101, 87, 246, 0.38) rgba(207, 203, 236, 0.35);
}

.prompt-detail-thumbs::-webkit-scrollbar {
    height: 8px;
}

.prompt-detail-thumbs::-webkit-scrollbar-track {
    background: rgba(207, 203, 236, 0.35);
    border-radius: 999px;
}

.prompt-detail-thumbs::-webkit-scrollbar-thumb {
    background: rgba(101, 87, 246, 0.38);
    border-radius: 999px;
    border: 2px solid rgba(207, 203, 236, 0.35);
}

.prompt-result-gallery__thumb {
    position: relative;
    display: grid;
    gap: 8px;
    align-self: flex-start;
    width: clamp(112px, 11vw, 140px);
    min-width: clamp(112px, 11vw, 140px);
    padding: 10px;
    border: 1px solid rgba(207, 203, 236, 0.82);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(71, 51, 143, 0.04);
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.prompt-detail-thumb {
    position: relative;
    display: grid;
    gap: 8px;
    width: 220px;
    min-width: 220px;
    padding: 10px;
    border: 1px solid rgba(207, 203, 236, 0.82);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(71, 51, 143, 0.04);
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.prompt-detail-thumb {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.prompt-result-gallery__thumb:hover,
.prompt-result-gallery__thumb:focus-visible,
.prompt-detail-thumb:hover,
.prompt-detail-thumb:focus-visible {
    border-color: rgba(101, 87, 246, 0.52);
    box-shadow: 0 16px 30px rgba(101, 87, 246, 0.14);
    transform: translateY(-2px);
}

.prompt-result-gallery__thumb.is-active,
.prompt-detail-thumb.is-active {
    border-color: rgba(101, 87, 246, 0.52);
    box-shadow: 0 16px 30px rgba(101, 87, 246, 0.14);
    transform: none;
}

.prompt-result-gallery__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #f6f4ff;
}

.prompt-detail-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    background: #f6f4ff;
}

.prompt-detail-thumb__label,
.prompt-detail-thumb__index-badge {
    display: inline-flex;
    align-self: start;
    justify-self: start;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(101, 87, 246, 0.08);
    color: var(--front-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.prompt-detail-thumb__preview-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.prompt-detail-thumb__preview {
    display: grid;
    gap: 6px;
}

.prompt-detail-thumb__preview img {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    object-fit: cover;
}

.prompt-detail-thumb__preview-label {
    color: var(--front-muted-strong);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.prompt-detail-thumb__pair {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.prompt-detail-thumb__pair span {
    color: var(--front-muted-strong);
    font-size: 0.76rem;
    line-height: 1.35;
}

.prompt-detail-thumb__pair strong {
    color: var(--front-text);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.prompt-detail-media__caption {
    margin: 0;
    color: var(--front-muted-strong);
    font-size: 0.88rem;
    line-height: 1.55;
    text-align: center;
}

.prompt-detail-prompt-block,
.prompt-detail-variables,
.prompt-detail-instruction,
.prompt-detail-final-cta {
    padding: 22px;
    border: 1px solid rgba(207, 203, 236, 0.82);
    border-radius: 22px;
    background: linear-gradient(180deg, #fff, #fcfbff);
    box-shadow: 0 18px 40px rgba(71, 51, 143, 0.04);
}

.prompt-detail-related {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.prompt-detail-prompt-card {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(101, 87, 246, 0.05);
    border: 1px solid rgba(101, 87, 246, 0.12);
}

.prompt-detail-prompt-actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.prompt-detail-prompt-actions .btn {
    min-width: 220px;
}

.prompt-detail-prompt-card__text {
    margin: 0;
    color: var(--front-text);
    font-size: 0.96rem;
    line-height: 1.72;
    white-space: pre-wrap;
    word-break: break-word;
}

.prompt-detail-variables-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.prompt-detail-variables {
    gap: 24px;
    scroll-margin-top: 104px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.prompt-detail-variables.is-guided {
    border-color: rgba(101, 87, 246, 0.28);
    background: linear-gradient(180deg, #fff, #f7f4ff);
    box-shadow: 0 20px 44px rgba(101, 87, 246, 0.08);
}

.prompt-detail-form {
    display: grid;
    gap: 22px;
}

.prompt-detail-variable-card {
    padding: 16px 18px;
    border: 1px solid rgba(207, 203, 236, 0.82);
    border-radius: 18px;
    background: #fff;
}

.prompt-detail-variable-card .form-label {
    margin-bottom: 8px;
    color: var(--front-text);
    font-size: 0.88rem;
    font-weight: 800;
}

.prompt-detail-variable-input {
    min-height: 48px;
    border-radius: 14px;
    border-color: rgba(207, 203, 236, 0.9);
    background: #fff;
}

.prompt-detail-preview-card {
    display: grid;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(207, 203, 236, 0.82);
    background: rgba(101, 87, 246, 0.04);
}

.prompt-detail-preview-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.prompt-detail-preview-card__head h3,
.prompt-detail-instruction .prompt-detail-section__head h2 {
    margin: 6px 0 0;
    color: var(--front-text);
    font-size: 1.06rem;
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.prompt-detail-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.prompt-detail-preview-card__text {
    margin: 0;
    color: var(--front-text);
    font-size: 0.94rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.prompt-detail-form__actions {
    display: flex;
    justify-content: center;
    padding-top: 0;
}

.prompt-detail-media__secondary {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.prompt-detail-instruction__body,
.prompt-detail-content__article {
    color: var(--front-muted-strong);
    font-size: 0.98rem;
    line-height: 1.72;
}

.prompt-detail-related .row {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 14px;
}

.prompt-detail-related__single {
    width: min(100%, 360px);
    align-self: start;
}

.prompt-detail-final-cta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.prompt-detail-final-cta .prompt-catalog-cta__copy h2 {
    margin: 0 0 8px;
    color: var(--front-text);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.24;
}

.prompt-detail-lightbox[hidden] {
    display: none !important;
}

.prompt-detail-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(18, 20, 41, 0.82);
    backdrop-filter: blur(8px);
}

.prompt-detail-lightbox__backdrop {
    position: absolute;
    inset: 0;
}

.prompt-detail-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: calc(100vh - 40px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff, #fbfaff);
    box-shadow: 0 30px 70px rgba(10, 11, 31, 0.28);
}

.prompt-detail-lightbox__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(207, 203, 236, 0.82);
}

.prompt-detail-lightbox__title {
    color: var(--front-text);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.prompt-detail-lightbox__body {
    padding: 20px;
    overflow: auto;
    display: grid;
    place-items: center;
    gap: 14px;
}

.prompt-detail-lightbox__figure {
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
    position: relative;
}

.prompt-detail-lightbox__figure img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 220px);
    object-fit: contain;
    object-position: center;
    border-radius: 20px;
    background: #fff;
}

.prompt-detail-lightbox__label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(18, 20, 41, 0.68);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.prompt-detail-lightbox__caption {
    margin: 0;
    color: var(--front-muted-strong);
    font-size: 0.88rem;
    line-height: 1.55;
    text-align: center;
}

.prompt-detail-lightbox__pair {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.prompt-detail-lightbox__pair .prompt-detail-lightbox__figure img {
    max-height: calc(100vh - 240px);
}

@media (max-width: 1199.98px) {
    .prompt-detail-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prompt-detail-variables-grid {
        grid-template-columns: 1fr;
    }

    .prompt-detail-final-cta {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .prompt-detail-lightbox__pair {
        grid-template-columns: 1fr;
    }

    .prompt-detail-lightbox__dialog {
        width: min(100%, 720px);
    }
}

@media (max-width: 767.98px) {
    .prompt-detail-page {
        padding: 16px 0 40px;
    }

    .prompt-detail-shell {
        gap: 20px;
    }

    .prompt-detail-hero h1 {
        font-size: clamp(1.9rem, 8vw, 2.55rem);
    }

    .prompt-detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .prompt-detail-section__head {
        align-items: flex-start;
    }

    .prompt-detail-section--media,
    .prompt-detail-prompt-block,
    .prompt-detail-variables,
    .prompt-detail-instruction,
    .prompt-detail-final-cta {
        padding: 14px;
        border-radius: 20px;
    }

    .prompt-detail-related {
        padding: 0;
        border-radius: 0;
    }

    .prompt-detail-prompt-actions {
        justify-content: center;
    }

    .prompt-detail-prompt-actions .btn,
    .prompt-detail-form__actions .btn {
        width: 100%;
        min-width: 0;
    }

    .prompt-detail-prompt-actions .btn {
        width: auto;
        min-width: 220px;
    }

    .prompt-result-gallery__main {
        padding: 10px;
    }

    .prompt-detail-media-nav {
        width: 38px;
        height: 38px;
    }

    .prompt-detail-media-nav--prev {
        left: 10px;
    }

    .prompt-detail-media-nav--next {
        right: 10px;
    }

    .prompt-result-gallery__main img {
        max-height: 320px;
    }

    .prompt-before-after-slider {
        min-height: 280px;
    }

    .prompt-result-gallery__thumb,
    .prompt-detail-thumb {
        width: 160px;
        min-width: 160px;
    }

    .prompt-result-gallery--create .prompt-result-gallery__thumbs {
        display: flex;
        flex-wrap: nowrap;
        justify-content: safe center;
        width: 100%;
        max-width: 100%;
        overflow-x: scroll;
        overflow-y: hidden;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        scrollbar-color: rgba(101, 87, 246, 0.56) rgba(207, 203, 236, 0.38);
        scroll-snap-type: x proximity;
    }

    .prompt-result-gallery--create .prompt-result-gallery__thumbs::-webkit-scrollbar {
        height: 10px;
    }

    .prompt-result-gallery--create .prompt-result-gallery__thumbs::-webkit-scrollbar-track {
        background: rgba(207, 203, 236, 0.38);
        border-radius: 999px;
    }

    .prompt-result-gallery--create .prompt-result-gallery__thumbs::-webkit-scrollbar-thumb {
        background: rgba(101, 87, 246, 0.56);
        border-radius: 999px;
        border: 2px solid rgba(207, 203, 236, 0.38);
    }

    .prompt-result-gallery--create .prompt-result-gallery__thumb {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .prompt-detail-thumbs {
        width: 100%;
        max-width: 100%;
        overflow-x: scroll;
        overflow-y: hidden;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        scrollbar-color: rgba(101, 87, 246, 0.56) rgba(207, 203, 236, 0.38);
        scroll-snap-type: x proximity;
    }

    .prompt-detail-thumbs::-webkit-scrollbar {
        height: 10px;
    }

    .prompt-detail-thumbs::-webkit-scrollbar-track {
        background: rgba(207, 203, 236, 0.38);
        border-radius: 999px;
    }

    .prompt-detail-thumbs::-webkit-scrollbar-thumb {
        background: rgba(101, 87, 246, 0.56);
        border-radius: 999px;
        border: 2px solid rgba(207, 203, 236, 0.38);
    }

    .prompt-result-gallery--secondary .prompt-result-gallery__thumbs {
        display: flex;
        flex-wrap: nowrap;
        justify-content: safe center;
        width: 100%;
        max-width: 100%;
        overflow-x: scroll;
        overflow-y: hidden;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        scrollbar-color: rgba(101, 87, 246, 0.56) rgba(207, 203, 236, 0.38);
        scroll-snap-type: x proximity;
    }

    .prompt-result-gallery--secondary .prompt-result-gallery__thumbs::-webkit-scrollbar {
        height: 10px;
    }

    .prompt-result-gallery--secondary .prompt-result-gallery__thumbs::-webkit-scrollbar-track {
        background: rgba(207, 203, 236, 0.38);
        border-radius: 999px;
    }

    .prompt-result-gallery--secondary .prompt-result-gallery__thumbs::-webkit-scrollbar-thumb {
        background: rgba(101, 87, 246, 0.56);
        border-radius: 999px;
        border: 2px solid rgba(207, 203, 236, 0.38);
    }

    .prompt-result-gallery--secondary .prompt-result-gallery__thumb {
        flex: 0 0 auto;
    }

    .prompt-detail-lightbox {
        padding: 12px;
    }

    .prompt-detail-lightbox__dialog {
        max-height: calc(100vh - 24px);
    }

    .prompt-detail-lightbox__header,
    .prompt-detail-lightbox__body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .prompt-detail-lightbox__pair {
        grid-template-columns: 1fr;
    }
}
