.rtp-tb {
    padding: 12px 16px;
    background: var(--pd-bg-card);
    border: 1px solid var(--pd-border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 0;
}

.rtp-tb__line {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.rtp-tb__count {
    font-size: 13px;
    color: var(--pd-text-muted);
    white-space: nowrap;
}

.rtp-tb__count-num {
    color: var(--pd-text-h);
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.rtp-search {
    position: relative;
    flex: 1 1 240px;
    min-width: 180px;
    display: flex;
    align-items: center;
}

.rtp-search__i {
    position: absolute;
    left: 11px;
    color: var(--pd-text-ghost);
    pointer-events: none;
}

.rtp-search__in {
    width: 100%;
    min-height: 38px;
    padding: 7px 12px 7px 33px;
    border: 1px solid var(--pd-border-strong);
    border-radius: var(--radius-md);
    background: var(--pd-bg);
    color: var(--pd-text-body);
    font-family: inherit;
    font-size: 14px;
}

.rtp-search__in:focus-visible {
    outline: 2px solid var(--pd-accent);
    outline-offset: 1px;
    border-color: var(--pd-accent);
}

.rtp-tb__exp {
    display: flex;
    gap: 8px;
}

.rtp-btn {
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid var(--pd-border-strong);
    border-radius: var(--radius-md);
    background: var(--pd-bg);
    color: var(--pd-text-sec);
    font-family: inherit;
    font-size: 13px;
    font-weight: 550;
    cursor: pointer;
}

.rtp-btn:hover {
    border-color: var(--pd-accent-border);
    color: var(--pd-accent-text);
}

.rtp-tb__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--pd-border-soft);
}

.rtp-filters-cb {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    margin: 0;
}

.rtp-tb__filters-sum {
    display: none;
}

.rtp-fgroup {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.rtp-fgroup__lab {
    margin-right: 2px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pd-text-ghost);
}

.rtp-chip,
.rtp-preset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 3px 11px;
    border: 1px solid var(--pd-border-strong);
    border-radius: 999px;
    background: var(--pd-bg);
    color: var(--pd-text-sec);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.rtp-chip:hover,
.rtp-preset:hover {
    border-color: var(--pd-accent-border);
    color: var(--pd-accent-text);
}

.rtp-chip.is-on,
.rtp-preset.is-on {
    background: var(--pd-accent-tint);
    border-color: var(--pd-accent-border);
    color: var(--pd-accent-text);
    font-weight: 600;
}

.rtp-chip:focus-visible,
.rtp-preset:focus-visible,
.rtp-btn:focus-visible,
.rtp-th:focus-visible {
    outline: 2px solid var(--pd-accent);
    outline-offset: 2px;
}

.rtp-chip__n {
    font-size: 10.5px;
    color: var(--pd-text-ghost);
    font-variant-numeric: tabular-nums;
}

.rtp-range {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 4px;
}

.rtp-range__in {
    width: 68px;
    min-height: 30px;
    padding: 3px 8px;
    border: 1px solid var(--pd-border-strong);
    border-radius: var(--radius-sm);
    background: var(--pd-bg);
    color: var(--pd-text-body);
    font-family: inherit;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

.rtp-range__dash {
    color: var(--pd-text-ghost);
}

.rtp-tb__clear {
    margin-left: auto;
    padding: 4px 10px;
    border: 0;
    background: none;
    color: var(--pd-accent-text);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 550;
    cursor: pointer;
    text-decoration: underline;
}

.rtp-tbl {
    border: 1px solid var(--pd-border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: var(--pd-bg-card);
}

.rtp-tbl > :last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.rtp-hint {
    margin: 0;
    padding: 10px 16px;
    background: var(--pd-accent-tint);
    border-bottom: 1px solid var(--pd-accent-border);
    font-size: 13px;
    color: var(--pd-text-sec);
}

.rtp-hint b {
    color: var(--pd-text-h);
}
