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

:root {
    --forest-950: #0f1a12;
    --forest-900: #152319;
    --forest-800: #1d3224;
    --forest-700: #2a4a33;
    --forest-600: #3d6b49;
    --forest-500: #4f8b5c;
    --spring-400: #6fbf73;
    --spring-300: #95d38f;
    --orange-600: #c56f1f;
    --orange-500: #e8923a;
    --orange-400: #f0a84d;
    --gold-500: #d4af37;
    --gold-400: #f0cc5a;
    --silver-400: #c8d0d8;
    --silver-300: #e3e8ee;
    --white: #f7faf7;
    --muted: #a8b8aa;
    --line: rgba(255, 255, 255, 0.1);
    --panel: rgba(21, 35, 25, 0.88);
    --panel-strong: rgba(29, 50, 36, 0.96);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --radius: 14px;
    --radius-sm: 10px;
    --btn-height: 44px;
    --btn-height-sm: 38px;
    --btn-padding-x: 18px;
    --btn-radius: 12px;
    --btn-font-size: 0.94rem;
    --header-control: 40px;
    --header-bar-radius: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    color: var(--white);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: linear-gradient(180deg, rgba(15, 26, 18, 0.72), rgba(15, 26, 18, 0.92));
}

body::before {
    content: "";
    position: fixed;
    inset: -5%;
    z-index: -2;
    background: url("../assets/loom-background.png") center/cover no-repeat;
    transform: scale(1.06);
    animation: loomBackgroundDrift 26s ease-in-out infinite alternate;
    will-change: transform;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 20%, rgba(111, 191, 115, 0.14), transparent 36%),
        radial-gradient(circle at 84% 74%, rgba(232, 146, 58, 0.1), transparent 38%);
    animation: loomBackgroundGlow 20s ease-in-out infinite alternate;
}

@keyframes loomBackgroundDrift {
    from {
        transform: scale(1.04) translate3d(-1%, -0.6%, 0);
    }

    to {
        transform: scale(1.12) translate3d(1%, 0.8%, 0);
    }
}

@keyframes loomBackgroundGlow {
    from {
        opacity: 0.72;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none;
    }
}

a {
    color: var(--spring-300);
    text-decoration: none;
}

a:hover {
    color: var(--orange-400);
}

img {
    max-width: 100%;
    display: block;
}

.site-shell {
    width: min(1240px, calc(100% - 24px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 72px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    padding: 14px 0 10px;
    overflow: visible;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
}

.site-header .site-shell {
    width: min(1240px, calc(100% - 24px));
    margin: 0 auto;
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: min(1240px, calc(100% - 24px));
    margin: 0 auto;
    min-height: calc(var(--header-control) + 12px);
}

.brand {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    margin-right: 0;
}

.brand:hover {
    color: inherit;
    filter: brightness(1.04);
}

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

.brand__tagline {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(149, 211, 143, 0.82);
}

.brand__crest {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background:
        url("../assets/site-logo.png") center/cover no-repeat;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: inset 0 0 18px rgba(111, 191, 115, 0.18);
}

.brand__logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    line-height: 1;
}

.brand__logo-loom {
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg, var(--gold-400), var(--gold-500) 55%, #a8841d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand__logo-grief {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(180deg, var(--silver-300), var(--silver-400) 60%, #98a3ad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav-scroll {
    position: relative;
    grid-column: 2;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(111, 191, 115, 0.45) transparent;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--header-bar-radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    -webkit-overflow-scrolling: touch;
}

.site-nav-scroll::-webkit-scrollbar {
    height: 6px;
    width: 0;
}

.site-nav-scroll::-webkit-scrollbar:vertical {
    width: 0;
    display: none;
}

.site-nav-scroll::-webkit-scrollbar-thumb {
    background: rgba(111, 191, 115, 0.45);
    border-radius: 999px;
}

.site-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    width: max-content;
    min-width: 100%;
    height: calc(var(--header-control) + 10px);
    padding: 5px 8px;
    margin: 0;
    box-sizing: border-box;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
}

.site-nav__menu--compact {
    min-width: 220px;
}

.site-nav__group {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}

.site-nav__divider {
    width: 1px;
    height: 22px;
    margin: 0 6px;
    background: rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

.site-nav__group--staff {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.site-nav__group--staff .site-nav__divider {
    margin: 0 4px 0 2px;
}

.site-nav__group > a,
.site-nav__trigger {
    flex-shrink: 0;
}

.site-nav__group > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--header-control);
    padding: 0 14px;
    border-radius: 10px;
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 700;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.site-nav__group > a:hover {
    background: rgba(79, 139, 92, 0.14);
    color: var(--spring-300);
}

.site-nav__group > a.is-active {
    background: rgba(45, 90, 58, 0.95);
    color: var(--spring-300);
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(111, 191, 115, 0.25);
}

.site-nav__link--staff {
    color: rgba(255, 196, 120, 0.95);
}

.site-nav__link--staff:hover {
    background: rgba(180, 110, 40, 0.18);
    color: #ffd89a;
}

.site-nav__link--staff.is-active {
    background: rgba(120, 72, 24, 0.92);
    color: #ffd89a;
    box-shadow: inset 0 0 0 1px rgba(255, 196, 120, 0.28);
}

.site-nav__dropdown {
    position: relative;
    overflow: visible;
}

.site-nav__dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}

.site-nav__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: var(--header-control);
    padding: 0 16px;
    border-radius: 10px;
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 700;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.site-nav__trigger::after {
    content: "";
    width: 0;
    height: 0;
    margin-top: 2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.72;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav__dropdown:hover .site-nav__trigger::after,
.site-nav__dropdown.is-open .site-nav__trigger::after {
    transform: rotate(180deg);
    opacity: 1;
}

.site-nav__trigger:hover,
.site-nav__dropdown:hover .site-nav__trigger,
.site-nav__dropdown.is-open .site-nav__trigger {
    background: rgba(45, 90, 58, 0.95);
    color: var(--spring-300);
    box-shadow: inset 0 0 0 1px rgba(111, 191, 115, 0.25);
}

.site-nav__trigger.is-active {
    background: rgba(45, 90, 58, 0.95);
    color: var(--spring-300);
    box-shadow: inset 0 0 0 1px rgba(111, 191, 115, 0.25);
}

.site-nav__menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
    width: max(320px, 100%);
    min-width: 320px;
    max-width: min(360px, calc(100vw - 24px));
    height: auto;
    padding: 10px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(24, 36, 26, 0.98), rgba(12, 18, 14, 0.98));
    border: 1px solid rgba(111, 191, 115, 0.22);
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}

.site-nav__dropdown:hover .site-nav__menu,
.site-nav__dropdown:focus-within .site-nav__menu,
.site-nav__dropdown.is-open .site-nav__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.site-nav__menu-action {
    display: block;
    margin: 0 0 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(79, 139, 92, 0.22);
    border: 1px solid rgba(111, 191, 115, 0.28);
    color: var(--spring-300);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.site-nav__menu-action:hover {
    background: rgba(79, 139, 92, 0.34);
    border-color: rgba(111, 191, 115, 0.42);
    color: var(--white);
}

.site-nav__menu-label {
    margin: 0 0 2px;
    padding: 4px 12px 2px;
    color: rgba(149, 211, 143, 0.72);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-nav__menu .forum-section-link {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 12px 12px;
}

.site-nav__menu .forum-section-link__marker {
    margin-top: 4px;
}

.site-nav__menu .forum-section-link__desc {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.forum-section-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.forum-section-link + .forum-section-link {
    margin-top: 0;
}

.forum-section-link__marker {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.forum-section-link--ideas .forum-section-link__marker {
    background: #e8923a;
    box-shadow: 0 0 0 3px rgba(232, 146, 58, 0.16);
}

.forum-section-link--discussion .forum-section-link__marker {
    background: var(--spring-400);
    box-shadow: 0 0 0 3px rgba(111, 191, 115, 0.16);
}

.forum-section-link--complaint_player .forum-section-link__marker,
.forum-section-link--complaint_staff .forum-section-link__marker {
    background: #9aa8b2;
    box-shadow: 0 0 0 3px rgba(154, 168, 178, 0.14);
}

.forum-section-link--complaint_donate_cp .forum-section-link__marker {
    background: #ba68ff;
    box-shadow: 0 0 0 3px rgba(186, 104, 255, 0.16);
}

.forum-section-link__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.forum-section-link__title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.forum-section-link__desc {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.45;
}

.forum-section-link__arrow {
    flex-shrink: 0;
    align-self: center;
    color: var(--spring-300);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.forum-section-link:hover,
.forum-section-link.is-active {
    background: rgba(79, 139, 92, 0.18);
    color: var(--spring-300);
    box-shadow: inset 0 0 0 1px rgba(111, 191, 115, 0.14);
}

.forum-section-link:hover .forum-section-link__desc,
.forum-section-link.is-active .forum-section-link__desc {
    color: rgba(149, 211, 143, 0.72);
}

.forum-section-link:hover .forum-section-link__marker,
.forum-section-link.is-active .forum-section-link__marker {
    transform: scale(1.12);
}

.forum-section-link:hover .forum-section-link__arrow,
.forum-section-link.is-active .forum-section-link__arrow {
    opacity: 1;
    transform: translateX(0);
}

.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    grid-column: 3;
    flex: 0 0 auto;
    gap: 8px;
    margin-left: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: min(100%, 260px);
    padding: 4px 6px 4px 4px;
    border-radius: var(--header-bar-radius);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.user-menu__profile {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    transition: background 0.18s ease;
}

.user-menu__profile:hover {
    background: rgba(255, 255, 255, 0.06);
}

.user-menu__avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
}

.user-menu__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--spring-300);
}

.user-menu__links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 1;
    min-width: 0;
    max-width: 220px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.user-menu__links::-webkit-scrollbar {
    display: none;
}

.user-menu__link {
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.user-menu__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.user-menu__link--accent {
    color: #b8c9ff;
}

.user-menu__link--create {
    color: #f0b06a;
}

.user-menu__link--logout {
    color: rgba(255, 255, 255, 0.62);
}

.site-header__actions .auth-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.btn,
a.btn,
button.btn,
input.btn,
.discord-login {
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--btn-height);
    height: var(--btn-height);
    padding: 0 var(--btn-padding-x);
    border-radius: var(--btn-radius);
    font: inherit;
    font-size: var(--btn-font-size);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
    border: 1px solid transparent;
    vertical-align: middle;
}

.btn-block,
.btn-stack .btn,
.btn-stack a.btn,
.btn-stack button.btn,
.hero__actions .btn,
.hero__actions a.btn,
.auth-card form .btn,
.auth-card form button.btn,
.forum-form .btn,
.forum-form button.btn,
.vote-box .btn {
    width: 100%;
}

.btn-sm,
button.btn-sm {
    min-height: var(--btn-height-sm);
    height: var(--btn-height-sm);
    padding: 0 14px;
    font-size: 0.88rem;
}

.site-header .btn-primary,
.site-header .btn-discord,
.site-header .btn-secondary {
    min-width: 102px;
    height: var(--header-control);
    min-height: var(--header-control);
    padding: 0 16px;
    font-size: 0.88rem;
    border-radius: 10px;
}

.site-header .btn-sm {
    height: var(--header-control);
    min-height: var(--header-control);
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: #fff;
    box-shadow: 0 8px 20px rgba(232, 146, 58, 0.2);
}

.btn-primary:hover {
    filter: brightness(1.06);
    color: #fff;
}

.btn-secondary {
    background: rgba(79, 139, 92, 0.18);
    color: var(--spring-300);
    border-color: rgba(111, 191, 115, 0.35);
}

.btn-secondary:hover {
    background: rgba(79, 139, 92, 0.28);
    color: var(--spring-300);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border-color: var(--line);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-discord,
.discord-login {
    background: #5865f2;
    color: #fff;
    border-color: rgba(88, 101, 242, 0.6);
}

.btn-discord:hover,
.discord-login:hover {
    background: #4752c4;
    color: #fff;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
}

.btn-row .btn,
.btn-row a.btn {
    flex: 1 1 160px;
    max-width: 100%;
}

.btn-stack {
    display: grid;
    gap: 12px;
}

.hero__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    padding: 24px 0 40px;
}

.page-main,
.page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 18px;
    background: linear-gradient(90deg, rgba(79, 139, 92, 0.18), rgba(232, 146, 58, 0.12));
    border-bottom: 1px solid var(--line);
}

.panel__head h2,
.panel__head h3 {
    margin: 0;
    font-size: 1rem;
}

.panel__head-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.author-name {
    color: var(--role-color, var(--spring-300));
    font-weight: 700;
}

.panel__body {
    padding: 16px 18px;
}

.hero {
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(61, 107, 73, 0.55), rgba(197, 111, 31, 0.28)),
        rgba(21, 35, 25, 0.82);
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.hero p {
    margin: 0;
    color: var(--muted);
    max-width: 680px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

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

.stat-card--online strong {
    color: var(--spring-300);
}

.stat-card {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.stat-card strong {
    display: block;
    font-size: 1.5rem;
    color: var(--orange-400);
}

.stat-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.activity-list,
.idea-list,
.online-list,
.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.activity-item,
.idea-item {
    display: grid;
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.activity-item:last-child,
.idea-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-item__meta,
.idea-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.86rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-green {
    background: rgba(111, 191, 115, 0.18);
    color: var(--spring-300);
}

.badge-orange {
    background: rgba(232, 146, 58, 0.18);
    color: var(--orange-400);
}

.badge-gold {
    background: rgba(212, 175, 55, 0.18);
    color: var(--gold-400);
}

.online-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.online-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    font-size: 0.92rem;
}

.server-ip {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: rgba(79, 139, 92, 0.14);
    border: 1px solid rgba(111, 191, 115, 0.28);
}

.server-ip code {
    display: block;
    font-size: 1rem;
    color: var(--spring-300);
    word-break: break-all;
    text-align: center;
    padding: 4px 0;
}

.link-list {
    display: grid;
    gap: 12px;
}

.link-list li + li {
    margin-top: 0;
}

.link-list a {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: var(--btn-height);
    padding: 0 var(--btn-padding-x);
    border-radius: var(--btn-radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: var(--white);
    font-size: var(--btn-font-size);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.link-list a span {
    opacity: 0.65;
    font-weight: 400;
}

.link-list a:hover {
    border-color: rgba(232, 146, 58, 0.35);
    background: rgba(232, 146, 58, 0.08);
    color: var(--white);
}

.forum-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.forum-list__item + .forum-list__item {
    border-top: 1px solid var(--line);
}

.forum-list__link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 16px 18px;
    color: inherit;
    text-decoration: none;
}

.forum-list__link:hover {
    color: var(--spring-300);
    background: rgba(79, 139, 92, 0.1);
}

.forum-list__title {
    font-size: 1.05rem;
    font-weight: 700;
}

.forum-list__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

.forum-list__desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.forum-list__meta {
    color: var(--muted);
    font-size: 0.82rem;
}

.forum-sections-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 18px 16px;
    padding: 10px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(24, 36, 26, 0.98), rgba(12, 18, 14, 0.98));
    border: 1px solid rgba(111, 191, 115, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.forum-sections-nav .forum-section-link__desc {
    display: none;
}

.complaint-compose,
.application-compose,
.forum-compose {
    border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.1);
}

.complaint-template-box {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border-left: 4px solid rgba(111, 191, 115, 0.65);
    background: rgba(0, 0, 0, 0.22);
}

.complaint-template-box strong {
    display: block;
    margin-bottom: 0.35rem;
}

.complaint-template-box p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.complaint-template-example {
    margin: 0.75rem 0 0.35rem;
    color: var(--text);
    font-size: 0.88rem;
}

.complaint-template-example__text {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    color: var(--muted);
    font-family: inherit;
    font-size: 0.86rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.complaint-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.complaint-template-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(111, 191, 115, 0.18);
    background: rgba(0, 0, 0, 0.28);
}

.complaint-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.complaint-field--locked .complaint-field__label {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.complaint-template-form input[type="text"],
.complaint-template-form textarea,
.complaint-form input[type="text"],
.complaint-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(111, 191, 115, 0.28);
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
    font: inherit;
}

.complaint-template-form textarea,
.complaint-form textarea {
    resize: vertical;
    min-height: 88px;
}

.file-upload {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.media-upload-group {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.media-upload-group__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.media-upload-group__title {
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 700;
}

.media-upload-group__hint {
    color: var(--muted);
    font-size: 0.8rem;
}

.media-upload-group__panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed rgba(111, 191, 115, 0.34);
    background: rgba(0, 0, 0, 0.24);
}

.file-upload--compact {
    margin-bottom: 0;
    gap: 6px;
}

.file-upload--compact .file-upload__box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-height: 0;
    padding: 12px;
    border: 1px solid rgba(111, 191, 115, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.file-upload--compact .file-upload__box:hover,
.file-upload--compact.is-filled .file-upload__box,
.file-upload--compact .file-upload__box:focus-within {
    border-color: rgba(111, 191, 115, 0.42);
    background: rgba(79, 139, 92, 0.1);
    box-shadow: none;
}

.file-upload__kind {
    position: relative;
    z-index: 1;
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 700;
}

.file-upload--compact .file-upload__button {
    width: 100%;
}

.file-upload--compact .file-upload__status {
    min-width: 0;
    text-align: center;
}

@media (max-width: 720px) {
    .media-upload-group__panel {
        grid-template-columns: 1fr;
    }
}

.file-upload__title {
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 700;
}

.file-upload__box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    min-height: 58px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed rgba(111, 191, 115, 0.34);
    background: rgba(0, 0, 0, 0.24);
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.file-upload__box:hover,
.file-upload.is-filled .file-upload__box,
.file-upload__box:focus-within {
    border-color: rgba(111, 191, 115, 0.58);
    background: rgba(79, 139, 92, 0.12);
    box-shadow: inset 0 0 0 1px rgba(111, 191, 115, 0.12);
}

.file-upload__input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload__button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid rgba(111, 191, 115, 0.28);
    background: linear-gradient(180deg, rgba(45, 90, 58, 0.98), rgba(34, 68, 44, 0.98));
    color: var(--spring-300);
    font-size: 0.88rem;
    font-weight: 700;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.file-upload__status {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 180px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.file-upload__names {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.file-upload__names:empty {
    display: none;
}

.file-upload__chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(111, 191, 115, 0.22);
    background: rgba(79, 139, 92, 0.16);
    color: var(--spring-300);
    font-size: 0.78rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.complaint-field input,
.complaint-field textarea {
    width: 100%;
}

.post-video {
    display: block;
    width: min(100%, 560px);
    max-height: 360px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
}

.post-images .post-video + .post-video,
.post-images a + .post-video,
.post-images .post-video + a {
    margin-top: 10px;
}

.forum-category + .forum-category {
    margin-top: 18px;
}

.forum-category__title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: var(--spring-300);
}

.forum-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 110px 180px;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
}

.forum-row:first-of-type {
    border-top: none;
}

.forum-row__title strong {
    display: block;
    margin-bottom: 4px;
}

.forum-row__title span,
.forum-row__stats {
    color: var(--muted);
    font-size: 0.9rem;
}

.forum-row__type {
    justify-self: start;
}

.auth-card {
    width: min(520px, 100%);
    margin: 40px auto;
}

.auth-card form .btn[type="submit"] {
    width: 100%;
    margin-top: 4px;
}

.auth-card label {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.auth-card input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font: inherit;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--muted);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.site-footer {
    margin-top: auto;
    padding: 56px 0 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: space-between;
    align-items: flex-end;
}

.site-footer__grid p {
    margin: 0;
    max-width: 420px;
}

.site-footer__links {
    margin-left: auto;
}

.auth-widget,
.discord-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: var(--header-control);
}

.discord-user img,
.discord-user .avatar--tiny {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.discord-user a {
    color: var(--spring-300);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}

.discord-user a:hover {
    color: var(--orange-400);
}

.discord-user button,
.site-header__actions [data-logout] {
    min-height: calc(var(--header-control) - 4px);
    height: calc(var(--header-control) - 4px);
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    appearance: none;
}

.discord-user button:hover,
[data-logout]:hover {
    background: rgba(255, 255, 255, 0.1);
}

.forum-form .btn,
.forum-form button.btn {
    min-width: 0;
}

.menu-toggle {
    display: none;
    grid-column: 2;
    justify-self: end;
}

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

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

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

    .home-widgets {
        grid-template-columns: 1fr;
    }

    .forum-row {
        grid-template-columns: 1fr;
    }

    .site-header__inner {
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-areas: "brand toggle actions";
        gap: 10px;
        position: relative;
        width: min(1240px, calc(100% - 24px));
        margin: 0 auto;
    }

    .brand {
        grid-area: brand;
        margin-right: 0;
    }

    .menu-toggle {
        grid-area: toggle;
    }

    .site-header__actions {
        grid-area: actions;
        margin-left: 0;
        padding: 0;
        gap: 8px;
    }

    .site-nav-scroll {
        grid-area: unset;
        position: absolute;
        left: 12px;
        right: 12px;
        top: calc(100% + 8px);
        flex: unset;
        max-width: none;
        overflow: visible;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .site-nav-scroll::before,
    .site-nav-scroll::after {
        display: none;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        min-width: 0;
        padding: 8px;
        overflow: visible;
        background: var(--panel-strong);
        border: 1px solid var(--line);
        border-radius: var(--header-bar-radius);
        box-shadow: var(--shadow);
    }

    .site-nav__group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 4px;
    }

    .site-nav__divider {
        width: 100%;
        height: 1px;
        margin: 6px 0;
    }

    .site-nav__group > a {
        width: 100%;
        justify-content: flex-start;
    }

    .site-nav__dropdown {
        width: 100%;
    }

    .site-nav__trigger {
        width: 100%;
        justify-content: flex-start;
    }

    .site-nav__menu {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: none;
        height: auto;
        margin-top: 6px;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
        box-shadow: none;
    }

    .site-nav__dropdown.is-open .site-nav__menu {
        display: block;
    }

    .site-header {
        position: sticky;
    }

    body.menu-open .site-nav-scroll {
        display: block;
    }

    body.menu-open .site-nav {
        display: flex;
    }

    .menu-toggle {
        display: inline-flex;
        grid-area: toggle;
        width: var(--header-control);
        height: var(--header-control);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(0, 0, 0, 0.22);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 18px;
        height: 2px;
        background: var(--white);
        border-radius: 1px;
    }

    .site-header__actions {
        margin-left: 0;
        padding: 0;
        gap: 8px;
    }

    .user-menu {
        gap: 8px;
        padding: 4px;
    }

    .user-menu__name {
        max-width: 88px;
    }

    .user-menu__links {
        padding-left: 6px;
    }

    .user-menu__link {
        padding: 6px 8px;
        font-size: 0.78rem;
    }

    .site-header .btn-primary,
    .site-header .btn-discord,
    .site-header .btn-secondary {
        min-width: 88px;
        padding: 0 12px;
    }
}

@media (max-width: 640px) {
    .site-header__inner {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand actions"
            "toggle toggle";
    }

    .menu-toggle {
        grid-area: toggle;
        width: 100%;
        justify-self: stretch;
    }

    .site-header .user-menu {
        flex-wrap: wrap;
        max-width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        grid-template-columns: 1fr;
    }
}

.panel__body--flush {
    padding: 0;
}

.panel--muted {
    opacity: 0.92;
}

.discord-link-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(88, 101, 242, 0.35);
    background: rgba(88, 101, 242, 0.12);
}

.discord-link-banner p {
    margin: 0;
    color: var(--white);
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.92rem;
}

.forum-category__desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.forum-row--link,
.thread-row--link {
    color: inherit;
    text-decoration: none;
}

.forum-row--link:hover,
.thread-row--link:hover {
    background: rgba(232, 146, 58, 0.06);
}

.forum-row__last {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.86rem;
}

.breadcrumb {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.88rem;
}

.breadcrumb + .breadcrumb::before {
    content: " / ";
    color: var(--muted);
}

.breadcrumb:hover {
    color: var(--orange-400);
}

.thread-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
}

.thread-row:first-of-type {
    border-top: none;
}

.thread-row__avatar img,
.thread-row__avatar .avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
}

.thread-row__author {
    color: var(--role-color, var(--spring-300));
    font-weight: 700;
}

.thread-row__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.thread-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 0.88rem;
}

.badge-muted {
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

.member-role-badge {
    background: color-mix(in srgb, var(--role-color, #6cff8c) 18%, transparent);
    color: var(--role-color, #6cff8c);
    border: 1px solid color-mix(in srgb, var(--role-color, #6cff8c) 35%, transparent);
}

.member-role-badge--compact {
    display: inline-block;
    max-width: 100%;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.25;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vote-box {
    display: grid;
    gap: 4px;
    justify-items: center;
    min-width: 120px;
}

.vote-box strong {
    font-size: 1.6rem;
    color: var(--orange-400);
}

.vote-box span {
    color: var(--muted);
    font-size: 0.82rem;
}

.post-card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    gap: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.post-card:first-of-type {
    border-top: none;
}

.post-card__sidebar {
    display: grid;
    gap: 8px;
    justify-items: center;
    align-content: start;
    text-align: center;
    padding: 18px 14px;
    background: rgba(0, 0, 0, 0.18);
    border-right: 1px solid var(--line);
}

.post-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.post-card__content {
    padding: 18px;
    min-width: 0;
}

.post-card__author {
    color: var(--role-color, var(--spring-300));
    font-weight: 800;
    line-height: 1.25;
    word-break: break-word;
}

.post-card__role {
    max-width: 100%;
}

.post-card__stat {
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

.post-card__text {
    white-space: pre-wrap;
    line-height: 1.55;
}

.post-card__meta {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.82rem;
}

.avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 139, 92, 0.35), rgba(232, 146, 58, 0.25));
    border: 1px solid var(--line);
    font-weight: 800;
    overflow: hidden;
}

.avatar--large {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    font-size: 1.8rem;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
}

.profile-header__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.profile-header__main {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex: 1;
    min-width: min(100%, 280px);
}

.profile-header__identity {
    flex: 1;
    min-width: 0;
}

.profile-header__forum-login {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.profile-header__actions {
    margin-left: auto;
    flex-shrink: 0;
}

.profile-header h1 {
    margin: 0 0 8px;
}

.profile-header__meta {
    margin: 8px 0 0;
    color: var(--muted);
}

.profile-header__note {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    max-width: 420px;
}

.profile-roles {
    width: 100%;
    max-width: 640px;
    margin-top: 2px;
    padding: 16px 18px;
    border: 1px solid rgba(111, 191, 115, 0.16);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, rgba(111, 191, 115, 0.08), rgba(255, 140, 66, 0.04)),
        rgba(8, 14, 10, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profile-roles--compact {
    padding: 8px 10px;
    max-width: min(100%, 480px);
    margin-top: 8px;
}

.profile-roles__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.profile-roles--compact .profile-roles__head {
    margin-bottom: 6px;
}

.profile-roles__kicker {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-roles__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    color: #eef6f0;
}

.profile-roles__count {
    margin-left: auto;
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--spring-300);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

.profile-roles__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-role-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    max-width: 100%;
    min-height: 0;
    padding: 5px 10px;
    border: 1px solid color-mix(in srgb, var(--role-color, #99aab5) 42%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--role-color, #99aab5) 12%, rgba(8, 14, 10, 0.88));
    color: #f4f8f5;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profile-role-chip--featured,
.profile-role-chip--primary {
    border-width: 1.5px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 10px color-mix(in srgb, var(--role-color, #99aab5) 16%, transparent);
}

.profile-role-chip__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--role-color, #99aab5);
    box-shadow: 0 0 8px color-mix(in srgb, var(--role-color, #99aab5) 60%, transparent);
    flex: 0 0 auto;
}

.profile-role-chip__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-role-chip--manageable {
    padding-right: 8px;
}

.profile-role-chip__remove-form {
    margin: 0;
}

.profile-role-chip__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 2px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffd8d8;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.profile-role-chip__remove:hover {
    background: rgba(255, 80, 80, 0.35);
    transform: scale(1.04);
}

.profile-header__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    width: 100%;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-header__stats div,
.profile-header__stats a.profile-header__stat-sanction {
    min-width: 88px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    text-align: center;
}

.profile-header__stat-sanction {
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.profile-header__stat-sanction:hover {
    border-color: rgba(255, 140, 66, 0.45);
    background: rgba(255, 140, 66, 0.08);
    transform: translateY(-1px);
}

.profile-header__stats strong {
    display: block;
    font-size: 1.3rem;
    color: var(--orange-400);
}

.profile-header__stats span {
    color: var(--muted);
    font-size: 0.86rem;
}

.profile-header__stat-sanction strong {
    color: #8ec5ff;
}

.profile-header__stat-sanction--warn strong {
    color: #ffb347;
}

.profile-header__stat-sanction--removal {
    border-color: rgba(255, 92, 92, 0.45);
    background: rgba(255, 92, 92, 0.08);
}

.profile-header__stat-sanction--removal strong {
    color: #ff7a7a;
}

.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.profile-tabs__item {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.profile-tabs__item.is-active,
.profile-tabs__item:hover {
    color: var(--text);
    border-color: rgba(255, 140, 66, 0.45);
    background: rgba(255, 140, 66, 0.08);
}

.profile-sanctions__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.profile-sanctions__rules {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.profile-sanctions__counters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.profile-sanctions__counter {
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.profile-sanctions__counter strong {
    display: block;
    font-size: 1.6rem;
    color: #ffd36b;
}

.profile-sanctions__counter--warn strong {
    color: #ff8293;
}

.profile-sanctions__counter--points strong {
    color: var(--orange-400);
    font-size: 1.25rem;
}

.profile-sanctions--removal .profile-sanctions__counter--points strong {
    color: #ff8293;
}

.profile-sanctions__counter span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.84rem;
}

.profile-sanctions__progress {
    height: 10px;
    margin-bottom: 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.profile-sanctions__progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--orange-500), #ff8293);
}

.profile-sanctions--removal .profile-sanctions__progress i {
    width: 100% !important;
    background: linear-gradient(90deg, #ff9b45, #ff294d);
}

.profile-sanctions__equivalent {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.profile-sanctions__removal-note {
    margin: 8px 0 0;
    color: var(--orange-400);
    font-size: 0.92rem;
}

.profile-sanctions__manage-hint {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.85rem;
}

.profile-sanctions__form {
    margin: 0 0 22px;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 140, 66, 0.25);
    background: rgba(255, 140, 66, 0.05);
}

.profile-sanctions__form h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.profile-sanctions-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.profile-sanctions-form select,
.profile-sanctions-form input[type="url"],
.profile-sanctions-form textarea,
.form-field-dark {
    width: 100%;
    margin-top: 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(10, 22, 14, 0.95);
    color: var(--text);
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.profile-sanctions-form select,
.form-field-dark select {
    appearance: none;
    padding-right: 40px;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255, 140, 66, 0.9) 50%),
        linear-gradient(135deg, rgba(255, 140, 66, 0.9) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% + 2px),
        calc(100% - 12px) calc(50% + 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.profile-sanctions-form select option,
.form-field-dark select option {
    background: #102016;
    color: var(--text);
}

.profile-sanctions-form select:focus,
.profile-sanctions-form input[type="url"]:focus,
.profile-sanctions-form textarea:focus,
.form-field-dark:focus {
    outline: none;
    border-color: rgba(255, 140, 66, 0.55);
    background: rgba(12, 28, 18, 0.98);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.12);
}

.profile-sanctions-form input[type="url"]::placeholder,
.profile-sanctions-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.profile-back-link {
    margin: 0 0 14px;
}

.profile-account .panel__body {
    display: flex;
    justify-content: flex-start;
}

.profile-logout-btn {
    border-color: rgba(255, 92, 92, 0.35);
    color: #ffb0b0;
}

.profile-logout-btn:hover {
    border-color: rgba(255, 92, 92, 0.55);
    background: rgba(255, 92, 92, 0.1);
    color: #ffd0d0;
}

.profile-sanctions__history {
    display: grid;
    gap: 10px;
}

.profile-sanction-entry {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.18);
}

.profile-sanction-entry__top,
.profile-sanction-entry__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-sanction-entry__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-sanction-entry__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.profile-sanction-remove-form {
    margin: 0;
}

.profile-sanction-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 80, 80, 0.35);
    border-radius: 999px;
    background: rgba(255, 80, 80, 0.12);
    color: #ffb4b4;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.profile-sanction-remove:hover {
    background: rgba(255, 80, 80, 0.28);
    color: #fff;
}

.profile-sanction-edit {
    position: relative;
}

.profile-sanction-edit > summary {
    list-style: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 0.82rem;
    user-select: none;
}

.profile-sanction-edit > summary::-webkit-details-marker {
    display: none;
}

.profile-sanction-edit > summary:hover {
    color: #fff;
}

.profile-sanction-edit-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.profile-sanction-entry__top time,
.profile-sanction-entry__meta,
.profile-sanction-entry small {
    color: var(--muted);
    font-size: 0.82rem;
}

.profile-sanction-entry p {
    margin: 10px 0;
    line-height: 1.5;
    white-space: pre-wrap;
}

.profile-sanction-entry a {
    color: var(--orange-400);
    font-weight: 700;
}

.warning-type {
    padding: 5px 9px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 800;
}

.warning-type--warning {
    background: rgba(255, 187, 51, 0.14);
    color: #ffd36b;
}

.warning-type--warn {
    background: rgba(255, 65, 91, 0.14);
    color: #ff8293;
}

.wall-post {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
}

.wall-post:first-of-type {
    border-top: none;
}

.wall-post__head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.88rem;
}

.wall-post__head a {
    color: var(--spring-300);
}

.wall-post p,
.wall-post__text {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.5;
}

.wall-post__actions {
    margin-top: 10px;
}

.panel__head-meta {
    color: var(--muted);
    font-size: 0.88rem;
}

.empty-state,
.empty-note {
    color: var(--muted);
}

.empty-state {
    padding: 18px;
}

.empty-note {
    margin: 0 0 12px;
}

.rules-content {
    line-height: 1.65;
    color: var(--silver-300);
}

.rules-content .rule-text {
    display: grid;
    gap: 8px;
}

.rules-intro {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.18);
}

.rules-section {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.rules-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.rules-section h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    color: var(--white);
}

.rules-section h3 {
    margin: 12px 0 4px;
    font-size: 1rem;
    color: var(--spring-300);
}

.rules-section p {
    margin: 0;
}

.rules-tag,
.rules-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.rules-list {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 6px;
}

.online-chip a {
    color: var(--spring-300);
}

.panel__head-link {
    color: var(--spring-300);
    font-size: 0.9rem;
    font-weight: 600;
}

.home-widgets {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: 16px;
    margin-bottom: 16px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.quick-links__item {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.quick-links__item:hover {
    border-color: rgba(111, 191, 115, 0.45);
    background: rgba(79, 139, 92, 0.12);
}

.quick-links__item--discord {
    border-color: rgba(88, 101, 242, 0.35);
}

.quick-links__item--telegram {
    border-color: rgba(42, 171, 238, 0.35);
}

.quick-links__item--ip {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.quick-links__item--site {
    border-color: rgba(212, 168, 75, 0.38);
}

.play-guide__steps {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 14px;
}

.play-guide__steps li {
    display: grid;
    gap: 4px;
}

.play-guide__steps strong {
    color: var(--spring-200);
    font-size: 0.98rem;
}

.play-guide__steps span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.play-guide__steps a {
    color: var(--spring-300);
}

.sidebar-online__count {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(79, 139, 92, 0.22);
    color: var(--spring-300);
    font-size: 0.78rem;
    font-weight: 700;
}

.panel__head:has(.sidebar-online__count) {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-online__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.sidebar-online__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.9rem;
}

.sidebar-online__item a {
    color: var(--spring-200);
    font-weight: 600;
    text-decoration: none;
}

.sidebar-online__item a:hover {
    color: var(--white);
}

.sidebar-online__role {
    color: var(--muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.sidebar-online__empty,
.sidebar-online__more {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.activity-item__excerpt {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.activity-item--empty,
.idea-item--empty {
    color: var(--muted);
}

.online-list--compact {
    gap: 6px;
}

.online-list--compact .online-chip {
    padding: 6px 10px;
    font-size: 0.86rem;
}

.activity-item a,
.idea-item a {
    color: var(--white);
}

.activity-item a:hover,
.idea-item a:hover {
    color: var(--orange-400);
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.flash {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

.flash-success {
    background: rgba(111, 191, 115, 0.14);
    color: var(--spring-300);
}

.flash-error {
    background: rgba(232, 146, 58, 0.14);
    color: var(--orange-400);
}

.auth-note,
.form-hint {
    color: var(--muted);
    font-size: 0.92rem;
}

.auth-note--spaced {
    margin-top: 16px;
}

.form-error {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(232, 146, 58, 0.14);
    color: var(--orange-400);
}

.forum-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.forum-form input[type="text"],
.forum-form input[type="email"],
.forum-form input[type="password"],
.forum-form input[type="file"]:not(.file-upload__input),
.forum-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font: inherit;
}

.forum-form textarea {
    resize: vertical;
    min-height: 120px;
}

.post-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.post-images img {
    width: min(220px, 100%);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

.post-card__date {
    color: var(--muted);
    font-size: 0.78rem;
}

.avatar--post {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    font-size: 1.5rem;
}

.avatar--tiny {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.95rem;
}

@media (max-width: 760px) {
    .post-card {
        grid-template-columns: 1fr;
    }

    .post-card__sidebar {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "number avatar edited"
            "number avatar author"
            "number avatar role"
            "number avatar stat"
            "number avatar date";
        justify-items: start;
        align-items: center;
        text-align: left;
        padding: 14px 16px;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .post-card__sidebar .avatar--post {
        grid-area: avatar;
    }

    .post-card__number {
        grid-area: number;
        align-self: start;
        margin-top: 4px;
    }

    .post-card__author {
        grid-area: author;
    }

    .post-card__role {
        grid-area: role;
    }

    .post-card__stat {
        grid-area: stat;
    }

    .post-card__date {
        grid-area: date;
    }

    .post-card__sidebar .badge-muted {
        grid-area: edited;
        align-self: start;
        justify-self: end;
    }

    .thread-row {
        grid-template-columns: auto 1fr;
    }

    .profile-header__stats {
        width: 100%;
    }

    .profile-sanctions__counters {
        grid-template-columns: 1fr;
    }

    .profile-sanctions__head {
        flex-direction: column;
    }
}

.news-page {
    display: grid;
    gap: 18px;
}

.panel--nested {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--line);
    box-shadow: none;
}

.news-editor .panel__head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.news-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.news-form-status,
.news-loading,
.news-empty {
    color: var(--muted);
    font-size: 0.9rem;
}

.news-list {
    display: grid;
    gap: 14px;
}

.news-hint {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.14);
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.news-hint a {
    color: var(--spring-300);
}

.news-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.16);
}

.news-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.news-card h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.news-card p {
    margin: 0 0 10px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.news-card small {
    color: var(--muted);
    font-size: 0.82rem;
}

.news-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.admin-stats__item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.admin-stats__item strong {
    font-size: 1.25rem;
    color: var(--spring-300);
}

.admin-stats__item span {
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-members-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.admin-members-toolbar input[type="search"] {
    flex: 1;
    min-width: 220px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font: inherit;
}

.admin-members-table-wrap {
    overflow-x: auto;
}

.admin-members-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-members-table th,
.admin-members-table td {
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.admin-members-table th {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.18);
}

.admin-members-table tr.is-blocked {
    opacity: 0.72;
}

.admin-members-table__mono {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.8rem;
    color: var(--muted);
}

.admin-members-table__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 180px;
}

.admin-members-table__actions select {
    min-height: var(--btn-height-sm);
    padding: 0 10px;
    border-radius: var(--btn-radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font: inherit;
}

.admin-members-table__discord-roles {
    min-width: 220px;
    max-width: 320px;
}

.admin-discord-role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid color-mix(in srgb, var(--role-color, #99aab5) 55%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--role-color, #99aab5) 14%, rgba(8, 14, 10, 0.92));
    color: #f4f8f5;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.role-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--role-color, #99aab5);
    box-shadow: 0 0 10px color-mix(in srgb, var(--role-color, #99aab5) 65%, transparent);
    flex: 0 0 auto;
}

.role-badge.role-empty {
    --role-color: #7e8a98;
    color: #c5ced8;
    border-style: dashed;
    background: rgba(255, 255, 255, 0.04);
}

.role-badge.role-empty::before {
    box-shadow: none;
    opacity: 0.55;
}

.member-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-discord-role-editor {
    margin-top: 4px;
}

.role-editor summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid rgba(111, 191, 115, 0.28);
    border-radius: 8px;
    background: rgba(45, 90, 58, 0.35);
    color: var(--spring-300);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.role-editor summary::-webkit-details-marker {
    display: none;
}

.role-editor summary::before {
    content: "▶";
    font-size: 0.68rem;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.role-editor[open] summary::before {
    transform: rotate(90deg);
}

.role-editor-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
}

.admin-discord-role-editor .role-editor-panel {
    max-height: 280px;
    overflow: auto;
}

.role-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--role-color, #99aab5) 45%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--role-color, #99aab5) 10%, rgba(8, 14, 10, 0.88));
    font-size: 0.82rem;
    font-weight: 800;
    color: #eef4f0;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.role-option:hover {
    border-color: color-mix(in srgb, var(--role-color, #99aab5) 65%, transparent);
    background: color-mix(in srgb, var(--role-color, #99aab5) 16%, rgba(8, 14, 10, 0.92));
}

.role-option:has(input:checked) {
    border-color: color-mix(in srgb, var(--role-color, #99aab5) 72%, transparent);
    background: color-mix(in srgb, var(--role-color, #99aab5) 22%, rgba(8, 14, 10, 0.95));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--role-color, #99aab5) 28%, transparent);
}

.role-option input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--role-color, #6cff8c);
    cursor: pointer;
}

.role-option span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.25;
}

.role-option span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--role-color, #99aab5);
    box-shadow: 0 0 10px color-mix(in srgb, var(--role-color, #99aab5) 65%, transparent);
    flex: 0 0 auto;
}

.role-option:has(input:disabled) {
    opacity: 0.45;
    cursor: not-allowed;
}

.role-editor-panel > .btn {
    align-self: flex-start;
    margin-top: 4px;
}

.role-badge--manageable {
    gap: 4px;
    padding-right: 4px;
}

.role-badge__label {
    min-width: 0;
}

.role-badge-remove-form {
    display: inline-flex;
    margin: 0;
}

.role-badge-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.role-badge-remove:hover {
    background: rgba(255, 80, 80, 0.35);
}

.profile-discord-roles-manage {
    margin-top: 12px;
}

.profile-discord-roles-manage__label {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.85rem;
}

.profile-discord-roles-manage__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-top: 1px solid var(--line);
}

.admin-member-row:first-child {
    border-top: none;
}

.admin-member-row__info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-member-row__meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.admin-member-row__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-member-row__actions select {
    min-height: var(--btn-height-sm);
    padding: 0 12px;
    border-radius: var(--btn-radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font: inherit;
}

.hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.panel__head-actions,
.panel__toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.panel__toolbar {
    padding: 12px 18px 14px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.panel__toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.panel__toolbar .inline-form,
.panel__toolbar .complaint-status-picker__item {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.panel__toolbar .thread-tools {
    display: inline-flex;
    align-items: center;
}

.panel__toolbar .thread-tools > summary {
    list-style: none;
    cursor: pointer;
}

.panel__toolbar .thread-tools > summary::-webkit-details-marker {
    display: none;
}

.panel__toolbar .btn-sm,
.panel__toolbar .thread-tools > summary.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--btn-height-sm);
    height: var(--btn-height-sm);
    white-space: nowrap;
}

.panel__footer {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pagination__info {
    color: var(--muted);
    font-size: 0.9rem;
}

.pagination__link {
    color: var(--spring-300);
    font-weight: 600;
}

.post-quote {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-left: 3px solid var(--orange-400);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.18);
    color: var(--muted);
}

.post-quote p {
    margin: 6px 0 0;
    white-space: pre-wrap;
}

.post-quote .author-name {
    display: inline-block;
}

.post-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.post-signature {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(111, 191, 115, 0.22);
}

.post-signature__text {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.post-signature__image {
    margin-top: 8px;
}

.post-signature__image img {
    display: block;
    max-width: min(420px, 100%);
    max-height: 160px;
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

.signature-preview {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.16);
}

.signature-preview img {
    display: block;
    max-width: min(420px, 100%);
    max-height: 160px;
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
}

.inline-form {
    display: inline;
}

.post-edit-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.quote-preview {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(79, 139, 92, 0.12);
}

.quote-preview p {
    margin: 8px 0 10px;
    color: var(--muted);
}

.forum-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.search-snippet {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.thread-tools__form {
    margin-top: 10px;
}

.btn-danger {
    color: #ffb4b4;
}

.is-hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.idea-vote-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    background: rgba(232, 146, 58, 0.08);
}

.idea-vote-panel__score strong {
    display: block;
    font-size: 1.5rem;
    color: var(--orange-400);
    line-height: 1.1;
}

.idea-vote-panel__score span,
.idea-vote-panel__hint {
    color: var(--muted);
    font-size: 0.82rem;
}

.idea-vote-panel__counts,
.idea-vote-panel__actions,
.idea-status-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.idea-vote-panel__actions .btn.is-active {
    box-shadow: inset 0 0 0 2px rgba(111, 191, 115, 0.55);
}

.idea-status-form select {
    min-height: var(--btn-height-sm);
    padding: 0 12px;
    border-radius: var(--btn-radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font: inherit;
}

.idea-status-badge--new {
    background: rgba(111, 191, 115, 0.18);
    color: var(--spring-300);
}

.idea-status-badge--review {
    background: rgba(232, 146, 58, 0.18);
    color: var(--orange-400);
}

.idea-status-badge--accepted {
    background: rgba(79, 139, 92, 0.28);
    color: #b8f0bc;
}

.idea-status-badge--rejected {
    background: rgba(180, 80, 80, 0.18);
    color: #ffb4b4;
}

.idea-sort-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.12);
}

.idea-sort-tabs__item {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.idea-sort-tabs__item.is-active,
.idea-sort-tabs__item:hover {
    color: var(--white);
    border-color: rgba(111, 191, 115, 0.45);
    background: rgba(79, 139, 92, 0.14);
}

.panel--ideas-ds .panel__head {
    border-bottom: 1px solid var(--line);
}

.idea-compose {
    border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.1);
}

.idea-compose--locked {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.idea-feed {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.idea-feed__empty {
    padding: 24px;
    text-align: center;
    color: var(--muted);
}

.idea-ds-card {
    display: block;
    padding: 14px 16px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 22, 18, 0.92);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.idea-ds-card:hover {
    border-color: rgba(111, 191, 115, 0.35);
    background: rgba(24, 30, 24, 0.98);
    transform: translateY(-1px);
}

.idea-ds-card--pinned {
    border-color: rgba(232, 146, 58, 0.35);
}

.idea-ds-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.idea-ds-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.idea-ds-card__meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.idea-ds-card__author {
    color: #6eb5ff;
    font-weight: 700;
    font-size: 0.95rem;
}

.idea-ds-card__time {
    color: var(--muted);
    font-size: 0.82rem;
}

.idea-ds-card__embed {
    margin: 0 0 12px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 4px solid rgba(111, 191, 115, 0.65);
    background: rgba(0, 0, 0, 0.28);
}

.idea-ds-card__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
    text-align: center;
}

.idea-ds-card__body {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.idea-ds-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.idea-ds-card__footer-end {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.idea-ds-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.idea-ds-chip--pin {
    padding-inline: 8px;
}

.idea-ds-chip--status.is-active.idea-ds-chip--review {
    border-color: rgba(232, 146, 58, 0.45);
    background: rgba(232, 146, 58, 0.16);
    color: var(--orange-400);
}

.idea-ds-chip--status.is-active.idea-ds-chip--accepted {
    border-color: rgba(79, 139, 92, 0.55);
    background: rgba(79, 139, 92, 0.22);
    color: #b8f0bc;
}

.idea-ds-chip--status.is-active.idea-ds-chip--rejected {
    border-color: rgba(180, 80, 80, 0.45);
    background: rgba(180, 80, 80, 0.18);
    color: #ffb4b4;
}

.idea-ds-chip--votes,
.idea-ds-chip--comments {
    margin-left: 0;
}

@media (max-width: 640px) {
    .idea-ds-card__footer {
        gap: 6px;
    }

    .idea-ds-card__footer-end {
        width: 100%;
        margin-left: 0;
    }
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.admin-card {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.admin-card:hover {
    border-color: rgba(111, 191, 115, 0.45);
    transform: translateY(-1px);
}

.admin-card h2 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.admin-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.mod-log-row {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
}

.mod-log-row:first-of-type {
    border-top: none;
}

.mod-log-row__main,
.mod-log-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.mod-log-row__meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.86rem;
}

.settings-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.settings-list li {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.settings-list span {
    color: var(--muted);
    font-size: 0.86rem;
}

.settings-list code {
    color: var(--spring-300);
}

.backup-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.backup-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.backup-list__meta {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.86rem;
}

/* Forum hub (index) */
.forum-hub {
    display: grid;
    gap: 20px;
    padding: 0;
}

.forum-hub__category + .forum-hub__category {
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.forum-hub__category-head {
    padding: 0 18px 10px;
}

.forum-hub__category-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.forum-hub__category-desc {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.84rem;
    line-height: 1.4;
}

.forum-hub__rows {
    display: grid;
}

.forum-hub__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1.4fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px 18px;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    color: var(--white);
    text-decoration: none;
    transition: background 0.18s ease;
}

.forum-hub__row:hover {
    background: rgba(79, 139, 92, 0.1);
}

.forum-hub__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-size: 1.15rem;
    line-height: 1;
}

.forum-hub__row--ideas .forum-hub__icon {
    background: rgba(232, 146, 58, 0.16);
    border-color: rgba(232, 146, 58, 0.28);
}

.forum-hub__row--ideas .forum-hub__icon::after {
    content: "💡";
}

.forum-hub__row--discussion .forum-hub__icon {
    background: rgba(111, 191, 115, 0.14);
    border-color: rgba(111, 191, 115, 0.24);
}

.forum-hub__row--discussion .forum-hub__icon::after {
    content: "🛠";
}

.forum-hub__row--complaint_player .forum-hub__icon,
.forum-hub__row--complaint_staff .forum-hub__icon {
    background: rgba(154, 168, 178, 0.12);
    border-color: rgba(154, 168, 178, 0.22);
}

.forum-hub__row--complaint_player .forum-hub__icon::after,
.forum-hub__row--complaint_staff .forum-hub__icon::after {
    content: "⚖";
}

.forum-hub__row--complaint_donate_cp .forum-hub__icon {
    background: rgba(186, 104, 255, 0.16);
    border-color: rgba(186, 104, 255, 0.28);
}

.forum-hub__row--complaint_donate_cp .forum-hub__icon::after {
    content: "💎";
}

.forum-hub__main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.forum-hub__title {
    font-weight: 700;
    line-height: 1.35;
}

.forum-hub__desc {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.forum-hub__stats {
    color: var(--muted);
    font-size: 0.84rem;
    white-space: nowrap;
}

.forum-hub__stats strong {
    color: var(--spring-300);
    font-weight: 700;
}

.forum-hub__stats-sep {
    margin: 0 4px;
    opacity: 0.5;
}

.forum-hub__stats-empty,
.forum-hub__latest-empty {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.84rem;
}

.forum-hub__latest {
    display: grid;
    gap: 4px;
    min-width: 0;
    text-align: right;
}

.forum-hub__latest-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 600;
}

.forum-hub__latest-meta {
    color: var(--muted);
    font-size: 0.78rem;
}

@media (max-width: 900px) {
    .forum-hub__row {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon main"
            "icon stats"
            "icon latest";
    }

    .forum-hub__icon {
        grid-area: icon;
    }

    .forum-hub__main {
        grid-area: main;
    }

    .forum-hub__stats {
        grid-area: stats;
    }

    .forum-hub__latest {
        grid-area: latest;
        text-align: left;
    }
}

/* Create topic page */
.forum-section-compose-note {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.88rem;
}

.forum-section-compose-note a {
    color: var(--spring-300);
}

.complaint-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.complaint-status-badge--open {
    background: rgba(111, 191, 115, 0.18);
    color: var(--spring-300);
    border: 1px solid rgba(111, 191, 115, 0.28);
}

.complaint-status-badge--review {
    background: rgba(232, 146, 58, 0.16);
    color: #f0b06a;
    border: 1px solid rgba(232, 146, 58, 0.28);
}

.complaint-status-badge--closed {
    background: rgba(154, 168, 178, 0.14);
    color: #b8c4cc;
    border: 1px solid rgba(154, 168, 178, 0.24);
}

.complaint-status-form {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: var(--btn-height-sm);
    padding-right: 14px;
    margin-right: 0;
    flex-shrink: 0;
}

.complaint-status-form:not(:last-child) {
    padding-right: 14px;
    border-right: 1px solid var(--line);
}

.complaint-status-form__label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: var(--btn-height-sm);
}

.complaint-status-picker {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: var(--btn-height-sm);
    padding: 3px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.36);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.complaint-status-picker__item {
    display: inline-flex;
    margin: 0;
}

.complaint-status-picker__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: calc(var(--btn-height-sm) - 6px);
    height: calc(var(--btn-height-sm) - 6px);
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.complaint-status-picker__btn:hover:not(.is-active) {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.complaint-status-picker__btn.is-active {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.complaint-status-picker__btn--open.is-active {
    background: rgba(111, 191, 115, 0.24);
    border-color: rgba(111, 191, 115, 0.42);
    color: #b8f0bb;
}

.complaint-status-picker__btn--review.is-active {
    background: rgba(232, 146, 58, 0.22);
    border-color: rgba(232, 146, 58, 0.42);
    color: #ffc98a;
}

.complaint-status-picker__btn--closed.is-active {
    background: rgba(154, 168, 178, 0.2);
    border-color: rgba(154, 168, 178, 0.36);
    color: #dde4e8;
}

.complaint-status-picker__btn--open:not(.is-active):hover {
    color: var(--spring-300);
}

.complaint-status-picker__btn--review:not(.is-active):hover {
    color: #f0b06a;
}

.complaint-status-picker__btn--closed:not(.is-active):hover {
    color: #c8d2d8;
}

@media (max-width: 720px) {
    .panel__toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .complaint-status-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-right: 0;
        border-right: none;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--line);
    }

    .complaint-status-form:not(:last-child) {
        border-right: none;
    }

    .complaint-status-picker {
        width: 100%;
        justify-content: stretch;
    }

    .complaint-status-picker__item {
        flex: 1 1 0;
    }

    .complaint-status-picker__btn {
        width: 100%;
        padding: 0 8px;
        font-size: 0.78rem;
    }

    .panel__toolbar-actions {
        justify-content: flex-start;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .complaint-status-picker__btn {
        padding: 0 10px;
        font-size: 0.78rem;
    }
}

.complaint-hub {
    display: grid;
    gap: 14px;
    margin: 18px 0 24px;
}

.complaint-hub--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.complaint-hub--double {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.complaint-hub__item {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.complaint-hub__list-link {
    color: var(--spring-300);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.complaint-hub__list-link:hover {
    color: var(--orange-400);
}

.complaint-hub__card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(232, 146, 58, 0.28);
    background: linear-gradient(180deg, rgba(232, 146, 58, 0.08), rgba(0, 0, 0, 0.18));
    color: var(--white);
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.complaint-hub__card:hover {
    border-color: rgba(232, 146, 58, 0.55);
    background: linear-gradient(180deg, rgba(232, 146, 58, 0.14), rgba(0, 0, 0, 0.22));
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.complaint-hub__card-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.15rem;
    line-height: 1;
}

.complaint-hub__card-body {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.complaint-hub__card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.complaint-hub__card-desc {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.complaint-hub__card-action {
    color: var(--orange-400);
    font-size: 0.88rem;
    font-weight: 700;
}

.complaint-hub__card--complaint_player {
    border-color: rgba(232, 146, 58, 0.28);
    background: linear-gradient(180deg, rgba(232, 146, 58, 0.1), rgba(0, 0, 0, 0.18));
}

.complaint-hub__card--complaint_player:hover {
    border-color: rgba(232, 146, 58, 0.55);
    background: linear-gradient(180deg, rgba(232, 146, 58, 0.16), rgba(0, 0, 0, 0.22));
}

.complaint-hub__card--complaint_player .complaint-hub__card-icon {
    background: rgba(232, 146, 58, 0.16);
    border-color: rgba(232, 146, 58, 0.28);
}

.complaint-hub__card--complaint_player .complaint-hub__card-icon::after {
    content: "⚔";
}

.complaint-hub__card--complaint_player .complaint-hub__card-action {
    color: var(--orange-400);
}

.complaint-hub__card--complaint_staff {
    border-color: rgba(111, 168, 232, 0.28);
    background: linear-gradient(180deg, rgba(111, 168, 232, 0.1), rgba(0, 0, 0, 0.18));
}

.complaint-hub__card--complaint_staff:hover {
    border-color: rgba(111, 168, 232, 0.52);
    background: linear-gradient(180deg, rgba(111, 168, 232, 0.16), rgba(0, 0, 0, 0.22));
}

.complaint-hub__card--complaint_staff .complaint-hub__card-icon {
    background: rgba(111, 168, 232, 0.16);
    border-color: rgba(111, 168, 232, 0.28);
}

.complaint-hub__card--complaint_staff .complaint-hub__card-icon::after {
    content: "🛡";
}

.complaint-hub__card--complaint_staff .complaint-hub__card-action {
    color: #8eb8f0;
}

.complaint-hub__card--complaint_donate_cp {
    border-color: rgba(186, 104, 255, 0.32);
    background: linear-gradient(180deg, rgba(186, 104, 255, 0.12), rgba(0, 0, 0, 0.18));
}

.complaint-hub__card--complaint_donate_cp:hover {
    border-color: rgba(186, 104, 255, 0.58);
    background: linear-gradient(180deg, rgba(186, 104, 255, 0.18), rgba(0, 0, 0, 0.22));
}

.complaint-hub__card--complaint_donate_cp .complaint-hub__card-icon {
    background: rgba(186, 104, 255, 0.18);
    border-color: rgba(186, 104, 255, 0.32);
}

.complaint-hub__card--complaint_donate_cp .complaint-hub__card-icon::after {
    content: "💎";
}

.complaint-hub__card--complaint_donate_cp .complaint-hub__card-action {
    color: #c894ff;
}

.complaint-hub__card--application_kp {
    border-color: rgba(111, 191, 115, 0.32);
    background: linear-gradient(180deg, rgba(111, 191, 115, 0.12), rgba(0, 0, 0, 0.18));
}

.complaint-hub__card--application_kp:hover {
    border-color: rgba(111, 191, 115, 0.58);
    background: linear-gradient(180deg, rgba(111, 191, 115, 0.18), rgba(0, 0, 0, 0.22));
}

.complaint-hub__card--application_kp .complaint-hub__card-icon {
    background: rgba(111, 191, 115, 0.18);
    border-color: rgba(111, 191, 115, 0.32);
}

.complaint-hub__card--application_kp .complaint-hub__card-icon::after {
    content: "🛡";
}

.complaint-hub__card--application_kp .complaint-hub__card-action {
    color: #8fd892;
}

.complaint-hub__card--application_media {
    border-color: rgba(232, 106, 138, 0.32);
    background: linear-gradient(180deg, rgba(232, 106, 138, 0.12), rgba(0, 0, 0, 0.18));
}

.complaint-hub__card--application_media:hover {
    border-color: rgba(232, 106, 138, 0.58);
    background: linear-gradient(180deg, rgba(232, 106, 138, 0.18), rgba(0, 0, 0, 0.22));
}

.complaint-hub__card--application_media .complaint-hub__card-icon {
    background: rgba(232, 106, 138, 0.18);
    border-color: rgba(232, 106, 138, 0.32);
}

.complaint-hub__card--application_media .complaint-hub__card-icon::after {
    content: "🎬";
}

.complaint-hub__card--application_media .complaint-hub__card-action {
    color: #f08fa8;
}

.complaint-hub__empty {
    grid-column: 1 / -1;
    color: var(--muted);
}

.complaint-recent {
    margin-top: 24px;
}

.complaint-recent__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.complaint-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.complaint-filter__chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.22);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.complaint-filter__chip:hover {
    color: var(--white);
    border-color: rgba(232, 146, 58, 0.45);
}

.complaint-filter__chip.is-active {
    color: var(--white);
    border-color: rgba(232, 146, 58, 0.55);
    background: rgba(232, 146, 58, 0.14);
}

.complaint-filter__chip--donate.is-active {
    border-color: rgba(186, 104, 255, 0.58);
    background: rgba(186, 104, 255, 0.16);
    color: #e6ccff;
}

.complaint-filter__chip--media.is-active {
    border-color: rgba(232, 106, 138, 0.58);
    background: rgba(232, 106, 138, 0.16);
    color: #f5b8c8;
}

.complaint-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.complaint-type-badge--complaint_player {
    background: rgba(232, 146, 58, 0.16);
    color: #ffb86a;
}

.complaint-type-badge--complaint_staff {
    background: rgba(111, 168, 232, 0.16);
    color: #8eb8f0;
}

.complaint-type-badge--complaint_donate_cp {
    background: rgba(186, 104, 255, 0.18);
    color: #c894ff;
}

.complaint-type-badge--application_kp {
    background: rgba(111, 191, 115, 0.16);
    color: #8fd892;
}

.complaint-type-badge--application_media {
    background: rgba(232, 106, 138, 0.16);
    color: #f08fa8;
}

.panel__head--nested {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.complaints-page .complaint-important {
    margin-top: 8px;
}

@media (max-width: 960px) {
    .complaint-hub--triple {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .complaint-hub--double {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .complaint-hub--triple .complaint-hub__item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 420px;
        justify-self: center;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .complaint-hub--triple {
        grid-template-columns: 1fr;
    }

    .complaint-hub--double {
        grid-template-columns: 1fr;
    }

    .complaint-hub--triple .complaint-hub__item:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: none;
    }

    .complaint-hub__card {
        grid-template-columns: 1fr;
    }

    .complaint-hub__card-icon {
        width: 40px;
        height: 40px;
    }
}

.complaint-closed-panel__inner {
    display: grid;
    gap: 8px;
}

.complaint-closed-panel__title {
    color: var(--white);
    font-size: 1rem;
}

.complaint-review-panel__inner {
    display: grid;
    gap: 8px;
}

.complaint-review-panel__title {
    color: #f0b06a;
    font-size: 1rem;
}

.forum-create {
    display: grid;
    gap: 24px;
}

.forum-create__picker {
    display: grid;
    gap: 8px;
    max-width: 560px;
}

.forum-create__picker-label {
    font-weight: 700;
}

.forum-picker {
    position: relative;
    max-width: 560px;
    z-index: 20;
}

.forum-picker__form {
    display: grid;
    gap: 0;
}

.forum-picker__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(111, 191, 115, 0.28);
    border-radius: 12px;
    background: rgba(6, 10, 8, 0.96);
    color: var(--white);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.forum-picker__trigger:hover,
.forum-picker.is-open .forum-picker__trigger {
    border-color: rgba(111, 191, 115, 0.45);
    background: rgba(10, 16, 12, 0.98);
    box-shadow: 0 0 0 3px rgba(111, 191, 115, 0.1);
}

.forum-picker__trigger:focus-visible {
    outline: none;
    border-color: rgba(111, 191, 115, 0.55);
    box-shadow: 0 0 0 3px rgba(111, 191, 115, 0.18);
}

.forum-picker__value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--white);
    font-weight: 600;
    line-height: 1.35;
}

.forum-picker__chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid rgba(255, 255, 255, 0.78);
    border-bottom: 2px solid rgba(255, 255, 255, 0.78);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.18s ease;
    flex-shrink: 0;
}

.forum-picker.is-open .forum-picker__chevron {
    transform: rotate(-135deg) translateY(2px);
}

.forum-picker__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    display: none;
    max-height: min(440px, 62vh);
    overflow: auto;
    padding: 10px;
    border: 1px solid rgba(111, 191, 115, 0.24);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(14, 20, 16, 0.99), rgba(8, 12, 10, 0.99));
    box-shadow:
        0 20px 44px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.forum-picker.is-open .forum-picker__menu {
    display: grid;
    gap: 6px;
}

.forum-picker__group + .forum-picker__group {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 4px;
    padding-top: 10px;
}

.forum-picker__group-title {
    margin: 0 0 4px;
    padding: 2px 10px 6px;
    color: #9fd89a;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
}

.forum-picker__option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 9px 12px 9px 22px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #f4f8f4;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease;
}

.forum-picker__option:hover,
.forum-picker__option:focus-visible {
    background: #8ec5f7;
    color: #1b3145;
    outline: none;
}

.forum-picker__option.is-active {
    background: #8ec5f7;
    color: #1b3145;
    font-weight: 700;
}

.forum-create__compose {
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.forum-create__locked {
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.forum-section-compose-note {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.88rem;
}

.forum-section-compose-note a {
    color: var(--spring-300);
}

.staff-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 28px;
}

.norm-submit__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.norm-submit__stat {
    min-width: 140px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: inherit;
}

.norm-submit__stat strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.1;
    color: var(--spring-300);
}

.norm-submit__stat span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
}

.norm-submit__stat--ok strong {
    color: var(--spring-300);
}

.norm-submit__stat--warn strong {
    color: #ffb347;
}

.norm-submit__stat--link:hover {
    border-color: rgba(111, 191, 115, 0.42);
    background: rgba(79, 139, 92, 0.14);
}

.norm-submit__progress {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.norm-submit__progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.norm-submit__progress-head strong {
    font-size: 1.35rem;
    color: var(--spring-300);
}

.norm-submit__progress-head span {
    color: var(--muted);
    font-size: 0.9rem;
}

.norm-submit__bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.norm-submit__bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--spring-400), var(--spring-300));
}

.norm-submit__hint,
.norm-submit__done {
    margin: 10px 0 0;
    font-size: 0.88rem;
}

.norm-submit__done {
    color: var(--spring-300);
}

.norm-submit__steps {
    margin: 10px 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.norm-submit__steps li + li {
    margin-top: 6px;
}

.norm-submit__meta {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.norm-submit__form .file-upload + .file-upload {
    margin-top: 14px;
}

.norm-table-page .panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.norm-table__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

.norm-table__date {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--muted);
    font-size: 0.82rem;
}

.norm-table__date input {
    min-height: var(--btn-height-sm);
    padding: 0 12px;
    border-radius: var(--btn-radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font: inherit;
}

.norm-table__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.norm-table__stat {
    min-width: 120px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.norm-table__stat strong {
    display: block;
    font-size: 1.25rem;
    color: var(--spring-300);
}

.norm-table__stat span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
}

.norm-table__stat--ok strong {
    color: #7fdca8;
}

.norm-table__stat--warn strong {
    color: #ffb86b;
}

.norm-table__wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.norm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.norm-table th,
.norm-table td {
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.norm-table th {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.18);
}

.norm-table__member a {
    color: var(--white);
    font-weight: 700;
}

.norm-table__display-name {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.8rem;
}

.norm-table__progress {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 700;
}

.norm-table__bar {
    width: 120px;
}

.norm-table__badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.norm-table__badge--ok {
    color: #7fdca8;
    background: rgba(127, 220, 168, 0.12);
}

.norm-table__badge--warn {
    color: #ffb86b;
    background: rgba(255, 184, 107, 0.12);
}

.norm-table tr.is-incomplete {
    background: rgba(255, 184, 107, 0.03);
}

.norm-table__empty {
    padding: 18px 14px;
}

.norm-table__view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.norm-table__view-tab {
    display: inline-flex;
    align-items: center;
    min-height: var(--btn-height-sm);
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--btn-radius);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.norm-table__view-tab.is-active {
    color: var(--white);
    border-color: rgba(127, 220, 168, 0.35);
    background: rgba(127, 220, 168, 0.12);
}

.norm-table__period-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
}

.norm-table__period-label {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.norm-table__progress-link,
.norm-table__detail-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

.norm-table__progress-link:hover .norm-table__progress {
    color: var(--spring-300);
}

.norm-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.norm-matrix th,
.norm-matrix td {
    padding: 8px 10px;
    border-top: 1px solid var(--line);
    text-align: center;
    vertical-align: middle;
}

.norm-matrix th {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.18);
    white-space: nowrap;
}

.norm-matrix__sticky {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 160px;
    text-align: left;
    background: rgba(12, 24, 18, 0.98);
}

.norm-matrix__cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 34px;
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}

.norm-matrix__cell--complete {
    background: rgba(127, 220, 168, 0.18);
    color: #7fdca8;
}

.norm-matrix__cell--partial {
    background: rgba(255, 184, 107, 0.16);
    color: #ffb86b;
}

.norm-matrix__cell--empty {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

.norm-table__badge--credited {
    color: #7fdca8;
    background: rgba(127, 220, 168, 0.12);
}

.norm-table__badge--pending {
    color: #ffb86b;
    background: rgba(255, 184, 107, 0.12);
}

.norm-table__badge--rejected {
    color: #ff8b8b;
    background: rgba(255, 139, 139, 0.12);
}

.norm-table__badge--revoked {
    color: #b8b8ff;
    background: rgba(184, 184, 255, 0.12);
}

.norm-table__badge--plugin {
    color: #8fd3ff;
    background: rgba(143, 211, 255, 0.12);
}

.norm-table__mc-missing {
    color: #ffb86b;
    font-size: 0.88rem;
}

.norm-table__mc-name {
    font-family: var(--font-mono, monospace);
    font-size: 0.92rem;
}


.norm-submit__meta--warn {
    color: #ffb86b;
}

.norm-submit__auto {
    margin-top: 18px;
}

.norm-submit__auto strong {
    display: block;
    margin-bottom: 8px;
}

.norm-submit__mc-form {
    margin-top: 14px;
    max-width: 420px;
}

.norm-submit__mc-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.admin-mc-name-form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 140px;
}

.admin-mc-name-form input[type="text"] {
    width: 7.5rem;
    min-height: var(--btn-height-sm);
    padding: 0 8px;
    border-radius: var(--btn-radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font: inherit;
    font-size: 0.88rem;
}

.admin-members-table__mc-name {
    min-width: 11rem;
}

.norm-day-card--revoked {
    opacity: 0.72;
}

.norm-day-card--revoked .norm-table__badge--revoked {
    border-color: rgba(255, 184, 107, 0.45);
}

.panel__body--nested {
    margin-top: 18px;
    padding-top: 0;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.norm-day-card__meta {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.norm-day-card__reason {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.norm-day-card__staff {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.norm-day-page .panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.norm-day-page__progress {
    margin-bottom: 0;
}

.norm-day-page__title {
    margin: 0 0 14px;
    font-size: 1.05rem;
}

.norm-day-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.norm-day-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.norm-day-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.norm-day-card__head time {
    color: var(--muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.norm-day-card__images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.norm-day-card__figure {
    margin: 0;
}

.norm-day-card__figure figcaption {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.norm-day-card__figure img {
    display: block;
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.25);
}

.norm-day-card__review {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.norm-day-card__reject {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.norm-day-card__reject label {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--muted);
    font-size: 0.82rem;
}

.norm-day-card__reject input {
    min-height: var(--btn-height-sm);
    padding: 0 12px;
    border-radius: var(--btn-radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font: inherit;
}

.staff-norms-banner .panel__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.staff-norms-banner__text {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.staff-norms-banner__text a {
    color: var(--spring-300);
}

.staff-norms-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.staff-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 22px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(61, 107, 73, 0.42), rgba(197, 111, 31, 0.18)),
        radial-gradient(circle at top right, rgba(111, 191, 115, 0.18), transparent 42%),
        var(--panel);
}

.staff-hero__kicker {
    margin: 0 0 8px;
    color: var(--spring-300);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.staff-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.1;
}

.staff-hero__lead {
    margin: 0;
    max-width: 620px;
    color: var(--muted);
    line-height: 1.55;
}

.staff-hero__count {
    margin: 16px 0 0;
    color: var(--spring-300);
    font-weight: 700;
}

.staff-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-self: center;
}

.staff-hero__stat {
    padding: 16px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(15, 26, 18, 0.42);
    text-align: center;
}

.staff-hero__stat strong {
    display: block;
    margin-bottom: 6px;
    color: var(--orange-400);
    font-size: 1.45rem;
    line-height: 1;
}

.staff-hero__stat span {
    color: var(--muted);
    font-size: 0.82rem;
}

.staff-groups {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.staff-loading,
.staff-empty {
    padding: 28px;
    text-align: center;
    color: var(--muted);
}

.staff-group {
    overflow: visible;
}

.staff-group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(90deg, rgba(79, 139, 92, 0.18), rgba(232, 146, 58, 0.1));
    border-bottom: 1px solid var(--line);
}

.staff-group__head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.staff-group__count {
    min-width: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(111, 191, 115, 0.14);
    color: var(--spring-300);
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
}

.staff-group--media .staff-group__head {
    background: linear-gradient(90deg, rgba(186, 104, 255, 0.2), rgba(255, 0, 0, 0.08));
}

.staff-group--media .staff-group__head h2 {
    color: #e6ccff;
}

.staff-group--media .staff-group__count {
    background: rgba(186, 104, 255, 0.18);
    color: #e6ccff;
}

.staff-group--helpers .staff-group__head {
    background: linear-gradient(90deg, rgba(255, 184, 92, 0.22), rgba(111, 191, 115, 0.1));
}

.staff-group--helpers .staff-group__head h2 {
    color: #ffdca8;
}

.staff-group--helpers .staff-group__count {
    background: rgba(255, 184, 92, 0.2);
    color: #ffdca8;
}

.staff-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 2px 2px;
}

.staff-filter {
    border: 1px solid rgba(186, 104, 255, 0.28);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(15, 26, 18, 0.72);
    color: var(--text-muted);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.staff-filter:hover {
    border-color: rgba(186, 104, 255, 0.5);
    color: #f3e8ff;
}

.staff-filter.is-active {
    background: linear-gradient(90deg, rgba(186, 104, 255, 0.28), rgba(255, 0, 0, 0.12));
    border-color: rgba(186, 104, 255, 0.62);
    color: #f3e8ff;
}

.staff-filter[data-staff-filter="youtube"].is-active {
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.24), rgba(186, 104, 255, 0.12));
    border-color: rgba(255, 80, 80, 0.55);
}

.staff-filter[data-staff-filter="tiktok"].is-active {
    background: linear-gradient(90deg, rgba(115, 44, 255, 0.28), rgba(186, 104, 255, 0.12));
    border-color: rgba(115, 44, 255, 0.55);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 18px;
}

.staff-card {
    position: relative;
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(29, 50, 36, 0.92), rgba(15, 26, 18, 0.96));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.staff-card:hover {
    transform: translateY(-3px);
    border-color: rgba(111, 191, 115, 0.34);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.staff-card__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.staff-card__accent {
    height: 4px;
}

.staff-card__top {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px 18px 0;
}

.staff-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
}

.staff-card__identity {
    min-width: 0;
}

.staff-card__role {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--role-color, var(--spring-400)) 18%, transparent);
    color: var(--role-color, var(--spring-300));
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.staff-card__name {
    margin: 10px 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.08rem;
    line-height: 1.2;
}

.staff-card__handle {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 0.88rem;
}

.staff-sync-notice {
    margin-bottom: 16px;
    border-left: 3px solid #e8a838;
    color: var(--muted);
    font-size: 0.92rem;
}

.staff-sync-notice p {
    margin: 0;
}

.staff-card__tier {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 2px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.staff-card__tier--veteran {
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold-400);
}

.staff-card__tier--experienced {
    background: rgba(111, 191, 115, 0.16);
    color: var(--spring-300);
}

.staff-card__tier--active {
    background: rgba(142, 197, 255, 0.14);
    color: #8ec5ff;
}

.staff-card__tier--new {
    background: rgba(232, 146, 58, 0.14);
    color: var(--orange-400);
}

.staff-card__tier--idle {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.staff-card__roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px 0;
}

.staff-card__role-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid color-mix(in srgb, var(--role-color, var(--spring-400)) 34%, transparent);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--role-color, var(--spring-300));
    font-size: 0.78rem;
    font-weight: 600;
}

.staff-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 16px 18px 0;
}

.staff-card__stat {
    padding: 12px 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.staff-card__stat strong {
    display: block;
    margin-bottom: 4px;
    color: var(--white);
    font-size: 1.08rem;
    line-height: 1;
}

.staff-card__stat span {
    color: var(--muted);
    font-size: 0.76rem;
}

.staff-card__stat--reputation {
    border-color: rgba(232, 146, 58, 0.28);
    background: rgba(232, 146, 58, 0.08);
}

.staff-card__stat--reputation strong {
    color: var(--orange-400);
}

.staff-card__stat--likes {
    border-color: rgba(111, 191, 115, 0.28);
    background: rgba(111, 191, 115, 0.08);
}

.staff-card__stat--likes strong {
    color: var(--spring-300);
}

.staff-card__stat--dislikes {
    border-color: rgba(255, 92, 92, 0.28);
    background: rgba(255, 92, 92, 0.08);
}

.staff-card__stat--dislikes strong {
    color: #ff8a8a;
}

.staff-card__tier--negative {
    background: rgba(255, 92, 92, 0.14);
    color: #ff8a8a;
}

.profile-reputation {
    margin-bottom: 18px;
}

.member-reputation-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
}

.member-reputation-panel__score {
    min-width: 88px;
    padding: 14px 16px;
    border: 1px solid rgba(232, 146, 58, 0.28);
    border-radius: var(--radius-sm);
    background: rgba(232, 146, 58, 0.08);
    text-align: center;
}

.member-reputation-panel__score strong {
    display: block;
    color: var(--orange-400);
    font-size: 1.6rem;
    line-height: 1;
}

.member-reputation-panel__score span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.82rem;
}

.member-reputation-panel__counts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.member-reputation-panel__vote {
    margin: 0;
}

.reputation-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.reputation-vote-btn:not(.reputation-vote-btn--static):hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.reputation-vote-btn:not(.reputation-vote-btn--static):active {
    transform: translateY(0);
}

.reputation-vote-btn--up.is-active {
    border-color: rgba(111, 191, 115, 0.45);
    background: rgba(111, 191, 115, 0.14);
}

.reputation-vote-btn--down.is-active {
    border-color: rgba(255, 120, 120, 0.4);
    background: rgba(255, 92, 92, 0.12);
}

.reputation-vote-btn--static {
    cursor: default;
}

.reputation-vote-btn__icon {
    font-size: 1.05rem;
    line-height: 1;
}

.reputation-vote-btn--up .reputation-vote-btn__count {
    color: var(--spring-300);
    font-weight: 700;
}

.reputation-vote-btn--down .reputation-vote-btn__count {
    color: var(--muted);
    font-weight: 700;
}

.reputation-vote-btn--up.is-active .reputation-vote-btn__count {
    color: #95d38f;
}

.reputation-vote-btn--down.is-active .reputation-vote-btn__count {
    color: #ff9a9a;
}

.member-reputation-panel__actions {
    margin: 0;
}

.member-reputation-panel__actions .btn.is-active {
    border-color: rgba(111, 191, 115, 0.45);
    background: rgba(111, 191, 115, 0.14);
}

.member-reputation-panel__hint,
.member-reputation-panel__note {
    width: 100%;
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.profile-media-links {
    margin-top: 0;
}

.profile-media-links__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.profile-media-links__empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.profile-media-links__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.profile-media-links__btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.profile-media-links__btn--youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-color: rgba(255, 255, 255, 0.12);
}

.profile-media-links__btn--tiktok {
    background: linear-gradient(135deg, #732cff, #fe2c55);
    border-color: rgba(255, 255, 255, 0.12);
}

.profile-media-links__form {
    display: grid;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.profile-media-links__form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.88rem;
}

.profile-media-links__form input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.22);
    color: var(--white);
}

@media (max-width: 640px) {
    .profile-media-links__list {
        flex-direction: column;
    }

    .profile-media-links__btn {
        width: 100%;
    }
}

.staff-card__meta {
    margin: 14px 18px 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.staff-card__cta {
    display: block;
    margin: 16px 18px 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--spring-300);
    font-size: 0.88rem;
    font-weight: 700;
}

.staff-card__cta--muted {
    color: var(--muted);
    font-weight: 500;
}

.staff-card__media {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 18px 16px;
}

.staff-card__media-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.staff-card__media-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.staff-card__media-btn--youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-color: rgba(255, 255, 255, 0.12);
}

.staff-card__media-btn--tiktok {
    background: linear-gradient(135deg, #732cff, #fe2c55);
    border-color: rgba(255, 255, 255, 0.12);
}

.staff-card__link:hover .staff-card__cta {
    color: var(--orange-400);
}

@media (max-width: 900px) {
    .staff-hero {
        grid-template-columns: 1fr;
    }

    .staff-hero__stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .staff-hero {
        padding: 22px 18px;
    }

    .staff-hero__stats,
    .staff-grid {
        grid-template-columns: 1fr;
    }

    .staff-card__stats {
        grid-template-columns: 1fr;
    }
}
