/* =========================================================
   RUSTOFILYA — DASHBOARD
   Общая основа кабинета и административной панели
   Область действия: .rf-dashboard
   ========================================================= */

.rf-dashboard {
    --rf-bg: #101113;
    --rf-panel: #191b20;
    --rf-panel-raised: #212329;

    --rf-text: #f4f2ee;
    --rf-muted: #96979f;
    --rf-orange: #ff7547;
    --rf-green: #9ed7b1;

    --rf-border: rgba(255, 255, 255, 0.09);
    --rf-border-strong: rgba(255, 255, 255, 0.16);
    --rf-accent-rgb: 255, 117, 71;

    --rf-radius: 18px;
    --rf-ease: cubic-bezier(.22, 1, .36, 1);

    position: relative;
    min-width: 0;
    min-height: 76vh;
    padding: 40px 0 70px;
    background:
            radial-gradient(
                    ellipse at 90% 0,
                    rgba(var(--rf-accent-rgb), 0.045),
                    transparent 48%
            ),
            var(--rf-bg);
    color: var(--rf-text);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
   БАЗА
   ========================================================= */

.rf-dashboard *,
.rf-dashboard *::before,
.rf-dashboard *::after {
    box-sizing: border-box;
}

.rf-dashboard [hidden] {
    display: none !important;
}

.rf-dashboard :is(h1, h2, h3, p, dl, dd) {
    margin: 0;
}

.rf-dashboard :is(h1, h2, h3) {
    font-family: inherit;
    text-wrap: balance;
}

.rf-dashboard a {
    color: inherit;
    text-decoration: none;
}

.rf-dashboard button,
.rf-dashboard input,
.rf-dashboard textarea,
.rf-dashboard select {
    font: inherit;
}

.rf-dashboard button,
.rf-dashboard a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.rf-dashboard button {
    cursor: pointer;
}

.rf-dashboard button:disabled {
    cursor: not-allowed;
}

.rf-dashboard :is(a, button, input, textarea, select):focus-visible {
    outline: 2px solid var(--rf-orange);
    outline-offset: 5px;
}

.rf-dashboard ::selection {
    background: var(--rf-orange);
    color: var(--rf-bg);
}

/* =========================================================
   РАБОЧАЯ ОБЛАСТЬ
   ========================================================= */

.rf-dashboard .rf-workspace {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    width: min(1240px, calc(100% - 64px));
    margin-inline: auto;
}

.rf-dashboard .rf-content {
    display: grid;
    min-width: 0;
    gap: 23px;
}

.rf-dashboard .rf-icon {
    display: inline-block;
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* =========================================================
   БОКОВАЯ ПАНЕЛЬ
   ========================================================= */

.rf-dashboard .rf-sidebar {
    position: sticky;
    top: 160px;
    min-width: 0;
    padding: 22px 13px 14px;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background:
            linear-gradient(
                    145deg,
                    rgba(255, 255, 255, 0.018),
                    transparent 70%
            ),
            var(--rf-panel);
    box-shadow:
            inset 0 1px rgba(255, 255, 255, 0.025),
            0 15px 40px rgba(0, 0, 0, 0.07);
}

.rf-dashboard .rf-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 9px 24px;
}

.rf-dashboard .rf-sidebar-brand > div {
    min-width: 0;
}

.rf-dashboard .rf-sidebar-brand strong {
    display: block;
    margin-top: 5px;
    color: var(--rf-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.rf-dashboard .rf-sidebar-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 43px;
    height: 46px;
    flex-shrink: 0;
    padding-right: 3px;
    overflow: hidden;
    border: 1px solid rgba(var(--rf-accent-rgb), 0.3);
    border-radius: 11px;
    background: linear-gradient(
            145deg,
            rgba(var(--rf-accent-rgb), 0.12),
            rgba(var(--rf-accent-rgb), 0.035)
    );
    color: var(--rf-orange);
    box-shadow: inset 0 1px rgba(255, 199, 168, 0.05);
    font-size: 21px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -2px;
}

.rf-dashboard .rf-overline {
    color: var(--rf-orange);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.7;
    text-transform: uppercase;
}

.rf-dashboard .rf-sidebar-brand .rf-overline {
    font-size: 8px;
    letter-spacing: 1.2px;
}

.rf-dashboard .rf-nav-label {
    margin: 14px 0 11px;
    padding-inline: 11px;
    color: #747780;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;
    line-height: 1.8;
}

/* =========================================================
   ПУНКТЫ МЕНЮ
   ========================================================= */

.rf-dashboard .rf-sidebar-nav {
    display: grid;
    gap: 5px;
}

.rf-dashboard .rf-menu-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 44px;
    padding: 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #a2a5ad;
    font-size: 12px;
    line-height: 1.6;
    text-align: left;
    cursor: pointer;
    transition:
            background 0.2s,
            color 0.2s,
            border-color 0.2s;
}

.rf-dashboard .rf-menu-item > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.rf-dashboard .rf-menu-item .rf-icon {
    width: 18px;
    height: 18px;
    color: #858995;
}

.rf-dashboard .rf-menu-item > .rf-icon:last-child:not(:first-child) {
    width: 14px;
    height: 14px;
}

.rf-dashboard .rf-menu-item.is-current {
    border-color: rgba(var(--rf-accent-rgb), 0.2);
    background: linear-gradient(
            100deg,
            rgba(var(--rf-accent-rgb), 0.11),
            rgba(var(--rf-accent-rgb), 0.025)
    );
    color: #ffad88;
}

.rf-dashboard .rf-menu-item.is-current .rf-icon {
    color: var(--rf-orange);
}

.rf-dashboard .rf-menu-item:disabled {
    opacity: 0.43;
    cursor: not-allowed;
}

.rf-dashboard .rf-menu-caption {
    flex: 0 0 auto !important;
    color: #82858d;
    font-size: 9px;
    white-space: nowrap;
}

.rf-dashboard .rf-mini-lock .rf-icon {
    width: 12px;
    height: 12px;
}

.rf-dashboard .rf-sidebar-bottom {
    margin-top: 27px;
    padding-top: 17px;
    border-top: 1px solid var(--rf-border);
}

.rf-dashboard .rf-session-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    color: #92969e;
    font-size: 10px;
    line-height: 1.7;
}

.rf-dashboard .rf-live-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--rf-green);
    box-shadow: 0 0 10px rgba(158, 215, 177, 0.25);
}

.rf-dashboard .rf-logout {
    margin-top: 8px;
}

.rf-dashboard .rf-logout-button {
    color: #c09b8a;
}

/* =========================================================
   ЗАГОЛОВОК СТРАНИЦЫ
   ========================================================= */

.rf-dashboard .rf-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 5px 0 7px;
}

.rf-dashboard .rf-page-heading > div {
    min-width: 0;
}

.rf-dashboard h1 {
    margin-top: 12px;
    color: var(--rf-text);
    font-size: clamp(30px, 3vw, 43px);
    font-weight: 800;
    letter-spacing: -1.7px;
    line-height: 1.14;
}

.rf-dashboard h1 span {
    color: var(--rf-orange);
}

.rf-dashboard .rf-subtitle {
    max-width: 680px;
    margin-top: 13px;
    color: var(--rf-muted);
    font-size: 13px;
    line-height: 1.85;
}

/* =========================================================
   БЕЙДЖИ
   ========================================================= */

.rf-dashboard .rf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 6px 9px;
    border: 1px solid var(--rf-border);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
    color: #bbbcc2;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.rf-dashboard .rf-badge .rf-icon {
    width: 13px;
    height: 13px;
}

.rf-dashboard .rf-badge-green {
    border-color: rgba(158, 215, 177, 0.18);
    background: rgba(158, 215, 177, 0.045);
    color: var(--rf-green);
}

.rf-dashboard .rf-badge-orange {
    border-color: rgba(var(--rf-accent-rgb), 0.22);
    background: rgba(var(--rf-accent-rgb), 0.06);
    color: #ffb08c;
}

.rf-dashboard .rf-badge-muted {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.015);
    color: #8a8e99;
}

.rf-dashboard .rf-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

/* =========================================================
   ПАНЕЛИ
   ========================================================= */

.rf-dashboard .rf-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    background:
            linear-gradient(
                    145deg,
                    rgba(255, 255, 255, 0.012),
                    transparent 65%
            ),
            var(--rf-panel);
    box-shadow:
            inset 0 1px rgba(255, 255, 255, 0.025),
            0 12px 35px rgba(0, 0, 0, 0.055);
}

.rf-dashboard .rf-section-card {
    padding: 27px;
    scroll-margin-top: 170px;
}

.rf-dashboard #overview {
    scroll-margin-top: 170px;
}

.rf-dashboard .rf-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 21px;
}

.rf-dashboard .rf-section-heading > div {
    min-width: 0;
}

.rf-dashboard .rf-section-heading h2 {
    margin-top: 7px;
    color: var(--rf-text);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.7px;
    line-height: 1.35;
}

.rf-dashboard .rf-section-heading > .rf-icon {
    color: #a2a4aa;
}

/* =========================================================
   ПРОФИЛЬ
   ========================================================= */

.rf-dashboard .rf-profile-hero {
    position: relative;
    isolation: isolate;
    padding: 32px;
    background:
            radial-gradient(
                    ellipse at 100% 0,
                    rgba(var(--rf-accent-rgb), 0.11),
                    transparent 65%
            ),
            linear-gradient(125deg, #212126, #191b20);
}

.rf-dashboard .rf-hero-decoration {
    position: absolute;
    z-index: -1;
    top: -22px;
    right: 8px;
    color: rgba(255, 160, 118, 0.045);
    font-size: 220px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -22px;
    line-height: 1;
    transform: rotate(-8deg);
    pointer-events: none;
    user-select: none;
}

.rf-dashboard .rf-profile-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 23px;
    min-width: 0;
}

.rf-dashboard .rf-avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 90px;
    height: 94px;
    flex-shrink: 0;
    border: 1px solid rgba(var(--rf-accent-rgb), 0.35);
    border-radius: 20px;
    background: linear-gradient(145deg, #422d25, #242025);
    color: #f1d5c1;
    box-shadow:
            inset 0 1px rgba(255, 210, 184, 0.08),
            0 12px 28px rgba(0, 0, 0, 0.16);
    font-size: 36px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -3px;
}

.rf-dashboard .rf-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.rf-dashboard .rf-avatar-status {
    position: absolute;
    right: -3px;
    bottom: 10px;
    width: 12px;
    height: 12px;
    border: 3px solid #252120;
    border-radius: 50%;
    background: var(--rf-green);
}

.rf-dashboard .rf-profile-identity {
    min-width: 0;
}

.rf-dashboard .rf-profile-identity h2 {
    margin: 8px 0 13px;
    color: var(--rf-text);
    font-size: clamp(23px, 2.4vw, 32px);
    font-weight: 750;
    letter-spacing: -0.9px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.rf-dashboard .rf-profile-bottom {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 28px;
    padding-top: 23px;
    border-top: 1px solid var(--rf-border);
}

/* =========================================================
   ПОЛЯ И КОПИРОВАНИЕ
   ========================================================= */

.rf-dashboard .rf-field-label {
    display: block;
    color: #858993;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
    line-height: 1.7;
}

.rf-dashboard .rf-copy-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    min-width: 0;
    margin-top: 7px;
}

.rf-dashboard .rf-copy-row code {
    padding: 0;
    background: none;
    color: #d5d4db;
    font-family: monospace;
    font-size: 13px;
    letter-spacing: 0.4px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.rf-dashboard .rf-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid var(--rf-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    color: #a1a4ae;
    transition:
            color 0.2s,
            border-color 0.2s,
            background 0.2s;
}

.rf-dashboard .rf-icon-button .rf-icon {
    width: 15px;
    height: 15px;
}

.rf-dashboard .rf-copy-feedback {
    color: var(--rf-green);
    font-size: 10px;
    line-height: 1.7;
}

/* =========================================================
   КНОПКИ
   ========================================================= */

.rf-dashboard .rf-action {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 44px;
    padding: 12px 17px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--rf-text);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    white-space: normal;
    transition:
            transform 0.25s var(--rf-ease),
            background 0.25s,
            border-color 0.25s,
            box-shadow 0.25s;
}

.rf-dashboard .rf-action::before {
    position: absolute;
    z-index: 2;
    top: -100%;
    bottom: -100%;
    left: -45%;
    width: 18%;
    content: "";
    background: linear-gradient(
            100deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent
    );
    opacity: 0;
    transform: skewX(-18deg);
    pointer-events: none;
}

.rf-dashboard .rf-action .rf-icon {
    width: 16px;
    height: 16px;
}

.rf-dashboard .rf-action-primary {
    border-color: rgba(255, 188, 157, 0.25);
    background: linear-gradient(125deg, #ff936e, #ff7547 70%);
    color: #19110e;
    box-shadow:
            inset 0 1px rgba(255, 225, 209, 0.3),
            0 8px 25px rgba(var(--rf-accent-rgb), 0.1);
}

.rf-dashboard .rf-action-secondary {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.025);
    color: #dedce2;
}

.rf-dashboard .rf-action-ghost {
    border-color: transparent;
    background: transparent;
    color: #c8b8ae;
}

.rf-dashboard .rf-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rf-dashboard .rf-action:disabled::before {
    display: none;
}

/* =========================================================
   СТАТИСТИЧЕСКИЕ КАРТОЧКИ
   ========================================================= */

.rf-dashboard .rf-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.rf-dashboard .rf-stat-card {
    position: relative;
    min-width: 0;
    padding: 25px;
    border: 1px solid var(--rf-border);
    border-radius: 15px;
    background:
            radial-gradient(
                    ellipse at 100% 0,
                    rgba(var(--rf-accent-rgb), 0.035),
                    transparent 65%
            ),
            var(--rf-panel);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
    transition:
            border-color 0.25s,
            box-shadow 0.25s;
}

.rf-dashboard .rf-stat-icon {
    position: absolute;
    top: 20px;
    right: 19px;
    color: #be856b;
}

.rf-dashboard .rf-icon-green {
    color: var(--rf-green);
}

.rf-dashboard .rf-stat-card .rf-field-label {
    padding-right: 27px;
}

.rf-dashboard .rf-stat-card > strong {
    display: block;
    margin: 17px 0 8px;
    color: var(--rf-text);
    font-size: clamp(18px, 1.8vw, 25px);
    font-weight: 700;
    letter-spacing: -0.7px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.rf-dashboard .rf-muted {
    display: block;
    color: var(--rf-muted);
    font-size: 11px;
    line-height: 1.8;
}

/* =========================================================
   ДВУХКОЛОНОЧНЫЕ БЛОКИ
   ========================================================= */

.rf-dashboard .rf-two-column {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
    gap: 20px;
}

.rf-dashboard .rf-two-column-admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* =========================================================
   ПУСТЫЕ СОСТОЯНИЯ
   ========================================================= */

.rf-dashboard .rf-empty-state {
    padding: 17px 12px 11px;
    text-align: center;
}

.rf-dashboard .rf-empty-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border: 1px dashed rgba(var(--rf-accent-rgb), 0.25);
    border-radius: 15px;
    background: rgba(var(--rf-accent-rgb), 0.03);
    color: #ca8b6c;
}

.rf-dashboard .rf-empty-icon .rf-icon {
    width: 25px;
    height: 25px;
}

.rf-dashboard .rf-empty-state h3 {
    color: var(--rf-text);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.4;
}

.rf-dashboard .rf-empty-state p {
    max-width: 350px;
    margin: 12px auto 21px;
    color: var(--rf-muted);
    font-size: 12px;
    line-height: 1.9;
}

/* =========================================================
   ИНФОРМАЦИЯ ОБ АККАУНТЕ
   ========================================================= */

.rf-dashboard .rf-detail-list {
    margin-top: 4px;
}

.rf-dashboard .rf-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-block: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    font-size: 12px;
    line-height: 1.7;
}

.rf-dashboard .rf-detail-row > span {
    color: var(--rf-muted);
}

.rf-dashboard .rf-detail-row > strong {
    color: #dedce2;
    font-size: 12px;
    font-weight: 500;
    text-align: right;
    overflow-wrap: anywhere;
}

.rf-dashboard .rf-text-green {
    color: var(--rf-green) !important;
}

.rf-dashboard .rf-info-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0 18px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.018);
    color: #92939e;
}

.rf-dashboard .rf-info-note .rf-icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.rf-dashboard .rf-info-note p {
    font-size: 11px;
    line-height: 1.85;
}

.rf-dashboard .rf-text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e5a17f;
    font-size: 11px;
    line-height: 1.7;
    transition: color 0.2s;
}

.rf-dashboard .rf-text-link .rf-icon {
    width: 14px;
    height: 14px;
}

.rf-dashboard .rf-bottom-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    color: #737780;
    font-size: 8px;
    line-height: 1.8;
}

.rf-dashboard .rf-bottom-caption > span:first-child {
    letter-spacing: 1.3px;
}

/* =========================================================
   АДМИНКА — ГЛАВНЫЙ БЛОК
   ========================================================= */

.rf-dashboard .rf-admin-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 34px;
    background:
            radial-gradient(
                    ellipse at 100% 10%,
                    rgba(var(--rf-accent-rgb), 0.11),
                    transparent 65%
            ),
            linear-gradient(125deg, #232024, #191b20);
}

.rf-dashboard .rf-admin-hero .rf-hero-decoration {
    top: 48px;
    right: 5px;
    font-size: 160px;
    letter-spacing: -15px;
}

.rf-dashboard .rf-admin-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 530px;
}

.rf-dashboard .rf-admin-hero h2 {
    margin-top: 18px;
    color: var(--rf-text);
    font-size: clamp(26px, 2.7vw, 37px);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.18;
}

.rf-dashboard .rf-admin-hero p {
    max-width: 450px;
    margin-top: 16px;
    color: #a5a0a5;
    font-size: 13px;
    line-height: 1.85;
}

.rf-dashboard .rf-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.rf-dashboard .rf-admin-emblem {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 17px;
    width: 145px;
    height: 165px;
    flex-shrink: 0;
    border: 1px solid rgba(var(--rf-accent-rgb), 0.2);
    border-radius: 22px;
    background:
            radial-gradient(
                    ellipse at 50% 30%,
                    rgba(var(--rf-accent-rgb), 0.07),
                    transparent 75%
            ),
            rgba(255, 255, 255, 0.012);
    color: #d29373;
    box-shadow: inset 0 1px rgba(255, 207, 177, 0.035);
    transform: rotate(5deg);
}

.rf-dashboard .rf-admin-emblem > .rf-icon {
    width: 64px;
    height: 64px;
    stroke-width: 1;
}

.rf-dashboard .rf-admin-emblem > span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* =========================================================
   АДМИНКА — МОДУЛИ
   ========================================================= */

.rf-dashboard .rf-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.rf-dashboard .rf-module {
    position: relative;
    min-width: 0;
    padding: 23px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    background:
            linear-gradient(
                    135deg,
                    rgba(255, 255, 255, 0.008),
                    transparent
            ),
            rgba(0, 0, 0, 0.08);
    transition:
            border-color 0.25s,
            transform 0.25s var(--rf-ease),
            box-shadow 0.25s;
}

.rf-dashboard .rf-module-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.rf-dashboard .rf-module-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(var(--rf-accent-rgb), 0.16);
    border-radius: 10px;
    background: rgba(var(--rf-accent-rgb), 0.04);
    color: #dc9676;
}

.rf-dashboard .rf-module h3 {
    margin-top: 18px;
    color: var(--rf-text);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.4;
}

.rf-dashboard .rf-module p {
    min-height: 62px;
    margin-top: 11px;
    color: var(--rf-muted);
    font-size: 12px;
    line-height: 1.85;
}

.rf-dashboard .rf-module-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 17px;
    padding: 16px 0 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: #e8a17f;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    text-align: left;
    transition: color 0.2s;
}

.rf-dashboard .rf-module-link .rf-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.25s var(--rf-ease);
}

.rf-dashboard .rf-module-link:disabled {
    color: #797e88;
    cursor: not-allowed;
}

/* =========================================================
   АДМИНКА — ПОЛЬЗОВАТЕЛЬ
   ========================================================= */

.rf-dashboard .rf-admin-user {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    margin-block: 23px;
}

.rf-dashboard .rf-small-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 48px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid rgba(var(--rf-accent-rgb), 0.22);
    border-radius: 11px;
    background: rgba(var(--rf-accent-rgb), 0.05);
    color: #e9b193;
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
}

.rf-dashboard .rf-small-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rf-dashboard .rf-admin-user > div {
    min-width: 0;
}

.rf-dashboard .rf-admin-user strong {
    display: block;
    margin-bottom: 5px;
    color: var(--rf-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* =========================================================
   ПЛАН РАЗВИТИЯ
   ========================================================= */

.rf-dashboard .rf-roadmap {
    display: grid;
    gap: 20px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.rf-dashboard .rf-roadmap li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.rf-dashboard .rf-roadmap li > span {
    display: inline-grid;
    place-items: center;
    min-width: 29px;
    min-height: 29px;
    flex-shrink: 0;
    padding: 7px;
    border: 1px solid rgba(var(--rf-accent-rgb), 0.15);
    border-radius: 7px;
    background: rgba(var(--rf-accent-rgb), 0.03);
    color: #cd8e70;
    font-family: monospace;
    font-size: 9px;
    line-height: 1;
}

.rf-dashboard .rf-roadmap strong {
    display: block;
    color: #dddbe2;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.rf-dashboard .rf-roadmap p {
    margin-top: 6px;
    color: var(--rf-muted);
    font-size: 11px;
    line-height: 1.8;
}

/* =========================================================
   ЭФФЕКТЫ НАВЕДЕНИЯ
   ========================================================= */

@media (hover: hover) {

    .rf-dashboard .rf-menu-item:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.035);
        color: var(--rf-text);
    }

    .rf-dashboard .rf-menu-item.is-current:hover {
        border-color: rgba(var(--rf-accent-rgb), 0.3);
        background: rgba(var(--rf-accent-rgb), 0.1);
        color: #ffb28e;
    }

    .rf-dashboard .rf-action:hover:not(:disabled) {
        transform: translateY(-2px);
    }

    .rf-dashboard .rf-action:hover:not(:disabled)::before {
        animation: rf-dashboard-shine 0.48s var(--rf-ease) both;
    }

    .rf-dashboard .rf-action-primary:hover:not(:disabled) {
        background: linear-gradient(125deg, #ffa17e, #ff936e 70%);
        box-shadow:
                inset 0 1px rgba(255, 225, 209, 0.4),
                0 11px 30px rgba(var(--rf-accent-rgb), 0.17);
    }

    .rf-dashboard .rf-action-secondary:hover:not(:disabled) {
        border-color: rgba(var(--rf-accent-rgb), 0.35);
        background: rgba(var(--rf-accent-rgb), 0.045);
    }

    .rf-dashboard .rf-action-ghost:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.025);
        color: var(--rf-text);
    }

    .rf-dashboard .rf-icon-button:hover:not(:disabled) {
        border-color: rgba(var(--rf-accent-rgb), 0.4);
        background: rgba(var(--rf-accent-rgb), 0.05);
        color: var(--rf-orange);
    }

    .rf-dashboard .rf-stat-card:hover {
        border-color: rgba(var(--rf-accent-rgb), 0.2);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
    }

    .rf-dashboard .rf-module:hover {
        border-color: rgba(var(--rf-accent-rgb), 0.25);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
        transform: translateY(-3px);
    }

    .rf-dashboard .rf-module-link:hover:not(:disabled) {
        color: #ffb18d;
    }

    .rf-dashboard .rf-module-link:hover:not(:disabled) .rf-icon {
        transform: translate(2px, -2px);
    }

    .rf-dashboard .rf-text-link:hover {
        color: #ffb18d;
    }

}

/* =========================================================
   АНИМАЦИЯ БЛИКА
   ========================================================= */

@keyframes rf-dashboard-shine {
    0% {
        left: -45%;
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    85% {
        opacity: 0.7;
    }

    100% {
        left: 135%;
        opacity: 0;
    }
}

/* =========================================================
   АДАПТИВ — ДО 1100px
   ========================================================= */

@media (max-width: 1100px) {

    .rf-dashboard .rf-workspace {
        grid-template-columns: 205px minmax(0, 1fr);
        width: calc(100% - 40px);
        gap: 22px;
    }

    .rf-dashboard .rf-sidebar {
        padding-inline: 10px;
    }

    .rf-dashboard .rf-sidebar-brand {
        gap: 9px;
        padding-inline: 5px;
    }

    .rf-dashboard .rf-sidebar-brand strong {
        font-size: 12px;
    }

    .rf-dashboard .rf-menu-item {
        gap: 8px;
        padding-inline: 9px;
        font-size: 11px;
    }

    .rf-dashboard .rf-page-heading {
        align-items: flex-start;
    }

    .rf-dashboard .rf-profile-hero {
        padding: 26px;
    }

    .rf-dashboard .rf-avatar {
        width: 72px;
        height: 78px;
        border-radius: 17px;
        font-size: 30px;
    }

    .rf-dashboard .rf-profile-top {
        gap: 18px;
    }

    .rf-dashboard .rf-profile-identity h2 {
        font-size: 26px;
    }

    .rf-dashboard .rf-profile-bottom {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .rf-dashboard .rf-stat-grid {
        gap: 11px;
    }

    .rf-dashboard .rf-stat-card {
        padding: 21px 17px;
    }

    .rf-dashboard .rf-stat-card > strong {
        font-size: 19px;
    }

    .rf-dashboard .rf-two-column {
        grid-template-columns: 1fr;
    }

    .rf-dashboard .rf-admin-hero {
        padding: 28px;
    }

    .rf-dashboard .rf-admin-emblem {
        width: 112px;
        height: 136px;
        border-radius: 18px;
    }

    .rf-dashboard .rf-admin-emblem > .rf-icon {
        width: 49px;
        height: 49px;
    }

    .rf-dashboard .rf-admin-emblem > span {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .rf-dashboard .rf-module {
        padding: 20px;
    }

}

/* =========================================================
   АДАПТИВ — ДО 780px
   ========================================================= */

@media (max-width: 780px) {

    .rf-dashboard {
        padding: 25px 0 55px;
    }

    .rf-dashboard .rf-workspace {
        grid-template-columns: 1fr;
        width: calc(100% - 32px);
        gap: 24px;
    }

    .rf-dashboard .rf-sidebar {
        position: static;
        padding: 17px;
        border-radius: 16px;
    }

    .rf-dashboard .rf-sidebar-brand {
        padding: 0 0 14px;
    }

    .rf-dashboard .rf-sidebar-brand strong {
        font-size: 14px;
    }

    .rf-dashboard .rf-nav-label {
        margin: 8px 0 10px;
        padding-inline: 0;
    }

    .rf-dashboard .rf-sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
    }

    .rf-dashboard .rf-sidebar-nav > .rf-menu-item {
        width: auto;
        min-height: 39px;
        padding: 9px 11px;
        border-color: rgba(255, 255, 255, 0.05);
        font-size: 11px;
    }

    .rf-dashboard .rf-sidebar-nav > .rf-nav-label {
        flex-basis: 100%;
        margin: 9px 0;
    }

    .rf-dashboard .rf-sidebar-bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 15px;
        padding-top: 12px;
    }

    .rf-dashboard .rf-sidebar-bottom > .rf-menu-item {
        width: auto;
    }

    .rf-dashboard .rf-sidebar-bottom .rf-logout {
        margin: 0;
    }

    .rf-dashboard .rf-session-note {
        padding: 7px 2px;
    }

    .rf-dashboard .rf-page-heading {
        flex-wrap: wrap;
        gap: 13px;
    }

    .rf-dashboard h1 {
        font-size: 35px;
    }

    .rf-dashboard .rf-content {
        gap: 20px;
    }

    .rf-dashboard .rf-stat-card > strong {
        font-size: 20px;
    }

    .rf-dashboard .rf-section-card {
        padding: 25px;
    }

    .rf-dashboard .rf-admin-emblem {
        display: none;
    }

    .rf-dashboard .rf-admin-hero h2 {
        max-width: 600px;
        font-size: 34px;
    }

}

/* =========================================================
   АДАПТИВ — ДО 490px
   ========================================================= */

@media (max-width: 490px) {

    .rf-dashboard {
        padding-top: 20px;
        padding-bottom: 42px;
    }

    .rf-dashboard .rf-workspace {
        width: calc(100% - 24px);
        gap: 21px;
    }

    .rf-dashboard .rf-sidebar {
        padding: 15px;
    }

    .rf-dashboard .rf-sidebar-mark {
        width: 37px;
        height: 40px;
        border-radius: 10px;
        font-size: 19px;
    }

    .rf-dashboard .rf-page-heading h1 {
        font-size: 30px;
        letter-spacing: -1.1px;
    }

    .rf-dashboard .rf-page-heading > .rf-badge {
        margin-top: 2px;
    }

    .rf-dashboard .rf-subtitle {
        font-size: 12px;
    }

    .rf-dashboard .rf-overline {
        font-size: 8px;
        letter-spacing: 1.2px;
    }

    .rf-dashboard .rf-profile-hero {
        padding: 23px;
    }

    .rf-dashboard .rf-profile-top {
        align-items: flex-start;
        gap: 14px;
    }

    .rf-dashboard .rf-avatar {
        width: 57px;
        height: 63px;
        border-radius: 14px;
        font-size: 26px;
    }

    .rf-dashboard .rf-profile-identity h2 {
        margin-top: 6px;
        font-size: 21px;
        letter-spacing: -0.5px;
    }

    .rf-dashboard .rf-profile-identity .rf-overline {
        font-size: 7px;
    }

    .rf-dashboard .rf-tag-row {
        gap: 5px;
    }

    .rf-dashboard .rf-tag-row .rf-badge {
        padding: 5px 6px;
        font-size: 8px;
        white-space: normal;
    }

    .rf-dashboard .rf-profile-bottom {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        margin-top: 23px;
        padding-top: 20px;
    }

    .rf-dashboard .rf-copy-row code {
        font-size: 12px;
        letter-spacing: 0;
    }

    .rf-dashboard .rf-action {
        gap: 12px;
        min-height: 43px;
        padding: 12px 15px;
        font-size: 11px;
    }

    .rf-dashboard .rf-stat-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .rf-dashboard .rf-stat-card {
        padding: 20px;
    }

    .rf-dashboard .rf-stat-card > strong {
        margin: 12px 0 6px;
        font-size: 23px;
    }

    .rf-dashboard .rf-module-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .rf-dashboard .rf-module {
        padding: 22px;
    }

    .rf-dashboard .rf-module p {
        min-height: 0;
    }

    .rf-dashboard .rf-section-card {
        padding: 23px;
    }

    .rf-dashboard .rf-section-heading h2 {
        font-size: 21px;
    }

    .rf-dashboard .rf-admin-hero {
        padding: 25px;
    }

    .rf-dashboard .rf-admin-hero h2 {
        font-size: 29px;
        letter-spacing: -1px;
    }

    .rf-dashboard .rf-admin-hero p {
        font-size: 12px;
    }

    .rf-dashboard .rf-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .rf-dashboard .rf-hero-actions .rf-action {
        width: 100%;
    }

    .rf-dashboard .rf-sidebar-nav > .rf-menu-item {
        gap: 7px;
        padding: 8px 10px;
        font-size: 10px;
    }

    .rf-dashboard .rf-detail-row {
        align-items: flex-start;
        font-size: 11px;
    }

    .rf-dashboard .rf-detail-row > strong {
        font-size: 11px;
    }

    .rf-dashboard .rf-info-note {
        padding: 12px;
    }

    .rf-dashboard .rf-info-note p {
        font-size: 10px;
    }

    .rf-dashboard .rf-empty-state {
        padding-inline: 0;
    }

    .rf-dashboard .rf-empty-state h3 {
        font-size: 19px;
    }

    .rf-dashboard .rf-empty-state p {
        font-size: 12px;
    }

    .rf-dashboard .rf-bottom-caption {
        font-size: 7px;
    }

}

/* =========================================================
   УМЕНЬШЕННОЕ ДВИЖЕНИЕ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .rf-dashboard,
    .rf-dashboard *,
    .rf-dashboard *::before,
    .rf-dashboard *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .rf-dashboard .rf-action:hover,
    .rf-dashboard .rf-module:hover {
        transform: none;
    }

}
/* =========================================================
   RUSTOFILYA — USERS
   Список пользователей и административная карточка
   Добавить в конец dashboard.css
   ========================================================= */

/* =========================================================
   ОСНОВНАЯ СЕТКА
   ========================================================= */

.rf-dashboard.rf-users .rf-workspace {
    width: min(1400px, calc(100% - 64px));
    grid-template-columns: 225px minmax(0, 1fr);
    align-items: start;
    gap: 26px;
}

.rf-dashboard.rf-users .rf-content {
    min-width: 0;
    gap: 23px;
}

.rf-dashboard.rf-users .rf-sidebar {
    position: static;
    top: auto;
    align-self: start;
    margin-top: 0;
}

/* =========================================================
   ЗАГОЛОВОК
   ========================================================= */

.rf-dashboard.rf-users .rf-page-heading {
    align-items: flex-start;
}

.rf-dashboard.rf-users .rf-page-heading > .rf-badge {
    flex-shrink: 0;
    margin-top: 7px;
}

.rf-dashboard.rf-users .rf-subtitle {
    max-width: 650px;
}

/* =========================================================
   СТАТИСТИКА
   ========================================================= */

.rf-dashboard.rf-users .rf-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.rf-dashboard.rf-users .rf-stat-card {
    padding: 25px;
}

.rf-dashboard.rf-users .rf-stat-card > strong {
    margin: 18px 0 9px;
    font-size: clamp(29px, 3vw, 39px);
    font-weight: 750;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.rf-dashboard.rf-users .rf-stat-card .rf-muted {
    font-size: 10px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* =========================================================
   ФОРМА ПОИСКА И ФИЛЬТРОВ
   ========================================================= */

.rf-dashboard.rf-users .rf-users-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px auto;
    align-items: end;
    gap: 15px;
}

.rf-dashboard.rf-users .rf-users-field {
    display: grid;
    align-content: start;
    min-width: 0;
    gap: 9px;
}

.rf-dashboard.rf-users .rf-users-field .rf-field-label {
    color: #a49da5;
    font-size: 8px;
    letter-spacing: 1px;
    line-height: 1.8;
}

.rf-dashboard.rf-users .rf-users-field input,
.rf-dashboard.rf-users .rf-users-field select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 45px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: #14171c;
    color: #e4dde4;
    box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.08);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.6;
    transition:
            border-color 0.2s,
            box-shadow 0.2s,
            background 0.2s;
}

.rf-dashboard.rf-users .rf-users-field input::placeholder {
    color: #777b88;
    opacity: 1;
}

.rf-dashboard.rf-users .rf-users-field select {
    padding-right: 32px;
    cursor: pointer;
}

.rf-dashboard.rf-users .rf-users-field select option {
    background: #191b20;
    color: #f4f2ee;
}

.rf-dashboard.rf-users .rf-users-field input:focus,
.rf-dashboard.rf-users .rf-users-field select:focus {
    border-color: rgba(255, 117, 71, 0.55);
    outline: 2px solid #ff7547;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(255, 117, 71, 0.035);
}

.rf-dashboard.rf-users .rf-users-filter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.rf-dashboard.rf-users .rf-users-filter-actions .rf-action {
    min-height: 45px;
    white-space: nowrap;
}

.rf-dashboard.rf-users .rf-users-filters + .rf-info-note {
    margin-bottom: 0;
}

/* =========================================================
   ПАНЕЛЬ РЕЗУЛЬТАТОВ
   ========================================================= */

.rf-dashboard.rf-users .rf-users-results {
    min-width: 0;
    overflow: hidden;
}

.rf-dashboard.rf-users .rf-users-results-heading {
    padding: 27px 27px 23px;
}

.rf-dashboard.rf-users .rf-users-results-heading .rf-section-heading {
    margin-bottom: 0;
}

.rf-dashboard.rf-users .rf-users-results-heading .rf-badge {
    flex-shrink: 0;
    gap: 8px;
}

.rf-dashboard.rf-users .rf-users-results-heading .rf-badge > span:last-child {
    color: #f2c1a3;
    font-weight: 700;
}

/* =========================================================
   ТАБЛИЦА
   ========================================================= */

.rf-dashboard.rf-users .rf-users-table-wrap {
    min-width: 0;
    width: 100%;
    overflow-x: auto;
    border-top: 1px solid var(--rf-border);
    scrollbar-width: thin;
    scrollbar-color: #65453b #191b20;
    -webkit-overflow-scrolling: touch;
}

.rf-dashboard.rf-users .rf-users-table-wrap:focus-visible {
    outline: 2px solid var(--rf-orange);
    outline-offset: -3px;
}

.rf-dashboard.rf-users .rf-users-table {
    width: 100%;
    min-width: 760px;
    margin: 0;
    border-collapse: collapse;
    text-align: left;
}

.rf-dashboard.rf-users .rf-users-table thead {
    background: rgba(255, 255, 255, 0.018);
}

.rf-dashboard.rf-users .rf-users-table th {
    padding: 16px 20px;
    border-bottom: 1px solid var(--rf-border);
    color: #938c98;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.7px;
    line-height: 1.7;
    text-align: left;
    white-space: nowrap;
}

.rf-dashboard.rf-users .rf-users-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    color: #c9c2cd;
    font-size: 12px;
    line-height: 1.7;
    vertical-align: middle;
}

.rf-dashboard.rf-users .rf-users-table tbody tr:last-child td {
    border-bottom: 0;
}

.rf-dashboard.rf-users .rf-users-table tbody tr {
    transition: background 0.2s;
}

.rf-dashboard.rf-users .rf-users-table th:first-child,
.rf-dashboard.rf-users .rf-users-table td:first-child {
    padding-left: 27px;
}

.rf-dashboard.rf-users .rf-users-table th:last-child,
.rf-dashboard.rf-users .rf-users-table td:last-child {
    padding-right: 27px;
    text-align: right;
}
.rf-dashboard.rf-users .rf-users-table th:nth-child(1) {
    width: 33%;
}

.rf-dashboard.rf-users .rf-users-table th:nth-child(2) {
    width: 22%;
}

.rf-dashboard.rf-users .rf-users-table th:nth-child(3) {
    width: 17%;
}

.rf-dashboard.rf-users .rf-users-table th:nth-child(4) {
    width: 15%;
}

.rf-dashboard.rf-users .rf-users-table th:nth-child(5) {
    width: 13%;
}

/* =========================================================
   ПОЛЬЗОВАТЕЛЬ В СТРОКЕ ТАБЛИЦЫ
   ========================================================= */

.rf-dashboard.rf-users .rf-users-person {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    color: var(--rf-text);
}

.rf-dashboard.rf-users .rf-users-avatar {
    display: grid;
    place-items: center;
    width: 43px;
    height: 45px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 117, 71, 0.2);
    border-radius: 11px;
    background: linear-gradient(145deg, #392923, #232127);
    color: #dca385;
    font-size: 19px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -2px;
    transition:
            border-color 0.2s,
            box-shadow 0.2s;
}

.rf-dashboard.rf-users .rf-users-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rf-dashboard.rf-users .rf-users-identity {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.rf-dashboard.rf-users .rf-users-identity strong {
    display: block;
    max-width: 210px;
    color: #e8e0e6;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
    transition: color 0.2s;
}

.rf-dashboard.rf-users .rf-users-identity small {
    display: block;
    color: #797b88;
    font-family: monospace;
    font-size: 9px;
    line-height: 1.6;
}

.rf-dashboard.rf-users .rf-users-steam-id {
    display: inline-block;
    color: #b6aab8;
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 0.1px;
    line-height: 1.8;
    white-space: nowrap;
}

.rf-dashboard.rf-users .rf-users-date {
    color: #a29ca9;
    font-size: 11px;
    line-height: 1.8;
    white-space: nowrap;
}

.rf-dashboard.rf-users .rf-users-open {
    min-height: 36px;
    gap: 10px;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 10px;
    white-space: nowrap;
}

.rf-dashboard.rf-users .rf-users-open .rf-icon {
    width: 14px;
    height: 14px;
}

/* =========================================================
   ЦВЕТА РОЛЕЙ
   ========================================================= */

.rf-dashboard.rf-users .rf-users-role {
    gap: 6px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

.rf-dashboard.rf-users .rf-users-role--user {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.025);
    color: #b8b5c1;
}

.rf-dashboard.rf-users .rf-users-role--support {
    border-color: rgba(105, 178, 224, 0.22);
    background: rgba(105, 178, 224, 0.055);
    color: #99c6e5;
}

.rf-dashboard.rf-users .rf-users-role--moderator {
    border-color: rgba(158, 215, 177, 0.22);
    background: rgba(158, 215, 177, 0.05);
    color: #a7d8b8;
}

.rf-dashboard.rf-users .rf-users-role--admin {
    border-color: rgba(255, 117, 71, 0.25);
    background: rgba(255, 117, 71, 0.07);
    color: #ffb18b;
}

.rf-dashboard.rf-users .rf-users-role--owner {
    border-color: rgba(225, 183, 111, 0.3);
    background: linear-gradient(
            125deg,
            rgba(225, 183, 111, 0.1),
            rgba(225, 183, 111, 0.035)
    );
    color: #edca91;
    box-shadow: inset 0 1px rgba(255, 224, 169, 0.035);
}

/* =========================================================
   ПАГИНАЦИЯ
   ========================================================= */

.rf-dashboard.rf-users .rf-users-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 3px 0;
}

.rf-dashboard.rf-users .rf-users-pagination .rf-action {
    min-width: 105px;
    min-height: 41px;
    font-size: 11px;
}

.rf-dashboard.rf-users .rf-users-page-label {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #8d8996;
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
}

.rf-dashboard.rf-users .rf-users-page-label strong {
    color: #e5c3af;
    font-size: 12px;
    font-weight: 700;
}

/* =========================================================
   КАРТОЧКА ПОЛЬЗОВАТЕЛЯ — ХЛЕБНЫЕ КРОШКИ
   ========================================================= */

.rf-dashboard.rf-users .rf-users-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    min-width: 0;
    padding-top: 2px;
    color: #85818e;
    font-size: 11px;
    line-height: 1.8;
}

.rf-dashboard.rf-users .rf-users-breadcrumb .rf-text-link {
    gap: 9px;
    font-size: 11px;
}

.rf-dashboard.rf-users .rf-users-breadcrumb-divider {
    color: #5e5c66;
}

.rf-dashboard.rf-users .rf-users-breadcrumb-current {
    min-width: 0;
    color: #a8a1af;
    overflow-wrap: anywhere;
}

/* =========================================================
   КАРТОЧКА ПОЛЬЗОВАТЕЛЯ — ПРОФИЛЬ
   ========================================================= */

.rf-dashboard.rf-user-details .rf-user-profile {
    position: relative;
    isolation: isolate;
    padding: 33px;
    background:
            radial-gradient(
                    ellipse at 100% 0,
                    rgba(255, 117, 71, 0.11),
                    transparent 65%
            ),
            linear-gradient(125deg, #232126, #191b20);
}

.rf-dashboard.rf-user-details .rf-user-profile::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background-image:
            linear-gradient(
                    rgba(255, 255, 255, 0.02) 1px,
                    transparent 1px
            ),
            linear-gradient(
                    90deg,
                    rgba(255, 255, 255, 0.02) 1px,
                    transparent 1px
            );
    background-size: 43px 43px;
    mask-image: linear-gradient(
            90deg,
            transparent 25%,
            #000
    );
    pointer-events: none;
}

.rf-dashboard.rf-user-details .rf-user-profile .rf-avatar {
    width: 102px;
    height: 102px;
    border-radius: 23px;
}

.rf-dashboard.rf-user-details .rf-user-profile .rf-avatar img {
    border-radius: inherit;
}

.rf-dashboard.rf-user-details .rf-profile-identity {
    min-width: 0;
    flex: 1;
}

.rf-dashboard.rf-user-details .rf-profile-identity h2 {
    font-size: clamp(25px, 3vw, 37px);
    letter-spacing: -1px;
    line-height: 1.25;
}

.rf-dashboard.rf-user-details .rf-user-steam {
    min-width: 0;
}

.rf-dashboard.rf-user-details .rf-profile-bottom {
    align-items: center;
    flex-wrap: wrap;
}

.rf-dashboard.rf-user-details .rf-profile-bottom > .rf-action {
    flex-shrink: 0;
}

.rf-dashboard.rf-user-details .rf-detail-row {
    align-items: flex-start;
    gap: 22px;
    padding-block: 18px;
}

.rf-dashboard.rf-user-details .rf-detail-row > span {
    max-width: 55%;
    font-size: 12px;
    line-height: 1.8;
}

.rf-dashboard.rf-user-details .rf-detail-row > strong {
    min-width: 0;
    max-width: 60%;
    color: #d9d2dd;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.8;
    text-align: right;
    overflow-wrap: anywhere;
}

.rf-dashboard.rf-user-details .rf-detail-row time {
    color: #d5bec0;
    font-family: monospace;
    font-size: 12px;
}

.rf-dashboard.rf-user-details .rf-section-card > .rf-info-note:last-child {
    margin-bottom: 0;
}

/* =========================================================
   ПУСТОЕ СОСТОЯНИЕ СПИСКА
   ========================================================= */

.rf-dashboard.rf-users .rf-users-results .rf-empty-state {
    padding: 23px 10px 27px;
}

.rf-dashboard.rf-users .rf-users-results .rf-empty-state h3 {
    font-size: 24px;
    letter-spacing: -0.7px;
}

.rf-dashboard.rf-users .rf-users-results .rf-empty-state p {
    max-width: 490px;
    font-size: 13px;
}

/* =========================================================
   НАВЕДЕНИЕ
   ========================================================= */

@media (hover: hover) {

    .rf-dashboard.rf-users .rf-users-table tbody tr:hover {
        background: rgba(255, 117, 71, 0.025);
    }

    .rf-dashboard.rf-users .rf-users-person:hover .rf-users-identity strong {
        color: #ffb18b;
    }

    .rf-dashboard.rf-users .rf-users-person:hover .rf-users-avatar {
        border-color: rgba(255, 117, 71, 0.4);
        box-shadow: 0 5px 16px rgba(255, 117, 71, 0.05);
    }

}

/* =========================================================
   АДАПТИВ — ДО 1200px
   ========================================================= */

@media (max-width: 1200px) {

    .rf-dashboard.rf-users .rf-workspace {
        width: calc(100% - 40px);
        grid-template-columns: 205px minmax(0, 1fr);
        gap: 22px;
    }

    .rf-dashboard.rf-users .rf-users-filters {
        grid-template-columns: minmax(0, 1fr) 175px;
        gap: 15px;
    }

    .rf-dashboard.rf-users .rf-users-filter-actions {
        grid-column: 1 / -1;
    }

    .rf-dashboard.rf-users .rf-stat-grid {
        gap: 12px;
    }

    .rf-dashboard.rf-users .rf-stat-card {
        padding: 22px 19px;
    }

    .rf-dashboard.rf-users .rf-stat-card > strong {
        font-size: 32px;
    }

    .rf-dashboard.rf-users .rf-stat-card .rf-muted {
        font-size: 9px;
    }

}

/* =========================================================
   АДАПТИВ — ДО 780px
   ========================================================= */

@media (max-width: 780px) {

    .rf-dashboard.rf-users .rf-workspace {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rf-dashboard.rf-users .rf-content {
        gap: 21px;
    }

    .rf-dashboard.rf-users .rf-users-filters {
        grid-template-columns: minmax(0, 1fr) 190px;
    }

    .rf-dashboard.rf-users .rf-stat-card {
        padding: 23px;
    }

    .rf-dashboard.rf-users .rf-stat-card > strong {
        font-size: 35px;
    }

    .rf-dashboard.rf-users .rf-stat-card .rf-muted {
        font-size: 10px;
    }

    .rf-dashboard.rf-user-details .rf-user-profile {
        padding: 28px;
    }

    .rf-dashboard.rf-user-details .rf-user-profile .rf-avatar {
        width: 88px;
        height: 88px;
        border-radius: 20px;
    }

}

/* =========================================================
   АДАПТИВ — ДО 600px
   ========================================================= */

@media (max-width: 600px) {

    .rf-dashboard.rf-users .rf-users-filters {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .rf-dashboard.rf-users .rf-users-filter-actions {
        grid-column: auto;
    }

    .rf-dashboard.rf-users .rf-users-filter-actions .rf-action {
        flex: 1;
    }

    .rf-dashboard.rf-users .rf-stat-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .rf-dashboard.rf-users .rf-stat-card {
        padding: 22px 24px;
    }

    .rf-dashboard.rf-users .rf-stat-card > strong {
        margin: 13px 0 7px;
        font-size: 34px;
    }

    .rf-dashboard.rf-users .rf-users-results-heading {
        padding: 25px;
    }

    .rf-dashboard.rf-users .rf-users-results-heading .rf-section-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 15px;
    }

    .rf-dashboard.rf-users .rf-users-table {
        min-width: 700px;
    }

    .rf-dashboard.rf-users .rf-users-table th {
        padding: 15px 17px;
        font-size: 8px;
    }

    .rf-dashboard.rf-users .rf-users-table td {
        padding: 17px;
    }

    .rf-dashboard.rf-users .rf-users-table th:first-child,
    .rf-dashboard.rf-users .rf-users-table td:first-child {
        padding-left: 25px;
    }

    .rf-dashboard.rf-users .rf-users-table th:last-child,
    .rf-dashboard.rf-users .rf-users-table td:last-child {
        padding-right: 25px;
    }

    .rf-dashboard.rf-user-details .rf-profile-top {
        align-items: flex-start;
        gap: 17px;
    }

    .rf-dashboard.rf-user-details .rf-profile-bottom {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
    }

    .rf-dashboard.rf-user-details .rf-profile-bottom > .rf-action {
        width: 100%;
    }

}

/* =========================================================
   АДАПТИВ — ДО 480px
   ========================================================= */

@media (max-width: 480px) {

    .rf-dashboard.rf-users .rf-workspace {
        width: calc(100% - 24px);
        gap: 21px;
    }

    .rf-dashboard.rf-users .rf-page-heading > .rf-badge {
        margin-top: 0;
        font-size: 8px;
    }

    .rf-dashboard.rf-users .rf-users-field input,
    .rf-dashboard.rf-users .rf-users-field select {
        min-height: 44px;
        font-size: 12px;
    }

    .rf-dashboard.rf-users .rf-users-filter-actions {
        gap: 8px;
    }

    .rf-dashboard.rf-users .rf-users-filter-actions .rf-action {
        min-height: 43px;
        padding-inline: 13px;
        font-size: 10px;
    }

    .rf-dashboard.rf-users .rf-users-results-heading {
        padding: 23px;
    }

    .rf-dashboard.rf-users .rf-users-results-heading h2 {
        font-size: 22px;
    }

    .rf-dashboard.rf-users .rf-users-results-heading .rf-badge {
        padding: 5px 8px;
        font-size: 9px;
    }

    .rf-dashboard.rf-users .rf-users-table {
        min-width: 670px;
    }

    .rf-dashboard.rf-users .rf-users-avatar {
        width: 38px;
        height: 40px;
        border-radius: 10px;
        font-size: 17px;
    }

    .rf-dashboard.rf-users .rf-users-person {
        gap: 10px;
    }

    .rf-dashboard.rf-users .rf-users-identity strong {
        max-width: 180px;
        font-size: 11px;
    }

    .rf-dashboard.rf-users .rf-users-steam-id {
        font-size: 10px;
    }

    .rf-dashboard.rf-users .rf-users-role {
        font-size: 8px;
    }

    .rf-dashboard.rf-users .rf-users-date {
        font-size: 10px;
    }

    .rf-dashboard.rf-users .rf-users-pagination {
        gap: 9px;
    }

    .rf-dashboard.rf-users .rf-users-pagination .rf-action {
        min-width: 84px;
        min-height: 39px;
        gap: 8px;
        padding: 10px 12px;
        font-size: 10px;
    }

    .rf-dashboard.rf-users .rf-users-page-label {
        gap: 4px;
        font-size: 10px;
    }

    .rf-dashboard.rf-users .rf-users-page-label strong {
        font-size: 11px;
    }

    .rf-dashboard.rf-users .rf-users-breadcrumb {
        gap: 8px;
        font-size: 10px;
    }

    .rf-dashboard.rf-users .rf-users-breadcrumb .rf-text-link {
        gap: 7px;
        font-size: 10px;
    }

    .rf-dashboard.rf-user-details .rf-user-profile {
        padding: 24px;
    }

    .rf-dashboard.rf-user-details .rf-user-profile .rf-avatar {
        width: 65px;
        height: 65px;
        border-radius: 16px;
        font-size: 28px;
    }

    .rf-dashboard.rf-user-details .rf-profile-top {
        gap: 14px;
    }

    .rf-dashboard.rf-user-details .rf-profile-identity h2 {
        margin-top: 7px;
        font-size: 25px;
        letter-spacing: -0.7px;
    }

    .rf-dashboard.rf-user-details .rf-profile-identity .rf-overline {
        font-size: 7px;
        letter-spacing: 0.9px;
    }

    .rf-dashboard.rf-user-details .rf-tag-row {
        gap: 6px;
    }

    .rf-dashboard.rf-user-details .rf-tag-row .rf-badge {
        padding: 5px 7px;
        font-size: 8px;
        white-space: normal;
    }

    .rf-dashboard.rf-user-details .rf-detail-row {
        align-items: flex-start;
        gap: 15px;
        padding-block: 16px;
    }

    .rf-dashboard.rf-user-details .rf-detail-row > span,
    .rf-dashboard.rf-user-details .rf-detail-row > strong {
        font-size: 11px;
    }

    .rf-dashboard.rf-user-details .rf-detail-row time {
        font-size: 11px;
    }

    .rf-dashboard.rf-users .rf-users-results .rf-empty-state {
        padding: 15px 0 20px;
    }

    .rf-dashboard.rf-users .rf-users-results .rf-empty-state h3 {
        font-size: 22px;
    }

    .rf-dashboard.rf-users .rf-users-results .rf-empty-state p {
        font-size: 12px;
    }

}

/* =========================================================
   ОЧЕНЬ УЗКИЕ ЭКРАНЫ
   ========================================================= */

@media (max-width: 360px) {

    .rf-dashboard.rf-users .rf-users-pagination {
        flex-wrap: wrap;
    }

    .rf-dashboard.rf-users .rf-users-page-label {
        order: -1;
        width: 100%;
        margin-bottom: 3px;
    }

    .rf-dashboard.rf-users .rf-users-pagination .rf-action {
        flex: 1;
    }

    .rf-dashboard.rf-user-details .rf-profile-top {
        flex-wrap: wrap;
    }

    .rf-dashboard.rf-user-details .rf-profile-identity {
        flex-basis: 100%;
    }

    .rf-dashboard.rf-user-details .rf-detail-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .rf-dashboard.rf-user-details .rf-detail-row > span,
    .rf-dashboard.rf-user-details .rf-detail-row > strong {
        max-width: 100%;
        text-align: left;
    }

}

/* =========================================================
   УМЕНЬШЕННОЕ ДВИЖЕНИЕ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .rf-dashboard.rf-users *,
    .rf-dashboard.rf-users *::before,
    .rf-dashboard.rf-users *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

}
/* =========================================================
   ОБЩАЯ БОКОВАЯ ПАНЕЛЬ АДМИНКИ
   Добавить ПОСЛЕ всех предыдущих правил dashboard.css
   ========================================================= */

body .rf-dashboard .rf-workspace {
    align-items: start;
}

/*
 * Более точный селектор перекрывает прежний position: static
 * на страницах пользователей.
 */

body .rf-dashboard .rf-workspace > .rf-sidebar.rf-sidebar--shared {
    position: sticky;
    top: calc(var(--rf-header-height, 140px) + 16px);
    align-self: start;

    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;

    max-height: calc(
            100vh - var(--rf-header-height, 140px) - 32px
    );

    max-height: calc(
            100dvh - var(--rf-header-height, 140px) - 32px
    );

    margin: 0;
    padding: 19px 11px 13px;

    overflow-x: hidden;
    overflow-y: auto;

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 17px;

    background:
            radial-gradient(
                    ellipse at 100% 0,
                    rgba(255, 117, 71, 0.035),
                    transparent 60%
            ),
            #191b20;

    box-shadow:
            inset 0 1px rgba(255, 255, 255, 0.025),
            0 14px 35px rgba(0, 0, 0, 0.08);

    scrollbar-width: thin;
    scrollbar-color: #65453b #191b20;
    scrollbar-gutter: stable;

    transform: none;
}

/* Полоса прокрутки */

.rf-dashboard .rf-sidebar--shared::-webkit-scrollbar {
    width: 5px;
}

.rf-dashboard .rf-sidebar--shared::-webkit-scrollbar-track {
    background: transparent;
}

.rf-dashboard .rf-sidebar--shared::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #65453b;
}

.rf-dashboard .rf-sidebar--shared::-webkit-scrollbar-thumb:hover {
    background: #8b5945;
}

/* Библиотека SVG */

.rf-dashboard .rf-sidebar--shared .rf-sidebar-symbols {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Верхняя часть */

.rf-dashboard .rf-sidebar--shared .rf-sidebar-brand {
    gap: 11px;
    padding: 0 8px 20px;
}

.rf-dashboard .rf-sidebar--shared .rf-sidebar-brand-link {
    color: inherit;
    text-decoration: none;
}

.rf-dashboard .rf-sidebar--shared .rf-sidebar-brand > div {
    min-width: 0;
}

.rf-dashboard .rf-sidebar--shared .rf-sidebar-brand strong {
    margin-top: 4px;
    color: #f4f2ee;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.5;
}

.rf-dashboard .rf-sidebar--shared .rf-sidebar-brand .rf-overline {
    color: #b18570;
    font-size: 7px;
    letter-spacing: 1.2px;
}

.rf-dashboard .rf-sidebar--shared .rf-sidebar-mark {
    width: 39px;
    height: 42px;
    border-radius: 10px;
    font-size: 20px;
}

/* Заголовки групп */

.rf-dashboard .rf-sidebar--shared .rf-nav-label {
    margin: 19px 9px 9px;
    padding: 0;
    color: #777582;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1.15px;
    line-height: 1.8;
}

.rf-dashboard .rf-sidebar--shared .rf-sidebar-brand + .rf-nav-label {
    margin-top: 0;
}

/* Пункты меню */

.rf-dashboard .rf-sidebar--shared .rf-sidebar-nav {
    display: grid;
    gap: 4px;
}

.rf-dashboard .rf-sidebar--shared .rf-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    min-height: 39px;
    padding: 9px 10px;

    border: 1px solid transparent;
    border-radius: 8px;

    background: transparent;
    color: #a5a0ad;

    font-size: 11px;
    line-height: 1.6;
    text-align: left;

    transition:
            color 0.2s,
            background 0.2s,
            border-color 0.2s;
}

.rf-dashboard .rf-sidebar--shared .rf-menu-item > span {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
}

.rf-dashboard .rf-sidebar--shared .rf-menu-item .rf-icon {
    display: block;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: #89818f;
}

.rf-dashboard .rf-sidebar--shared .rf-menu-item.is-current {
    border-color: rgba(255, 117, 71, 0.22);
    background: linear-gradient(
            100deg,
            rgba(255, 117, 71, 0.12),
            rgba(255, 117, 71, 0.025)
    );
    color: #ffb08b;
    box-shadow: inset 2px 0 rgba(255, 117, 71, 0.7);
}

.rf-dashboard .rf-sidebar--shared .rf-menu-item.is-current .rf-icon {
    color: #ff936e;
}

.rf-dashboard .rf-sidebar--shared .rf-menu-item:focus-visible {
    outline: 2px solid #ff936e;
    outline-offset: -2px;
}

/* Нижняя навигация */

.rf-dashboard .rf-sidebar--shared .rf-sidebar-bottom {
    display: grid;
    gap: 4px;
    margin-top: 20px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rf-dashboard .rf-sidebar--shared .rf-sidebar-bottom .rf-menu-item {
    width: 100%;
    color: #aa9591;
    font-size: 10px;
}
/* Иконки общих модулей */

.rf-dashboard .rf-module .rf-module-icon .rf-icon {
    display: block;
    width: 19px;
    height: 19px;
}

/* Наведение */

@media (hover: hover) {

    .rf-dashboard .rf-sidebar--shared .rf-menu-item:hover {
        border-color: rgba(255, 255, 255, 0.045);
        background: rgba(255, 255, 255, 0.035);
        color: #f4f2ee;
    }

    .rf-dashboard .rf-sidebar--shared .rf-menu-item:hover .rf-icon {
        color: #d5a28c;
    }

    .rf-dashboard .rf-sidebar--shared .rf-menu-item.is-current:hover {
        border-color: rgba(255, 117, 71, 0.35);
        background: rgba(255, 117, 71, 0.1);
        color: #ffc0a2;
    }

}

/* На планшете и телефоне панель снова в обычном потоке. */

@media (max-width: 780px) {

    body .rf-dashboard .rf-workspace > .rf-sidebar.rf-sidebar--shared {
        position: static;
        top: auto;

        max-height: none;
        padding: 17px;

        overflow: visible;
        scrollbar-gutter: auto;
    }

    .rf-dashboard .rf-sidebar--shared .rf-sidebar-brand {
        padding: 0 0 15px;
    }

    .rf-dashboard .rf-sidebar--shared .rf-sidebar-brand strong {
        font-size: 14px;
    }

    .rf-dashboard .rf-sidebar--shared .rf-sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .rf-dashboard .rf-sidebar--shared .rf-menu-item {
        width: 100%;
        min-height: 39px;
        padding: 9px 10px;
        border-color: rgba(255, 255, 255, 0.055);
    }

    .rf-dashboard .rf-sidebar--shared .rf-nav-label {
        margin: 17px 0 9px;
    }

    .rf-dashboard .rf-sidebar--shared .rf-sidebar-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 17px;
    }

}

@media (max-width: 420px) {

    body .rf-dashboard .rf-workspace > .rf-sidebar.rf-sidebar--shared {
        padding: 15px;
    }

    .rf-dashboard .rf-sidebar--shared .rf-menu-item {
        gap: 8px;
        padding: 9px;
        font-size: 10px;
    }

    .rf-dashboard .rf-sidebar--shared .rf-menu-item .rf-icon {
        width: 15px;
        height: 15px;
    }

    .rf-dashboard .rf-sidebar--shared .rf-sidebar-bottom .rf-menu-item {
        font-size: 9px;
    }

}

@media (max-width: 340px) {

    .rf-dashboard .rf-sidebar--shared .rf-sidebar-nav,
    .rf-dashboard .rf-sidebar--shared .rf-sidebar-bottom {
        grid-template-columns: 1fr;
    }

}

@media (prefers-reduced-motion: reduce) {

    .rf-dashboard .rf-sidebar--shared,
    .rf-dashboard .rf-sidebar--shared * {
        transition: none !important;
        scroll-behavior: auto !important;
    }

}

/* =========================================================
   RUSTOFILYA — RESTRICTIONS
   Ограничения пользователей
   ========================================================= */

.rf-dashboard.rf-restrictions { color-scheme: dark; }
.rf-dashboard.rf-restrictions > .container {
    width: 100%; max-width: none; margin: 0; padding: 0;
}
.rf-dashboard.rf-restrictions .rf-workspace {
    display: grid; grid-template-columns: 225px minmax(0, 1fr);
    align-items: start; gap: 26px;
    width: min(1440px, calc(100% - 64px)); margin-inline: auto;
}
.rf-dashboard.rf-restrictions .rf-content {
    display: grid; min-width: 0; gap: 22px;
}
.rf-dashboard.rf-restrictions :is(.rf-restrictions-heading, .rf-restriction-filters, .rf-restriction-issue) {
    padding: 28px;
}

/* Заголовок */
.rf-dashboard.rf-restrictions .rf-restrictions-heading {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: radial-gradient(ellipse at 100% 0, rgba(var(--rf-accent-rgb), .11), transparent 65%),
    linear-gradient(125deg, #232126, var(--rf-panel));
}
.rf-dashboard.rf-restrictions .rf-restrictions-heading-copy { min-width: 0; }
.rf-dashboard.rf-restrictions .rf-restrictions-heading h1 {
    max-width: 720px; margin-top: 12px;
    font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -1.2px;
    line-height: 1.18; overflow-wrap: anywhere;
}
.rf-dashboard.rf-restrictions .rf-restrictions-description {
    max-width: 640px; margin-top: 14px; color: var(--rf-muted);
    font-size: 13px; line-height: 1.85;
}
.rf-dashboard.rf-restrictions .rf-restrictions-heading > .rf-button { flex-shrink: 0; }
.rf-dashboard.rf-restrictions .rf-section-heading { flex-wrap: wrap; }
.rf-dashboard.rf-restrictions .rf-section-heading .rf-badge { flex-shrink: 0; }

/* Кнопки */
.rf-dashboard.rf-restrictions .rf-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    max-width: 100%; min-height: 44px; margin: 0; padding: 11px 16px;
    border: 1px solid transparent; border-radius: 9px;
    background: transparent; color: var(--rf-text);
    font-family: inherit; font-size: 11px; font-weight: 700; line-height: 1.6;
    text-align: center; text-decoration: none; cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.rf-dashboard.rf-restrictions .rf-button .rf-icon { width: 16px; height: 16px; }
.rf-dashboard.rf-restrictions .rf-button--primary {
    border-color: rgba(255,188,157,.25);
    background: linear-gradient(125deg, #ff936e, #ff7547 70%); color: #19110e;
    box-shadow: inset 0 1px rgba(255,225,209,.3), 0 8px 25px rgba(var(--rf-accent-rgb),.08);
}
.rf-dashboard.rf-restrictions .rf-button--secondary {
    border-color: var(--rf-border-strong); background: rgba(255,255,255,.025); color: #dedce2;
}
.rf-dashboard.rf-restrictions .rf-button--danger {
    border-color: rgba(235,119,119,.3); background: rgba(235,119,119,.09); color: #f2aaaa;
}
.rf-dashboard.rf-restrictions .rf-button:disabled {
    opacity: .45; cursor: not-allowed; box-shadow: none;
}

/* Уведомления */
.rf-dashboard.rf-restrictions .rf-notice {
    min-width: 0; padding: 16px 19px; border: 1px solid var(--rf-border);
    border-left-width: 3px; border-radius: 11px;
    background: rgba(255,255,255,.025); color: #c6c2cb;
}
.rf-dashboard.rf-restrictions .rf-notice p {
    font-size: 12px; line-height: 1.85; overflow-wrap: anywhere;
}
.rf-dashboard.rf-restrictions .rf-notice--success {
    border-color: rgba(158,215,177,.22); border-left-color: var(--rf-green);
    background: rgba(158,215,177,.045); color: #b8dfc5;
}
.rf-dashboard.rf-restrictions .rf-notice--error {
    border-color: rgba(235,119,119,.25); border-left-color: #eb7777;
    background: rgba(235,119,119,.055); color: #efb4b4;
}
.rf-dashboard.rf-restrictions .rf-notice--info {
    border-color: rgba(255,183,115,.2); border-left-color: #dca372;
    background: rgba(255,183,115,.035); color: #cbb8a6;
}

/* Статистика */
.rf-dashboard.rf-restrictions .rf-restriction-stats {
    display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; min-width: 0;
}
.rf-dashboard.rf-restrictions .rf-restriction-stat {
    position: relative; display: flex; flex-direction: column; align-items: flex-start;
    gap: 11px; min-width: 0; padding: 23px;
}
.rf-dashboard.rf-restrictions .rf-restriction-stat::before {
    position: absolute; top: 0; right: 23px; left: 23px; height: 2px;
    border-radius: 0 0 3px 3px; background: rgba(255,255,255,.13); content: "";
}
.rf-dashboard.rf-restrictions .rf-restriction-stat-label {
    color: #aba5b1; font-size: 11px; font-weight: 600; line-height: 1.6;
}
.rf-dashboard.rf-restrictions .rf-restriction-stat-value {
    display: block; max-width: 100%; color: var(--rf-text);
    font-size: clamp(30px,3vw,40px); font-weight: 800; font-variant-numeric: tabular-nums;
    letter-spacing: -1.4px; line-height: 1.15; overflow-wrap: anywhere;
}
.rf-dashboard.rf-restrictions .rf-restriction-stat-description {
    color: var(--rf-muted); font-size: 10px; line-height: 1.8;
}
.rf-dashboard.rf-restrictions .rf-restriction-stat--active::before { background: var(--rf-orange); }
.rf-dashboard.rf-restrictions .rf-restriction-stat--active .rf-restriction-stat-value { color: #ffad89; }
.rf-dashboard.rf-restrictions .rf-restriction-stat--expired::before { background: #9095a3; }
.rf-dashboard.rf-restrictions .rf-restriction-stat--revoked::before { background: var(--rf-green); }
.rf-dashboard.rf-restrictions .rf-restriction-stat--revoked .rf-restriction-stat-value { color: var(--rf-green); }

/* Поля форм */
.rf-dashboard.rf-restrictions .rf-field {
    display: flex; flex-direction: column; align-items: stretch; gap: 9px; min-width: 0;
}
.rf-dashboard.rf-restrictions .rf-field > label,
.rf-dashboard.rf-restrictions .rf-restriction-revoke-form > label {
    display: block; color: #b8aeba; font-size: 11px; font-weight: 600; line-height: 1.7;
}
.rf-dashboard.rf-restrictions .rf-field :is(input,select,textarea),
.rf-dashboard.rf-restrictions .rf-restriction-revoke-form textarea {
    display: block; width: 100%; min-width: 0; min-height: 45px; margin: 0; padding: 12px 13px;
    border: 1px solid rgba(255,255,255,.12); border-radius: 9px;
    background: #14171c; color: #e4dde4; font-family: inherit; font-size: 12px; line-height: 1.7;
    box-shadow: inset 0 2px 7px rgba(0,0,0,.08);
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.rf-dashboard.rf-restrictions .rf-field select { padding-right: 30px; cursor: pointer; }
.rf-dashboard.rf-restrictions .rf-field select option { background: var(--rf-panel); color: var(--rf-text); }
.rf-dashboard.rf-restrictions .rf-field textarea,
.rf-dashboard.rf-restrictions .rf-restriction-revoke-form textarea { min-height: 110px; resize: vertical; }
.rf-dashboard.rf-restrictions .rf-field :is(input,textarea)::placeholder,
.rf-dashboard.rf-restrictions .rf-restriction-revoke-form textarea::placeholder { color: #777b88; opacity: 1; }
.rf-dashboard.rf-restrictions .rf-field :is(input,select,textarea):focus,
.rf-dashboard.rf-restrictions .rf-restriction-revoke-form textarea:focus {
    border-color: rgba(var(--rf-accent-rgb),.6); background: #17191e;
    box-shadow: 0 0 0 3px rgba(var(--rf-accent-rgb),.06);
}
.rf-dashboard.rf-restrictions .rf-field input:disabled {
    border-color: rgba(255,255,255,.06); background: #17181b; color: #777580;
    opacity: .65; cursor: not-allowed; box-shadow: none;
}
.rf-dashboard.rf-restrictions .rf-field-help {
    display: block; color: var(--rf-muted); font-size: 10px; font-weight: 400;
    line-height: 1.85; overflow-wrap: anywhere;
}

/* Фильтры */
.rf-dashboard.rf-restrictions .rf-restriction-filter-form {
    display: grid;
    grid-template-columns: minmax(180px,1.5fr) minmax(130px,1fr) minmax(140px,1fr) 90px auto;
    align-items: end; gap: 13px;
}
.rf-dashboard.rf-restrictions .rf-restriction-filter-form > .rf-button { min-height: 45px; }

/* Список и пустое состояние */
.rf-dashboard.rf-restrictions .rf-restriction-list { min-width: 0; overflow: hidden; }
.rf-dashboard.rf-restrictions .rf-restriction-list > .rf-section-heading { margin: 0; padding: 27px 28px; }
.rf-dashboard.rf-restrictions .rf-restriction-list-note {
    padding: 18px 28px 22px; border-top: 1px solid var(--rf-border);
    color: var(--rf-muted); font-size: 10px; line-height: 1.85;
}
.rf-dashboard.rf-restrictions .rf-restriction-empty {
    display: flex; flex-direction: column; align-items: center; gap: 15px;
    padding: 30px 25px 38px; border-top: 1px solid var(--rf-border); text-align: center;
}
.rf-dashboard.rf-restrictions .rf-restriction-empty > .rf-icon {
    width: 46px; height: 46px; margin-bottom: 3px; color: #ba8d76; stroke-width: 1.2;
}
.rf-dashboard.rf-restrictions .rf-restriction-empty h3 {
    color: var(--rf-text); font-size: 22px; letter-spacing: -.6px; line-height: 1.4;
}
.rf-dashboard.rf-restrictions .rf-restriction-empty p {
    max-width: 440px; color: var(--rf-muted); font-size: 12px; line-height: 1.85;
}

/* Таблица */
.rf-dashboard.rf-restrictions .rf-restriction-table-scroll {
    width: 100%; min-width: 0; overflow-x: auto; border-top: 1px solid var(--rf-border);
    scrollbar-width: thin; scrollbar-color: #65453b var(--rf-panel); -webkit-overflow-scrolling: touch;
}
.rf-dashboard.rf-restrictions .rf-restriction-table-scroll:focus-visible {
    outline: 2px solid var(--rf-orange); outline-offset: -3px;
}
.rf-dashboard.rf-restrictions .rf-restriction-table {
    width: 100%; min-width: 1030px; margin: 0;
    border-collapse: collapse; table-layout: fixed; text-align: left;
}
.rf-dashboard.rf-restrictions .rf-restriction-table thead { background: rgba(255,255,255,.018); }
.rf-dashboard.rf-restrictions .rf-restriction-table th {
    padding: 16px 18px; border-bottom: 1px solid var(--rf-border); color: #9b929f;
    font-size: 9px; font-weight: 700; letter-spacing: .5px; line-height: 1.7; text-align: left;
}
.rf-dashboard.rf-restrictions .rf-restriction-table td {
    padding: 21px 18px; border-bottom: 1px solid rgba(255,255,255,.055); color: #c9c2cd;
    font-size: 12px; line-height: 1.8; vertical-align: top; overflow-wrap: anywhere;
}
.rf-dashboard.rf-restrictions .rf-restriction-table tbody tr:last-child td { border-bottom: 0; }
.rf-dashboard.rf-restrictions .rf-restriction-table :is(th,td):first-child { width: 7%; padding-left: 28px; }
.rf-dashboard.rf-restrictions .rf-restriction-table :is(th,td):nth-child(2) { width: 24%; }
.rf-dashboard.rf-restrictions .rf-restriction-table :is(th,td):nth-child(3) { width: 27%; }
.rf-dashboard.rf-restrictions .rf-restriction-table :is(th,td):nth-child(4) { width: 18%; }
.rf-dashboard.rf-restrictions .rf-restriction-table :is(th,td):last-child { width: 24%; padding-right: 28px; }
.rf-dashboard.rf-restrictions .rf-restriction-table tbody tr { transition: background .2s; }
.rf-dashboard.rf-restrictions .rf-restriction-table .rf-restriction-id {
    color: #8f8795; font-family: monospace; font-size: 11px;
}

/* Пользователь и сотрудник */
.rf-dashboard.rf-restrictions .rf-restriction-user {
    display: flex; align-items: flex-start; gap: 11px; min-width: 0;
}
.rf-dashboard.rf-restrictions .rf-restriction-avatar {
    display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; overflow: hidden;
    border: 1px solid rgba(var(--rf-accent-rgb),.22); border-radius: 11px;
    background: linear-gradient(145deg,#392923,#232127); color: #dca385;
    font-size: 17px; font-weight: 900; font-style: italic; letter-spacing: -1px;
}
.rf-dashboard.rf-restrictions .rf-restriction-avatar img {
    display: block; width: 100%; height: 100%; object-fit: cover;
}
.rf-dashboard.rf-restrictions .rf-restriction-user-copy {
    display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0;
}
.rf-dashboard.rf-restrictions :is(.rf-restriction-user-name,.rf-restriction-staff-name) {
    display: inline-block; color: #e8e0e6; font-size: 12px; font-weight: 600;
    line-height: 1.7; overflow-wrap: anywhere; transition: color .2s;
}
.rf-dashboard.rf-restrictions .rf-restriction-steam {
    display: block; max-width: 100%; color: #8f8497;
    font-family: monospace; font-size: 10px; line-height: 1.8; overflow-wrap: anywhere;
}
.rf-dashboard.rf-restrictions .rf-restriction-staff-name + .rf-restriction-steam { margin-top: 5px; }
.rf-dashboard.rf-restrictions .rf-restriction-user-copy .rf-text-link { margin-top: 2px; font-size: 10px; }

/* Причина и даты */
.rf-dashboard.rf-restrictions .rf-restriction-reason {
    color: #d8d0db; font-size: 12px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere;
}
.rf-dashboard.rf-restrictions .rf-restriction-meta { display: grid; gap: 7px; margin-top: 15px; }
.rf-dashboard.rf-restrictions .rf-restriction-meta > div { display: grid; gap: 2px; }
.rf-dashboard.rf-restrictions .rf-restriction-meta dt { color: #807887; font-size: 9px; line-height: 1.7; }
.rf-dashboard.rf-restrictions .rf-restriction-meta dd {
    color: #b3a6b7; font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1.8;
}

/* Статусы */
.rf-dashboard.rf-restrictions .rf-restriction-status {
    display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 9px;
    border: 1px solid var(--rf-border); border-radius: 7px;
    background: rgba(255,255,255,.025); color: #bbb5c2; font-size: 10px; font-weight: 600; line-height: 1.7;
}
.rf-dashboard.rf-restrictions .rf-restriction-status::before {
    width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; content: "";
}
.rf-dashboard.rf-restrictions .rf-restriction-status--active {
    border-color: rgba(var(--rf-accent-rgb),.26); background: rgba(var(--rf-accent-rgb),.07); color: #ffb08b;
}
.rf-dashboard.rf-restrictions .rf-restriction-status--expired {
    border-color: rgba(156,162,178,.2); background: rgba(156,162,178,.045); color: #a9adbb;
}
.rf-dashboard.rf-restrictions .rf-restriction-status--revoked {
    border-color: rgba(158,215,177,.22); background: rgba(158,215,177,.05); color: #a7d8b8;
}

/* Снятые ограничения */
.rf-dashboard.rf-restrictions .rf-restriction-revoked {
    display: grid; justify-items: start; gap: 7px; margin-top: 13px;
}
.rf-dashboard.rf-restrictions .rf-restriction-revoked-date {
    color: #8e8796; font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1.8;
}
.rf-dashboard.rf-restrictions .rf-restriction-revoked .rf-text-link { font-size: 10px; }
.rf-dashboard.rf-restrictions .rf-restriction-revocation-reason {
    padding-top: 7px; border-top: 1px solid rgba(255,255,255,.06); color: #b7aebf;
    font-size: 11px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere;
}

/* Форма снятия */
.rf-dashboard.rf-restrictions .rf-restriction-revoke { margin-top: 14px; }
.rf-dashboard.rf-restrictions .rf-restriction-revoke summary {
    width: fit-content; max-width: 100%; padding-block: 5px;
    color: #e3a084; font-size: 11px; font-weight: 600; line-height: 1.7; cursor: pointer;
}
.rf-dashboard.rf-restrictions .rf-restriction-revoke summary::marker { color: #bf8066; }
.rf-dashboard.rf-restrictions .rf-restriction-revoke summary:focus-visible {
    outline: 2px solid var(--rf-orange); outline-offset: 4px; border-radius: 3px;
}
.rf-dashboard.rf-restrictions .rf-restriction-revoke[open] summary { margin-bottom: 11px; }
.rf-dashboard.rf-restrictions .rf-restriction-revoke-form {
    display: grid; gap: 10px; padding: 13px; border: 1px solid rgba(235,119,119,.16);
    border-radius: 10px; background: rgba(0,0,0,.12);
}
.rf-dashboard.rf-restrictions .rf-restriction-revoke-form > label { font-size: 10px; }
.rf-dashboard.rf-restrictions .rf-restriction-revoke-form textarea { min-height: 105px; padding: 10px; font-size: 11px; }
.rf-dashboard.rf-restrictions .rf-restriction-revoke-form .rf-button {
    width: 100%; min-height: 39px; padding: 9px 10px; font-size: 10px;
}

/* Пагинация */
.rf-dashboard.rf-restrictions .rf-restriction-pagination {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 16px; padding: 20px 28px; border-top: 1px solid var(--rf-border);
}
.rf-dashboard.rf-restrictions .rf-restriction-pagination-links {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.rf-dashboard.rf-restrictions .rf-restriction-pagination-links:empty { display: none; }
.rf-dashboard.rf-restrictions .rf-restriction-pagination .rf-button { min-height: 39px; padding: 9px 13px; font-size: 10px; }
.rf-dashboard.rf-restrictions .rf-restriction-page-label {
    color: #a69aaf; font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.8; text-align: center;
}

/* Выдача */
.rf-dashboard.rf-restrictions .rf-restriction-issue {
    scroll-margin-top: calc(var(--rf-header-height,140px) + 20px);
}
.rf-dashboard.rf-restrictions .rf-restriction-policy {
    display: grid; gap: 7px; margin-bottom: 23px; padding: 16px 18px;
    border: 1px solid rgba(var(--rf-accent-rgb),.14); border-radius: 10px;
    background: rgba(var(--rf-accent-rgb),.03);
}
.rf-dashboard.rf-restrictions .rf-restriction-policy p { color: #b7a8b3; font-size: 11px; line-height: 1.85; }
.rf-dashboard.rf-restrictions .rf-restriction-issue-form { display: grid; gap: 22px; }
.rf-dashboard.rf-restrictions .rf-restriction-issue-grid {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 21px;
}
.rf-dashboard.rf-restrictions .rf-field--full { grid-column: 1 / -1; }
.rf-dashboard.rf-restrictions #issue-reason { min-height: 145px; }
.rf-dashboard.rf-restrictions .rf-restriction-permanent {
    display: flex; align-items: flex-start; gap: 12px; width: fit-content; max-width: 100%; cursor: pointer;
}
.rf-dashboard.rf-restrictions .rf-restriction-permanent > input {
    width: 17px; height: 17px; flex-shrink: 0; margin: 3px 0 0; padding: 0;
    accent-color: var(--rf-orange); cursor: pointer;
}
.rf-dashboard.rf-restrictions .rf-restriction-permanent > span { display: grid; gap: 4px; min-width: 0; }
.rf-dashboard.rf-restrictions .rf-restriction-permanent-title { color: #e2d4df; font-size: 12px; font-weight: 600; line-height: 1.7; }
.rf-dashboard.rf-restrictions .rf-restriction-issue-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 22px; padding-top: 21px; border-top: 1px solid var(--rf-border);
}
.rf-dashboard.rf-restrictions .rf-restriction-issue-footer > .rf-field-help { max-width: 490px; }
.rf-dashboard.rf-restrictions .rf-restriction-issue-footer > .rf-button { flex-shrink: 0; }

@media (hover: hover) {
    .rf-dashboard.rf-restrictions .rf-button--primary:hover:not(:disabled) {
        background: linear-gradient(125deg,#ffa17e,#ff936e 70%);
        box-shadow: inset 0 1px rgba(255,225,209,.4), 0 9px 25px rgba(var(--rf-accent-rgb),.15);
    }
    .rf-dashboard.rf-restrictions .rf-button--secondary:hover:not(:disabled) {
        border-color: rgba(var(--rf-accent-rgb),.35); background: rgba(var(--rf-accent-rgb),.055); color: #ffb18d;
    }
    .rf-dashboard.rf-restrictions .rf-button--danger:hover:not(:disabled) {
        border-color: rgba(235,119,119,.5); background: rgba(235,119,119,.15); color: #ffc4c4;
    }
    .rf-dashboard.rf-restrictions .rf-restriction-table tbody tr:hover { background: rgba(var(--rf-accent-rgb),.022); }
    .rf-dashboard.rf-restrictions :is(.rf-restriction-user-name,.rf-restriction-staff-name):hover { color: #ffb18d; }
    .rf-dashboard.rf-restrictions .rf-restriction-revoke summary:hover { color: #ffc0a3; }
}

@media (max-width: 1200px) {
    .rf-dashboard.rf-restrictions .rf-workspace {
        grid-template-columns: 205px minmax(0,1fr); width: calc(100% - 40px); gap: 22px;
    }
    .rf-dashboard.rf-restrictions .rf-restrictions-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
    .rf-dashboard.rf-restrictions .rf-restriction-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .rf-dashboard.rf-restrictions .rf-restriction-filter-form { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
    .rf-dashboard.rf-restrictions .rf-restriction-filter-form .rf-field--search { grid-column: 1 / -1; }
    .rf-dashboard.rf-restrictions .rf-restriction-filter-form > .rf-button { align-self: end; }
    .rf-dashboard.rf-restrictions .rf-restriction-issue-footer { align-items: flex-start; flex-direction: column; gap: 17px; }
}
@media (max-width: 780px) {
    .rf-dashboard.rf-restrictions .rf-workspace { grid-template-columns: 1fr; width: calc(100% - 32px); gap: 24px; }
    .rf-dashboard.rf-restrictions .rf-content { gap: 20px; }
    .rf-dashboard.rf-restrictions .rf-restrictions-heading h1 { font-size: 34px; }
    .rf-dashboard.rf-restrictions .rf-restriction-stats { gap: 12px; }
    .rf-dashboard.rf-restrictions .rf-restriction-stat { padding: 23px; }
    .rf-dashboard.rf-restrictions .rf-restriction-stat-value { font-size: 36px; }
}
@media (max-width: 560px) {
    .rf-dashboard.rf-restrictions :is(.rf-restrictions-heading,.rf-restriction-filters,.rf-restriction-issue) { padding: 23px; }
    .rf-dashboard.rf-restrictions .rf-restriction-list > .rf-section-heading { padding: 23px; }
    .rf-dashboard.rf-restrictions .rf-restrictions-heading h1 { font-size: 30px; letter-spacing: -.9px; }
    .rf-dashboard.rf-restrictions .rf-restrictions-description { font-size: 12px; }
    .rf-dashboard.rf-restrictions .rf-restrictions-heading > .rf-button { width: 100%; }
    .rf-dashboard.rf-restrictions .rf-restriction-filter-form { grid-template-columns: 1fr; gap: 17px; }
    .rf-dashboard.rf-restrictions .rf-restriction-filter-form .rf-field--search { grid-column: auto; }
    .rf-dashboard.rf-restrictions .rf-restriction-filter-form > .rf-button { width: 100%; }
    .rf-dashboard.rf-restrictions .rf-restriction-issue-grid { grid-template-columns: 1fr; gap: 19px; }
    .rf-dashboard.rf-restrictions .rf-field--full { grid-column: auto; }
    .rf-dashboard.rf-restrictions .rf-field :is(input,select,textarea) { font-size: 16px; }
    .rf-dashboard.rf-restrictions .rf-restriction-stat { gap: 9px; padding: 20px; }
    .rf-dashboard.rf-restrictions .rf-restriction-stat-description { font-size: 9px; }
    .rf-dashboard.rf-restrictions .rf-restriction-pagination { gap: 13px; padding: 19px 23px; }
    .rf-dashboard.rf-restrictions .rf-restriction-page-label { order: -1; width: 100%; text-align: left; }
    .rf-dashboard.rf-restrictions .rf-restriction-list-note { padding: 17px 23px 21px; }
    .rf-dashboard.rf-restrictions .rf-restriction-issue-footer > .rf-button { width: 100%; }
    .rf-dashboard.rf-restrictions .rf-notice { padding: 15px 17px; }
    .rf-dashboard.rf-restrictions .rf-notice p { font-size: 11px; }
}
@media (max-width: 400px) {
    .rf-dashboard.rf-restrictions .rf-workspace { width: calc(100% - 24px); gap: 21px; }
    .rf-dashboard.rf-restrictions :is(.rf-restrictions-heading,.rf-restriction-filters,.rf-restriction-issue) { padding: 20px; }
    .rf-dashboard.rf-restrictions .rf-restrictions-heading h1 { font-size: 27px; }
    .rf-dashboard.rf-restrictions .rf-restriction-stats { grid-template-columns: 1fr; }
    .rf-dashboard.rf-restrictions .rf-restriction-stat-value { font-size: 35px; }
    .rf-dashboard.rf-restrictions .rf-section-heading h2 { font-size: 20px; }
    .rf-dashboard.rf-restrictions .rf-restriction-list > .rf-section-heading { padding: 21px 20px; }
    .rf-dashboard.rf-restrictions .rf-restriction-policy { padding: 14px; }
    .rf-dashboard.rf-restrictions .rf-restriction-empty { padding-inline: 20px; }
    .rf-dashboard.rf-restrictions .rf-restriction-empty h3 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .rf-dashboard.rf-restrictions *,
    .rf-dashboard.rf-restrictions *::before,
    .rf-dashboard.rf-restrictions *::after {
        animation: none !important; transition: none !important; scroll-behavior: auto !important;
    }
}

/* =========================================================
   RUSTOFILYA — STAFF
   Состав команды и полномочия сотрудников
   ========================================================= */

.rf-dashboard.rf-users.rf-staff .rf-page-heading { align-items: flex-start; gap: 22px; }
.rf-dashboard.rf-users.rf-staff .rf-page-heading h1 { max-width: 740px; overflow-wrap: anywhere; }
.rf-dashboard.rf-users.rf-staff .rf-page-heading > .rf-badge { flex-shrink: 0; margin-top: 8px; }
.rf-dashboard.rf-users.rf-staff .rf-subtitle { max-width: 700px; }

/* Статистика */
.rf-dashboard.rf-users.rf-staff .rf-staff-stats {
    display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: stretch; gap: 13px;
}
.rf-dashboard.rf-users.rf-staff .rf-staff-stats > .rf-stat-card {
    position: relative; display: flex; flex-direction: column; align-items: flex-start;
    min-width: 0; min-height: 172px; padding: 23px 19px; overflow: hidden;
}
.rf-dashboard.rf-users.rf-staff .rf-staff-stats > .rf-stat-card::before {
    position: absolute; top: 0; right: 19px; left: 19px; height: 2px;
    border-radius: 0 0 3px 3px; background: rgba(255,255,255,.18); content: "";
}
.rf-dashboard.rf-users.rf-staff .rf-staff-stats .rf-field-label {
    min-height: 30px; padding-right: 0; color: #a69eac;
    font-size: 8px; letter-spacing: .8px; line-height: 1.8; overflow-wrap: anywhere;
}
.rf-dashboard.rf-users.rf-staff .rf-staff-stats .rf-stat-card > strong {
    max-width: 100%; margin: 13px 0 9px; color: var(--rf-text);
    font-size: clamp(29px,2.8vw,38px); font-weight: 800; font-variant-numeric: tabular-nums;
    letter-spacing: -1.2px; line-height: 1.15; overflow-wrap: anywhere;
}
.rf-dashboard.rf-users.rf-staff .rf-staff-stats .rf-muted { margin-top: auto; font-size: 10px; line-height: 1.8; }
.rf-dashboard.rf-users.rf-staff .rf-staff-stats > .rf-stat-card:first-child {
    border-color: rgba(var(--rf-accent-rgb),.2);
    background: radial-gradient(ellipse at 100% 0,rgba(var(--rf-accent-rgb),.1),transparent 70%), var(--rf-panel);
}
.rf-dashboard.rf-users.rf-staff .rf-staff-stats > .rf-stat-card:first-child::before { background: var(--rf-orange); }
.rf-dashboard.rf-users.rf-staff .rf-staff-stats > .rf-stat-card:first-child > strong { color: #ffb08b; }
.rf-dashboard.rf-users.rf-staff .rf-staff-stats > .rf-stat-card:nth-child(2)::before { background: #82b9df; }
.rf-dashboard.rf-users.rf-staff .rf-staff-stats > .rf-stat-card:nth-child(3)::before { background: var(--rf-green); }
.rf-dashboard.rf-users.rf-staff .rf-staff-stats > .rf-stat-card:nth-child(4)::before { background: var(--rf-orange); }
.rf-dashboard.rf-users.rf-staff .rf-staff-stats > .rf-stat-card:nth-child(5)::before { background: #dfb675; }
.rf-dashboard.rf-users.rf-staff .rf-staff-stats > .rf-stat-card:nth-child(5) > strong { color: #edca91; }

/* Фильтры */
.rf-dashboard.rf-users.rf-staff .rf-staff-filters { align-items: end; }
.rf-dashboard.rf-users.rf-staff .rf-staff-filters .rf-users-field { min-width: 0; }
.rf-dashboard.rf-users.rf-staff .rf-staff-filters .rf-users-filter-actions { gap: 9px; }

/* Таблица */
.rf-dashboard.rf-users.rf-staff .rf-staff-table { width: 100%; min-width: 970px; table-layout: fixed; }
.rf-dashboard.rf-users.rf-staff .rf-staff-table th:nth-child(1) { width: 28%; }
.rf-dashboard.rf-users.rf-staff .rf-staff-table th:nth-child(2) { width: 16%; }
.rf-dashboard.rf-users.rf-staff .rf-staff-table th:nth-child(3) { width: 30%; }
.rf-dashboard.rf-users.rf-staff .rf-staff-table th:nth-child(4) { width: 13%; }
.rf-dashboard.rf-users.rf-staff .rf-staff-table th:nth-child(5) { width: 13%; }
.rf-dashboard.rf-users.rf-staff .rf-staff-table td { padding-top: 22px; padding-bottom: 22px; vertical-align: top; }
.rf-dashboard.rf-users.rf-staff .rf-staff-table .rf-users-person { align-items: flex-start; width: 100%; min-width: 0; }
.rf-dashboard.rf-users.rf-staff .rf-staff-table .rf-users-identity { min-width: 0; }
.rf-dashboard.rf-users.rf-staff .rf-staff-table .rf-users-identity strong { max-width: 100%; overflow-wrap: anywhere; }
.rf-dashboard.rf-users.rf-staff .rf-staff-table .rf-users-steam-id {
    max-width: 100%; font-size: 10px; letter-spacing: 0; white-space: normal; overflow-wrap: anywhere;
}
.rf-dashboard.rf-users.rf-staff .rf-staff-table .rf-users-role { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.rf-dashboard.rf-users.rf-staff .rf-staff-table .rf-users-date { display: inline-block; padding-top: 3px; }
.rf-dashboard.rf-users.rf-staff .rf-staff-table .rf-users-open { min-width: 0; max-width: 100%; gap: 7px; padding-inline: 10px; }

/* Полномочия */
.rf-dashboard.rf-users.rf-staff .rf-staff-permissions {
    display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px; min-width: 0;
}
.rf-dashboard.rf-users.rf-staff .rf-staff-permissions > .rf-badge {
    max-width: 100%; padding: 5px 7px; border-radius: 6px;
    font-size: 9px; font-weight: 500; line-height: 1.6; white-space: normal; overflow-wrap: anywhere;
}
.rf-dashboard.rf-users.rf-staff .rf-staff-permissions > .rf-badge-muted {
    border-color: rgba(255,255,255,.09); background: rgba(255,255,255,.025); color: #b5acbf;
}
.rf-dashboard.rf-users.rf-staff .rf-staff-permissions > .rf-staff-permission-owner {
    border-color: rgba(225,183,111,.25); background: rgba(225,183,111,.065); color: #edca91;
}

/* Текущий владелец */
.rf-dashboard.rf-users.rf-staff .rf-staff-self { margin-top: 11px; padding-left: 55px; }
.rf-dashboard.rf-users.rf-staff .rf-staff-self > .rf-badge { padding: 4px 7px; border-radius: 6px; font-size: 9px; line-height: 1.6; }
.rf-dashboard.rf-users.rf-staff .rf-staff-table .rf-staff-row--self > td { background: rgba(158,215,177,.025); }
.rf-dashboard.rf-users.rf-staff .rf-staff-table .rf-staff-row--self > td:first-child { box-shadow: inset 2px 0 rgba(158,215,177,.55); }
.rf-dashboard.rf-users.rf-staff .rf-staff-row--self .rf-users-avatar { border-color: rgba(158,215,177,.35); }

/* Пустой результат */
.rf-dashboard.rf-users.rf-staff .rf-staff-results > .rf-empty-state { padding: 25px 24px 35px; border-top: 1px solid var(--rf-border); }
.rf-dashboard.rf-users.rf-staff .rf-staff-results .rf-empty-state p { max-width: 440px; }

/* Пагинация */
.rf-dashboard.rf-users.rf-staff .rf-staff-pagination {
    display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 14px;
}
.rf-dashboard.rf-users.rf-staff .rf-staff-pagination > .rf-users-page-label { grid-column: 2; grid-row: 1; min-width: 0; }
.rf-dashboard.rf-users.rf-staff .rf-staff-pagination > a:first-child { grid-column: 1; grid-row: 1; justify-self: start; }
.rf-dashboard.rf-users.rf-staff .rf-staff-pagination > a:last-child { grid-column: 3; grid-row: 1; justify-self: end; }

@media (hover: hover) {
    .rf-dashboard.rf-users.rf-staff .rf-staff-table .rf-staff-row--self:hover > td { background: rgba(158,215,177,.045); }
}
@media (max-width: 1250px) {
    .rf-dashboard.rf-users.rf-staff .rf-staff-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-stats > .rf-stat-card:first-child { grid-column: 1 / -1; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-stats > .rf-stat-card { min-height: 145px; padding: 22px; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-stats .rf-field-label { min-height: 0; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-stats .rf-stat-card > strong { font-size: 34px; }
}
@media (max-width: 780px) {
    .rf-dashboard.rf-users.rf-staff .rf-page-heading { flex-wrap: wrap; gap: 14px; }
    .rf-dashboard.rf-users.rf-staff .rf-page-heading > .rf-badge { margin-top: 0; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-results .rf-section-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 600px) {
    .rf-dashboard.rf-users.rf-staff .rf-staff-filters { grid-template-columns: 1fr; gap: 17px; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-filters .rf-users-filter-actions { grid-column: auto; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-filters .rf-users-filter-actions .rf-action { flex: 1; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-filters .rf-users-field :is(input,select) { font-size: 16px; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-table td { padding-top: 19px; padding-bottom: 19px; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-results > .rf-empty-state { padding: 24px 22px 30px; }
}
@media (max-width: 480px) {
    .rf-dashboard.rf-users.rf-staff .rf-staff-pagination { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-pagination > .rf-users-page-label { grid-column: 1 / -1; grid-row: 1; width: 100%; margin: 0; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-pagination > a:first-child { grid-column: 1; grid-row: 2; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-pagination > a:last-child { grid-column: 2; grid-row: 2; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-self { padding-left: 48px; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-stats > .rf-stat-card { min-height: 140px; padding: 19px; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-stats .rf-stat-card > strong { font-size: 31px; }
}
@media (max-width: 400px) {
    .rf-dashboard.rf-users.rf-staff .rf-staff-stats { grid-template-columns: 1fr; gap: 11px; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-stats > .rf-stat-card:first-child { grid-column: auto; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-stats > .rf-stat-card { min-height: 0; padding: 21px; }
    .rf-dashboard.rf-users.rf-staff .rf-staff-stats .rf-stat-card > strong { margin-top: 12px; font-size: 33px; }
}