/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* =========================================================
   BODY
========================================================= */

body {
    min-height: 100vh;

    background:
        linear-gradient(
            rgba(12, 15, 22, 0.64),
            rgba(12, 15, 22, 0.9)
        ),
        url("../img/image.png") center center / cover fixed no-repeat;

    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================================
   TOP HEADER
========================================================= */

.top-header {
    background: rgba(31, 38, 50, 0.98);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    height: 74px;
    position: relative;
    z-index: 2000;
}

.top-header-inner {
    max-width: 1500px;
    height: 74px;
    margin: 0 auto;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.top-logo {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
    min-width: 260px;
}

.top-logo img {
    height: 44px;
    width: auto;
    display: block;
}

.top-logo span {
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    white-space: nowrap;
}

/* =========================================================
   SEARCH
========================================================= */

.site-subnav {
    background: rgba(8, 12, 18, 0.96);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 1000;
}

.site-subnav-inner {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    max-width: 1500px;
    min-height: 54px;
    margin: 0 auto;
    padding: 0 18px;
}

.forum-index-link {
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 3px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    padding: 8px 12px;
    text-transform: uppercase;
}

.site-search input {
    background: rgba(10, 14, 20, 0.76);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 3px;
    color: #f8fafc;
    height: 30px;
    min-width: 210px;
    padding: 0 12px;
}

.top-header .site-search {
    flex: 0 1 240px;
}

.top-header .site-search input {
    min-width: 0;
    width: 100%;
}

/* =========================================================
   USER NAV
========================================================= */

.top-user-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.top-user-nav a {
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.top-signup {
    background: linear-gradient(to bottom, #4d9cff, #3f8edb);
    padding: 10px 13px;
    border-radius: 4px;
}

/* =========================================================
   MAIN NAVBAR
========================================================= */

.main-navbar {
    display: flex;
    align-items: center;
    align-self: stretch;
    flex: 1;
    justify-content: center;
    gap: 0;
}

.main-navbar a {
    align-items: center;
    border-left: 1px solid rgba(255,255,255,0.03);
    color: #f8fafc;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    height: 74px;
    padding: 0 22px;
    position: relative;
}

.main-navbar a:last-child {
    border-right: 1px solid rgba(255,255,255,0.03);
}

.main-navbar a:hover,
.main-navbar a.active {
    background: rgba(10, 14, 20, 0.34);
}

.main-navbar a.active::before {
    content: '';
    position: absolute;

    left: 0;
    right: 0;
    top: 0;

    height: 3px;

    background: #4d9cff;
}

/* =========================================================
   PAGE CONTAINER
========================================================= */

.page-container {
    max-width: 1500px;
    width: 96%;
    margin: 0 auto;
    padding: 22px 18px 38px;
}

.auth-page-wrap {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 74px);
    padding: 24px 18px;
}

.page-container:has(.auth-page-wrap) {
    padding: 0;
}

/* =========================================================
   FORUM LAYOUT
========================================================= */

.forum-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
}

.forum-index-layout {
    display: block;
}

.main-column {
    min-width: 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.forum-hero {
    align-items: center;
    background:
        linear-gradient(120deg, rgba(18, 25, 36, 0.92), rgba(25, 42, 58, 0.78)),
        url("../img/image.png") center center / cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 210px;
    margin-bottom: 18px;
    min-height: 210px;
    overflow: hidden;
    padding: 24px 26px;
    position: relative;
}

.forum-hero::before {
    background: linear-gradient(90deg, rgba(229, 75, 75, 0.92), rgba(244, 166, 63, 0.8));
    content: '';
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.forum-hero-copy {
    align-self: center;
    max-width: 650px;
}

.forum-kicker,
.faction-forum-label,
.forum-row-eyebrow {
    color: #f4a63f;
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.forum-hero p {
    color: #d9e2ee;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    margin: 12px 0 0;
    max-width: 650px;
}

.forum-hero p {
    color: #d9e2ee;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    margin: 14px 0 0;
    max-width: 590px;
}

.forum-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.forum-hero-button {
    align-items: center;
    border-radius: 4px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    text-transform: uppercase;
}

.forum-hero-button.primary {
    background: #e54b4b;
    color: #ffffff;
}

.forum-hero-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.forum-hero-stats {
    align-self: center;
    background: rgba(10, 14, 20, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.forum-hero-stats div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
}

.forum-hero-stats div:last-child {
    border-bottom: none;
}

.forum-hero-stats strong,
.forum-hero-stats span {
    display: block;
}

.forum-hero-stats strong {
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
}

.forum-hero-stats span {
    color: #b8c4d4;
    font-size: 11px;
    margin-top: 3px;
    text-transform: uppercase;
}

/* =========================================================
   PAGE TITLES / BREADCRUMBS
========================================================= */

.forum-page-title {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 900;
}

.breadcrumb {
    margin-bottom: 16px;
    color: #d4deea;
    font-size: 12px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

/* =========================================================
   PANELS
========================================================= */

.department-panel {
    margin-bottom: 24px;
}

.department-box,
.sidebar-card,
.topics-panel {
    background: rgba(24, 31, 42, 0.94);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    margin-bottom: 24px;
}

.department-title,
.sidebar-title,
.panel-title {
    align-items: center;
    background: rgba(37, 47, 62, 0.98);
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;

    border-bottom: 1px solid rgba(255,255,255,0.06);

    font-size: 13px;
    font-weight: 900;
}

.panel-title a {
    color: #f4a63f;
    font-size: 11px;
    text-transform: uppercase;
}

.panel-title .nav-button.inline {
    color: #ffffff;
    font-size: 11px;
    min-height: 0;
    padding: 8px 12px;
}

/* =========================================================
   FORUM ROWS
========================================================= */

.department-row {
    display: grid;
    grid-template-columns: 48px 1fr 90px 240px;

    gap: 14px;

    align-items: center;

    min-height: 78px;

    padding: 14px 16px;

    border-bottom: 1px solid rgba(255,255,255,0.06);

    background: rgba(36, 50, 69, 0.84);
}

.department-row:hover {
    background: rgba(50, 68, 91, 0.94);
}

.department-row:last-child {
    border-bottom: none;
}

.forum-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;

    color: #6b8db4;
}

.forum-info h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 900;
}

.forum-info p {
    margin: 5px 0 0;
    color: #d4deea;
    font-size: 12px;
    font-weight: 700;
}

.forum-post-count {
    text-align: right;
}

.forum-post-count strong {
    display: block;
    font-size: 18px;
    font-weight: 400;
}

.forum-post-count span {
    font-size: 11px;
}

.forum-latest {
    align-items: center;
    display: flex;
    gap: 10px;
    font-size: 12px;
    line-height: 1.4;
}

/* =========================================================
   TOPICS PANEL
========================================================= */

.topics-panel .topic-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 180px;

    gap: 18px;

    align-items: center;

    min-height: 76px;

    padding: 14px 16px;

    border-bottom: 1px solid rgba(255,255,255,0.06);

    background: rgba(30, 39, 52, 0.86);
}

.topics-panel .topic-row:hover {
    background: rgba(42, 54, 70, 0.96);
}

.topics-panel .topic-row:last-child {
    border-bottom: none;
}

.topics-panel .topic-main {
    min-width: 0;
}

.topics-panel .topic-main strong {
    display: block;
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
}

.topics-panel .topic-main span {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #d4deea;
    line-height: 1.35;
}

.topics-panel .topic-stats {
    text-align: right;
    white-space: nowrap;
}

.topics-panel .topic-stats strong,
.topics-panel .topic-stats span {
    display: block;
    font-size: 11px;
    line-height: 1.35;
}

.topics-panel .topic-latest {
    align-items: center;
    display: flex;
    gap: 10px;
    white-space: normal;
    font-size: 12px;
    line-height: 1.35;
}

/* =========================================================
   FORUM DESCRIPTION / ACTIONS
========================================================= */

.forum-description-block {
    padding: 15px 16px;
    background: rgba(36, 50, 69, 0.84);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
}

.forum-actions {
    padding: 14px 16px;
    background: rgba(36, 50, 69, 0.84);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar-button {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 48px;

    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);

    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.discord {
    background: #5865f2;
}

.steam {
    background: #101318;
}

.support {
    background: #3fa73f;
}

.rich-row,
.small-topic {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rich-row:last-child,
.small-topic:last-child {
    border-bottom: none;
}

.rich-row strong,
.small-topic strong {
    display: block;
    font-size: 12px;
}

.rich-row span,
.small-topic span {
    display: block;
    margin-top: 3px;
    color: #b8c4d4;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

.small-topic:hover {
    background: rgba(255, 255, 255, 0.04);
}

.server-card {
    margin-bottom: 0;
}

/* =========================================================
   AUTH / FORMS
========================================================= */

.auth-card,
.profile-card {
    max-width: 760px;
    margin: 0 auto 24px;
    background: rgba(31, 43, 59, 0.96);
    border-radius: 4px;
    overflow: hidden;
    padding: 24px;
}

.auth-card h1,
.profile-card h1 {
    margin-top: 0;
}

.auth-card label {
    display: block;
    margin: 16px 0 6px;
    font-weight: 900;
}

.auth-card input,
.auth-card textarea {
    width: 100%;
    border: 0;
    border-radius: 4px;
    padding: 12px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
}

.auth-card textarea {
    min-height: 180px;
    resize: vertical;
}

.auth-card button {
    margin-top: 18px;
    width: 100%;
    border: 0;
    border-radius: 4px;
    padding: 13px;
    background: linear-gradient(to bottom, #4d9cff, #3f8edb);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

/* =========================================================
   IPS-STYLE PROFILE PAGE
========================================================= */

.profile-cover {
    position: relative;
    min-height: 240px;
    background:
        linear-gradient(rgba(20, 30, 45, 0.35), rgba(20, 30, 45, 0.85)),
        rgba(31, 43, 59, 0.95);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.profile-cover > img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.profile-cover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
}

.profile-cover-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar.large {
    width: 112px;
    height: 112px;
    border: 0;
    box-shadow: none;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-main-info h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 900;
}

.profile-username {
    margin-top: 4px;
    color: #d4deea;
    font-size: 13px;
}

.profile-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.profile-role-pill {
    background: rgba(63, 142, 219, 0.95);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
}

.profile-sidebar,
.profile-content {
    min-width: 0;
}

.profile-widget {
    background: rgba(31, 43, 59, 0.96);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.profile-widget-title {
    background: rgba(45, 63, 87, 0.98);
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 900;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.profile-widget-body {
    padding: 16px;
    color: #d4deea;
    font-size: 13px;
    line-height: 1.6;
}

.profile-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.profile-stat-row:last-child {
    border-bottom: none;
}

.profile-stat-row span {
    color: #d4deea;
    font-size: 12px;
}

.profile-stat-row strong {
    color: #ffffff;
    font-size: 12px;
    text-align: right;
}

.profile-list-row {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(36, 50, 69, 0.55);
}

.profile-list-row:hover {
    background: rgba(50, 68, 91, 0.85);
}

.profile-list-row:last-child {
    border-bottom: none;
}

.profile-list-row strong {
    display: block;
    font-size: 13px;
    color: #ffffff;
}

.profile-list-row span {
    display: block;
    margin-top: 4px;
    color: #d4deea;
    font-size: 11px;
}

.profile-empty {
    padding: 16px;
    color: #d4deea;
    font-size: 13px;
}

/* Responsive profile */
@media (max-width: 900px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-cover-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-main-info h1 {
        font-size: 24px;
    }

    .profile-avatar.large {
        width: 90px;
        height: 90px;
    }
}

/* =========================================================
   USER DROPDOWN NAV
========================================================= */

.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 74px;
    z-index: 5000;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 4px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;

    cursor: pointer;

    height: 44px;
    padding: 0 12px 0 8px;
}

.user-mini-avatar {
    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: linear-gradient(
        to bottom,
        #5aa7ff,
        #3f8edb
    );

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    font-size: 12px;
    font-weight: 900;

    color: #ffffff;
}

.user-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown-menu {
    position: absolute;

    top: calc(100% - 8px);
    right: 0;

    min-width: 190px;

    background: #1f2b3b;

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;

    overflow: hidden;

    box-shadow: 0 10px 28px rgba(0,0,0,0.35);

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);

    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        visibility 0.15s ease;

    z-index: 99999;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: block;

    padding: 13px 14px;

    color: #d4deea;

    font-size: 12px;
    font-weight: 900;

    text-transform: none;

    transition: background 0.15s ease;
}

.user-dropdown-menu a:hover {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
}

/* =========================================================
   PROFILE SETTINGS
========================================================= */

.settings-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

.settings-sidebar {
    background: rgba(31, 43, 59, 0.96);
    border-radius: 4px;
    overflow: hidden;
    height: fit-content;
}

.settings-title {
    background: rgba(45, 63, 87, 0.98);
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 900;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.settings-link {
    display: block;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #d4deea;
    font-size: 12px;
    font-weight: 900;
}

.settings-link:hover,
.settings-link.active {
    background: rgba(50, 68, 91, 0.94);
    color: #ffffff;
}

.settings-panel {
    background: rgba(31, 43, 59, 0.96);
    border-radius: 4px;
    overflow: hidden;
}

.settings-panel-header {
    background: rgba(45, 63, 87, 0.98);
    padding: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.settings-panel-header h1 {
    margin: 0;
    font-size: 22px;
}

.settings-panel-header p {
    margin: 6px 0 0;
    color: #d4deea;
}

.settings-panel form {
    padding: 20px;
}

.settings-field {
    margin-bottom: 18px;
}

.settings-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 900;
    font-size: 12px;
}

.settings-field input,
.settings-field textarea {
    width: 100%;
    background: #ffffff;
    color: #111827;
    border: 0;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
}

.settings-field textarea {
    min-height: 130px;
    resize: vertical;
}

.settings-submit {
    background: linear-gradient(to bottom, #4d9cff, #3f8edb);
    color: #ffffff;
    border: 0;
    border-radius: 4px;
    padding: 13px 18px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 900px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   THREAD VIEW
========================================================= */

.thread-post {
    display: grid;
    grid-template-columns: 180px 1fr;

    background: rgba(36, 50, 69, 0.84);

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.thread-post:last-child {
    border-bottom: none;
}

.thread-author {
    padding: 18px;

    background: rgba(24, 34, 48, 0.6);

    border-right: 1px solid rgba(255,255,255,0.08);
}

.thread-author a {
    display: block;
    margin-top: 10px;
    font-weight: 900;
}

.thread-author span {
    display: block;
    margin-top: 6px;
    color: #d4deea;
    font-size: 11px;
}

.thread-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
}

.thread-body p {
    margin-top: 0;
}

/* =========================================================
   BUTTON HELPERS
========================================================= */

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(to bottom, #4d9cff, #3f8edb);

    color: #ffffff !important;

    padding: 10px 13px;

    border-radius: 4px;

    font-size: 12px;
    font-weight: 900;

    text-transform: uppercase;
}

.nav-button:hover {
    background: linear-gradient(to bottom, #63adff, #4b98e6);
}

/* =========================================================
   ACP / ADMIN PANEL
========================================================= */

.acp-body {
    margin: 0;
    background: #e9edf2;
    color: #2c3e50;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
}

.acp-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.acp-sidebar {
    background: #243447;
    color: white;
    border-right: 1px solid rgba(0,0,0,0.2);
}

.acp-logo {
    height: 74px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    background: #1d2b3a;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.acp-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    background: linear-gradient(to bottom, #5aa7ff, #3f8edb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.acp-logo strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.acp-logo span {
    display: block;
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}

.acp-menu {
    padding: 10px 0;
}

.acp-menu a {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 20px;
    color: #d7e0ea;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border-left: 3px solid transparent;
}

.acp-menu a:hover {
    background: rgba(255,255,255,0.04);
}

.acp-menu a.active {
    background: rgba(255,255,255,0.06);
    border-left-color: #5aa7ff;
    color: #fff;
}

.acp-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.acp-topbar {
    height: 74px;
    background: white;
    border-bottom: 1px solid #d7dee7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.acp-topbar h1 {
    margin: 0;
    color: #1f2937;
    font-size: 26px;
    font-weight: 600;
}

.acp-topbar p {
    margin: 5px 0 0;
    color: #7b8794;
    font-size: 13px;
}

.acp-view-site {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 36px;

    padding: 0 14px;

    background: linear-gradient(to bottom, #ffffff, #f1f3f5);

    border: 1px solid #cfd6dd;
    border-radius: 4px;

    color: #34495e;

    font-size: 12px;
    font-weight: 600;
}

.acp-content {
    padding: 24px 28px;
}

.ips-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 18px;
}

.ips-page-head h2 {
    margin: 0;

    font-size: 20px;
    color: #243447;
    font-weight: 600;
}

.ips-page-head p {
    margin: 4px 0 0;

    color: #7b8794;

    font-size: 13px;
}

.ips-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 36px;

    padding: 0 14px;

    border-radius: 4px;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    border: 1px solid transparent;

    cursor: pointer;
}

.ips-button.primary {
    background: linear-gradient(to bottom, #4d9cff, #3f8edb);
    border-color: #3b7dc4;
    color: white;
}

.ips-button.secondary {
    background: linear-gradient(to bottom, #ffffff, #f1f3f5);
    border-color: #cfd6dd;
    color: #34495e;
}

.ips-card {
    background: white;
    border: 1px solid #d8dde6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 18px;
}

.ips-card-title {
    background: linear-gradient(to bottom, #f9fafb, #eef2f6);
    border-bottom: 1px solid #d8dde6;
    padding: 13px 16px;
    color: #243447;
    font-size: 13px;
    font-weight: 600;
}

.ips-table {
    width: 100%;
    border-collapse: collapse;
}

.ips-table th {
    background: #f7f9fb;
    color: #7b8794;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #d8dde6;
}

.ips-table td {
    padding: 14px;
    border-bottom: 1px solid #e8edf2;
    vertical-align: middle;
    color: #2c3e50;
    background: white;
}

.ips-table tr:hover td {
    background: #f8fafc;
}

.ips-node-title {
    font-weight: 700;
    color: #243447;
}

.ips-node-meta {
    margin-top: 3px;
    font-size: 11px;
    color: #7b8794;
}

.ips-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 24px;

    padding: 0 9px;

    border-radius: 999px;

    background: #eef2f6;

    color: #526070;

    font-size: 11px;
    font-weight: 700;

    margin-right: 4px;
}

.ips-pill.green {
    background: #e8f7ed;
    color: #20784d;
}

.ips-pill.gold {
    background: #fff5d8;
    color: #9a6a00;
}

.ips-pill.red {
    background: #fde8e8;
    color: #b42323;
}

.ips-actions a {
    color: #3f8edb;
    font-size: 12px;
    font-weight: 700;
}

.ips-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 18px;

    padding: 18px;
}

.ips-field.full {
    grid-column: 1 / -1;
}

.ips-field label {
    display: block;

    margin-bottom: 7px;

    color: #243447;

    font-size: 12px;
    font-weight: 700;
}

.ips-field input,
.ips-field textarea,
.ips-field select {
    width: 100%;

    border: 1px solid #cfd6dd;

    background: white;

    border-radius: 4px;

    padding: 10px 11px;

    color: #2c3e50;

    font-size: 13px;
}

.ips-field textarea {
    min-height: 120px;
    resize: vertical;
}

.ips-checks {
    display: flex;
    gap: 12px;
    padding: 18px;
}

.ips-checks label {
    display: flex;
    align-items: center;
    gap: 7px;

    background: #f5f7fa;

    border: 1px solid #d8dde6;

    padding: 10px 12px;

    border-radius: 4px;

    color: #34495e;

    font-size: 12px;
    font-weight: 700;
}

.ips-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.role-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-actions form {
    margin: 0;
}

.role-actions button {
    background: transparent;
    border: 0;
    color: #b42323;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
}

.role-hierarchy-reference {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    padding: 18px;
}

.role-hierarchy-reference div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f5f7fa;
    border: 1px solid #d8dde6;
    border-radius: 4px;
    color: #243447;
    padding: 10px 12px;
}

.role-hierarchy-reference span {
    color: #7b8794;
    font-size: 12px;
    font-weight: 700;
}

.role-permission-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    padding: 18px;
}

.role-permission-group {
    background: #f8fafc;
    border: 1px solid #d8dde6;
    border-radius: 4px;
    overflow: hidden;
}

.role-permission-group h3 {
    margin: 0;
    background: #eef2f6;
    border-bottom: 1px solid #d8dde6;
    color: #243447;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 14px;
}

.role-permission-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #e8edf2;
    color: #34495e;
    font-size: 12px;
    font-weight: 700;
}

.role-permission-group label:last-child {
    border-bottom: none;
}

.role-permission-group input {
    margin-top: 2px;
}

.role-permission-group strong,
.role-permission-group em {
    display: block;
}

.role-permission-group em {
    margin-top: 3px;
    color: #7b8794;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
}

.department-inline-form,
.department-rank-create,
.department-rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    align-items: end;
    padding: 18px;
}

.department-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #34495e;
    font-size: 12px;
    font-weight: 700;
    min-height: 36px;
}

.department-rank-editor {
    border-top: 1px solid #e8edf2;
    padding: 18px;
}

.department-rank-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.department-rank-head strong,
.department-rank-columns h3 {
    color: #243447;
}

.department-rank-head span {
    display: block;
    margin-top: 4px;
    color: #7b8794;
    font-size: 12px;
}

.department-rank-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 16px;
}

.department-member-add {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.department-member-add select,
.department-forum-access select,
.department-public-add select {
    width: 100%;
    border: 1px solid #cfd6dd;
    border-radius: 4px;
    color: #2c3e50;
    padding: 9px 10px;
}

.department-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e8edf2;
    color: #34495e;
    padding: 10px 0;
}

.department-member-row form,
.department-delete-form,
.profile-stat-row form {
    margin: 0;
}

.department-member-row button,
.department-delete-form button,
.department-public-remove {
    background: transparent;
    border: 0;
    color: #b42323;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
}

.department-forum-access {
    display: grid;
    gap: 9px;
}

.department-forum-access label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #34495e;
}

.department-forum-access strong,
.department-forum-access em {
    display: block;
}

.department-forum-access em {
    color: #7b8794;
    font-size: 11px;
    font-style: normal;
}

.department-delete-form {
    margin-top: 14px;
}

.acp-empty.compact {
    padding: 10px 0;
    border-bottom: 0;
}

.department-manager-page {
    display: grid;
    gap: 18px;
}

.department-public-add {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.department-public-add button {
    background: linear-gradient(to bottom, #4d9cff, #3f8edb);
    color: #ffffff;
    border: 0;
    border-radius: 4px;
    padding: 0 14px;
    font-weight: 900;
    cursor: pointer;
}

.acp-collapsible {
    margin-bottom: 18px;
}

.acp-collapsible summary {
    background: white;
    border: 1px solid #d8dde6;
    border-radius: 4px;
    color: #243447;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 13px 16px;
}

.department-create-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 12px;
}

.department-acp-tabs > input {
    display: none;
}

.department-tab-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.department-tab-nav label {
    background: #eef2f6;
    border: 1px solid #d8dde6;
    border-radius: 4px;
    color: #526070;
    cursor: pointer;
    display: block;
    padding: 13px 14px;
}

.department-tab-nav strong,
.department-tab-nav span {
    display: block;
}

.department-tab-nav span {
    color: #7b8794;
    font-size: 12px;
    margin-top: 4px;
}

.department-tab-panel {
    display: none;
    background: white;
    border: 1px solid #d8dde6;
    border-radius: 4px;
    overflow: hidden;
}

.department-dashboard-head {
    background: linear-gradient(to bottom, #f9fafb, #eef2f6);
    border-bottom: 1px solid #d8dde6;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
}

.department-dashboard-head h3 {
    color: #243447;
    font-size: 20px;
    margin: 0;
}

.department-dashboard-head p {
    color: #7b8794;
    margin: 5px 0 0;
}

.department-rank-list {
    display: grid;
}

.department-rank-compact {
    border-bottom: 1px solid #e8edf2;
}

.department-rank-compact:last-child {
    border-bottom: none;
}

.department-rank-compact summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(180px, 1fr) auto;
    list-style: none;
    padding: 14px 18px;
}

.department-rank-compact summary::-webkit-details-marker {
    display: none;
}

.department-rank-compact summary:hover {
    background: #f8fafc;
}

.department-rank-compact summary strong,
.department-rank-compact summary em {
    display: block;
}

.department-rank-compact summary strong {
    color: #243447;
    font-size: 14px;
}

.department-rank-compact summary em {
    color: #7b8794;
    font-size: 11px;
    font-style: normal;
    margin-top: 3px;
}

.department-rank-metrics {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.department-rank-metrics b,
.department-rank-metrics i {
    background: #eef2f6;
    border-radius: 999px;
    color: #526070;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    padding: 5px 8px;
}

.department-rank-metrics i {
    background: #e8f7ed;
    color: #20784d;
}

.department-rank-detail {
    background: #fbfcfe;
    border-top: 1px solid #e8edf2;
    padding: 0 18px 18px;
}

.department-rank-columns.compact {
    margin-top: 0;
}

/* Faction forum index */
.faction-forum-section {
    margin-bottom: 26px;
}

.faction-forum-head {
    align-items: center;
    background: rgba(24, 31, 42, 0.92);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px 6px 0 0;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 20px;
}

.faction-forum-head h2 {
    color: #ffffff;
    font-size: 22px;
    line-height: 1.15;
    margin: 0;
}

.faction-forum-head p {
    color: #b8c4d4;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    max-width: 360px;
    text-align: right;
}

.faction-forum-card {
    background: rgba(24, 31, 42, 0.94);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0 0 6px 6px;
    border-top: 0;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.faction-forum-title {
    align-items: center;
    background: rgba(37, 47, 62, 0.98);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
    display: flex;
    font-size: 14px;
    font-weight: 900;
    justify-content: space-between;
    padding: 15px 18px;
}

.faction-forum-title span:last-child {
    color: #9eabbc;
    font-size: 11px;
    text-transform: uppercase;
}

.faction-forum-row {
    align-items: center;
    background: rgba(28, 36, 48, 0.88);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: grid;
    gap: 18px;
    grid-template-columns: 48px minmax(0, 1fr) 86px 240px;
    min-height: 88px;
    padding: 17px 18px;
    transition: background 0.16s ease, transform 0.16s ease;
}

.faction-forum-row:hover {
    background: rgba(40, 52, 68, 0.98);
    transform: translateY(-1px);
}

.faction-forum-row:last-child {
    border-bottom: none;
}

.faction-forum-icon {
    align-items: center;
    background: linear-gradient(145deg, #e54b4b, #f4a63f);
    border-radius: 6px;
    color: #ffffff;
    display: flex;
    font-size: 12px;
    font-weight: 900;
    height: 40px;
    justify-content: center;
    text-align: center;
    width: 40px;
}

.faction-forum-main strong {
    color: #ffffff;
    display: block;
    font-size: 15px;
    line-height: 1.25;
}

.faction-forum-main span {
    color: #b8c4d4;
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 5px;
}

.forum-child-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.forum-child-list em {
    color: #ffffff;
    font-size: 12px;
    font-style: normal;
}

.forum-child-list em::before {
    color: #9fb7d1;
    content: '•';
    margin-right: 6px;
}

.faction-forum-main .forum-row-eyebrow {
    color: #f4a63f;
    font-size: 10px;
    margin-bottom: 5px;
    margin-top: 0;
}

.faction-forum-count {
    text-align: right;
}

.faction-forum-count strong,
.faction-forum-count span {
    display: block;
}

.faction-forum-count strong {
    font-size: 20px;
}

.faction-forum-count span {
    color: #9eabbc;
    font-size: 11px;
    text-transform: uppercase;
}

.faction-forum-latest {
    align-items: center;
    color: #b8c4d4;
    display: flex;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}

.latest-stats {
    color: #ffffff;
    flex: 0 0 72px;
    font-size: 11px;
    line-height: 1.35;
    text-align: right;
}

.latest-stats strong,
.latest-stats span {
    display: block;
}

.latest-copy {
    min-width: 0;
}

.faction-forum-latest strong {
    color: #ffffff;
    display: block;
}

.latest-avatar {
    align-items: center;
    background: linear-gradient(to bottom, #6f849d, #40536a);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 4px;
    color: #ffffff;
    display: flex !important;
    flex: 0 0 34px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    overflow: hidden;
    text-transform: uppercase;
    width: 34px;
}

.latest-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.acp-forum-category {
    background: white;
    border: 1px solid #d8dde6;
    border-radius: 4px;
    margin-bottom: 18px;
    overflow: hidden;
}

.acp-forum-category-sort-list {
    display: flex;
    flex-direction: column;
}

.acp-sort-status {
    background: rgba(31, 43, 59, 0.9);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    color: #b8c4d4;
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 12px;
    padding: 10px 12px;
}

.acp-sort-status[data-state="saving"] {
    color: #fde68a;
}

.acp-sort-status[data-state="saved"] {
    color: #86efac;
}

.acp-sort-status[data-state="error"] {
    color: #fecaca;
}

.acp-forum-category.is-dragging {
    opacity: 0.55;
}

.acp-forum-category-head {
    background: linear-gradient(to bottom, #f9fafb, #eef2f6);
    border-bottom: 1px solid #d8dde6;
    display: grid;
    gap: 12px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 14px 16px;
}

.acp-drag-handle {
    align-self: start;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    color: #cbd5e1;
    cursor: grab;
    font-size: 16px;
    font-weight: 900;
    height: 34px;
    line-height: 1;
    padding: 0;
    width: 34px;
}

.acp-drag-handle:active {
    cursor: grabbing;
}

.acp-forum-category-form {
    align-items: end;
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 100px 120px auto;
    gap: 12px;
    min-width: 0;
}

.acp-forum-category-head .department-delete-form {
    grid-column: 2 / 4;
    margin-top: 0;
}

.acp-category-add-button {
    align-self: start;
    background: linear-gradient(to bottom, #7fa2c4, #597a9b);
    border: 1px solid rgba(127, 162, 196, 0.35);
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    font-size: 22px;
    font-weight: 900;
    height: 34px;
    line-height: 1;
    width: 34px;
}

.acp-category-add-button.is-open {
    background: linear-gradient(to bottom, #5f7f9f, #435d78);
}

.acp-quick-forum-form[hidden] {
    display: none;
}

.acp-quick-forum-form {
    background: rgba(15, 23, 42, 0.03);
    border-bottom: 1px solid #d8dde6;
    padding: 14px 16px;
}

.acp-quick-forum-form form {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(160px, 1fr) minmax(150px, 0.8fr) minmax(210px, 1fr) minmax(220px, 1.2fr) 90px minmax(140px, 0.8fr);
}

.acp-quick-forum-form .department-check {
    align-self: center;
}

.acp-quick-forum-form button {
    justify-self: start;
}

.ips-field.small input {
    max-width: 100px;
}

.acp-forum-tree {
    display: grid;
}

.acp-forum-node {
    align-items: center;
    border-bottom: 1px solid #e8edf2;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(220px, 1fr) 230px minmax(220px, 1fr) 50px;
    padding: 14px 16px;
}

.acp-forum-node:last-child {
    border-bottom: none;
}

.acp-forum-node.child {
    background: #f8fafc;
    padding-left: 42px;
}

.acp-forum-node-main strong,
.acp-forum-node-main span,
.acp-forum-access-summary span {
    display: block;
}

.acp-forum-node-main strong {
    color: #243447;
}

.acp-forum-node-main span,
.acp-forum-access-summary span {
    color: #7b8794;
    font-size: 11px;
    margin-top: 3px;
}

.acp-forum-node a {
    color: #3f8edb;
    font-weight: 700;
}

.warning-reason-form {
    display: grid;
    grid-template-columns: 1.4fr 140px 140px 120px;
    gap: 14px;
    padding: 18px;
}

.warning-reason-form .ips-field.full {
    grid-column: 1 / -1;
}

.warning-reason-list {
    display: grid;
}

.warning-reason-row {
    border-bottom: 1px solid #e8edf2;
}

.warning-reason-row:last-child {
    border-bottom: none;
}

.warning-reason-row summary {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(220px, 1fr) auto;
    list-style: none;
    padding: 14px 16px;
}

.warning-reason-row summary::-webkit-details-marker {
    display: none;
}

.warning-reason-row summary:hover {
    background: #f8fafc;
}

.warning-reason-row summary strong,
.warning-reason-row summary em {
    display: block;
}

.warning-reason-row summary strong {
    color: #243447;
}

.warning-reason-row summary em {
    color: #7b8794;
    font-size: 11px;
    font-style: normal;
    margin-top: 3px;
}

.warning-delete-form {
    padding: 0 18px 18px;
}

.ips-button.danger {
    background: #dc2626;
    border-color: #b91c1c;
    color: white;
}

.inline-danger {
    background: transparent;
    border: 0;
    color: #b42323;
    cursor: pointer;
    font-weight: 700;
}

.acp-confirm-modal[hidden] {
    display: none;
}

.acp-confirm-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 5000;
}

.acp-confirm-backdrop {
    background: rgba(5, 8, 13, 0.72);
    inset: 0;
    position: absolute;
}

.acp-confirm-box {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    max-width: 430px;
    padding: 22px;
    position: relative;
    width: calc(100% - 32px);
}

.acp-confirm-box h3 {
    color: #111827;
    font-size: 18px;
    margin: 0 0 8px;
}

.acp-confirm-box p {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.acp-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.acp-member-command-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.acp-member-command-bar form {
    margin: 0;
}

.acp-member-layout.wide {
    grid-template-columns: 1fr 1fr;
}

.member-span {
    grid-column: 1 / -1;
}

.member-admin-form {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.member-role-editor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 18px;
}

.member-role-editor.single {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    padding: 0;
}

.member-role-editor section {
    background: #f8fafc;
    border: 1px solid #d8dde6;
    border-radius: 4px;
    padding: 14px;
}

.member-role-editor h3 {
    color: #243447;
    margin: 0 0 12px;
}

.member-role-editor label {
    display: block;
    color: #34495e;
    font-weight: 700;
    margin-bottom: 9px;
}

.member-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: #e8edf2;
}

.member-stat-grid div {
    background: white;
    padding: 14px 16px;
}

.member-stat-grid span,
.member-stat-grid strong {
    display: block;
}

.member-stat-grid span {
    color: #7b8794;
    font-size: 12px;
}

.member-stat-grid strong {
    color: #243447;
    margin-top: 5px;
}

.member-warning-card {
    background: #1d222b;
    border-color: #343b47;
    color: #f8fafc;
}

.member-warning-head {
    align-items: center;
    border-bottom: 1px solid #343b47;
    display: flex;
    justify-content: space-between;
    padding: 14px 16px;
}

.member-warning-head a {
    color: #aab3c2;
    font-weight: 700;
}

.member-warning-summary {
    align-items: center;
    background: #20262f;
    border-bottom: 1px solid #343b47;
    display: flex;
    justify-content: space-between;
    padding: 16px;
}

.member-warning-summary strong {
    color: #ff5c5c;
    display: block;
}

.member-warning-summary span {
    color: #ff6b6b;
    display: block;
    margin-top: 4px;
}

.member-warning-actions {
    display: flex;
    gap: 8px;
}

.member-warning-item {
    align-items: center;
    background: #252a33;
    border-bottom: 1px solid #343b47;
    display: grid;
    gap: 12px;
    grid-template-columns: 34px 1fr auto;
    padding: 14px 16px;
}

.member-warning-points {
    align-items: center;
    background: #ef6262;
    border-radius: 50%;
    color: white;
    display: flex;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.member-warning-item strong,
.member-warning-item span {
    display: block;
}

.member-warning-item span {
    color: #9ca3af;
    margin-top: 3px;
}

.member-warning-item button {
    background: transparent;
    border: 0;
    color: #cbd5e1;
    cursor: pointer;
    font-weight: 800;
}

.member-restriction-editor {
    border-top: 1px solid #343b47;
}

.member-restriction-editor summary {
    cursor: pointer;
    font-weight: 800;
    padding: 14px 16px;
}

.member-restriction-editor form {
    background: #1a1f27;
}

.restriction-section-title {
    background: #2b313b;
    border-bottom: 1px solid #3d4654;
    border-top: 1px solid #3d4654;
    color: #f8fafc;
    font-weight: 900;
    padding: 14px 16px;
}

.restriction-row,
.restriction-toggle {
    align-items: center;
    border-bottom: 1px solid #303844;
    display: grid;
    gap: 14px;
    grid-template-columns: 220px minmax(180px, 1fr) 170px;
    padding: 14px 16px;
}

.restriction-row label,
.restriction-toggle span {
    color: #f8fafc;
    font-weight: 800;
    text-align: right;
}

.restriction-row input[type="datetime-local"],
.restriction-row input[type="number"] {
    background: #252b35;
    border: 1px solid #4b5563;
    border-radius: 4px;
    color: #f8fafc;
    padding: 10px;
}

.restriction-toggle {
    grid-template-columns: 220px 1fr;
}

.restriction-toggle input[type="checkbox"] {
    justify-self: start;
}

.restriction-actions {
    display: flex;
    justify-content: center;
    padding: 16px;
}

@media (max-width: 900px) {
    .department-rank-columns {
        grid-template-columns: 1fr;
    }

    .department-public-add,
    .department-member-add {
        flex-direction: column;
    }

    .department-create-grid {
        grid-template-columns: 1fr;
    }

    .department-rank-compact summary,
    .faction-forum-row {
        grid-template-columns: 1fr;
    }

    .faction-forum-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .faction-forum-head p {
        max-width: none;
        text-align: left;
    }

    .department-rank-metrics,
    .faction-forum-count,
    .faction-forum-latest {
        justify-content: flex-start;
        text-align: left;
    }

    .acp-forum-category-form,
    .acp-quick-forum-form form,
    .acp-forum-node,
    .warning-reason-form,
    .warning-reason-row summary {
        grid-template-columns: 1fr;
    }

    .acp-member-layout.wide,
    .member-role-editor {
        grid-template-columns: 1fr;
    }

    .restriction-row,
    .restriction-toggle,
    .member-warning-item {
        grid-template-columns: 1fr;
    }

    .restriction-row label,
    .restriction-toggle span {
        text-align: left;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .top-header {
        height: auto;
    }

    .top-header-inner {
        height: auto;
        flex-direction: column;
        gap: 14px;
        padding: 14px;
    }

    .top-search {
        width: 100%;
        padding: 0;
    }

    .main-navbar {
        height: auto;
    }

    .main-navbar-inner {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px;
        gap: 18px;
    }

    .forum-layout {
        display: block;
    }

    .forum-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 24px;
    }

    .forum-hero h1 {
        font-size: 32px;
    }

    .forum-hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .forum-hero-stats div {
        border-bottom: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        padding: 14px;
    }

    .forum-hero-stats div:last-child {
        border-right: 0;
    }

    .forum-hero-stats strong {
        font-size: 24px;
    }

    .sidebar {
        display: flex;
        margin-top: 22px;
    }

    .department-row {
        grid-template-columns: 48px 1fr;
    }

    .topics-panel .topic-row {
        grid-template-columns: 1fr;
    }

    .forum-post-count,
    .forum-latest,
    .topics-panel .topic-stats,
    .topics-panel .topic-latest {
        display: none;
    }

    .thread-post {
        grid-template-columns: 1fr;
    }

    .thread-author {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .acp-shell {
        grid-template-columns: 1fr;
    }

    .acp-sidebar {
        display: none;
    }

    .ips-form-grid {
        grid-template-columns: 1fr;
    }
}

.spoiler-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    padding: 10px;
    margin: 12px 0;
}

.spoiler-box summary {
    cursor: pointer;
    font-weight: 900;
}

/* =========================================================
   PROFILE SOCIAL / FEED / WARNINGS
========================================================= */

.profile-social-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.profile-social-stats div {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 7px 10px;
    border-radius: 4px;
    color: #d4deea;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-social-stats strong {
    color: #ffffff;
    margin-right: 4px;
}

.profile-actions {
    margin-left: auto;
    align-self: flex-end;
}

.profile-follow-btn {
    background: linear-gradient(to bottom, #4d9cff, #3f8edb);
    color: #ffffff;
    border: 0;
    border-radius: 4px;
    padding: 11px 16px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
}

.profile-follow-btn.unfollow {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
}

.profile-feed-form {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(36, 50, 69, 0.55);
}

.profile-feed-form textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    background: rgba(255,255,255,0.95);
    color: #111827;
    border: 0;
    border-radius: 4px;
    padding: 12px;
    font-size: 13px;
}

.profile-feed-form button {
    margin-top: 10px;
    background: linear-gradient(to bottom, #4d9cff, #3f8edb);
    color: #ffffff;
    border: 0;
    border-radius: 4px;
    padding: 10px 16px;
    font-weight: 900;
    cursor: pointer;
}

.profile-feed-post {
    padding: 15px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(36, 50, 69, 0.45);
}

.profile-feed-post:last-child {
    border-bottom: none;
}

.profile-feed-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-feed-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #5aa7ff, #3f8edb);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 900;
}

.profile-feed-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-feed-author strong {
    display: block;
    font-size: 13px;
}

.profile-feed-author span {
    display: block;
    margin-top: 2px;
    color: #d4deea;
    font-size: 11px;
}

.profile-feed-body {
    margin-top: 12px;
    color: #ffffff;
    line-height: 1.5;
    font-size: 13px;
}

.profile-warning-row {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(127, 29, 29, 0.28);
}

.profile-warning-row:last-child {
    border-bottom: none;
}

.profile-warning-row strong {
    display: block;
    color: #fecaca;
    font-size: 13px;
}

.profile-warning-row span {
    display: block;
    margin-top: 4px;
    color: #fca5a5;
    font-size: 11px;
}

.profile-theme-blue .profile-role-pill,
.profile-theme-blue .profile-follow-btn {
    background: linear-gradient(to bottom, #5aa7ff, #3f8edb);
}

.profile-theme-red .profile-role-pill,
.profile-theme-red .profile-follow-btn {
    background: linear-gradient(to bottom, #ef4444, #b91c1c);
}

.profile-theme-purple .profile-role-pill,
.profile-theme-purple .profile-follow-btn {
    background: linear-gradient(to bottom, #a855f7, #7e22ce);
}

@media (max-width: 900px) {
    .profile-actions {
        margin-left: 0;
        margin-top: 14px;
    }

    .profile-social-stats {
        gap: 8px;
    }
}

.profile-stat-row a {
    color: #93c5fd;
}

.profile-stat-row a:hover {
    color: #ffffff;
}

/* =========================================================
   IPS-STYLE WARNINGS PANEL
   Replaces the older raw warning form/profile-warning styling.
========================================================= */

.warning-panel {
    background: #1d2430;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
}

.warning-panel .profile-widget-title {
    display: none;
}

.warning-summary {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: #1d2430;
}

.warning-summary-main {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f87171;
    margin-bottom: 14px;
}

.warning-icon {
    font-size: 22px;
    line-height: 1;
}

.warning-summary-main strong {
    font-size: 22px;
    font-weight: 900;
    color: #f87171;
}

.warning-summary-main span:last-child {
    font-size: 14px;
    font-weight: 800;
    color: #f87171;
}

.warning-open-btn {
    width: 100%;
    background: #334155;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    text-transform: none;
}

.warning-open-btn:hover {
    background: #40516a;
}

.warning-issue-form {
    display: none;
    padding: 16px;
    background: rgba(15, 23, 42, 0.75);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.warning-issue-form.is-open {
    display: block;
}

.warning-issue-form input,
.warning-issue-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 11px 12px;
    border: 0;
    border-radius: 6px;
    background: #f8fafc;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    outline: none;
}

.warning-issue-form input:focus,
.warning-issue-form textarea:focus {
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.25);
}

.warning-issue-form textarea {
    min-height: 90px;
    resize: vertical;
}

.warning-form-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
}

.warning-issue-form button {
    background: #dc2626;
    color: #ffffff;
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
}

.warning-issue-form button:hover {
    background: #ef4444;
}

.warning-list {
    background: #1d2430;
}

.warning-item {
    display: grid;
    grid-template-columns: 46px 1fr 32px;
    gap: 12px;
    align-items: center;
    padding: 15px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: #1d2430;
}

.warning-item:last-child {
    border-bottom: none;
}

.warning-points {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.warning-item.resolved .warning-points {
    background: #64748b;
}

.warning-details strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.warning-details span {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.warning-details p {
    margin: 8px 0 0;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.4;
}

.warning-resolve-btn {
    background: transparent;
    color: #cbd5e1;
    border: 0;
    font-size: 18px;
    cursor: pointer;
}

.warning-resolve-btn:hover {
    color: #ffffff;
}

.warning-empty {
    padding: 15px 16px;
    color: #cbd5e1;
    font-size: 13px;
    background: #1d2430;
}

/* Compatibility cleanup for older warning classes */
.warning-form {
    display: none;
}

.profile-warning-row {
    display: none;
}

.warning-deactivate {
    display: none;
}
.warning-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.warning-modal.is-open {
    display: block;
}

.warning-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
}

.warning-modal-box {
    position: relative;
    width: min(720px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: 24px auto;
    background: #1d2430;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.55);
}

.warning-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2d3f57;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.warning-modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.warning-modal-header button {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

.warning-modal-form {
    padding: 18px;
}

.warning-field {
    margin-bottom: 18px;
}

.warning-field label {
    display: block;
    font-weight: 900;
    margin-bottom: 7px;
}

.warning-field label span {
    color: #f87171;
    font-size: 11px;
    margin-left: 4px;
}

.warning-field input[type="text"],
.warning-field input[type="number"],
.warning-field input[type="datetime-local"],
.warning-field textarea {
    width: 100%;
    background: #f8fafc;
    color: #111827;
    border: 0;
    border-radius: 5px;
    padding: 12px;
    font-size: 14px;
}

.warning-field textarea {
    min-height: 100px;
    resize: vertical;
}

.warning-field p {
    margin: 7px 0 0;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.4;
}

.warning-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.warning-inline input[type="datetime-local"] {
    flex: 1;
}

.warning-check {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    color: #e5e7eb;
    font-weight: 800;
}

.warning-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 16px;
}

.warning-submit-btn {
    background: #dc2626;
    color: #fff;
    border: 0;
    border-radius: 5px;
    padding: 11px 16px;
    font-weight: 900;
    cursor: pointer;
}

.warning-cancel-btn {
    background: #334155;
    color: #fff;
    border: 0;
    border-radius: 5px;
    padding: 11px 16px;
    font-weight: 900;
    cursor: pointer;
}

.warning-field select {
    width: 100%;
    background: #f8fafc;
    color: #111827;
    border: 0;
    border-radius: 5px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
}
/* =========================================================
   FORCED WARNING ACKNOWLEDGEMENT MODAL
========================================================= */

.warning-force-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.warning-force-backdrop {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at top, rgba(220,38,38,0.18), transparent 40%),
        rgba(0,0,0,0.82);

    backdrop-filter: blur(4px);
}

.warning-force-box {
    position: relative;
    z-index: 1;

    width: min(560px, 100%);

    background:
        linear-gradient(
            to bottom,
            rgba(36, 46, 66, 0.98),
            rgba(23, 30, 43, 0.98)
        );

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 30px 100px rgba(0,0,0,0.65),
        0 0 0 1px rgba(255,255,255,0.03);
}

.warning-force-header {
    position: relative;

    padding: 22px 24px;

    background:
        linear-gradient(
            to right,
            rgba(127, 29, 29, 0.95),
            rgba(185, 28, 28, 0.9)
        );

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.warning-force-header::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.06),
            transparent 60%
        );

    pointer-events: none;
}

.warning-force-header h2 {
    margin: 0;

    color: #ffffff;

    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
}

.warning-force-body {
    padding: 28px;
    text-align: center;
}

.warning-force-points {
    width: 92px;
    height: 92px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background:
        linear-gradient(
            to bottom,
            #ef4444,
            #b91c1c
        );

    border: 4px solid rgba(255,255,255,0.08);

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
    font-weight: 900;

    box-shadow:
        0 10px 25px rgba(239,68,68,0.35);
}

.warning-force-body h3 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 28px;
    font-weight: 900;

    letter-spacing: 0;
}

.warning-force-body p {
    margin: 0 0 14px;

    color: #cbd5e1;

    font-size: 14px;
    line-height: 1.6;
}

.warning-force-body strong {
    color: #ffffff;
}

.warning-force-note {
    margin-top: 18px;

    padding: 18px;

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;

    text-align: left;

    color: #e2e8f0;

    line-height: 1.7;
    font-size: 14px;
}

.warning-force-required {
    margin-top: 20px !important;

    color: #fecaca !important;

    font-weight: 900;
    font-size: 13px !important;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.warning-force-actions {
    padding: 22px 24px;

    border-top: 1px solid rgba(255,255,255,0.08);

    background: rgba(255,255,255,0.02);
}

.warning-force-actions button {
    width: 100%;

    background:
        linear-gradient(
            to bottom,
            #ef4444,
            #b91c1c
        );

    color: #ffffff;

    border: 0;
    border-radius: 10px;

    padding: 15px 18px;

    font-size: 14px;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        filter 0.15s ease,
        box-shadow 0.15s ease;

    box-shadow:
        0 10px 25px rgba(239,68,68,0.28);
}

.warning-force-actions button:hover {
    transform: translateY(-2px);

    filter: brightness(1.05);

    box-shadow:
        0 14px 30px rgba(239,68,68,0.4);
}




/* =========================================================
   FINAL WARNING SYSTEM FIXES / OVERRIDES
   Keep this at the VERY bottom of app.css
========================================================= */

/* Warning sidebar panel */
.warning-panel {
    background: #1d2430 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.warning-panel .profile-widget-title {
    display: none !important;
}

.warning-summary {
    padding: 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    background: #1d2430 !important;
}

.warning-summary-main {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #f87171 !important;
    margin-bottom: 14px !important;
}

.warning-icon {
    font-size: 22px !important;
    line-height: 1 !important;
}

.warning-summary-main strong {
    font-size: 22px !important;
    font-weight: 900 !important;
    color: #f87171 !important;
}

.warning-summary-main span:last-child {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #f87171 !important;
}

.warning-open-btn {
    width: 100% !important;
    background: #334155 !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.warning-open-btn:hover {
    background: #40516a !important;
}

.warning-list {
    background: #1d2430 !important;
}

.warning-item {
    display: grid !important;
    grid-template-columns: 46px 1fr auto auto !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 15px 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    background: #1d2430 !important;
}

.warning-item:last-child {
    border-bottom: none !important;
}

.warning-points {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
}

.warning-item.resolved .warning-points {
    background: #64748b !important;
}

.warning-details strong {
    display: block !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.warning-details span {
    display: block !important;
    margin-top: 3px !important;
    color: #94a3b8 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.warning-details p {
    margin: 8px 0 0 !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.warning-view-btn,
.warning-resolve-btn {
    background: #334155 !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 5px !important;
    padding: 7px 10px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.warning-view-btn:hover,
.warning-resolve-btn:hover {
    background: #475569 !important;
}

/* Disable old inline warning styles from previous versions */
.warning-form,
.warning-issue-form,
.profile-warning-row,
.warning-deactivate {
    display: none !important;
}

/* Generic warning modal */
.warning-modal {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;
    padding: 24px !important;
}

.warning-modal.is-open {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.warning-modal-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.72) !important;
    backdrop-filter: blur(3px) !important;
}

.warning-modal-box {
    position: relative !important;
    z-index: 1 !important;
    width: min(760px, 100%) !important;
    max-height: calc(100vh - 48px) !important;
    overflow-y: auto !important;
    margin: 0 !important;
    background: #1d2430 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 10px !important;
    box-shadow: 0 25px 80px rgba(0,0,0,0.55) !important;
}

.warning-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #2d3f57 !important;
    padding: 16px 18px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

.warning-modal-header h2 {
    margin: 0 !important;
    font-size: 18px !important;
    color: #ffffff !important;
}

.warning-modal-header button {
    background: transparent !important;
    border: 0 !important;
    color: #ffffff !important;
    font-size: 26px !important;
    cursor: pointer !important;
}

.warning-modal-form {
    padding: 18px !important;
}

.warning-field {
    margin-bottom: 18px !important;
}

.warning-field label {
    display: block !important;
    font-weight: 900 !important;
    margin-bottom: 7px !important;
    color: #ffffff !important;
}

.warning-field label span {
    color: #f87171 !important;
    font-size: 11px !important;
    margin-left: 4px !important;
}

.warning-field input[type="text"],
.warning-field input[type="number"],
.warning-field input[type="datetime-local"],
.warning-field textarea,
.warning-field select {
    width: 100% !important;
    background: #f8fafc !important;
    color: #111827 !important;
    border: 0 !important;
    border-radius: 5px !important;
    padding: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    outline: none !important;
}

.warning-field textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

.warning-field p {
    margin: 7px 0 0 !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.warning-inline {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.warning-inline input[type="datetime-local"] {
    flex: 1 !important;
}

.warning-check {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 8px 0 !important;
    color: #e5e7eb !important;
    font-weight: 800 !important;
}

.warning-check input {
    width: auto !important;
}

.warning-modal-actions {
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-end !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    padding-top: 16px !important;
}

.warning-submit-btn {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 5px !important;
    padding: 11px 16px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.warning-cancel-btn {
    background: #334155 !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 5px !important;
    padding: 11px 16px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.warning-detail-line {
    margin-bottom: 15px !important;
}

.warning-detail-line strong {
    display: block !important;
    color: #ffffff !important;
    margin-bottom: 5px !important;
}

.warning-detail-line span {
    display: block !important;
    color: #cbd5e1 !important;
    line-height: 1.5 !important;
}

/* Forced acknowledgement modal */
.warning-force-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
}

.warning-force-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background:
        radial-gradient(circle at top, rgba(220,38,38,0.18), transparent 40%),
        rgba(0,0,0,0.82) !important;
    backdrop-filter: blur(4px) !important;
}

.warning-force-box {
    position: relative !important;
    z-index: 1 !important;
    width: min(560px, 100%) !important;
    background:
        linear-gradient(
            to bottom,
            rgba(36, 46, 66, 0.98),
            rgba(23, 30, 43, 0.98)
        ) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow:
        0 30px 100px rgba(0,0,0,0.65),
        0 0 0 1px rgba(255,255,255,0.03) !important;
}

.warning-force-header {
    position: relative !important;
    padding: 22px 24px !important;
    background:
        linear-gradient(
            to right,
            rgba(127, 29, 29, 0.95),
            rgba(185, 28, 28, 0.9)
        ) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

.warning-force-header h2 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

.warning-force-body {
    padding: 28px !important;
    text-align: center !important;
}

.warning-force-points {
    width: 92px !important;
    height: 92px !important;
    margin: 0 auto 18px !important;
    border-radius: 50% !important;
    background: linear-gradient(to bottom, #ef4444, #b91c1c) !important;
    border: 4px solid rgba(255,255,255,0.08) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 30px !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 25px rgba(239,68,68,0.35) !important;
}

.warning-force-body h3 {
    margin: 0 0 12px !important;
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 900 !important;
}

.warning-force-body p {
    margin: 0 0 14px !important;
    color: #cbd5e1 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.warning-force-note {
    margin-top: 18px !important;
    padding: 18px !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 10px !important;
    text-align: left !important;
    color: #e2e8f0 !important;
    line-height: 1.7 !important;
    font-size: 14px !important;
}

.warning-force-required {
    margin-top: 20px !important;
    color: #fecaca !important;
    font-weight: 900 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.warning-force-actions {
    padding: 22px 24px !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    background: rgba(255,255,255,0.02) !important;
}

.warning-force-actions button {
    width: 100% !important;
    background: linear-gradient(to bottom, #ef4444, #b91c1c) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 15px 18px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    box-shadow: 0 10px 25px rgba(239,68,68,0.28) !important;
}

.warning-force-actions button:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.05) !important;
}

@media (max-width: 900px) {

    .warning-item,
    .warning-history-row {
        grid-template-columns: 40px 1fr !important;
    }

    .warning-view-btn,
    .warning-resolve-btn {
        grid-column: 2 !important;
        justify-self: start !important;
        margin-top: 8px;
    }

    .warning-inline {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .warning-modal-actions {
        flex-direction: column !important;
    }

    .warning-modal-box,
    .warning-history-modal {
        width: calc(100% - 20px) !important;
        max-height: calc(100vh - 20px) !important;
    }
}

/* =========================================================
   SHOW MORE WARNINGS BUTTON
========================================================= */

.warning-show-more-btn {
    width: 100%;

    background: #334155;
    color: #ffffff;

    border: 0;
    border-radius: 0 0 8px 8px;

    padding: 12px;

    font-size: 12px;
    font-weight: 900;

    cursor: pointer;

    transition: background 0.15s ease;
}

.warning-show-more-btn:hover {
    background: #475569;
}

/* =========================================================
   WARNING HISTORY MODAL
========================================================= */

.warning-history-modal {
    width: min(820px, calc(100% - 32px));
}

.warning-history-list {
    max-height: 70vh;
    overflow-y: auto;
}

.warning-history-row {
    display: grid;
    grid-template-columns: 46px 1fr 60px;

    gap: 12px;
    align-items: center;

    padding: 15px 16px;

    border-bottom: 1px solid rgba(255,255,255,0.08);

    background: #1d2430;
}

.warning-history-row:last-child {
    border-bottom: none;
}

.warning-history-row.resolved .warning-points {
    background: #64748b;
}

/* =========================================================
   MODAL STACKING FIX
========================================================= */

.warning-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

#allWarningsModal {
    z-index: 10001;
}

.warning-detail-modal {
    z-index: 10010;
}

/* =========================================================
   DETAIL MODAL CONTENT
========================================================= */

.warning-detail-line {
    margin-bottom: 18px;
}

.warning-detail-line strong {
    display: block;
    margin-bottom: 6px;

    color: #ffffff;

    font-size: 13px;
    font-weight: 900;
}

.warning-detail-line span {
    color: #cbd5e1;
    line-height: 1.6;
}

/* =========================================================
   MODAL SCROLLING
========================================================= */

.warning-modal-box {
    overflow: hidden;
}

.warning-modal-form,
.warning-history-list {
    overflow-y: auto;
}

/* =========================================================
   IPS-STYLE THREAD POST USER CARDS
========================================================= */

.thread-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.thread-header {
    background: rgba(31, 43, 59, 0.96);
    border-radius: 6px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

.thread-header-main {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.thread-header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
}

.thread-meta {
    margin-top: 6px;
    color: #d4deea;
    font-size: 12px;
}

.thread-lock-badge,
.thread-lock-note {
    align-items: center;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 999px;
    color: #fecaca;
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    margin-left: 10px;
    padding: 5px 9px;
    text-transform: uppercase;
}

.thread-mod-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 auto;
    gap: 10px;
    justify-content: flex-end;
}

.thread-mod-actions form {
    margin: 0;
}

.thread-mod-button {
    background: linear-gradient(to bottom, #7fa2c4, #597a9b);
    border: 1px solid rgba(127, 162, 196, 0.35);
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 900;
    padding: 10px 12px;
}

.thread-mod-button.danger {
    background: linear-gradient(to bottom, #8f5f5f, #6f4343);
    border-color: rgba(248, 113, 113, 0.28);
}

.thread-locked-message {
    color: #d4deea;
    font-size: 13px;
    padding: 16px;
}

.post-card {
    display: grid;
    grid-template-columns: 230px 1fr;
    background: rgba(31, 43, 59, 0.96);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.post-author-card {
    background: rgba(24, 34, 48, 0.78);
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 20px 16px;
    text-align: center;
}

.post-avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #5aa7ff, #3f8edb);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    font-size: 38px;
    font-weight: 900;
    border: 4px solid rgba(255,255,255,0.16);
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-author-name {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
}

.post-author-username {
    margin-top: 3px;
    color: #d4deea;
    font-size: 11px;
}

.post-online {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.post-online.online {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

.post-online.offline {
    background: rgba(148, 163, 184, 0.16);
    color: #cbd5e1;
}

.post-rank-pill {
    margin: 12px auto 0;
    background: linear-gradient(to bottom, #4d9cff, #3f8edb);
    color: #ffffff;
    border-radius: 4px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.post-rank-tags,
.profile-rank-tags {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.post-rank-tags img,
.profile-rank-tags img,
.rank-tag-preview img {
    display: block;
    height: auto;
    max-width: 220px;
}

.profile-rank-tags {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
}

.rank-tag-preview {
    align-items: center;
    display: flex;
}

.post-author-stats {
    margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.post-author-stats div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.post-author-stats span {
    color: #d4deea;
    font-size: 11px;
}

.post-author-stats strong {
    color: #ffffff;
    font-size: 11px;
}

.post-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.post-topbar {
    min-height: 48px;
    padding: 14px 18px;
    background: rgba(45, 63, 87, 0.76);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #d4deea;
    font-size: 12px;
}

.post-topbar strong {
    color: #ffffff;
}

.post-body {
    padding: 22px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.7;
    min-height: 180px;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.post-signature {
    margin: 0 22px 22px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.5;
}

.reply-card {
    margin-top: 22px;
    background: rgba(31, 43, 59, 0.96);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.reply-card-title {
    background: rgba(45, 63, 87, 0.98);
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 900;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.reply-card form {
    padding: 16px;
}

.reply-card button {
    margin-top: 14px;
    background: linear-gradient(to bottom, #4d9cff, #3f8edb);
    color: #ffffff;
    border: 0;
    border-radius: 4px;
    padding: 12px 16px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 900px) {
    .thread-header-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .post-card {
        grid-template-columns: 1fr;
    }

    .post-author-card {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .post-avatar {
        width: 86px;
        height: 86px;
        font-size: 30px;
    }

    .post-body {
        padding: 16px;
    }

    .post-signature {
        margin: 0 16px 16px;
    }
}

.nav-avatar {
    width: 34px;
    height: 34px;

    border-radius: 50%;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #4d9cff;

    color: #ffffff;
    font-weight: 900;
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   DARK ACP THEME OVERRIDE
========================================================= */

.acp-body {
    background: #11151b;
    color: #d7dde7;
}

.acp-sidebar {
    background: #191e26;
    border-right-color: #303743;
}

.acp-logo {
    background: #202631;
    border-bottom-color: #303743;
}

.acp-menu a {
    color: #b8c0cc;
}

.acp-menu a:hover,
.acp-menu a.active {
    background: #242b36;
    color: #ffffff;
}

.acp-topbar {
    background: #1b2028;
    border-bottom-color: #303743;
    gap: 18px;
}

.acp-global-search {
    flex: 1;
    margin: 0;
    position: relative;
}

.acp-global-search input {
    width: 100%;
    background: #2a313d;
    border: 1px solid #343d4a;
    border-radius: 4px;
    color: #e5e7eb;
    height: 34px;
    padding: 0 12px;
}

.acp-search-suggestions {
    background: #171c24;
    border: 1px solid #343d4a;
    border-radius: 4px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
    left: 0;
    max-height: 430px;
    overflow-y: auto;
    padding: 8px 0;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 40;
}

.acp-search-section-label {
    color: #7f8da3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 8px 12px 4px;
    text-transform: uppercase;
}

.acp-search-suggestion {
    display: block;
    padding: 9px 12px;
}

.acp-search-suggestion:hover,
.acp-search-suggestion.is-active {
    background: #242b36;
}

.acp-search-suggestion strong,
.acp-search-suggestion span {
    display: block;
}

.acp-search-suggestion strong {
    color: #f8fafc;
    font-size: 14px;
}

.acp-search-suggestion span,
.acp-search-empty {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 3px;
}

.acp-search-empty {
    padding: 12px;
}

.acp-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acp-view-site,
.ips-button.secondary {
    background: #2a313d;
    border-color: #3b4654;
    color: #e5e7eb;
}

.ips-page-head h2,
.acp-member-profile h3,
.ips-node-title,
.acp-detail-list strong,
.acp-list-row strong,
.department-rank-head strong,
.department-rank-columns h3,
.department-tab-nav label,
.member-role-editor h3,
.member-stat-grid strong,
.acp-forum-node-main strong,
.warning-reason-row summary strong {
    color: #f8fafc;
}

.ips-page-head p,
.ips-node-meta,
.acp-member-profile p,
.acp-detail-list span,
.acp-list-row span,
.acp-empty,
.department-tab-nav span,
.member-stat-grid span,
.acp-forum-node-main span,
.acp-forum-access-summary span,
.warning-reason-row summary em {
    color: #9ca3af;
}

.ips-card,
.acp-forum-category,
.department-tab-panel {
    background: #1d222b;
    border-color: #343b47;
}

.ips-card-title,
.acp-forum-category-head,
.department-dashboard-head {
    background: #252b35;
    border-bottom-color: #343b47;
    color: #f8fafc;
}

.ips-table th {
    background: #252b35;
    border-bottom-color: #343b47;
    color: #9ca3af;
}

.ips-table td {
    background: #1d222b;
    border-bottom-color: #343b47;
    color: #d7dde7;
}

.ips-table tr:hover td,
.acp-forum-node.child,
.department-rank-compact summary:hover,
.warning-reason-row summary:hover {
    background: #242a34;
}

.ips-field label,
.department-check,
.member-role-editor label,
.department-member-row,
.department-forum-access label,
.warning-reason-row summary {
    color: #d7dde7;
}

.ips-field input,
.ips-field textarea,
.ips-field select,
.department-member-add select,
.department-forum-access select,
.department-public-add select {
    background: #111827;
    border-color: #3b4654;
    color: #f8fafc;
}

.member-role-editor section,
.role-permission-group,
.department-rank-detail,
.department-rank-compact,
.acp-collapsible summary,
.role-hierarchy-reference div,
.ips-checks label {
    background: #202631;
    border-color: #343b47;
}

.role-permission-group h3 {
    background: #252b35;
    border-bottom-color: #343b47;
    color: #f8fafc;
}

.role-permission-group label,
.department-member-row,
.acp-forum-node,
.warning-reason-row,
.department-rank-compact,
.acp-detail-list,
.acp-detail-list div,
.acp-list-row,
.acp-warning-row,
.acp-empty {
    border-color: #343b47;
}

.member-stat-grid {
    background: #343b47;
}

.member-stat-grid div {
    background: #1d222b;
}

.admin-search-section {
    border-bottom: 1px solid #343b47;
    padding: 16px;
}

.admin-search-section h3 {
    color: #f8fafc;
    margin: 0 0 10px;
}

.admin-search-result {
    display: block;
    padding: 10px 0;
}

.admin-search-result strong,
.admin-search-result span {
    display: block;
}

.admin-search-result span {
    color: #9ca3af;
    margin-top: 3px;
}

.member-device-card {
    overflow: hidden;
}

.member-device-title {
    align-items: center;
    border-bottom: 1px solid #343b47;
    display: flex;
    gap: 12px;
    padding: 16px;
}

.member-device-title strong {
    color: #f8fafc;
    font-size: 18px;
}

.member-device-icon {
    border: 2px solid #9ca3af;
    border-radius: 2px;
    display: inline-block;
    height: 12px;
    position: relative;
    width: 18px;
}

.member-device-icon::after {
    background: #9ca3af;
    bottom: -5px;
    content: '';
    height: 2px;
    left: 4px;
    position: absolute;
    width: 10px;
}

.member-ip-tabs {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #343b47;
}

.member-ip-tabs a {
    background: transparent;
    border-radius: 4px;
    color: #9ca3af;
    flex: 1;
    font-weight: 800;
    padding: 14px 12px;
    text-align: center;
}

.member-ip-tabs a:first-child {
    background: #556171;
    color: #f8fafc;
}

.member-device-summary-row {
    align-items: center;
    border-bottom: 1px solid #343b47;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    min-height: 62px;
    padding: 0 16px;
}

.member-device-summary-row span {
    color: #f8fafc;
    font-size: 17px;
    font-weight: 900;
}

.member-device-summary-row strong {
    color: #9ca3af;
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

.member-device-footer {
    color: #cbd5e1;
    display: block;
    font-weight: 900;
    padding: 16px;
    text-align: right;
}

.member-device-list {
    border-top: 1px solid #343b47;
}
.user-mini-avatar {
    width: 34px;
    height: 34px;

    border-radius: 50%;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #4d9cff;

    flex-shrink: 0;
}

.user-mini-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.user-mini-letter {
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

/* =========================================================
   POST MODERATION
========================================================= */

.post-hidden {
    opacity: 0.82;
}

.post-deleted {
    opacity: 0.72;
}

.post-status-pill {
    display: inline-flex;
    margin-left: 8px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.post-status-pill.hidden {
    background: rgba(234, 179, 8, 0.18);
    color: #fde68a;
}

.post-status-pill.deleted {
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
}

.post-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-mod-toggle {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.post-mod-toggle:hover {
    background: rgba(255,255,255,0.14);
}

.post-mod-panel {
    display: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(15, 23, 42, 0.45);
    padding: 16px 18px;
}

.post-mod-panel.is-open {
    display: grid;
    gap: 12px;
}

.post-mod-panel form {
    display: grid;
    gap: 8px;
}

.post-mod-panel label {
    font-size: 11px;
    font-weight: 900;
    color: #d4deea;
    text-transform: uppercase;
}

.post-mod-panel input {
    width: 100%;
    background: #ffffff;
    color: #111827;
    border: 0;
    border-radius: 4px;
    padding: 10px;
}

.post-mod-panel button {
    justify-self: start;
    background: #334155;
    color: #ffffff;
    border: 0;
    border-radius: 4px;
    padding: 9px 12px;
    font-weight: 900;
    cursor: pointer;
}

.post-mod-panel button.danger {
    background: #dc2626;
}

.post-mod-note {
    color: #facc15;
    font-size: 12px;
    font-weight: 800;
}

.post-moderated-message {
    margin: 22px;
    padding: 14px;
    background: rgba(234, 179, 8, 0.13);
    border: 1px solid rgba(234, 179, 8, 0.22);
    border-radius: 5px;
    color: #fde68a;
    font-weight: 900;
}

.post-moderated-message.deleted {
    background: rgba(239, 68, 68, 0.13);
    border-color: rgba(239, 68, 68, 0.22);
    color: #fecaca;
}
.post-mod-panel button.unhide {
    background: #059669;
}
/* =========================================================
   ACP DASHBOARD / MEMBERS
========================================================= */

.acp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.acp-stat-card {
    background: white;
    border: 1px solid #d8dde6;
    border-radius: 4px;
    padding: 22px;
}

.acp-stat-card strong {
    display: block;
    color: #243447;
    font-size: 32px;
    font-weight: 700;
}

.acp-stat-card span {
    display: block;
    margin-top: 6px;
    color: #7b8794;
    font-size: 13px;
}

.ips-member-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ips-member-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #3f8edb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 700;
}

.ips-member-avatar img,
.acp-member-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ips-member-cell strong {
    display: block;
    color: #243447;
}

.ips-member-cell span {
    display: block;
    color: #7b8794;
    font-size: 11px;
}

.acp-member-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.acp-member-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
}

.acp-member-avatar-large {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #3f8edb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 28px;
    font-weight: 700;
}

.acp-member-profile h3 {
    margin: 0;
    color: #243447;
    font-size: 22px;
}

.acp-member-profile p {
    margin: 5px 0 0;
    color: #7b8794;
}

.acp-detail-list {
    border-top: 1px solid #e8edf2;
}

.acp-detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
    border-bottom: 1px solid #e8edf2;
}

.acp-detail-list span {
    color: #7b8794;
}

.acp-detail-list strong {
    color: #243447;
    text-align: right;
}

.acp-list-row,
.acp-warning-row,
.acp-empty {
    padding: 14px 16px;
    border-bottom: 1px solid #e8edf2;
    color: #243447;
}

.acp-list-row strong,
.acp-warning-row strong {
    display: block;
}

.acp-list-row span,
.acp-warning-row span,
.acp-empty {
    display: block;
    margin-top: 4px;
    color: #7b8794;
    font-size: 12px;
}

.acp-warning-row {
    background: #fff7ed;
}

@media (max-width: 1000px) {
    .acp-stats-grid,
    .acp-member-layout {
        grid-template-columns: 1fr;
    }
}

.topbar {
    background: linear-gradient(
        to right,
        rgba(49, 54, 64, 0.86),
        rgba(26, 35, 49, 0.86)
    );
    border-bottom: 1px solid rgba(48, 57, 72, 0.85);
    backdrop-filter: blur(3px);
}

.topbar-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(110, 74, 255, 0.28);
}

.nav-links {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.nav-links a {
    color: #e3e9f1;
    text-decoration: none;
    font-size: 15px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    min-height: 72px;
    border-left: 1px solid rgba(255,255,255,0.03);
}

.nav-links a:hover {
    background: rgba(255,255,255,0.04);
}

.nav-links a.active {
    background: linear-gradient(to bottom, #101722, #161f2c);
    border-left: 1px solid #2f3a49;
    border-right: 1px solid #2f3a49;
    box-shadow: inset 0 2px 0 #3f8cff;
}

.member-menu-wrap {
    position: relative;
}

.member-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 800;
}

.member-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #3f8cff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 900;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 180px;
    background: #1d2430;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
    display: none;
    z-index: 9999;
}

.member-menu-wrap:hover .member-dropdown {
    display: block;
}

.member-dropdown a {
    display: block;
    padding: 12px 14px;
    color: #d4deea;
    font-weight: 800;
}

.member-dropdown a:hover {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
}

.guest-actions {
    display: flex;
    gap: 10px;
}

.guest-actions a {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
    padding: 10px 14px;
    border-radius: 5px;
    font-weight: 900;
}

/* =========================================================
   RESTRAINED SITE POLISH
========================================================= */

:root {
    --site-panel: rgba(24, 31, 42, 0.94);
    --site-panel-soft: rgba(31, 40, 53, 0.9);
    --site-panel-head: rgba(38, 48, 63, 0.96);
    --site-row: rgba(30, 39, 52, 0.82);
    --site-row-hover: rgba(43, 55, 72, 0.94);
    --site-border: rgba(255, 255, 255, 0.09);
    --site-border-strong: rgba(255, 255, 255, 0.16);
    --site-text: #f8fafc;
    --site-muted: #b8c4d4;
    --site-accent: #7fa2c4;
    --site-accent-dark: #597a9b;
}

.top-signup,
.auth-card button,
.settings-submit,
.nav-button,
.profile-follow-btn,
.profile-feed-form button,
.reply-card button,
.ips-button.primary,
.warning-open-btn,
.warning-submit-btn,
.department-inline-form button,
.department-member-add button,
.department-public-add button,
.department-forum-access button {
    background: linear-gradient(to bottom, var(--site-accent), var(--site-accent-dark)) !important;
    border-color: rgba(127, 162, 196, 0.35) !important;
    color: var(--site-text) !important;
}

.ips-button.secondary,
.profile-follow-btn.unfollow,
.warning-cancel-btn,
.acp-view-site,
.forum-hero-button.secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid var(--site-border-strong) !important;
    color: var(--site-text) !important;
}

.department-box,
.sidebar-card,
.topics-panel,
.faction-forum-card,
.profile-widget,
.profile-cover,
.settings-sidebar,
.settings-panel,
.auth-card,
.profile-card,
.thread-shell,
.post-card,
.reply-card,
.ips-card,
.acp-forum-category,
.department-tab-panel,
.role-permission-group,
.member-role-editor section,
.warning-panel,
.warning-modal-box {
    background: var(--site-panel) !important;
    border: 1px solid var(--site-border) !important;
    border-radius: 6px !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.department-title,
.sidebar-title,
.panel-title,
.faction-forum-title,
.profile-widget-title,
.settings-title,
.settings-panel-header,
.reply-card-title,
.ips-card-title,
.acp-forum-category-head,
.role-permission-group h3,
.warning-modal-header {
    background: var(--site-panel-head) !important;
    border-bottom: 1px solid var(--site-border) !important;
    color: var(--site-text) !important;
}

.department-row,
.topics-panel .topic-row,
.faction-forum-row,
.profile-list-row,
.profile-feed-form,
.profile-feed-post,
.settings-link,
.ips-table td,
.acp-list-row,
.admin-search-result {
    background: var(--site-row) !important;
    border-color: var(--site-border) !important;
    color: var(--site-text) !important;
}

.department-row:hover,
.topics-panel .topic-row:hover,
.faction-forum-row:hover,
.profile-list-row:hover,
.settings-link:hover,
.settings-link.active,
.ips-table tr:hover td,
.admin-search-result:hover {
    background: var(--site-row-hover) !important;
}

.faction-forum-icon,
.user-mini-avatar,
.profile-avatar.large,
.profile-feed-avatar,
.ips-member-avatar,
.acp-member-avatar-large,
.acp-logo-mark,
.member-avatar {
    background: linear-gradient(to bottom, var(--site-accent), var(--site-accent-dark)) !important;
    color: var(--site-text) !important;
}

.faction-forum-label,
.forum-row-eyebrow,
.panel-title a,
.ips-actions a,
.profile-stat-row a,
.post-topbar-actions a {
    color: var(--site-accent) !important;
}

.faction-forum-head {
    background: rgba(24, 31, 42, 0.9) !important;
    border-color: var(--site-border) !important;
}

.faction-forum-head p,
.faction-forum-main span,
.faction-forum-latest,
.topic-main span,
.profile-widget-body,
.profile-stat-row span,
.profile-list-row span,
.profile-empty,
.settings-panel-header p,
.ips-node-meta,
.acp-empty {
    color: var(--site-muted) !important;
}

.ips-field input,
.ips-field textarea,
.ips-field select,
.auth-card input,
.auth-card textarea,
.settings-field input,
.settings-field textarea,
.profile-feed-form textarea,
.acp-global-search input {
    background: rgba(10, 14, 20, 0.72) !important;
    border: 1px solid var(--site-border-strong) !important;
    color: var(--site-text) !important;
}

.top-search input {
    background: rgba(255, 255, 255, 0.94) !important;
    color: #111827 !important;
}

.discord {
    background: #5865f2 !important;
}

.steam {
    background: #141922 !important;
}

.profile-cover .profile-avatar.large,
.profile-cover .profile-avatar.large img,
.profile-avatar.large,
.profile-avatar.large img {
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
}

.profile-cover .profile-avatar.large {
    box-shadow: none !important;
    overflow: visible !important;
}

/* =========================================================
   PROFESSIONAL SITE SHARPENING
========================================================= */

:root {
    --site-panel: rgba(18, 25, 35, 0.95);
    --site-panel-soft: rgba(23, 32, 44, 0.92);
    --site-panel-head: rgba(31, 41, 55, 0.98);
    --site-row: rgba(24, 34, 48, 0.9);
    --site-row-hover: rgba(34, 48, 65, 0.98);
    --site-border: rgba(148, 163, 184, 0.16);
    --site-border-strong: rgba(190, 208, 230, 0.24);
    --site-text: #f8fafc;
    --site-muted: #aebccd;
    --site-accent: #8fb3d4;
    --site-accent-dark: #5f83a6;
    --site-warm: #d79a4b;
    --site-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    --site-shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.18);
}

html {
    background: #070b12;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    background:
        linear-gradient(180deg, rgba(5, 9, 15, 0.78), rgba(8, 13, 22, 0.94)),
        radial-gradient(circle at 18% 0%, rgba(143, 179, 212, 0.16), transparent 32%),
        url("../img/image.png") center center / cover fixed no-repeat !important;
    color: var(--site-text);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
}

.top-header {
    background: rgba(18, 25, 35, 0.96) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.top-header-inner {
    max-width: 1320px;
    padding: 0 22px;
}

.top-logo img {
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.34));
}

.top-logo span {
    font-size: 21px;
    letter-spacing: 0;
}

.main-navbar a {
    border-left: 1px solid rgba(148, 163, 184, 0.08) !important;
    color: #e8eef6;
    font-size: 13px;
    font-weight: 900;
}

.main-navbar a:hover,
.main-navbar a.active {
    background: rgba(143, 179, 212, 0.1) !important;
    color: #ffffff;
}

.main-navbar a.active::before {
    background: linear-gradient(to right, var(--site-accent), var(--site-warm)) !important;
    height: 2px;
}

.top-user-nav a,
.user-dropdown-toggle {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 4px;
}

.user-dropdown-toggle {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.user-dropdown-menu {
    background: rgba(15, 22, 32, 0.98) !important;
    border: 1px solid var(--site-border) !important;
    border-radius: 4px !important;
    box-shadow: var(--site-shadow);
}

.site-subnav {
    display: none;
}

.site-subnav-inner {
    max-width: 1320px;
    min-height: 48px;
    padding: 0 22px;
}

.site-search input,
.acp-global-search input {
    border-radius: 4px !important;
    height: 34px;
}

.top-header .site-search {
    flex: 0 1 260px;
}

.site-search input:focus,
.acp-global-search input:focus,
.ips-field input:focus,
.ips-field textarea:focus,
.ips-field select:focus,
.auth-card input:focus,
.auth-card textarea:focus,
.settings-field input:focus,
.settings-field textarea:focus,
.profile-feed-form textarea:focus {
    border-color: rgba(143, 179, 212, 0.62) !important;
    box-shadow: 0 0 0 2px rgba(143, 179, 212, 0.16);
    outline: none;
}

.page-container {
    max-width: 1320px;
    padding: 20px 18px 42px;
}

.breadcrumb {
    color: #cbd7e6 !important;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 14px;
}

.department-box,
.sidebar-card,
.topics-panel,
.faction-forum-card,
.profile-widget,
.profile-cover,
.settings-sidebar,
.settings-panel,
.auth-card,
.profile-card,
.thread-shell,
.post-card,
.reply-card,
.ips-card,
.acp-forum-category,
.department-tab-panel,
.role-permission-group,
.member-role-editor section,
.warning-panel,
.warning-modal-box {
    backdrop-filter: blur(8px);
    border: 1px solid var(--site-border) !important;
    border-radius: 4px !important;
    box-shadow: var(--site-shadow-soft) !important;
}

.department-title,
.sidebar-title,
.panel-title,
.faction-forum-title,
.profile-widget-title,
.settings-title,
.settings-panel-header,
.reply-card-title,
.ips-card-title,
.acp-forum-category-head,
.role-permission-group h3,
.warning-modal-header {
    background:
        linear-gradient(180deg, rgba(38, 50, 67, 0.98), rgba(28, 38, 52, 0.98)) !important;
    border-bottom: 1px solid var(--site-border-strong) !important;
    min-height: 48px;
}

.faction-forum-row,
.department-row,
.topics-panel .topic-row,
.profile-list-row,
.profile-feed-post,
.settings-link,
.small-topic,
.rich-row {
    border-bottom: 1px solid rgba(148, 163, 184, 0.11) !important;
}

.faction-forum-row,
.department-row,
.topics-panel .topic-row {
    min-height: 84px;
}

.faction-forum-row:hover,
.department-row:hover,
.topics-panel .topic-row:hover,
.profile-list-row:hover,
.small-topic:hover {
    background: linear-gradient(180deg, rgba(38, 53, 72, 0.96), rgba(30, 43, 60, 0.96)) !important;
}

.faction-forum-row:hover,
.department-row:hover,
.topics-panel .topic-row:hover {
    transform: translateY(-1px);
}

.faction-forum-icon,
.forum-icon,
.latest-avatar,
.user-mini-avatar,
.profile-feed-avatar,
.ips-member-avatar,
.acp-member-avatar-large,
.acp-logo-mark,
.member-avatar {
    border: 1px solid rgba(226, 232, 240, 0.16) !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 18px rgba(0, 0, 0, 0.22);
}

.faction-forum-main strong,
.forum-info h3,
.topics-panel .topic-main strong,
.post-author-name,
.profile-main-info h1 {
    letter-spacing: 0;
}

.faction-forum-count strong,
.forum-post-count strong,
.topics-panel .topic-stats strong {
    color: #ffffff;
    font-weight: 900;
}

.latest-stats {
    color: #dde8f5;
}

.latest-copy strong,
.forum-latest strong,
.topic-latest strong {
    color: #ffffff !important;
}

.nav-button,
.top-signup,
.auth-card button,
.settings-submit,
.profile-follow-btn,
.profile-feed-form button,
.reply-card button,
.ips-button.primary,
.warning-open-btn,
.warning-submit-btn,
.department-inline-form button,
.department-member-add button,
.department-public-add button,
.department-forum-access button {
    border: 1px solid rgba(190, 208, 230, 0.28) !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 22px rgba(0, 0, 0, 0.18);
    text-transform: uppercase;
}

.nav-button:hover,
.top-signup:hover,
.auth-card button:hover,
.settings-submit:hover,
.profile-follow-btn:hover,
.profile-feed-form button:hover,
.reply-card button:hover,
.ips-button.primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.profile-cover {
    overflow: hidden;
}

.profile-cover-overlay {
    background:
        linear-gradient(90deg, rgba(10, 15, 24, 0.95), rgba(10, 15, 24, 0.58), rgba(10, 15, 24, 0.94)) !important;
}

.profile-role-pill,
.post-rank-pill,
.ips-pill {
    border-radius: 4px !important;
}

.post-topbar,
.reply-card-title {
    background: linear-gradient(180deg, rgba(38, 50, 67, 0.96), rgba(29, 40, 55, 0.96)) !important;
}

.post-body {
    color: #f8fafc;
}

.auth-card,
.settings-panel,
.profile-widget,
.sidebar-card {
    overflow: hidden;
}

@media (max-width: 900px) {
    .top-header,
    .top-header-inner {
        height: auto;
        min-height: 74px;
    }

    .top-header-inner {
        padding: 12px 16px;
    }

    .site-subnav-inner,
    .page-container {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* =========================================================
   Compact polish and member search
========================================================= */

.page-container {
    max-width: 1680px;
    width: calc(100% - 44px);
    padding-top: 14px;
    padding-bottom: 30px;
}

.forum-layout {
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) 290px;
}

.department-box,
.sidebar-card,
.topics-panel,
.faction-forum-card,
.profile-widget,
.profile-cover,
.thread-header,
.post-card,
.reply-card {
    margin-bottom: 14px !important;
}

.department-row,
.faction-forum-row,
.topics-panel .topic-row {
    min-height: 70px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.profile-cover {
    min-height: 210px;
}

.profile-cover > img {
    height: 210px;
}

.profile-cover-overlay {
    padding: 20px !important;
}

.profile-layout {
    gap: 16px;
}

.profile-widget-title,
.panel-title,
.sidebar-title,
.faction-forum-title {
    min-height: 42px !important;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
}

.profile-stat-row,
.profile-list-row,
.small-topic {
    padding-top: 11px;
    padding-bottom: 11px;
}

.thread-shell {
    gap: 14px;
}

.post-author-card {
    padding: 16px 14px;
}

.post-body {
    min-height: 120px;
    padding: 18px;
}

.post-rank-tags img {
    max-width: 168px;
}

.profile-rank-tags img {
    height: auto !important;
    max-width: 180px;
    object-fit: contain !important;
    width: auto !important;
}

.profile-cover .profile-rank-tags img,
.profile-cover .post-rank-tags img {
    display: block !important;
    height: auto !important;
    max-height: 42px !important;
    max-width: 190px !important;
    object-fit: contain !important;
    width: auto !important;
}

.member-search-row {
    align-items: center;
    background: rgba(30, 39, 52, 0.86);
    border-bottom: 1px solid rgba(148, 163, 184, 0.11);
    display: grid;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr) minmax(180px, 260px);
    min-height: 68px;
    padding: 12px 16px;
}

.member-search-row:hover {
    background: linear-gradient(180deg, rgba(38, 53, 72, 0.96), rgba(30, 43, 60, 0.96));
}

.member-search-main strong,
.member-search-main span,
.member-search-meta {
    display: block;
}

.member-search-main strong {
    color: #ffffff;
    font-size: 13px;
}

.member-search-main span,
.member-search-meta {
    color: #cbd7e6;
    font-size: 11px;
}

.member-search-meta {
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-notes-panel {
    margin-bottom: 16px !important;
}

.member-notes-panel > summary {
    cursor: pointer;
    list-style: none;
}

.member-notes-panel > summary::-webkit-details-marker {
    display: none;
}

.member-notes-panel .profile-widget-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.member-notes-summary-meta {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.member-notes-chevron {
    color: #9fb6cf;
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    transition: transform 0.18s ease;
}

.member-notes-panel[open] .member-notes-chevron {
    transform: rotate(180deg);
}

.member-notes-content {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.staff-only-label {
    background: rgba(143, 179, 212, 0.14);
    border: 1px solid rgba(143, 179, 212, 0.24);
    border-radius: 4px;
    color: #dbeafe;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 7px;
    text-transform: uppercase;
}

.member-note-form {
    border-bottom: 1px solid rgba(148, 163, 184, 0.11);
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
}

.member-note-form textarea {
    background: rgba(7, 11, 17, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 4px;
    color: #f8fafc;
    min-height: 76px;
    padding: 10px 12px;
    resize: vertical;
}

.member-note-form button {
    align-self: end;
    background: linear-gradient(to bottom, #7fa2c4, #597a9b);
    border: 1px solid rgba(190, 208, 230, 0.28);
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 900;
    min-height: 38px;
    padding: 0 14px;
    text-transform: uppercase;
}

.member-note-status {
    border-top: 1px solid rgba(148, 163, 184, 0.11);
    color: #cbd7e6;
    font-size: 12px;
    padding: 10px 14px;
}

.member-note-status strong {
    color: #ffffff;
}

@media (max-width: 900px) {
    .member-search-row,
    .member-note-form {
        grid-template-columns: 1fr;
    }

    .member-search-meta {
        text-align: left;
    }
}

/* =========================================================
   Unspoken rich text editor
========================================================= */

.urp-editor {
    background: rgba(10, 15, 24, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 4px;
    overflow: hidden;
}

.urp-editor-toolbar {
    align-items: center;
    background: linear-gradient(180deg, rgba(38, 50, 67, 0.98), rgba(26, 36, 50, 0.98));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
}

.urp-editor-toolbar button,
.urp-editor-toolbar select {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 4px;
    color: #f8fafc;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    min-height: 32px;
    padding: 0 10px;
}

.urp-editor-toolbar select {
    color: #dce8f6;
}

.urp-editor-toolbar button:hover,
.urp-editor-toolbar select:hover {
    background: rgba(143, 179, 212, 0.16);
    border-color: rgba(143, 179, 212, 0.34);
}

.urp-editor-divider {
    background: rgba(148, 163, 184, 0.18);
    height: 26px;
    width: 1px;
}

.urp-editor-surface {
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.65;
    min-height: var(--editor-min-height);
    outline: 0;
    padding: 14px;
}

.urp-editor-surface:empty::before {
    color: #7f8fa3;
    content: attr(data-placeholder);
    pointer-events: none;
}

.urp-editor-surface h2,
.urp-editor-preview h2 {
    font-size: 22px;
    margin: 0 0 12px;
}

.urp-editor-surface h3,
.urp-editor-preview h3 {
    font-size: 18px;
    margin: 0 0 10px;
}

.urp-editor-surface blockquote,
.urp-editor-preview blockquote {
    background: rgba(143, 179, 212, 0.08);
    border-left: 3px solid #8fb3d4;
    margin: 10px 0;
    padding: 10px 12px;
}

.urp-editor-surface pre,
.urp-editor-preview pre {
    background: rgba(2, 6, 12, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 4px;
    color: #dbeafe;
    overflow-x: auto;
    padding: 12px;
}

.spoiler-box {
    background: rgba(2, 6, 12, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 4px;
    margin: 10px 0;
    padding: 10px 12px;
}

.spoiler-box summary {
    color: #dbeafe;
    cursor: pointer;
    font-weight: 900;
}

.editor-image,
.post-body img {
    border-radius: 4px;
    max-width: 100%;
}

.editor-embed {
    aspect-ratio: 16 / 9;
    background: #02060c;
    border-radius: 4px;
    margin: 12px 0;
    overflow: hidden;
    width: min(720px, 100%);
}

.editor-embed iframe {
    border: 0;
    height: 100%;
    width: 100%;
}

.editor-mention {
    background: rgba(143, 179, 212, 0.16);
    border: 1px solid rgba(143, 179, 212, 0.24);
    border-radius: 4px;
    color: #dbeafe;
    font-weight: 900;
    padding: 1px 5px;
}

.editor-attachment {
    align-items: center;
    background: rgba(143, 179, 212, 0.12);
    border: 1px solid rgba(143, 179, 212, 0.22);
    border-radius: 4px;
    color: #dbeafe;
    display: inline-flex;
    font-weight: 900;
    gap: 6px;
    padding: 7px 9px;
}

.editor-attachment::before {
    content: 'Attachment';
    color: #9fb8d2;
    font-size: 10px;
    text-transform: uppercase;
}

.urp-editor-emoji,
.urp-editor-mentions {
    background: rgba(12, 18, 27, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
}

.urp-editor-emoji[hidden],
.urp-editor-mentions[hidden],
.urp-editor-preview[hidden],
.urp-editor-attachments[hidden] {
    display: none;
}

.urp-editor-emoji button,
.urp-editor-mentions button {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 4px;
    color: #f8fafc;
    cursor: pointer;
    min-height: 30px;
    padding: 0 9px;
}

.urp-editor-drop-hint,
.urp-editor-attachments,
.urp-editor-preview {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #9fb0c4;
    font-size: 11px;
    padding: 8px 12px;
}

.urp-editor-preview {
    background: rgba(15, 23, 42, 0.72);
    color: #f8fafc;
    font-size: 13px;
    line-height: 1.6;
}

.member-note-form {
    display: block;
}

.member-note-form .urp-editor {
    margin-bottom: 10px;
}

@media (max-width: 700px) {
    .urp-editor-toolbar {
        gap: 5px;
        max-height: 148px;
        overflow-y: auto;
    }

    .urp-editor-toolbar button,
    .urp-editor-toolbar select {
        flex: 1 1 auto;
        min-width: 58px;
    }

    .urp-editor-divider {
        display: none;
    }
}

.staff-visible-hidden,
.topic-row.thread-hidden,
.post-card.post-hidden {
    background: linear-gradient(90deg, rgba(91, 26, 34, 0.42), rgba(18, 27, 40, 0.86)) !important;
    border-color: rgba(248, 113, 113, 0.42) !important;
    box-shadow: inset 3px 0 0 rgba(248, 113, 113, 0.7);
}

.post-hidden-staff-note {
    background: rgba(127, 29, 29, 0.22);
    border: 1px solid rgba(248, 113, 113, 0.42);
    border-radius: 6px;
    color: #fee2e2;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.auto-media-block {
    display: grid;
    gap: 8px;
    margin: 12px 0;
    max-width: 620px;
}

.auto-media-block a {
    color: #93c5fd;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.auto-media-embed {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(143, 179, 212, 0.25);
    border-radius: 6px;
    display: block;
    height: auto;
    max-height: 520px;
    max-width: 100%;
    object-fit: contain;
}

.faction-forum-icon img,
.forum-icon img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.acp-forum-category-card input[type="file"],
.acp-quick-forum-form input[type="file"],
.department-inline-form input[type="file"] {
    background: rgba(8, 13, 21, 0.78);
    border: 1px dashed rgba(143, 179, 212, 0.45);
    border-radius: 5px;
    color: #dbeafe;
    min-height: 38px;
    padding: 8px;
    width: 100%;
}

.acp-dashboard-head-v2 {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 0 16px;
}

.acp-dashboard-head-v2 h2 {
    font-size: 22px;
    margin: 0 0 4px;
}

.acp-dashboard-head-v2 p {
    color: #9fb0c5;
    font-size: 12px;
    margin: 0;
}

.acp-dashboard-v2 {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
}

.acp-panel {
    background: rgba(20, 26, 36, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 6px;
    overflow: hidden;
}

.acp-panel-large {
    grid-column: 1;
}

.acp-panel details {
    display: block;
}

.acp-panel summary {
    background: rgba(31, 41, 55, 0.78);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    color: #e5edf7;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    list-style: none;
    padding: 12px 14px;
}

.acp-panel summary::-webkit-details-marker {
    display: none;
}

.acp-panel-body {
    padding: 18px;
}

.acp-donut-layout {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: 220px 1fr;
    min-height: 210px;
}

.acp-donut-layout.compact {
    grid-template-columns: 170px 1fr;
    min-height: 190px;
}

.acp-donut {
    align-items: center;
    border-radius: 50%;
    display: grid;
    height: 148px;
    justify-self: center;
    place-items: center;
    position: relative;
    width: 148px;
}

.acp-donut.small {
    height: 128px;
    width: 128px;
}

.acp-donut::after {
    background: #111827;
    border-radius: 50%;
    content: "";
    height: 56px;
    position: absolute;
    width: 56px;
}

.acp-donut span {
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.acp-donut-meta {
    color: #b7c6d8;
    display: grid;
    gap: 10px;
    font-size: 12px;
}

.acp-donut-meta strong {
    color: #dbeafe;
}

.dot {
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    margin-right: 8px;
    width: 10px;
}

.dot.teal {
    background: #4ec0aa;
}

.dot.red {
    background: #d85d68;
}

.acp-stat-strip {
    align-items: center;
    color: #9fb0c5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 8px;
}

.acp-stat-strip b {
    color: #fff;
    font-size: 18px;
}

.acp-notes-v2 {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.acp-notes-v2 textarea {
    background: rgba(55, 65, 81, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.32);
    color: #e5edf7;
    min-height: 130px;
    resize: vertical;
}

.acp-note-footer {
    align-items: end;
    display: flex;
    justify-content: space-between;
}

.acp-note-footer span {
    color: #9fb0c5;
    font-size: 11px;
    font-weight: 800;
}

.acp-list-v2 {
    display: grid;
}

.acp-list-item {
    color: #dbeafe;
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    text-decoration: none;
}

.acp-list-item + .acp-list-item,
.acp-list-item + .acp-empty {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.acp-list-item strong {
    color: #fff;
}

.acp-list-item span {
    color: #9fb0c5;
    font-size: 12px;
}

.acp-registration-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 14px 16px 0;
}

.acp-line-chart {
    align-items: end;
    display: flex;
    gap: 10px;
    min-height: 190px;
    overflow-x: auto;
    padding: 28px 18px 18px;
}

.acp-line-point {
    background: linear-gradient(180deg, rgba(78, 192, 170, 0.95), rgba(22, 101, 91, 0.38));
    border-top: 2px solid #4ec0aa;
    display: grid;
    flex: 1 0 58px;
    min-height: 12px;
    position: relative;
}

.acp-line-point span,
.acp-line-point em {
    color: #dbeafe;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    left: 50%;
    position: absolute;
    text-align: center;
    transform: translateX(-50%);
    white-space: nowrap;
}

.acp-line-point span {
    top: -24px;
}

.acp-line-point em {
    bottom: -18px;
    color: #9fb0c5;
}

.error-page-v2 {
    align-items: center;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.12), transparent 28%),
        radial-gradient(circle at 70% 20%, rgba(147, 197, 253, 0.08), transparent 28%),
        #050912;
    justify-items: center;
    overflow: hidden;
    position: relative;
}

.error-scan-line {
    animation: errorScan 4.8s linear infinite;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.9), rgba(248, 113, 113, 0.9), transparent);
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.error-panel-v2 {
    display: grid;
    gap: 18px;
    max-width: 620px;
    position: relative;
    width: min(620px, 92vw);
}

.error-code-v2 {
    color: rgba(37, 99, 235, 0.45);
    font-size: clamp(72px, 12vw, 118px);
    font-weight: 1000;
    line-height: 0.8;
}

.error-kicker {
    align-items: center;
    color: #b7c6d8;
    display: flex;
    gap: 10px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.error-kicker span {
    color: #ff4d5a;
}

.error-panel-v2 h1 {
    font-size: 26px;
    margin: 0;
}

.error-panel-v2 p {
    color: #aebdd0;
    line-height: 1.65;
    margin: 0;
}

.error-data-card {
    background: rgba(5, 11, 23, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    overflow: hidden;
}

.error-data-card h2 {
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    color: #93c5fd;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    margin: 0;
    padding: 12px 14px;
    text-transform: uppercase;
}

.error-data-card dl {
    display: grid;
    grid-template-columns: 88px 1fr;
    margin: 0;
}

.error-data-card dt,
.error-data-card dd {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    margin: 0;
    padding: 10px 14px;
}

.error-data-card dt {
    color: #cbd5e1;
    font-weight: 900;
}

.error-data-card dd {
    color: #60a5fa;
}

.error-red {
    color: #f87171 !important;
}

.error-footer-brand {
    bottom: 28px;
    color: #9fb0c5;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.24em;
    position: absolute;
    text-transform: uppercase;
}

@keyframes errorScan {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(100vh);
    }
}

@media (max-width: 980px) {
    .acp-dashboard-v2 {
        grid-template-columns: 1fr;
    }

    .acp-panel-large {
        grid-column: auto;
    }

    .acp-donut-layout,
    .acp-donut-layout.compact {
        grid-template-columns: 1fr;
    }
}

[hidden] {
    display: none !important;
}


/* Editor correction: keep toolbar IPS-like and isolated from form button styles. */
.editor-card {
    max-width: 960px;
}

.auth-card .urp-editor,
.reply-card .urp-editor,
.member-note-form .urp-editor {
    background: #1f1f1f;
    border: 1px solid rgba(156, 176, 196, 0.45);
    border-radius: 5px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    overflow: visible;
}

.auth-card .urp-editor-toolbar,
.reply-card .urp-editor-toolbar,
.member-note-form .urp-editor-toolbar {
    align-items: center;
    background: #202020;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    min-height: 48px;
    overflow: visible;
    padding: 6px 10px;
}

.auth-card .urp-editor-toolbar button,
.reply-card .urp-editor-toolbar button,
.member-note-form .urp-editor-toolbar button,
.auth-card .urp-editor-toolbar select,
.reply-card .urp-editor-toolbar select,
.member-note-form .urp-editor-toolbar select,
.auth-card .urp-editor-color-menu > button,
.reply-card .urp-editor-color-menu > button,
.member-note-form .urp-editor-color-menu > button {
    align-items: center;
    align-self: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    color: #d7dde5 !important;
    display: inline-flex;
    flex: 0 0 auto !important;
    font-size: 13px;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    line-height: 1;
    margin: 0 !important;
    min-height: 32px;
    min-width: 32px;
    padding: 0 9px !important;
    text-transform: none !important;
    width: auto !important;
}

.auth-card .urp-editor-toolbar select,
.reply-card .urp-editor-toolbar select,
.member-note-form .urp-editor-toolbar select {
    background: #272727 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #d7dde5 !important;
    font-size: 12px;
    min-width: 92px;
}

.urp-editor-color-menu {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    position: relative;
}

.urp-editor-color-panel {
    background: #f1f1f1;
    border: 1px solid #111;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    color: #111;
    display: grid;
    gap: 3px;
    left: 0;
    padding: 4px;
    position: absolute;
    top: 38px;
    width: 130px;
    z-index: 100;
}

.urp-editor-color-panel[hidden] {
    display: none;
}

.urp-editor-color-auto,
.urp-editor-more-colors {
    background: #f7f7f7 !important;
    border: 1px solid #111 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #111 !important;
    display: flex !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    height: 18px !important;
    justify-content: center !important;
    margin: 0 !important;
    min-height: 18px !important;
    padding: 0 3px !important;
    text-transform: none !important;
    width: 100% !important;
}

.urp-editor-color-auto {
    align-items: center !important;
    gap: 6px;
}

.urp-editor-color-auto span {
    background: #cfd3d7;
    border: 1px solid #555;
    display: inline-block;
    height: 11px;
    width: 11px;
}

.urp-editor-color-grid {
    display: grid;
    gap: 5px 8px;
    grid-template-columns: repeat(6, 12px);
    justify-content: center;
    padding: 2px 0;
}

.urp-editor-color-grid button {
    background: var(--swatch-color) !important;
    border: 1px solid rgba(0, 0, 0, 0.38) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: 12px !important;
    margin: 0 !important;
    min-height: 12px !important;
    min-width: 12px !important;
    padding: 0 !important;
    width: 12px !important;
}

.urp-editor-more-colors {
    border: 0 !important;
}

.auth-card .urp-editor-toolbar button:hover,
.reply-card .urp-editor-toolbar button:hover,
.member-note-form .urp-editor-toolbar button:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    color: #ffffff !important;
    filter: none !important;
    transform: none !important;
}

.auth-card .urp-editor-divider,
.reply-card .urp-editor-divider,
.member-note-form .urp-editor-divider {
    background: rgba(255, 255, 255, 0.12);
    flex: 0 0 1px;
    height: 32px;
    margin: 0 8px;
}

.auth-card .urp-editor-surface,
.reply-card .urp-editor-surface,
.member-note-form .urp-editor-surface {
    background: #202020;
    color: #f4f7fb;
    line-height: 1.65;
    min-height: var(--editor-min-height);
    padding: 18px;
    outline: none;
}

.auth-card .urp-editor-surface:empty::before,
.reply-card .urp-editor-surface:empty::before,
.member-note-form .urp-editor-surface:empty::before {
    color: #7f8b9a;
    content: attr(data-placeholder);
}

.auth-card .urp-editor-drop-hint,
.reply-card .urp-editor-drop-hint,
.member-note-form .urp-editor-drop-hint {
    background: #272727;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca7b6;
    min-height: 44px;
    padding: 12px 18px;
    text-align: right;
}

.auth-card .urp-editor-preview,
.reply-card .urp-editor-preview,
.member-note-form .urp-editor-preview,
.auth-card .urp-editor-emoji,
.reply-card .urp-editor-emoji,
.member-note-form .urp-editor-emoji,
.auth-card .urp-editor-mentions,
.reply-card .urp-editor-mentions,
.member-note-form .urp-editor-mentions {
    background: #272727;
}

.urp-editor-modal[hidden] {
    display: none;
}

.urp-editor-modal {
    align-items: flex-start;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 52px 20px;
    position: fixed;
    z-index: 9000;
}

.urp-editor-modal-backdrop {
    background: rgba(0, 0, 0, 0.68);
    inset: 0;
    position: absolute;
}

.urp-editor-modal-box {
    background: #181818;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
    max-width: 1180px;
    overflow: hidden;
    position: relative;
    width: min(1180px, calc(100vw - 48px));
}

.urp-editor-modal-header {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    padding: 18px 20px;
}

.urp-editor-modal-header h2 {
    color: #ffffff;
    font-size: 20px;
    margin: 0;
}

.urp-editor-modal-header button {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #d7dde5 !important;
    cursor: pointer;
    font-size: 30px;
    height: 34px;
    margin: 0 !important;
    padding: 0 !important;
    width: 34px !important;
}

.urp-editor-modal-body {
    background: #2a2a2a;
    margin: 20px;
    padding: 22px;
}

.urp-editor-modal-body label {
    color: #cbd5e1;
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.urp-editor-modal-body input {
    background: #202020 !important;
    border: 2px solid rgba(97, 171, 225, 0.85) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 17px !important;
    height: 56px;
    padding: 0 14px !important;
    width: 100%;
}

.urp-editor-modal-body button {
    background: #555 !important;
    border: 0 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    color: #ffffff !important;
    cursor: pointer;
    font-weight: 900;
    margin-top: 20px !important;
    min-height: 44px;
    padding: 0 22px !important;
    text-transform: none !important;
    width: auto !important;
}

.urp-editor-attachments {
    background: #272727;
}

.post-body .editor-embed,
.urp-editor-surface .editor-embed,
.urp-editor-preview .editor-embed {
    aspect-ratio: 16 / 9;
    background: #02060c;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 5px;
    margin: 12px 0;
    overflow: hidden;
    width: min(720px, 100%);
}

.post-body .editor-embed iframe,
.urp-editor-surface .editor-embed iframe,
.urp-editor-preview .editor-embed iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.post-body .editor-image,
.urp-editor-surface .editor-image,
.urp-editor-preview .editor-image {
    border-radius: 5px;
    display: block;
    height: auto;
    margin: 10px 0;
    max-width: 100%;
}

.latest-avatar img,
.latest-profile-link {
    cursor: pointer;
}

.latest-profile-link:hover {
    color: #bfdbfe;
    text-decoration: underline;
}

.notification-tray {
    align-items: center;
    display: flex;
    height: 74px;
    position: relative;
    z-index: 5100;
}

.notification-bell {
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 4px;
    color: #dbeafe;
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    height: 40px;
    justify-content: center;
    position: relative;
    width: 44px;
}

.notification-bell:hover,
.notification-tray:focus-within .notification-bell,
.notification-tray:hover .notification-bell {
    background: rgba(143, 179, 212, 0.14);
    border-color: rgba(143, 179, 212, 0.32);
}

.notification-bell strong {
    align-items: center;
    background: #ef4444;
    border: 2px solid #111927;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    justify-content: center;
    min-width: 20px;
    padding: 2px 5px;
    position: absolute;
    right: -8px;
    top: -8px;
}

.notification-menu {
    background: rgba(15, 22, 32, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 4px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
    opacity: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: calc(100% - 8px);
    transform: translateY(8px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    visibility: hidden;
    width: min(380px, calc(100vw - 24px));
}

.notification-tray:hover .notification-menu,
.notification-tray:focus-within .notification-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.notification-menu-head {
    align-items: center;
    background: rgba(35, 49, 68, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    color: #ffffff;
    display: flex;
    font-size: 13px;
    font-weight: 900;
    justify-content: space-between;
    padding: 12px 14px;
}

.notification-menu-head form {
    margin: 0;
}

.notification-menu-head button {
    background: transparent;
    border: 0;
    color: #93c5fd;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    padding: 0;
    text-transform: uppercase;
}

.notification-item {
    align-items: flex-start;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    color: #dbeafe;
    display: grid;
    gap: 10px;
    grid-template-columns: 10px 1fr;
    padding: 12px 14px;
    text-decoration: none;
}

.notification-item:hover {
    background: rgba(143, 179, 212, 0.1);
}

.notification-item.unread {
    background: rgba(59, 130, 246, 0.08);
}

.notification-dot {
    background: #93c5fd;
    border-radius: 999px;
    height: 8px;
    margin-top: 5px;
    width: 8px;
}

.notification-dot.warning {
    background: #fb7185;
}

.notification-dot.mention {
    background: #a78bfa;
}

.notification-dot.announcement {
    background: #fbbf24;
}

.notification-dot.reply {
    background: #60a5fa;
}

.notification-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.notification-copy strong,
.notification-copy em,
.notification-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-copy strong {
    color: #ffffff;
    font-size: 13px;
    font-style: normal;
}

.notification-copy em {
    color: #cbd5e1;
    font-size: 12px;
    font-style: normal;
}

.notification-copy small {
    color: #91a4bb;
    font-size: 11px;
}

.notification-empty {
    display: grid;
    gap: 4px;
    padding: 16px 14px;
}

.notification-empty strong {
    color: #ffffff;
    font-size: 13px;
}

.notification-empty span {
    color: #9fb0c5;
    font-size: 12px;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-sidebar .warning-panel {
    order: -20;
}

.profile-sidebar .warning-panel {
    background: rgba(21, 31, 45, 0.94) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
}

.profile-sidebar .warning-summary {
    align-items: flex-start !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 14px 14px 12px !important;
}

.profile-sidebar .warning-summary-main {
    align-items: center !important;
    display: flex !important;
    gap: 9px !important;
}

.profile-sidebar .warning-icon {
    color: #ff4d5c !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.profile-sidebar .warning-summary-main strong {
    color: #ff5361 !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.profile-sidebar .warning-summary-main span:last-child {
    color: #ff5361 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.profile-sidebar .warning-open-btn {
    border-radius: 4px !important;
    font-size: 11px !important;
    min-height: 34px !important;
    padding: 8px 10px !important;
    width: 100% !important;
}

.profile-sidebar .warning-list {
    display: block !important;
}

.profile-sidebar .warning-item,
.warning-history-row {
    align-items: center !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    padding: 14px !important;
}

.profile-sidebar .warning-item:last-child {
    border-bottom: 0 !important;
}

.profile-sidebar .warning-points,
.warning-history-row .warning-points {
    align-items: center !important;
    background: #ff4d5c !important;
    border-radius: 999px !important;
    color: #fff !important;
    display: inline-flex !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    height: 34px !important;
    justify-content: center !important;
    width: 34px !important;
}

.profile-sidebar .warning-details {
    min-width: 0 !important;
}

.profile-sidebar .warning-details strong,
.warning-history-row .warning-details strong {
    color: #fff !important;
    display: block !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    margin-bottom: 3px !important;
}

.profile-sidebar .warning-list-meta,
.warning-history-row .warning-details span {
    color: #a9c7ed !important;
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
}

.profile-sidebar .warning-details p {
    color: #ffffff !important;
    display: none !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.28 !important;
    margin: 0 !important;
}

.profile-sidebar .warning-view-btn,
.warning-history-row .warning-view-btn {
    border-radius: 5px !important;
    font-size: 11px !important;
    min-height: 30px !important;
    min-width: 46px !important;
    padding: 7px 10px !important;
}

.top-header-inner {
    gap: 14px !important;
    max-width: 1580px !important;
}

.top-logo {
    min-width: 250px !important;
}

.main-navbar {
    flex: 0 0 auto !important;
}

.main-navbar a {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.role-sort-card {
    overflow: hidden;
}

.role-section-create {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 360px) 120px 72px auto;
    margin-bottom: 16px;
    padding: 16px 18px;
}

.role-section-create strong,
.role-section-create span {
    display: block;
}

.role-section-create strong {
    color: #ffffff;
    font-size: 14px;
}

.role-section-create span {
    color: #9fb0c5;
    font-size: 12px;
    margin-top: 4px;
}

.role-section-create input {
    width: 100%;
}

.role-sort-card-head {
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    justify-content: space-between;
    padding: 18px 20px;
}

.role-sort-card-head p {
    color: #9fb0c5;
    font-size: 13px;
    margin: 5px 0 0;
}

.role-sort-status {
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    color: #b8c8dc;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 7px 10px;
    text-transform: uppercase;
}

.role-sort-status[data-state="saved"] {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.34);
    color: #86efac;
}

.role-sort-status[data-state="saving"] {
    background: rgba(96, 165, 250, 0.14);
    border-color: rgba(96, 165, 250, 0.3);
    color: #bfdbfe;
}

.role-sort-status[data-state="error"] {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.34);
    color: #fecaca;
}

.role-sort-list {
    display: flex;
    flex-direction: column;
}

.role-section-divider {
    align-items: center;
    background: rgba(15, 23, 42, 0.72);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    color: #ffffff;
    display: grid;
    gap: 12px;
    grid-template-columns: 34px 54px minmax(0, 1fr) auto;
    padding: 12px 18px;
}

.role-section-divider.uncategorized {
    grid-template-columns: 54px minmax(0, 1fr) auto;
}

.role-section-divider em {
    color: #9fb0c5;
    font-size: 12px;
    font-style: normal;
}

.role-section-divider [data-section-name] {
    cursor: text;
    min-width: 0;
}

.role-section-edit {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 82px 58px minmax(180px, 1fr) auto auto;
    margin: 0;
}

.role-section-edit[hidden] {
    display: none !important;
}

.role-section-edit input {
    min-height: 32px;
    padding: 6px 9px;
}

.role-section-edit input[type="color"],
.role-section-create input[type="color"],
.ips-field input[type="color"] {
    min-height: 38px;
    padding: 3px;
}

.role-section-edit button {
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 6px;
    color: #e5eefb;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    min-height: 32px;
    padding: 0 10px;
    text-transform: uppercase;
}

.role-section-edit button[type="submit"] {
    background: rgba(96, 165, 250, 0.22);
    border-color: rgba(96, 165, 250, 0.34);
    color: #dbeafe;
}

.role-section-icon {
    align-items: center;
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #d7e7fa;
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    height: 32px;
    justify-content: center;
    width: 42px;
}

.role-sort-row {
    align-items: center;
    background: rgba(30, 41, 59, 0.78);
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
    display: grid;
    gap: 14px;
    grid-template-columns: 34px 40px minmax(0, 1fr) 90px auto;
    min-height: 70px;
    padding: 12px 18px;
    transition: background 0.16s ease, transform 0.16s ease;
}

.role-sort-row:hover {
    background: rgba(39, 53, 75, 0.92);
}

.role-sort-row.is-dragging {
    background: rgba(59, 130, 246, 0.18);
    opacity: 0.68;
    transform: scale(0.995);
}

.role-drag-handle {
    align-items: center;
    background: rgba(15, 23, 42, 0.44);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 6px;
    cursor: grab;
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.role-drag-handle span {
    background: #9fb0c5;
    border-radius: 99px;
    display: block;
    height: 2px;
    width: 12px;
}

.role-drag-handle:active {
    cursor: grabbing;
}

.role-drag-handle.section {
    background: rgba(148, 163, 184, 0.12);
}

.role-section-delete {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.24);
    border-radius: 6px;
    color: #fecaca;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    min-height: 32px;
    padding: 0 10px;
    text-transform: uppercase;
}

.role-section-delete:hover {
    background: rgba(248, 113, 113, 0.18);
    color: #ffffff;
}

.role-badge {
    align-items: center;
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.role-badge.management {
    background: linear-gradient(135deg, #ef4444, #7f1d1d);
}

.role-badge.staff {
    background: linear-gradient(135deg, #3b82f6, #1e3a8a);
}

.role-sort-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.role-sort-main strong {
    color: #ffffff;
    font-size: 15px;
}

.role-sort-main span {
    color: #9fb0c5;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-sort-main em {
    font-style: normal;
}

.role-sort-count {
    align-items: center;
    color: #dbeafe;
    display: inline-flex;
    gap: 7px;
    justify-content: flex-end;
}

.role-sort-count strong {
    font-size: 15px;
}

.role-sort-count span::before {
    content: "";
    background: #cbd5e1;
    border-radius: 999px;
    display: block;
    height: 13px;
    position: relative;
    width: 13px;
}

.role-sort-count span::after {
    content: "";
    background: #cbd5e1;
    border-radius: 8px 8px 3px 3px;
    display: block;
    height: 8px;
    margin-left: -2px;
    margin-top: -2px;
    width: 17px;
}

.role-sort-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.role-sort-actions form {
    margin: 0;
}

.role-icon-button {
    align-items: center;
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 8px;
    color: #e5eefb;
    cursor: pointer;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    text-decoration: none;
}

.role-icon-button:hover {
    background: rgba(96, 165, 250, 0.22);
    color: #ffffff;
}

.role-icon-button.danger:hover {
    background: rgba(248, 113, 113, 0.18);
    border-color: rgba(248, 113, 113, 0.34);
    color: #fecaca;
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal-backdrop {
    align-items: center;
    background: rgba(2, 6, 23, 0.78);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 22px;
    position: fixed;
    z-index: 10000;
}

.modal-card {
    background: #111a27;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 10px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    max-width: 520px;
    padding: 22px;
    width: min(520px, 100%);
}

.modal-card h3 {
    color: #ffffff;
    margin: 0 0 10px;
}

.modal-card p {
    color: #cbd5e1;
    margin: 0 0 12px;
}

.modal-card input {
    width: 100%;
}

.modal-confirm-copy strong {
    color: #ffffff;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

@media (max-width: 720px) {
    .role-section-create {
        grid-template-columns: 1fr;
    }

    .role-sort-card-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .role-section-divider,
    .role-section-divider.uncategorized {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .role-section-divider .role-section-icon,
    .role-section-divider form,
    .role-section-divider em {
        grid-column: 2;
    }

    .role-section-edit {
        grid-template-columns: 1fr;
    }

    .role-sort-row {
        grid-template-columns: 34px 38px minmax(0, 1fr);
    }

    .role-sort-count,
    .role-sort-actions {
        grid-column: 3;
        justify-content: flex-start;
    }
}

.top-header .site-search {
    flex: 1 1 430px !important;
    max-width: 540px !important;
    min-width: 320px !important;
}

.error-page-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
    background: rgba(4, 10, 18, 0.88);
}

.error-panel {
    width: min(720px, 100%);
    border: 1px solid rgba(130, 164, 203, 0.35);
    background: rgba(20, 31, 45, 0.94);
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.error-code {
    color: #8fb8df;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.error-panel h1 {
    margin: 8px 0 12px;
}

.error-contact {
    color: #b8c7d9;
}

.error-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.acp-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
}

.acp-tabs a {
    color: #b7c6d8;
    padding: 12px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 800;
}

.acp-tabs a.is-active,
.acp-tabs a:hover {
    background: #344255;
    color: #fff;
}

.acp-tab-section {
    padding: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.acp-help-text {
    color: #d8e6f5;
    margin-bottom: 20px;
}

.acp-settings-list {
    display: grid;
    gap: 18px;
}

.acp-setting-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 18px;
    align-items: center;
}

.acp-setting-row.stacked {
    align-items: start;
}

.acp-reaction-list,
.department-roster-table {
    display: grid;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.acp-reaction-row,
.department-roster-row,
.department-roster-head {
    display: grid;
    grid-template-columns: 42px 1fr 160px 120px 180px;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.department-roster-head,
.acp-reaction-row:first-child {
    background: rgba(142, 178, 213, 0.08);
    color: #b8c8da;
    font-weight: 900;
}

.department-roster-row {
    grid-template-columns: 220px 1fr 360px;
}

.department-roster-head {
    grid-template-columns: 220px 1fr 360px;
}

.department-roster-members {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.department-member-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(48, 66, 88, 0.9);
    border: 1px solid rgba(148, 181, 214, 0.25);
    border-radius: 6px;
    padding: 7px 9px;
}

.department-member-chip button {
    border: 0;
    background: transparent;
    color: #d7e6f6;
    cursor: pointer;
}

.department-roster-row .department-public-add {
    display: grid;
    grid-template-columns: 1fr 72px;
    gap: 8px;
}

.staff-directory-section {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.staff-directory-section h2 {
    margin: 0;
    color: #dce9f6;
}

.acp-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.acp-chart-bars {
    display: flex;
    align-items: end;
    gap: 10px;
    min-height: 190px;
    padding: 18px 0;
}

.acp-chart-bar {
    flex: 1;
    display: grid;
    gap: 6px;
    align-items: end;
    text-align: center;
    min-height: 160px;
}

.acp-chart-bar span {
    display: block;
    background: linear-gradient(#9fc3e8, #4f789f);
    border-radius: 4px 4px 0 0;
}

.acp-admin-notes {
    width: 100%;
    min-height: 140px;
    margin-bottom: 12px;
}

.permission-details summary {
    cursor: pointer;
    color: #9fbedb;
    font-weight: 800;
}

.top-header .site-search input {
    width: 100% !important;
}

@media (max-width: 1180px) {
    .top-logo {
        min-width: 0 !important;
    }

    .top-logo span {
        display: none;
    }

    .main-navbar a {
        padding-left: 11px !important;
        padding-right: 11px !important;
    }

    .top-header .site-search {
        min-width: 240px !important;
    }
}

.profile-social-stats a {
    color: inherit;
    text-decoration: none;
}

.profile-social-stats a:hover {
    color: #bfdbfe;
}

.profile-social-widget .profile-widget-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.profile-social-widget .profile-widget-title a {
    color: #93c5fd;
    font-size: 11px;
    text-decoration: none;
    text-transform: uppercase;
}

.profile-mini-member {
    align-items: center;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: #dbeafe;
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    text-decoration: none;
}

.profile-mini-member:hover {
    background: rgba(143, 179, 212, 0.1);
}

.profile-mini-avatar {
    align-items: center;
    background: linear-gradient(135deg, #8fb3d4, #486784);
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 13px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    overflow: hidden;
    width: 34px;
}

.profile-mini-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.profile-mini-member strong,
.profile-mini-member em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-mini-member strong {
    color: #ffffff;
    font-size: 12px;
}

.profile-mini-member em {
    color: #9fb0c5;
    font-size: 11px;
    font-style: normal;
}

.moderation-settings-form {
    align-items: end;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(220px, 1fr) 220px auto;
    padding: 18px;
}

.moderation-settings-form .ips-form-actions {
    margin: 0;
}

.moderation-settings-form .ips-button {
    min-width: 190px;
    white-space: normal;
}

.staff-directory-page {
    margin: 0 auto;
    max-width: 1180px;
}

.staff-directory-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 18px;
}

.staff-directory-card {
    align-items: center;
    background: rgba(17, 25, 39, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 6px;
    color: #dbeafe;
    display: flex;
    gap: 14px;
    padding: 16px;
    text-decoration: none;
}

.staff-directory-card:hover {
    background: rgba(35, 49, 68, 0.86);
    border-color: rgba(143, 179, 212, 0.4);
}

.staff-directory-avatar {
    align-items: center;
    background: linear-gradient(135deg, #8fb3d4, #486784);
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 58px;
    font-size: 22px;
    font-weight: 900;
    height: 58px;
    justify-content: center;
    overflow: hidden;
    width: 58px;
}

.staff-directory-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.staff-directory-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.staff-directory-copy strong,
.staff-directory-copy em,
.staff-directory-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-directory-copy strong {
    color: #fff;
    font-size: 16px;
}

.staff-directory-copy em {
    color: #9fb0c5;
    font-size: 12px;
    font-style: normal;
}

.staff-directory-copy small {
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 800;
}

.urp-hugerte-editor-wrap {
    background: #111820;
    border: 1px solid rgba(143, 179, 212, 0.28);
    border-radius: 4px;
    overflow: hidden;
}

.urp-hugerte-editor-wrap textarea {
    background: #111820;
    color: #dbeafe;
    min-height: 260px;
    width: 100%;
}

.tox.tox-tinymce,
.tox-hugerte.tox-tinymce {
    border: 1px solid rgba(143, 179, 212, 0.28) !important;
    border-radius: 4px !important;
}

.streamer-mode-form {
    margin: 0;
}

.streamer-mode-toggle {
    align-items: center;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(147, 197, 253, 0.35);
    border-radius: 6px;
    color: #dbeafe;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    text-transform: uppercase;
}

.streamer-mode-toggle.is-on {
    background: rgba(248, 113, 113, 0.18);
    border-color: rgba(248, 113, 113, 0.55);
    color: #fecaca;
}

.user-dropdown-menu .streamer-mode-form {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding: 8px;
}

.user-dropdown-menu .streamer-mode-toggle {
    width: 100%;
}

.streamer-mode-banner,
.streamer-mode-admin-warning {
    background: linear-gradient(90deg, rgba(127, 29, 29, 0.95), rgba(30, 41, 59, 0.95));
    border-bottom: 1px solid rgba(248, 113, 113, 0.4);
    color: #fee2e2;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    padding: 10px 18px;
    text-align: center;
    text-transform: uppercase;
}

.streamer-mode-admin-warning {
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 6px;
    margin: 0 0 16px;
    text-align: left;
}

.streamer-mode-pill {
    background: rgba(248, 113, 113, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.42);
    border-radius: 999px;
    color: #fecaca;
    font-size: 11px;
    font-weight: 900;
    padding: 8px 12px;
    text-transform: uppercase;
}

.streamer-redacted-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px dashed rgba(248, 113, 113, 0.55);
    border-radius: 6px;
    color: #fee2e2;
    display: grid;
    gap: 6px;
    padding: 18px;
}

.streamer-redacted-card strong {
    color: #fecaca;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.streamer-redacted-card span {
    color: #cbd5e1;
    font-size: 13px;
}

@media (max-width: 700px) {
    .auth-card .urp-editor-toolbar,
    .reply-card .urp-editor-toolbar,
    .member-note-form .urp-editor-toolbar {
        flex-wrap: wrap;
        max-height: none;
        padding: 8px;
    }

    .urp-editor-modal {
        padding: 20px 12px;
    }
}

/* =========================================================
   Invision Community 5 inspired theme pass
========================================================= */

:root {
    --ips5-page: #0a0d12;
    --ips5-shell: rgba(13, 18, 25, 0.94);
    --ips5-panel: rgba(22, 28, 37, 0.94);
    --ips5-panel-2: rgba(27, 35, 47, 0.96);
    --ips5-panel-3: rgba(34, 43, 57, 0.98);
    --ips5-row: rgba(18, 24, 33, 0.84);
    --ips5-row-hover: rgba(31, 42, 56, 0.96);
    --ips5-border: rgba(149, 164, 184, 0.18);
    --ips5-border-bright: rgba(180, 198, 222, 0.28);
    --ips5-text: #f3f7fb;
    --ips5-muted: #a6b4c5;
    --ips5-soft: #cbd7e4;
    --ips5-blue: #74a8dc;
    --ips5-blue-dark: #426c96;
    --ips5-gold: #d5a353;
    --ips5-danger: #d96060;
    --ips5-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    --ips5-shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.2);
}

html {
    background: var(--ips5-page) !important;
}

body {
    background:
        linear-gradient(180deg, rgba(6, 9, 14, 0.74), rgba(8, 12, 18, 0.93) 46%, rgba(8, 12, 18, 0.98)),
        url("../img/image.png") center top / cover fixed no-repeat !important;
    color: var(--ips5-text) !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-size: 13px;
    font-weight: 700;
}

body::before {
    background:
        linear-gradient(90deg, rgba(116, 168, 220, 0.1), transparent 22%, transparent 78%, rgba(213, 163, 83, 0.08)),
        rgba(7, 10, 15, 0.22);
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

.top-header {
    background: rgba(12, 17, 24, 0.98) !important;
    border-bottom: 1px solid rgba(149, 164, 184, 0.18) !important;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35) !important;
    height: 72px;
}

.top-header-inner {
    height: 72px;
    max-width: 1500px;
    padding: 0 24px;
}

.top-logo {
    min-width: 300px;
}

.top-logo img {
    height: 46px;
}

.top-logo span {
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.main-navbar {
    justify-content: flex-start;
}

.main-navbar a {
    border-left: 1px solid rgba(149, 164, 184, 0.08) !important;
    color: #dce6f1;
    font-size: 13px;
    font-weight: 850;
    height: 72px;
    padding: 0 19px;
}

.main-navbar a:hover {
    background: rgba(116, 168, 220, 0.08) !important;
    color: #ffffff;
}

.main-navbar a.active {
    background: linear-gradient(180deg, rgba(116, 168, 220, 0.16), rgba(116, 168, 220, 0.06)) !important;
    color: #ffffff;
}

.main-navbar a.active::before {
    background: linear-gradient(90deg, var(--ips5-blue), var(--ips5-gold)) !important;
    height: 3px;
}

.top-header .site-search {
    flex: 0 1 390px;
}

.site-search input,
.acp-global-search input,
.ips-field input,
.ips-field textarea,
.ips-field select,
.auth-card input,
.auth-card textarea,
.settings-field input,
.settings-field textarea,
.profile-feed-form textarea,
.member-note-form textarea,
.urp-editor-surface {
    background: rgba(7, 11, 17, 0.72) !important;
    border: 1px solid rgba(149, 164, 184, 0.22) !important;
    border-radius: 5px !important;
    color: var(--ips5-text) !important;
}

.site-search input {
    height: 36px;
    min-width: 280px;
}

.site-search input::placeholder,
.acp-global-search input::placeholder {
    color: #79889a;
}

.site-search input:focus,
.acp-global-search input:focus,
.ips-field input:focus,
.ips-field textarea:focus,
.ips-field select:focus,
.auth-card input:focus,
.auth-card textarea:focus,
.settings-field input:focus,
.settings-field textarea:focus,
.member-note-form textarea:focus {
    border-color: rgba(116, 168, 220, 0.78) !important;
    box-shadow: 0 0 0 3px rgba(116, 168, 220, 0.16) !important;
}

.user-dropdown-toggle,
.notification-bell {
    background: rgba(22, 28, 37, 0.88) !important;
    border: 1px solid rgba(149, 164, 184, 0.18) !important;
    border-radius: 6px !important;
    color: #ffffff;
}

.user-dropdown-toggle:hover,
.notification-bell:hover {
    background: rgba(34, 43, 57, 0.96) !important;
    border-color: rgba(116, 168, 220, 0.36) !important;
}

.user-dropdown-menu,
.notification-menu {
    background: rgba(13, 18, 25, 0.99) !important;
    border: 1px solid rgba(149, 164, 184, 0.22) !important;
    border-radius: 6px !important;
    box-shadow: var(--ips5-shadow) !important;
}

.page-container {
    max-width: 1500px;
    padding: 22px 20px 46px;
    width: calc(100% - 42px);
}

.forum-layout {
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 310px;
}

.department-box,
.sidebar-card,
.topics-panel,
.faction-forum-card,
.profile-widget,
.profile-cover,
.settings-sidebar,
.settings-panel,
.auth-card,
.profile-card,
.thread-header,
.thread-shell,
.post-card,
.reply-card,
.ips-card,
.acp-forum-category,
.department-tab-panel,
.role-permission-group,
.member-role-editor section,
.warning-panel,
.warning-modal-box,
.acp-panel,
.editor-card {
    background: var(--ips5-panel) !important;
    border: 1px solid var(--ips5-border) !important;
    border-radius: 7px !important;
    box-shadow: var(--ips5-shadow-soft) !important;
    overflow: hidden;
}

.department-title,
.sidebar-title,
.panel-title,
.faction-forum-title,
.profile-widget-title,
.settings-title,
.settings-panel-header,
.reply-card-title,
.ips-card-title,
.acp-forum-category-head,
.role-permission-group h3,
.warning-modal-header,
.post-topbar,
.thread-header {
    background: linear-gradient(180deg, var(--ips5-panel-3), var(--ips5-panel-2)) !important;
    border-bottom: 1px solid var(--ips5-border-bright) !important;
    color: var(--ips5-text) !important;
}

.panel-title,
.faction-forum-title,
.sidebar-title,
.profile-widget-title,
.reply-card-title {
    align-items: center;
    display: flex;
    font-size: 13px;
    min-height: 46px !important;
    padding: 12px 16px !important;
    text-transform: none;
}

.faction-forum-title span,
.panel-title span,
.sidebar-title,
.profile-widget-title {
    letter-spacing: 0;
}

.faction-forum-row,
.department-row,
.topics-panel .topic-row,
.profile-list-row,
.profile-feed-post,
.settings-link,
.small-topic,
.member-search-row,
.notification-item {
    background: var(--ips5-row) !important;
    border-bottom: 1px solid rgba(149, 164, 184, 0.13) !important;
    color: var(--ips5-text) !important;
    transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.faction-forum-row,
.department-row,
.topics-panel .topic-row {
    min-height: 82px !important;
    padding: 15px 18px !important;
}

.faction-forum-row:hover,
.department-row:hover,
.topics-panel .topic-row:hover,
.profile-list-row:hover,
.settings-link:hover,
.settings-link.active,
.small-topic:hover,
.notification-item:hover {
    background: var(--ips5-row-hover) !important;
    border-color: rgba(116, 168, 220, 0.28) !important;
}

.faction-forum-row:hover,
.department-row:hover,
.topics-panel .topic-row:hover {
    transform: translateY(-1px);
}

.faction-forum-icon,
.forum-icon,
.latest-avatar,
.user-mini-avatar,
.profile-feed-avatar,
.profile-mini-avatar,
.staff-directory-avatar,
.ips-member-avatar,
.acp-member-avatar-large,
.acp-logo-mark,
.member-avatar {
    background: linear-gradient(180deg, #9fc2e3, #517da5) !important;
    border: 1px solid rgba(221, 232, 244, 0.24) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 9px 20px rgba(0, 0, 0, 0.24) !important;
}

.faction-forum-main strong,
.forum-info h3,
.topics-panel .topic-main strong,
.small-topic strong,
.post-author-name,
.profile-main-info h1,
.thread-header h1 {
    color: #ffffff !important;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.faction-forum-main span,
.faction-forum-latest,
.topic-main span,
.topic-latest,
.forum-info p,
.forum-latest,
.small-topic span,
.profile-widget-body,
.profile-stat-row span,
.profile-list-row span,
.profile-empty,
.settings-panel-header p,
.ips-node-meta,
.acp-empty,
.thread-meta {
    color: var(--ips5-muted) !important;
}

.faction-forum-count,
.forum-post-count,
.topic-stats {
    color: var(--ips5-soft) !important;
}

.faction-forum-count strong,
.forum-post-count strong,
.topic-stats strong {
    color: #ffffff !important;
    font-size: 22px;
    line-height: 1;
}

.latest-copy strong,
.forum-latest strong,
.topic-latest strong,
.latest-stats strong {
    color: #ffffff !important;
}

.breadcrumb {
    color: #d7e3ef !important;
    font-size: 12px;
    font-weight: 850;
    margin: 0 0 14px;
}

.breadcrumb a {
    color: var(--ips5-blue) !important;
}

.nav-button,
.top-signup,
.auth-card button,
.settings-submit,
.profile-follow-btn,
.profile-feed-form button,
.reply-card button,
.ips-button.primary,
.warning-open-btn,
.warning-submit-btn,
.department-inline-form button,
.department-member-add button,
.department-public-add button,
.department-forum-access button,
.thread-mod-button,
.member-note-form button {
    background: linear-gradient(180deg, #8eb9e0, #547fa8) !important;
    border: 1px solid rgba(210, 226, 242, 0.3) !important;
    border-radius: 5px !important;
    color: #ffffff !important;
    font-weight: 900;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.nav-button:hover,
.top-signup:hover,
.auth-card button:hover,
.settings-submit:hover,
.profile-follow-btn:hover,
.reply-card button:hover,
.ips-button.primary:hover,
.thread-mod-button:hover,
.member-note-form button:hover {
    filter: brightness(1.06);
}

.thread-mod-button.danger,
.post-mod-panel button.danger {
    background: linear-gradient(180deg, #c76e6e, #934a4a) !important;
    border-color: rgba(255, 190, 190, 0.28) !important;
}

.profile-cover-overlay {
    background:
        linear-gradient(90deg, rgba(8, 12, 18, 0.97), rgba(8, 12, 18, 0.7) 48%, rgba(8, 12, 18, 0.92)) !important;
}

.profile-avatar.large {
    border-radius: 8px !important;
}

.profile-social-stats a,
.profile-stat-row a,
.panel-title a,
.ips-actions a,
.post-topbar-actions a,
.latest-profile-link {
    color: var(--ips5-blue) !important;
}

.post-card {
    grid-template-columns: 220px minmax(0, 1fr);
}

.post-author-card {
    background: rgba(16, 23, 32, 0.82) !important;
    border-right: 1px solid rgba(149, 164, 184, 0.14) !important;
}

.post-body {
    color: #edf3f9 !important;
    font-size: 14px;
    line-height: 1.7;
}

.post-rank-tags img,
.profile-rank-tags img {
    filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.22));
}

.urp-editor,
.urp-hugerte-editor-wrap {
    background: rgba(9, 13, 19, 0.78) !important;
    border: 1px solid rgba(149, 164, 184, 0.22) !important;
    border-radius: 7px !important;
}

.urp-editor-toolbar {
    background: linear-gradient(180deg, var(--ips5-panel-3), var(--ips5-panel-2)) !important;
    border-bottom: 1px solid var(--ips5-border-bright) !important;
}

.urp-editor-toolbar button,
.urp-editor-toolbar select {
    background: rgba(255, 255, 255, 0.055) !important;
    border-color: rgba(149, 164, 184, 0.2) !important;
    border-radius: 5px !important;
}

.urp-editor-toolbar button:hover,
.urp-editor-toolbar select:hover {
    background: rgba(116, 168, 220, 0.16) !important;
    border-color: rgba(116, 168, 220, 0.38) !important;
}

.acp-body {
    background:
        linear-gradient(180deg, rgba(6, 9, 14, 0.72), rgba(8, 12, 18, 0.96)),
        url("../img/image.png") center top / cover fixed no-repeat !important;
}

.acp-sidebar {
    background: rgba(13, 18, 25, 0.98) !important;
    border-right: 1px solid rgba(149, 164, 184, 0.18) !important;
}

.acp-topbar {
    background: rgba(18, 24, 33, 0.96) !important;
    border-bottom: 1px solid rgba(149, 164, 184, 0.18) !important;
}

.acp-menu a {
    border-left: 3px solid transparent;
    color: #d7e3ef !important;
}

.acp-menu a:hover {
    background: rgba(116, 168, 220, 0.09) !important;
    border-left-color: var(--ips5-blue);
    color: #ffffff !important;
}

.acp-stat-card {
    background: linear-gradient(180deg, rgba(22, 28, 37, 0.96), rgba(14, 19, 27, 0.96)) !important;
    border: 1px solid var(--ips5-border) !important;
    border-radius: 7px !important;
}

@media (max-width: 1180px) {
    .top-header-inner {
        gap: 14px;
    }

    .top-logo {
        min-width: 0;
    }

    .top-header .site-search {
        flex-basis: 280px;
    }

    .main-navbar a {
        padding: 0 12px;
    }
}

@media (max-width: 900px) {
    .top-header,
    .top-header-inner {
        height: auto;
    }

    .top-header-inner {
        align-items: stretch;
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .main-navbar {
        flex: 1 1 100%;
        order: 4;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .main-navbar a {
        height: 46px;
        white-space: nowrap;
    }

    .top-header .site-search {
        flex: 1 1 260px;
    }

    .page-container {
        width: 100%;
        padding: 16px 12px 34px;
    }

    .forum-layout,
    .profile-layout {
        grid-template-columns: 1fr !important;
    }

    .post-card {
        grid-template-columns: 1fr;
    }

    .post-author-card {
        border-right: 0 !important;
        border-bottom: 1px solid rgba(149, 164, 184, 0.14) !important;
    }
}

/* =========================================================
   Clean IPS-style slate theme v2
========================================================= */

:root {
    --clean-bg: #090c11;
    --clean-header: #101722;
    --clean-panel: #111821;
    --clean-panel-head: #18212d;
    --clean-row: #101720;
    --clean-row-alt: #0e141d;
    --clean-row-hover: #172230;
    --clean-border: rgba(196, 211, 230, 0.18);
    --clean-border-strong: rgba(196, 211, 230, 0.34);
    --clean-text: #f7fbff;
    --clean-muted: #aab8c8;
    --clean-link: #8ec5ff;
    --clean-accent: #4f95d8;
    --clean-accent-dark: #326794;
    --clean-warn: #e56b6b;
}

body {
    background:
        linear-gradient(180deg, rgba(8, 11, 16, 0.82), rgba(8, 11, 16, 0.96)),
        url("../img/image.png") center top / cover fixed no-repeat !important;
    color: var(--clean-text) !important;
}

.top-header {
    background: var(--clean-header) !important;
    border-bottom: 1px solid var(--clean-border-strong) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42) !important;
}

.top-header-inner,
.page-container {
    max-width: 1560px;
}

.top-logo span {
    font-size: 23px;
}

.main-navbar a {
    color: #e3edf8 !important;
    font-weight: 900 !important;
}

.main-navbar a.active {
    background: #1d2838 !important;
}

.main-navbar a.active::before {
    background: #8ec5ff !important;
    height: 4px !important;
}

.main-navbar a:hover {
    background: #1a2330 !important;
}

.site-search input,
.acp-global-search input {
    background: #0b1018 !important;
    border-color: rgba(196, 211, 230, 0.28) !important;
    color: #ffffff !important;
}

.site-search input:focus,
.acp-global-search input:focus {
    border-color: #8ec5ff !important;
    box-shadow: 0 0 0 3px rgba(142, 197, 255, 0.16) !important;
}

.department-box,
.sidebar-card,
.topics-panel,
.faction-forum-card,
.profile-widget,
.profile-cover,
.settings-sidebar,
.settings-panel,
.auth-card,
.profile-card,
.thread-header,
.thread-shell,
.post-card,
.reply-card,
.ips-card,
.acp-forum-category,
.department-tab-panel,
.role-permission-group,
.member-role-editor section,
.warning-panel,
.warning-modal-box,
.acp-panel,
.editor-card,
.staff-directory-card {
    background: var(--clean-panel) !important;
    border: 1px solid var(--clean-border) !important;
    border-radius: 5px !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28) !important;
}

.department-title,
.sidebar-title,
.panel-title,
.faction-forum-title,
.profile-widget-title,
.settings-title,
.settings-panel-header,
.reply-card-title,
.ips-card-title,
.acp-forum-category-head,
.role-permission-group h3,
.warning-modal-header,
.post-topbar,
.thread-header {
    background: var(--clean-panel-head) !important;
    border-bottom: 1px solid var(--clean-border-strong) !important;
    color: #ffffff !important;
}

.faction-forum-title,
.panel-title,
.sidebar-title,
.profile-widget-title {
    color: #eaf4ff !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
}

.faction-forum-row,
.department-row,
.topics-panel .topic-row,
.profile-list-row,
.profile-feed-post,
.settings-link,
.small-topic,
.member-search-row,
.notification-item,
.ips-table td {
    background: var(--clean-row) !important;
    border-bottom: 1px solid rgba(196, 211, 230, 0.13) !important;
}

.faction-forum-row:nth-child(even),
.department-row:nth-child(even),
.topics-panel .topic-row:nth-child(even) {
    background: var(--clean-row-alt) !important;
}

.faction-forum-row:hover,
.department-row:hover,
.topics-panel .topic-row:hover,
.profile-list-row:hover,
.small-topic:hover,
.notification-item:hover {
    background: var(--clean-row-hover) !important;
    border-color: rgba(142, 197, 255, 0.32) !important;
}

.faction-forum-icon,
.forum-icon,
.latest-avatar,
.user-mini-avatar,
.profile-mini-avatar,
.staff-directory-avatar,
.ips-member-avatar,
.acp-member-avatar-large,
.member-avatar {
    background: linear-gradient(180deg, #9fcfff, #477ead) !important;
    border-color: rgba(229, 241, 255, 0.32) !important;
    border-radius: 5px !important;
}

.faction-forum-icon,
.forum-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.faction-forum-main strong,
.forum-info h3,
.topics-panel .topic-main strong,
.small-topic strong,
.post-author-name,
.profile-main-info h1,
.thread-header h1,
.staff-directory-copy strong {
    color: #ffffff !important;
}

.faction-forum-main span,
.faction-forum-latest,
.topic-main span,
.topic-latest,
.forum-info p,
.forum-latest,
.small-topic span,
.profile-widget-body,
.profile-stat-row span,
.profile-list-row span,
.profile-empty,
.thread-meta,
.staff-directory-copy em {
    color: var(--clean-muted) !important;
}

.breadcrumb a,
.panel-title a,
.profile-stat-row a,
.profile-social-stats a,
.latest-profile-link,
.ips-actions a {
    color: var(--clean-link) !important;
}

.nav-button,
.thread-mod-button,
.post-mod-toggle,
.top-signup,
.auth-card button,
.settings-submit,
.profile-follow-btn,
.reply-card button,
.ips-button.primary,
.member-note-form button,
.department-inline-form button,
.department-member-add button,
.department-public-add button,
.department-forum-access button {
    align-items: center;
    background: linear-gradient(180deg, #78b7f0, #3e78ad) !important;
    border: 1px solid rgba(218, 237, 255, 0.32) !important;
    border-radius: 5px !important;
    color: #ffffff !important;
    display: inline-flex;
    font-weight: 900 !important;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
}

.thread-mod-button.danger,
.post-mod-panel button.danger {
    background: linear-gradient(180deg, #c66b6b, #884747) !important;
}

.post-edit-link {
    align-items: center;
    background: rgba(142, 197, 255, 0.1);
    border: 1px solid rgba(142, 197, 255, 0.22);
    border-radius: 5px;
    color: #d8ecff !important;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    min-height: 28px;
    padding: 0 10px;
    text-transform: uppercase;
}

.post-edit-link:hover {
    background: rgba(142, 197, 255, 0.18);
}

.thread-mod-actions a.thread-mod-button {
    text-decoration: none;
}

.editor-actions-row {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

.editor-actions-row .ips-button.secondary {
    min-height: 38px;
    padding: 9px 13px;
}

.post-author-card {
    background: #131b27 !important;
}

.post-body {
    background: #101722;
    border: 1px solid rgba(196, 211, 230, 0.1);
    border-radius: 5px;
    margin: 18px;
    padding: 18px !important;
}

.profile-cover-overlay {
    background: linear-gradient(90deg, rgba(9, 12, 18, 0.98), rgba(9, 12, 18, 0.62), rgba(9, 12, 18, 0.9)) !important;
}

.acp-sidebar,
.acp-topbar {
    background: var(--clean-header) !important;
}

@media (max-width: 900px) {
    .post-body {
        margin: 12px;
    }

    .editor-actions-row {
        align-items: stretch;
        flex-direction: column-reverse;
    }
}

/* =========================================================
   Button and mention polish
========================================================= */

.nav-button,
.thread-mod-button,
.post-mod-toggle,
.post-edit-link,
.top-signup,
.auth-card button,
.settings-submit,
.profile-follow-btn,
.reply-card button,
.ips-button.primary,
.member-note-form button,
.department-inline-form button,
.department-member-add button,
.department-public-add button,
.department-forum-access button,
.steam-auth-button {
    background: #1b2838 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    color: #c6d4df !important;
    text-shadow: none;
}


.nav-button:hover,
.thread-mod-button:hover,
.post-mod-toggle:hover,
.post-edit-link:hover,
.top-signup:hover,
.auth-card button:hover,
.settings-submit:hover,
.profile-follow-btn:hover,
.reply-card button:hover,
.ips-button.primary:hover,
.member-note-form button:hover,
.department-inline-form button:hover,
.department-member-add button:hover,
.department-public-add button:hover,
.department-forum-access button:hover,
.steam-auth-button:hover {
    background: #2a475e !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    transform: none;
}

.thread-mod-button.danger,
.post-mod-panel button.danger {
    background: linear-gradient(180deg, #dc7373 0%, #9e4a4a 100%) !important;
    border-color: rgba(255, 212, 212, 0.36) !important;
}

.steam-auth-button {
    align-items: center;
    display: flex;
    font-size: 14px;
    font-weight: 900;
    justify-content: center;
    margin-top: 18px;
    min-height: 46px;
    text-decoration: none;
    text-transform: uppercase;
    width: 100%;
}

.auth-steam-copy,
.auth-steam-note {
    color: #aebdd0;
    line-height: 1.55;
    margin: 0;
}

.auth-steam-note {
    font-size: 12px;
    margin-top: 14px;
}

.steam-only-auth {
    max-width: 420px;
}

.auth-openid-notice {
    background: rgba(7, 11, 17, 0.55);
    border: 1px solid rgba(149, 164, 184, 0.22);
    border-radius: 6px;
    color: #b9c8d9;
    display: grid;
    gap: 6px;
    line-height: 1.55;
    margin-top: 16px;
    padding: 14px;
}

.auth-openid-notice strong {
    color: #ffffff;
    font-size: 13px;
}



.settings-help-text {
    color: #8fa2b8;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
}

.settings-field input[readonly] {
    cursor: not-allowed;
    opacity: 0.78;
}

.settings-success,
.settings-info-box {
    background: rgba(102, 183, 255, 0.1);
    border: 1px solid rgba(102, 183, 255, 0.28);
    border-radius: 6px;
    color: #dceeff;
    font-weight: 800;
    margin-bottom: 16px;
    padding: 13px 14px;
}

.settings-error-box {
    background: rgba(255, 83, 83, 0.1);
    border: 1px solid rgba(255, 83, 83, 0.32);
    border-radius: 6px;
    color: #ffd4d4;
    font-weight: 800;
    margin-bottom: 16px;
    padding: 13px 14px;
}

.settings-security-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.settings-security-card,
.settings-toggle {
    background: rgba(12, 18, 27, 0.72);
    border: 1px solid rgba(196, 211, 230, 0.16);
    border-radius: 6px;
    padding: 14px;
}

.settings-security-card strong,
.settings-security-card span,
.settings-security-card em {
    display: block;
}

.settings-security-card strong {
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 8px;
}

.settings-security-card span {
    color: #dce8f5;
    font-weight: 900;
}

.settings-security-card em {
    color: #8fa2b8;
    font-style: normal;
    margin-top: 4px;
}

.settings-security-wide {
    margin-top: 12px;
}

.settings-action-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.settings-button-link {
    align-items: center;
    background: linear-gradient(180deg, #66b7ff 0%, #3679b6 100%);
    border: 1px solid rgba(217, 237, 255, 0.38);
    border-radius: 6px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 900;
    min-height: 38px;
    padding: 9px 13px;
    text-decoration: none;
    text-transform: uppercase;
}

.settings-submit-inline {
    margin: 0;
    min-height: 38px;
    width: auto;
}

.two-factor-secret {
    background: rgba(7, 11, 17, 0.72);
    border: 1px solid rgba(149, 164, 184, 0.24);
    border-radius: 6px;
    color: #ffffff;
    display: block;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 12px 0;
    padding: 12px;
    white-space: normal;
    word-break: break-word;
}

.two-factor-qr {
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    margin: 16px auto 18px;
    max-width: 260px;
    padding: 12px;
}

.two-factor-qr canvas,
.two-factor-qr img,
.two-factor-qr svg {
    display: block;
    height: auto;
    max-width: 100%;
    width: 220px;
}

.two-factor-qr span {
    color: #111827;
    font-weight: 900;
}

.two-factor-qr.two-factor-redacted {
    background: rgba(7, 11, 17, 0.72);
    border: 1px solid rgba(255, 83, 83, 0.32);
    min-height: 220px;
}

.two-factor-qr.two-factor-redacted span {
    color: #ffd4d4;
    text-align: center;
}

.two-factor-key-label {
    color: #ffffff;
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.two-factor-secret-input {
    background: rgba(7, 11, 17, 0.72);
    border: 1px solid rgba(149, 164, 184, 0.24);
    border-radius: 6px;
    color: #ffffff;
    display: block;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding: 12px;
    width: 100%;
}

.two-factor-form {
    margin-top: 16px;
}

.settings-toggle-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.settings-toggle {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.settings-toggle span {
    display: grid;
    gap: 4px;
}

.settings-toggle strong {
    color: #ffffff;
}

.settings-toggle em {
    color: #9daec1;
    font-style: normal;
}

.settings-toggle input {
    min-width: 22px;
    min-height: 22px;
}

.auth-divider {
    align-items: center;
    color: #91a3b8;
    display: flex;
    font-size: 12px;
    font-weight: 900;
    gap: 12px;
    margin: 18px 0;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    background: rgba(196, 211, 230, 0.18);
    content: "";
    flex: 1;
    height: 1px;
}
.steam-auth-icon svg {
    fill: #c6d4df;
    height: 22px;
    width: 22px;
}
.steam-auth-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    margin-right: 9px;
    width: 24px;
}

.steam-auth-button-primary {
    margin-top: 0;
}

@media (max-width: 720px) {
    .settings-security-grid {
        grid-template-columns: 1fr;
    }
}

[data-richtext-portal] {
    background: #101722 !important;
    border: 1px solid rgba(142, 197, 255, 0.35) !important;
    border-radius: 8px !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42) !important;
    color: #eef6ff !important;
    min-width: 220px !important;
    overflow: hidden;
    z-index: 99999 !important;
}

[data-richtext-portal] span {
    color: #eef6ff !important;
}

[data-richtext-portal] span:hover,
[data-richtext-portal] .bg-item-active {
    background: rgba(102, 183, 255, 0.18) !important;
}

[data-richtext-portal] .itemUserEmpty,
[data-richtext-portal] div {
    color: #aebdd0 !important;
}

.urp-attribution-footer {
    align-items: center;
    color: rgba(203, 213, 225, 0.42);
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    font-weight: 800;
    gap: 7px;
    justify-content: flex-end;
    letter-spacing: 0.01em;
    margin: 26px auto 18px;
    max-width: 1520px;
    padding: 0 18px;
    pointer-events: none;
    text-align: right;
}

.urp-attribution-footer.acp {
    margin: 14px 0 22px;
    max-width: none;
    padding: 0 28px;
}

.urp-attribution-footer a {
    background: linear-gradient(90deg, rgba(216, 180, 254, 0.72), rgba(244, 114, 182, 0.72), rgba(167, 139, 250, 0.72));
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    pointer-events: auto;
    position: relative;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.08);
    transition: filter 0.18s ease, text-shadow 0.18s ease;
}

.urp-attribution-footer a::after {
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(216, 180, 254, 0.55) 0 1px, transparent 2px);
    background-position: 0 0, 11px 5px;
    background-size: 18px 14px;
    content: "";
    inset: -5px -7px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity 0.18s ease;
}

.urp-attribution-footer a:hover {
    animation: urp-attribution-shimmer 1.8s linear infinite;
    filter: saturate(1.18);
    text-shadow:
        0 0 10px rgba(168, 85, 247, 0.36),
        0 0 18px rgba(236, 72, 153, 0.18);
}

.urp-attribution-footer a:hover::after {
    animation: urp-attribution-sparkle 1.2s ease-in-out infinite;
    opacity: 0.72;
}

@keyframes urp-attribution-shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 220% 50%;
    }
}

@keyframes urp-attribution-sparkle {
    0%,
    100% {
        opacity: 0.22;
        transform: translateY(0);
    }

    50% {
        opacity: 0.75;
        transform: translateY(-1px);
    }
}

@media (max-width: 720px) {
    .urp-attribution-footer,
    .urp-attribution-footer.acp {
        font-size: 10px;
        justify-content: center;
        margin: 20px auto 14px;
        padding: 0 14px;
        text-align: center;
    }
}

/* =========================================================
   ACP member sections and mobile forum cleanup
========================================================= */

.admin-member-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.admin-member-tabs a {
    background: rgba(21, 28, 39, 0.92);
    border: 1px solid rgba(196, 211, 230, 0.18);
    border-radius: 6px;
    color: #cbd7e6;
    font-weight: 900;
    padding: 10px 13px;
    text-decoration: none;
}

.admin-member-tabs a.active,
.admin-member-tabs a:hover {
    background: linear-gradient(180deg, #28405b, #1d2c3f);
    border-color: rgba(142, 197, 255, 0.42);
    color: #ffffff;
}

.ips-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.ips-actions form {
    margin: 0;
}

.ips-inline-action {
    background: rgba(142, 197, 255, 0.12);
    border: 1px solid rgba(142, 197, 255, 0.28);
    border-radius: 5px;
    color: #dceeff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    min-height: 28px;
    padding: 0 10px;
    text-transform: uppercase;
}

.ips-pill.yellow {
    background: rgba(234, 179, 8, 0.16);
    border: 1px solid rgba(234, 179, 8, 0.35);
    color: #fde68a;
}

@media (max-width: 760px) {
    .forum-layout {
        display: block !important;
    }

    .sidebar {
        margin-top: 14px;
    }

    .faction-forum-row,
    .department-row,
    .topics-panel .topic-row,
    .member-search-row {
        align-items: start !important;
        display: grid !important;
        gap: 10px !important;
        grid-template-columns: 44px minmax(0, 1fr) !important;
        min-height: 0 !important;
        padding: 14px !important;
    }

    .faction-forum-main,
    .forum-info,
    .topic-main,
    .member-search-main {
        min-width: 0;
    }

    .faction-forum-count,
    .forum-post-count,
    .topic-stats {
        grid-column: 1 / -1;
        justify-self: start;
        text-align: left;
    }

    .faction-forum-latest,
    .forum-latest,
    .topic-latest,
    .member-search-meta {
        grid-column: 1 / -1;
        justify-content: start;
        text-align: left;
        width: 100%;
    }

    .latest-stats {
        min-width: 0;
    }

    .top-header .site-search {
        flex: 1 1 100%;
        order: 3;
    }

    .site-search input {
        min-width: 0 !important;
        width: 100% !important;
    }

    .ips-table,
    .ips-table thead,
    .ips-table tbody,
    .ips-table tr,
    .ips-table th,
    .ips-table td {
        display: block;
        width: 100%;
    }

    .ips-table thead {
        display: none;
    }

    .ips-table tr {
        border-bottom: 1px solid rgba(196, 211, 230, 0.16);
        padding: 10px;
    }

    .ips-table td {
        border: 0 !important;
        padding: 8px 4px !important;
    }

    .ips-actions {
        justify-content: flex-start;
    }
}

/* Remove latest post fallback icon tile/background */
.faction-forum-latest .latest-avatar,
.latest-avatar,
a.latest-avatar,
span.latest-avatar {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

.faction-forum-latest .latest-avatar img,
.latest-avatar img {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    object-fit: contain !important;
}
.latest-avatar {
    font-size: 0 !important;
    color: transparent !important;
}

.modcp-queue-page {
    max-width: 1180px;
}

.modcp-queue-card .ips-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.modcp-queue-card .ips-card-title small {
    color: rgba(214, 226, 242, 0.62);
    font-size: 0.82rem;
}

.modcp-empty {
    display: grid;
    gap: 5px;
    padding: 22px;
    color: rgba(235, 243, 252, 0.78);
}

.modcp-empty span,
.modcp-author small,
.modcp-topic-link small {
    color: rgba(188, 205, 224, 0.7);
}

.modcp-queue-list {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.modcp-queue-item {
    border: 1px solid rgba(143, 174, 207, 0.24);
    background: rgba(9, 16, 26, 0.56);
    border-radius: 8px;
    overflow: hidden;
}

.modcp-queue-meta {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(220px, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    background: rgba(31, 45, 63, 0.78);
    border-bottom: 1px solid rgba(143, 174, 207, 0.18);
}

.modcp-author {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #f3f7fb;
    text-decoration: none;
}

.modcp-author span:last-child,
.modcp-topic-link {
    display: grid;
    gap: 2px;
}

.modcp-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #82afd8, #3a5573);
    color: #fff;
    font-weight: 900;
}

.modcp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modcp-topic-link a {
    color: #f5f8fc;
    font-weight: 900;
    text-decoration: none;
}

.modcp-warning-label {
    margin: 14px 16px 0;
    padding: 9px 11px;
    border: 1px solid rgba(255, 104, 104, 0.28);
    background: rgba(94, 23, 35, 0.34);
    color: #ffd2d2;
    border-radius: 6px;
    font-size: 0.86rem;
    font-weight: 800;
}

.modcp-queue-preview {
    padding: 16px;
    color: #edf5ff;
    line-height: 1.55;
}

.modcp-queue-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px 16px;
}

.modcp-queue-actions form {
    margin: 0;
}

.modcp-pagination {
    align-items: center;
    border-top: 1px solid rgba(143, 174, 207, 0.18);
    color: rgba(230, 239, 250, 0.74);
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 14px 16px 18px;
}

.modcp-pagination .disabled {
    cursor: default;
    opacity: 0.45;
    pointer-events: none;
}

.warning-penalty-grid {
    display: grid;
    gap: 12px;
}

.warning-penalty-card,
.warning-expiration-card {
    border: 1px solid rgba(143, 174, 207, 0.24);
    background: rgba(10, 17, 28, 0.64);
    border-radius: 8px;
    padding: 13px;
}

.warning-penalty-card-danger {
    border-color: rgba(255, 112, 112, 0.28);
    background: rgba(44, 18, 25, 0.34);
}

.warning-penalty-toggle {
    align-items: flex-start !important;
    color: #f3f8ff !important;
    display: flex !important;
    gap: 11px !important;
    margin: 0 !important;
    text-transform: none !important;
}

.warning-penalty-toggle input {
    flex: 0 0 auto;
    margin-top: 4px;
}

.warning-penalty-toggle span {
    display: grid;
    gap: 3px;
}

.warning-penalty-toggle strong {
    font-size: 0.93rem;
    font-weight: 900;
}

.warning-penalty-toggle em {
    color: rgba(195, 211, 231, 0.78);
    font-size: 0.82rem;
    font-style: normal;
    line-height: 1.35;
}

.warning-duration-options {
    border-top: 1px solid rgba(143, 174, 207, 0.16);
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
}

.warning-duration-options label {
    align-items: center;
    color: rgba(233, 241, 252, 0.86) !important;
    display: flex !important;
    font-size: 0.82rem !important;
    gap: 8px;
    margin: 0 !important;
    text-transform: none !important;
}

.warning-expiration-card {
    margin-top: 4px;
}

.warning-expiration-card > p {
    color: rgba(195, 211, 231, 0.76);
    font-size: 0.82rem;
    margin: -2px 0 12px;
}

.warning-suspend-date {
    border-top: 1px solid rgba(143, 174, 207, 0.16);
    margin-top: 12px;
    padding-top: 12px;
}

@media (max-width: 760px) {
    .modcp-queue-meta {
        grid-template-columns: 1fr;
    }

    .modcp-queue-actions {
        flex-direction: column;
    }

    .modcp-queue-actions .ips-button {
        width: 100%;
    }

    .modcp-pagination {
        flex-wrap: wrap;
    }

    .warning-penalty-card,
    .warning-expiration-card {
        padding: 11px;
    }
}


.settings-steam-notice {
    align-items: flex-start;
    background: rgba(7, 11, 17, 0.55);
    border: 1px solid rgba(149, 164, 184, 0.22);
    border-left: 2px solid rgba(149, 164, 184, 0.5);
    border-radius: 6px;
    color: #8fa2b8;
    display: flex;
    font-size: 12px;
    gap: 8px;
    line-height: 1.55;
    margin-bottom: 18px;
    padding: 10px 14px;
}

.settings-security-card-label {
    color: #7a8fa6;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.settings-security-card-value {
    color: #f0f4f8;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.settings-security-card-meta {
    color: #6b7e94;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.settings-2fa-badge {
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    text-transform: uppercase;
}

.settings-2fa-badge--on {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: #86efac;
}

.settings-2fa-badge--off {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #94a3b8;
}

.settings-security-card--staff {
    border-left: 2px solid rgba(251, 191, 36, 0.4) !important;
}

.settings-submit-danger {
    background: rgba(220, 38, 38, 0.15) !important;
    border: 1px solid rgba(220, 38, 38, 0.35) !important;
    color: #fca5a5 !important;
}

.settings-submit-danger:hover {
    background: rgba(220, 38, 38, 0.28) !important;
    border-color: rgba(220, 38, 38, 0.5) !important;
}

.settings-button-link {
    background: rgba(149, 164, 184, 0.1);
    border: 1px solid rgba(149, 164, 184, 0.24);
    border-radius: 5px;
    color: #c8d6e5;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.03em;
    padding: 7px 14px;
    text-decoration: none;
    text-transform: uppercase;
}

.settings-button-link:hover {
    background: rgba(149, 164, 184, 0.18);
    color: #ffffff;
}