body.forum-body {
    margin: 0;
    background: linear-gradient(180deg, #f4f8fc 0%, #eef3f8 100%);
    color: #17324d;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

.forum-shell {
    min-height: 100vh;
}

.forum-topbar {
    padding: 28px 32px 18px;
    background: linear-gradient(135deg, #0f4c81, #2d7cb7);
    color: #fff;
    box-shadow: 0 10px 26px rgba(15, 76, 129, 0.16);
}

.forum-topbar-main {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.forum-kicker {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.82;
    margin-bottom: 8px;
}

.forum-page-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
}

.forum-page-subtitle {
    margin: 10px 0 0;
    max-width: 920px;
    opacity: 0.9;
}

.forum-session-box {
    min-width: 220px;
    text-align: right;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    padding: 12px 14px;
}

.forum-session-label {
    display: block;
    font-size: 0.82rem;
    opacity: 0.85;
    margin-bottom: 3px;
}

.forum-quicknav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.forum-quicknav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    font-weight: 600;
}

.forum-quicknav a:hover {
    background: rgba(255,255,255,0.22);
}

.forum-back-link {
    margin-left: auto;
}

.forum-content {
    padding: 28px 32px 40px;
}

.forum-card,
.forum-board-card,
.forum-post-card,
.forum-topic-card,
.forum-stat-card,
.forum-form-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(16, 76, 128, 0.08);
    box-shadow: 0 12px 28px rgba(17, 56, 102, 0.07);
}

.forum-card,
.forum-form-card,
.forum-post-card,
.forum-topic-card,
.forum-stat-card {
    padding: 22px 24px;
}

.forum-board-card {
    padding: 18px 20px;
    margin-bottom: 14px;
}

.forum-category-header {
    margin-bottom: 16px;
}

.forum-category-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0 0 6px;
}

.forum-category-description,
.forum-muted {
    color: #56708c;
}

.forum-board-head,
.forum-topic-head,
.forum-post-head,
.forum-row-between {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.forum-board-title,
.forum-topic-title {
    font-size: 1.18rem;
    font-weight: 800;
    margin: 0;
}

.forum-board-title a,
.forum-topic-title a {
    color: #17324d;
    text-decoration: none;
}

.forum-board-title a:hover,
.forum-topic-title a:hover {
    color: #0f5d99;
}

.forum-badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.forum-kind-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

.forum-badge-official { background: #eef5ff; color: #0b64b1; }
.forum-badge-changelog { background: #fff4db; color: #9a5a00; }
.forum-badge-roadmap { background: #f2ebff; color: #6e3db6; }
.forum-badge-support { background: #e8f8f1; color: #157d50; }
.forum-badge-integration { background: #ecf6ff; color: #116ea6; }
.forum-badge-idea { background: #fff0f6; color: #b13571; }
.forum-badge-feedback { background: #fcefe7; color: #ad5b16; }
.forum-badge-discussion { background: #f1f4f8; color: #4f647a; }

.forum-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.forum-dev-overview {
    margin-bottom: 24px;
}

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

.forum-dev-panel {
    border-radius: 16px;
    border: 1px solid rgba(16, 76, 128, 0.08);
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    padding: 18px 20px;
}

.forum-dev-panel-accent {
    background: linear-gradient(160deg, rgba(15, 76, 129, 0.08), rgba(255, 255, 255, 0.96));
}

.forum-dev-list {
    margin: 0;
    padding-left: 1.2rem;
    color: #36536d;
    line-height: 1.7;
}

.forum-dev-list li + li {
    margin-top: 0.45rem;
}

.forum-dev-note {
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(16, 76, 128, 0.10);
    color: #234a70;
    font-weight: 600;
    line-height: 1.6;
}

.forum-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.forum-board-meta,
.forum-topic-meta,
.forum-post-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #5d7187;
    font-size: 0.92rem;
}

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

.forum-topic-side {
    display: grid;
    gap: 12px;
    justify-items: end;
}

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

.forum-post-content {
    line-height: 1.7;
}

.forum-post-content > :last-child {
    margin-bottom: 0;
}

.forum-post-content p,
.forum-post-content div,
.forum-post-content figure,
.forum-post-content ul,
.forum-post-content ol,
.forum-post-content blockquote,
.forum-post-content pre,
.forum-post-content table,
.forum-post-content hr {
    margin-bottom: 0.95rem;
}

.forum-post-content h1,
.forum-post-content h2,
.forum-post-content h3 {
    margin: 1.25rem 0 0.7rem;
    line-height: 1.2;
    font-weight: 800;
    color: #12395d;
}

.forum-post-content h1 { font-size: 1.9rem; }
.forum-post-content h2 { font-size: 1.55rem; }
.forum-post-content h3 { font-size: 1.3rem; }

.forum-post-content ul,
.forum-post-content ol {
    padding-left: 1.5rem;
}

.forum-post-content blockquote {
    padding: 0.9rem 1rem;
    border-left: 4px solid #75a8d6;
    background: #f5f9fd;
    border-radius: 0 12px 12px 0;
    color: #36536d;
}

.forum-post-content figure {
    margin: 1.25rem 0 1.5rem;
}

.forum-post-content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(16, 76, 128, 0.12);
    box-shadow: 0 14px 30px rgba(17, 56, 102, 0.10);
    background: #fff;
}

.forum-post-content figcaption,
.forum-post-content small {
    display: block;
    margin-top: 0.7rem;
    color: #5d7187;
    font-size: 0.92rem;
}

.forum-post-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(16, 76, 128, 0.12);
    box-shadow: 0 10px 24px rgba(17, 56, 102, 0.06);
}

.forum-post-content th,
.forum-post-content td {
    padding: 0.85rem 0.95rem;
    border-bottom: 1px solid rgba(16, 76, 128, 0.10);
    text-align: left;
    vertical-align: top;
}

.forum-post-content th {
    background: #eef5fb;
    color: #12395d;
    font-weight: 800;
}

.forum-post-content tr:last-child td {
    border-bottom: 0;
}

.forum-post-content a {
    color: #0b64b1;
    text-decoration: underline;
}

.forum-post-content hr {
    border: 0;
    border-top: 1px solid rgba(16, 76, 128, 0.18);
}

.forum-code {
    margin: 0 0 1rem;
    padding: 14px 16px;
    background: #102338;
    color: #f5f7fb;
    border-radius: 12px;
    overflow: auto;
}

.forum-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.forum-actions form {
    margin: 0;
}

.forum-empty {
    padding: 26px 28px;
    border: 2px dashed rgba(18, 88, 145, 0.18);
    border-radius: 16px;
    background: rgba(255,255,255,0.6);
    color: #506b87;
}

.forum-attachment-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: grid;
    gap: 8px;
}

.forum-attachment-list a {
    text-decoration: none;
}

.forum-grid-two {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 20px;
}

.forum-form-card label {
    font-weight: 700;
    margin-bottom: 6px;
}

.forum-form-card .form-text {
    color: #5e7288;
}

.forum-form-card .me-wrap {
    margin-bottom: 0;
}

.forum-editor-basic .me-toolbar [data-me="fontname"],
.forum-editor-basic .me-toolbar [data-me="fontsize"],
.forum-editor-basic .me-toolbar [data-act="img"],
.forum-editor-basic .me-toolbar [data-act="toggle_block"],
.forum-editor-basic .me-toolbar [data-tbl] {
    display: none !important;
}

.forum-editor-basic .me-sep {
    display: none;
}

.forum-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.forum-search-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.forum-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #edf4fb;
    color: #29567f;
    font-weight: 600;
}

.forum-priority-callout {
    background: linear-gradient(135deg, #f7fbff 0%, #eef7ff 100%);
    border-color: rgba(56, 123, 194, 0.14);
}

.forum-priority-callout:not(.forum-card) {
    padding: 18px 20px;
    border: 1px solid rgba(56, 123, 194, 0.14);
    border-radius: 16px;
}

.forum-priority-row {
    align-items: center;
}

.forum-priority-title {
    margin-bottom: 6px;
}

.forum-priority-summary {
    display: grid;
    gap: 4px;
    min-width: 220px;
    justify-items: end;
    text-align: right;
}

.forum-priority-summary-label,
.forum-priority-inline-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4f6d8a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.forum-priority-summary-score,
.forum-priority-inline-score {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f4c81;
}

.forum-priority-inline {
    display: grid;
    gap: 3px;
    justify-items: end;
    text-align: right;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f7fbff;
    border: 1px solid rgba(56, 123, 194, 0.14);
}

.forum-priority-inline-count,
.forum-priority-inline-own {
    font-size: 0.88rem;
    color: #5a738d;
}

.forum-priority-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.forum-priority-button {
    min-width: 86px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 76, 129, 0.18);
    border-radius: 14px;
    background: #fff;
    color: #17324d;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.forum-priority-button:hover,
.forum-priority-button.is-active {
    border-color: rgba(11, 100, 177, 0.42);
    background: #eef6ff;
    color: #0b64b1;
}

.forum-priority-button-value {
    font-size: 1.1rem;
    line-height: 1;
}

.forum-priority-button-text {
    font-size: 0.92rem;
    line-height: 1;
}

@media (max-width: 900px) {
    .forum-topbar,
    .forum-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .forum-topbar-main,
    .forum-board-head,
    .forum-topic-head,
    .forum-post-head,
    .forum-row-between {
        flex-direction: column;
    }

    .forum-topic-side,
    .forum-priority-inline,
    .forum-priority-summary {
        justify-items: start;
        text-align: left;
    }

    .forum-session-box {
        width: 100%;
        text-align: left;
    }

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

    .forum-back-link {
        margin-left: 0;
    }
}

.forum-code-group {
    margin-top: 22px;
}

.forum-code-group-title {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f4c81;
}

.forum-code-example {
    border: 1px solid rgba(16, 76, 128, 0.12);
    border-radius: 16px;
    background: #f8fbff;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.forum-code-example-head h4 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #17324d;
}

.forum-code-block {
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    background: #0f1f2e;
    color: #e8f3ff;
    overflow: auto;
    white-space: pre;
    tab-size: 4;
}

.forum-code-block code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92rem;
}

.forum-code-grid-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(16, 76, 128, 0.12);
}

.forum-code-grid {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.forum-code-grid th {
    background: #e8eef5;
    color: #0f4c81;
    font-weight: 800;
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(16, 76, 128, 0.18);
}

.forum-code-grid td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(16, 76, 128, 0.1);
    vertical-align: top;
}

.forum-code-grid-group td {
    background: #e8f1ff;
    color: #16304d;
    font-weight: 800;
    font-size: 1rem;
}

.forum-code-grid-row:nth-child(even) td {
    background: #f8fbff;
}

.forum-code-grid-id {
    width: 80px;
    text-align: right;
    white-space: nowrap;
}

.forum-code-grid-date {
    width: 170px;
    white-space: nowrap;
    color: #56708c;
}

.forum-code-grid-action {
    width: 180px;
    white-space: nowrap;
}

.forum-code-toggle {
    border: 1px solid rgba(15, 76, 129, 0.22);
    border-radius: 999px;
    background: #eef5ff;
    color: #0f4c81;
    font-weight: 700;
    padding: 6px 12px;
    cursor: pointer;
}

.forum-code-toggle:hover {
    background: #ddecff;
}

.forum-code-detail td {
    background: #f4f8fc;
    padding: 0;
}

.forum-code-detail .forum-code-block {
    border-radius: 0;
}
