.rtt {
    --rtt-brand: var(--color_brand, #6e747a);
    --rtt-brand-text: color-mix(in srgb, var(--rtt-brand) 62%, #000);
    --rtt-brand-soft: color-mix(in srgb, var(--rtt-brand) 16%, #fff);
    --rtt-focus: color-mix(in srgb, var(--rtt-brand) 45%, transparent);
    --rtt-ink: #1b1f24;
    --rtt-text: #4a5058;
    --rtt-muted: #5f6670;
    --rtt-icon: #6b7178;
    --rtt-line: #e3e6ea;
    --rtt-line-strong: #a3a8ad;
    --rtt-surface: #f3f5f7;
    --rtt-media: #f4f6f9;
    --rtt-gap: 16px;
    display: block;
    color: var(--rtt-ink);
}

@supports (color: oklch(from red l c h)) {
    .rtt {
        --rtt-brand-text: oklch(from var(--rtt-brand) min(l, .5) c h);
    }
}

.rtt__srOnly {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.rtt__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: var(--sec-head, 36px);
}

.rtt .rtt__title {
    margin: 0;
    font-size: clamp(26px, 1rem + 1.8vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--rtt-ink);
}

.rtt__title em {
    font-style: normal;
    color: var(--rtt-brand-text);
}

.rtt__search {
    position: relative;
    flex: 0 1 320px;
    min-width: 220px;
}

.rtt__searchIco {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 15px;
    width: 17px;
    height: 17px;
    margin-top: -8.5px;
    color: var(--rtt-muted);
    pointer-events: none;
}

.rtt__field {
    width: 100%;
    height: 48px;
    padding: 0 44px;
    font: inherit;
    font-size: 15px;
    color: var(--rtt-ink);
    background: var(--rtt-surface);
    border: 1px solid var(--rtt-line);
    border-radius: 12px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .15s, background-color .15s;
}

.rtt__field::placeholder {
    color: var(--rtt-muted);
    opacity: 1;
}

.rtt__field::-webkit-search-decoration,
.rtt__field::-webkit-search-cancel-button,
.rtt__field::-webkit-search-results-button {
    display: none;
    -webkit-appearance: none;
}

.rtt__field:focus {
    background: #fff;
    border-color: var(--rtt-ink);
}

.rtt__clear {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 10px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    color: var(--rtt-text);
    background: #fff;
    border: 1px solid var(--rtt-line);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s, visibility .15s;
}

.rtt__clear svg {
    width: 12px;
    height: 12px;
}

.rtt__clear:hover {
    color: var(--rtt-ink);
    border-color: var(--rtt-line-strong);
}

.rtt.is-searching .rtt__clear {
    opacity: 1;
    visibility: visible;
}

.rtt .rtt__found {
    min-height: 1.3em;
    margin: -20px 0 12px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--rtt-muted);
}

.rtt__found b {
    font-weight: 700;
    color: var(--rtt-ink);
}

.rtt__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--rtt-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.rtt__item {
    min-width: 0;
}

.rtt__item[hidden] {
    display: none !important;
}

.rtt__card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 14px 14px 18px;
    font: inherit;
    text-align: center;
    color: inherit;
    background: #fff;
    border: 1px solid var(--rtt-line);
    border-radius: 18px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .15s, box-shadow .15s;
}

.rtt__card:hover {
    border-color: var(--rtt-line-strong);
    box-shadow: 0 10px 24px rgba(20, 30, 40, .06);
}

.rtt__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 20px;
    background: var(--rtt-media);
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
}

.rtt__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.rtt__card:hover .rtt__media img {
    transform: scale(1.04);
}

.rtt__media--empty {
    color: var(--rtt-icon);
}

.rtt__media--empty svg {
    width: 34%;
    max-width: 56px;
    height: auto;
}

.rtt__body {
    display: block;
    margin-top: 14px;
}

.rtt__name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.rtt__hit {
    padding: 0 1px;
    color: var(--rtt-ink);
    background: var(--rtt-brand-soft);
    border-radius: 3px;
}

.rtt .rtt__empty {
    margin: 0;
    padding: 28px 16px;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    color: var(--rtt-text);
    background: var(--rtt-surface);
    border-radius: 18px;
}

.rtt__empty[hidden] {
    display: none !important;
}

.rtt__emptyBtn {
    display: inline-block;
    margin-top: 8px;
    padding: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--rtt-ink);
    background: none;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.rtt__more {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.rtt__more[hidden] {
    display: none !important;
}

.rtt__moreBtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--rtt-ink);
    background: var(--rtt-surface);
    border: 1px dashed var(--rtt-line-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .15s;
}

.rtt__moreBtn:hover {
    border-color: var(--rtt-ink);
}

.rtt__moreBtn b {
    font-weight: 700;
}

.rtt__moreIco {
    flex: none;
    width: 14px;
    height: 14px;
    transition: transform .2s;
}

.rtt__moreBtn[aria-expanded="true"] .rtt__moreIco {
    transform: rotate(180deg);
}

.rtt__item--extra {
    opacity: 0;
    transform: translateY(8px);
}

.rtt__item--extra.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .3s ease, transform .3s ease;
}

.rtt__card:focus-visible,
.rtt__field:focus-visible,
.rtt__clear:focus-visible,
.rtt__emptyBtn:focus-visible,
.rtt__moreBtn:focus-visible {
    outline: 2px solid var(--rtt-focus);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .rtt__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .rtt {
        --rtt-gap: 10px;
    }

    .rtt__head {
        gap: 14px;
    }

    .rtt__search {
        flex: 1 1 100%;
        min-width: 0;
    }

    .rtt .rtt__found {
        margin-top: -12px;
    }

    .rtt__card {
        padding: 8px 8px 12px;
        border-radius: 14px;
    }

    .rtt__media {
        padding: 12px;
        border-radius: 10px;
    }

    .rtt__body {
        margin-top: 10px;
    }

    .rtt__name {
        font-size: 14px;
    }

    .rtt__moreBtn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-contrast: more) {
    .rtt {
        --rtt-text: #3a4048;
        --rtt-muted: #3a4048;
        --rtt-line: #a3a8ad;
        --rtt-line-strong: #5f6670;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rtt * {
        transition: none !important;
    }

    .rtt__item--extra {
        opacity: 1;
        transform: none;
    }
}

@media (forced-colors: active) {
    .rtt__field,
    .rtt__card {
        border-color: CanvasText;
    }

    .rtt__moreBtn {
        color: ButtonText;
        background: ButtonFace;
        border: 1px solid ButtonText;
    }

    .rtt__searchIco,
    .rtt__clear,
    .rtt__media--empty {
        color: CanvasText;
    }

    .rtt__hit {
        color: MarkText;
        background: Mark;
    }

    .rtt *:focus-visible {
        outline-color: Highlight;
    }
}