/* Public forum: shared surfaces and spacing, independent of administration. */
/* Contain the first child's margin: otherwise the chat shifts the body background down. */
.forum-page { display:flow-root; --forum-surface:rgb(var(--nbk-surface-rgb,24,21,17)); --forum-raised:rgb(var(--nbk-elevated-rgb,32,28,23)); --forum-low:rgb(var(--nbk-page-rgb,16,14,11)); --forum-line:rgba(var(--orn-gold,229,186,115),.14); --forum-muted:var(--nbk-muted,#aaa69a); --forum-text:var(--nbk-foreground,#e9e5db); padding-bottom:24px; }
.forum-page .forum-header { max-width:1180px; margin:0 auto; padding:130px 24px 28px; text-align:left; }
@media(min-width:769px) {
  .forum-page .brand-topbar { position:fixed; top:0; left:0; right:0; height:auto; min-height:0; padding:2rem clamp(1.2rem,4vw,3rem); gap:24px; border:0; background:none; pointer-events:none; }
  .forum-page .brand-topbar .lockup { gap:.85rem; min-height:0; flex:none; }
  .forum-page .brand-topbar .mark { width:26px; height:26px; }
  .forum-page .brand-topbar .rule { height:20px; }
  .forum-page .brand-topbar .word { font-size:.8rem; letter-spacing:.13em; }
  .forum-page .brand-topbar .topbar-nav { gap:2rem; }
  .forum-page .brand-topbar .topbar-nav a { display:inline; min-height:0; padding:0; color:var(--text-light,#fff); font-size:.85rem; opacity:.75; border-radius:0; }
  .forum-page .brand-topbar .topbar-nav a:hover { color:var(--primary-color); background:none; opacity:1; }
}
.forum-page .brand-topbar .lockup :is(.mark-wrap,.mark,.word,.rule,.ring-inner,.ring-outer) { animation:none; transition:none; transform:none; opacity:1; }
.forum-page .brand-topbar .lockup:hover .rule { height:20px; }
.forum-page .forum-eyebrow { margin:0 0 10px; color:var(--primary-color); font:500 .61rem/1.5 var(--font-main); letter-spacing:.16em; }
.forum-page .forum-header h1 { color:var(--forum-text); background:none; font-size:clamp(2.2rem,5vw,3.2rem); line-height:1.2; }
.forum-page .forum-header .subtitle { max-width:55ch; margin:14px 0 0; color:var(--forum-muted); font-size:.86rem; line-height:1.8; }
.forum-access-note { display:flex; align-items:center; gap:9px; margin-top:20px; font-size:.69rem; color:var(--forum-muted); }
.forum-access-note > span { width:6px; height:6px; flex:none; border-radius:50%; background:#a5b89b; }
.forum-section-tabs { display:flex; align-items:center; gap:6px; width:max-content; max-width:calc(100% - 48px); margin:0 0 28px max(24px,calc((100% - 1132px)/2)); padding:6px; border:1px solid var(--forum-line); border-radius:15px; background:var(--forum-surface); }
.forum-section-tabs button { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:46px; padding:11px 22px; border:1px solid transparent; border-radius:10px; background:transparent; color:var(--forum-muted); font:500 .8rem/1.5 var(--font-main); cursor:pointer; }
.forum-section-tabs svg { width:19px; height:19px; flex:none; }
.forum-section-tabs button[aria-selected="true"] { border-color:var(--forum-line); background:rgba(var(--orn-gold,229,186,115),.08); color:var(--forum-text); }
.forum-section-tabs button[aria-selected="true"] svg { color:var(--primary-color); }
.forum-tab-short{display:none}
@media(max-width:600px){.forum-section-tabs .forum-tab-full{display:none}.forum-section-tabs .forum-tab-short{display:inline}.forum-page .forum-section-tabs button{font-size:11px;padding:10px 5px;gap:5px}.forum-page .forum-section-tabs svg{width:16px;height:16px}}
.forum-courses-active .forum-access-note { visibility:hidden; }
.forum-page #forumRoomsPanel[hidden],.forum-page #forumCoursesPanel[hidden] { display:none; }
.forum-in-room .forum-section-tabs { display:none; }
.forum-courses { width:min(1132px,calc(100% - 48px)); margin:0 auto; }
.forum-course-intro { position:relative; padding:36px; border:1px solid var(--forum-line); border-radius:20px; background:radial-gradient(ellipse at 100% 0,rgba(var(--orn-gold,229,186,115),.055),transparent 60%),var(--forum-surface); }
.forum-course-icon { display:flex; align-items:center; justify-content:center; width:56px; height:56px; margin-bottom:24px; border:1px solid var(--forum-line); border-radius:16px; color:var(--primary-color); background:rgba(var(--orn-gold,229,186,115),.04); }
.forum-course-icon svg { width:28px; height:28px; }
.forum-course-status { position:absolute; right:32px; top:36px; padding:6px 12px; border:1px solid var(--forum-line); border-radius:999px; font-size:.65rem; color:var(--forum-muted); }
.forum-course-intro h2 { margin:0; color:var(--forum-text); font:500 clamp(1.8rem,4vw,2.6rem)/1.3 var(--font-heading); }
.forum-course-description { max-width:70ch; margin-top:18px; color:var(--forum-muted); font-size:.82rem; line-height:1.9; }
.forum-course-empty { margin-top:28px; padding-top:24px; border-top:1px solid var(--forum-line); }
.forum-course-empty strong { color:var(--forum-text); font:500 .85rem/1.6 var(--font-main); }
.forum-course-empty p { max-width:70ch; margin-top:6px; color:var(--forum-muted); font-size:.76rem; line-height:1.8; }
.forum-course-details { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:16px; }
.forum-course-details > div { padding:24px; border:1px solid var(--forum-line); border-radius:16px; background:var(--forum-surface); }
.forum-course-details > div > span { color:var(--primary-color); font-size:.65rem; letter-spacing:.1em; }
.forum-course-details h3 { margin:12px 0 8px; font:500 1.06rem/1.5 var(--font-heading); color:var(--forum-text); }
.forum-course-details p { font-size:.74rem; line-height:1.8; color:var(--forum-muted); }
.forum-course-back { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:22px; padding:12px 0; border:0; background:transparent; color:var(--primary-color); font:400 .76rem/1.7 var(--font-main); text-align:left; cursor:pointer; }
@media(max-width:700px) {
  .forum-section-tabs { width:calc(100% - 32px); max-width:none; margin:0 auto 24px; }
  .forum-section-tabs button { flex:1; min-width:0; padding:10px 6px; font-size:.74rem; gap:8px; }
  .forum-courses { width:calc(100% - 32px); }
  .forum-course-intro { padding:24px 20px; }
  .forum-course-status { top:28px; right:20px; font-size:.61rem; }
  .forum-course-details { grid-template-columns:minmax(0,1fr); gap:12px; }
  .forum-course-details > div { padding:20px; }
}
.forum-page .status-banner { max-width:1180px; margin:4px auto 28px; padding:0 24px; }
.forum-page .status-inner { padding:18px 22px; border:1px solid var(--forum-line); border-radius:16px; background:var(--forum-surface); box-shadow:none; }
.forum-page .status-text { flex:1; min-width:180px; gap:5px; }
.forum-page .status-text strong { font:500 .85rem/1.6 var(--font-main); color:var(--forum-text); }
.forum-page .status-text span { font-size:.74rem; line-height:1.7; color:var(--forum-muted); }
.forum-directory-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; width:min(1132px,calc(100% - 48px)); margin:32px auto 0; }
.forum-directory-toolbar h2 { font:500 1.5rem/1.4 var(--font-heading); color:var(--forum-text); }
.forum-search { display:flex; align-items:center; gap:10px; min-width:0; width:310px; max-width:100%; padding:0 14px; border:1px solid var(--forum-line); border-radius:12px; background:var(--forum-surface); }
.forum-search svg { flex:none; width:18px; height:18px; color:var(--forum-muted); }
.forum-search input { display:block; width:100%; min-width:0; height:46px; padding:0; border:0!important; background:transparent!important; color:var(--forum-text); font:400 .76rem var(--font-main); outline:none; box-shadow:none!important; }
.forum-search:focus-within { outline:2px solid var(--primary-color); outline-offset:3px; }
.forum-directory-status { width:min(1132px,calc(100% - 48px)); margin:16px auto; color:var(--forum-muted); font-size:.7rem; }
.forum-directory-status button { margin-left:6px; padding:6px 8px; border:1px solid var(--forum-line); border-radius:8px; background:var(--forum-raised); color:var(--primary-color); font:inherit; cursor:pointer; }
.forum-page .categories { width:min(1132px,calc(100% - 48px)); max-width:none; margin:0 auto; padding:0; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; border:0; }
.forum-page .category-card { position:relative; display:grid; grid-template-columns:48px minmax(0,1fr); align-items:start; gap:18px 16px; min-height:186px; padding:24px; border:1px solid var(--forum-line); border-radius:18px; background:var(--forum-surface); box-shadow:inset 0 1px rgba(255,255,255,.02); transform:none; transition:border-color .18s ease,background .18s ease; }
.forum-page .category-card:hover { background:var(--forum-raised); border-color:rgba(var(--orn-gold,229,186,115),.3); box-shadow:none; transform:none; }
.forum-page .category-card:focus-within { border-color:var(--primary-color); }
.forum-page .category-card .cat-avatar { width:48px; height:48px; border-radius:14px; object-fit:cover; background:rgba(var(--orn-gold,229,186,115),.07); border:1px solid var(--forum-line); font:500 1.2rem var(--font-heading); }
.forum-page .category-card .cat-logo-edit { z-index:2; }
.forum-page .category-card h3 { margin:0 0 7px; white-space:normal; overflow:visible; }
.forum-unread { display:inline-flex; align-items:center; padding:2px 6px; margin-left:8px; border:1px solid rgba(var(--orn-gold,229,186,115),.3); border-radius:999px; color:var(--primary-color); font:400 .6rem/1.4 var(--font-main); vertical-align:middle; }
.forum-last-post { display:block; margin-top:5px; font-size:.6rem; color:var(--forum-muted); }
.forum-notice { position:fixed; top:100px; left:16px; right:16px; z-index:10000; display:flex; align-items:center; justify-content:space-between; gap:16px; width:max-content; max-width:min(560px,calc(100% - 32px)); margin:auto; padding:14px 18px; border:1px solid rgba(224,122,107,.4); border-radius:14px; background:var(--forum-surface,#1b1712); color:var(--forum-text,#e9e5db); box-shadow:0 12px 35px rgba(0,0,0,.25); font:400 .8rem/1.8 var(--font-main); }
.forum-notice[data-state="success"] { border-color:var(--forum-line); }
.forum-notice[hidden] { display:none; }
.forum-notice button { min-width:36px; min-height:36px; border:0; border-radius:8px; background:transparent; color:inherit; font-size:1.2rem; cursor:pointer; }
.category-open { border:0; padding:0; background:none; color:var(--forum-text); font:500 1.04rem/1.5 var(--font-heading); text-align:left; cursor:pointer; overflow-wrap:anywhere; }
.category-open::after { content:''; position:absolute; inset:0; border-radius:18px; }
.category-open:focus-visible { outline:none; }
.category-card:has(.category-open:focus-visible) { outline:2px solid var(--primary-color); outline-offset:3px; }
.forum-page .category-card p { white-space:normal; overflow:visible; color:var(--forum-muted); font-size:.73rem; line-height:1.8; overflow-wrap:anywhere; }
.category-card-footer { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-top:16px; border-top:1px solid var(--forum-line); color:var(--forum-muted); font-size:.65rem; }
.category-enter { display:inline-flex; align-items:center; gap:9px; color:var(--primary-color); }
.category-enter svg { width:15px; height:15px; }
.forum-directory-empty { grid-column:1/-1; padding:48px 24px; border:1px dashed var(--forum-line); border-radius:18px; text-align:center; }
.forum-directory-empty h3 { font:500 1.25rem/1.6 var(--font-heading); }
.forum-directory-empty p { margin-top:8px; font-size:.8rem; color:var(--forum-muted); }
.forum-sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.forum-page .verify-form { width:min(620px,calc(100% - 48px)); max-width:none; padding:26px; background:var(--forum-surface); border-color:var(--forum-line); box-shadow:none; }
.forum-page .verify-form h2 { font-size:1.5rem; }
.forum-page .verify-form :is(input,textarea,.cs-trigger) { min-height:46px; background:var(--forum-low); border-color:var(--forum-line); font-size:16px; }
.forum-page .verify-actions { flex-wrap:wrap; }
.forum-page .btn-primary { min-height:44px; border:1px solid rgba(var(--orn-gold,229,186,115),.3); border-radius:11px; background:rgba(var(--orn-gold,229,186,115),.12); color:var(--forum-text); font-size:.78rem; }
.forum-page .btn-primary:disabled { opacity:.5; cursor:wait; }
.forum-page :is(button,a,textarea,input,summary):focus-visible { outline:2px solid var(--primary-color); outline-offset:3px; }
.forum-in-room :is(.forum-header,.forum-directory-toolbar,.forum-directory-status,#statusBanner,#verifyForm,#categories) { display:none!important; }
.forum-page .chat-wrap { width:min(1180px,calc(100% - 48px)); max-width:none; height:min(820px,calc(100dvh - 140px)); min-height:480px; margin:100px auto 0; padding:0; gap:0; border:1px solid var(--forum-line); border-radius:22px; background:var(--forum-surface); box-shadow:0 24px 70px rgba(0,0,0,.2); overflow:hidden; }
.forum-page .chat-sidebar { width:250px; padding:22px 12px; border-right:1px solid var(--forum-line); background:var(--forum-low); }
.forum-page .chat-sidebar::before { content:none; }
.forum-sidebar-heading { padding:0 12px 20px; }
.forum-sidebar-heading h2 { font:500 1.12rem/1.5 var(--font-heading); color:var(--forum-text); }
.forum-page .chat-sidebar-list { display:flex; flex-direction:column; gap:6px; }
.forum-page .chat-sidebar-item { width:100%; min-width:0; min-height:60px; padding:10px; gap:10px; border:1px solid transparent; border-radius:12px; background:transparent; color:var(--forum-muted); font:400 .76rem/1.5 var(--font-main); text-align:left; box-shadow:none; }
.forum-page .chat-sidebar-item.active { background:rgba(var(--orn-gold,229,186,115),.07); border-color:var(--forum-line); color:var(--forum-text); box-shadow:none; }
.forum-page .chat-sidebar-item .cat-avatar { width:32px; height:32px; flex:none; border-radius:10px; object-fit:cover; }
.forum-page .chat-sidebar-item .csi-count { color:var(--forum-muted); font-size:.62rem; }
.forum-page .chat-main { min-height:0; background:var(--forum-low); }
.forum-page .chat-head { display:grid; grid-template-columns:auto 36px auto minmax(0,1fr) auto; grid-template-rows:auto; gap:10px; padding:18px; min-height:80px; background:var(--forum-surface); border-bottom:1px solid var(--forum-line); box-shadow:none; }
.forum-page .chat-head .chat-sidebar-back { grid-column:1; grid-row:1; min-width:36px; min-height:40px; justify-content:center; padding:8px; border:1px solid var(--forum-line); border-radius:10px; color:var(--forum-muted); }
.forum-page .chat-head .chat-sidebar-back span+span { display:none; }
.forum-page .chat-room-avatar { grid-column:2; grid-row:1; width:36px; height:36px; }
.forum-page .chat-room-avatar .cat-avatar { border-radius:11px; }
.forum-page .chat-room-logo-edit { grid-column:3; grid-row:1; }
.forum-page .chat-head h2 { grid-column:4; grid-row:1; min-width:0; font:500 1.05rem/1.5 var(--font-heading); color:var(--forum-text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.forum-page .chat-tabs { grid-column:5; grid-row:1; margin:0; border:1px solid var(--forum-line); border-radius:10px; background:var(--forum-low); }
.forum-page .chat-tab { min-height:36px; padding:7px 12px; font-size:.71rem; color:var(--forum-muted); border-radius:7px; }
.forum-page .chat-tab.active { background:rgba(var(--orn-gold,229,186,115),.12); color:var(--forum-text); }
.forum-page .chat-tab.active::after { content:none; }
.forum-page .chat-messages { padding:24px; gap:22px; background:var(--forum-low); background-image:none; scroll-behavior:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:rgba(var(--orn-gold,229,186,115),.22) transparent; }
.forum-page .msg-row { max-width:min(88%,680px); animation:none; }
.forum-page .m-avatar { width:34px; height:34px; background:var(--forum-raised); border:1px solid var(--forum-line); color:var(--primary-color); }
.forum-page .m-meta-top { gap:6px; flex-wrap:wrap; }
.forum-page .m-author { font:500 .75rem/1.6 var(--font-main); color:var(--forum-text); overflow-wrap:anywhere; }
.forum-page .m-bubble { padding:12px 16px; border:1px solid rgba(255,255,255,.045); border-radius:4px 16px 16px 16px; background:var(--forum-raised); color:var(--forum-text); box-shadow:none; font-size:.86rem; line-height:1.85; overflow-wrap:anywhere; }
.forum-page .msg-row.own .m-bubble { background:rgba(var(--orn-gold,229,186,115),.09); border:1px solid var(--forum-line); border-radius:16px 4px 16px 16px; color:var(--forum-text); }
.forum-page .m-badge { padding:2px 6px; border-radius:5px; font-size:.55rem; line-height:1.5; }
.forum-page .m-badge.school { color:var(--forum-muted); background:transparent; border-color:var(--forum-line); }
.forum-page :is(.m-time,.m-edited) { color:var(--forum-muted); font-size:.62rem; }
.forum-page .m-actions { flex-wrap:wrap; }
.forum-page .m-actions button { width:30px; height:30px; border-radius:8px; }
.forum-page .msg-row:focus-within .m-actions { opacity:1; }
.forum-page .m-meta-bottom { flex-wrap:wrap; }
.forum-page .m-reaction-pill { min-height:30px; border-color:var(--forum-line); background:var(--forum-surface); }
.forum-page .m-reaction-pill.reacted { background:rgba(var(--orn-gold,229,186,115),.12); }
.forum-page .m-attachment :is(img,video) { max-width:100%; border-radius:14px; }
.forum-page .pinned-bar { max-height:150px; overflow:auto; margin:12px 18px 0; padding:12px; border:1px solid var(--forum-line); background:var(--forum-surface); border-radius:12px; }
.forum-page .chat-input-bar { margin:0; padding:16px 18px; gap:8px; border-top:1px solid var(--forum-line); background:var(--forum-surface); }
.forum-page .chat-input-bar textarea { min-width:0; min-height:46px; padding:12px 14px; border:1px solid var(--forum-line); border-radius:12px; background:var(--forum-low); font-size:.85rem; line-height:1.6; box-shadow:none; }
.forum-page .chat-input-bar textarea:focus { border-color:var(--primary-color); box-shadow:none; }
.forum-page .chat-input-icon { flex:none; width:40px; height:44px; border-radius:10px; color:var(--forum-muted); }
.forum-page .chat-input-bar .btn-primary { min-height:46px; align-self:flex-end; border-radius:12px; }
.forum-page :is(.source-field,.pending-attachment) { margin:10px 18px; padding:10px 14px; border-radius:10px; background:var(--forum-surface); border:1px solid var(--forum-line); }
.forum-page .source-field input { min-width:0; color:var(--forum-text); font-size:16px; }
.forum-page .chat-locked { margin:12px 18px 18px; background:var(--forum-surface); border-color:var(--forum-line); font-size:.75rem; line-height:1.8; }
.forum-page :is(.chat-empty,.media-empty,.sources-empty) { max-width:420px; margin:auto; padding:40px 24px; color:var(--forum-muted); font-size:.8rem; line-height:1.9; text-align:center; }
.forum-page .media-grid { gap:16px; padding:24px; }
.forum-page .media-item { background:var(--forum-surface); border:1px solid var(--forum-line); border-radius:14px; overflow:hidden; }
.forum-page .sources-list { padding:24px; }
.forum-page .source-entry { padding:18px; border:1px solid var(--forum-line); border-radius:14px; background:var(--forum-surface); }
.forum-page .source-entry .se-body { line-height:1.8; overflow-wrap:anywhere; }
.forum-page .thread-page { width:min(850px,calc(100% - 48px)); max-width:none; padding:0; margin:120px auto 0; }
.forum-page .thread-title { font-size:clamp(1.7rem,4vw,2.4rem); line-height:1.4; overflow-wrap:anywhere; }
.forum-page .post { padding:24px; background:var(--forum-surface); border-color:var(--forum-line); border-radius:18px; }
.forum-page .post .p-body { line-height:1.9; overflow-wrap:anywhere; }
.forum-page .reply-box { padding:22px; background:var(--forum-surface); border:1px solid var(--forum-line); border-radius:18px; }
.forum-page .reply-box textarea { min-height:110px; background:var(--forum-low); font-size:16px; }
.forum-page footer { margin-top:32px; color:var(--forum-muted); font-size:.7rem; opacity:1; }
@media(max-width:1000px) { .forum-page .categories { grid-template-columns:repeat(2,minmax(0,1fr)); } .forum-page .chat-sidebar { width:205px; } }
@media(max-width:900px) {
  .forum-page .chat-head { grid-template-columns:36px 36px minmax(0,1fr) auto; gap:10px; padding:14px; }
  .forum-page .chat-head h2 { grid-column:3; }
  .forum-page .chat-room-logo-edit { grid-column:4; }
  .forum-page .chat-tabs { grid-column:1/-1; grid-row:2; width:100%; }
  .forum-page .chat-tab { flex:1; }
}
@media(max-width:700px) {
  .forum-page .forum-header { padding:24px 20px; }
  .forum-page .forum-header h1 { font-size:2.4rem; }
  .forum-access-note { align-items:flex-start; font-size:.65rem; line-height:1.8; }
  .forum-access-note > span { margin-top:6px; }
  .forum-page .status-banner { padding:0 16px; margin-bottom:24px; }
  .forum-page .status-inner { padding:16px; gap:14px; }
  .forum-directory-toolbar { width:calc(100% - 32px); margin-top:24px; gap:16px; }
  .forum-directory-toolbar h2 { font-size:1.4rem; }
  .forum-search { width:100%; }
  .forum-search input { font-size:16px; }
  .forum-directory-status { width:calc(100% - 32px); }
  .forum-page .categories { width:calc(100% - 32px); display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
  .forum-page .category-card { min-height:0; padding:20px; gap:16px; border:1px solid var(--forum-line); border-radius:16px; }
  .forum-page .verify-form { width:calc(100% - 32px); padding:20px; }
  .forum-page.forum-in-room { overflow:hidden; }
  .forum-page .chat-wrap { position:fixed; inset:0; width:100%; max-width:100%; height:100%; height:100dvh; min-height:0; margin:0; border:0; border-radius:0; z-index:110; }
  .forum-page .chat-sidebar { display:none; }
  .forum-page .chat-head { padding:calc(10px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 10px max(12px,env(safe-area-inset-left,0px)); }
  .forum-page .chat-head h2 { font-size:1.05rem; }
  .forum-page .chat-messages { padding:20px max(14px,env(safe-area-inset-right,0px)) 20px max(14px,env(safe-area-inset-left,0px)); gap:20px; }
  .forum-page .msg-row { max-width:94%; gap:8px; }
  .forum-page .m-avatar { width:28px; height:28px; }
  .forum-page .m-bubble { font-size:.88rem; padding:11px 13px; }
  .forum-page .m-badge { font-size:.52rem; }
  .forum-page .m-actions { opacity:.8; }
  .forum-page .m-actions button { width:34px; height:34px; }
  .forum-page .chat-input-bar { padding:12px max(12px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px)); gap:4px; }
  .forum-page .chat-input-bar textarea { font-size:16px; }
  .forum-page .chat-input-icon { width:34px; min-height:44px; }
  .forum-page .chat-input-bar .btn-primary { width:44px; height:46px; min-width:44px; padding:0; border-radius:12px; background:var(--primary-color); font-size:0; }
  .forum-page .chat-locked { margin-bottom:calc(14px + env(safe-area-inset-bottom,0px)); }
  .forum-page .thread-page { width:calc(100% - 32px); margin-top:24px; }
  .forum-page .post { padding:18px; }
  .forum-page :is(.media-grid,.sources-list) { padding:16px; }
}
@media(min-width:769px) {
  .forum-page .chat-wrap { margin-top:112px; height:min(820px,calc(100dvh - 144px)); }
  .forum-page .thread-page { margin-top:120px; }
}
@media(prefers-reduced-motion:reduce) { .forum-page * { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }

@media(max-width:600px){.forum-section-tabs{display:grid;grid-template-columns:1fr 1fr;width:calc(100% - 32px);max-width:none;margin-left:16px;gap:4px;padding:4px}.forum-section-tabs button{min-width:0;min-height:44px;padding:10px 8px;font-size:12px;gap:8px}.forum-section-tabs svg{width:18px;height:18px}}

.m-translation-note{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:6px 0;color:var(--forum-muted,#aaa69a);font-size:10px}.m-translation-note button{border:0;background:transparent;color:var(--primary-color,#e5ba73);padding:6px 0;min-height:32px;font:inherit;cursor:pointer}.forum-translation-state{padding:8px 18px;margin:0;border-bottom:1px solid var(--forum-line);color:var(--forum-muted,#aaa69a);font-size:11px}.forum-translation-state[hidden]{display:none}
