.toolbar-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: var(--space-3);
    align-items: end;
}

.toolbar-grid--compact {
    grid-template-columns: 1fr auto;
}

.toolbar-actions {
    display: flex;
    gap: var(--space-3);
    align-items: end;
    flex-wrap: wrap;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.stats-grid--dashboard {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stats-card__label {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.stats-card__value {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.stats-card__meta {
    margin: 12px 0 0;
}

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

.dashboard-panel {
    min-height: 100%;
}

.admin-panel__recent {
    margin-top: var(--space-4);
}

.dashboard-hero {
    margin-bottom: 24px;
    overflow: hidden;
}

.dashboard-hero--admin {
    border-color: rgba(245,166,35, 0.18);
}

.dashboard-hero__body {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.dashboard-hero__text {
    max-width: 760px;
    margin-bottom: 0;
}

.dashboard-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-list__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.dashboard-list__row--link {
    color: inherit;
    text-decoration: none;
    transition: 0.2s ease;
}

.dashboard-list__row--link:hover {
    background: rgba(245,166,35, 0.08);
    border-color: rgba(245,166,35, 0.16);
    transform: translateY(-1px);
}

.dashboard-list__row-person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dashboard-list__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex: 0 0 auto;
}

.dashboard-list__avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(245,166,35, 0.18);
    color: rgba(245,166,35, 0.9);
    font-size: 0.8rem;
    font-weight: 700;
    flex: 0 0 auto;
    border: 1px solid rgba(245,166,35, 0.22);
}

.dashboard-list__item-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
    flex: 0 0 auto;
}

.dashboard-list__item-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    flex: 0 0 auto;
    border: 1px solid var(--border);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 110px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    transition: 0.2s ease;
}

.quick-action-card:hover {
    background: rgba(245,166,35, 0.08);
    border-color: rgba(245,166,35, 0.16);
    transform: translateY(-2px);
}

.quick-action-card strong {
    font-size: 1rem;
}

.quick-action-card span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.metric-positive {
    color: #9ff0b6;
    font-weight: 700;
}

.metric-negative {
    color: #ffb4b4;
    font-weight: 700;
}

.presence-avatar-wrap {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.presence-avatar-wrap--sm {
    width: 44px;
    height: 44px;
}

.presence-avatar-wrap--xs {
    width: 32px;
    height: 32px;
}

.presence-indicator {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(11,14,19, 0.96);
    border-radius: 999px;
    background: #6b7280;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.presence-indicator--online {
    background: #3ddc84;
    box-shadow: 0 0 0 3px rgba(61,220,132, 0.16);
}

.presence-indicator--offline {
    background: #64748b;
}

.presence-indicator--inline {
    position: static;
    display: inline-flex;
    width: 10px;
    height: 10px;
    border-width: 0;
    box-shadow: none;
}

.online-role-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.online-role-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.online-role-card__value {
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.online-role-card__label {
    margin-bottom: 4px;
    font-weight: 700;
}

.online-role-card__meta {
    font-size: 0.9rem;
}

.week-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.86rem;
    color: var(--text-soft);
}

.week-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-chart__range-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 500;
    transition: 0.2s ease;
}

.price-chart__range-btn:hover {
    color: var(--text);
    border-color: rgba(245,166,35, 0.42);
    background: rgba(245,166,35, 0.10);
}

.price-chart__range-btn.is-active {
    color: var(--accent);
    border-color: rgba(245,166,35, 0.58);
    background: rgba(245,166,35, 0.18);
    box-shadow: inset 0 0 0 1px rgba(245,166,35, 0.18);
}

@media (max-width: 1440px) {
    .stats-grid--dashboard {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1280px) {
    .online-role-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .drop-filter-grid {
        grid-template-columns: 1fr;
    }


    .dashboard-grid,
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero__body {
        flex-direction: column;
    }

    .dashboard-hero__meta {
        justify-content: flex-start;
    }
}

@media (max-width: 1100px) {
    .toolbar-grid,
    .toolbar-grid--compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .stats-grid--dashboard {
        grid-template-columns: 1fr;
    }
}

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

.feature-lock-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border: 1px solid rgba(245,166,35, 0.18);
    border-radius: 6px;
    background:
        radial-gradient(circle at top right, rgba(245,166,35, 0.12), transparent 36%),
        rgba(255, 255, 255, 0.03);
}

.feature-lock-card--compact {
    padding: 20px;
}

.feature-lock-card__badge {
    display: inline-flex;
    align-self: flex-start;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(245,166,35, 0.24);
    background: rgba(245,166,35, 0.12);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-lock-card__title {
    margin: 0;
    font-size: 1.4rem;
}

.feature-lock-card__text {
    margin: 0;
    color: var(--text-muted);
}

.feature-lock-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-lock-card__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.feature-lock-card__hint {
    color: var(--text-muted);
    font-size: 0.92rem;
}
