/* JALEXSI Forum v1 — compact CS 1.6 Jail community index */

.forum-page {
    --forum-panel: #0b1120;
    --forum-panel-2: #0f1627;
    --forum-line: rgba(125, 94, 210, .24);
    --forum-line-strong: rgba(139, 92, 246, .58);
    --forum-purple: #8b5cf6;
    --forum-purple-light: #b69aff;
    --forum-cyan: #3ee6c3;
    --forum-danger: #ff4778;
    --forum-muted: #8994b0;

    position: relative;
    min-height: calc(100vh - 72px);
    padding: 0 0 56px;

    background:
        radial-gradient(circle at 12% 4%, rgba(82, 46, 165, .13), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(34, 69, 132, .10), transparent 25%),
        linear-gradient(180deg, rgba(5, 8, 16, .98), #060912 34%, #050810);
}

.forum-page::before {
    content: "";
    position: absolute;
    inset: 72px 0 auto;
    height: 260px;
    pointer-events: none;
    opacity: .18;
    background:
        linear-gradient(90deg, rgba(4, 7, 14, .96), rgba(4, 7, 14, .45), rgba(4, 7, 14, .96)),
        url("../images/home/hero-prison.jpg") center 36% / cover no-repeat;
    mask-image: linear-gradient(#000 0, #000 45%, transparent 100%);
}

.forum-page > * {
    position: relative;
    z-index: 1;
}

.forum-page-head {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 16px;
}

.forum-breadcrumbs {
    min-height: 22px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #7f8aa7;
    font-size: 12px;
}

.forum-breadcrumbs a:hover {
    color: var(--forum-purple-light);
}

.forum-breadcrumbs strong {
    color: #c4cbe0;
    font-weight: 650;
}

.forum-page-head__main {
    min-height: 112px;
    padding: 18px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.forum-page-head__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--forum-purple-light);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 2.4px;
}

.forum-page-head h1 {
    margin: 0;
    color: #f7f8ff;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.05;
    letter-spacing: -.8px;
}

.forum-page-head p {
    max-width: 760px;
    margin: 9px 0 0;
    color: #a0aac3;
    font-size: 14px;
    line-height: 1.55;
}

.forum-page-head__actions,
.forum-topic-toolbar__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.forum-primary-button,
.forum-secondary-button {
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.forum-primary-button {
    color: #fff;
    border-color: rgba(178, 124, 255, .66);
    background: linear-gradient(135deg, #6c32dc, #9a45f5);
    box-shadow: 0 9px 28px rgba(102, 42, 218, .25);
}

.forum-primary-button:hover,
.forum-secondary-button:hover {
    transform: translateY(-1px);
}

.forum-secondary-button {
    color: #d1d7e9;
    border-color: var(--forum-line);
    background: rgba(16, 23, 40, .88);
}

.forum-secondary-button:hover {
    color: #fff;
    border-color: var(--forum-line-strong);
}

.forum-tools {
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid rgba(120, 93, 190, .18);
}

.forum-search {
    width: min(480px, 100%);
    height: 40px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--forum-line);
    border-radius: 8px;
    background: rgba(10, 15, 28, .92);
}

.forum-search > span {
    color: #9d75f6;
    text-align: center;
    font-size: 19px;
}

.forum-search input {
    width: 100%;
    height: 100%;
    padding: 0;
    color: #eef0fb;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 12px;
}

.forum-search input::placeholder {
    color: #6f7a98;
}

.forum-search button {
    height: 100%;
    padding: 0 16px;
    color: #cbbcff;
    border: 0;
    border-left: 1px solid var(--forum-line);
    cursor: pointer;
    background: rgba(103, 55, 183, .14);
    font-size: 11px;
    font-weight: 800;
}

.forum-unread-link {
    min-height: 36px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #b3bdd5;
    border: 1px solid var(--forum-line);
    border-radius: 8px;
    background: rgba(11, 17, 31, .78);
    font-size: 11px;
    font-weight: 750;
}

.forum-unread-link span {
    color: var(--forum-purple);
    font-size: 8px;
}

.forum-unread-link:hover,
.forum-unread-link.is-active {
    color: #fff;
    border-color: var(--forum-line-strong);
}

.forum-layout {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 16px;
}

.forum-main-column,
.forum-sidebar {
    min-width: 0;
    display: grid;
    gap: 14px;
}

.forum-category,
.forum-topic-panel,
.forum-side-panel,
.forum-server-card,
.forum-editor,
.forum-topic-toolbar,
.forum-moderation-panel,
.forum-reply-editor,
.forum-reply-locked,
.forum-member-card,
.forum-member-posts {
    overflow: hidden;
    border: 1px solid var(--forum-line);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(15, 22, 39, .96), rgba(8, 13, 24, .96));
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18);
}

.forum-category.is-staff {
    border-color: rgba(255, 71, 120, .34);
}

.forum-category__head,
.forum-topic-panel__head,
.forum-side-panel__head,
.forum-editor__head,
.forum-reply-editor > header {
    min-height: 54px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(124, 96, 199, .17);
    background: rgba(7, 11, 21, .42);
}

.forum-category__head > div,
.forum-topic-panel__head > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.forum-category__head > div > span {
    color: #9b6ff0;
    font-size: 10px;
    font-weight: 900;
}

.forum-category__head h2,
.forum-topic-panel__head h2,
.forum-side-panel__head h2,
.forum-editor__head h2,
.forum-reply-editor h2 {
    margin: 0;
    color: #f0f2fb;
    font-size: 14px;
    line-height: 1.25;
}

.forum-category__head p {
    flex: 1;
    margin: 0;
    color: #77829d;
    text-align: right;
    font-size: 10px;
}

.forum-category__head > b {
    padding: 5px 8px;
    color: #ff7197;
    border: 1px solid rgba(255, 71, 120, .32);
    border-radius: 5px;
    background: rgba(255, 71, 120, .10);
    font-size: 8px;
    letter-spacing: .6px;
}

.forum-section-list,
.forum-topic-list,
.forum-latest-list {
    display: grid;
}

.forum-section-row {
    position: relative;
    min-height: 94px;
    display: grid;
    grid-template-columns: 60px minmax(280px, 1fr) 145px minmax(250px, 31%);
    align-items: center;
    border-bottom: 1px solid rgba(124, 96, 199, .14);
    transition: background .15s ease, border-color .15s ease;
}

.forum-section-row:last-child,
.forum-topic-row:last-child,
.forum-latest-item:last-child {
    border-bottom: 0;
}

.forum-section-row::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(139, 92, 246, .76);
    box-shadow: 0 0 18px rgba(139, 92, 246, .28);
}

.forum-section-row.is-staff::before {
    background: var(--forum-danger);
}

.forum-section-row:hover {
    background: rgba(105, 69, 180, .055);
}

.forum-section-row.is-unread {
    background: linear-gradient(90deg, rgba(116, 68, 211, .09), transparent 68%);
}

.forum-section-row__icon {
    width: 38px;
    height: 38px;
    margin-left: 14px;
    display: grid;
    place-items: center;
    color: #aa83ff;
    border: 1px solid rgba(142, 92, 246, .26);
    border-radius: 9px;
    background: rgba(110, 61, 205, .12);
    font-size: 14px;
    font-weight: 850;
}

.forum-section-row__copy {
    min-width: 0;
    padding: 14px 14px 14px 0;
}

.forum-section-row__copy > a {
    color: #f0f2fc;
    font-size: 14px;
    font-weight: 820;
}

.forum-section-row__copy > a:hover {
    color: var(--forum-purple-light);
}

.forum-section-row__copy > p {
    margin: 4px 0 0;
    overflow: hidden;
    color: #8791aa;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
}

.forum-subsections {
    margin-top: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
}

.forum-subsections a {
    color: #a38bd9;
    font-size: 9px;
    font-weight: 670;
}

.forum-subsections a span {
    margin-right: 5px;
    color: #8055db;
}

.forum-subsections a:hover {
    color: #d6c7ff;
}

.forum-section-row__numbers,
.forum-topic-row__numbers {
    min-height: 52px;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-left: 1px solid rgba(124, 96, 199, .12);
    border-right: 1px solid rgba(124, 96, 199, .12);
}

.forum-section-row__numbers span,
.forum-topic-row__numbers span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    color: #77829b;
    font-size: 8px;
}

.forum-section-row__numbers strong,
.forum-topic-row__numbers strong {
    color: #dce1ef;
    font-size: 12px;
}

.forum-section-row__latest,
.forum-topic-row__last {
    min-width: 0;
    padding: 12px 13px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 10px;
    align-items: center;
    gap: 9px;
}

.forum-section-row__latest > span:nth-child(2),
.forum-topic-row__last > span:nth-child(2) {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.forum-section-row__latest strong,
.forum-topic-row__last strong {
    overflow: hidden;
    color: #cdd3e5;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
}

.forum-section-row__latest small,
.forum-topic-row__last small {
    overflow: hidden;
    color: #727d98;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 8px;
}

.forum-section-row__latest > b,
.forum-topic-row__last > b {
    color: #7650c8;
}

.forum-section-row__empty {
    padding: 12px 16px;
    color: #626e89;
    text-align: center;
    font-size: 9px;
}

.forum-mini-avatar,
.forum-online-users a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #f3edff;
    border: 1px solid rgba(161, 108, 255, .36);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 25%, rgba(194, 152, 255, .32), transparent 38%),
        #1b1332;
    font-size: 11px;
    font-weight: 850;
}

.forum-side-panel__head {
    min-height: 50px;
}

.forum-side-panel__head a,
.forum-side-panel__head > span,
.forum-topic-panel__head > small {
    color: #9d7ae6;
    font-size: 9px;
    font-weight: 750;
}

.forum-latest-item {
    min-height: 66px;
    padding: 11px 13px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid rgba(124, 96, 199, .13);
}

.forum-latest-item:hover {
    background: rgba(104, 65, 183, .07);
}

.forum-latest-item__copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.forum-latest-item__copy strong {
    overflow: hidden;
    color: #dce0ed;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
}

.forum-latest-item__copy small {
    overflow: hidden;
    color: #74809b;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 8px;
}

.forum-latest-item__count {
    padding: 5px 7px;
    color: #b1bad0;
    border: 1px solid rgba(120, 91, 190, .20);
    border-radius: 6px;
    background: rgba(11, 16, 29, .72);
    font-size: 8px;
}

.forum-side-empty {
    padding: 18px 15px;
    color: #6f7a94;
    font-size: 10px;
    line-height: 1.5;
}

.forum-server-card {
    padding: 14px;
}

.forum-server-card > header {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.forum-server-card > header strong {
    color: #f0f2fb;
    font-size: 16px;
}

.forum-server-card > header span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--forum-cyan);
    font-size: 8px;
    font-weight: 800;
}

.forum-server-card > header i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--forum-cyan);
    box-shadow: 0 0 9px rgba(62, 230, 195, .7);
}

.forum-server-card__scene {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
}

.forum-server-card__scene img {
    width: 92px;
    height: 84px;
    object-fit: cover;
    border: 1px solid rgba(135, 93, 219, .28);
    border-radius: 7px;
}

.forum-server-card__scene div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.forum-server-card__scene small {
    color: #8170aa;
    font-size: 8px;
    font-weight: 800;
}

.forum-server-card__scene strong {
    margin-top: 5px;
    color: #e8eaf5;
    font-size: 11px;
}

.forum-server-card__scene p {
    margin: 5px 0 0;
    color: #78839e;
    font-size: 8px;
    line-height: 1.45;
}

.forum-server-card > a {
    min-height: 36px;
    margin-top: 12px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    border: 1px solid rgba(169, 112, 255, .54);
    border-radius: 7px;
    background: linear-gradient(135deg, #6630d1, #8e3cff);
    font-size: 10px;
    font-weight: 800;
}

.forum-online-users {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.forum-online-users a {
    transition: transform .15s ease;
}

.forum-online-users a:hover {
    transform: translateY(-2px);
}

.forum-stats-grid {
    padding: 13px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.forum-stats-grid span {
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #74809a;
    border: 1px solid rgba(124, 96, 199, .13);
    border-radius: 7px;
    background: rgba(5, 9, 18, .34);
    font-size: 7px;
}

.forum-stats-grid strong {
    color: #ecedf6;
    font-size: 13px;
}

.forum-topic-panel__head > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
}

.forum-topic-panel__head > div > span,
.forum-editor__head span,
.forum-reply-editor header span,
.forum-member-card > div:nth-child(2) > span {
    color: #9873e4;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 1.4px;
}

.forum-topic-row {
    min-height: 82px;
    display: grid;
    grid-template-columns: 52px minmax(260px, 1fr) 150px minmax(210px, 28%);
    align-items: center;
    border-bottom: 1px solid rgba(124, 96, 199, .13);
}

.forum-topic-row.is-unread {
    background: linear-gradient(90deg, rgba(119, 67, 218, .10), transparent 72%);
}

.forum-topic-row__state {
    text-align: center;
    color: #8f66e7;
    font-size: 14px;
}

.forum-topic-row__copy {
    min-width: 0;
    padding: 12px 12px 12px 0;
}

.forum-topic-row__badges {
    margin-bottom: 5px;
    display: flex;
    gap: 5px;
}

.forum-topic-row__badges:empty {
    display: none;
}

.forum-topic-row__badges span {
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .5px;
}

.forum-topic-row__badges .is-pinned {
    color: #f1c8ff;
    background: rgba(159, 73, 223, .18);
}

.forum-topic-row__badges .is-locked {
    color: #b7c2da;
    background: rgba(113, 126, 158, .17);
}

.forum-topic-row__badges .is-new {
    color: #63f0d0;
    background: rgba(46, 208, 175, .12);
}

.forum-topic-row__title {
    display: block;
    overflow: hidden;
    color: #edf0f9;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 780;
}

.forum-topic-row__title:hover {
    color: var(--forum-purple-light);
}

.forum-topic-row__meta {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    color: #6f7b96;
    font-size: 8px;
}

.forum-topic-row__meta a {
    color: #a28bd4;
}

.forum-alert {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px 15px;
    color: #dfe4f1;
    border: 1px solid rgba(86, 219, 168, .28);
    border-radius: 8px;
    background: rgba(32, 143, 102, .10);
    font-size: 11px;
    line-height: 1.5;
}

.forum-alert.is-error {
    border-color: rgba(255, 76, 111, .35);
    background: rgba(176, 38, 69, .12);
}

.forum-alert.is-warning {
    border-color: rgba(240, 174, 69, .32);
    background: rgba(161, 101, 26, .12);
}

.forum-empty-state {
    min-height: 180px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #79849e;
    text-align: center;
    border: 1px solid var(--forum-line);
    border-radius: 10px;
    background: rgba(11, 16, 28, .78);
    font-size: 11px;
}

.forum-empty-state.is-inline {
    min-height: 150px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.forum-empty-state strong {
    color: #e3e7f1;
    font-size: 14px;
}

.forum-empty-state a {
    margin-top: 7px;
    color: var(--forum-purple-light);
    font-weight: 750;
}

.forum-pagination {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    border-top: 1px solid rgba(124, 96, 199, .13);
}

.forum-pagination a,
.forum-pagination > span:not(.forum-pagination__count) {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #aeb7cc;
    border: 1px solid rgba(124, 96, 199, .20);
    border-radius: 6px;
    background: rgba(8, 13, 24, .75);
    font-size: 9px;
}

.forum-pagination .is-current {
    color: #fff !important;
    border-color: rgba(151, 89, 249, .65) !important;
    background: rgba(116, 59, 215, .40) !important;
}

.forum-pagination .is-disabled {
    opacity: .4;
}

.forum-pagination__count {
    margin: 0 5px;
    color: #747f98;
    font-size: 8px;
}

.forum-editor {
    padding-bottom: 18px;
}

.forum-editor__head,
.forum-reply-editor > header {
    margin-bottom: 17px;
}

.forum-editor__head > div,
.forum-reply-editor header > div {
    display: grid;
    gap: 4px;
}

.forum-editor__head small,
.forum-reply-editor header small {
    color: #77829a;
    font-size: 9px;
}

.forum-field {
    margin: 0 18px 16px;
    display: grid;
    gap: 8px;
}

.forum-field > span {
    color: #c8cee0;
    font-size: 10px;
    font-weight: 780;
}

.forum-field input,
.forum-field textarea,
.forum-reply-editor textarea,
.forum-inline-editor input,
.forum-inline-editor textarea,
.forum-moderation-panel input,
.forum-moderation-panel select {
    width: 100%;
    color: #eef0f8;
    border: 1px solid rgba(124, 96, 199, .26);
    border-radius: 8px;
    outline: 0;
    background: rgba(5, 9, 18, .72);
}

.forum-field input {
    height: 44px;
    padding: 0 13px;
}

.forum-field textarea,
.forum-reply-editor textarea,
.forum-inline-editor textarea {
    padding: 13px;
    resize: vertical;
    line-height: 1.65;
}

.forum-field input:focus,
.forum-field textarea:focus,
.forum-reply-editor textarea:focus,
.forum-inline-editor input:focus,
.forum-inline-editor textarea:focus {
    border-color: rgba(156, 94, 252, .70);
    box-shadow: 0 0 0 3px rgba(121, 66, 214, .11);
}

.forum-field > small {
    color: #6f7a94;
    font-size: 8px;
}

.forum-editor__actions {
    padding: 2px 18px 0;
    display: flex;
    gap: 9px;
}

.forum-topic-toolbar {
    min-height: 60px;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.forum-topic-toolbar__state {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.forum-topic-toolbar__state span {
    padding: 5px 8px;
    color: #7c88a3;
    border-radius: 5px;
    background: rgba(122, 101, 180, .08);
    font-size: 8px;
}

.forum-topic-toolbar__state .is-pinned {
    color: #d8bdff;
    background: rgba(135, 70, 220, .16);
}

.forum-topic-toolbar__state .is-locked {
    color: #ff91ae;
    background: rgba(209, 54, 96, .12);
}

.forum-topic-toolbar form {
    margin: 0;
}

.forum-moderation-panel {
    border-color: rgba(240, 78, 123, .25);
}

.forum-moderation-panel > summary {
    min-height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0c8ff;
    cursor: pointer;
    list-style: none;
    font-size: 10px;
    font-weight: 800;
}

.forum-moderation-panel > summary::-webkit-details-marker {
    display: none;
}

.forum-moderation-panel > summary b {
    margin-left: auto;
    color: #806e9e;
    font-size: 8px;
}

.forum-moderation-panel__body {
    padding: 13px;
    display: grid;
    gap: 10px;
    border-top: 1px solid rgba(240, 78, 123, .16);
}

.forum-moderation-actions,
.forum-moderation-move,
.forum-moderation-delete {
    display: flex;
    gap: 8px;
}

.forum-moderation-panel button {
    min-height: 36px;
    padding: 0 12px;
    color: #ddd4ef;
    border: 1px solid rgba(139, 92, 246, .30);
    border-radius: 6px;
    cursor: pointer;
    background: rgba(89, 53, 154, .15);
    font-size: 9px;
    font-weight: 750;
}

.forum-moderation-panel input,
.forum-moderation-panel select {
    height: 36px;
    padding: 0 10px;
    font-size: 9px;
}

.forum-moderation-move select {
    max-width: 290px;
}

.forum-moderation-delete button {
    color: #ff9ab5;
    border-color: rgba(255, 71, 120, .30);
    background: rgba(176, 37, 72, .13);
}

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

.forum-post {
    min-height: 220px;
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--forum-line);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(14, 21, 37, .97), rgba(8, 13, 24, .97));
}

.forum-post__author {
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(124, 96, 199, .15);
    background: rgba(5, 9, 18, .34);
}

.forum-author-avatar {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    color: #f7f0ff;
    border: 2px solid rgba(151, 93, 242, .58);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 25%, rgba(205, 164, 255, .31), transparent 38%),
        linear-gradient(145deg, #29194b, #11182b);
    box-shadow: 0 0 22px rgba(123, 61, 220, .16);
    font-size: 22px;
    font-weight: 900;
}

.forum-author-avatar.is-large {
    width: 84px;
    height: 84px;
    font-size: 28px;
}

.forum-post__username {
    max-width: 100%;
    margin-top: 10px;
    overflow: hidden;
    color: #eef0f9;
    text-overflow: ellipsis;
    font-size: 12px;
    font-weight: 820;
}

.forum-role-badge {
    margin-top: 6px;
    padding: 4px 7px;
    color: #d6baff;
    border: 1px solid rgba(155, 89, 245, .30);
    border-radius: 4px;
    background: rgba(127, 59, 216, .13);
    font-size: 7px;
    font-weight: 850;
}

.forum-role-badge.is-member {
    color: #aab4ca;
    border-color: rgba(120, 135, 166, .22);
    background: rgba(82, 96, 126, .10);
}

.forum-author-stats {
    width: 100%;
    margin: 16px 0 0;
    display: grid;
    gap: 6px;
}

.forum-author-stats div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #707c96;
    font-size: 8px;
}

.forum-author-stats dd {
    margin: 0;
    color: #adb6cb;
    font-weight: 750;
}

.forum-post__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.forum-post__head {
    min-height: 48px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(124, 96, 199, .13);
}

.forum-post__head > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.forum-post__label {
    color: #a47ae9;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .9px;
}

.forum-post__head time,
.forum-post__head > a {
    color: #6f7a94;
    font-size: 8px;
}

.forum-post__body {
    min-height: 120px;
    padding: 20px 18px;
    color: #d8dce9;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.78;
}

.forum-post__edited {
    padding: 0 18px 12px;
    color: #626f8b;
    font-size: 8px;
    font-style: italic;
}

.forum-post__actions {
    margin-top: auto;
    padding: 9px 13px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid rgba(124, 96, 199, .11);
}

.forum-post__actions button,
.forum-inline-editor > summary {
    color: #8f9ab3;
    border: 0;
    cursor: pointer;
    background: transparent;
    font-size: 8px;
    font-weight: 700;
}

.forum-inline-editor {
    position: relative;
}

.forum-inline-editor > summary {
    list-style: none;
}

.forum-inline-editor[open] {
    width: 100%;
}

.forum-inline-editor[open] > summary {
    margin-bottom: 9px;
}

.forum-inline-editor form {
    display: grid;
    gap: 8px;
}

.forum-inline-editor input {
    height: 38px;
    padding: 0 10px;
}

.forum-inline-editor button {
    min-height: 34px;
    justify-self: start;
    padding: 0 12px;
    color: #e8ddff;
    border: 1px solid rgba(139, 92, 246, .30);
    border-radius: 6px;
    background: rgba(109, 57, 197, .17);
}

.forum-reply-editor {
    padding-bottom: 15px;
}

.forum-reply-editor textarea {
    width: calc(100% - 30px);
    margin: 0 15px;
}

.forum-reply-editor > div {
    padding: 12px 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.forum-reply-editor > div > small {
    color: #69758f;
    font-size: 8px;
}

.forum-reply-locked {
    min-height: 90px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.forum-reply-locked > span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #a577fa;
    border-radius: 9px;
    background: rgba(116, 60, 208, .14);
}

.forum-reply-locked > div {
    flex: 1;
}

.forum-reply-locked strong {
    color: #e7eaf4;
    font-size: 12px;
}

.forum-reply-locked p {
    margin: 4px 0 0;
    color: #77829c;
    font-size: 9px;
}

.forum-member-card {
    min-height: 132px;
    padding: 20px;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.forum-member-card h2 {
    margin: 5px 0 0;
    color: #f1f3fb;
    font-size: 24px;
}

.forum-member-card p {
    margin: 6px 0 0;
    color: #7e89a2;
    font-size: 9px;
}

.forum-member-card dl {
    margin: 0;
    display: flex;
    gap: 9px;
}

.forum-member-card dl div {
    min-width: 78px;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(124, 96, 199, .16);
    border-radius: 7px;
    background: rgba(5, 9, 18, .35);
}

.forum-member-card dt {
    color: #707c97;
    font-size: 8px;
}

.forum-member-card dd {
    margin: 4px 0 0;
    color: #eceef7;
    font-size: 16px;
    font-weight: 820;
}

.forum-member-posts > a {
    padding: 14px 16px;
    display: block;
    border-bottom: 1px solid rgba(124, 96, 199, .13);
}

.forum-member-posts > a:hover {
    background: rgba(106, 66, 185, .06);
}

.forum-member-posts > a strong {
    color: #e2e5f0;
    font-size: 11px;
}

.forum-member-posts > a p {
    margin: 7px 0;
    color: #8a95ad;
    font-size: 10px;
    line-height: 1.55;
}

.forum-member-posts > a small {
    color: #6c7892;
    font-size: 8px;
}

@media (max-width: 1180px) {
    .forum-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .forum-section-row {
        grid-template-columns: 58px minmax(240px, 1fr) 120px minmax(210px, 29%);
    }

    .forum-topic-row {
        grid-template-columns: 48px minmax(220px, 1fr) 125px minmax(190px, 27%);
    }
}

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

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

    .forum-side-panel--latest {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .forum-page-head,
    .forum-layout,
    .forum-alert {
        width: min(100% - 20px, 1440px);
    }

    .forum-page-head__main,
    .forum-tools,
    .forum-topic-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .forum-page-head__main {
        min-height: 0;
        padding: 20px 0;
    }

    .forum-page-head__actions,
    .forum-page-head__actions > a,
    .forum-tools > * {
        width: 100%;
    }

    .forum-section-row {
        min-height: 0;
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .forum-section-row__copy {
        padding-right: 12px;
    }

    .forum-section-row__copy > p {
        white-space: normal;
    }

    .forum-section-row__numbers {
        min-height: 44px;
        padding: 9px 12px 9px 54px;
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-start;
        gap: 18px;
        border: 0;
        border-top: 1px solid rgba(124, 96, 199, .09);
    }

    .forum-section-row__numbers span {
        gap: 5px;
    }

    .forum-section-row__latest,
    .forum-section-row__empty {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(124, 96, 199, .09);
    }

    .forum-topic-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .forum-topic-row__numbers {
        padding: 8px 12px 8px 42px;
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-start;
        gap: 18px;
        border: 0;
        border-top: 1px solid rgba(124, 96, 199, .09);
    }

    .forum-topic-row__last {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(124, 96, 199, .09);
    }

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

    .forum-post__author {
        padding: 12px 14px;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        border-right: 0;
        border-bottom: 1px solid rgba(124, 96, 199, .13);
    }

    .forum-post__author .forum-author-avatar {
        width: 48px;
        height: 48px;
        grid-row: 1 / 3;
        font-size: 17px;
    }

    .forum-post__username,
    .forum-role-badge {
        margin: 0;
        justify-self: start;
    }

    .forum-author-stats {
        display: none;
    }

    .forum-moderation-actions,
    .forum-moderation-move,
    .forum-moderation-delete,
    .forum-reply-editor > div {
        align-items: stretch;
        flex-direction: column;
    }

    .forum-moderation-move select {
        max-width: none;
    }

    .forum-member-card {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .forum-member-card .forum-author-avatar {
        width: 70px;
        height: 70px;
    }

    .forum-member-card dl {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .forum-sidebar {
        grid-template-columns: 1fr;
    }

    .forum-side-panel--latest {
        grid-column: auto;
    }

    .forum-category__head p {
        display: none;
    }

    .forum-section-row__icon {
        width: 34px;
        height: 34px;
        margin-left: 11px;
    }

    .forum-primary-button,
    .forum-secondary-button {
        width: 100%;
    }

    .forum-topic-toolbar__actions,
    .forum-topic-toolbar__actions form {
        width: 100%;
    }

    .forum-editor__actions,
    .forum-reply-locked {
        align-items: stretch;
        flex-direction: column;
    }

    .forum-member-card dl {
        width: 100%;
    }

    .forum-member-card dl div {
        flex: 1;
    }
}
