.forum-panel {
    height: min(82vh, 860px);
    width: min(680px, calc(100vw - 110px));
}
.forum-title-actions { display: flex; align-items: center; gap: 10px; }
.forum-create-button {
    border: 1px solid rgba(255,255,255,.45); background: #ffc000; color: #092d4d;
    border-radius: 5px; padding: 8px 12px; font: 700 12px 'Open Sans', sans-serif; cursor: pointer;
}
.forum-create-button:hover { background: #ffd044; }
.forum-feed-body { overflow-y: auto; padding: 0; background: #eef1f4; }
.forum-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid #dbe1e8; background: #fff; }
.forum-toolbar strong { color: #092d4d; font-size: 13px; }
.forum-refresh { border: 0; background: transparent; color: #174f78; font-weight: 700; cursor: pointer; }
.forum-status { padding: 28px 18px; text-align: center; color: #64748b; font-size: 13px; }
.forum-list { display: grid; gap: 10px; padding: 10px; }
.forum-post { display: block; background: #fff; border: 1px solid #dbe1e8; border-radius: 6px; overflow: hidden; }
.forum-vote { background: #f7f8fa; display: flex; align-items: center; padding: 2px; gap: 2px; border-radius: 5px; }
.forum-vote button { width: 30px; height: 28px; border: 0; background: transparent; color: #64748b; border-radius: 4px; cursor: pointer; font-size: 14px; }
.forum-vote button:hover { background: #e6ebf0; color: #092d4d; }
.forum-vote button.active-up { color: #d12e2e; background: #fff1f2; }
.forum-vote button.active-down { color: #174f78; background: #eff6ff; }
.forum-score { font-size: 12px; font-weight: 800; color: #334155; }
.forum-post-main { min-width: 0; padding: 13px 14px 12px; }
.forum-post-meta { font-size: 11px; color: #64748b; margin-bottom: 5px; }
.forum-post-title { margin: 0; color: #172033; font: 700 18px/1.25 'Roboto Condensed', sans-serif; letter-spacing: 0; }
.forum-post-body { margin: 8px 0 0; color: #334155; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.forum-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.forum-tag { border: 1px solid #bfd1df; background: #edf6fc; color: #174f78; border-radius: 999px; padding: 3px 8px; font-size: 10px; font-weight: 700; }
.forum-media { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px; margin-top: 10px; border-radius: 5px; overflow: hidden; background: #dbe1e8; }
.forum-media.one { grid-template-columns: 1fr; }
.forum-media img, .forum-media video { width: 100%; height: 210px; object-fit: cover; display: block; background: #e2e8f0; }
.forum-media.one img, .forum-media.one video { height: min(390px, 45vh); object-fit: contain; background: #111827; }
.forum-post-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.forum-post-vote .forum-score { min-width: 24px; text-align: center; }
.forum-action { border: 0; background: transparent; color: #526174; padding: 6px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; cursor: pointer; }
.forum-action:hover { background: #eef2f6; color: #092d4d; }
.forum-comments { border-top: 1px solid #e2e8f0; margin-top: 5px; padding-top: 8px; }
.forum-comment { margin-top: 8px; border-left: 2px solid #ccd6e0; padding-left: 10px; }
.forum-comment-head { font-size: 10px; color: #64748b; }
.forum-comment-body { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.45; color: #263445; }
.forum-comment-actions { display: flex; align-items: center; gap: 4px; }
.forum-comment-actions button { border: 0; background: transparent; color: #64748b; font-size: 10px; font-weight: 700; padding: 3px 5px; cursor: pointer; }
.forum-comment-actions button.active-up { color: #d12e2e; }
.forum-comment-actions button.active-down { color: #174f78; }
.forum-reply-form { display: flex; gap: 7px; margin-top: 7px; }
.forum-reply-form textarea { min-height: 54px; flex: 1; resize: vertical; border: 1px solid #bdc8d3; border-radius: 5px; padding: 8px; font: 12px 'Open Sans', sans-serif; }
.forum-reply-form button { align-self: flex-end; border: 0; border-radius: 5px; padding: 8px 11px; background: #003366; color: white; font-weight: 700; cursor: pointer; }
.forum-load-more { margin: 0 10px 14px; width: calc(100% - 20px); border: 1px solid #bac6d1; background: white; color: #174f78; border-radius: 5px; padding: 10px; font-weight: 700; cursor: pointer; }
.forum-post-link { display: block; cursor: pointer; }
.forum-post-link:focus-visible { outline: 3px solid #ffc000; outline-offset: -3px; }
.forum-detail-open { overflow: hidden; }
.forum-detail-overlay { position: fixed; inset: 0; z-index: 5100; display: grid; place-items: center; padding: 22px; background: rgba(9,29,45,.76); }
.forum-detail-overlay[hidden] { display: none; }
.forum-detail-dialog { width: min(900px,100%); max-height: calc(100dvh - 44px); display: flex; flex-direction: column; overflow: hidden; border-radius: 7px; background: #eef1f4; box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.forum-detail-header { flex: 0 0 auto; min-height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 4px solid #ffc000; background: #092d4d; color: #fff; }
.forum-detail-header strong { font: 700 15px 'Roboto Condensed',sans-serif; letter-spacing: 0; }
.forum-detail-back,.forum-detail-close { border: 0; background: transparent; color: #fff; cursor: pointer; }
.forum-detail-back { justify-self: start; padding: 8px 0; font-size: 12px; font-weight: 700; }
.forum-detail-close { justify-self: end; padding: 4px; font-size: 27px; line-height: 1; }
.forum-detail-content { min-height: 180px; overflow-y: auto; padding: 14px; }
.forum-detail-content .forum-post { border-color: #cbd5e1; }
.forum-detail-content .forum-media.one img,.forum-detail-content .forum-media.one video { height: min(600px,60vh); }
.forum-detail-content .forum-comments { margin-top: 12px; padding-top: 12px; }
#notifications-icon { position: relative; }
#notifications-icon.has-unread::after { content: attr(data-unread-count); position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 3px; border: 2px solid #092d4d; border-radius: 999px; background: #d12e2e; color: #fff; font: 700 9px/1 'Open Sans',sans-serif; }
.notifications-item { width: 100%; font-family: inherit; text-align: left; }
.notifications-item.clickable { cursor: pointer; }
.notifications-item.clickable:hover { border-color: #7fa1ba; background: #f3f8fb; }
.notifications-item:disabled { opacity: 1; cursor: default; }
.feed-create-overlay { position: fixed; inset: 0; z-index: 5000; background: rgba(9,45,77,.62); display: grid; place-items: center; padding: 16px; }
.feed-create-overlay[hidden] { display: none; }
.feed-create-dialog { width: min(620px,100%); max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 7px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.feed-create-header { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px; background: #092d4d; color: white; }
.feed-create-title { font: 700 21px 'Roboto Condensed',sans-serif; margin: 0; letter-spacing: 0; }
.feed-create-subtitle { margin: 3px 0 0; font-size: 12px; color: #d7e4ed; }
.feed-create-close { border: 0; background: transparent; color: white; font-size: 27px; cursor: pointer; }
.feed-create-form { display: grid; gap: 15px; padding: 20px; }
.feed-post-type { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #aebbc7; border-radius: 5px; overflow: hidden; }
.feed-post-type button { border: 0; background: #f4f6f8; color: #526174; padding: 10px; font-weight: 700; cursor: pointer; }
.feed-post-type button + button { border-left: 1px solid #aebbc7; }
.feed-post-type button.active { background: #003366; color: white; }
.feed-create-field { display: grid; gap: 6px; }
.feed-create-field > label { color: #334155; font-size: 12px; font-weight: 700; }
.feed-create-input,.feed-create-textarea { width: 100%; border: 1px solid #bdc8d3; border-radius: 5px; padding: 10px 11px; font: 13px 'Open Sans',sans-serif; box-sizing: border-box; }
.feed-create-textarea { min-height: 110px; resize: vertical; }
.feed-create-meta-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.feed-create-autocomplete { position: relative; }
.feed-create-suggestions { position: absolute; z-index: 5; top: calc(100% + 3px); left: 0; right: 0; max-height: 180px; overflow-y: auto; background: white; border: 1px solid #bdc8d3; border-radius: 5px; box-shadow: 0 8px 20px rgba(15,23,42,.16); }
.feed-create-suggestions:empty { display: none; }
.feed-create-suggestions button { width: 100%; border: 0; border-bottom: 1px solid #edf0f3; background: white; color: #334155; padding: 8px 9px; text-align: left; font-size: 11px; cursor: pointer; }
.feed-create-suggestions button:hover { background: #edf6fc; color: #003366; }
.feed-create-checks { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #334155; }
.feed-create-checks label { display: flex; align-items: center; gap: 6px; }
.feed-create-tip { margin: 0; color: #64748b; font-size: 10px; }
.feed-create-error { padding: 9px 10px; border: 1px solid #fecaca; background: #fff1f2; color: #b91c1c; border-radius: 5px; font-size: 12px; }
.feed-create-footer { display: flex; justify-content: flex-end; gap: 8px; }
.feed-header-button { border-radius: 5px; padding: 9px 14px; font-weight: 700; cursor: pointer; }
.feed-header-button.outline { border: 1px solid #aab6c1; background: white; color: #334155; }
.feed-header-button.primary { border: 1px solid #003366; background: #003366; color: white; }
.feed-header-button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 820px) {
    .forum-panel { width: 100%; height: calc(100dvh - 50px); }
    .forum-post-main { padding: 11px; }
    .forum-media img, .forum-media video { height: 150px; }
    .forum-media.one img, .forum-media.one video { height: min(330px,42vh); }
    .feed-create-meta-grid { grid-template-columns: 1fr; }
    .forum-create-button { padding: 7px 9px; }
    .forum-detail-overlay { padding: 0; }
    .forum-detail-dialog { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
    .forum-detail-header { grid-template-columns: 1fr auto; }
    .forum-detail-header strong { display: none; }
    .forum-detail-content { padding: 8px; }
    .forum-detail-content .forum-media.one img,.forum-detail-content .forum-media.one video { height: min(480px,55vh); }
}
