
:root {
    --rbst-ring-1: #f09433;
    --rbst-ring-2: #e6683c;
    --rbst-ring-3: #dc2743;
    --rbst-ring-4: #cc2366;
    --rbst-ring-5: #bc1888;
    --rbst-ring-seen: var(--rb-border-strong, #9ca3af);
    --rbst-ring-gap: 2px;
    --rbst-ring-width: 3px;
    --rbst-viewer-bg: #0b0b0f;
    --rbst-viewer-fg: #fff;
    --rbst-viewer-max-w: 460px;
    --rbst-panel-w: 380px;
}

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

.rbst-inline-form {
    display: inline;
    margin: 0;
}

.rbst-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rbst-page--narrow {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.rbst-page__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.rbst-page__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--rb-text, inherit);
}

.rbst-page__title i {
    color: var(--rb-primary, #3b82f6);
}

.rbst-page__sub {
    margin: 0.25rem 0 0;
    color: var(--rb-text-muted, #6b7280);
    font-size: 0.9rem;
}

.rbst-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.rbst-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-breadcrumb a {
    color: var(--rb-primary, #3b82f6);
    text-decoration: none;
}

.rbst-breadcrumb__sep {
    opacity: 0.6;
}

.rbst-card {
    background: var(--rb-surface, #fff);
    border: 1px solid var(--rb-border, #e5e7eb);
    border-radius: var(--rb-radius-lg, 14px);
    padding: 1rem;
    position: relative;
}

.rbst-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--rb-radius, 10px);
    border: 1px solid var(--rb-border, #e5e7eb);
    background: var(--rb-surface-2, #f9fafb);
    font-size: 0.9rem;
}

.rbst-notice--info {
    border-color: color-mix(in srgb, var(--rb-info, #0ea5e9) 40%, transparent);
    color: var(--rb-info, #0ea5e9);
}

.rbst-notice--warn {
    border-color: color-mix(in srgb, var(--rb-warning, #f59e0b) 40%, transparent);
    color: var(--rb-warning, #b45309);
}

.rbst-notice--error {
    border-color: color-mix(in srgb, var(--rb-danger, #ef4444) 40%, transparent);
    color: var(--rb-danger, #dc2626);
}

.rbst-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--rb-text-muted, #6b7280);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.rbst-empty > i {
    font-size: 2.5rem;
    opacity: 0.35;
}

.rbst-empty__title {
    margin: 0;
    font-weight: 600;
    color: var(--rb-text, inherit);
}

.rbst-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.rbst-filters__field input,
.rbst-filters__field select {
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--rb-border, #e5e7eb);
    border-radius: var(--rb-radius, 10px);
    background: var(--rb-surface, #fff);
    color: var(--rb-text, inherit);
    font: inherit;
    font-size: 0.9rem;
    min-width: 0;
}

.rbst-filters__check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-ring {
    --rbst-size: 64px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: calc(var(--rbst-size) + 16px);
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    font: inherit;
    position: relative;
    flex: 0 0 auto;
}

.rbst-ring--sm { --rbst-size: 48px; }
.rbst-ring--md { --rbst-size: 64px; }
.rbst-ring--lg { --rbst-size: 84px; }

.rbst-ring__frame {
    width: var(--rbst-size);
    height: var(--rbst-size);
    border-radius: 50%;
    padding: var(--rbst-ring-width);
    background: conic-gradient(from 210deg, var(--rbst-ring-1), var(--rbst-ring-2), var(--rbst-ring-3), var(--rbst-ring-4), var(--rbst-ring-5), var(--rbst-ring-1));
    position: relative;
    transition: transform 0.15s ease;
    box-sizing: border-box;
}

.rbst-ring:hover .rbst-ring__frame,
.rbst-ring:focus-visible .rbst-ring__frame {
    transform: scale(1.05);
}

.rbst-ring.is-seen .rbst-ring__frame {
    background: var(--rbst-ring-seen);
}

.rbst-ring--add .rbst-ring__frame,
.rbst-ring--more .rbst-ring__frame {
    background: var(--rb-border, #e5e7eb);
}

.rbst-ring__img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--rb-surface, #fff);
    padding: var(--rbst-ring-gap);
    box-sizing: border-box;
    overflow: hidden;
}

.rbst-ring__img .rbst-av,
.rbst-ring__img .rb-av,
.rbst-ring__img img,
.rbst-ring__img .rb-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--rbst-size) * 0.38);
    --av-br: 50%;
}

.rbst-av--fallback,
.rbst-av--guest,
.rbst-av--more {
    background: var(--rb-surface-2, #f3f4f6);
    color: var(--rb-text-muted, #6b7280);
    font-weight: 700;
}

.rbst-av--more {
    font-size: calc(var(--rbst-size) * 0.28) !important;
}

.rbst-ring__plus {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--rb-primary, #3b82f6);
    color: var(--rb-primary-fg, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 2px solid var(--rb-surface, #fff);
}

.rbst-ring__count {
    position: absolute;
    top: 0;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--rb-primary, #3b82f6);
    color: var(--rb-primary-fg, #fff);
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--rb-surface, #fff);
}

.rbst-ring__name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-ring.is-self .rbst-ring__name {
    color: var(--rb-primary, #3b82f6);
    font-weight: 600;
}

.rbst-bar {
    position: relative;
}

.rbst-bar__scroller {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0.25rem 0.25rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.rbst-bar__scroller::-webkit-scrollbar {
    display: none;
}

.rbst-bar__scroller .rbst-ring {
    scroll-snap-align: start;
}

.rbst-bar__empty {
    color: var(--rb-text-muted, #6b7280);
    font-size: 0.9rem;
    padding: 0.5rem;
}

.rbst-bar__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--rb-border, #e5e7eb);
    background: var(--rb-surface, #fff);
    color: var(--rb-text, inherit);
    box-shadow: var(--rb-shadow-sm, 0 1px 3px rgba(0,0,0,0.15));
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.rbst-bar__arrow--prev { left: -8px; }
.rbst-bar__arrow--next { right: -8px; }

.rbst-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 1rem 0.5rem;
    justify-items: center;
}

.rbst-grid__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.rbst-grid__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.7rem;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-grid__all {
    color: var(--rb-primary, #3b82f6);
    text-decoration: none;
}

.rbst-grid--single {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: start;
}

.rbst-strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rbst-strip__thumb {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 90px;
    height: 150px;
    border-radius: var(--rb-radius, 10px);
    overflow: hidden;
    background: var(--rb-surface-2, #f3f4f6);
    border: 2px solid var(--rb-primary, #3b82f6);
    position: relative;
    padding: 0;
    cursor: pointer;
    color: var(--rb-text-muted, #6b7280);
    text-decoration: none;
}

.rbst-strip__thumb.is-seen {
    border-color: var(--rb-border, #e5e7eb);
}

.rbst-strip__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rbst-strip__thumb > i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.rbst-strip__badge {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.rbst-strip__meta {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0.3rem;
    font-size: 0.65rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
    text-align: center;
}

.rbst-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.rbst-list__item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rb-border, #e5e7eb);
}

.rbst-list__item:last-child {
    border-bottom: 0;
}

.rbst-list__item.is-deleted {
    opacity: 0.6;
}

.rbst-list__thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 84px;
    border-radius: var(--rb-radius, 10px);
    background: var(--rb-surface-2, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rbst-list__body {
    flex: 1 1 auto;
    min-width: 0;
}

.rbst-list__title {
    font-weight: 600;
    color: var(--rb-text, inherit);
    text-decoration: none;
}

.rbst-list__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-size: 0.75rem;
    color: var(--rb-text-muted, #6b7280);
    margin-top: 0.25rem;
}

.rbst-list__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.rbst-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--rb-surface-2, #f3f4f6);
    font-size: 0.7rem;
    font-weight: 600;
}

.rbst-badge--ok { background: color-mix(in srgb, var(--rb-success, #16a34a) 15%, transparent); color: var(--rb-success, #16a34a); }
.rbst-badge--warn { background: color-mix(in srgb, var(--rb-warning, #f59e0b) 15%, transparent); color: var(--rb-warning, #b45309); }
.rbst-badge--danger { background: color-mix(in srgb, var(--rb-danger, #ef4444) 15%, transparent); color: var(--rb-danger, #dc2626); }
.rbst-badge--muted { color: var(--rb-text-muted, #6b7280); }

.rbst-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rbst-form__hint {
    color: var(--rb-text-muted, #6b7280);
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
}

.rbst-fieldset {
    border: 1px solid var(--rb-border, #e5e7eb);
    border-radius: var(--rb-radius, 10px);
    padding: 0.75rem 1rem 1rem;
    margin: 0;
}

.rbst-fieldset legend {
    font-weight: 600;
    padding: 0 0.4rem;
}

.rbst-typepick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.rbst-typepick__item {
    display: block;
    min-width: 0;
}

.rbst-typepick__item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rbst-typepick__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    min-height: 74px;
    box-sizing: border-box;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--rb-border, #e5e7eb);
    border-radius: var(--rb-radius, 10px);
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--rb-text-muted, #6b7280);
    transition: border-color 0.15s, color 0.15s;
}

.rbst-typepick__box i {
    font-size: 1.3rem;
}

.rbst-typepick__item input:checked + .rbst-typepick__box {
    border-color: var(--rb-primary, #3b82f6);
    color: var(--rb-primary, #3b82f6);
    background: color-mix(in srgb, var(--rb-primary, #3b82f6) 8%, transparent);
}

.rbst-typepick__item input:focus-visible + .rbst-typepick__box {
    outline: 2px solid var(--rb-primary, #3b82f6);
    outline-offset: 2px;
}

.rbst-form__row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rbst-form__row[hidden] {
    display: none;
}

.rbst-form__label {
    font-weight: 600;
    font-size: 0.9rem;
}

.rbst-form__optional {
    font-weight: 400;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-form__row input[type="text"],
.rbst-form__row input[type="url"],
.rbst-form__row input[type="date"],
.rbst-form__row input[type="time"],
.rbst-form__row input[type="file"],
.rbst-form__row textarea,
.rbst-field input,
.rbst-field textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--rb-border, #e5e7eb);
    border-radius: var(--rb-radius, 10px);
    background: var(--rb-surface, #fff);
    color: var(--rb-text, inherit);
    font: inherit;
    box-sizing: border-box;
}

.rbst-form__help {
    margin: 0;
    font-size: 0.8rem;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-form__error {
    margin: 0;
    font-size: 0.85rem;
    color: var(--rb-danger, #dc2626);
}

.rbst-form__split {
    display: flex;
    gap: 0.5rem;
}

.rbst-composer,
.rbst-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    width: 100%;
}

@media (min-width: 900px) {
    .rbst-composer,
    .rbst-split {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 1.25rem;
    }

    .rbst-composer--page .rbst-composer__side,
    .rbst-split__side {
        position: sticky;
        top: calc(var(--rb-sticky-header-h, 72px) + 1rem);
    }
}

.rbst-composer__main,
.rbst-composer__side,
.rbst-split__main,
.rbst-split__side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rbst-side__cta {
    justify-content: center;
}

.rbst-optionlist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.rbst-optionlist__item {
    display: block;
    position: relative;
}

.rbst-optionlist__item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rbst-optionlist__box {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--rb-border, #e5e7eb);
    border-radius: var(--rb-radius, 10px);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.rbst-optionlist__box > i {
    flex: 0 0 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--rb-primary, #3b82f6) 10%, transparent);
    color: var(--rb-primary, #3b82f6);
}

.rbst-optionlist__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.rbst-optionlist__label {
    font-weight: 600;
    font-size: 0.95rem;
}

.rbst-optionlist__desc {
    font-size: 0.82rem;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-optionlist__item input:checked + .rbst-optionlist__box {
    border-color: var(--rb-primary, #3b82f6);
    background: color-mix(in srgb, var(--rb-primary, #3b82f6) 6%, transparent);
}

.rbst-optionlist__item input:focus-visible + .rbst-optionlist__box {
    outline: 2px solid var(--rb-primary, #3b82f6);
    outline-offset: 2px;
}

.rbst-rules {
    max-width: 80ch;
}

.rbst-form-card {
    padding: 1.25rem 1.5rem 1.5rem;
}

.rbst-form-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rbst-form-card__head .rbst-page__title {
    font-size: 1.3rem;
}

.rbst-modal__close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--rb-border, #e5e7eb);
    background: transparent;
    color: var(--rb-text-muted, #6b7280);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.rbst-modal__close:hover {
    color: var(--rb-text, inherit);
    background: color-mix(in srgb, var(--rb-text, #111) 6%, transparent);
}

.rbst-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.4rem 1rem;
    border: 2px dashed var(--rb-border, #d1d5db);
    border-radius: var(--rb-radius, 10px);
    background: color-mix(in srgb, var(--rb-primary, #3b82f6) 3%, transparent);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.rbst-dropzone:hover,
.rbst-dropzone.is-over {
    border-color: var(--rb-primary, #3b82f6);
    background: color-mix(in srgb, var(--rb-primary, #3b82f6) 8%, transparent);
}

.rbst-dropzone:focus-within {
    outline: 2px solid var(--rb-primary, #3b82f6);
    outline-offset: 2px;
}

.rbst-dropzone__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.rbst-dropzone__icon {
    font-size: 1.6rem;
    color: var(--rb-primary, #3b82f6);
}

.rbst-dropzone__text {
    font-weight: 600;
    font-size: 0.92rem;
}

.rbst-dropzone.has-file .rbst-dropzone__text {
    color: var(--rb-primary, #3b82f6);
}

.rbst-dropzone__help {
    font-size: 0.8rem;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-preview-card {
    padding: 1rem 1rem 1.25rem;
}

.rbst-phone {
    position: relative;
    width: 100%;
    max-width: 250px;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    border-radius: 24px;
    border: 6px solid #1f2430;
    background: #0b0d12;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

.rbst-phone__progress {
    position: absolute;
    top: 8px;
    left: 10px;
    right: 10px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 3;
}

.rbst-phone__progress span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: 3px;
    background: #fff;
}

.rbst-phone__head {
    position: absolute;
    top: 16px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    z-index: 3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.rbst-phone__avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rbst-phone__avatar .rbst-av,
.rbst-phone__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rbst-phone__who {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.rbst-phone__name {
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rbst-phone__ago {
    font-size: 0.62rem;
    opacity: 0.8;
}

.rbst-phone__media {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.rbst-phone__media img,
.rbst-phone__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rbst-phone__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.rbst-phone__empty i {
    font-size: 1.8rem;
}

.rbst-phone__caption {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 44px;
    z-index: 3;
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.55);
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
    word-break: break-word;
}

.rbst-phone__link {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 3;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

.rbst-phone__caption[hidden],
.rbst-phone__link[hidden],
.rbst-phone__empty[hidden] {
    display: none;
}

.rbst-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-facts li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.rbst-facts i {
    flex: 0 0 1.1rem;
    text-align: center;
    margin-top: 0.15rem;
    color: var(--rb-primary, #3b82f6);
}

.rbst-facts a {
    color: var(--rb-primary, #3b82f6);
}

.rbst-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(8, 11, 18, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow-y: auto;
}

.rbst-modal[hidden] {
    display: none;
}

.rbst-modal__panel {
    position: relative;
    width: 100%;
    max-width: 980px;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    border-radius: 18px;
    background: var(--rb-surface, var(--surface, #fff));
    color: var(--rb-text, inherit);
    border: 1px solid var(--rb-border, var(--border, #e5e7eb));
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
    padding: 0.5rem;
    box-sizing: border-box;
    animation: rbst-modal-in 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes rbst-modal-in {
    from { transform: translateY(10px) scale(0.98); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

.rbst-modal__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 200px;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-composer--modal .rbst-card {
    border: 0;
    box-shadow: none;
    background: transparent;
}

.rbst-composer--modal .rbst-composer__side {
    padding-top: 0.5rem;
}

@media (min-width: 900px) {
    .rbst-composer--modal {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .rbst-composer--modal .rbst-composer__side {
        border-left: 1px solid var(--rb-border, #e5e7eb);
        padding-left: 0.25rem;
        align-self: stretch;
    }
}

@media (max-width: 720px) {
    .rbst-modal {
        padding: 0;
        align-items: stretch;
    }

    .rbst-modal__panel {
        max-width: none;
        max-height: none;
        min-height: 100vh;
        min-height: 100dvh;
        border-radius: 0;
        border: 0;
    }

    .rbst-form-card {
        padding: 1rem;
    }
}

body.rbst-modal-open {
    overflow: hidden;
}

.rbst-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.rbst-form__rules-link {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--rb-text-muted, #6b7280);
    text-decoration: none;
}

.rbst-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.rbst-check--block {
    display: flex;
    padding: 0.35rem 0;
}

.rbst-check a {
    color: var(--rb-primary, #3b82f6);
}

.rbst-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.rbst-details summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.rbst-details summary::-webkit-details-marker {
    display: none;
}

.rbst-details__body {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--rb-border, #e5e7eb);
    border-radius: var(--rb-radius, 10px);
    background: var(--rb-surface-2, #f9fafb);
    min-width: 240px;
}

.rbst-details--inline {
    display: inline-block;
    position: relative;
}

.rbst-details--inline .rbst-details__body {
    position: absolute;
    z-index: 5;
    left: 0;
    top: 100%;
    background: var(--rb-surface, #fff);
    box-shadow: var(--rb-shadow-lg, 0 10px 30px rgba(0,0,0,0.2));
}

.rbst-rules {
    line-height: 1.6;
}

.rbst-single {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1rem;
    align-items: start;
}

.rbst-single__main,
.rbst-single__side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.rbst-story__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.rbst-story__avatar .rb-av,
.rbst-story__avatar img,
.rbst-story__avatar .rbst-av {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rbst-story__who {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.rbst-story__name {
    font-weight: 700;
    text-decoration: none;
    color: var(--rb-text, inherit);
}

.rbst-story__meta {
    font-size: 0.8rem;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-story__media {
    background: var(--rbst-viewer-bg);
    border-radius: var(--rb-radius, 10px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 78vh;
    min-height: 240px;
}

.rbst-story__media img,
.rbst-story__media video {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    display: block;
}

.rbst-story__frame {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.rbst-story__frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.rbst-story__locked {
    color: rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 3rem 1rem;
}

.rbst-story__locked i {
    font-size: 2rem;
}

.rbst-story__caption {
    padding: 0.75rem 0 0;
    font-size: 1rem;
}

.rbst-story__caption a {
    color: var(--rb-primary, #3b82f6);
    text-decoration: none;
}

.rbst-story__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--rb-border, #e5e7eb);
}

.rbst-story__stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-story__login {
    font-size: 0.85rem;
    color: var(--rb-primary, #3b82f6);
}

.rbst-story__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
    margin-top: 0.75rem;
}

.rbst-reactbar {
    display: inline-flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.rbst-react {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--rb-border, #e5e7eb);
    background: var(--rb-surface, #fff);
    cursor: pointer;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, border-color 0.12s;
    padding: 0;
}

.rbst-react:hover,
.rbst-react:focus-visible {
    transform: scale(1.15);
}

.rbst-react.is-active {
    border-color: var(--rb-primary, #3b82f6);
    background: color-mix(in srgb, var(--rb-primary, #3b82f6) 12%, transparent);
}

.rbst-react--sm {
    width: 30px;
    height: 30px;
    font-size: 1rem;
}

.rbst-reactbar--sm {
    flex-direction: row;
    min-width: 0;
}

.rbst-side__title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rbst-side__count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--rb-text-muted, #6b7280);
    font-weight: 500;
}

.rbst-side__pairs {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.rbst-side__pairs dt {
    color: var(--rb-text-muted, #6b7280);
}

.rbst-side__pairs dd {
    margin: 0;
    text-align: right;
}

.rbst-side__viewers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.rbst-side__viewers .rb-av,
.rbst-side__viewers img,
.rbst-av--xs {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    font-size: 0.8rem;
}

.rbst-side__related {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rbst-side__related-item {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.rbst-side__thumb {
    flex: 0 0 44px;
    width: 44px;
    height: 66px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--rb-surface-2, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-side__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rbst-side__related-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rbst-side__related-title {
    font-size: 0.85rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rbst-side__related-meta {
    font-size: 0.7rem;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-comments__head {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.rbst-comments__count {
    font-size: 0.75rem;
    background: var(--rb-surface-2, #f3f4f6);
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}

.rbst-comment-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    margin-bottom: 0.75rem;
}

.rbst-comment-form textarea {
    flex: 1 1 auto;
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--rb-border, #e5e7eb);
    border-radius: var(--rb-radius, 10px);
    background: var(--rb-surface, #fff);
    color: var(--rb-text, inherit);
    font: inherit;
    resize: vertical;
}

.rbst-comment-form__replying {
    width: 100%;
    font-size: 0.75rem;
    color: var(--rb-text-muted, #6b7280);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.rbst-comment-form__replying button {
    background: none;
    border: 0;
    color: var(--rb-danger, #dc2626);
    cursor: pointer;
    font-size: 0.75rem;
}

.rbst-comments__empty,
.rbst-comments__login,
.rbst-comments__loading {
    color: var(--rb-text-muted, #6b7280);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.rbst-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rbst-comment {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.rbst-comment--reply {
    margin-left: 2.4rem;
}

.rbst-comment.is-deleted {
    opacity: 0.6;
}

.rbst-comment__avatar .rb-av,
.rbst-comment__avatar img,
.rbst-av--sm {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    font-size: 0.85rem;
}

.rbst-comment__body {
    flex: 1 1 auto;
    min-width: 0;
}

.rbst-comment__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.rbst-comment__author {
    font-weight: 700;
    text-decoration: none;
    color: var(--rb-text, inherit);
}

.rbst-comment__time {
    font-size: 0.72rem;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-comment__text {
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
}

.rbst-comment__notice {
    font-size: 0.8rem;
    color: var(--rb-text-muted, #6b7280);
    font-style: italic;
}

.rbst-comment__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    align-items: center;
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

.rbst-comment__action {
    background: none;
    border: 0;
    padding: 0;
    color: var(--rb-text-muted, #6b7280);
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
}

.rbst-comment__action:hover {
    color: var(--rb-primary, #3b82f6);
}

.rbst-comment__action--danger:hover {
    color: var(--rb-danger, #dc2626);
}

.rbst-comment__reactions {
    color: var(--rb-text-muted, #6b7280);
}

.rbst-comment-edit textarea {
    width: 100%;
    min-height: 60px;
    padding: 0.5rem;
    border: 1px solid var(--rb-border, #e5e7eb);
    border-radius: var(--rb-radius, 10px);
    background: var(--rb-surface, #fff);
    color: var(--rb-text, inherit);
    font: inherit;
    box-sizing: border-box;
}

.rbst-w-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.rbst-w-item {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.rbst-w-avatar {
    flex: 0 0 auto;
}

.rbst-w-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.1rem;
}

.rbst-w-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--rb-text, inherit);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rbst-w-snippet,
.rbst-w-meta {
    font-size: 0.72rem;
    color: var(--rb-text-muted, #6b7280);
}

.rbst-profile-mount {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 0.75rem;
}

.rbst-profile-mount[hidden] {
    display: none;
}

.rbst-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem 0.35rem 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--rb-border, #e5e7eb);
    background: var(--rb-surface, #fff);
    text-decoration: none;
    color: var(--rb-text, inherit);
    font-size: 0.85rem;
}

.rbst-profile-link__ring {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: conic-gradient(from 210deg, var(--rbst-ring-1), var(--rbst-ring-3), var(--rbst-ring-5), var(--rbst-ring-1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
}

.rbst-profile-link.is-seen .rbst-profile-link__ring {
    background: var(--rbst-ring-seen);
}

.rbst-viewer {
    position: fixed;
    inset: 0;
    z-index: 99000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rbst-viewer-fg);
    font-size: 14px;
}

.rbst-viewer[hidden] {
    display: none;
}

.rbst-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
}

.rbst-viewer__stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    padding: 24px;
    box-sizing: border-box;
}

.rbst-viewer__card {
    position: relative;
    width: min(var(--rbst-viewer-max-w), 100%);
    max-height: 100%;
    aspect-ratio: 9 / 16;
    background: var(--rbst-viewer-bg);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    flex: 0 1 auto;
    margin: auto 0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.rbst-viewer.is-comments-open .rbst-viewer__card {
    border-radius: 18px 0 0 18px;
}

.rbst-progress {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    z-index: 5;
}

.rbst-progress__bar {
    flex: 1 1 0;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
    overflow: hidden;
}

.rbst-progress__fill {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
}

.rbst-progress__bar.is-done .rbst-progress__fill {
    width: 100%;
}

.rbst-viewer__head {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
}

.rbst-viewer__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.6);
}

.rbst-viewer__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rbst-viewer__avatar img[hidden] {
    display: none;
}

.rbst-viewer__who {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.rbst-viewer__name {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.rbst-viewer__meta {
    font-size: 0.75rem;
    opacity: 0.85;
    display: flex;
    gap: 0.5rem;
}

.rbst-viewer__controls {
    display: flex;
    gap: 0.15rem;
    flex: 0 0 auto;
}

.rbst-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    opacity: 0.9;
    padding: 0;
}

.rbst-btn:hover,
.rbst-btn:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    opacity: 1;
}

.rbst-btn i[hidden] {
    display: none;
}

.rbst-viewer__menu {
    position: absolute;
    top: 100%;
    right: 0.75rem;
    min-width: 200px;
    background: var(--rb-surface, #fff);
    color: var(--rb-text, #111);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    z-index: 6;
}

.rbst-viewer__menu[hidden] {
    display: none;
}

.rbst-viewer__menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.rbst-viewer__menu-item:hover {
    background: var(--rb-surface-2, #f3f4f6);
}

.rbst-viewer__menu-item[hidden] {
    display: none;
}

.rbst-viewer__media {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    cursor: pointer;
}

.rbst-viewer__media img,
.rbst-viewer__media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

.rbst-viewer__media iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.rbst-viewer__loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.rbst-viewer__loader[hidden] {
    display: none;
}

.rbst-viewer__error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: rgba(255,255,255,0.8);
}

.rbst-viewer__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.85);
    color: #111;
    cursor: pointer;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.15s;
}

.rbst-viewer__card:hover .rbst-viewer__nav,
.rbst-viewer__nav:focus-visible {
    opacity: 1;
}

.rbst-viewer__nav--prev { left: 10px; }
.rbst-viewer__nav--next { right: 10px; }

.rbst-viewer__nav[disabled] {
    opacity: 0 !important;
    pointer-events: none;
}

.rbst-viewer__seek {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 74px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
}

.rbst-viewer__seek[hidden] {
    display: none;
}

.rbst-viewer__seek-btn {
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    padding: 0.25rem;
}

.rbst-viewer__seek-track {
    flex: 1 1 auto;
    height: 4px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

.rbst-viewer__seek-fill {
    height: 100%;
    width: 0;
    background: #fff;
}

.rbst-viewer__seek-time {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.rbst-viewer__caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 120px;
    z-index: 4;
    text-align: center;
    font-size: 0.95rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    padding: 0.35rem 0.6rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    pointer-events: none;
}

.rbst-viewer__caption[hidden] {
    display: none;
}

.rbst-viewer .rbst-viewer__link,
.rbst-viewer .rbst-viewer__link:hover,
.rbst-viewer .rbst-viewer__link:focus {
    position: absolute;
    left: 50%;
    bottom: 76px;
    transform: translateX(-50%);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    color: #111 !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.rbst-viewer .rbst-viewer__link[hidden] {
    display: none;
}

.rbst-viewer__foot {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.35));
    min-height: 56px;
}

.rbst-viewer__stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    opacity: 0.9;
    flex: 0 0 auto;
}

.rbst-viewer__reactions {
    display: flex;
    gap: 0.15rem;
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: wrap;
}

.rbst-viewer__reaction {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid transparent;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, background 0.12s;
    padding: 0;
    color: #fff;
}

.rbst-viewer__reaction:hover,
.rbst-viewer__reaction:focus-visible {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.25);
}

.rbst-viewer__reaction.is-active {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.3);
}

.rbst-viewer__reaction.is-burst {
    animation: rbst-burst 0.5s ease;
}

@keyframes rbst-burst {
    0% { transform: scale(1); }
    40% { transform: scale(1.6); }
    100% { transform: scale(1); }
}

.rbst-viewer__comments-toggle {
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    color: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    flex: 0 0 auto;
}

.rbst-viewer__comments-toggle[hidden] {
    display: none;
}

.rbst-viewer__toast {
    position: absolute;
    left: 50%;
    top: 80px;
    transform: translateX(-50%);
    z-index: 7;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    max-width: 90%;
    text-align: center;
}

.rbst-viewer__toast[hidden] {
    display: none;
}

.rbst-viewer__panel {
    width: var(--rbst-panel-w);
    max-width: 100%;
    background: var(--rb-surface, #fff);
    color: var(--rb-text, #111);
    border-radius: 0 18px 18px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: auto 0;
    max-height: 100%;
    min-height: 320px;
    flex: 0 0 auto;
}

.rbst-viewer__panel[hidden] {
    display: none;
}

.rbst-viewer__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--rb-border, #e5e7eb);
    font-weight: 700;
    font-size: 0.9rem;
}

.rbst-viewer__panel-head .rbst-btn {
    color: inherit;
}

.rbst-viewer__panel-head .rbst-btn:hover {
    background: var(--rb-surface-2, #f3f4f6);
}

.rbst-viewer__panel-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.75rem;
    font-size: 14px;
}

.rbst-viewer__panel-body .rbst-comments--embedded .rbst-comment-form {
    position: sticky;
    top: 0;
    background: var(--rb-surface, #fff);
    padding-bottom: 0.5rem;
    z-index: 1;
}

.rbst-viewer.is-fullscreen .rbst-viewer__stage {
    padding: 0;
}

.rbst-viewer.is-fullscreen .rbst-viewer__card {
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    height: 100%;
}

.rbst-ad {
    margin: 0.75rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rbst-ad .ad-slot,
.rbst-ad .ad-row {
    max-width: 100%;
}

.rbst-ad img {
    max-width: 100%;
    height: auto;
}

.rbst-bar .rbst-ad--bar {
    margin: 0.5rem 0.75rem 0.25rem;
}

.rbst-grid__cell--ad {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rbst-ad--grid {
    margin: 0;
    width: 100%;
}

.rbst-ad--sidebar {
    margin: 0 0 1rem;
}

.rbst-ad-holder[hidden] {
    display: none;
}

.rbst-viewer__ad {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.rbst-viewer__ad .ad-slot {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rbst-viewer__ad .ad-slot > * {
    max-width: 100%;
    max-height: 100%;
}

.rbst-viewer__ad img,
.rbst-viewer__ad video,
.rbst-viewer__ad iframe {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rbst-viewer.is-sponsored .rbst-viewer__media {
    cursor: default;
}

.rbst-viewer.is-sponsored .rbst-viewer__name {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.rbst-viewer.is-sponsored .rbst-viewer__avatar {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .rbst-single {
        grid-template-columns: 1fr;
    }

    .rbst-grid--single {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .rbst-strip {
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .rbst-viewer__stage {
        padding: 0;
        flex-direction: column;
    }

    .rbst-viewer__card,
    .rbst-viewer.is-comments-open .rbst-viewer__card {
        width: 100%;
        height: 100%;
        max-height: 100%;
        aspect-ratio: auto;
        border-radius: 0;
        margin: 0;
    }

    .rbst-viewer.is-comments-open .rbst-viewer__card {
        flex: 0 0 45%;
        height: 45%;
    }

    .rbst-viewer__panel {
        width: 100%;
        border-radius: 18px 18px 0 0;
        flex: 1 1 auto;
        margin: 0;
    }

    .rbst-viewer__nav {
        opacity: 0;
    }

    .rbst-viewer__head {
        top: 16px;
    }

    .rbst-progress {
        top: 8px;
        left: 8px;
        right: 8px;
    }

    .rbst-comment-form__label {
        display: none;
    }

    .rbst-ring--lg { --rbst-size: 64px; }
    .rbst-ring--md { --rbst-size: 56px; }

    .rbst-page__title {
        font-size: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rbst-viewer__reaction,
    .rbst-ring__frame,
    .rbst-react {
        transition: none;
    }

    .rbst-viewer__reaction.is-burst {
        animation: none;
    }
}
