@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('layout.css');
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    color: #ffffff;
}

main {
    width: 100%;
}

.breadcrumbs-section {
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
    padding: 3rem var(--page-gutter) 0.75rem;
}

.breadcrumbs-wrap {
    margin: 0 auto;
}

.breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.25;
    color: #000000;
    white-space: nowrap;
}

.breadcrumbs a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
    font-size: 1rem;
}

.breadcrumbs a:hover {
    color: #a1a1a1;
}

.breadcrumbs .separator {
    color: #9298b5;
}

.breadcrumbs .current-page {
    color: #0030FF;
    font-weight: 500;
    font-size: 1rem;
}

.listing-hero-section {
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
    padding: 1rem var(--page-gutter) 0.75rem;
}

.listing-hero-wrap {
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 500px);
    align-items: center;
    gap: 22px;
}

.listing-hero-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 1.14;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #000000;
}

.listing-hashtag-intro {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    max-width: 46rem;
    color: rgba(0, 0, 0, 0.82);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 300;
}

.listing-hashtag-intro[hidden] {
    display: none;
}

.hashtag-seo-prompt-list {
    margin: 18px 0 0;
    padding-left: 1.2rem;
    color: rgba(0, 0, 0, 0.88);
}

.hashtag-seo-prompt-list a {
    color: #b1fa3d;
}

.listing-search {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    border-radius: 999px;
    border: 1px solid rgba(125, 133, 185, 0.24);
    background: #f5f5f5;
}

.listing-search .fa-magnifying-glass {
    color: #000000;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.listing-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #000000;
    font-size: 1.1rem;
}

.listing-search input::placeholder {
    color: #353535;
    font-size: 1rem;
    font-weight: 300;
}

.listing-search button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #0030FF;
    cursor: pointer;
}

.listing-search button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.listing-search input:focus-visible,
.listing-search button:focus-visible {
    outline: 2px solid #8f48ff;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.listing-filters-section {
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem var(--page-gutter) 0.75rem;
}

.listing-filters-wrap {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.listing-results-count {
    margin: 0;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.search-tools-section {
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem var(--page-gutter) 0.25rem;
}

.search-tools-section[hidden] {
    display: none !important;
}

.search-tools-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
}

.search-tools-head h2 {
    margin: 0;
    color: #000000;
    font-size: 1.15rem;
    font-weight: 600;
}

.search-tools-all {
    color: #0363FB;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
}

.search-tools-all:hover {
    filter: brightness(1.12);
}

.search-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.search-tool-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: #f5f5f5;
    color: inherit;
    text-decoration: none;
}

.search-tool-card:hover,
.search-tool-card:focus-visible {
    border-color: rgba(3, 99, 251, 0.55);
}

.search-tool-card__logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000000;
}

.search-tool-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-tool-card__copy {
    min-width: 0;
}

.search-tool-card__name {
    display: block;
    color: #000000;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-tool-card__meta {
    display: block;
    margin-top: 3px;
    font-weight: 500;
    color: #0030FF;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-filter-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.listing-filter-dropdown {
    position: relative;
}

.listing-filter-pill {
    height: 40px;
    padding: 5px 20px;
    border: 0;
    border-radius: 999px;
    background: #f5f5f5;
    color: #000000;
    font-family: "Montserrat", sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.listing-filter-pill i {
    font-size: 1rem;
    color: #000000;
    transition: transform 0.2s ease;
}

.listing-filter-dropdown.is-open .listing-filter-trigger i {
    transform: rotate(180deg);
}

.listing-filter-pill:hover {
    filter: brightness(0.97);
}

.listing-filter-pill:focus-visible {
    outline: 2px solid #8f48ff;
    outline-offset: 2px;
}

.listing-filter-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    min-width: 150px;
    padding: 8px;
    border-radius: 14px;
    background: #f1f1f1;
    display: none;
}

.listing-filter-dropdown.is-open .listing-filter-menu {
    display: grid;
    gap: 6px;
}

.listing-filter-option {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #000000;
    text-align: left;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 400;
    padding: 9px 10px;
    cursor: pointer;
}

.listing-filter-option:hover,
.listing-filter-option:focus-visible {
    background: #ebebeb;
    border: 1px solid rgba(125, 133, 185, 0.24);
    outline: none;
}

.listing-gallery-section {
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem var(--page-gutter) 2rem;
}

.listing-gallery-wrap {
    max-width: 1800px;
    margin: 0 auto;
}

.listing-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 2.5rem;
}

.listing-pagination[hidden] {
    display: none !important;
}

.listing-pagination__btn {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 999px;
    background: #f5f5f5;
    color: #000000;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.listing-pagination__btn:hover:not(:disabled) {
    background: #0363FB;
    border-color: transparent;
    color: #ffffff;
}

.listing-pagination__btn.is-active {
    background: #0363FB;
    border-color: transparent;
    color: #ffffff;
}

.listing-pagination__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.listing-gallery-grid {
    column-count: 5;
    column-gap: 5px;
}

.listing-empty {
    column-span: all;
    display: block;
    margin: 8px auto 48px;
    max-width: 560px;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
    line-height: 1.55;
}

.listing-empty a {
    color: #ffffff;
    text-underline-offset: 3px;
}

.listing-gallery-card {
    margin: 0 0 2px;
    position: relative;
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
}

.listing-gallery-card__link {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.listing-gallery-ssr-copy {
    padding: 12px 4px 8px;
}

.listing-gallery-ssr-copy h2 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 600;
    color: #f1f1f6;
}

.listing-gallery-ssr-copy p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(241, 241, 246, 0.72);
}

.category-intro {
    max-width: 1800px;
    margin: 8px auto 28px;
    width: 100%;
    margin-top: 30px;
    padding: 0 var(--page-gutter);
    color: #f1f1f6;
}

.category-intro__inner {
    max-width: 1020px;
    margin: 0;
}

.category-intro h2 {
    margin: 0 0 12px;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.3;
    font-weight: 600;
    color: #000000;
}

.category-intro p {
    margin: 0 0 12px;
    color: rgb(0, 0, 0);
    font-size: 0.98rem;
    line-height: 1.7;
    font-weight: 500;
}

.category-intro p:last-child {
    margin-bottom: 0;
}

.listing-gallery-card img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.trend-score-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(12, 12, 14, 0.78);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.trend-score-badge::before {
    content: "\f06d";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    font-size: 0.72rem;
}

.listing-gallery-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 28px 14px 22px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 42%, rgba(0, 0, 0, 0) 72%);
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.listing-gallery-card:hover .listing-gallery-overlay,
.listing-gallery-card:focus-within .listing-gallery-overlay,
.listing-gallery-card:active .listing-gallery-overlay,
.listing-gallery-card__link:hover .listing-gallery-overlay,
.listing-gallery-card__link:focus-visible .listing-gallery-overlay {
    opacity: 1;
}

.prompt-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.prompt-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.prompt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.537);
    backdrop-filter: blur(2px);
}

.prompt-modal-card {
    position: relative;
    width: min(96vw, 1160px);
    margin: 0;
    max-height: calc(100vh - 32px);
    overflow: auto;
    border-radius: 28px;
    background: #78787e;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
    gap: 26px;
    z-index: 1;
}

.prompt-modal-image-wrap img {
    width: 100%;
    height: 100%;
    max-height: 640px;
    object-fit: cover;
    border-radius: 22px;
    display: block;
}

.prompt-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(125, 133, 185, 0.24);
    color: #000000;
    font-size: 1.1rem;
    cursor: pointer;
}

.prompt-modal-content h2 {
    margin: 20px 0 10px;
    font-size: 1.8rem;
    padding-right: 20px;
    line-height: 1.15;
    color: #ffffff;
    font-weight: 600;
}

.prompt-modal-category {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 300;
}

.prompt-modal-box {
    margin-top: 28px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(125, 133, 185, 0.24);
    padding: 20px 24px;
}

.prompt-modal-box h3 {
    margin: 0 0 8px;
    font-size:1.2rem;
    color: #000000;
}

.prompt-modal-box p {
    margin: 0;
    color: #000000;
    font-size: 1rem;
    line-height: 1.45;
}

.prompt-modal-hashtags {
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prompt-hashtag-chip {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border-color: #8f48ff;
    background: #ffffff;
    color: #000000;
    font-weight: 400;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.prompt-hashtag-chip:hover {
    background: rgba(156, 192, 255, 0.3);
    color: #c2d8ff;
}

.prompt-modal-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.prompt-modal-related {
    margin-top: 28px;
}

.prompt-modal-related h3 {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 500;
    color: #ffffff;
}

.prompt-modal-related-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.prompt-related-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow: visible;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}

.prompt-related-card:focus-visible {
    outline: 2px solid #8f48ff;
    outline-offset: 2px;
}

.prompt-related-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #141416;
}

.prompt-related-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.prompt-related-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 8px 2px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 500;
}

.prompt-related-card__match {
    letter-spacing: 0;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.prompt-related-card__match::before {
    content: none;
    display: none;
}

.prompt-related-card:hover .listing-gallery-overlay,
.prompt-related-card:focus-within .listing-gallery-overlay,
.prompt-related-card:active .listing-gallery-overlay,
.prompt-related-card:focus-visible .listing-gallery-overlay {
    opacity: 1;
}

.prompt-modal-btn {
    height: 40px;
    border: 0;
    border-radius: 999px;
    border-color: #8f48ff;
    background: #0363FB;
    color: #ffffff;
    padding: 0 18px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.prompt-modal-btn:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

body.modal-open {
    overflow: hidden;
}

.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(10px);
    background: #1f7a3f;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 999px;
    z-index: 2100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 991px) {
    .breadcrumbs-section {
        padding: 14px var(--page-gutter) 20px;
    }

    .breadcrumbs {
        font-size: 1.15rem;
        gap: 10px;
    }

    .listing-hero-section {
        padding: 0 var(--page-gutter) 28px;
    }

    .category-intro {
        padding: 0 var(--page-gutter);
        margin-bottom: 22px;
    }

    .listing-hero-wrap {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .listing-hero-title {
        margin-top: 30px;
        font-size: clamp(1.4rem, 3.4vw, 2.1rem);
        text-align: center;
        margin-bottom: 20px;
    }

    .listing-search {
        min-height: 58px;
        max-width: 560px;
        justify-self: center;
    }

    .listing-filters-section {
        padding: 0 var(--page-gutter) 26px;
    }

    .listing-filters-wrap {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .listing-results-count {
        font-size: 1.12rem;
        margin-bottom: 10px;
    }

    .search-tools-section {
        padding: 0.25rem var(--page-gutter) 0.5rem;
    }

    .search-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .listing-filter-actions {
        width: auto;
        margin-left: auto;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .listing-filter-menu {
        min-width: 120px;
    }

    .listing-filter-pill {
        height: 46px;
        padding: 8px 18px;
        font-size: 1rem;
        gap: 10px;
    }

    .listing-filter-pill i {
        font-size: 0.95rem;
    }

    .listing-gallery-section {
        padding: 0 var(--page-gutter) 56px;
    }

    .listing-gallery-grid {
        column-count: 3;
        column-gap: 18px;
    }

    .listing-pagination {
        margin-top: 2rem;
        gap: 8px;
    }

    .prompt-modal.is-open {
        align-items: flex-start;
        justify-content: center;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 12px;
    }

    .prompt-modal-backdrop {
        position: fixed;
    }

    .prompt-modal-card {
        grid-template-columns: 1fr;
        width: min(94vw, 880px);
        max-height: none;
        overflow: visible;
        margin: 12px auto 24px;
        padding: 20px 20px 50px;
        gap: 16px;
    }

    .prompt-modal-image-wrap {
        width: min(100%, 420px);
        margin: 0 auto;
        aspect-ratio: 3 / 4;
        overflow: hidden;
        border-radius: 18px;
    }

    .prompt-modal-image-wrap img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        border-radius: 18px;
    }

    .prompt-modal-content h2 {
        font-size: 2rem;
        padding-right: 48px;
    }

    .prompt-modal-category {
        font-size: 1.15rem;
    }

    .prompt-modal-box {
        margin-top: 16px;
        padding: 14px;
        border-radius: 16px;
    }

    .prompt-modal-box h3 {
        font-size: 1.35rem;
        margin-bottom: 20px;
    }

    .prompt-modal-box p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .prompt-modal-btn {
        height: 42px;
        font-size: 0.95rem;
    }

    .prompt-modal-related {
        margin-top: 22px;
    }

    .prompt-modal-related h3 {
        font-size: 1.2rem;
    }

    .prompt-modal-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .breadcrumbs-section {
        padding: 20px var(--page-gutter) 16px;
    }

    .breadcrumbs-wrap {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .breadcrumbs {
        font-size: 1rem;
        gap: 8px;
    }

    .listing-hero-section {
        padding: 0 var(--page-gutter) 22px;
    }

    .category-intro {
        padding: 0 var(--page-gutter);
        margin-bottom: 18px;
    }

    .listing-hero-wrap {
        gap: 12px;
    }

    .listing-hero-title {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .listing-search {
        min-height: 52px;
        padding: 8px 10px 8px 14px;
    }

    .listing-search .fa-magnifying-glass {
        font-size: 0.95rem;
    }

    .listing-search input {
        font-size: 0.95rem;
    }

    .listing-search button {
        width: 36px;
        height: 36px;
    }

    .listing-filters-section {
        padding: 0 var(--page-gutter) 22px;
    }

    .listing-filters-wrap {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 10px;
    }

    .listing-results-count {
        font-size: 0.95rem;
        font-weight: 500;
    }

    .search-tools-grid {
        grid-template-columns: 1fr;
    }

    .listing-filter-actions {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
        overflow: visible;
        gap: 8px;
        padding-bottom: 0;
        -webkit-overflow-scrolling: touch;
    }

    .listing-filter-pill {
        flex: 0 0 auto;
        height: 40px;
        padding: 8px 14px;
        font-size: 0.9rem;
        gap: 8px;
    }

    .listing-filter-menu {
        min-width: 120px;
    }

    .listing-gallery-section {
        padding: 0 var(--page-gutter) 44px;
    }

    .listing-gallery-grid {
        column-count: 2;
        column-gap: 16px;
    }

    .listing-pagination {
        margin-top: 1.5rem;
        gap: 6px;
    }

    .listing-pagination__btn {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 0.88rem;
    }

    .listing-gallery-card img {
        border-radius: 0;
    }


    .listing-gallery-overlay {
        padding: 20px 10px 16px;
        font-size: 0.88rem;
    }

    .prompt-modal.is-open {
        padding: 8px;
    }

    .prompt-modal-card {
        width: calc(100vw - 16px);
        margin: 8px auto 28px;
        border-radius: 20px;
        padding: 15px 15px 40px;
        max-height: none;
        overflow: visible;
    }

    .prompt-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .prompt-modal-image-wrap {
        width: min(100%, 280px);
        margin: 0 auto;
        aspect-ratio: 3 / 4;
        overflow: hidden;
        border-radius: 14px;
    }

    .prompt-modal-image-wrap img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        border-radius: 14px;
    }

    .prompt-modal-content h2 {
        font-size: 1.28rem;
        padding-right: 42px;
    }

    .prompt-modal-category {
        font-size: 0.92rem;
    }

    .prompt-modal-box {
        margin-top: 12px;
        padding: 12px;
    }

    .prompt-modal-box h3 {
        font-size: 1.05rem;
    }

    .prompt-modal-box p {
        font-size: 0.9rem;
    }

    .prompt-modal-actions {
        margin-top: 14px;
        gap: 10px;
    }

    .prompt-modal-btn {
        height: 38px;
        padding: 0 14px;
        font-size: 0.85rem;
    }

    .prompt-modal-related {
        margin-top: 18px;
    }

    .prompt-modal-related h3 {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .prompt-modal-related-grid {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .prompt-modal-related-grid .prompt-related-card {
        flex: 0 0 46%;
        width: 46%;
        max-width: 46%;
        min-width: 148px;
        scroll-snap-align: start;
    }

    .prompt-modal-related-grid .prompt-related-card__title {
        font-size: 0.72rem;
        margin-top: 6px;
    }

    .prompt-modal-related-grid .prompt-related-card__match {
        top: 6px;
        right: 6px;
        padding: 4px 7px;
        font-size: 0.62rem;
    }

    .prompt-modal-related-grid .prompt-related-card .listing-gallery-overlay {
        font-size: 0.75rem;
        padding: 16px 8px 12px;
    }
}

form:tool-form-active {
    outline: 2px dashed #b1fa3d;
    outline-offset: 6px;
}

button:tool-submit-active,
input:tool-submit-active {
    outline: 2px dashed #4fa806;
    outline-offset: 2px;
}