:root {
    --bg: #07090b;
    --bg-soft: #10151a;
    --panel: rgba(14, 19, 24, 0.9);
    --panel-strong: rgba(18, 25, 30, 0.97);
    --border: rgba(255, 255, 255, 0.08);
    --text: #eff4f6;
    --muted: #9ca9b0;
    --accent: #d94841;
    --accent-soft: rgba(217, 72, 65, 0.18);
    --accent-2: #87b842;
    --danger: #e45454;
    --steam: #4fa3ff;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Bahnschrift SemiCondensed", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(135, 184, 66, 0.14), transparent 28%),
        radial-gradient(circle at left center, rgba(217, 72, 65, 0.18), transparent 30%),
        linear-gradient(180deg, #0a0f13 0%, #07090b 100%);
    color: var(--text);
    min-height: 100vh;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    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: 36px 36px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
    pointer-events: none;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
code { font-family: Consolas, monospace; }
.container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(840px, 100%); }
.section { padding: 32px 0 72px; }
.panel { background: linear-gradient(180deg, rgba(24, 30, 36, 0.95), rgba(11, 15, 19, 0.95)); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); }
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(7, 9, 11, 0.78); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; border: 1px solid rgba(255,255,255,0.12); }
.brand strong, .hero h1, .page-intro h1, .section-heading h2, .rule-block h2, .auth-panel h1, .ban-header h1 { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; text-transform: uppercase; letter-spacing: 0.04em; }
.brand span { display: grid; }
.brand small, .meta-line, .footer-title, .form-hint, .muted-line { color: var(--muted); }
.site-nav, .header-actions, .hero-actions, .band-actions, .inline-actions, .list-head, .ban-tools, .scope-toggle, .pagination-bar { display: flex; align-items: center; gap: 12px; }
.site-nav a, .ghost-button, .primary-button, .danger-button, .text-link { transition: 180ms ease; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .text-link:hover { color: var(--text); }
.nav-accent, .primary-button, .danger-button, .ghost-button { border-radius: 999px; padding: 12px 18px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.primary-button { background: linear-gradient(135deg, var(--accent), #902821); color: white; }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgba(217,72,65,0.35); }
.ghost-button, .nav-accent { background: rgba(255,255,255,0.03); color: var(--text); border-color: var(--border); }
.danger-button { background: rgba(228,84,84,0.12); border-color: rgba(228,84,84,0.35); color: #ffb1b1; }
.user-chip {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-height: 44px;
}
.header-actions > a,
.header-actions > button,
.header-actions > form > button {
    min-height: 44px;
}

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

.header-actions-mobile {
    display: none;
}
.header-actions > form {
    display: flex;
    align-items: center;
}
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: white; margin: 4px auto; }
.hero, .page-intro, .auth-screen { padding: 64px 0 36px; }
.hero-grid, .rules-grid, .dashboard-grid, .news-feature, .footer-grid, .admin-list-card, .user-row, .ban-header { display: grid; gap: 24px; }
.hero-grid { grid-template-columns: 1.3fr 0.9fr; align-items: center; min-height: calc(100vh - 108px); }
.hero-copy h1 { font-size: clamp(2.8rem, 5vw, 5.4rem); line-height: 0.94; margin: 0 0 18px; }
.hero-text, .page-intro p, .rule-block p, .news-card p, .admin-list-card p, .user-row p, .ban-header p { color: var(--muted); line-height: 1.65; }
.eyebrow { letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-2); font-size: 0.78rem; margin: 0 0 12px; }
.eyebrow.small { font-size: 0.72rem; }
.hero-panel, .news-feature, .admin-list-card, .auth-panel, .article-card, .home-band, .centered-panel, .empty-state, .rule-block { padding: 28px; }
.status-strip { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; color: var(--muted); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 18px var(--accent-2); }
.hero-stats, .quick-links, .news-grid, .stack-grid, .rule-points { display: grid; gap: 18px; }
.hero-stats article, .quick-links a { padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
.hero-stats strong, .quick-links strong { display: block; font-size: 1.25rem; margin-bottom: 4px; }
.section-heading, .rules-header-row, .list-head, .ban-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-list-card { grid-template-columns: 280px 1fr auto; background: rgba(255, 255, 255, 0.025); }
.news-feature img, .news-card img, .admin-list-card img, .article-card img, .rule-block-head img { border-radius: 18px; object-fit: cover; width: 100%; height: 100%; min-height: 220px; }
.news-grid.wide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-card { overflow: hidden; display: grid; }
.news-card div { padding: 22px; }
.article-copy { display: grid; gap: 14px; margin-top: 22px; }
.rules-grid { grid-template-columns: 320px minmax(0, 1fr); align-items: start; }
.rules-sidebar { position: sticky; top: 104px; padding: 18px; max-height: calc(100vh - 130px); overflow-y: auto; overflow-x: hidden; }
.sidebar-title { margin: 0 0 16px; color: white; }
.toc-list { display: grid; gap: 10px; padding-right: 4px; }
.toc-group { border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,0.03); overflow: hidden; }
.toc-group summary { cursor: pointer; list-style: none; padding: 11px 13px; font-weight: 700; }
.toc-group summary::-webkit-details-marker { display: none; }
.toc-links { display: grid; gap: 6px; padding: 0 13px 13px; }
.toc-links a { color: var(--muted); }
.toc-links a:hover, .toc-links a.active { color: white; }
.toc-links .toc-sub { padding-left: 14px; font-size: 0.92rem; }
.rules-content { display: grid; gap: 20px; }
.rule-block-head { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 18px; }
.rule-section { padding: 18px; border: 1px solid rgba(255,255,255,0.07); border-radius: 18px; background: rgba(255,255,255,0.025); margin-top: 18px; overflow: hidden; }
.rule-heading-line { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rule-section + .rule-section { margin-top: 18px; }
.rule-label, .rule-point-number { display: inline-flex; align-items: center; justify-content: center; min-width: 68px; padding: 6px 10px; border-radius: 10px; background: rgba(217,72,65,0.12); border: 1px solid rgba(217,72,65,0.25); color: #ffccc8; }
.rule-lead { margin-bottom: 12px; }
.rule-point { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07); }
.rule-point-body p { margin: 0; }
.rule-subpoints { display: grid; gap: 10px; margin-top: 10px; }
.rule-subpoint { display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding: 10px 0 0; border-top: 1px dashed rgba(255,255,255,0.08); }
.rule-subpoint span { color: #b8c6cd; font-size: 0.9rem; }
.ban-list-wrap { display: grid; gap: 24px; }
.ban-header { grid-template-columns: 1fr auto; align-items: start; }
.ban-tools { justify-content: end; flex-wrap: wrap; }
.ban-tools input[type='search'] { min-width: 280px; }
.scope-toggle { padding: 6px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.scope-toggle a { padding: 10px 14px; border-radius: 999px; color: var(--muted); }
.scope-toggle a.active { background: rgba(79,163,255,0.16); color: white; }
.advanced-ban-table { display: grid; gap: 14px; background: transparent; border: none; box-shadow: none; }
.ban-legend, .ban-record { display: grid; gap: 16px; align-items: center; grid-template-columns: 110px minmax(220px, 1.2fr) minmax(220px, 1.2fr) 150px minmax(220px, 1.4fr) minmax(180px, 1fr); }
.ban-legend { padding: 0 20px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; }
.ban-record { padding: 18px 20px; border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.ban-record.has-vip-bg { position: relative; overflow: hidden; }
.ban-record.has-vip-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(10,14,17,0.14), rgba(10,14,17,0.68)), var(--vip-bg-url);
    background-size: cover;
    background-position: center;
    opacity: 0.58;
    z-index: 0;
}

.theme-active { background: linear-gradient(90deg, rgba(217,72,65,0.18), rgba(14,19,24,0.72) 36%); }
.theme-expired { background: linear-gradient(90deg, rgba(196,139,36,0.18), rgba(14,19,24,0.72) 36%); }
.theme-revoked { background: linear-gradient(90deg, rgba(79,163,255,0.18), rgba(14,19,24,0.72) 36%); }
.ban-col { position: relative; z-index: 1; }
.ban-date-col strong, .ban-time-col strong { display: block; font-size: 1.25rem; }
.ban-date-col span, .ban-time-col span { color: var(--muted); }
.identity-col { display: flex; align-items: center; gap: 14px; }
.identity-col img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); }
.identity-col strong { display: block; margin-bottom: 4px; }
.identity-col a { color: var(--steam); }
.identity-col-console { align-items: center; }
.identity-col-console > div { padding-left: 0; }
.ban-reason-col p, .ban-unban-col p { margin: 0 0 12px; }
.status { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 8px 12px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; }
.status-active { background: rgba(135,184,66,0.18); color: #dff8be; }
.status-expired { background: rgba(255,176,32,0.18); color: #ffe2a7; }
.status-revoked { background: rgba(82,145,255,0.18); color: #caddff; }
.pagination-bar { justify-content: center; flex-wrap: wrap; }
.pagination-bar a { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--muted); }
.pagination-bar a.active { background: rgba(217,72,65,0.18); color: white; }.compact-pagination { display: flex; align-items: center; gap: 10px; margin-top: 22px; }.compact-pagination a { min-width: 46px; padding: 0 14px; }.pagination-nav { font-size: 1.05rem; }.pagination-ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; color: var(--muted); letter-spacing: 0.18em; }
.empty-state { text-align: center; }
.form-grid { display: grid; gap: 18px; }
.form-grid label { display: grid; gap: 10px; }
.rules-search-wrap { margin-bottom: 14px; }
.rules-search-input { padding: 10px 14px; font-size: 0.92rem; border-radius: 12px; }
.skeleton-w-22 { width: 22%; }
.skeleton-w-28 { width: 28%; }
.skeleton-w-40 { width: 40%; }
.skeleton-w-46 { width: 46%; }
.skeleton-w-52 { width: 52%; }
.skeleton-w-58 { width: 58%; }
.skeleton-w-60 { width: 60%; }
.skeleton-w-62 { width: 62%; }
.skeleton-w-64 { width: 64%; }
.skeleton-w-66 { width: 66%; }
.skeleton-w-68 { width: 68%; }
.skeleton-w-70 { width: 70%; }
.skeleton-w-72 { width: 72%; }
.skeleton-w-74 { width: 74%; }
.skeleton-w-76 { width: 76%; }
.skeleton-w-78 { width: 78%; }
.skeleton-w-80 { width: 80%; }
.skeleton-w-82 { width: 82%; }
.skeleton-w-85 { width: 85%; }
.profile-banner-image { background-image: linear-gradient(180deg, rgba(9, 12, 15, 0.15), rgba(9, 12, 15, 0.88)), var(--banner-image, none); }
.profile-edit-banner-image { background-image: linear-gradient(180deg, rgba(10, 14, 17, 0.16), rgba(10, 14, 17, 0.92)), var(--banner-image, none); }
.vip-preview-banner-image { background-image: linear-gradient(90deg, rgba(217,72,65,0.18), rgba(14,19,24,0.72) 36%), linear-gradient(180deg, rgba(10,14,17,0.14), rgba(10,14,17,0.68)), var(--banner-image, none); }
.org-hero-banner { margin: 10px 0 14px; height: 170px; background-image: linear-gradient(180deg, rgba(9,12,15,0.2), rgba(9,12,15,0.7)), var(--banner-image, none); }
.org-flag-image { margin: 10px 0; }
.org-preview-panel { padding: 10px; }
.org-preview-note { margin-top: 0; }
.org-preview-banner { height: 150px; background-image: linear-gradient(180deg, rgba(9,12,15,0.2), rgba(9,12,15,0.7)), var(--banner-image, none); }
input, textarea, select { width: 100%; border-radius: 16px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: white; padding: 14px 16px; }
select option,
select optgroup {
    background: rgba(12,16,20,0.98);
    color: white;
}
textarea { resize: vertical; }
.flash-stack { display: grid; gap: 10px; margin-top: 18px; }
.flash { padding: 14px 18px; border-radius: 18px; border: 1px solid var(--border); }
.flash-success { background: rgba(135,184,66,0.12); }
.flash-error { background: rgba(228,84,84,0.12); }
.footer-grid, .dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-grid { align-items: start; }
.quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-band, .user-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-list-card.no-image { grid-template-columns: 1fr auto; }
.inline-actions, .role-form { justify-content: end; flex-wrap: wrap; }
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 38px; background: rgba(0,0,0,0.18); }
.centered-panel { text-align: center; }
@media (max-width: 1200px) {
    .ban-legend, .ban-record { min-width: 1280px; }
    .ban-list-wrap { overflow-x: auto; }
}
@media (max-width: 980px) {
    .nav-toggle { display: inline-block; }
    .site-nav { position: absolute; top: calc(100% + 10px); left: 16px; right: 16px; padding: 16px; border-radius: 20px; background: rgba(12,16,20,0.98); border: 1px solid var(--border); display: none; flex-direction: column; align-items: stretch; }
    .site-nav.open { display: flex; }
    .header-actions-desktop { display: none; }
    .header-actions-mobile { 
        display: flex; 
        flex-direction: column; 
        gap: 12px; 
        padding: 16px 0 0; 
        border-top: 1px solid var(--border); 
    }
    .header-actions-mobile > * { 
        width: 100%; 
        justify-content: center; 
    }
    .header-actions-mobile .user-chip { 
        justify-content: center; 
    }
    .hero-grid, .news-feature, .rules-grid, .rule-block-head, .news-grid, .dashboard-grid, .footer-grid, .home-band, .user-row, .admin-list-card, .admin-list-card.no-image, .ban-header { grid-template-columns: 1fr; display: grid; }
    .quick-links { grid-template-columns: 1fr 1fr; }
    .rules-sidebar { position: static; }
}
@media (max-width: 640px) {
    .container { width: min(100% - 20px, 1240px); }
    .hero, .page-intro, .section, .auth-screen { padding-top: 38px; }
    .hero-copy h1 { font-size: 2.5rem; }
    .quick-links, .news-grid { grid-template-columns: 1fr; }
    .section-heading, .rules-header-row, .list-head, .ban-header { align-items: start; flex-direction: column; }
    .ban-tools { width: 100%; justify-content: start; }
    .ban-tools input[type='search'] { min-width: 0; width: 100%; }
    .rule-point, .rule-subpoint { grid-template-columns: 1fr; }
}
.compact-rule-head img { display: none; }
.rule-inline-image { width: min(360px, 100%); border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); }
.subpoint-image { margin-top: 8px; width: min(300px, 100%); }
.rules-sidebar::-webkit-scrollbar { width: 6px; }
.rules-sidebar::-webkit-scrollbar-thumb { background: rgba(217,72,65,0.45); border-radius: 999px; }
.rules-sidebar::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 999px; }
.rule-admin-card { grid-template-columns: 160px 1fr auto; }
.rule-category-tile {
    min-height: 220px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    display: flex;
    align-items: center;
    justify-content: center;
}
.rule-category-tile span {
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: 5rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.28);
}
.profile-grid-two {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 22px;
}
.image-library-panel { padding: 24px; }
.image-library-list { display: grid; gap: 14px; max-height: 720px; overflow-y: auto; }
.image-library-item {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.image-library-item img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 12px;
}
.image-library-item strong,
.image-library-item code {
    display: block;
    word-break: break-all;
}
.profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
}
.profile-main {
    display: flex;
    gap: 18px;
    align-items: center;
}
.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 22px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.12);
}
.profile-role-badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(79,163,255,0.12);
    border: 1px solid rgba(79,163,255,0.24);
    margin: 0 0 12px;
}
.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.profile-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.profile-card { padding: 24px; }
.profile-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}
.profile-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.profile-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.badge-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.badge-cloud span {
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(217,72,65,0.12);
    border: 1px solid rgba(217,72,65,0.22);
}
.mini-ban-list {
    display: grid;
    gap: 12px;
}
.skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.07),
        transparent
    );
    animation: skeleton-shimmer 1.15s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}
.skeleton-line {
    height: 14px;
    margin: 0;
}
.skeleton-line.sm { height: 12px; opacity: 0.85; }
.skeleton-line.lg { height: 18px; }
.skeleton-stack {
    display: grid;
    gap: 10px;
}
.skeleton-card {
    padding: 12px 14px;
}
.skeleton-row {
    display: grid;
    gap: 8px;
}
.skeleton-row-detailed {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 12px;
}
.skeleton-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.skeleton-pill {
    display: inline-block;
    height: 22px;
    width: 70px;
    border-radius: 999px;
    vertical-align: middle;
}
.mini-ban-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.mini-ban-item strong,
.mini-ban-item span {
    display: block;
}
.mini-ban-item span { color: var(--muted); margin-top: 6px; }
.profile-bans-title {
    color: var(--accent-2);
}
@media (max-width: 980px) {
    .rule-admin-card,
    .profile-grid-two,
    .profile-grid,
    .profile-columns,
    .profile-hero {
        grid-template-columns: 1fr;
        display: grid;
    }
    .profile-main {
        align-items: start;
    }
}
.user-chip-link:hover { color: var(--text); border-color: rgba(255,255,255,0.16); }
.quick-links-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.list-head-double { align-items: center; }
.wrap-actions { flex-wrap: wrap; }
.form-grid label span { display: block; margin-bottom: 10px; line-height: 1.2; }
.custom-scroll { scrollbar-width: thin; scrollbar-color: rgba(217,72,65,0.45) rgba(255,255,255,0.04); }
.custom-scroll::-webkit-scrollbar { width: 8px; }
.custom-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 999px; }
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(217,72,65,0.45); border-radius: 999px; }
.image-library-list.custom-scroll { padding-right: 8px; }
.image-library-panel h2 { margin-top: 0; }
.compact-library { max-height: 420px; }
.news-image-preview { border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); margin-bottom: 14px; }
.news-image-preview img { width: 100%; height: 220px; object-fit: cover; }
.rule-image-button { display: table; width: auto; max-width: 100%; padding: 0; margin-top: 10px; background: transparent; border: 0; cursor: zoom-in; line-height: 0; }
.rule-image-button img { display: block; width: 100%; transition: transform 180ms ease, border-color 180ms ease; }
.rule-image-button:hover img { transform: scale(1.02); border-color: rgba(217,72,65,0.34); }
.subpoint-button { margin-top: 8px; }
.media-lightbox[hidden],
.profile-popover[hidden] { display: none; }
.media-lightbox,
.profile-popover { position: fixed; inset: 0; z-index: 60; }
.media-lightbox-backdrop,
.profile-popover-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.68); border: 0; }
.media-lightbox-dialog { position: relative; width: fit-content; max-width: min(92vw, 1080px); margin: 7vh auto 0; padding: 22px; }
.media-lightbox-dialog img { max-height: 78vh; max-width: 100%; object-fit: contain; border-radius: 18px; }
.media-lightbox-close { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: rgba(10,12,15,0.84); color: white; cursor: pointer; }
.profile-link-button { padding: 0; border: 0; background: transparent; color: var(--text); font-weight: 700; text-align: left; cursor: pointer; }
.profile-link-button:hover { color: #ffffff; text-decoration: underline; }
.profile-popover-card { position: absolute; width: min(360px, calc(100vw - 32px)); overflow: hidden; }
.profile-popover-banner { height: 110px; background-size: cover; background-position: center; }
.profile-popover-body { position: relative; padding: 0 20px 20px; }
.profile-popover-avatar { width: 78px; height: 78px; border-radius: 20px; border: 4px solid rgba(11,15,19,0.94); object-fit: cover; margin-top: -34px; background: #0b0f13; }
.profile-popover-head { margin-top: 10px; display: grid; gap: 4px; }
.profile-popover-head strong { font-size: 1.1rem; }
.profile-popover-head span { color: var(--steam); font-size: 0.95rem; }
.profile-popover-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.profile-popover-meta small { display: block; color: var(--muted); margin-bottom: 4px; }
.profile-popover-link { margin-top: 18px; width: 100%; }
.profile-banner-card { overflow: hidden; }
.profile-banner { height: 220px; background-size: cover; background-position: center; }
.profile-banner-content { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; padding: 0 28px 28px; margin-top: -56px; align-items: end; position: relative; }
.profile-banner-copy h1 { margin: 0 0 8px; }
.profile-avatar { width: 112px; height: 112px; border-radius: 24px; object-fit: cover; border: 4px solid rgba(11,15,19,0.94); background: #0b0f13; }
.profile-actions { align-self: center; }
.profile-about-copy { color: var(--muted); line-height: 1.75; }
.profile-columns-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-section-topless { padding-top: 0; }
.profile-edit-preview img { height: 180px; }
@media (max-width: 980px) {
    .quick-links-three,
    .profile-columns-two,
    .profile-popover-meta,
    .profile-banner-content { grid-template-columns: 1fr; }
    .profile-banner-content { margin-top: -28px; }
    .profile-actions { justify-self: start; }
}
.profile-edit-mini { overflow: hidden; padding: 0; }
.profile-edit-mini-banner { height: 180px; background-size: cover; background-position: center; }
.profile-edit-mini-body { padding: 0 22px 22px; }
.profile-edit-mini-avatar { width: 92px; height: 92px; border-radius: 22px; border: 4px solid rgba(11,15,19,0.94); object-fit: cover; margin-top: -34px; background: #0b0f13; }
.profile-edit-mini-head { display: grid; gap: 6px; margin-top: 12px; }
.profile-edit-mini-head h2 { margin: 0; }
.profile-edit-mini-head span { color: var(--steam); font-size: 0.95rem; }
.profile-edit-mini-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.profile-edit-mini-meta small { display: block; color: var(--muted); margin-bottom: 6px; }
.profile-edit-mini-meta strong { display: block; }
.profile-edit-mini-copy { color: var(--muted); line-height: 1.7; margin: 18px 0 0; white-space: pre-wrap; }
.profile-edit-vip-preview {
    grid-column: 1 / -1;
}
.vip-banner-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.vip-banner-delete-hint {
    margin: 0;
    color: #ff8f8f;
    font-size: 0.88rem;
    font-weight: 600;
}
.vip-delete-confirm {
    background: rgba(228,84,84,0.26);
    border-color: rgba(255,122,122,0.65);
    color: #ffd0d0;
}
.vip-preview-head h2 {
    font-size: 1.1rem;
}
.vip-preview-ban-row {
    display: grid;
    grid-template-columns: 110px minmax(220px, 1.2fr) minmax(220px, 1.2fr) 120px minmax(180px, 1fr) minmax(180px, 1fr);
    gap: 10px;
    align-items: center;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.16);
    padding: 12px 14px;
    margin-top: 8px;
    background-size: cover;
    background-position: center;
    overflow-x: auto;
}
.vip-preview-col {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.vip-preview-col strong {
    font-size: 0.9rem;
    line-height: 1.2;
}
.vip-preview-col span {
    color: rgba(239, 244, 246, 0.86);
    font-size: 0.82rem;
    line-height: 1.2;
}
.vip-preview-col .steamid-inline {
    gap: 4px;
}
.vip-preview-col .steamid-text {
    color: rgba(239, 244, 246, 0.86);
}
.vip-preview-col .steamid-copy-button {
    width: 18px;
    height: 18px;
}
@media (max-width: 980px) {
    .profile-edit-mini-meta { grid-template-columns: 1fr; }
    .profile-edit-vip-preview {
        grid-column: auto;
    }
    .vip-preview-ban-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.steam-auth-panel { max-width: 560px; margin: 0 auto; }
.steam-auth-button { width: 100%; min-height: 54px; font-size: 1rem; }

.hero-text { max-width: 760px; }
.section-tight { padding-top: 8px; }
.lore-grid, .home-info-grid, .media-admin-grid, .rule-editor-layout { display: grid; gap: 20px; }
.lore-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lore-card { padding: 24px; min-height: 220px; }
.home-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-news-secondary { margin-top: 22px; }
.news-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-grid-wide { grid-template-columns: 1fr 1.2fr; }
.quick-links-dashboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-links-dashboard a small { display: block; color: var(--muted); margin-top: 6px; }
.admin-shortcuts { display: flex; flex-wrap: wrap; gap: 12px; }
.compact-heading { margin-bottom: 14px; }
.admin-news-card { align-items: stretch; }
.admin-card-actions { align-content: start; }
.form-grid-inline-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-line { display: flex; align-items: center; gap: 12px; }
.check-line input { width: auto; }
.news-editor-side { display: grid; gap: 18px; }
.news-preview-card { overflow: hidden; }
.news-preview-card img { height: 220px; object-fit: cover; }
.media-library-heading { margin-top: 6px; }
.media-use-button { margin-top: 10px; width: 100%; }
.media-admin-grid { grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr); }
.media-admin-list, .media-admin-upload { padding: 24px; }
.media-filter-bar { display: flex; gap: 12px; margin-bottom: 18px; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-height: 820px; overflow-y: auto; padding-right: 6px; }
.media-card { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.media-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; }
.media-card strong, .media-card span, .media-card code, .media-card small { display: block; }
.log-list { padding: 8px 24px; }
.log-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.log-row:last-child { border-bottom: 0; }
.log-row-side { text-align: right; }
.log-row-side span, .log-row-side small { display: block; }
.user-row-rich { grid-template-columns: 1fr auto; align-items: center; }
.user-row-main { display: flex; align-items: center; gap: 16px; }
.user-row-avatar { width: 72px; height: 72px; object-fit: cover; border-radius: 18px; border: 1px solid rgba(255,255,255,0.12); }
.rule-editor-layout { grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr); align-items: start; }
.rule-builder-form { padding: 24px; }
.rules-builder-toolbar, .rule-builder-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rules-builder-list { display: grid; gap: 16px; }
.rule-builder-section { border-radius: 18px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); overflow: hidden; }
.rule-builder-section > summary { cursor: pointer; padding: 16px 18px; font-weight: 700; }
.rule-builder-section-body { display: grid; gap: 14px; padding: 0 18px 18px; }
.rule-builder-points, .rule-builder-subpoints { display: grid; gap: 12px; }
.rule-builder-point, .rule-builder-subpoint { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.rule-builder-subpoint { margin-left: 20px; }
.rule-image-field { display: grid; gap: 8px; }
.rule-preview-shell { display: grid; gap: 12px; margin-bottom: 12px; }
.rule-preview-section { padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.rule-preview-section strong, .rule-preview-section p { display: block; margin: 0 0 8px; }
.rule-preview-points { display: grid; gap: 6px; }
.rule-preview-point { color: var(--text); }
.rule-preview-subpoint { color: var(--muted); padding-left: 14px; }
.rules-media-list { max-height: 720px; }
.article-summary { font-size: 1.1rem; color: #d7e0e4; }
.profile-columns-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-popover-meta-expanded { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) {
    .lore-grid, .news-grid-three, .quick-links-dashboard, .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid-wide, .rule-editor-layout, .media-admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
    .home-info-grid, .user-row-rich { grid-template-columns: 1fr; }
    .user-row-main { align-items: start; }
}
@media (max-width: 640px) {
    .lore-grid, .news-grid-three, .home-info-grid, .quick-links-dashboard, .media-grid, .form-grid-inline-two, .profile-columns-two { grid-template-columns: 1fr; }
    .media-filter-bar, .rule-builder-actions, .rules-builder-toolbar { flex-direction: column; }
    .log-row { grid-template-columns: 1fr; }
    .log-row-side { text-align: left; }
}
.mini-ban-home-item .mini-ban-home-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.mini-ban-home-item .mini-ban-home-head span { margin-top: 0; }
.rule-link-copy { cursor: pointer; position: relative; }
.rule-link-copy::after {
    content: 'Copy link';
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.42);
    opacity: 0;
    transition: opacity 160ms ease;
    pointer-events: none;
}
.rule-link-copy:hover::after { opacity: 1; }
.rule-link-flash {
    animation: rule-link-blink 0.85s ease;
}
.rule-subpoint.rule-link-copy { border-radius: 14px; padding: 12px; }
@keyframes rule-link-blink {
    0% {
        box-shadow: inset 0 0 0 0 rgba(79,163,255,0);
        background: inherit;
    }
    35% {
        box-shadow: inset 0 0 0 2px rgba(79,163,255,0.55);
        background: linear-gradient(180deg, rgba(79,163,255,0.12), rgba(255,255,255,0.04));
    }
    100% {
        box-shadow: inset 0 0 0 0 rgba(79,163,255,0);
        background: inherit;
    }
}
@media (max-width: 640px) {
    .mini-ban-home-item .mini-ban-home-head {
        flex-direction: column;
        align-items: start;
    }
}
.stats-header { align-items: end; }
.stats-scope-toggle {
    margin-bottom: 18px;
    flex-wrap: wrap;
    padding: 0;
    background: transparent;
    border: 0;
}
.stats-scope-toggle a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
}
.stats-scope-toggle a.active {
    background: rgba(79,163,255,0.16);
    color: white;
    border-color: rgba(79,163,255,0.34);
}
.stats-scope-toggle span { color: var(--text); opacity: 0.72; }
.stats-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.stats-tab {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.stats-tab:hover,
.stats-tab.active {
    border-color: rgba(127,184,255,0.45);
    background: rgba(127,184,255,0.12);
}
.stats-panel { display: block; }
.stats-panel[hidden] { display: none !important; }
.stats-table-wrap {
    padding: 0;
    overflow: hidden;
}
.stats-table-head,
.stats-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1.8fr) minmax(140px, 0.8fr) minmax(160px, 0.9fr);
    gap: 18px;
    align-items: center;
}
.stats-table-head {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
}
.stats-table-head a,
.ban-legend a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
}
.page-size-toggle {
    gap: 8px;
}
.page-size-toggle a {
    min-width: 82px;
    text-align: center;
}
.steamid-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.steamid-link,
.steamid-text {
    color: inherit;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.86em;
}
.steamid-copy-button {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.steamid-copy-button:hover,
.steamid-copy-button.copied {
    color: #fff;
    border-color: rgba(127, 255, 212, 0.55);
}
.stats-table-head a:hover,
.ban-legend a:hover {
    border-bottom-color: rgba(255, 255, 255, 0.55);
}
.stats-table-body {
    display: grid;
}
.stats-row {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
}
.stats-row.has-vip-bg { position: relative; overflow: hidden; }
.stats-row.has-vip-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(10,14,17,0.14), rgba(10,14,17,0.68)), var(--vip-bg-url);
    background-size: cover;
    background-position: center;
    opacity: 0.58;
    z-index: 0;
}
.stats-row > * { position: relative; z-index: 1; }
.stats-row:last-child { border-bottom: 0; }
.stats-rank {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    font-weight: 800;
}
.stats-player-cell {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.stats-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.12);
}
.stats-player-cell div {
    min-width: 0;
    display: grid;
    gap: 4px;
}
.stats-player-cell span,
.stats-meta {
    color: var(--muted);
}
.stats-profile-button {
    justify-self: start;
    font-weight: 700;
}
.stats-value {
    font-weight: 700;
    color: var(--text);
}
.async-fade-in {
    animation: async-fade-in 220ms ease-out;
}
@keyframes async-fade-in {
    0% { opacity: 0.45; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}
.async-retry-button {
    margin-top: 12px;
}
.async-loading {
    position: relative;
}
.async-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(7, 9, 11, 0.26);
    pointer-events: none;
}
[aria-busy="true"] .stats-table-wrap,
[aria-busy="true"] .advanced-ban-table {
    opacity: 0.62;
    transition: opacity 160ms ease;
}
@media (max-width: 900px) {
    .stats-table-head { display: none; }
    .stats-row {
        grid-template-columns: 56px 1fr;
        gap: 14px;
        align-items: start;
    }
    .stats-row > :nth-child(3),
    .stats-row > :nth-child(4) {
        grid-column: 2;
        padding-left: 66px;
    }
}
@media (max-width: 640px) {
    .stats-row {
        padding: 16px;
        grid-template-columns: 1fr;
    }
    .stats-row > :nth-child(3),
    .stats-row > :nth-child(4) {
        grid-column: auto;
        padding-left: 0;
    }
    .stats-rank {
        width: 38px;
        height: 38px;
    }
}

.rule-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-left: 8px;
}
.badge-new {
    background: rgba(39, 174, 96, .2);
    color: #80ffb5;
    border: 1px solid rgba(39, 174, 96, .45);
}
.badge-updated {
    background: rgba(241, 196, 15, .2);
    color: #ffd85c;
    border: 1px solid rgba(241, 196, 15, .45);
}
.badge-edited {
    background: rgba(241, 196, 15, .2);
    color: #ffd85c;
    border: 1px solid rgba(241, 196, 15, .45);
}
.badge-removed {
    background: rgba(231, 76, 60, .2);
    color: #ff9f92;
    border: 1px solid rgba(231, 76, 60, .45);
}
.rule-change-list {
    display: grid;
    gap: 12px;
}
.rule-change-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, .02);
}
.rules-changes-panel {
    margin-bottom: 14px;
}
.rules-changes-summary {
    display: block;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.25;
    padding: 2px 0 2px 22px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    list-style: none;
    position: relative;
}
.rules-changes-summary::before {
    content: '\25B6';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--muted);
    transition: transform 160ms ease;
}
details[open] > .rules-changes-summary::before {
    transform: translateY(-50%) rotate(90deg);
}
.rules-changes-summary::-webkit-details-marker {
    display: none;
}
.rules-changes-caption {
    margin-top: 8px;
    margin-bottom: 10px;
    color: var(--muted);
}
.rule-change-ping {
    animation: rule-change-ping 1.3s ease;
}
@keyframes rule-change-ping {
    0% { box-shadow: 0 0 0 0 rgba(127,184,255,.0); }
    30% { box-shadow: 0 0 0 2px rgba(127,184,255,.55); }
    100% { box-shadow: 0 0 0 0 rgba(127,184,255,.0); }
}
.admin-card-actions form input[name="change_reason"] {
    min-width: 180px;
}
.rule-change-diff-list {
    display: grid;
    gap: 8px;
}
.rule-change-diff-item {
    border: 1px dashed rgba(255,255,255,0.08);
    margin-left: 8px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
}
.rules-search-highlight {
    background: rgba(217, 72, 65, 0.32);
    color: #fff;
    border-radius: 3px;
    padding: 0 2px;
}
.diff-del {
    background: rgba(231, 76, 60, 0.18);
    color: #ff9f92;
    text-decoration: line-through;
    padding: 1px 3px;
    border-radius: 4px;
}
.diff-ins {
    background: rgba(39, 174, 96, 0.18);
    color: #80ffb5;
    padding: 1px 3px;
    border-radius: 4px;
}
.org-member-row .stats-value {
    position: relative;
}
.org-role-cell {
    text-align: left;
}
.org-permissions-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
}
.org-permissions-cell .ghost-button {
    justify-content: flex-start;
}
.org-permissions-card {
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
    width: 100%;
}
.org-settings-anchor {
    position: relative;
}
.org-settings-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(760px, calc(100vw - 32px));
    padding: 16px;
    z-index: 40;
}

/* Server roles management */
.role-color-dot {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 8px;
    border: 1px solid var(--border);
    vertical-align: middle;
}
.role-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    color: #07090b;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
    margin-left: 6px;
}
.user-row-forms {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}
.role-form-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-right: 8px;
}
.form-fieldset {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.form-fieldset legend {
    padding: 0 6px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
}

