:root {
    --xylop-bg: #070b17;
    --xylop-surface: rgba(14, 20, 39, 0.78);
    --xylop-surface-strong: rgba(10, 15, 31, 0.92);
    --xylop-border: rgba(129, 150, 255, 0.18);
    --xylop-border-strong: rgba(122, 147, 255, 0.32);
    --xylop-text: #edf2ff;
    --xylop-muted: #98a4d3;
    --xylop-primary: #7c8cff;
    --xylop-primary-strong: #9f74ff;
    --xylop-cyan: #65d8ff;
    --xylop-success: #37d39a;
    --xylop-warning: #ffcf68;
    --xylop-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.xylop-shell {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--xylop-text);
    background:
        radial-gradient(circle at top left, rgba(124, 140, 255, 0.17), transparent 30%),
        radial-gradient(circle at top right, rgba(101, 216, 255, 0.14), transparent 25%),
        linear-gradient(180deg, #050814 0%, #080d1b 32%, #0a1020 100%);
}

.xylop-bg-orb {
    position: fixed;
    z-index: 0;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.45;
    pointer-events: none;
}

.xylop-bg-orb-left {
    top: -80px;
    left: -70px;
    width: 280px;
    height: 280px;
    background: rgba(124, 140, 255, 0.24);
}

.xylop-bg-orb-right {
    right: 0;
    top: 80px;
    width: 320px;
    height: 320px;
    background: rgba(101, 216, 255, 0.14);
}

.admin-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 100vh;
    gap: 24px;
    padding: 24px;
}

.sidebar-glass,
.topbar-glass,
.card-glass,
.hero-card,
.module-card {
    background: var(--xylop-surface);
    border: 1px solid var(--xylop-border);
    backdrop-filter: blur(18px);
    box-shadow: var(--xylop-shadow);
}

.sidebar-glass {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 28px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--xylop-primary), var(--xylop-primary-strong));
    box-shadow: 0 18px 30px rgba(124, 140, 255, 0.28);
}

.brand-icon.large {
    width: 72px;
    height: 72px;
    font-size: 2.2rem;
    border-radius: 22px;
}

.brand-title,
.auth-title,
.page-title,
.hero-title,
.section-title,
.module-title {
    color: var(--xylop-text);
}

.brand-title {
    font-weight: 800;
    font-size: 1.1rem;
}

.brand-subtitle,
.auth-kicker,
.eyebrow,
.auth-subtitle,
.hero-subtitle,
.module-text,
.stat-label,
.feature-text,
.auth-note,
.sidebar-user {
    color: var(--xylop-muted);
}

.brand-subtitle,
.eyebrow,
.auth-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
}

.admin-nav .nav-link {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    color: #d7ddff;
    font-weight: 600;
    margin-bottom: 0.35rem;
    border: 1px solid transparent;
}

.admin-nav .nav-link:hover,
.admin-nav .nav-link.active {
    color: white;
    background: rgba(124, 140, 255, 0.12);
    border-color: rgba(124, 140, 255, 0.18);
}

.admin-nav .nav-link.disabled {
    opacity: 0.45;
}

.content-panel {
    min-width: 0;
}

.topbar-glass {
    border-radius: 24px;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.page-title {
    font-size: 1.65rem;
    font-weight: 800;
}

.page-body {
    min-width: 0;
}

.auth-page {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.auth-card {
    width: min(1120px, 100%);
    border-radius: 32px;
    padding: 32px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.auth-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    margin: 0.25rem 0;
}

.auth-subtitle {
    max-width: 760px;
    font-size: 1.02rem;
}

.auth-panel {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(129, 150, 255, 0.12);
    background: linear-gradient(180deg, rgba(12, 18, 35, 0.7), rgba(10, 14, 27, 0.94));
}

.auth-feature-list {
    display: grid;
    gap: 16px;
}

.auth-feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(124, 140, 255, 0.14);
    color: #dfe4ff;
    font-weight: 800;
}

.feature-title {
    font-weight: 700;
    color: var(--xylop-text);
}

.xylop-input {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(137, 152, 214, 0.22);
    background: rgba(6, 10, 20, 0.88);
    color: white;
}

.xylop-input:focus {
    background: rgba(6, 10, 20, 0.95);
    color: white;
    border-color: rgba(124, 140, 255, 0.56);
    box-shadow: 0 0 0 0.2rem rgba(124, 140, 255, 0.18);
}

.btn-xylop-primary,
.btn-xylop-secondary {
    border-radius: 16px;
    font-weight: 700;
    padding: 0.9rem 1.15rem;
}

.btn-xylop-primary {
    border: none;
    color: white;
    background: linear-gradient(135deg, var(--xylop-primary), var(--xylop-primary-strong));
    box-shadow: 0 18px 30px rgba(124, 140, 255, 0.22);
}

.btn-xylop-primary:hover {
    color: white;
    opacity: 0.96;
}

.btn-xylop-secondary {
    border: 1px solid rgba(137, 152, 214, 0.22);
    color: white;
    background: rgba(255, 255, 255, 0.03);
}

.btn-xylop-secondary:hover {
    color: white;
    background: rgba(255, 255, 255, 0.07);
}

.hero-card {
    border-radius: 28px;
    padding: 28px;
}

.hero-title {
    font-weight: 800;
    font-size: clamp(1.9rem, 2.5vw, 2.4rem);
}

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

.stat-card {
    border-radius: 20px;
    padding: 18px;
    border: 1px solid rgba(137, 152, 214, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.stat-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    word-break: break-word;
}

.module-card {
    border-radius: 24px;
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.module-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -30px auto;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    opacity: 0.18;
    filter: blur(28px);
}

.module-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.module-badge,
.module-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.module-badge {
    background: rgba(255, 255, 255, 0.06);
    color: #d8deff;
}

.module-status.planned {
    background: rgba(255, 207, 104, 0.12);
    color: var(--xylop-warning);
}

.module-status.ready {
    background: rgba(55, 211, 154, 0.12);
    color: var(--xylop-success);
}

.module-title {
    font-size: 1.2rem;
    font-weight: 800;
}

.accent-cyan::after { background: var(--xylop-cyan); }
.accent-indigo::after { background: var(--xylop-primary); }
.accent-violet::after { background: var(--xylop-primary-strong); }
.accent-emerald::after { background: var(--xylop-success); }
.accent-amber::after { background: var(--xylop-warning); }

.form-check-input {
    background-color: rgba(9, 14, 27, 0.92);
    border-color: rgba(137, 152, 214, 0.22);
}

.form-check-input:checked {
    background-color: var(--xylop-primary);
    border-color: var(--xylop-primary);
}

a {
    color: #adc4ff;
}

code {
    color: #e9e5ff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.1rem 0.35rem;
}

.validation-summary-errors ul {
    margin-bottom: 0;
    padding-left: 1.1rem;
}

@media (max-width: 991.98px) {
    .admin-shell {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .sidebar-glass {
        gap: 24px;
    }

    .topbar-glass {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-card {
        padding: 22px;
    }

    .auth-brand {
        align-items: flex-start;
        flex-direction: column;
    }
}


.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.role-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.role-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #dfe6ff;
    background: rgba(124, 140, 255, 0.12);
    border: 1px solid rgba(124, 140, 255, 0.18);
}

.role-chip-active {
    color: white;
    background: linear-gradient(135deg, rgba(124, 140, 255, 0.2), rgba(159, 116, 255, 0.22));
    border-color: rgba(159, 116, 255, 0.35);
}

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

.policy-card {
    padding: 24px;
    border-radius: 24px;
}

.policy-count {
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--xylop-text);
    background: rgba(101, 216, 255, 0.12);
    border: 1px solid rgba(101, 216, 255, 0.18);
}

@media (max-width: 1199.98px) {
    .policy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .topbar-glass {
        flex-direction: column;
        align-items: flex-start;
    }
}

.section-card {
    border-radius: 28px;
}

.xylop-textarea {
    min-height: 160px;
    resize: vertical;
}

.xylop-alert {
    border-radius: 20px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(137, 152, 214, 0.18);
    color: var(--xylop-text);
    background: rgba(255, 255, 255, 0.04);
}

.xylop-alert-success {
    border-color: rgba(55, 211, 154, 0.25);
    background: rgba(55, 211, 154, 0.08);
}

.xylop-alert-danger,
.xylop-alert-danger.validation-summary-errors {
    border-color: rgba(255, 100, 124, 0.28);
    background: rgba(255, 100, 124, 0.08);
    color: #ffe2e8;
}

.role-selection-grid {
    display: grid;
    gap: 12px;
}

.role-choice {
    position: relative;
    display: block;
    cursor: pointer;
    border-radius: 20px;
    border: 1px solid rgba(137, 152, 214, 0.14);
    background: rgba(255, 255, 255, 0.03);
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
    overflow: hidden;
}

.role-choice:hover {
    transform: translateY(-1px);
    border-color: rgba(124, 140, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.role-choice input {
    position: absolute;
    inset: 16px 16px auto auto;
    width: 18px;
    height: 18px;
}

.role-choice-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    padding-right: 44px;
}

.role-choice-title {
    font-weight: 800;
    color: var(--xylop-text);
}

.role-choice-name {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #cbd5ff;
}

.role-choice-text {
    color: var(--xylop-muted);
    font-size: .92rem;
    line-height: 1.45;
}

.role-choice:has(input:checked) {
    border-color: rgba(124, 140, 255, 0.38);
    background: linear-gradient(180deg, rgba(124, 140, 255, 0.12), rgba(255,255,255,0.03));
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.password-panel {
    border-top: 1px solid rgba(137, 152, 214, 0.14);
    padding-top: 20px;
}

.password-panel-title {
    font-weight: 800;
    color: var(--xylop-text);
    margin-bottom: 10px;
}

.xylop-table-wrap {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(137, 152, 214, 0.14);
}

.xylop-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--xylop-text);
    --bs-table-border-color: rgba(137, 152, 214, 0.12);
    margin-bottom: 0;
}

.xylop-table thead th {
    color: #c7d2ff;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
    border-bottom-width: 1px;
    background: rgba(255, 255, 255, 0.02);
}

.xylop-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.xylop-table td,
.xylop-table th {
    padding: 18px 16px;
    vertical-align: top;
}

.table-primary-line {
    font-weight: 800;
    color: var(--xylop-text);
}

.table-secondary-line,
.table-tertiary-line,
.table-note {
    color: var(--xylop-muted);
}

.table-secondary-line {
    margin-top: 3px;
}

.table-tertiary-line {
    margin-top: 4px;
    font-size: .88rem;
}

.table-note {
    margin-top: 10px;
    font-size: .92rem;
    line-height: 1.5;
}

.key-preview-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(124, 140, 255, 0.22);
    background: rgba(124, 140, 255, 0.10);
    color: #eef2ff;
    font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.status-pill-success {
    color: var(--xylop-success);
    background: rgba(55, 211, 154, 0.12);
    border: 1px solid rgba(55, 211, 154, 0.22);
}

.status-pill-muted {
    color: #cbd4f7;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(137, 152, 214, 0.16);
}

.status-pill-warning {
    color: var(--xylop-warning);
    background: rgba(255, 207, 104, 0.12);
    border: 1px solid rgba(255, 207, 104, 0.22);
}

.action-stack {
    display: grid;
    gap: 8px;
    width: min(220px, 100%);
}

.empty-state {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--xylop-primary), var(--xylop-primary-strong));
    color: white;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 18px 30px rgba(124, 140, 255, 0.22);
}

.identity-line {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(137, 152, 214, 0.14);
}

.identity-label {
    color: var(--xylop-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .76rem;
    font-weight: 800;
}

.identity-value {
    color: var(--xylop-text);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .action-stack {
        width: 100%;
    }
}

.json-snippet {
    max-width: 520px;
    color: #dfe6ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.85rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.pagination-glass {
    border-top: 1px solid rgba(137, 152, 214, 0.14);
    padding-top: 1rem;
}

.pagination-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(137, 152, 214, 0.16);
    color: var(--xylop-text);
    font-weight: 700;
}

.detail-stack {
    display: grid;
    gap: 1.25rem;
}

.detail-label {
    color: var(--xylop-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.detail-value {
    color: var(--xylop-text);
    font-size: 1.02rem;
    font-weight: 700;
}

.json-viewer {
    margin: 0;
    min-height: 420px;
    max-height: 900px;
    overflow: auto;
    border-radius: 24px;
    padding: 1.25rem;
    background: rgba(4, 8, 18, 0.92);
    border: 1px solid rgba(137, 152, 214, 0.16);
    color: #dce4ff;
    font-size: 0.92rem;
    line-height: 1.55;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

.serp-api-key-input,
.key-preview-pill.key-preview-full {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    letter-spacing: 0.02em;
}

.serp-inspector-status .xylop-alert {
    display: flex;
    align-items: center;
    min-height: 56px;
}


.sidebar-glass {
    position: sticky;
    top: 24px;
    min-height: calc(100vh - 48px);
}

.sidebar-section-label {
    color: rgba(152, 164, 211, 0.72);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .68rem;
    font-weight: 800;
    margin-bottom: .45rem;
}

.admin-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-link-meta,
.topbar-meta-text {
    color: var(--xylop-muted);
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.topbar-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: .45rem;
    color: var(--xylop-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .68rem;
    font-weight: 800;
}

.topbar-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .85rem;
}

.min-w-0 {
    min-width: 0;
}

.page-intro-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(12, 18, 35, 0.74), rgba(8, 12, 24, 0.94));
    border: 1px solid rgba(137, 152, 214, 0.14);
}

.page-intro-content {
    min-width: 0;
}

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

.overview-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.overview-card {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(137, 152, 214, 0.14);
}

.overview-card-value {
    color: var(--xylop-text);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: .25rem;
}

.overview-card-label {
    color: var(--xylop-muted);
    font-size: .85rem;
}

.quick-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1.1rem;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(137, 152, 214, 0.14);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.quick-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 140, 255, 0.24);
    background: rgba(124, 140, 255, 0.06);
}

.quick-link-caption {
    color: var(--xylop-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .7rem;
    font-weight: 800;
}

.quick-link-title {
    color: var(--xylop-text);
    font-size: 1rem;
    font-weight: 800;
}

.quick-link-text {
    color: var(--xylop-muted);
    font-size: .92rem;
    line-height: 1.55;
}

.quick-link-meta {
    color: #dfe6ff;
    font-size: .85rem;
    font-weight: 700;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.xylop-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    backdrop-filter: blur(14px);
}

.xylop-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.key-preview-stack {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
}

.xylop-code-panel {
    margin: 0;
    min-height: 260px;
    max-height: 900px;
    overflow: auto;
    border-radius: 24px;
    padding: 1.25rem;
    background: rgba(4, 8, 18, 0.92);
    border: 1px solid rgba(137, 152, 214, 0.16);
    color: #dce4ff;
    font-size: 0.92rem;
    line-height: 1.55;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

.xylop-inline-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.copy-badge {
    border: 1px dashed rgba(124, 140, 255, 0.32);
    background: rgba(124, 140, 255, 0.08);
    color: #e7ebff;
}

.copy-badge.copied {
    border-style: solid;
    border-color: rgba(55, 211, 154, 0.35);
    background: rgba(55, 211, 154, 0.12);
    color: #d9fff1;
}

.form-hint-panel {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(137, 152, 214, 0.14);
}

.form-hint-list {
    display: grid;
    gap: .85rem;
    margin: 0;
    padding-left: 1rem;
    color: var(--xylop-muted);
}

@media (max-width: 1199.98px) {
    .sidebar-glass {
        position: static;
        min-height: auto;
    }
}

@media (max-width: 991.98px) {
    .page-intro-card,
    .table-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-intro-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .admin-shell {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .topbar-glass,
    .sidebar-glass {
        border-radius: 22px;
    }
}


.status-pill-danger {
    color: #ffe1e8;
    background: rgba(255, 83, 115, 0.14);
    border: 1px solid rgba(255, 83, 115, 0.26);
}

.audit-preview {
    max-width: 440px;
    white-space: normal;
    word-break: break-word;
}

.json-viewer {
    border: 1px solid rgba(129, 150, 255, 0.14);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(8, 12, 24, 0.82);
}

.json-viewer-head {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(129, 150, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.json-viewer-body {
    margin: 0;
    padding: 18px;
    max-height: 70vh;
    overflow: auto;
    color: #dfe6ff;
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}


.stat-grid-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chart-block,
.mini-chart-card {
    border: 1px solid rgba(129, 150, 255, 0.12);
    border-radius: 22px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(12, 18, 35, 0.55), rgba(10, 14, 27, 0.82));
}

.chart-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.chart-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.chart-row + .chart-row,
.capacity-row + .capacity-row {
    margin-top: 14px;
}

.chart-row-top,
.capacity-row-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: var(--xylop-text);
}

.chart-bar-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(129, 150, 255, 0.12);
    overflow: hidden;
    border: 1px solid rgba(129, 150, 255, 0.08);
}

.chart-bar-fill {
    height: 100%;
    border-radius: 999px;
    min-width: 4px;
}

.chart-tone-primary {
    background: linear-gradient(90deg, var(--xylop-primary), var(--xylop-primary-strong));
}

.chart-tone-success {
    background: linear-gradient(90deg, #2ccf95, #37d39a);
}

.chart-tone-warning {
    background: linear-gradient(90deg, #ffbe4d, #ffcf68);
}

.chart-tone-danger {
    background: linear-gradient(90deg, #ff6d7c, #ff8e7b);
}

.chart-tone-info {
    background: linear-gradient(90deg, #54c7ff, #65d8ff);
}

.chart-tone-neutral {
    background: linear-gradient(90deg, rgba(152, 164, 211, 0.75), rgba(129, 150, 255, 0.55));
}

.capacity-row {
    padding-top: 2px;
}

.empty-state.compact {
    padding: 28px 18px;
    min-height: auto;
}

@media (max-width: 1399.98px) {
    .stat-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .stat-grid-compact {
        grid-template-columns: 1fr;
    }

    .chart-title-row,
    .chart-row-top,
    .capacity-row-top {
        flex-direction: column;
        align-items: stretch;
    }
}
