.tl-rv {
    --tl-rv-muted: color-mix(in srgb, var(--tl-rv-text) 62%, var(--tl-rv-bg));
    --tl-rv-border: color-mix(in srgb, var(--tl-rv-text) 14%, var(--tl-rv-bg));
    position: fixed;
    z-index: var(--tl-rv-z, 10070);
    bottom: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: var(--tl-rv-text);
    pointer-events: none;
}

.tl-rv[hidden] {
    display: none !important;
}

.tl-rv--bottom_left { left: 1.25rem; }
.tl-rv--bottom_right { right: 1.25rem; }

.tl-rv__shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(20rem, calc(100vw - 2.5rem));
    pointer-events: auto;
}

.tl-rv--bottom_right .tl-rv__shell { margin-left: auto; }
.tl-rv--bottom_left .tl-rv__shell { margin-right: auto; }

.tl-rv__panel {
    background: var(--tl-rv-bg);
    color: var(--tl-rv-text);
    border: 1px solid var(--tl-rv-border);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
    overflow: hidden;
    max-height: min(22rem, 55vh);
    display: flex;
    flex-direction: column;
}

.tl-rv__panel[hidden] {
    display: none !important;
}

.tl-rv__heading {
    margin: 0;
    padding: 0.7rem 0.85rem 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--tl-rv-accent);
}

.tl-rv__list {
    overflow: auto;
    padding: 0 0.45rem 0.55rem;
}

.tl-rv__item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.4rem;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
}

.tl-rv__item:hover,
.tl-rv__item:focus-visible {
    background: color-mix(in srgb, var(--tl-rv-accent) 10%, transparent);
    outline: none;
}

.tl-rv__thumb {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 6px;
    object-fit: cover;
    background: color-mix(in srgb, var(--tl-rv-accent) 12%, var(--tl-rv-bg));
    flex: 0 0 auto;
}

.tl-rv__thumb--empty {
    display: grid;
    place-items: center;
    color: var(--tl-rv-accent);
    font-size: 0.7rem;
    font-weight: 700;
}

.tl-rv__title {
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tl-rv__tab {
    appearance: none;
    border: 0;
    cursor: pointer;
    background: var(--tl-rv-accent);
    color: #fff;
    font: inherit;
    font-weight: 650;
    padding: 0.55rem 0.95rem 0.7rem;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
    text-align: center;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tl-rv__tab:hover,
.tl-rv__tab:focus-visible {
    filter: brightness(1.06);
    outline: none;
}

.tl-rv.is-open .tl-rv__tab {
    border-radius: 0;
}