/* ============================================================
   COMMUNITY FORUM
   Public styles for forum.php, forum-category.php, forum-topic.php,
   forum-new-topic.php, forum-edit.php and forum-report.php.
   Loaded after cf-theme.css so it can reuse the site tokens.
   ============================================================ */

.ch-forum-body {
    padding: 34px 0 64px;
}

.ch-forum-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
}

.ch-forum-main,
.ch-forum-side {
    min-width: 0;
}

.ch-forum-side {
    display: grid;
    gap: 18px;
    position: sticky;
    top: calc(var(--header-h) + var(--announce-h, 0px) + 18px);
}

.ch-forum-flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.92rem;
}
.ch-forum-flash i { margin-top: 2px; }
.ch-forum-flash-success { border-color: var(--ok-border); background: var(--ok-soft); color: var(--text); }
.ch-forum-flash-danger { border-color: var(--heart-border); background: var(--heart-soft); color: var(--text); }
.ch-forum-flash-warning { border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.10); color: var(--text); }
.ch-forum-flash-info { border-color: var(--border-accent); background: var(--accent-glow-soft); color: var(--text); }

.ch-forum-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.ch-forum-crumbs a { color: var(--text-secondary); text-decoration: none; }
.ch-forum-crumbs a:hover { color: var(--accent); }
.ch-forum-crumbs span { color: var(--text-muted); }

.ch-forum-search-inline {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 520px;
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.ch-forum-search-inline > i {
    color: var(--text-muted);
    padding-left: 14px;
}
.ch-forum-search-inline input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    padding: 11px 12px;
    font-size: 0.88rem;
    outline: none;
}
.ch-forum-search-inline button {
    border: 0;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 11px 16px;
    cursor: pointer;
}
.ch-forum-search-inline button:hover { background: var(--accent-dark); }

.ch-forum-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 30px 0 14px;
}
.ch-forum-section-head:first-child { margin-top: 0; }
.ch-forum-section-head h2 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text);
}
.ch-forum-section-head p {
    margin: 3px 0 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}
.ch-forum-section-head a {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}
.ch-forum-section-head a:hover { color: var(--accent-dark); }

/* ---- category cards ---- */
.ch-forum-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.ch-forum-cat {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-card);
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.ch-forum-cat:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    color: var(--text);
}
.ch-forum-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex: 0 0 44px;
    background: var(--accent);
}
.ch-forum-cat-copy { min-width: 0; }
.ch-forum-cat-copy h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text);
}
.ch-forum-cat-copy p {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ch-forum-cat-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
}
.ch-forum-cat-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ch-forum-cat-meta .dot { color: var(--accent); }

/* ---- discussion list ---- */
.ch-forum-list {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}
.ch-forum-topic-row {
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text);
    transition: background 0.15s ease;
}
.ch-forum-topic-row:last-child { border-bottom: 0; }
.ch-forum-topic-row:hover { background: var(--bg-elevated); color: var(--text); }
/* The row itself is a div; an invisible stretched link covers the whole row
   so it stays clickable. (A plain <a> row used to break because the author
   link inside the meta nested an <a> inside an <a> — the HTML parser
   auto-closes the outer anchor and the rest of the row falls out of the
   grid.) The author link below is raised above the cover. */
.ch-forum-row-cover {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
}
.ch-forum-row-cover:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}
.ch-forum-topic-grid {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 94px 132px;
    gap: 14px;
    align-items: center;
    padding: 15px 18px;
}
.ch-forum-topic-main { min-width: 0; }
.ch-forum-topic-title {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
}
.ch-forum-topic-title .label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ch-forum-topic-row:hover .ch-forum-topic-title { color: var(--accent); }
.ch-forum-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.76rem;
}
.ch-forum-topic-meta a { color: var(--text-secondary); text-decoration: none; position: relative; z-index: 2; }
.ch-forum-topic-meta a:hover { color: var(--accent); }
.ch-forum-topic-meta .dot { color: var(--border); }
.ch-forum-topic-stat {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.3;
}
.ch-forum-topic-stat strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 800;
}
.ch-forum-topic-last {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: right;
}
.ch-forum-topic-last strong {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ch-forum-topic-last a { color: var(--text-secondary); text-decoration: none; }
.ch-forum-topic-last a:hover { color: var(--accent); }

.ch-forum-topic-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow-soft);
    color: var(--accent);
    font-size: 15px;
}
.ch-forum-topic-icon.is-pinned { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.ch-forum-topic-icon.is-locked { background: var(--bg-elevated); color: var(--text-muted); }

.ch-forum-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.ch-forum-badge.is-pinned { background: rgba(245, 158, 11, 0.12); color: #b45309; border-color: rgba(245, 158, 11, 0.28); }
.ch-forum-badge.is-locked { background: var(--bg-elevated); color: var(--text-secondary); }
.ch-forum-badge.is-cat { background: var(--accent-glow-soft); color: var(--accent); border-color: var(--border-accent); }
.ch-forum-badge.is-unanswered { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-border); }

.ch-forum-empty {
    text-align: center;
    padding: 46px 24px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    background: var(--bg-card);
    color: var(--text-muted);
}
.ch-forum-empty i {
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 12px;
}
.ch-forum-empty h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 6px;
}
.ch-forum-empty p { margin: 0 auto 16px; max-width: 420px; }

/* ---- sidebar widgets ---- */
.ch-forum-widget {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.ch-forum-widget-head {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ch-forum-widget-head i { color: var(--accent); }
.ch-forum-widget-body { padding: 14px 16px; }
.ch-forum-widget-body p { margin: 0 0 10px; font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; }
.ch-forum-widget-body p:last-child { margin-bottom: 0; }
.ch-forum-widget-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ch-forum-widget-body li { font-size: 0.84rem; color: var(--text-secondary); display: flex; gap: 8px; }
.ch-forum-widget-body li i { color: var(--accent); margin-top: 3px; }
.ch-forum-widget-body li a { color: var(--text-secondary); text-decoration: none; }
.ch-forum-widget-body li a:hover { color: var(--accent); }

.ch-forum-contributor {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.ch-forum-contributor:last-child { border-bottom: 0; }
.ch-forum-contributor .who { min-width: 0; flex: 1; }
.ch-forum-contributor .who a {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ch-forum-contributor .who a:hover { color: var(--accent); }
.ch-forum-contributor .who span { font-size: 0.72rem; color: var(--text-muted); }
.ch-forum-contributor .n {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent);
    background: var(--accent-glow-soft);
    border-radius: 999px;
    padding: 3px 8px;
}

/* ---- avatars ---- */
.ch-forum-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ch-forum-avatar-initial {
    background: var(--accent-glow-soft);
    color: var(--accent);
    font-weight: 800;
    border-color: var(--border-accent);
}
.ch-forum-role {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}
.ch-forum-role-admin { background: var(--heart-soft); color: var(--heart); border: 1px solid var(--heart-border); }
.ch-forum-role-staff { background: rgba(245, 158, 11, 0.12); color: #b45309; border: 1px solid rgba(245, 158, 11, 0.28); }

/* ---- category page heading ---- */
.ch-forum-cat-hero {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}
.ch-forum-cat-hero .ch-forum-cat-icon { width: 54px; height: 54px; flex-basis: 54px; font-size: 22px; }
.ch-forum-cat-hero h1 {
    font-size: clamp(1.35rem, 2.6vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 5px;
    color: var(--text);
}
.ch-forum-cat-hero p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.ch-forum-cat-hero .stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.ch-forum-cat-hero .stats i { color: var(--accent); margin-right: 4px; }

.ch-forum-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 14px;
}
.ch-forum-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.ch-forum-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}
.ch-forum-tab:hover { border-color: var(--accent); color: var(--accent); }
.ch-forum-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- topic / post ---- */
.ch-forum-topic-head {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    padding: 20px 22px;
    margin-bottom: 16px;
}
.ch-forum-topic-head h1 {
    font-size: clamp(1.3rem, 2.7vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin: 0 0 8px;
    color: var(--text);
}
.ch-forum-topic-head .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.ch-forum-topic-head .meta a { color: var(--text-secondary); text-decoration: none; }
.ch-forum-topic-head .meta a:hover { color: var(--accent); }
.ch-forum-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px dashed var(--border);
}
.ch-forum-admin-actions form { display: inline; }

.ch-forum-post {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 14px;
    scroll-margin-top: calc(var(--header-h) + var(--announce-h, 0px) + 20px);
}
.ch-forum-post.is-op { border-color: var(--border-accent); }
.ch-forum-post.is-hidden { opacity: 0.72; border-style: dashed; }
.ch-forum-post-side {
    padding: 18px 16px;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border-subtle);
    text-align: center;
}
.ch-forum-post-side .ch-forum-avatar { width: 58px; height: 58px; margin: 0 auto 8px; font-size: 21px; }
.ch-forum-post-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ch-forum-post-name:hover { color: var(--accent); }
.ch-forum-post-role { margin-top: 4px; }
.ch-forum-post-stats {
    margin-top: 9px;
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.ch-forum-post-stats strong { color: var(--text-secondary); }
.ch-forum-post-body { padding: 18px 20px; min-width: 0; }
.ch-forum-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.74rem;
    color: var(--text-muted);
}
.ch-forum-post-meta .left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-forum-post-meta .num { font-weight: 800; color: var(--text-secondary); }
.ch-forum-post-content {
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}
.ch-forum-post-content a { color: var(--accent); }
.ch-forum-post-content p { margin: 0 0 10px; }
.ch-forum-post-content p:last-child { margin-bottom: 0; }
.ch-forum-post-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}
.ch-forum-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.4;
}
.ch-forum-action:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow-soft); }
.ch-forum-action.is-liked { border-color: var(--heart-border); color: var(--heart); background: var(--heart-soft); }
.ch-forum-action.is-danger:hover { border-color: var(--heart); color: var(--heart); background: var(--heart-soft); }
.ch-forum-action i { font-size: 0.72rem; }
.ch-forum-post-footer form { display: inline; }
.ch-forum-edited { color: var(--text-muted); font-style: italic; font-size: 0.72rem; }

.ch-forum-login-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 18px;
}
.ch-forum-login-note strong { color: var(--text); }

/* ---- forms ---- */
.ch-forum-form-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.ch-forum-form-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text);
}
.ch-forum-form-head i { color: var(--accent); }
.ch-forum-form-body { padding: 20px; }
.ch-forum-field { margin-bottom: 16px; }
.ch-forum-field:last-child { margin-bottom: 0; }
.ch-forum-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.ch-forum-label .req { color: var(--heart); }
.ch-forum-input,
.ch-forum-select,
.ch-forum-textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-input);
    color: var(--text);
    padding: 10px 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ch-forum-textarea { min-height: 150px; resize: vertical; }
.ch-forum-input:focus,
.ch-forum-select:focus,
.ch-forum-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow-soft);
}
.ch-forum-help {
    margin-top: 5px;
    font-size: 0.74rem;
    color: var(--text-muted);
}
.ch-forum-counter { float: right; font-variant-numeric: tabular-nums; }
.ch-forum-errors {
    border: 1px solid var(--heart-border);
    background: var(--heart-soft);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    color: var(--text);
    font-size: 0.85rem;
}
.ch-forum-errors ul { margin: 0; padding-left: 18px; }
.ch-forum-errors li { margin: 3px 0; }
.ch-forum-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.ch-forum-check input { margin-top: 3px; }
.ch-forum-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}
.ch-forum-form-actions .ch-btn,
.ch-forum-form-actions .ch-btn-ghost { padding: 9px 16px; font-size: 0.85rem; }

.ch-forum-report-preview {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-elevated);
    padding: 14px 16px;
    margin-bottom: 18px;
}
.ch-forum-report-preview strong { display: block; color: var(--text); margin-bottom: 4px; }
.ch-forum-report-preview p { margin: 0; color: var(--text-muted); font-size: 0.84rem; }

/* ---- notices ---- */
.ch-forum-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border: 1px solid var(--border-accent);
    background: var(--accent-glow-soft);
    border-radius: 12px;
    font-size: 0.86rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.ch-forum-notice i { color: var(--accent); margin-top: 2px; }
.ch-forum-notice strong { color: var(--text); }

/* ---- responsive ---- */
@media (max-width: 991px) {
    .ch-forum-layout { grid-template-columns: minmax(0, 1fr); }
    .ch-forum-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ch-forum-topic-grid { grid-template-columns: 44px minmax(0, 1fr) 90px; }
    .ch-forum-topic-last { display: none; }
    .ch-forum-post { grid-template-columns: 120px minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .ch-forum-cats { grid-template-columns: minmax(0, 1fr); }
    .ch-forum-side { grid-template-columns: minmax(0, 1fr); }
    .ch-forum-topic-grid { grid-template-columns: 40px minmax(0, 1fr); padding: 14px; }
    .ch-forum-topic-stat { display: none; }
    .ch-forum-post { grid-template-columns: minmax(0, 1fr); }
    .ch-forum-post-side {
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
        border-right: 0;
        border-bottom: 1px solid var(--border-subtle);
        padding: 12px 16px;
    }
    .ch-forum-post-side .ch-forum-avatar { width: 40px; height: 40px; margin: 0; font-size: 15px; }
    .ch-forum-post-stats { margin: 0 0 0 auto; text-align: right; }
    .ch-forum-post-body { padding: 14px 16px; }
    .ch-forum-cat-hero { padding: 16px; }
    .ch-forum-cat-hero .ch-forum-cat-icon { width: 44px; height: 44px; flex-basis: 44px; font-size: 18px; }
}
@media (max-width: 480px) {
    .ch-forum-section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .ch-forum-toolbar { flex-direction: column; align-items: stretch; }
    .ch-forum-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .ch-forum-tab { white-space: nowrap; }
}
