/* ForumRos Stage3 — presentation only. Scope: public forum UI, never #panel.
   No user content/controls are cloned or reparented. Native form attributes remain intact. */
html[data-forum-theme][data-forum-ui="stage3"] { --fr-ui-font: Arial, Helvetica, sans-serif; --fr-ui-radius: 12px; --fr-check: #f5004f; }
html[data-forum-theme][data-forum-ui="stage3"] body#ipboard_body { font-family:var(--fr-ui-font) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #header_bar, html[data-forum-theme][data-forum-ui="stage3"] #primary_nav, html[data-forum-theme][data-forum-ui="stage3"] #categories, html[data-forum-theme][data-forum-ui="stage3"] #index_stats { font-family:var(--fr-ui-font) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #header_bar *, html[data-forum-theme][data-forum-ui="stage3"] #primary_nav a { font-family:var(--fr-ui-font) !important; text-shadow:none !important; }
/* Top bar: preserve all real auth / private-message links, including empty inbox. */
html[data-forum-theme][data-forum-ui="stage3"] #header_bar { padding:6px 0 !important; }
html[data-forum-theme][data-forum-ui="stage3"] #header_bar > .main_width { display:flex !important; align-items:center !important; justify-content:flex-end !important; gap:10px !important; }
html[data-forum-theme][data-forum-ui="stage3"] #header_bar #user_navigation ul.ipsList_inline { display:flex !important; flex-wrap:wrap; align-items:center; gap:4px; float:none !important; padding:0 !important; margin:0 !important; }
html[data-forum-theme][data-forum-ui="stage3"] #header_bar #user_navigation ul.ipsList_inline > li { margin:0 !important; padding:0 !important; border:0 !important; line-height:1.35; }
html[data-forum-theme][data-forum-ui="stage3"] #header_bar #user_navigation ul.ipsList_inline > li > a {
 display:inline-flex !important; align-items:center; min-height:34px; padding:7px 10px !important;
 border:1px solid transparent !important; border-radius:8px !important;
 background:transparent !important; color:var(--fr-text) !important;
 font:500 13px/1.35 var(--fr-ui-font) !important; text-decoration:none !important;
 box-shadow:none !important; opacity:1 !important; cursor:pointer !important;
}
html[data-forum-theme][data-forum-ui="stage3"] #header_bar #user_navigation ul.ipsList_inline > li > a:hover { background:var(--fr-card) !important; border-color:var(--fr-border-soft) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #header_bar #user_navigation a[href*="logout=yes"] { background:var(--fr-card) !important; border-color:var(--fr-border-soft) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #header_bar #user_navigation a[href*="logout=yes"]:hover { border-color:var(--fr-action) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #header_bar .fr-theme-switch, html[data-forum-theme][data-forum-ui="stage3"] #header_bar .fr-mobile-account-toggle { font:600 13px/1.25 var(--fr-ui-font) !important; box-shadow:none !important; }
html[data-forum-theme][data-forum-ui="stage3"] #header_bar .fr-theme-switch { display:inline-flex !important; align-items:center; justify-content:center; gap:8px; min-height:36px; padding:7px 13px !important; flex-shrink:0; color:var(--fr-text) !important; border:1px solid var(--fr-border-soft) !important; background:var(--fr-card) !important; border-radius:18px; }
html[data-forum-theme][data-forum-ui="stage3"] #header_bar .fr-theme-switch-icon { display:inline-block !important; flex:0 0 20px; width:20px !important; height:20px !important; font-size:0 !important; line-height:0 !important; }
html[data-forum-theme][data-forum-ui="stage3"] #header_bar .fr-theme-switch-icon::before { content:""; display:block; width:100%; height:100%; background:currentColor; -webkit-mask:center/contain no-repeat url('../source/fr3-theme-moon.svg'); mask:center/contain no-repeat url('../source/fr3-theme-moon.svg'); }
html[data-forum-theme][data-forum-ui="stage3"][data-forum-theme="light"] #header_bar .fr-theme-switch-icon::before { -webkit-mask-image:url('../source/fr3-theme-sun.svg'); mask-image:url('../source/fr3-theme-sun.svg'); }
html[data-forum-theme][data-forum-ui="stage3"] #header_bar .fr-theme-switch-label { font:inherit !important; }
html[data-forum-theme][data-forum-ui="stage3"] #header_bar .fr-theme-switch:hover { border-color:var(--fr-action) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #branding #logo .fr-logo-link { width:240px !important; }
/* The new SVG's heart/text proportions are taken directly from LogoF(1).svg. */
/* Forum glyphs: outline = read, filled = unread. Keep locked/pinned/moved state icons. */
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-icon-default, html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-icon-newposts {
 width:32px !important; height:32px !important; margin:0 auto !important;
 background-position:center !important; background-size:contain !important; background-repeat:no-repeat !important;
 background-color:transparent !important; opacity:1 !important;
}
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-icon-default { background-image:url('../source/fr3-forum-read-dark.svg') !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-icon-newposts { background-image:url('../source/fr3-forum-unread-dark.svg') !important; }
html[data-forum-theme][data-forum-ui="stage3"][data-forum-theme="light"] #categories .forum-icon-default { background-image:url('../source/fr3-forum-read-light.svg') !important; }
html[data-forum-theme][data-forum-ui="stage3"][data-forum-theme="light"] #categories .forum-icon-newposts { background-image:url('../source/fr3-forum-unread-light.svg') !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-column-icon { opacity:1 !important; }
/* Home seams: the old category separator and 10px borders are redundant. */
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-forum-list { border:0 !important; border-radius:12px !important; overflow:hidden; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-forum-list > thead th { border:0 !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-forum-list > thead:not(:first-child) th { border-top:0 !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-forum-list > tbody.forum-category-separator { display:none !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-forum-list > thead:first-child > tr:first-child > th:first-child { border-top-left-radius:12px; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-forum-list > thead:first-child > tr:first-child > th:last-child { border-top-right-radius:12px; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-forum-list > tbody > tr > td { border-left:0 !important; border-right:0 !important; }
/* Inner navigation: no white strips in Dark. Keep link URLs and pagination order. */
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-navigation-box {
 display:flex !important; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 16px;
 min-width:0; padding:10px 12px !important; margin:10px 0 !important; border:1px solid var(--fr-border-soft) !important;
 border-radius:12px !important; color:var(--fr-text) !important; background:var(--fr-card-soft) !important; box-shadow:none !important;
}
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-navigation-box .forum-clear-float { display:none !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-page-navigation { float:none !important; min-width:0; max-width:100%; margin:0 !important; padding:0 !important; font:400 13px/1.8 var(--fr-ui-font) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-page-navigation a, html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-page-navigation b {
 display:inline-flex; align-items:center; justify-content:center; min-width:32px; min-height:34px;
 padding:5px 9px !important; margin:2px !important; border:1px solid var(--fr-border-soft) !important; border-radius:8px;
 background:var(--fr-card) !important; color:var(--fr-text) !important; text-decoration:none !important; font-weight:500; line-height:1.25;
}
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-page-navigation b { background:var(--fr-action) !important; border-color:var(--fr-action) !important; color:white !important; font-weight:700; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-page-navigation a:hover { border-color:var(--fr-action) !important; background:var(--fr-hover) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-page-navigation .forum-page-current { border:0 !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-new-post { float:none !important; margin:0 !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-new-post a { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:9px 15px !important; border:0 !important; border-radius:9px; background:var(--fr-action) !important; color:white !important; font:600 13px/1.4 var(--fr-ui-font); text-decoration:none !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-new-post a:hover { background:#d90046 !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-new-post a:active { background:#c70040 !important; }
/* Topic list: comfortable columns, not global table-layout overrides. */
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list { width:100% !important; table-layout:auto !important; border-collapse:separate !important; border-spacing:0 !important; border:0 !important; border-radius:12px; overflow:hidden; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > thead th { padding:12px 10px !important; border:0 !important; background:var(--fr-card-raised) !important; color:var(--fr-text) !important; font:700 12px/1.45 var(--fr-ui-font); }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > tbody > tr > td { padding:14px 10px !important; border-left:0 !important; border-right:0 !important; border-top:0 !important; border-bottom:1px solid var(--fr-border-soft) !important; vertical-align:middle; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list .forum-column-icon { width:46px !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list .forum-column-replies, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list .forum-column-views { width:78px !important; text-align:center; font-variant-numeric:tabular-nums; white-space:nowrap; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list .forum-column-lastpost { width:195px !important; position:relative; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list .forum-lastpost-box { padding-right:22px; overflow-wrap:anywhere; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list .forum-select-box { position:absolute; top:12px; right:10px; margin:0; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list .forum-item-title { font-size:14px; line-height:1.45; font-weight:700; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list .forum-item-author, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list .forum-item-desc, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list .forum-lastpost-date { font-size:12px; line-height:1.5; color:var(--fr-text-muted); }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list .forum-item-info { min-width:0; overflow-wrap:break-word; }
/* Post + profile cards. DOM parent chains used by native moderation remain unchanged. */
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-block-container.fr3-posts-container, html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-block-container.fr3-posts-container > .forum-block-outer { overflow:visible !important; border:0 !important; background:transparent !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table { table-layout:fixed !important; width:100% !important; border:1px solid var(--fr-border-soft) !important; border-collapse:separate !important; border-spacing:0 !important; border-radius:12px !important; margin:0 0 14px !important; overflow:hidden; background:var(--fr-card) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table > tbody > tr > td { border:0 !important; padding:0 !important; width:auto; vertical-align:top; background:var(--fr-card) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table > tbody > tr > td.forum-cell-user, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table > tbody > tr > td.forum-cell-contact { width:172px !important; background:var(--fr-card-soft) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table > tbody > tr > td.forum-cell-contact, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table > tbody > tr > td.forum-cell-actions { height:auto !important; background:var(--fr-card-soft) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-user-info { padding:14px !important; font-size:13px; line-height:1.5; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-user-name { font:700 14px/1.4 var(--fr-ui-font) !important; overflow-wrap:anywhere; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-user-status { margin:6px 0; font-size:12px; line-height:1.4; white-space:normal !important; overflow-wrap:break-word; word-break:normal !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-user-avatar img { width:auto !important; height:auto !important; max-width:88px !important; max-height:100px !important; border-radius:9px; object-fit:contain; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-user-additional { font-size:12px; line-height:1.65; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-post-date { display:flex !important; flex-wrap:wrap; align-items:center; gap:7px 12px; justify-content:space-between; background:var(--fr-card-soft) !important; border:0 !important; border-radius:9px; padding:9px 12px !important; margin:10px 12px 0 !important; color:var(--fr-text-muted) !important; font:400 12px/1.5 var(--fr-ui-font) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-post-date > span { order:-1; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-post-number { float:none !important; display:inline-flex; align-items:center; gap:7px; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-post-entry { padding:12px 16px !important; margin:0 !important; font-size:14px; line-height:1.65; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-post-text { min-width:0; overflow-wrap:anywhere; line-height:1.65; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-post-text img, html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-post-text video { max-width:100% !important; height:auto; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-post-text pre { max-width:100%; overflow:auto; white-space:pre; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-user-moderate-info { font-size:11px !important; color:var(--fr-text-muted) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-action-links, html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-contact-links { display:flex !important; flex-wrap:wrap; gap:6px; align-items:center; justify-content:flex-start !important; padding:10px 12px !important; font-size:0; line-height:0; text-align:left; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-action-links > span, html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-contact-links > span { display:inline-flex !important; float:none !important; margin:0 !important; padding:0 !important; line-height:1.4; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-action-links a, html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-contact-links a { display:inline-flex; align-items:center; min-height:34px; padding:6px 9px !important; background:var(--fr-card) !important; border:1px solid var(--fr-border-soft) !important; border-radius:8px; color:var(--fr-text) !important; text-decoration:none !important; font:500 12px/1.4 var(--fr-ui-font) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-action-links a:hover, html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-contact-links a:hover { border-color:var(--fr-action) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-post-selected { outline:2px solid var(--fr-action) !important; outline-offset:-2px; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-post-hidden { outline:1px dashed var(--fr-text-muted); outline-offset:-3px; }
/* Quotes and spoilers preserve original toggle handlers and hidden state. */
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-quote, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-code, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-spoiler { width:100% !important; max-width:100%; border:1px solid var(--fr-border-soft) !important; border-left:3px solid var(--fr-action) !important; border-collapse:separate !important; border-spacing:0 !important; border-radius:9px; margin:8px 0 !important; overflow:hidden; table-layout:fixed; }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-quote th, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-spoiler th, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-code th { padding:10px 12px !important; background:var(--fr-card-raised) !important; color:var(--fr-text) !important; border:0 !important; font:600 12px/1.45 var(--fr-ui-font); }
html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-quote td, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-spoiler td, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-code td { padding:10px 12px !important; background:var(--fr-card-soft) !important; color:var(--fr-text) !important; border:0 !important; }
/* Standard inputs, preserving native semantics: checkbox/radio remain real inputs. */
html[data-forum-theme][data-forum-ui="stage3"] #categories input, html[data-forum-theme][data-forum-ui="stage3"] #categories select, html[data-forum-theme][data-forum-ui="stage3"] #categories textarea, html[data-forum-theme][data-forum-ui="stage3"] #categories button { font-family:var(--fr-ui-font) !important; box-shadow:none !important; text-shadow:none !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories :is(input[type="text"],input[type="email"],input[type="password"],input[type="tel"],input[type="number"],input[type="search"],input[type="url"],input[type="date"],input[type="datetime-local"],input:not([type]),select,textarea) { max-width:100% !important; min-width:0; min-height:40px; padding:10px 12px !important; border:1px solid var(--fr-border) !important; border-radius:8px !important; background-color:var(--fr-field) !important; color:var(--fr-text) !important; font-size:14px !important; line-height:1.4; }
html[data-forum-theme][data-forum-ui="stage3"] #categories textarea { width:100% !important; min-height:150px; resize:vertical; }
html[data-forum-theme][data-forum-ui="stage3"] #categories input::placeholder, html[data-forum-theme][data-forum-ui="stage3"] #categories textarea::placeholder { color:var(--fr-text-muted) !important; opacity:1; }
html[data-forum-theme][data-forum-ui="stage3"] #categories select { padding-right:24px !important; cursor:pointer; }
html[data-forum-theme][data-forum-ui="stage3"] #categories select[multiple] { padding-right:10px !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="checkbox"], html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="radio"] { appearance:none !important; -webkit-appearance:none !important; position:relative !important; display:inline-grid !important; place-content:center; flex:0 0 18px; width:18px !important; height:18px !important; min-width:18px !important; min-height:18px !important; max-width:18px !important; padding:0 !important; margin:0 7px 0 0 !important; border:1px solid var(--fr-border) !important; border-radius:4px !important; background:var(--fr-field) !important; vertical-align:middle; cursor:pointer; box-shadow:none !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="radio"] { border-radius:50% !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="checkbox"]::after { content:""; display:block; width:8px; height:4px; border-left:2px solid white; border-bottom:2px solid white; transform:rotate(-45deg) scale(0); margin-top:-2px; }
html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="radio"]::after { content:""; display:block; width:7px; height:7px; background:white; border-radius:50%; transform:scale(0); }
html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="checkbox"]:checked, html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="radio"]:checked { background:var(--fr-check) !important; border-color:var(--fr-check) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="checkbox"]:checked::after { transform:rotate(-45deg) scale(1); }
html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="radio"]:checked::after { transform:scale(1); }
html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="checkbox"]:indeterminate { background:var(--fr-check) !important; border-color:var(--fr-check) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="checkbox"]:indeterminate::after { width:8px; height:0; border-left:0; transform:none; margin:0; }
html[data-forum-theme][data-forum-ui="stage3"] #categories :is(input,select,textarea,button):focus-visible { outline:2px solid var(--fr-focus) !important; outline-offset:2px; }
html[data-forum-theme][data-forum-ui="stage3"] #categories :is(input,select,textarea,button):disabled { opacity:.5 !important; cursor:not-allowed !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="submit"], html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="button"], html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="reset"], html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-buttons button { min-height:40px; padding:9px 15px !important; border:0 !important; border-radius:9px !important; background:var(--fr-action) !important; color:white !important; font:600 14px/1.4 var(--fr-ui-font) !important; cursor:pointer; }
html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="submit"]:hover, html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="button"]:hover, html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-buttons button:hover { background:#d90046 !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="submit"]:active, html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="button"]:active { background:#c70040 !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-footer-inner { align-items:center !important; gap:8px 12px !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-footer-option { border:0 !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories :is(.forum-topics-moderate,.forum-post-moderate,.forum-topic-moderate) { display:inline-flex !important; align-items:center; gap:6px; max-width:100%; min-width:0; flex-wrap:wrap; margin:0 !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-column-footer { padding:12px !important; }
/* Reply form: themeable editor shell, original toolbar icons still usable. */
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-form { border:1px solid var(--fr-border-soft) !important; border-radius:12px; background:var(--fr-card) !important; padding:0 !important; overflow:visible; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-header { border:0 !important; border-radius:12px 12px 0 0; background:var(--fr-card-raised) !important; padding:12px 15px !important; color:var(--fr-text) !important; font:600 14px/1.4 var(--fr-ui-font); }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-fields { padding:0 14px 14px !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-field { margin-top:12px !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-field-settings { line-height:1.8; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-field-settings label { cursor:pointer; font-size:14px; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-buttons { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .bxlhe-frame { background:var(--fr-field) !important; border:1px solid var(--fr-border-soft); border-radius:9px; color:var(--fr-text) !important; width:100% !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .bxlhe-frame-table { width:100% !important; table-layout:fixed; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .bxlhe-frame-table td, html[data-forum-theme][data-forum-ui="stage3"] #categories .bxlhe-frame-table td.bxlhe-editor-cell { background:var(--fr-field) !important; border:0 !important; padding:0 !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .lhe-stat-toolbar-cont { border:0 !important; background:var(--fr-card-soft) !important; padding:7px !important; overflow:visible !important; display:flow-root; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .lhe-button-cont { margin:2px !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .lhe-button { background-color:#f8f8f8 !important; border:1px solid #d4c6c8 !important; border-radius:4px; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .lhe-button-over, html[data-forum-theme][data-forum-ui="stage3"] #categories .lhe-button-checked { outline:1px solid var(--fr-action); }
html[data-forum-theme][data-forum-ui="stage3"] #categories .bxlhe-frame select { font-size:12px !important; min-height:24px !important; padding:2px 5px !important; border-radius:4px !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories iframe.lha-iframe { background:var(--fr-field) !important; max-width:100% !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories textarea.lha-textarea { background:var(--fr-field) !important; color:var(--fr-text) !important; border:0 !important; border-radius:0 !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .lhe-resize-row img { opacity:.4; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-field-upload a { display:inline-block; padding:7px 0; color:var(--fr-link) !important; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-header-options { position:relative; z-index:1; font-size:12px; }
html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-header-options a { color:var(--fr-text) !important; }
/* No JS / forced colors: controls remain functional and focused. */
@media (forced-colors:active) {
 html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="checkbox"], html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="radio"] { appearance:auto !important; -webkit-appearance:auto !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="checkbox"]::after, html[data-forum-theme][data-forum-ui="stage3"] #categories input[type="radio"]::after { display:none; }
}
@media (max-width:760px) {
 html[data-forum-theme][data-forum-ui="stage3"] #header_bar .fr-theme-switch { width:38px !important; height:38px !important; min-width:38px; padding:8px !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #header_bar .fr-theme-switch-label { display:none !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #branding #logo .fr-logo-link { width:200px !important; }
 html[data-forum-theme][data-forum-ui="stage3"].fr-account-ready #header_bar #user_navigation ul.ipsList_inline { display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:7px !important; }
 html[data-forum-theme][data-forum-ui="stage3"].fr-account-ready #header_bar #user_navigation ul.ipsList_inline > li > a { display:flex !important; width:100% !important; min-height:42px; padding:10px 12px !important; border:1px solid var(--fr-border-soft) !important; background:var(--fr-card-soft) !important; font-size:14px !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-header-options { float:none !important; padding:8px 12px !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-block-container { border-radius:12px !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-forum-list > thead { border:0 !important; border-radius:10px; overflow:hidden; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-forum-list > thead > tr > th.forum-column-title { border:0 !important; border-radius:10px !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-forum-list > tbody > tr:not(:empty) { grid-template-columns:max-content max-content minmax(0,1fr) !important; gap:0 8px !important; padding:13px 12px !important; border:0 !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-forum-list > tbody > tr > td.forum-column-title { grid-column:1 / -1 !important; padding:0 32px 9px 0 !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-forum-list > tbody > tr > td.forum-column-topics { grid-column:1 !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-forum-list > tbody > tr > td.forum-column-replies { grid-column:2 !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-forum-list > tbody > tr > td.forum-column-topics, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-forum-list > tbody > tr > td.forum-column-replies { justify-self:start !important; margin:0 !important; padding:7px 10px !important; border:0 !important; border-radius:10px !important; width:auto !important; min-width:0 !important; background:var(--fr-card-soft) !important; font:600 12px/1.4 var(--fr-ui-font) !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-forum-list > tbody > tr > td.forum-column-lastpost { grid-column:1 / -1 !important; border:0 !important; padding:8px 0 0 !important; margin-top:2px !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-forum-list .forum-column-icon { right:8px !important; top:12px !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-icon-default, html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-icon-newposts { width:26px !important; height:26px !important; }
 /* Inner topic lists become cards; no reparenting of moderation checkboxes. */
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > tbody, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > thead, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > tfoot { display:block !important; width:100% !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > thead > tr { display:block !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > thead th { display:none !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > thead th.forum-column-title { display:block !important; text-align:left; border-radius:10px; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > tbody > tr { display:grid !important; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:7px 8px; position:relative; padding:13px 12px !important; border:0 !important; background:var(--fr-card) !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > tbody > tr.forum-row-even { background:var(--fr-row-alt) !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > tbody > tr > td { display:block !important; width:auto !important; min-width:0 !important; max-width:100%; padding:0 !important; margin:0 !important; border:0 !important; background:transparent !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > tbody > tr > td.forum-column-icon { position:absolute; top:12px; right:9px; width:28px !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > tbody > tr > td.forum-column-title { grid-column:1 / -1; padding-right:32px !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > tbody > tr > td.forum-column-replies { grid-column:1; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > tbody > tr > td.forum-column-views { grid-column:2; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > tbody > tr > td.forum-column-replies, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > tbody > tr > td.forum-column-views { padding:6px 9px !important; border-radius:10px; background:var(--fr-card-soft) !important; font:600 12px/1.4 var(--fr-ui-font); text-align:left; justify-self:start; white-space:normal !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list td.forum-column-replies::before { content:'Ответы: '; color:var(--fr-text-muted); font-weight:400; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list td.forum-column-views::before { content:'Просмотры: '; color:var(--fr-text-muted); font-weight:400; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > tbody > tr > td.forum-column-lastpost, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > tbody > tr > td.forum-column-author, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > tbody > tr > td.forum-column-alone { grid-column:1 / -1; position:relative; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list .forum-select-box { top:0; right:0; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list .forum-lastpost-box { font-size:12px; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > tfoot > tr, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-topic-list > tfoot > tr > td { display:block !important; width:100% !important; }
 /* Authors move above full-width post, not into an unusably narrow left column. */
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table > tbody, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table > tbody > tr { display:block !important; width:100% !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table > tbody > tr > td { display:block !important; width:100% !important; min-width:0 !important; max-width:100%; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table > tbody > tr > td.forum-cell-user, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table > tbody > tr > td.forum-cell-contact { width:100% !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-user-info { display:grid; grid-template-columns:52px minmax(0,1fr); gap:3px 11px; padding:12px !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-user-info > * { grid-column:2; min-width:0; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-user-info > .forum-user-avatar, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-user-info > .forum-user-register-avatar, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-user-info > .forum-user-guest-avatar { grid-column:1; grid-row:1 / span 5; margin:0 !important; width:52px !important; height:52px !important; background-size:contain !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-user-avatar img { max-width:52px !important; max-height:52px !important; width:52px !important; height:52px !important; object-fit:contain; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-user-status { margin:0 !important; font-size:12px; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-user-info .status { justify-self:start; width:auto !important; margin:0 !important; font-size:10px; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-user-additional { font-size:11px; line-height:1.5; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-post-date { margin:10px 10px 0 !important; padding:8px 10px !important; font-size:11px !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-post-entry { padding:10px 12px !important; font-size:14px; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-contact-links { padding-bottom:0 !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-action-links a, html[data-forum-theme][data-forum-ui="stage3"] #categories table.forum-post-table .forum-contact-links a { min-height:36px; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-navigation-box { padding:9px !important; gap:8px; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-page-navigation { flex:1 1 100%; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-new-post { margin-left:auto !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-fields { padding:0 10px 12px !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-field-author, html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-field-email { float:none !important; width:100% !important; margin-bottom:10px; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-field-user-sep { display:none; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories :is(input[type="text"],input[type="email"],input[type="password"],input[type="tel"],input[type="number"],input[type="search"],input[type="url"],input:not([type]),select,textarea) { font-size:16px !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-field-title input, html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-field-desc input { width:100% !important; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-buttons input { flex:1 1 auto; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-field-settings label { font-size:13px; }
 html[data-forum-theme][data-forum-ui="stage3"] #categories .forum-reply-form table { max-width:100%; }
}
