:root {
    color-scheme: dark;
    --bg: #0b0c0d;
    --bg-soft: #101112;
    --surface: #151617;
    --surface-2: #1b1d1f;
    --surface-3: #202327;
    --line: #2d3135;
    --line-soft: #24272b;
    --text: #ece7dc;
    --text-soft: #cfc7b9;
    --muted: #918b82;
    --accent: #c49a4a;
    --accent-soft: #2d2518;
    --blue: #7fa6b5;
    --green: #8eaa77;
    --red: #bd705e;
    --shadow: 0 22px 70px rgba(0, 0, 0, .26);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 24% 0, rgba(196, 154, 74, .12), transparent 340px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(180deg, #11110f 0, var(--bg) 360px);
    background-size: auto, 56px 56px, auto;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.kb-shell {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    min-height: 100vh;
}

.kb-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 18px 14px;
    border-right: 1px solid var(--line-soft);
    background: rgba(10, 11, 12, .92);
    backdrop-filter: blur(14px);
}

.kb-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.kb-brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(196, 154, 74, .42);
    border-radius: 6px;
    background: linear-gradient(145deg, #2b2418, #151617);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    color: #f2d184;
    font-weight: 800;
    overflow: hidden;
}

.kb-brand-mark img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.kb-brand strong,
.kb-brand small {
    display: block;
}

.kb-brand strong {
    letter-spacing: .02em;
}

.kb-brand small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.kb-nav {
    display: grid;
    gap: 4px;
}

.kb-nav a {
    position: relative;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-soft);
}

.kb-nav a:hover,
.kb-nav a.is-active {
    border-color: rgba(196, 154, 74, .26);
    background: rgba(196, 154, 74, .08);
    color: #fff6e4;
}

.kb-sidebar-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 26px;
}

.kb-sidebar-stats div {
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    background: rgba(255, 255, 255, .025);
}

.kb-sidebar-stats strong,
.kb-sidebar-stats span {
    display: block;
}

.kb-sidebar-stats strong {
    color: #fff4db;
    font-size: 20px;
}

.kb-sidebar-stats span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.kb-tag-cloud {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.kb-tag-cloud strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text-soft);
    font-size: 13px;
}

.kb-tag-cloud div,
.kb-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.kb-tag-cloud a,
.kb-card-tags a {
    border: 1px solid rgba(127, 166, 181, .25);
    border-radius: 5px;
    background: rgba(127, 166, 181, .07);
    color: #c5dce4;
    padding: 5px 8px;
    font-size: 12px;
}

.kb-main {
    min-width: 0;
    width: min(100%, 1320px);
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px clamp(22px, 4vw, 58px) 56px;
}

.kb-topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 28px;
}

.kb-search {
    display: flex;
    gap: 8px;
    width: min(650px, 100%);
}

.kb-search input,
.kb-form input,
.kb-form textarea,
.kb-form select,
.kb-editor-form input,
.kb-editor-form textarea,
.kb-editor-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(8, 9, 10, .82);
    color: var(--text);
    padding: 12px 13px;
    outline: 0;
}

.kb-search input:focus,
.kb-form input:focus,
.kb-editor-form input:focus,
.kb-editor-form textarea:focus,
.kb-editor-form select:focus {
    border-color: rgba(196, 154, 74, .68);
    box-shadow: 0 0 0 3px rgba(196, 154, 74, .1);
}

.kb-search button,
.kb-form button,
.kb-button,
.kb-upload-panel button,
.kb-editor-toolbar button,
.kb-primary-link {
    border: 1px solid rgba(196, 154, 74, .55);
    border-radius: 6px;
    background: #c49a4a;
    color: #15110a;
    padding: 12px 16px;
    font-weight: 800;
    cursor: pointer;
}

.kb-button-muted,
.kb-secondary-link {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, .035);
    color: var(--text-soft);
}

.kb-top-actions {
    display: flex;
    gap: 12px;
    color: var(--text-soft);
    white-space: nowrap;
}

.kb-top-actions a:hover {
    color: #fff4db;
}

.kb-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: stretch;
    margin-bottom: 20px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(196, 154, 74, .2);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(196, 154, 74, .10), rgba(127, 166, 181, .06)),
        rgba(20, 21, 22, .9);
    box-shadow: var(--shadow);
}

.kb-hero-copy {
    display: grid;
    align-content: center;
    min-width: 0;
}

.kb-eyebrow {
    margin: 0 0 10px;
    color: #d3b06d;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.kb-hero h1,
.kb-page-title h1,
.kb-article-head h1,
.kb-section-head h1 {
    margin: 0;
    line-height: 1.08;
}

.kb-hero h1 {
    max-width: 850px;
    overflow-wrap: break-word;
    font-size: clamp(34px, 4vw, 50px);
}

.kb-hero p,
.kb-page-title p,
.kb-section-head p,
.kb-article-head p {
    color: var(--text-soft);
    line-height: 1.55;
}

.kb-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    font-size: 16px;
}

.kb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.kb-primary-link,
.kb-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
}

.kb-hero-feature {
    position: relative;
    display: grid;
    align-content: end;
    min-width: 0;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0d0e0f;
}

.kb-hero-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .58;
}

.kb-hero-emblem img {
    object-fit: cover;
}

.kb-hero-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 18%, rgba(7, 8, 9, .86));
}

.kb-hero-feature span,
.kb-hero-feature strong,
.kb-hero-feature small {
    position: relative;
    z-index: 1;
    margin: 0 20px;
}

.kb-hero-feature span {
    color: #d3b06d;
    font-size: 13px;
}

.kb-hero-feature strong {
    margin-top: 7px;
    font-size: 28px;
}

.kb-hero-feature small {
    margin-top: 8px;
    margin-bottom: 20px;
    color: var(--text-soft);
    line-height: 1.45;
}

.kb-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.kb-category-card,
.kb-list-item,
.kb-admin-box,
.kb-panel,
.kb-admin-row,
.kb-empty,
.kb-success,
.kb-alert,
.kb-article-body,
.kb-toc,
.kb-related-grid a {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(21, 22, 23, .86);
}

.kb-category-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    min-height: 118px;
    padding: 15px;
}

.kb-category-card:hover,
.kb-list-item:hover,
.kb-related-grid a:hover {
    border-color: rgba(196, 154, 74, .38);
    background: rgba(27, 29, 31, .92);
}

.kb-category-card span {
    width: fit-content;
    padding: 4px 7px;
    border-radius: 5px;
    background: rgba(127, 166, 181, .08);
    color: #b9d4dd;
    font-size: 12px;
}

.kb-category-card small {
    color: var(--muted);
    line-height: 1.45;
}

.kb-category-card em {
    align-self: end;
    color: #d3b06d;
    font-style: normal;
    font-size: 12px;
}

.kb-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin: 28px 0 14px;
}

.kb-section-head h2 {
    margin: 0;
    font-size: 27px;
}

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

.kb-filter-links a,
.kb-list-meta span,
.kb-edit-link {
    border: 1px solid var(--line-soft);
    border-radius: 5px;
    background: rgba(255, 255, 255, .035);
    color: var(--text-soft);
    padding: 7px 9px;
    font-size: 12px;
}

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

.kb-list-item {
    min-width: 0;
    padding: 18px;
}

.kb-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.kb-list-item h2 {
    margin: 0 0 8px;
    font-size: 23px;
}

.kb-list-item h2 a:hover {
    color: #f4d58e;
}

.kb-list-item p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.58;
}

.kb-list-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: #d3b06d;
    font-size: 13px;
}

.kb-card-tags {
    margin-top: 14px;
}

.kb-search-context {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid rgba(196, 154, 74, .28);
    border-radius: 8px;
    background: rgba(196, 154, 74, .08);
    color: #ead29f;
}

.kb-page-title,
.kb-article-head {
    margin: 12px 0 22px;
}

.kb-article {
    max-width: 1240px;
}

.kb-article-head h1 {
    max-width: 980px;
    font-size: clamp(32px, 4vw, 46px);
}

.kb-article-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.kb-toc {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 7px;
    padding: 16px;
}

.kb-toc strong {
    margin-bottom: 6px;
    color: #d3b06d;
}

.kb-toc a,
.kb-toc span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.kb-toc a:hover {
    color: #fff4db;
}

.kb-toc .level-3 {
    padding-left: 12px;
}

.kb-toc .level-4 {
    padding-left: 24px;
}

.kb-article-body {
    padding: clamp(20px, 3vw, 30px);
    line-height: 1.72;
}

.kb-article-body h2,
.kb-article-body h3,
.kb-article-body h4 {
    margin-top: 30px;
    color: #fff6e5;
    scroll-margin-top: 16px;
}

.kb-article-body p {
    color: #ddd5c8;
}

.kb-article-body a {
    color: #e2bd70;
}

.kb-article-body ul,
.kb-article-body ol {
    padding-left: 24px;
}

.kb-article-body li {
    margin: 8px 0;
}

.kb-details {
    margin: 16px 0;
    border: 1px solid rgba(127, 166, 181, .24);
    border-radius: 8px;
    background: rgba(127, 166, 181, .055);
}

.kb-details summary {
    padding: 13px 16px;
    cursor: pointer;
    color: #d7e5e8;
    font-weight: 700;
}

.kb-details > :not(summary) {
    margin-left: 16px;
    margin-right: 16px;
}

.kb-callout {
    margin: 16px 0;
    padding: 14px 16px;
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    background: rgba(196, 154, 74, .1);
    color: #f3e1bd;
}

.kb-callout-warning {
    border-left-color: var(--red);
    background: rgba(189, 112, 94, .1);
}

.kb-callout-tip {
    border-left-color: var(--green);
    background: rgba(142, 170, 119, .1);
}

.kb-image-missing {
    display: inline-block;
    margin: 4px;
    padding: 5px 8px;
    border: 1px dashed rgba(196, 154, 74, .45);
    border-radius: 5px;
    color: #d6bb77;
    font-size: 12px;
}

.kb-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, .018);
}

.kb-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.kb-table tr:first-child td {
    background: rgba(196, 154, 74, .09);
    color: #f0dfb9;
    font-weight: 700;
}

.kb-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
}

.kb-table tr:last-child td {
    border-bottom: 0;
}

.kb-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    min-height: 42px;
    padding: 5px 9px 5px 5px;
    border: 1px solid rgba(196, 154, 74, .22);
    border-radius: 7px;
    background: rgba(8, 8, 7, .38);
    color: var(--text);
    vertical-align: middle;
}

.kb-item img,
.kb-item-fallback {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    object-fit: contain;
}

.kb-item-fallback {
    display: grid;
    place-items: center;
    border: 1px dashed rgba(196, 154, 74, .34);
    border-radius: 5px;
    color: var(--accent);
    font-weight: 700;
}

.kb-item strong,
.kb-item small {
    display: block;
}

.kb-item strong {
    font-size: 13px;
    line-height: 1.2;
}

.kb-item-inline {
    min-height: 30px;
    padding: 3px 7px 3px 3px;
}

.kb-item-inline img,
.kb-item-inline .kb-item-fallback {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
}

.kb-article-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #0f0f0d;
}

.kb-inline-image {
    max-width: 32px;
    max-height: 32px;
    vertical-align: middle;
}

.kb-admin-box {
    max-width: 460px;
    padding: 24px;
}

.kb-form,
.kb-editor-form label {
    display: grid;
    gap: 8px;
}

.kb-form {
    gap: 14px;
}

.kb-alert,
.kb-success,
.kb-empty {
    padding: 14px;
    margin: 14px 0;
}

.kb-alert {
    border-color: rgba(189, 112, 94, .52);
    color: #ffc1b5;
}

.kb-success {
    border-color: rgba(142, 170, 119, .5);
    color: #cce6bd;
}

.kb-admin-table {
    display: grid;
    gap: 8px;
}

.kb-admin-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px;
}

.kb-admin-row span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.kb-admin-row small {
    display: block;
    margin-top: 5px;
    color: #c5dce4;
}

.kb-admin-row a {
    color: #d3b06d;
}

.kb-editor-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 16px;
}

.kb-panel {
    padding: 18px;
}

.kb-form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.kb-checks {
    display: flex;
    gap: 18px;
    margin: 12px 0;
}

.kb-checks input {
    width: auto;
}

.kb-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.kb-editor-toolbar button {
    padding: 8px 10px;
}

.kb-editor-hint {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.kb-editor-hint code {
    color: #ead19a;
}

#markdownBody {
    min-height: 560px;
    resize: vertical;
    line-height: 1.5;
    font-family: Consolas, Monaco, monospace;
}

.kb-upload-panel {
    margin-top: 16px;
}

.kb-upload-panel form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kb-upload-result {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #0e1218;
    color: var(--text);
}

.kb-preview-panel {
    margin-top: 16px;
}

.kb-preview-panel .kb-section-head {
    margin-top: 0;
}

.kb-preview-panel #previewMeta {
    color: var(--muted);
    font-size: 13px;
}

.kb-related {
    margin-top: 22px;
}

.kb-related h2 {
    margin: 0 0 12px;
}

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

.kb-related-grid a {
    display: grid;
    gap: 7px;
    padding: 16px;
}

.kb-related-grid span,
.kb-related-grid small {
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 1080px) {
    .kb-shell,
    .kb-hero,
    .kb-editor-grid,
    .kb-article-layout {
        grid-template-columns: 1fr;
    }

    .kb-sidebar {
        position: static;
        height: auto;
    }

    .kb-toc {
        position: static;
    }

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

@media (max-width: 680px) {
    body {
        overflow-x: hidden;
    }

    .kb-main,
    .kb-sidebar,
    .kb-hero,
    .kb-article-body {
        padding: 16px;
    }

    .kb-topbar,
    .kb-section-head,
    .kb-admin-row {
        align-items: stretch;
        flex-direction: column;
    }

    .kb-search,
    .kb-form-row,
    .kb-category-grid,
    .kb-related-grid {
        grid-template-columns: 1fr;
    }

    .kb-search {
        display: grid;
    }

    .kb-hero h1 {
        max-width: 11ch;
        font-size: 32px;
    }

    .kb-sidebar-stats span {
        font-size: 10px;
    }

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

body.forum-production {
    background:
        radial-gradient(circle at 50% -180px, rgba(201, 151, 54, .16), transparent 420px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(180deg, #0b0b09 0, #0e0e0c 260px, #070807 100%);
    background-size: auto, 64px 64px, auto;
    color: #f3eadb;
}

.forum-site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 10px 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .03);
    background: linear-gradient(180deg, rgba(8, 8, 10, .92), rgba(8, 8, 10, .72));
    backdrop-filter: blur(18px);
}

.forum-topbar {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    width: min(1400px, calc(100% - 48px));
    min-height: 82px;
    margin: 0 auto;
    padding: 0 28px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)),
        rgba(9, 9, 12, .82);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, .34),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    overflow: hidden;
}

.forum-topbar::after {
    content: "";
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(219, 52, 77, .22), rgba(0, 208, 255, .16), transparent);
    pointer-events: none;
}

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

.forum-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #fff7e9;
    font-weight: 800;
    letter-spacing: .03em;
}

.forum-brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .46));
}

.forum-site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.forum-site-nav a,
.forum-auth a,
.kb-top-actions a {
    border: 1px solid transparent;
    border-radius: 12px;
    color: #ece8df;
    padding: 11px 13px;
    line-height: 1;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.forum-site-nav a:hover,
.forum-site-nav a.is-active,
.forum-auth a:hover,
.kb-top-actions a:hover {
    border-color: rgba(203, 156, 67, .32);
    background: rgba(203, 156, 67, .1);
    color: #fff6e3;
}

.forum-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.forum-auth a {
    min-width: 132px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.forum-auth a:first-child {
    border-color: rgba(219, 169, 61, .36);
    background:
        radial-gradient(circle at 50% 10%, rgba(219, 169, 61, .45), transparent 58%),
        linear-gradient(180deg, rgba(180, 132, 38, .78), rgba(50, 38, 16, .78));
    box-shadow:
        0 0 0 1px rgba(219, 169, 61, .08),
        0 18px 42px rgba(219, 169, 61, .16);
    color: #fff7df;
}

.forum-auth .forum-auth-strong {
    border-color: rgba(0, 208, 255, .48);
    background:
        radial-gradient(circle at 50% 0, rgba(0, 208, 255, .26), transparent 56%),
        linear-gradient(180deg, rgba(0, 68, 86, .82), rgba(4, 18, 28, .88));
    box-shadow:
        0 0 0 1px rgba(0, 208, 255, .1),
        0 20px 48px rgba(0, 208, 255, .14);
    color: #f3fbff;
    font-weight: 800;
}

body.forum-production .kb-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
    width: min(1380px, calc(100% - 48px));
    min-height: 0;
    margin: 0 auto;
    padding: 28px 0 64px;
}

body.forum-production .kb-sidebar {
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(13, 14, 13, .76);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

body.forum-production .kb-brand {
    margin-bottom: 18px;
}

body.forum-production .kb-brand strong {
    font-size: 14px;
}

body.forum-production .kb-nav a {
    padding: 10px 11px;
}

body.forum-production .kb-sidebar-stats {
    margin-top: 20px;
}

body.forum-production .kb-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.forum-production .kb-content-toolbar {
    gap: 14px;
    margin-bottom: 18px;
    padding: 0;
}

body.forum-production .kb-search {
    width: min(620px, 100%);
}

body.forum-production .kb-search input {
    min-height: 42px;
    border-color: rgba(255, 255, 255, .1);
    background: rgba(4, 5, 5, .72);
}

body.forum-production .kb-search button,
body.forum-production .kb-primary-link {
    min-height: 42px;
    border-color: rgba(214, 171, 86, .55);
    background: linear-gradient(180deg, #d4a64d, #b8812c);
    color: #120e08;
}

body.forum-production .kb-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 15px;
}

.kb-home-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    min-height: 0;
    margin-bottom: 18px;
    padding: 18px 22px;
    border: 1px solid rgba(203, 156, 67, .2);
    border-radius: 8px;
    background:
        linear-gradient(110deg, rgba(34, 31, 24, .9), rgba(18, 19, 18, .86)),
        radial-gradient(circle at 85% 45%, rgba(203, 156, 67, .18), transparent 240px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .24);
    overflow: hidden;
}

.kb-home-head::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    width: 118px;
    height: 118px;
    background: url("./brand/portal-emblem.jpg") center / contain no-repeat;
    opacity: .1;
    transform: translateY(-50%);
    pointer-events: none;
}

.kb-home-head > * {
    position: relative;
    z-index: 1;
}

.kb-home-head h1 {
    margin: 4px 0 8px;
    color: #fff7e8;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.02;
}

.kb-home-head p {
    max-width: 760px;
    margin: 0;
    color: #d6cab8;
    line-height: 1.55;
}

.kb-home-head-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

body.forum-production .kb-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

body.forum-production .kb-category-card,
body.forum-production .kb-list-item,
body.forum-production .kb-panel,
body.forum-production .kb-admin-box,
body.forum-production .kb-article-body,
body.forum-production .kb-toc {
    border-color: rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(17, 18, 18, .82);
    box-shadow: none;
}

body.forum-production .kb-category-card {
    min-height: 104px;
    padding: 15px;
}

body.forum-production .kb-category-card strong {
    color: #fff3dc;
}

body.forum-production .kb-category-card em {
    color: #d5a84f;
    font-size: 12px;
}

body.forum-production .kb-section-head {
    margin: 18px 0 12px;
}

body.forum-production .kb-section-head h2 {
    margin-bottom: 6px;
}

body.forum-production .kb-list {
    gap: 10px;
}

body.forum-production .kb-list-item {
    padding: 17px 18px;
}

body.forum-production .kb-list-item h3 {
    margin-top: 8px;
}

body.forum-production .kb-meta span,
body.forum-production .kb-filter-links a,
body.forum-production .kb-card-tags a,
body.forum-production .kb-tag-cloud a {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .035);
    color: #ddcfb9;
}

body.forum-production .kb-eyebrow {
    color: #d3ac63;
    letter-spacing: .04em;
}

@media (max-width: 1120px) {
    .forum-topbar {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 0;
    }

    .forum-site-nav,
    .forum-auth {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    body.forum-production .kb-shell {
        grid-template-columns: 1fr;
    }

    body.forum-production .kb-sidebar {
        position: static;
        max-height: none;
    }

    body.forum-production .kb-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .forum-topbar,
    body.forum-production .kb-shell {
        width: auto;
        margin-left: 12px;
        margin-right: 12px;
    }

    .forum-site-nav a,
    .forum-auth a,
    .kb-top-actions a {
        padding: 9px 10px;
    }

    .forum-site-nav {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .forum-site-nav a {
        text-align: center;
    }

    .forum-auth {
        width: 100%;
    }

    body.forum-production .kb-main {
        order: 1;
    }

    body.forum-production .kb-sidebar {
        order: 2;
    }

    .kb-home-head {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .kb-home-head::after {
        width: 110px;
        height: 110px;
        right: 8px;
        opacity: .07;
    }

    .kb-home-head h1 {
        font-size: 30px;
    }

    .kb-home-head p {
        max-width: calc(100vw - 72px);
        overflow-wrap: anywhere;
    }

    .kb-home-head-actions {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: flex-start;
    }

    .kb-home-head-actions a {
        width: 100%;
    }

body.forum-production .kb-category-grid {
        grid-template-columns: 1fr;
    }

    body.forum-production .kb-content-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
}

@font-face {
    font-family: "DINNextW1G";
    src: url("./fonts/DINNextW1G.woff") format("woff");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

body.forum-production {
    --premium-bg: #09090c;
    --premium-panel: rgba(16, 16, 20, .9);
    --premium-panel-2: rgba(20, 18, 22, .92);
    --premium-panel-3: rgba(9, 10, 13, .96);
    --premium-line: rgba(255, 255, 255, .07);
    --premium-line-red: rgba(195, 43, 57, .34);
    --premium-line-ember: rgba(219, 135, 65, .22);
    --premium-text: #f3efe8;
    --premium-muted: #a7adb8;
    --premium-soft: #7f8591;
    --premium-red: #b51f33;
    --premium-red-2: #db344d;
    --premium-ember: #db8741;
    --premium-shadow: 0 24px 70px rgba(0, 0, 0, .45);
    background:
        radial-gradient(circle at 15% 18%, rgba(170, 28, 44, .18), transparent 22%),
        radial-gradient(circle at 82% 13%, rgba(219, 135, 65, .1), transparent 16%),
        linear-gradient(180deg, rgba(8, 8, 12, .91), rgba(8, 8, 12, .97)),
        url("./brand/top-bg.jpg") center top / cover fixed no-repeat,
        #08080b;
    color: var(--premium-text);
    font-family: "DINNextW1G", "Open Sans", Arial, sans-serif;
    overflow-x: hidden;
}

body.forum-production .forum-site-header {
    padding: 0;
    background:
        linear-gradient(180deg, rgba(11, 11, 15, .97), rgba(10, 10, 14, .84)),
        radial-gradient(circle at 12% 50%, rgba(181, 31, 51, .08), transparent 26%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}

body.forum-production .forum-topbar {
    width: min(1400px, calc(100% - 40px));
    min-height: 82px;
    padding: 12px 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

body.forum-production .forum-topbar::before {
    content: "";
    position: absolute;
    inset: 8px 0;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .04);
    background:
        linear-gradient(180deg, rgba(19, 20, 24, .56), rgba(10, 11, 14, .24)),
        radial-gradient(circle at 16% 50%, rgba(219, 135, 65, .08), transparent 18%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .03),
        inset 0 -20px 40px rgba(0, 0, 0, .2);
    pointer-events: none;
}

body.forum-production .forum-topbar::after {
    bottom: 8px;
    background: linear-gradient(90deg, transparent, rgba(219, 135, 65, .18), rgba(195, 43, 57, .16), transparent);
}

body.forum-production .forum-brand {
    min-width: 142px;
    justify-content: center;
}

body.forum-production .forum-brand img {
    width: 118px;
    height: auto;
    filter:
        drop-shadow(0 8px 18px rgba(0, 0, 0, .35))
        drop-shadow(0 0 12px rgba(219, 135, 65, .08));
}

body.forum-production .forum-site-nav {
    justify-content: flex-start;
    gap: 2px;
}

body.forum-production .forum-site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--premium-text);
    font-size: 11px;
    letter-spacing: .08em;
    line-height: 1;
    text-align: center;
}

body.forum-production .forum-site-nav a:hover,
body.forum-production .forum-site-nav a.is-active {
    border-color: rgba(219, 135, 65, .16);
    background:
        linear-gradient(180deg, rgba(181, 31, 51, .09), rgba(181, 31, 51, .04)),
        rgba(255, 255, 255, .02);
    color: #fff7f1;
}

body.forum-production .forum-site-nav a.is-active {
    border-color: rgba(219, 135, 65, .16);
    background:
        linear-gradient(180deg, rgba(181, 31, 51, .09), rgba(181, 31, 51, .04)),
        rgba(255, 255, 255, .02);
    box-shadow: none;
}

body.forum-production .forum-auth {
    gap: 10px;
}

body.forum-production .forum-auth a {
    min-width: 154px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid var(--premium-line);
    font-size: 10px;
    letter-spacing: .12em;
    overflow: hidden;
    position: relative;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.forum-production .forum-auth a::before,
body.forum-production .forum-auth a::after,
body.forum-production .kb-search button::before,
body.forum-production .kb-primary-link::before,
body.forum-production .kb-button::before {
    content: "";
    position: absolute;
    pointer-events: none;
}

body.forum-production .forum-auth a::before,
body.forum-production .kb-search button::before,
body.forum-production .kb-primary-link::before,
body.forum-production .kb-button::before {
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 34%);
    opacity: .65;
}

body.forum-production .forum-auth a::after {
    inset: 0 auto 0 -70%;
    width: 42%;
    background: linear-gradient(90deg, transparent, rgba(255, 220, 190, .12), transparent);
    transform: skewX(-18deg);
    transition: left .42s ease;
}

body.forum-production .forum-auth a:first-child {
    background:
        radial-gradient(circle at 50% 10%, rgba(219, 169, 61, .45), transparent 58%),
        linear-gradient(180deg, rgba(180, 132, 38, .78), rgba(50, 38, 16, .78));
    border-color: rgba(219, 169, 61, .36);
    box-shadow:
        0 0 0 1px rgba(219, 169, 61, .08),
        0 18px 42px rgba(219, 169, 61, .16);
    color: #fff7df;
}

body.forum-production .forum-auth .forum-auth-strong {
    min-width: 196px;
    border-color: rgba(219, 52, 77, .32);
    background:
        linear-gradient(180deg, rgba(201, 42, 63, .98), rgba(96, 10, 26, .98)),
        linear-gradient(90deg, rgba(236, 160, 106, .12), transparent);
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 220, .12),
        0 18px 32px rgba(78, 10, 20, .36),
        0 0 24px rgba(181, 31, 51, .12);
}

body.forum-production .forum-auth a:hover {
    transform: translateY(-2px);
    border-color: rgba(236, 160, 106, .22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 20px 32px rgba(0, 0, 0, .28),
        0 0 26px rgba(219, 135, 65, .08);
}

body.forum-production .forum-auth a:first-child:hover {
    background:
        linear-gradient(180deg, rgba(34, 35, 42, .96), rgba(17, 18, 23, .96)),
        rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .04),
        0 16px 24px rgba(0, 0, 0, .24);
}

body.forum-production .forum-auth a:hover::after {
    left: 128%;
}

body.forum-production .forum-user-pill {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: none;
}

body.forum-production .kb-shell {
    width: min(1400px, calc(100% - 40px));
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    padding-top: 26px;
    align-items: start;
}

body.forum-production .kb-sidebar,
body.forum-production .kb-category-card,
body.forum-production .kb-list-item,
body.forum-production .kb-home-head,
body.forum-production .kb-panel,
body.forum-production .kb-admin-box,
body.forum-production .kb-article-body,
body.forum-production .kb-toc {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--premium-line);
    background:
        linear-gradient(180deg, rgba(18, 18, 23, .92), rgba(10, 10, 13, .88)),
        rgba(255, 255, 255, .02);
    box-shadow: var(--premium-shadow);
}

body.forum-production .kb-sidebar::before,
body.forum-production .kb-category-card::before,
body.forum-production .kb-list-item::before,
body.forum-production .kb-home-head::before {
    content: "";
    position: absolute;
    inset: 16px 16px auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(195, 43, 57, .5), rgba(219, 135, 65, .34), transparent);
    pointer-events: none;
}

body.forum-production .kb-sidebar {
    top: 114px;
    margin-top: -112px;
    padding: 24px;
    border-right: 1px solid var(--premium-line);
    background:
        linear-gradient(180deg, rgba(18, 18, 23, .84), rgba(10, 10, 13, .86)),
        radial-gradient(circle at 35% 0, rgba(181, 31, 51, .12), transparent 38%);
}

body.forum-production .kb-brand {
    gap: 14px;
    margin-bottom: 24px;
}

body.forum-production .kb-brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    border-color: rgba(219, 135, 65, .22);
    background:
        linear-gradient(180deg, rgba(34, 35, 42, .96), rgba(17, 18, 23, .96)),
        rgba(255, 255, 255, .03);
}

body.forum-production .kb-brand-mark img {
    width: 44px;
    height: 44px;
}

body.forum-production .kb-brand strong {
    color: #fff;
    font-size: 18px;
    letter-spacing: .02em;
}

body.forum-production .kb-brand small,
body.forum-production .kb-category-card small,
body.forum-production .kb-list-item p,
body.forum-production .kb-section-head p {
    color: var(--premium-muted);
}

body.forum-production .kb-nav a {
    min-height: 46px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    border-radius: 14px;
    color: #d8dbe2;
    font-size: 14px;
    font-weight: 700;
}

body.forum-production .kb-nav a:hover,
body.forum-production .kb-nav a.is-active {
    border-color: rgba(219, 135, 65, .16);
    background:
        linear-gradient(180deg, rgba(181, 31, 51, .09), rgba(181, 31, 51, .04)),
        rgba(255, 255, 255, .02);
    color: #fff7f1;
}

body.forum-production .kb-sidebar-stats div,
body.forum-production .kb-tag-cloud a,
body.forum-production .kb-card-tags a,
body.forum-production .kb-meta span,
body.forum-production .kb-filter-links a,
body.forum-production .kb-list-meta span,
body.forum-production .kb-edit-link {
    border-radius: 12px;
    border-color: rgba(255, 255, 255, .08);
    background:
        linear-gradient(180deg, rgba(34, 35, 42, .68), rgba(17, 18, 23, .7)),
        rgba(255, 255, 255, .03);
    color: #e8e2d9;
    font-weight: 700;
}

body.forum-production .kb-sidebar-stats strong,
body.forum-production .kb-list-item h3,
body.forum-production .kb-section-head h2,
body.forum-production .kb-article-body h2,
body.forum-production .kb-article-body h3,
body.forum-production .kb-article-body h4 {
    color: #fff;
}

body.forum-production .kb-content-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding: 16px 18px;
    border: 1px solid var(--premium-line);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(18, 18, 23, .82), rgba(10, 10, 13, .72)),
        rgba(255, 255, 255, .02);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .03),
        0 18px 42px rgba(0, 0, 0, .22);
}

body.forum-production .kb-search {
    width: 100%;
}

body.forum-production .kb-search input,
body.forum-production .kb-form input,
body.forum-production .kb-form textarea,
body.forum-production .kb-form select,
body.forum-production .kb-editor-form input,
body.forum-production .kb-editor-form textarea,
body.forum-production .kb-editor-form select {
    min-height: 46px;
    border-radius: 12px;
    border-color: rgba(255, 255, 255, .08);
    background:
        linear-gradient(180deg, rgba(8, 9, 12, .86), rgba(8, 9, 12, .72)),
        rgba(255, 255, 255, .02);
    color: var(--premium-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

body.forum-production .kb-search button,
body.forum-production .kb-primary-link,
body.forum-production .kb-button {
    position: relative;
    min-height: 46px;
    border-radius: 12px;
    border-color: rgba(219, 52, 77, .32);
    background:
        linear-gradient(180deg, rgba(201, 42, 63, .98), rgba(96, 10, 26, .98)),
        linear-gradient(90deg, rgba(236, 160, 106, .12), transparent);
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 220, .12),
        0 18px 32px rgba(78, 10, 20, .28);
    color: #fff6f1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.forum-production .kb-secondary-link,
body.forum-production .kb-button-muted {
    min-height: 46px;
    border-radius: 12px;
    border-color: rgba(255, 255, 255, .08);
    background:
        linear-gradient(180deg, rgba(34, 35, 42, .96), rgba(17, 18, 23, .96)),
        rgba(255, 255, 255, .03);
    color: #f3efe8;
    font-weight: 800;
}

body.forum-production .kb-top-actions a {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--premium-text);
    font-size: 11px;
    letter-spacing: .08em;
    white-space: nowrap;
}

body.forum-production .kb-home-head {
    min-height: 190px;
    padding: 34px 36px;
    background:
        linear-gradient(110deg, rgba(18, 18, 23, .96), rgba(10, 10, 13, .92)),
        radial-gradient(circle at 86% 40%, rgba(181, 31, 51, .12), transparent 28%);
}

body.forum-production .kb-home-head::after {
    width: 170px;
    height: 170px;
    right: 34px;
    opacity: .09;
}

body.forum-production .kb-eyebrow,
body.forum-production .kb-category-card em,
body.forum-production .kb-list-item > a,
body.forum-production .kb-sidebar-stats span {
    color: #f0b48b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

body.forum-production .kb-home-head h1 {
    margin: 8px 0 12px;
    color: #fff;
    font-size: clamp(42px, 4vw, 56px);
    line-height: .98;
    letter-spacing: 0;
}

body.forum-production .kb-home-head p {
    max-width: 700px;
    color: #c7cbd5;
    font-size: 15px;
    font-weight: 700;
}

body.forum-production .kb-category-grid {
    gap: 24px;
    margin-bottom: 28px;
}

body.forum-production .kb-category-card {
    min-height: 150px;
    padding: 30px 26px 24px;
}

body.forum-production .kb-category-card strong {
    color: #fff;
    font-size: 20px;
}

body.forum-production .kb-list {
    gap: 18px;
}

body.forum-production .kb-list-item {
    padding: 28px 28px 24px;
}

body.forum-production .kb-list-item h3 {
    font-size: 28px;
    line-height: 1.08;
}

body.forum-production .kb-card-tags a {
    color: #d7dce7;
}

@media (max-width: 1120px) {
    body.forum-production .forum-topbar {
        display: flex;
        flex-wrap: wrap;
        padding: 14px 0;
    }

    body.forum-production .forum-brand {
        justify-content: flex-start;
    }

    body.forum-production .forum-site-nav {
        width: 100%;
        flex-wrap: wrap;
    }

    body.forum-production .forum-auth {
        width: 100%;
        justify-content: flex-start;
    }

    body.forum-production .kb-shell {
        grid-template-columns: 1fr;
    }

    body.forum-production .kb-sidebar {
        margin-top: 0;
    }
}

@media (max-width: 720px) {
    body.forum-production .forum-topbar,
    body.forum-production .kb-shell {
        width: calc(100% - 24px);
        margin-left: auto;
        margin-right: auto;
    }

    body.forum-production .forum-site-nav {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.forum-production .forum-auth {
        display: grid;
        grid-template-columns: 1fr;
    }

    body.forum-production .forum-auth a,
    body.forum-production .forum-auth .forum-auth-strong {
        width: 100%;
        min-width: 0;
    }

    body.forum-production .kb-home-head {
        min-height: 0;
        padding: 28px 20px;
    }

    body.forum-production .kb-home-head h1 {
        font-size: 34px;
    }

    body.forum-production .kb-category-grid {
        gap: 12px;
    }

    body.forum-production .kb-category-card {
        min-height: 120px;
        padding: 24px 20px 20px;
    }
}
/* Forum auth modal */
.forum-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(8px);
}

.forum-modal-overlay.is-open {
    display: block;
}

.forum-modal,
.forum-message {
    position: fixed;
    left: 50%;
    top: 8vh;
    z-index: 90;
    display: none;
    width: min(560px, calc(100% - 32px));
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background:
        radial-gradient(circle at 14% 0, rgba(181, 31, 51, .18), transparent 36%),
        linear-gradient(180deg, rgba(18, 18, 24, .98), rgba(9, 10, 13, .98));
    box-shadow: 0 34px 100px rgba(0, 0, 0, .62);
    color: var(--premium-text);
    overflow: hidden;
}

.forum-modal.is-open,
.forum-message.is-open {
    display: block;
}

.forum-modal::before,
.forum-message::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(219, 135, 65, .24), rgba(195, 43, 57, .2), transparent);
}

.forum-modal-content {
    position: relative;
    padding: 28px;
}

.forum-modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    cursor: pointer;
}

.forum-modal-close::before,
.forum-modal-close::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 16px;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: #f3efe8;
}

.forum-modal-close::before {
    transform: rotate(45deg);
}

.forum-modal-close::after {
    transform: rotate(-45deg);
}

.forum-modal-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 42px 22px 0;
}

.forum-modal-title h2 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    line-height: 1.1;
}

.forum-modal-title span {
    display: inline-flex;
    margin-left: 8px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(219, 135, 65, .12);
    color: #f0b48b;
    font-size: 10px;
    text-transform: uppercase;
    vertical-align: middle;
}

.forum-modal-title a {
    margin-left: auto;
    color: #f0b48b;
    font-weight: 800;
    text-transform: uppercase;
}

.forum-auth-form {
    display: grid;
    gap: 14px;
}

.forum-auth-form label {
    display: grid;
    gap: 8px;
    color: #cfd2d8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.forum-auth-form input[type="email"],
.forum-auth-form input[type="password"],
.forum-auth-form input[type="text"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    background: rgba(6, 7, 10, .72);
    color: #fff;
    font-size: 14px;
    outline: none;
}

.forum-auth-form input:focus {
    border-color: rgba(219, 135, 65, .42);
    box-shadow: 0 0 0 3px rgba(219, 135, 65, .12);
}

.forum-captcha-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.forum-captcha-row img {
    width: 150px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    cursor: pointer;
}

.forum-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 10px !important;
    color: #b9bec8 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1.45;
    text-transform: none !important;
}

.forum-check input {
    margin-top: 2px;
}

.forum-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.forum-modal-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
}

.forum-modal-actions button:first-child {
    border-color: rgba(219, 52, 77, .32);
    background:
        linear-gradient(180deg, rgba(201, 42, 63, .98), rgba(96, 10, 26, .98)),
        linear-gradient(90deg, rgba(236, 160, 106, .12), transparent);
    box-shadow: 0 18px 32px rgba(78, 10, 20, .28);
}

.forum-modal-actions button:last-child {
    background:
        linear-gradient(180deg, rgba(34, 35, 42, .96), rgba(17, 18, 23, .96)),
        rgba(255, 255, 255, .03);
}

.forum-auth-note {
    margin: 4px 0 0;
    color: #949aa6;
    font-size: 13px;
}

.forum-message {
    width: min(420px, calc(100% - 32px));
    padding: 28px;
}

.forum-message h2 {
    margin: 0 36px 10px 0;
    color: #fff;
}

.forum-message p {
    margin: 0;
    color: #cfd2d8;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .forum-captcha-row {
        grid-template-columns: 1fr;
    }

    .forum-modal-actions {
        flex-direction: column;
    }

    .forum-captcha-row img,
    .forum-modal-actions button {
        width: 100%;
    }
}
