/* Forum Studio · v5.20. Existing site tokens and navigation remain shared. */
body[data-page="forum"] .forum-atmosphere {opacity:.32}
body[data-page="forum"] .forum-columns {gap:26px;grid-template-columns:minmax(0,1fr) 280px}
body[data-page="forum"] .forum-editor-card {padding:26px;background:#101923;border:1px solid #2a3948;border-radius:8px}
body[data-page="forum"] .forum-post {border-radius:8px;overflow:hidden}
.studio-editor {border:1px solid #344352;border-radius:7px;overflow:hidden;background:#0b131d;min-width:0}
.studio-editor:focus-within {border-color:#95acbd;box-shadow:0 0 0 2px #95acbd18}
.studio-editor-head {display:flex;align-items:center;justify-content:space-between;gap:12px;background:#141e29;border-bottom:1px solid #2a3948;padding:7px 12px}
.studio-modes {display:flex;gap:4px}
.studio-modes button {border:0;background:transparent;color:#9eb0c0;padding:10px 12px;border-radius:4px;font:700 12px var(--body);cursor:pointer}
.studio-modes button[aria-pressed="true"] {color:#f2f6f9;background:#263443}
.studio-format {font:500 9px var(--mono);color:#96a8b9;letter-spacing:.1em}
.studio-toolbar {display:flex;flex-wrap:wrap;gap:4px;padding:9px 12px;border-bottom:1px solid #263442}
.studio-toolbar button {height:34px;min-width:36px;padding:6px 10px;color:#ced9e2;background:transparent;border:1px solid transparent;border-radius:4px;font:600 13px var(--body);cursor:pointer}
.studio-toolbar button:hover {background:#233342;border-color:#3d5264;color:#fff}
.studio-toolbar-separator {width:1px;min-height:22px;margin:6px;background:#344352}
.forum-field textarea.studio-textarea {border:0;border-radius:0;background:transparent;min-height:250px;padding:20px;box-shadow:none;font:500 14px/1.8 var(--body);resize:vertical;color:#e6eef5}
.studio-editor textarea:focus {outline:0;box-shadow:none}
.studio-preview {min-height:250px;padding:20px;overflow-wrap:anywhere}
.studio-editor-foot {display:flex;justify-content:space-between;gap:14px;border-top:1px solid #263442;padding:10px 14px;color:#94a7b9;font:500 10px/1.5 var(--body)}
.studio-editor-foot [data-count] {white-space:nowrap;font-family:var(--mono)}
.studio-over-limit,.studio-error {color:#ffabb3!important}
.studio-upload-zone {margin-top:16px;border:1px dashed #3b4b5c;border-radius:7px;padding:17px;background:#111d28}
.studio-upload-heading {display:flex;justify-content:space-between;align-items:center;gap:12px}
.studio-upload-heading strong {font:700 12px var(--body);color:#dce5ed}
.studio-upload-heading strong span {margin-left:6px;font:500 10px var(--mono);color:#95a9ba}
.studio-upload-heading p,.studio-upload-notice {font:500 11px/1.6 var(--body);color:#96aabd;margin:6px 0 0}
.studio-upload-notice {margin-top:10px;max-width:600px}
.studio-upload-list {display:grid;gap:7px}
.studio-upload-item {display:flex;gap:10px;align-items:center;min-width:0;background:#0c151f;border:1px solid #293c4c;padding:10px;border-radius:4px;margin-top:6px}
.studio-upload-item a {color:#e1ecf3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;flex:1;min-width:0}
.studio-file-type {font:700 9px var(--mono);color:#a7c4d6}
.studio-upload-item small {color:#94aabd;white-space:nowrap}
.studio-upload-item button {background:transparent;color:#bdcbd6;border:0;min-width:30px;min-height:30px;cursor:pointer}
.studio-error {font:600 12px/1.6 var(--body);margin:10px 0 0}
.studio-help {display:flex;justify-content:space-between;gap:16px;align-items:start;margin-top:13px;font:500 11px/1.7 var(--body);color:#98afc1}
.studio-help summary {cursor:pointer;color:#c1d2df}
.studio-help p {max-width:500px;margin:8px 0}
.studio-help button {background:none;border:0;border-bottom:1px dotted #708799;color:#98afc1;font:500 11px var(--body);padding:0 0 3px;cursor:pointer;white-space:nowrap}
.studio-editor.is-dragging,.studio-upload-zone.is-dragging {border-color:#a8ccdf;background:#1b3041}
.studio-post-files {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;margin:18px 0 4px;clear:both}
.studio-file {display:flex;align-items:center;gap:14px;min-width:0;background:#121f2b;border:1px solid #344758;border-radius:6px;overflow:hidden;color:#e2edf4;text-decoration:none}
.studio-file:hover {border-color:#93afc1}
.studio-file--image {flex-direction:column;align-items:stretch;gap:0}
.studio-file img {width:100%;height:170px;object-fit:contain;background:#0a111a;display:block}
.studio-file-info {display:flex;flex-direction:column;gap:5px;min-width:0;padding:12px}
.studio-file-info strong {font:600 12px/1.5 var(--body);overflow-wrap:anywhere}
.studio-file-info small {font:500 10px var(--body);color:#99b1c3}
.studio-pdf {font:800 12px var(--mono);color:#ead5d8;padding-left:16px}
.forum-post__body {overflow-wrap:anywhere}
.forum-post__body p {margin:0 0 14px}
.forum-post__body p:last-child {margin-bottom:0}
.forum-post__body h2,.forum-post__body h3,.forum-post__body h4 {font-family:var(--body);letter-spacing:0;line-height:1.4;margin:20px 0 12px;color:#eff5f8}
.forum-post__body h2 {font-size:22px}.forum-post__body h3 {font-size:19px}.forum-post__body h4 {font-size:16px}
.forum-post__body a {color:#b1d7ea;text-decoration:underline;text-underline-offset:3px}
.forum-post__body ul,.forum-post__body ol {padding-left:24px;margin:10px 0 18px}
.forum-post__body li {margin:5px 0}
.forum-post__body pre {max-width:100%;overflow:auto;padding:16px;background:#080f17;border:1px solid #2b3c4a;border-radius:5px;white-space:pre;font:500 12px/1.7 var(--mono)}
.forum-post__body code {white-space:pre-wrap;overflow-wrap:anywhere;background:#09121b;border-radius:3px;padding:2px 5px;font-family:var(--mono);font-size:12px}
.forum-post__body pre code {padding:0;white-space:pre;background:none}
.forum-post__body blockquote {margin:16px 0;padding:12px 16px;border-left:3px solid #7995ab;background:#14222f;color:#afc5d5}
.forum-post__body hr {border:0;border-top:1px solid #334657;margin:22px 0}
.forum-post:target {border-color:#91b1c7;scroll-margin-top:110px}
.studio-editor [hidden],.studio-upload-zone [hidden] {display:none!important}
.studio-editor button:focus-visible,.studio-help button:focus-visible,.studio-upload-zone button:focus-visible {outline:2px solid #c1e1f3;outline-offset:2px}
.forum-dialog {width:min(850px,calc(100vw - 32px));max-height:90dvh}
@media(max-width:1050px){body[data-page="forum"] .forum-columns {grid-template-columns:minmax(0,1fr)}.forum-sidebar {grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}}
@media(max-width:600px){body[data-page="forum"] .forum-editor-card {padding:16px}.studio-editor-head {padding:6px}.studio-format {display:none}.studio-modes button {padding:10px;font-size:11px}.studio-toolbar {padding:7px}.forum-field textarea.studio-textarea,.studio-preview {padding:14px;min-height:220px}.studio-editor-foot {flex-wrap:wrap;gap:5px}.studio-upload-zone {padding:12px}.studio-upload-heading {align-items:start;flex-direction:column}.studio-help {flex-direction:column;gap:10px}.studio-upload-item small {display:none}.studio-post-files {grid-template-columns:1fr}.forum-form-bottom {gap:12px;flex-wrap:wrap}.forum-form-bottom .forum-primary {width:100%}.forum-dialog {width:calc(100vw - 16px);padding:20px 14px}}
