:root {
    --panel-accent: #3b7ddd;
    --panel-accent-rgb: 59, 125, 221;
    --panel-radius: 0.5rem;
    --panel-sidebar-width: 260px;
    --panel-soft-border: rgba(108, 117, 125, 0.22);
    --panel-muted-bg: rgba(108, 117, 125, 0.08);
}

body {
    letter-spacing: 0;
}

.wrapper {
    background: var(--bs-body-bg);
}

.sidebar {
    width: var(--panel-sidebar-width);
}

.sidebar-brand {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand-img {
    max-width: 168px;
    max-height: 48px;
    object-fit: contain;
}

.sidebar-header {
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding-top: 1.15rem;
    text-transform: uppercase;
}

.sidebar-link {
    border-left: 3px solid transparent;
    border-radius: 0 0.35rem 0.35rem 0;
    margin: 0.1rem 0.75rem 0.1rem 0;
}

.sidebar-link i {
    width: 1.25rem;
    text-align: center;
}

.sidebar-link.active,
.sidebar-link:hover {
    background: linear-gradient(90deg, rgba(var(--panel-accent-rgb), 0.18), rgba(var(--panel-accent-rgb), 0.02));
    border-left-color: var(--panel-accent);
    color: #ffffff !important;
}

.navbar-bgw {
    min-height: 64px;
    border-bottom: 1px solid var(--panel-soft-border);
}

.content {
    padding: 1.5rem;
}

.content > .container-fluid {
    max-width: 1440px;
}

.panel-page-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: 0 0 1.5rem;
}

.panel-title-row {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.panel-title-row h1 {
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.panel-title-icon {
    align-items: center;
    background: rgba(var(--panel-accent-rgb), 0.12);
    border: 1px solid rgba(var(--panel-accent-rgb), 0.18);
    border-radius: var(--panel-radius);
    color: var(--panel-accent);
    display: inline-flex;
    height: 2.5rem;
    justify-content: center;
    width: 2.5rem;
}

.panel-page-header p {
    color: var(--bs-secondary-color);
    margin: 0.4rem 0 0;
    max-width: 48rem;
}

.panel-page-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.card {
    border-color: var(--panel-soft-border);
    border-radius: var(--panel-radius);
}

.card-header {
    background: transparent;
    border-bottom-color: var(--panel-soft-border);
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.panel-section-title {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.panel-muted-surface {
    background: var(--panel-muted-bg);
    border: 1px solid var(--panel-soft-border);
    border-radius: var(--panel-radius);
}

.form-label {
    font-weight: 600;
}

.form-text {
    color: var(--bs-secondary-color);
}

.form-check-input,
.form-control,
.form-select {
    border-color: var(--panel-soft-border);
}

.btn {
    border-radius: 0.45rem;
    font-weight: 600;
}

.btn-icon {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    justify-content: center;
}

.btn-square {
    align-items: center;
    aspect-ratio: 1;
    display: inline-flex;
    justify-content: center;
    padding: 0;
    width: 2.25rem;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    color: var(--bs-secondary-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.empty-state {
    align-items: center;
    color: var(--bs-secondary-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    min-height: 10rem;
    text-align: center;
}

.empty-state i {
    color: var(--bs-tertiary-color);
    font-size: 2rem;
}

.panel-list {
    display: grid;
    gap: 0.75rem;
}

.panel-list-item {
    align-items: center;
    background: var(--panel-muted-bg);
    border: 1px solid transparent;
    border-radius: var(--panel-radius);
    color: inherit;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.panel-list-item:hover {
    border-color: var(--panel-soft-border);
}

.panel-list-link {
    align-items: stretch;
    display: block;
    text-decoration: none;
}

.panel-list-link:hover {
    background: rgba(var(--panel-accent-rgb), 0.08);
}

.dashboard-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-primary-stat {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

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

.dashboard-stat-tile {
    align-items: center;
    background: var(--panel-muted-bg);
    border: 1px solid var(--panel-soft-border);
    border-radius: var(--panel-radius);
    display: flex;
    gap: 0.75rem;
    min-height: 4.5rem;
    padding: 0.75rem;
}

.dashboard-stat-icon {
    align-items: center;
    background: rgba(var(--panel-accent-rgb), 0.12);
    border-radius: 0.45rem;
    color: var(--panel-accent);
    display: inline-flex;
    flex: 0 0 auto;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.dashboard-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
}

.dashboard-stat-label {
    color: var(--bs-secondary-color);
    font-size: 0.78rem;
    line-height: 1.25;
}

.dashboard-status-panel {
    background: var(--panel-muted-bg);
    border: 1px solid var(--panel-soft-border);
    border-radius: var(--panel-radius);
    margin-top: auto;
    padding: 1rem;
}

.dashboard-status-title {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.dashboard-status-list {
    display: grid;
    gap: 0.55rem;
}

.dashboard-status-row {
    align-items: center;
    display: flex;
    font-size: 0.9rem;
    gap: 0.75rem;
    justify-content: space-between;
}

.dashboard-release-list {
    max-height: 22rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.role-bg-card {
    min-height: 28rem;
}

.role-bg-preview {
    align-items: center;
    background: var(--panel-muted-bg);
    border: 1px solid var(--panel-soft-border);
    border-radius: var(--panel-radius);
    color: var(--bs-secondary-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 10rem;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.role-bg-preview i {
    color: var(--bs-tertiary-color);
    font-size: 2rem;
}

.role-bg-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.scroll-panel {
    max-height: 24rem;
    overflow-y: auto;
}

.scroll-panel-sm {
    max-height: 18rem;
    overflow-y: auto;
}

.flash-stack {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.flash-stack-fixed {
    bottom: 1rem;
    max-width: min(28rem, calc(100vw - 2rem));
    position: fixed;
    right: 1rem;
    z-index: 1080;
}

.auth-shell,
.install-shell {
    background:
        radial-gradient(circle at top left, rgba(var(--panel-accent-rgb), 0.18), transparent 28rem),
        var(--bs-body-bg);
    min-height: 100vh;
}

.auth-card,
.install-card {
    max-width: 440px;
}

.install-card-wide {
    max-width: 640px;
}

.brand-logo {
    max-height: 56px;
    max-width: 240px;
    object-fit: contain;
}

.step-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    height: 1.75rem;
    justify-content: center;
    width: 1.75rem;
}

@media (max-width: 767.98px) {
    .content {
        padding: 1rem;
    }

    .panel-page-header {
        display: block;
    }

    .panel-page-actions {
        justify-content: flex-start;
        margin-top: 1rem;
    }

    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }
}
