@import url('style.css');
.forum-page { font-size: 16px; margin: 0; padding: 0; height: 100dvh; overflow: hidden; --forum-bg: #f2f5f7; --forum-panel: #fff; --forum-toolbar: #e4e9ed; --forum-border: #c3cdd6; --forum-text: #243340; --forum-muted: #637482; --forum-selected: #dceafa; }
html[data-theme="dark"] .forum-page { --forum-bg: #151d25; --forum-panel: #202c37; --forum-toolbar: #283540; --forum-border: #435565; --forum-text: #e3eaf0; --forum-muted: #b2bec9; --forum-selected: #354f64; }
.forum-app :is(button,input,select,textarea), .forum-composer :is(button,input,select,textarea) { font-size: 16px; }
.forum-app { display: grid; grid-template-rows: auto minmax(0,1fr) auto; height: 100dvh; width: 100%; margin: 0; padding: 0; color: var(--forum-text); background: var(--forum-bg); }
.forum-toolbar { position: relative; z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--forum-border); background: var(--forum-toolbar); }
.forum-brand img { display: block; border-radius: 50%; }
.forum-search { flex: 0 1 320px; width: 320px; min-width: 120px; max-width: 100%; }
.forum-search #forumSearch { box-sizing: border-box; width: 100%; min-width: 0; padding: 8px 40px 8px 12px; border: 0; background: transparent; color: var(--forum-text); font: inherit; outline: none; }
.forum-search #forumSearch::-webkit-search-cancel-button { -webkit-appearance: none; }
html[data-theme] .forum-search > .modal-close { position: absolute; inset: 50% 6px auto auto; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; box-shadow: none; }
html[data-theme] .forum-search > .modal-close[hidden] { display: none; }
.forum-search .modal-close svg { width: 32px; height: 32px; }
.forum-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 4px; max-width: 100%; min-width: 0; }
html[data-theme] :is(.forum-toolbar, #mobileControlsContent) .forum-tool { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 72px; min-height: 62px; padding: 6px 9px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--forum-text); box-shadow: none; font: inherit; font-size: 16px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; }
:is(.forum-toolbar, #mobileControlsContent) .forum-tool svg { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme] :is(.forum-toolbar, #mobileControlsContent) .forum-tool:not(:disabled):hover, html[data-theme] :is(.forum-toolbar, #mobileControlsContent) .forum-tool[aria-pressed="true"], html[data-theme] .forum-account details[open] > .forum-tool { background: var(--forum-selected); border-color: var(--forum-border); }
html[data-theme] :is(.forum-toolbar, #mobileControlsContent) .forum-tool:focus-visible { outline: 2px solid #77a8ce; outline-offset: 1px; box-shadow: none; }
:is(.forum-toolbar, #mobileControlsContent) .forum-tool:disabled { opacity: .45; cursor: default; }
.forum-account { margin-left: auto; max-width: 100%; font-size: 16px; overflow-wrap: anywhere; }
.forum-account-icon { position: relative; display: block; width: 26px; height: 26px; flex-shrink: 0; }
.forum-account-icon > svg { display: block; }
.forum-account #themeToggle { position: relative; top: auto; right: auto; z-index: auto; flex-shrink: 0; }
.forum-account .regions-dropdown-options { box-sizing: border-box; max-height: calc(100dvh - 90px); overflow-y: auto; }
.forum-panes { display: grid; grid-template-rows: var(--forum-list-size,20%) 8px minmax(0,1fr); min-height: 0; overflow: hidden; }
.forum-list-pane { container: forum-list / inline-size; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--forum-panel); }
.forum-list-scroll { overflow: auto; min-height: 0; flex: 1; }
.forum-topic-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 16px; }
.forum-topic-table th { position: sticky; top: 0; z-index: 1; background: var(--forum-toolbar); color: var(--forum-muted); font-size: 16px; font-weight: 500; text-align: left; }
.forum-topic-table :is(td,th) { padding: 9px 14px; border-bottom: 1px solid var(--forum-border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-topic-table th:first-child { width: auto; }
.forum-topic-table th:nth-child(2) { width: 20%; }
.forum-topic-table th:nth-child(3) { width: 24%; }
.forum-topic-table :is(th,td):nth-child(4) { width: 72px; text-align: right; font-variant-numeric: tabular-nums; }
.forum-topic-table :is(th,td):last-child { width: 44px; padding-inline: 6px; text-align: center; }
.forum-topic-table th:last-child svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; vertical-align: middle; }
.forum-topic-table tbody tr { cursor: pointer; }
.forum-topic-table a { display: block; text-decoration: none; color: inherit; overflow: hidden; text-overflow: ellipsis; }
.forum-topic-table a:focus-visible { outline: 2px solid #77a8ce; outline-offset: 2px; }
.forum-topic-table tr:hover, .forum-topic-table tr.is-selected { background: var(--forum-selected); }
html[data-theme] .forum-topic-table tr.is-selected a { color: var(--forum-text); font-weight: 600; }
.forum-topic-table tr.is-unread a { font-weight: 650; }
.forum-topic-table tr.is-unread td:first-child a::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: middle; }
html[data-theme] .forum-topic-table .forum-favorite { display: inline-grid; place-items: center; width: 30px; height: 30px; margin: -5px 0; padding: 5px; border: 0; border-radius: 5px; background: transparent; color: var(--forum-muted); box-shadow: none; }
.forum-favorite svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme] .forum-topic-table .forum-favorite:not(:disabled):hover { background: var(--forum-toolbar); }
html[data-theme] .forum-topic-table .forum-favorite[aria-pressed="true"] { color: #17674b; }
html[data-theme="dark"] .forum-topic-table .forum-favorite[aria-pressed="true"] { color: #88d4b1; }
.forum-favorite[aria-pressed="true"] svg { fill: currentColor; }
html[data-theme] .forum-topic-table .forum-favorite:focus-visible { outline: 2px solid #77a8ce; outline-offset: 1px; }
.forum-topic-table .forum-favorite:disabled { opacity: .4; cursor: default; }
.forum-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 5px 14px; font-size: 16px; border-top: 1px solid var(--forum-border); }
.forum-pagination:empty { display: none; }
#forumListStatus { margin: 14px; font-size: 16px; }
#forumListStatus:empty { display: none; }
.forum-splitter { position: relative; background: var(--forum-toolbar); border-block: 1px solid var(--forum-border); cursor: row-resize; touch-action: none; }
.forum-splitter::after { content: ''; position: absolute; width: 42px; height: 2px; top: 2px; left: calc(50% - 21px); border-radius: 2px; background: var(--forum-muted); }
.forum-splitter:is(:hover,:focus-visible) { background: var(--forum-selected); outline: 2px solid #77a8ce; outline-offset: -2px; }
.forum-reading-pane { min-width: 0; min-height: 0; overflow: auto; padding: 0; background: var(--forum-bg); }
.forum-placeholder { margin: 20px; color: var(--forum-muted); font-size: 16px; }
.forum-archived-text { white-space: pre-wrap; }
.forum-status .forum-archive-notice { order: 1; margin: 0 0 0 auto; min-width: 0; color: var(--forum-muted); font-size: 12px; line-height: 1.4; white-space: normal; text-align: right; }
.forum-status { display: flex; align-items: center; gap: 16px; padding: 5px 14px; border-top: 1px solid var(--forum-border); font-size: 16px; color: var(--forum-muted); background: var(--forum-toolbar); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.forum-composer input[type="text"] { width: 100%; padding: 10px 12px; border: 1px solid var(--forum-border); border-radius: 8px; background: var(--forum-bg); color: var(--forum-text); font: inherit; }
.forum-composer [hidden] { display: none; }
.forum-composer .ql-toolbar, .forum-composer .ql-container { border-color: var(--forum-border); }
#forumEditor { font: inherit; }
#forumEditor .ql-editor { min-height: 220px; font-size: 16px; line-height: 1.65; }
#forumEditor .ql-editor img { max-width: 100%; }
#forumEditor .ql-editor.ql-blank::before { color: var(--forum-muted); }
.forum-editor-toolbar .ql-stroke { stroke: var(--forum-text); }
.forum-editor-toolbar .ql-fill { fill: var(--forum-text); }
.forum-composer .ql-snow .ql-tooltip { background: var(--forum-panel); color: var(--forum-text); border-color: var(--forum-border); }
.forum-compose-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
#forumComposerStatus, .forum-photo-help { font-size: 16px; }
.forum-photo-help { color: var(--forum-muted); }
@container forum-list (max-width:500px) {
 .forum-topic-table :is(th,td):nth-child(n+3) { display: none; }
 .forum-topic-table th:first-child { width: 65%; }
 .forum-topic-table th:nth-child(2) { width: 35%; }
}
@media (max-width:1100px) {
 .forum-actions { order: 2; flex-basis: 100%; }
}
@media (width > 1800px) {
 .forum-panes { grid-template-rows: minmax(0,1fr); grid-template-columns: var(--forum-list-size,40%) 8px minmax(0,1fr); }
 .forum-splitter { border-block: 0; border-inline: 1px solid var(--forum-border); cursor: col-resize; }
 .forum-splitter::after { width: 2px; height: 42px; top: calc(50% - 21px); left: 2px; }
}
@media (max-width:600px) {
 .forum-original-header { grid-template-columns: minmax(0,1fr); }
 .forum-original-header > time { grid-column: 1; grid-row: 3; }
 .forum-original-header > .forum-quote-reply { grid-column: 1; grid-row: 4; }
 .forum-toolbar { gap: 8px; padding: 8px 12px; }
 .forum-search { flex: 1 1 160px; }
 .forum-account { margin-left: auto; }
 html[data-theme] :is(.forum-toolbar, #mobileControlsContent) .forum-tool { min-width: 70px; padding-inline: 7px; font-size: 16px; }

 .forum-composer { padding: 20px 14px; }
}
.forum-post-delete, .forum-topic-delete { font-size: 16px; }
.forum-original-header > .forum-post-delete { grid-column: 2; grid-row: 3; margin-left: auto; }
.forum-trash-heading, .forum-trash-notice { margin: 12px 20px; font-size: 16px; }
.forum-reading-pane > button { margin: 10px 20px; }
.forum-removed-post { color: var(--forum-muted); font-style: italic; }
@media (max-width:600px) { .forum-original-header > .forum-post-delete { grid-column: 1; grid-row: 5; } }

.forum-topic-table.is-trash :is(th,td):nth-child(4) { width: 24%; text-align: left; }
.forum-topic-table.is-trash :is(th,td):last-child { width: 100px; }

#forumRepliesToMe { position: relative; }


html[data-theme] .forum-topic-table .forum-column-sort { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 2px; background: transparent; color: inherit; box-shadow: none; font: inherit; font-weight: inherit; text-align: inherit; }
.forum-column-sort svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.forum-topic-table th[aria-sort="ascending"] .forum-column-sort::after { content: "↑"; }
.forum-topic-table th[aria-sort="descending"] .forum-column-sort::after { content: "↓"; }
html[data-theme] .forum-column-sort:focus-visible { outline: 2px solid #77a8ce; outline-offset: 3px; }

#forumStatus { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.forum-mobile-drawer { box-sizing: border-box; }
.forum-mobile-drawer .forum-actions { display: flex; flex-direction: column; gap: 4px; }
html[data-theme] #mobileControlsContent .forum-tool { flex-direction: row; justify-content: flex-start; gap: 12px; width: 100%; min-height: 44px; text-align: left; }
.forum-mobile-drawer .forum-account { margin-left: 0; width: 100%; }
.forum-mobile-drawer .forum-account .regions-dropdown-options { position: static; width: 100%; min-width: 0; max-width: 100%; }
@media (max-width: 800px) {
 .forum-toolbar { flex-wrap: nowrap; gap: 8px; padding-inline: 12px; }
 .forum-toolbar .forum-search { flex: 1; width: auto; min-width: 0; }
 .forum-toolbar #mobileControlsButton { margin-left: auto; }
}

.forum-post-body iframe.ql-video, .forum-composer .ql-editor iframe.ql-video { display: block; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 12px 0; }
.forum-video-dialog { width: min(520px, calc(100vw - 24px)); padding: 24px; border: 1px solid var(--forum-border, #8296a6); border-radius: 14px; background: var(--forum-panel, #fff); color: var(--forum-text, #243340); }
.forum-video-dialog h2 { padding-right: 36px; }
.forum-video-dialog textarea { display: block; box-sizing: border-box; width: 100%; margin: 8px 0; padding: 10px; font: inherit; }
html[data-theme="dark"] .forum-video-dialog { background: #202c37; color: #e3eaf0; }

.forum-panes.reader-closed { grid-template-rows: minmax(0,1fr); grid-template-columns: minmax(0,1fr); }
.forum-panes.reader-closed > :is(.forum-splitter,.forum-reading-pane) { display: none; }

.forum-post-reactions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
html[data-theme] .forum-post-reactions .forum-reaction { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--forum-border); border-radius: 999px; background: transparent; color: inherit; font-size: .88rem; }
html[data-theme] .forum-post-reactions .forum-reaction[aria-pressed="true"] { background: var(--forum-selected); border-color: #77a8ce; }
.forum-reaction-count { font-variant-numeric: tabular-nums; }
.forum-reaction-status { font-size: .85rem; }

.conversation-message-controls .forum-post-reactions { padding: 0; gap: 8px; }
.forum-reaction-status:empty { display: none; }

.forum-sticky-badge { display: inline-block; margin-right: 7px; padding: 2px 6px; border-radius: 5px; background: rgb(71 116 154 / 20%); color: inherit; font-size: .72rem; font-weight: 700; }
.forum-topic-sticky[aria-pressed="true"] { background: rgb(71 116 154 / 25%); }
